1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-umt0K0yz.js","assets/rolldown-runtime-B9z5rJDh.js","assets/react-DuuDrPmI.js","assets/routes-CXTuVvpF.js","assets/link-sjcr72Kf.js","assets/utils-DXLUb-oW.js","assets/jsx-runtime-CLUyyI6b.js","assets/ClientOnly-JNlX2fUu.js","assets/useRouter-CKAmXPLj.js","assets/useSelector-CY9YVSiw.js","assets/with-selector-DVFBqUHg.js","assets/compiler-runtime-9NAQJQ9E.js","assets/util-B9gBfYZV.js","assets/dub-CyTBCOlj.js","assets/utils-DzrcjOs1.js","assets/x-BjB36Axo.js","assets/createLucideIcon-BCLfs0cE.js","assets/react-Y5vWRT64.js","assets/hero-CX0rfrdS.js","assets/button-DBRhyh8W.js","assets/useRenderElement-Cg6E-wWo.js","assets/useButton-B80sgS_7.js","assets/useIsoLayoutEffect-BxtQW3kb.js","assets/dist-g5ES35Jd.js","assets/play-CTTx8xsd.js","assets/motion-BF2c2zRW.js","assets/dialog-BOQnXPEm.js","assets/DialogTrigger-ChJIXf-l.js","assets/useTransitionStatus-pooLrJFQ.js","assets/react-dom-owto21z9.js","assets/createBaseUIEventDetails-CDiLcGlQ.js","assets/popupTriggerMap-gxtmeZCN.js","assets/useTimeout-DO5BKmDh.js","assets/visuallyHidden-hsH_GqeN.js","assets/owner-CgqlrLRJ.js","assets/composite-D7IMqhVm.js","assets/shadowDom-CN8POfCx.js","assets/useValueAsRef-F0TK4zFI.js","assets/useOpenInteractionType-S4vbKyAT.js","assets/useValueChanged-Dv4Kq1g7.js","assets/store-CMaK5Xa-.js","assets/composite-DfRyXIjr.js","assets/inertValue-CmCo0ewF.js","assets/secondary-hero-bg-1920w-CJmWpYQR.js","assets/social-proof-D2DXR4Uk.js","assets/feature-section-ClRsV0qB.js","assets/dist-DxXbc3aN.js","assets/support-blob-DNXvrJWe.js","assets/final-cta-CeBwSwVy.js","assets/testimonials-C7AzMzUC.js","assets/kevin-smokler-Cz2e6enU.js","assets/testimonial-card-C0-bx2bh.js","assets/privacy-section-BQxWesJ2.js","assets/about-C9MwdAw6.js","assets/sparkles-B6Ch1GvU.js","assets/clock-B5-nRdjb.js","assets/lock-CTrlm1k8.js","assets/marketing-hero-BRfIbmOR.js","assets/ai-agents-hrXp_Ptd.js","assets/external-links-MOe2rQSO.js","assets/aaron-endre-T8yGIvVJ.js","assets/use-case-detail-D_kXfc7K.js","assets/product-showcase-Cae90kMg.js","assets/mobile-BspqHpVi.js","assets/ambassador-D-pwkrL1.js","assets/pen-line-DTSxfSCC.js","assets/briefcase-BNRS_J8L.js","assets/accordion-ARBwhXQh.js","assets/DirectionContext-3pVpBDjS.js","assets/useCompositeListItem-BYFV-IJP.js","assets/useCollapsiblePanel-_xtPfZL2.js","assets/app-D75bEPO8.js","assets/preload-helper-BWfgEyY-.js","assets/useAuth-kNW4Gf6v.js","assets/useMutation-CUMAkyLl.js","assets/mutation-3S-ZMon5.js","assets/root-provider-BJNiMjwt.js","assets/useSDK-C7watZ5C.js","assets/app-version-DGZTWFMD.js","assets/renderer-D5eCG9Sl.js","assets/billing.constants-Bp31pjvb.js","assets/coerce-DgR-QC5y.js","assets/differenceInCalendarDays-cNtEWs8G.js","assets/social-8mDQQbFX.js","assets/firebase-C4y1HP8i.js","assets/collections-Dp0ZgsQ5.js","assets/sonner-DqXyf3Vo.js","assets/info-CPtnIOuj.js","assets/dates-4KV4km8S.js","assets/query-C_I1LWQn.js","assets/queryObserver-D_KtjriA.js","assets/oauth-credentials.collection-DKW6P-N_.js","assets/user.collection-BUKdPpJD.js","assets/useDeviceSync-IQGp-TBE.js","assets/desktop-auth-BBwRWV8g.js","assets/teams-document-DcOJEpVZ.js","assets/teams-flag-D-wrkhqH.js","assets/app-gate-B7yXDCGL.js","assets/redirect-DZtyjygj.js","assets/workspace-routes-BilAicla.js","assets/workspace-document-D-EKfFK0.js","assets/workspaces.collection-CFjMMj8j.js","assets/onboarding-experiment-gate--0zOJUuY.js","assets/pending-referral-CLr_5jih.js","assets/workspace-paywall-C6VN05uV.js","assets/browser-extension-BMwvX9gX.js","assets/desktop-D2XbCtoo.js","assets/SiApple-DQ8HDf68.js","assets/store-buttons-uM00iQFu.js","assets/app-urls-DnuX-LOB.js","assets/desktop-login-redirect-Ds7h__DZ.js","assets/desktop-auth-layout-Dx_oqar4.js","assets/desktop-traffic-lights-DJnxQq2E.js","assets/desktop-window-controls-BUrGYogZ.js","assets/desktop-login-start-CGrcZkkJ.js","assets/desktop-voice-panel-CYYqjQQK.js","assets/voice-dock-C2FBU9WC.js","assets/mic-DOfMdX5M.js","assets/rotate-ccw-BV2obuCi.js","assets/voice-store-C4eDL3oS.js","assets/useContactSearch-BjD3Zf60.js","assets/useQuery-DPLjGxpQ.js","assets/useLiveQuery-BG2B7gtn.js","assets/keep-in-touch-query-keys-BSAL5GkR.js","assets/forget-deleted-B3MlqpF9.js","assets/note-entry-Cs1Cj1tn.js","assets/integrations-BSq2ckuU.js","assets/jarvis-2_RRhBDY.js","assets/linkHandler-MZZIthuP.js","assets/logout-BS9evRsU.js","assets/padlock-mark-D-LrUA5T.js","assets/auth-card-CmgMkkzU.js","assets/watercolor-CC1Tjsjq.js","assets/mba-Qqz0siCe.js","assets/offer-landing-4UiKOGVS.js","assets/input-un1rQbvj.js","assets/useLabelableId-CWGCIwne.js","assets/mobile-CZOhOKuY.js","assets/preboard-DKiLeeVX.js","assets/useNavigate-DGRcJgvv.js","assets/radio-group-CQS60-zy.js","assets/serializeValue-CSpQMM
1az.js","assets/CompositeItem-Bo1pykjs.js","assets/useCompositeItem-DYZQYCe3.js","assets/CompositeRoot-CJHFGNDA.js","assets/isElementDisabled-D-DiQ2PE.js","assets/pricing-ghy6YmEt.js","assets/briefcase-business-DrnAvi1y.js","assets/building-2-CRxXGpR2.js","assets/plans-CpzjkMqn.js","assets/tooltip-yWeNpkDN.js","assets/safePolygon-BfckZI-I.js","assets/usePositioner-zpy-jU3m.js","assets/segmented-tabs-Cew68_ie.js","assets/faq-section-rlrXHUVc.js","assets/faqs-LS811abN.js","assets/privacypolicy-DV510HEo.js","assets/legal-page-BLYHX3V6.js","assets/product-overview-CLA9M71V.js","assets/globe-ob8fDthN.js","assets/resources-BVTdBUuD.js","assets/security-Drj8rYyC.js","assets/database-Bp5CTdXS.js","assets/security-DZspM1IR.js","assets/student-D0i3VML3.js","assets/support-BD8m8Xys.js","assets/support-dialog-D0_aqMHM.js","assets/termsofservice-B66kbyar.js","assets/testimonials-CHBHDCbQ.js","assets/troy-beebe-DOAEUqXJ.js","assets/app._shell-BhjkNs3J.js","assets/open-tabs-bar-Dv0iamVu.js","assets/add-group-dialog-yNuxu_Rc.js","assets/users-1RXCy96k.js","assets/badge-ZAv4uPDu.js","assets/textarea-CRvF-R5T.js","assets/command-BQz5H7Vp.js","assets/search-C7YAF5c9.js","assets/popover-DMt2cCX-.js","assets/useTriggerFocusGuards-oslYiMB2.js","assets/useAnchoredPopupScrollLock-DvGw__vT.js","assets/ToolbarRootContext-CjPwpG1N.js","assets/forms-j8RKj94k.js","assets/kbd-dpkC1Dxr.js","assets/useGroups-BYVrymZ0.js","assets/group-emoji-picker-KnFjylPi.js","assets/add-pill-BHqcAF5W.js","assets/useSearch-BZL6tJNS.js","assets/useMatch-CXcR3LW5.js","assets/matchContext-DCngCOSU.js","assets/voice-mode-provider-46J5bBBK.js","assets/select-BClb-kqQ.js","assets/getPseudoElementBounds-Bmz-yE61.js","assets/dropdown-menu-K66hKZgv.js","assets/chevron-right-DNnMwxPs.js","assets/Separator-DLexVc4n.js","assets/alarm-clock-DLmgbX_L.js","assets/archive-D4N4RLN2.js","assets/audio-lines-DyRqNmqi.js","assets/cake-C4_OI0Bl.js","assets/chart-bar-increasing-D6knI70M.js","assets/dice-5-zLbefuOb.js","assets/download-B6NumSlE.js","assets/folder-plus-DYio5UMk.js","assets/folder-DPMoh5tx.js","assets/gift-CVsmoGpt.js","assets/git-merge-JmNpazsP.js","assets/map-pinned-vlbZgM4V.js","assets/map-vAklHZzt.js","assets/monitor-CWIetuJH.js","assets/refresh-cw-BlWPjmdm.js","assets/settings-uAhKyDMW.js","assets/smartphone-Big7WQc7.js","assets/group-actions-menu-BgIrRlnY.js","assets/ellipsis-vertical-Q7IHwzTx.js","assets/pencil-RJiJbciG.js","assets/useFavorites-Cs0X7VsD.js","assets/trash-2-DK_tTWZq.js","assets/label-C9Aw1KbL.js","assets/alert-dialog-Hk8Z4dmc.js","assets/useViews-YpEQK7xq.js","assets/user-plus-CWqyRmjO.js","assets/vector-square-D8bp0PVC.js","assets/contact-avatar-CrnFZt6j.js","assets/avatar-BZypZgbp.js","assets/contact-name-DpwC5Ic6.js","assets/global-dialogs-context-O_qSdfAN.js","assets/command-bar-context-D1TUj3Y-.js","assets/react-ABKIUGrl.js","assets/sortable-U7TYts3Y.js","assets/link-target-ClRaW4Bk.js","assets/collapsible-CvUIDsUM.js","assets/workspace-switcher-Ck5IiQGB.js","assets/workspace-context-hridoLpf.js","assets/useTeamsVisibility-BN6uV1jr.js","assets/copilot-mark-C-rPW3hh.js","assets/settings-nav-NS-KM03t.js","assets/useReminders-C5dxVNsc.js","assets/useInfiniteQuery-Dqr4oNiL.js","assets/useUser-CEDi2qrR.js","assets/right-panel-store-lE9f09kW.js","assets/app-right-panel-Bw0DDQQv.js","assets/app.auth-DZSkqIUo.js","assets/app.desktop-setup-iDngbB9y.js","assets/shield-check-BQarn7oP.js","assets/switch-Dqv9wqeP.js","assets/onboarding-loading-BRWcj44P.js","assets/useLinkedInDeviceSync-CAWrj_Km.js","assets/desktop-shell-capabilities-DUBHXBV-.js","assets/connect-app-tile-CEOJOOt0.js","assets/onboarding-layout-CCGBmpzC.js","assets/chevron-left-jMtOodAA.js","assets/watercolor-CbnsUeIg.js","assets/connect-shell-WbeWK6Xq.js","assets/onboarding-browser-BiBFDQEv.js","assets/shortcut-accelerator-uJwBRl6U.js","assets/app.extension-handler-BAJHcU4T.js","assets/useDexExtension-CKyqZ3Zi.js","assets/app.join-DZ6aad7f.js","assets/teams-route-BInhTC35.js","assets/app.join-CYn43cVa.js","assets/empty-state-Bg-ZDnbw.js","assets/workspace-navigation-XXY297xU.js","assets/app.onboarding-Efh2UTWg.js","assets/onboarding-experiment-context-CaXq_H2M.js","assets/app.plans-B8YFcEi0.js","assets/arrow-left-CXszEKyF.js","assets/useBilling-BK-ppDEu.js","assets/plans-Bo4TWKm3.js","assets/app.reactivation-BBUkjnsT.js","assets/account-footer-CQBENqwI.js","assets/app.settings-EW2Bg28w.js","assets/desktop-device-sett
1ings-DDdFcqAa.js","assets/app.subscribe-Edo_BGZ2.js","assets/addDays-B8vKWhpR.js","assets/use-checkout-session-VHBMAxfW.js","assets/payment-step-BB6akSOP.js","assets/tag-C-ZMLnCC.js","assets/stripe-BlP6G83_.js","assets/auth.desktop-login-DzHBXP-e.js","assets/auth.open-app-B01DUWiT.js","assets/app-handoff-DR6haEBs.js","assets/mobile-app-dgooAIHl.js","assets/blog.index-DTIFaJIm.js","assets/resources-section-y5Yw1O5D.js","assets/arrow-right-Cp1HfMfv.js","assets/image-SF7HVU_5.js","assets/LayoutGroup-Bd6-_6pj.js","assets/article-card-CwSqQbgP.js","assets/pagination-DMpe8xQt.js","assets/blog._slug-CMzp-vc4.js","assets/related-articles-CaSGUqcT.js","assets/guides.index-DTx0sGsR.js","assets/guides._slug-xC-LFxaH.js","assets/integrations.index-DoYqGha4.js","assets/request-cta-uyfxOOTL.js","assets/integrations._slug-B2pAOB9C.js","assets/resources.index-fm3M2JqO.js","assets/shared._token-De1mJR0m.js","assets/shared._token-CstBWcX5.js","assets/unlink-DMseM9Av.js","assets/unsubscribe._type-DM4NTIWT.js","assets/use-cases._slug-DejSqmHD.js","assets/app._shell.index-D6j4Y-Hs.js","assets/queryOptions-CTgvdgzX.js","assets/arrow-up-right-Blo3KWb4.js","assets/row-link-overlay-B0CKVZ51.js","assets/link-B3jda3g8.js","assets/rich-text-emit-loop-BrI38Ita.js","assets/mention-label-BdEU43A8.js","assets/safe-html-nIujADOh.js","assets/add-reminder-dialog-BlxFjaAm.js","assets/calendar-B8bx1GI6.js","assets/addMonths-CWGU4XOq.js","assets/reminder-date-CaSi_Fov.js","assets/typeable-date-picker-DGdKDY39.js","assets/esm-DJX5CUar.js","assets/useFocusPopupOnOpen-DwFyI4YC.js","assets/network-update-modal-CwBwHSfM.js","assets/mail-Bysn242-.js","assets/social-icons-CiOa7gHM.js","assets/note-contact-links-CxWjMy3n.js","assets/contact-socials-B-ERlxQ9.js","assets/useSocialSettings-CrcqmBEb.js","assets/useCalendarWriteAccess-UIwP6KPi.js","assets/useSyncIntegrations-DNV8zTH7.js","assets/useLinkedInSync-Da7b3sWT.js","assets/useOpenContactDetail-BfQc_FK5.js","assets/email-client-link-BL2_4W1S.js","assets/useGrantCalendarAccess-DWco1xFB.js","assets/copilot-composer-Bndcnx68.js","assets/useVoiceRecording-B_vlFZIO.js","assets/composer-waves-CiaWpbGa.js","assets/keep-in-touch-BKCHwGJs.js","assets/resurface-card-CaS8Rhmx.js","assets/useResurfaceReminders-MR7R1aN3.js","assets/contact-helpers-B9WzRBv_.js","assets/contact-identity-BbufSOab.js","assets/useKeepInTouch-Cs-ftML_.js","assets/useContactById-QS7Uh4QC.js","assets/row-action-button-BwtQNVA8.js","assets/google-calendar-v2-btWgj70J.js","assets/calendar-compose-url-D3Ij1FjB.js","assets/use-data-table-keyboard-nav-VwTUzl17.js","assets/useBirthdays-i_avhg0s.js","assets/birthday-month-day-BUQTMb5Q.js","assets/section-info-tooltip-CcjRBRDS.js","assets/section-cursor-D-6Yb5zm.js","assets/kit-snooze-action-B74ArKDv.js","assets/date-presets-DYSy5gp2.js","assets/useContactsCount-Cjl8xlXf.js","assets/connect-linkedin-mobile-dialog-6lG-4-17.js","assets/connect-on-mobile-dialog-B8aW1PCG.js","assets/useSmsSettings-MXmCXvJ3.js","assets/reminder-contact-avatars-DKCdrTyb.js","assets/imessage-sync-dialog-BeVwmbUE.js","assets/sync-success-panel-BBEnUd8i.js","assets/two-way-sync-dialog-mQKLcQdt.js","assets/tabs-tbvWYdHn.js","assets/copy-field-C6XtdpYq.js","assets/setup-steps-DNejx6a1.js","assets/useRecentContacts-D4Z0CCYJ.js","assets/app._shell.archive-CVBYMPif.js","assets/contacts-page-MvziDj-A.js","assets/selection-toolbar-Bf8AEAz3.js","assets/bulk-archive-delete-DPbQ8nRK.js","assets/send-DWbtj1j6.js","assets/rich-text-edit-popover-Dog9wNYG.js","assets/add-groups-popover-18KplL9u.js","assets/group-tree-Qvpyju8B.js","assets/cell-edit-seed-CDWxoogg.js","assets/useSubscription-D3GtGNWq.js","assets/contact-picker-list-otC8lI5p.js","assets/esm-BwQ-Yh2T.js","assets/contact-identity-BLPB2n1Y.js","assets/useCustomFields-DFIUxCiU.js","assets/merge-contacts-D5q6OkT2.js","assets/bulk-archive-delete-UultBQg5.css","assets/priority-icon-BvE4o1mD.js","assets/bulk-actions-BmF1ws8S.js","assets/useTags-DjPG6oA9.js","assets/useBulkContactActions-qfQiYtWg.js","assets/separator-B5ceAnpP.js","assets/useExports-Bq1udhDG.js","assets/contact-glance-model-DJel-B5T.js","assets/useContactRelations-B8uto3DK.js","assets/earth-BxaLowXY.js","assets/funnel-BMgQrlib.js","assets/contacts-list-view-C5cXtznc.js","assets/eye-off-RMpVCjot.js","assets/useContactCustomFields-DZQjyFGf.js","assets/useCustomFieldDefinitions-BI3w1lls.js","assets/data-table-D5owiS5E.js","assets/useScrollMargin-DHArOqFB.js","assets/arrow-down-up-OvuYYI4t.js","assets/custom-field-fields-CRByalG6.js","assets/useIsTruncated-onqAXPPh.js","assets/grip-vertical-CLtENldZ.js","assets/map-pin-CZMSbxlS.js","assets/message-square-DlW_Wyx3.js","assets/phone-BQaLYlyg.js","assets/places-autocomplete-Ku-uIfv3.js","assets/useProfessionalGate-Js1sbTJG.js","assets/useViewMembership-DXZwyEDf.js","assets/sort-options-D7RoGjJN.js","assets/add-contacts-to-group-dialog-DSpU--Ta.js","assets/sort-menu-Cmh_9JPV.js","assets/eye-W9ag2Np9.js","assets/expanding-search-C5Y14DI3.js","assets/useDragScroll-BFNwwyZl.js","assets/custom-field-form-B5rMCx5-.js","assets/custom-fields-wAs2uSCS.js","assets/app._shell.birthdays-mpEIeyBy.js","assets/framed-card-J1AvIVx5.js","assets/app._shell.contacts-DtL9-15d.js","assets/app._shell.copilot-e3TYs-jG.js","assets/useParams-BKCQxx67.js","assets/useLocation-B2q-LhhP.js","assets/sliders-horizontal-D9f1W2dE.js","assets/copilot-handoff-Rx5RTH4z.js","assets/app._shell.game-DysFoRzj.js","assets/html-to-text-CatXaDwq.js","assets/groups-chips-DgZcO4wP.js","assets/country-select-Dxr8c8F9.js","assets/useWorkflowSettings-mFbTZ_WI.js","assets/shortcut-tooltip-D0drWtKd.js","assets/priority-map-colors-DGZ9FaLG.js","assets/canvas-colors-D7dva3z1.js","assets/kit-contact-identity-BhrQYeSG.js","assets/app._shell.import-XGhxcAbz.js","assets/app._shell.keep-in-touch-CSkJi82n.js","assets/app._shell.locations-YSglBiND.js","assets/add-to-location-dialog-CB6OFrto.js","assets/app._shell.map-BBe0dPLl.js","assets/contacts-map-view-CvjYaGF1.js","assets/net
1work-graph-DF0Q746U.js","assets/use-group-filter-z5or-3S8.js","assets/app._shell.merge-and-fix-BjgAdib4.js","assets/app._shell.network-ghCh4RUZ.js","assets/app._shell.priority-map-zW6Zzdbj.js","assets/detail-right-panel-Fy4OKc3T.js","assets/contact-chip-CVAB_V0g.js","assets/contact-glance-sections-9msZsPz4.js","assets/ego-pulse-BZA6InwN.js","assets/app._shell.refer-Cvp0eldN.js","assets/app._shell.reminders-BIncvi-3.js","assets/app._shell.search-DdK83Pen.js","assets/notes-search-mD2bh7K3.js","assets/timeline-entry-icon-C2as9cig.js","assets/app._shell.timeline-B0cUj5Tg.js","assets/timeline-filters-popover-B1trnncv.js","assets/useGranolaConnection-CPqNJ0DV.js","assets/app.auth.action-BlzO-S92.js","assets/auth-collapse-DvWegutB.js","assets/auth-link-errors-CZi5lSLx.js","assets/app.auth.check-email-4kS6XFTh.js","assets/app.auth.device-code-D3fsUz_2.js","assets/circle-check-big-DWnutnvj.js","assets/key-round-CL8JQ6E3.js","assets/input-otp-Bz6zFTZ8.js","assets/mcp-oauth-56Iz_f1i.js","assets/app.auth.forgot-password-UWoH8tOb.js","assets/app.auth.mcp-authorize-D9ZqzfX_.js","assets/app.auth.sign-in-CJcoHRdz.js","assets/route-B5x-Zc7G.js","assets/root-D1UMU1Sc.js","assets/post-auth-landing-Bq-aCkLW.js","assets/app.auth.sign-up-BX6tRM8-.js","assets/app.onboarding.about-C7NPpcVh.js","assets/linkedin-slug-BGEdRZER.js","assets/useOnboarding-CQs1AkvI.js","assets/app.onboarding.connect-BEHi2wNJ.js","assets/useConnectAccounts-C2G9rs3T.js","assets/instagram-sync-dialog-DhsfIkZT.js","assets/facebook-sync-dialog-CydPfUfF.js","assets/whatsapp-sync-dialog-CGYBVGqO.js","assets/useWhatsAppPairing-CdrdAUBn.js","assets/app.onboarding.connect-email-CEiaVl5E.js","assets/app.onboarding.connect-imessage-oFq5sGFO.js","assets/app.onboarding.connect-instagram-Ccf6645W.js","assets/app.onboarding.connect-linkedin-D1_BAwOn.js","assets/linkedin-device-sync-dialog-BPhjhVJl.js","assets/app.onboarding.connect-mcp-BnBrQZZK.js","assets/workflow-CtXuKoQ8.js","assets/mcp-setup-dialog-C2nQ2q_b.js","assets/app.onboarding.connect-whatsapp-BWBNNM9m.js","assets/app.onboarding.connected-QELwiKU8.js","assets/app.onboarding.contacts-CSuinraF.js","assets/oauth.schemas-Ye-gnAZZ.js","assets/app.onboarding.copilot-RB7Owr9M.js","assets/toggle-group-CMXk8ptO.js","assets/app.onboarding.everywhere-BpIxi8hY.js","assets/app.onboarding.extension-CSfr9IPd.js","assets/app.onboarding.identity-Cqe455Ld.js","assets/app.onboarding.phone-B_ctRRB7.js","assets/usePhoneVerification-BnzLLUph.js","assets/app.onboarding.resurface-Dw4YMp7o.js","assets/app.settings.index-gL6yBCs4.js","assets/app.settings._section-DN7AEBfo.js","assets/settings-coming-soon-DCj68N1N.js","assets/settings-page-WbccueZu.js","assets/app.settings.api-BcCg4csp.js","assets/blocks-BKWRvteO.js","assets/network-CvP7hchb.js","assets/settings-card-CgtP1D_E.js","assets/integration-row-BiQZoPhX.js","assets/app.settings.automation-Zy6_oamV.js","assets/useNotificationPreferences-C_Z8YGXQ.js","assets/section-card-DLOKpndO.js","assets/settings-toggle-BFv2Uf4v.js","assets/app.settings.billing-sXTJXmWL.js","assets/zap-BFj5Q30P.js","assets/app.settings.custom-fields-BjdXWIbu.js","assets/app.settings.data-CrVRQY66.js","assets/SiInstagram-B7IwE4gr.js","assets/useMeetingTypes-DWLo_8aX.js","assets/settings-empty-state-BmC1wvMR.js","assets/app.settings.desktop-pRfvjOHi.js","assets/provider-row-DAYKKfkt.js","assets/app.settings.general-doWvObId.js","assets/app.settings.import-export-D9b0a_GP.js","assets/organize-with-ai-dialog-Boe6Et0S.js","assets/import-dialog-states-BsRD0Rwq.js","assets/app.settings.members-DBcV58xQ.js","assets/teams-only-CWtMS3Cu.js","assets/teams-toast-Dyjf7EfD.js","assets/app.settings.note-types-D5KsQ-_q.js","assets/app.settings.notifications-CzIxn04h.js","assets/app.settings.profile-BAe-FjPi.js","assets/timezone-select-uf5yh2lI.js","assets/app.settings.social-links-DOIY15Dg.js","assets/app.settings.sync-integrations-Bc9Gunn9.js","assets/app.settings.tags-DKkwu7l4.js","assets/app.settings.team-BLsXFcXV.js","assets/workspace.schemas-CF8lXjpm.js","assets/app.settings.text-messaging-CIbO4lIo.js","assets/app.settings.workspace-lM9AAlhb.js","assets/app.settings.workspace-billing-CmcI4h2m.js","assets/app.settings.zapier-DQEXI27I.js","assets/app.w._slug-Cy_iQMWd.js","assets/app.w._slug-CSmXb3tD.js","assets/blog.author._slug-2RVbpMr9.js","assets/blog.page._page-ewnBwOai.js","assets/blog.tag._tag-BfI4n_L2.js","assets/app._shell.group._groupId-wu8jtGOq.js","assets/app._shell.location._locationName-CXi3y51l.js","assets/app._shell.network.index-DKNZPVsc.js","assets/manage-groups-dialog-KOPcLUOV.js","assets/ungrouped-tray-OUaDlMrz.js","assets/net
vendor: 33,612 bytes, lines 1-9
1work-contact-card-BYY-nSin.js","assets/app._shell.network.companies-22XPLu_E.js","assets/app._shell.network.insights-Bky2-Eqz.js","assets/app._shell.network.related-CRcuSyu2.js","assets/app._shell.tag._tagId-CH9NIbIh.js","assets/app._shell.view._viewId-CTmZgtTe.js","assets/app.auth.referral._kind._id-DQoXTyJ9.js","assets/instrument.client-1NGtwsBX.js","assets/handled-errors-wI2j7CLL.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.20260930.1216-production.7e7ada9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bf5cd010-5660-4b6f-a5cc-4351710df1f6`,e._sentryDebugIdIdentifier=`sentry-dbid-bf5cd010-5660-4b6f-a5cc-4351710df1f6`)}catch{}})();import{a as e,r as t,t as n}from"./rolldown-runtime-B9z5rJDh.js";import{t as r}from"./react-DuuDrPmI.js";import{t as i}from"./react-dom-owto21z9.js";import{n as a,r as o,t as s}from"./root-D1UMU1Sc.js";import{n as c,r as l,t as u}from"./redirect-DZtyjygj.js";import{_ as d,a as f,c as p,d as m,f as h,g,h as _,i as v,l as y,m as b,n as x,o as S,p as C,r as w,s as T,t as E,u as D}from"./utils-DXLUb-oW.js";import{a as O,c as k,i as A,n as j,o as M,r as ee,t as N}from"./link-sjcr72Kf.js";import{n as P,r as F}from"./useMatch-CXcR3LW5.js";import{n as I,r as L,t as te}from"./route-B5x-Zc7G.js";import{i as ne,r as R}from"./useNavigate-DGRcJgvv.js";import{t as z}from"./jsx-runtime-CLUyyI6b.js";import{n as re,t as ie}from"./ClientOnly-JNlX2fUu.js";import{n as ae,t as oe}from"./useRouter-CKAmXPLj.js";import{n as se}from"./matchContext-DCngCOSU.js";import{t as ce}from"./useSelector-CY9YVSiw.js";import{y as le}from"./mutation-3S-ZMon5.js";import{n as ue,r as de}from"./root-provider-BJNiMjwt.js";import{t as fe}from"./compiler-runtime-9NAQJQ9E.js";import{t as pe}from"./renderer-D5eCG9Sl.js";import{a as me,i as he,n as ge,r as _e,t as ve}from"./consent-DFcUd5vG.js";import{a as ye,i as be,n as xe,o as Se,r as Ce,s as we,t as Te}from"./util-B9gBfYZV.js";import{a as Ee,i as De,t as Oe}from"./dub-CyTBCOlj.js";import{t as ke}from"./app-version-DGZTWFMD.js";import{n as B,t as V}from"./preload-helper-BWfgEyY-.js";import{f as Ae,n as je,t as Me}from"./useIsoLayoutEffect-BxtQW3kb.js";import{a as Ne,c as Pe,d as Fe,i as Ie,s as Le,t as Re,u as ze}from"./useRenderElement-Cg6E-wWo.js";import{t as Be}from"./useButton-B80sgS_7.js";import{n as Ve,r as He,t as Ue}from"./button-DBRhyh8W.js";import{t as We}from"./utils-DzrcjOs1.js";import{t as Ge}from"./createLucideIcon-BCLfs0cE.js";import{t as Ke}from"./earth-BxaLowXY.js";import{t as qe}from"./blocks-BKWRvteO.js";import{t as Je}from"./download-B6NumSlE.js";import{t as Ye}from"./file-text-CPkStb_j.js";import{t as Xe}from"./globe-ob8fDthN.js";import{t as Ze}from"./mail-Bysn242-.js";import{t as Qe}from"./phone-BQaLYlyg.js";import{t as $e}from"./play-CTTx8xsd.js";import{t as et}from"./refresh-cw-BlWPjmdm.js";import{t as tt}from"./workflow-CtXuKoQ8.js";import{t as nt}from"./zap-BFj5Q30P.js";import{t as rt}from"./x-BjB36Axo.js";import{n as it,t as at}from"./SiInstagram-B7IwE4gr.js";import{i as ot,n as st}from"./app-urls-DnuX-LOB.js";import{D as ct,E as lt,O as ut,T as dt,a as ft,i as pt,n as mt,o as ht,r as gt,t as _t,u as vt}from"./react-Y5vWRT64.js";import{n as yt}from"./motion-BF2c2zRW.js";import{a as bt,i as xt,o as St,r as Ct}from"./seo-Bs-VONhJ.js";import{n as wt,t as Tt}from"./external-links-MOe2rQSO.js";import{a as Et,i as Dt,l as Ot,n as kt,t as At}from"./billing.constants-Bp31pjvb.js";import{a as jt,i as Mt,t as Nt}from"./plans-CpzjkMqn.js";import{t as Pt}from"./faqs-LS811abN.js";import{r as Ft,t as It}from"./security-DZspM1IR.js";import{n as H}from"./page-head-CbglmU05.js";import{S as Lt,i as Rt,n as zt,r as Bt,s as Vt,v as Ht,y as Ut}from"./coerce-DgR-QC5y.js";import{t as Wt}from"./padlock-mark-D-LrUA5T.js";import{n as Gt}from"./useSDK-C7watZ5C.js";import{o as Kt,r as qt}from"./social-8mDQQbFX.js";import{a as Jt,n as Yt,t as Xt}from"./useTransitionStatus-pooLrJFQ.js";import{n as Zt}from"./useTimeout-DO5BKmDh.js";import{n as Qt,t as $t}from"./visuallyHidden-hsH_GqeN.js";import{f as en,t as tn,y as nn}from"./createBaseUIEventDetails-CDiLcGlQ.js";import{t as rn}from"./useValueChanged-Dv4Kq1g7.js";import{a as an,l as on}from"./dates-4KV4km8S.js";import{i as sn,l as cn}from"./teams-flag-D-wrkhqH.js";import{a as ln,c as un,l as dn,n as fn,o as pn,r as mn,s as hn,t as gn}from"./social-icons-CiOa7gHM.js";import{n as _n,t as vn}from"./checkout-offers-DuyZc1Fs.js";import{a as yn,n as bn,r as xn}from"./tooltip-yWeNpkDN.js";import{c as Sn,r as Cn,s as wn,t as Tn}from"./dialog-BOQnXPEm.js";import{r as En}from"./contact-identity-BbufSOab.js";import{t as Dn}from"./badge-ZAv4uPDu.js";import{t as On}from"./html-to-text-CatXaDwq.js";import{n as kn,r as An,t as jn}from"./kevin-smokler-Cz2e6enU.js";import{n as Mn,t as Nn}from"./troy-beebe-DOAEUqXJ.js";import{a as Pn,i as Fn,o as In,s as Ln,t as Rn}from"./social-proof-D2DXR4Uk.js";var zn=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}}}})),Bn=n(((e,t)=>{t.exports=zn()})),Vn=n((e=>{var t=Bn(),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 N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},L=[],te=-1;function ne(e){return{current:e}}function R(e){0>te||(e.current=L[te],L[te]=null,te--)}function z(e,t){te++,L[te]=e.current,e.current=t}var re=ne(null),ie=ne(null),ae=ne(null),oe=ne(null);function se(e,t){switch(z(ae,t),z(ie,e),z(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Jd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}R(re),z(re,e)}function ce(){R(re),R(ie),R(ae)}function le(e){e.memoizedState!==null&&z(oe,e);var t=re.current,n=Jd(t,e.type);t!==n&&(z(ie,e),z(re,n))}function ue(e){ie.current===e&&(R(re),R(ie)),oe.current===e&&(R(oe),ip._currentValue=I)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+de+e+fe}var me=!1;function he(e,t){if(!e||me)return``;me=!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{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,Ce=t.unstable_now,we=t.unstable_getCurrentPriorityLevel,Te=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,B=t.log,V=t.unstable_setDisableYieldValue,Ae=null,je=null;function Me(e){if(typeof B==`function`&&V(e),je&&typeof je.setStrictMode==`function`)try{je.setStrictMode(Ae,e)}catch{}}var Ne=Math.clz32?Math.clz32:Ie,Pe=Math.log,Fe=Math.LN2;function Ie(e){return e>>>=0,e===0?32:31-(Pe(e)/Fe|0)|0}var Le=256,Re=262144,ze=4194304;function Be(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 Ve(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=Be(n))):i=Be(o):i=Be(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Be(n))):i=Be(o)):i=Be(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 He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ue(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 We(){var e=ze;return ze<<=1,!(ze&62914560)&&(ze=4194304),e}function Ge(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qe(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-Ne(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&&Je(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Je(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ye(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ne(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Xe(e,t){var n=t&-t;return n=n&42?1:Ze(n),(n&(e.suspendedLanes|t))===0?n:0}function Ze(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 Qe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $e(){var e=F.p;return e===0?(e=window.event,e===void 0?32:bp(e.type)):e}function et(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var tt=Math.random().toString(36).slice(2),nt=`__reactFiber$`+tt,rt=`__reactProps$`+tt,it=`__reactContainer$`+tt,at=`__reactEvents$`+tt,ot=`__reactListeners$`+tt,st=`__reactHandles$`+tt,ct=`__reactResources$`+tt,lt=`__reactMarker$`+tt;function ut(e){delete e[nt],delete e[rt],delete e[at],delete e[ot],delete e[st]}function dt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[nt])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function ft(e){if(e=e[nt]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function mt(e){var t=e[ct];return t||=e[ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ht(e){e[lt]=!0}var gt=new Set,_t={};function vt(e,t){yt(e,t),yt(e+`Capture`,t)}function yt(e,t){for(_t[e]=t,e=0;e<t.length;e++)gt.add(t[e])}var bt=RegExp(`^[: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][: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]*$`),xt={},St={};function Ct(e){return ve.call(St,e)?!0:ve.call(xt,e)?!1:bt.test(e)?St[e]=!0:(xt[e]=!0,!1)}function wt(e,t,n){if(Ct(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 Tt(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`):H(e,o,Dt(n)):H(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 H(e,t,n){t===`number`&&Mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Lt(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 Rt(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 zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(N(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}n=Dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),At(e)}function Bt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vt=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 Ht(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||Vt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ut(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&&Ht(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Ht(e,a,t[a])}function Wt(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 Gt=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`]]),Kt=/^[\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 qt(e){return Kt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Jt(){}var Yt=null;function Xt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zt=null,Qt=null;function $t(e){var t=ft(e);if(t&&(e=t.stateNode)){var n=e[rt]||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[rt]||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`:Rt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Lt(e,!!n.multiple,t,!1)}}}var en=!1;function tn(e,t,n){if(en)return e(t,n);en=!0;try{return e(t)}finally{if(en=!1,(Zt!==null||Qt!==null)&&(Cu(),Zt&&(t=Zt,e=Qt,Qt=Zt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function nn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[rt]||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 rn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),an=!1;if(rn)try{var on={};Object.defineProperty(on,"passive",{get:function(){an=!0}}),window.addEventListener(`test`,on,on),window.removeEventListener(`test`,on,on)}catch{an=!1}var sn=null,cn=null,ln=null;function un(){if(ln)return ln;var e,t=cn,n=t.length,r,i=`value`in sn?sn.value:sn.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 ln=i.slice(e,1<r?1-r:void 0)}function dn(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 fn(){return!0}function pn(){return!1}function mn(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)?fn:pn,this.isPropagationStopped=pn,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=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gn=mn(hn),_n=m({},hn,{view:0,detail:0}),vn=mn(_n),yn,bn,xn,Sn=m({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,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!==xn&&(xn&&e.type===`mousemove`?(yn=e.screenX-xn.screenX,bn=e.screenY-xn.screenY):bn=yn=0,xn=e),yn)},movementY:function(e){return`movementY`in e?e.movementY:bn}}),Cn=mn(Sn),wn=mn(m({},Sn,{dataTransfer:0})),Tn=mn(m({},_n,{relatedTarget:0})),En=mn(m({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),Dn=mn(m({},hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),On=mn(m({},hn,{data:0})),kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},An={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`},jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jn[e])?!!t[e]:!1}function Nn(){return Mn}var Pn=mn(m({},_n,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?An[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return e.type===`keypress`?dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Fn=mn(m({},Sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=mn(m({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Ln=mn(m({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=mn(m({},Sn,{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})),zn=mn(m({},hn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=rn&&`CompositionEvent`in window,Un=null;rn&&`documentMode`in document&&(Un=document.documentMode);var Wn=rn&&`TextEvent`in window&&!Un,Gn=rn&&(!Hn||Un&&8<Un&&11>=Un),Kn=` `,qn=!1;function Jn(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 Yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Xn=!1;function Zn(e,t){switch(e){case`compositionend`:return Yn(t);case`keypress`:return t.which===32?(qn=!0,Kn):null;case`textInput`:return e=t.data,e===Kn&&qn?null:e;default:return null}}function Qn(e,t){if(Xn)return e===`compositionend`||!Hn&&Jn(e,t)?(e=un(),ln=cn=sn=null,Xn=!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 $n={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 er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$n[e.type]:t===`textarea`}function tr(e,t,n,r){Zt?Qt?Qt.push(r):Qt=[r]:Zt=r,t=jd(t,`onChange`),0<t.length&&(n=new gn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var nr=null,rr=null;function ir(e){Cd(e,0)}function ar(e){if(jt(pt(e)))return e}function or(e,t){if(e===`change`)return t}var sr=!1;if(rn){var cr;if(rn){var lr=`oninput`in document;if(!lr){var ur=document.createElement(`div`);ur.setAttribute(`oninput`,`return;`),lr=typeof ur.oninput==`function`}cr=lr}else cr=!1;sr=cr&&(!document.documentMode||9<document.documentMode)}function dr(){nr&&(nr.detachEvent(`onpropertychange`,fr),rr=nr=null)}function fr(e){if(e.propertyName===`value`&&ar(rr)){var t=[];tr(t,rr,e,Xt(e)),tn(ir,t)}}function pr(e,t,n){e===`focusin`?(dr(),nr=t,rr=n,nr.attachEvent(`onpropertychange`,fr)):e===`focusout`&&dr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ar(rr)}function hr(e,t){if(e===`click`)return ar(t)}function gr(e,t){if(e===`input`||e===`change`)return ar(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(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(!ve.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(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=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(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 wr(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 Tr=rn&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Mt(r)||(r=Er,`selectionStart`in r&&wr(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: 72,428 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=jd(Dr,`onSelect`),0<r.length&&(t=new gn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};rn&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`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(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),vt(t,[e])}var Kr=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)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[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&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(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-Ne(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<q)throw q=0,hu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ri(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 ii(e,t,n,r){return new ri(e,t,n,r)}function ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=ii(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 si(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 ci(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)ai(e)&&(s=1);else if(typeof e==`string`)s=Yf(e,n,re.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=ii(31,n,t,i),e.elementType=O,e.lanes=a,e;case v:return li(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=ii(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case w:return e=ii(13,n,t,i),e.elementType=w,e.lanes=a,e;case T:return e=ii(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=ii(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function li(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function ui(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function di(e){var t=ii(18,null,null,0);return t.stateNode=e,t}function fi(e,t,n){return t=ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pi=new WeakMap;function mi(e,t){if(typeof e==`object`&&e){var n=pi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},pi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var hi=[],gi=0,_i=null,vi=0,yi=[],bi=0,xi=null,Si=1,Ci=``;function wi(e,t){hi[gi++]=vi,hi[gi++]=_i,_i=e,vi=t}function Ti(e,t,n){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,xi=e;var r=Si;e=Ci;var i=32-Ne(r)-1;r&=~(1<<i),n+=1;var a=32-Ne(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Si=1<<32-Ne(t)+i|n<<i|r,Ci=a+e}else Si=1<<a|n<<i|r,Ci=e}function Ei(e){e.return!==null&&(wi(e,1),Ti(e,1,0))}function Di(e){for(;e===_i;)_i=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null;for(;e===xi;)xi=yi[--bi],yi[bi]=null,Ci=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null}function Oi(e,t){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,Si=t.id,Ci=t.overflow,xi=e}var ki=null,Ai=null,ji=!1,Mi=null,Ni=!1,Pi=Error(o(519));function Fi(e){throw Vi(mi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Pi}function Ii(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[nt]=e,t[rt]=r,n){case`dialog`:wd(`cancel`,t),wd(`close`,t);break;case`iframe`:case`object`:case`embed`:wd(`load`,t);break;case`video`:case`audio`:for(n=0;n<xd.length;n++)wd(xd[n],t);break;case`source`:wd(`error`,t);break;case`img`:case`image`:case`link`:wd(`error`,t),wd(`load`,t);break;case`details`:wd(`toggle`,t);break;case`input`:wd(`invalid`,t),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:wd(`invalid`,t);break;case`textarea`:wd(`invalid`,t),zt(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||Ld(t.textContent,n)?(r.popover!=null&&(wd(`beforetoggle`,t),wd(`toggle`,t)),r.onScroll!=null&&wd(`scroll`,t),r.onScrollEnd!=null&&wd(`scrollend`,t),r.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||Fi(e,!0)}function Li(e){for(ki=e.return;ki;)switch(ki.tag){case 5:case 31:case 13:Ni=!1;return;case 27:case 3:Ni=!0;return;default:ki=ki.return}}function Ri(e){if(e!==ki)return!1;if(!ji)return Li(e),ji=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Yd(e.type,e.memoizedProps)),n=!n),n&&Ai&&Fi(e),Li(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ai=gf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ai=gf(e)}else t===27?(t=Ai,rf(e.type)?(e=hf,hf=null,Ai=e):Ai=t):Ai=ki?mf(e.stateNode.nextSibling):null;return!0}function zi(){Ai=ki=null,ji=!1}function Bi(){var e=Mi;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),Mi=null),e}function Vi(e){Mi===null?Mi=[e]:Mi.push(e)}var Hi=ne(null),Ui=null,Wi=null;function Gi(e,t,n){z(Hi,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Hi.current,R(Hi)}function qi(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 Ji(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),qi(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),qi(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 Yi(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;vr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===oe.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ip]:e.push(ip))}i=i.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){Ui=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return ea(Ui,e)}function $i(e,t){return Ui===null&&Zi(e),ea(e,t)}function ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(o(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ta=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()})}},na=t.unstable_scheduleCallback,ra=t.unstable_NormalPriority,ia={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function aa(){return{controller:new ta,data:new Map,refCount:0}}function oa(e){e.refCount--,e.refCount===0&&na(ra,function(){e.controller.abort()})}var sa=null,ca=0,la=0,ua=null;function da(e,t){if(sa===null){var n=sa=[];ca=0,la=hd(),ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ca++,t.then(fa,fa),t}function fa(){if(--ca===0&&sa!==null){ua!==null&&(ua.status=`fulfilled`);var e=sa;sa=null,la=0,ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pa(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 ma=P.S;P.S=function(e,t){au=Ce(),typeof t==`object`&&t&&typeof t.then==`function`&&da(e,t),ma!==null&&ma(e,t)};var ha=ne(null);function ga(){var e=ha.current;return e===null?Ul.pooledCache:e}function _a(e,t){t===null?z(ha,ha.current):z(ha,t.pool)}function va(){var e=ga();return e===null?null:{parent:ia._currentValue,pool:e}}var ya=Error(o(460)),ba=Error(o(474)),xa=Error(o(542)),Sa={then:function(){}};function Ca(e){return e=e.status,e===`fulfilled`||e===`rejected`}function wa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Jt,Jt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oa(e),e;default:if(typeof t.status==`string`)t.then(Jt,Jt);else{if(e=Ul,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,Oa(e),e}throw Ea=t,ya}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ea=e,ya):e}}var Ea=null;function Da(){if(Ea===null)throw Error(o(459));var e=Ea;return Ea=null,e}function Oa(e){if(e===ya||e===xa)throw Error(o(483))}var ka=null,Aa=0;function ja(e){var t=Aa;return Aa+=1,ka===null&&(ka=[]),wa(ka,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Na(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 Pa(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=oi(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=ui(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&&Ta(a)===t.type)?(t=i(t,n.props),Ma(t,n),t.return=e,t):(t=ci(n.type,n.key,n.props,null,e.mode,r),Ma(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=fi(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=li(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=ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=ci(t.type,t.key,t.props,null,e.mode,n),Ma(n,t),n.return=e,n;case _:return t=fi(t,e.mode,n),t.return=e,t;case D:return t=Ta(t),f(e,t,n)}if(N(t)||j(t))return t=li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ja(t),n);if(t.$$typeof===S)return f(e,$i(e,t),n);Na(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=Ta(n),p(e,t,n,r)}if(N(n)||j(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ja(n),r);if(n.$$typeof===S)return p(e,t,$i(e,n),r);Na(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=Ta(r),m(e,t,n,r,i)}if(N(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,ja(r),i);if(r.$$typeof===S)return m(e,t,n,$i(t,r),i);Na(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),ji&&wi(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 ji&&wi(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)}),ji&&wi(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),ji&&wi(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 ji&&wi(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)}),ji&&wi(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&&Ta(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ma(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===v?(c=li(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=ci(a.type,a.key,a.props,null,e.mode,c),Ma(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=fi(a,e.mode,c),c.return=e,e=c}return s(e);case D:return a=Ta(a),b(e,r,a,c)}if(N(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,ja(a),c);if(a.$$typeof===S)return b(e,r,$i(e,a),c);Na(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=ui(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Aa=0;var i=b(e,t,n,r);return ka=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(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 Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Ha(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,Ye(e,n)}}function Ua(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 Wa=!1;function Ga(){if(Wa){var e=ua;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!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?(Gl&f)===f:(r&f)===f){f!==0&&f===la&&(Wa=!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:La=!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),G|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Ja(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qa(n[e],t)}var Ya=ne(null),Xa=ne(0);function Za(e,t){e=Yl,z(Xa,e),z(Ya,t),Yl=e|t.baseLanes}function Qa(){z(Xa,Yl),z(Ya,Ya.current)}function $a(){Yl=Xa.current,R(Ya),R(Xa)}var eo=ne(null),to=null;function no(e){var t=e.alternate;z(so,so.current&1),z(eo,e),to===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(to=e)}function ro(e){z(so,so.current),z(eo,e),to===null&&(to=e)}function io(e){e.tag===22?(z(so,so.current),z(eo,e),to===null&&(to=e)):ao(e)}function ao(){z(so,so.current),z(eo,eo.current)}function oo(e){R(eo),to===e&&(to=null),R(so)}var so=ne(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||df(n)||ff(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 lo=0,uo=null,fo=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(o(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return lo=a,uo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Bs:Vs,go=!1,a=n(r,i),go=!1,ho&&(a=To(t,n,r,i)),wo(e),a}function wo(e){P.H=zs;var t=fo!==null&&fo.next!==null;if(lo=0,po=fo=uo=null,mo=!1,vo=0,yo=null,t)throw Error(o(300));e===null||ic||(e=e.dependencies,e!==null&&Xi(e)&&(ic=!0))}function To(e,t,n,r){uo=e;var i=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=i)throw Error(o(301));if(i+=1,po=fo=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}P.H=Hs,a=t(n,r)}while(ho);return a}function Eo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(fo===null?null:fo.memoizedState)!==e&&(uo.flags|=1024),t}function Do(){var e=_o!==0;return _o=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}lo=0,po=fo=uo=null,ho=!1,vo=_o=0,yo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?uo.memoizedState=po=e:po=po.next=e,po}function jo(){if(fo===null){var e=uo.alternate;e=e===null?null:e.memoizedState}else e=fo.next;var t=po===null?uo.memoizedState:po.next;if(t!==null)po=t,fo=e;else{if(e===null)throw uo.alternate===null?Error(o(467)):Error(o(310));fo=e,e={memoizedState:fo.memoizedState,baseState:fo.baseState,baseQueue:fo.baseQueue,queue:fo.queue,next:null},po===null?uo.memoizedState=po=e:po=po.next=e}return po}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=wa(yo,e,t),t=uo,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===S)return Qi(e)}throw Error(o(438,String(e)))}function Fo(e){var t=null,n=uo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=uo.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=Mo(),uo.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 Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),fo,e)}function Ro(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?(lo&f)===f:(Gl&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===la&&(d=!0);else if((lo&p)===p){u=u.next,p===la&&(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,uo.lanes|=p,G|=p;f=u.action,go&&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,uo.lanes|=f,G|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!vr(a,e.memoizedState)&&(ic=!0,d&&(n=ua,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 zo(e){var t=jo(),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);vr(a,t.memoizedState)||(ic=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Bo(e,t,n){var r=uo,i=jo(),a=ji;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!vr((fo||i).memoizedState,n);if(s&&(i.memoizedState=n,ic=!0),i=i.queue,ds(Uo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,i,n,t),null),Ul===null)throw Error(o(349));a||lo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=uo.updateQueue,t===null?(t=Mo(),uo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Go(e){var t=$r(e,2);t!==null&&vu(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),go){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,fo,typeof r==`function`?r:Io)}function Jo(e,t,n,r,i){if(Is(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)}};P.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Yo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(ji){var n=Ul.formState;if(n!==null){a:{var r=uo;if(ji){if(Ai){b:{for(var i=Ai,a=Ni;i.nodeType!==8;){if(!a){i=null;break b}if(i=mf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ai=mf(i.nextSibling),r=i.data===`F!`;break a}}Fi(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,uo,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,uo,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,uo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),fo,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===ya?xa:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(uo.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=fo;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=uo.updateQueue,t===null&&(t=Mo(),uo.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 ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();uo.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;fo!==null&&r!==null&&So(r,fo.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(uo.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){uo.flags|=4;var t=uo.updateQueue;if(t===null)t=Mo(),uo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(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 _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||lo&1073741824&&!(Gl&261930)?e.memoizedState=t:(e.memoizedState=n,e=_u(),uo.lanes|=e,G|=e,n)}function Ss(e,t,n,r){return vr(n,t)?n:Ya.current===null?!(lo&42)||lo&1073741824&&!(Gl&261930)?(ic=!0,e.memoizedState=n):(e=_u(),uo.lanes|=e,G|=e,t):(e=xs(e,n,r),vr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Fs(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,pa(c,r),gu(e)):Ps(e,t,r,gu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},gu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Es(e).queue;Cs(e,i,t,I,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},gu())}function Os(){return Qi(ip)}function ks(){return jo().memoizedState}function As(){return jo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=gu();e=Ba(n);var r=Va(t,e,n);r!==null&&(vu(r,t,n),Ha(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=Qr(e,t,n,r),n!==null&&(vu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,gu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(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,vr(s,o))return Zr(e,t,i,0),Ul===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return vu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:hd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(o(479))}else t=Qr(e,n,r,2),t!==null&&vu(t,e,2)}function Is(e){var t=e.alternate;return e===uo||t!==null&&t===uo}function Ls(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}var zs={readContext:Qi,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};zs.useEffectEvent=xo;var Bs={readContext:Qi,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){Me(!0);try{n(t)}finally{Me(!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=Ms.bind(null,uo,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,uo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,uo,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=uo,i=Ao();if(ji){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ul===null)throw Error(o(349));Gl&127||Vo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,us(Uo.bind(null,r,a,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),n},useId:function(){var e=Ao(),t=Ul.identifierPrefix;if(ji){var n=Ci,r=Si;n=(r&~(1<<32-Ne(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,uo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=js.bind(null,uo)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:Qi,use:Po,useCallback:ys,useContext:Qi,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(jo(),fo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:Qi,use:Po,useCallback:ys,useContext:Qi,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return fo===null?xs(n,e,t):Ss(n,fo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return fo===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(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 Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ba(r);i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(vu(t,e,r),Ha(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ba(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(vu(t,e,r),Ha(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=Ba(n);r.tag=2,t!=null&&(r.callback=t),t=Va(e,r,n),t!==null&&(vu(t,e,n),Ha(t,e,n))}};function Gs(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?!yr(n,r)||!yr(i,a):!0}function Ks(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&&Ws.enqueueReplaceState(t,t.state,null)}function qs(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 Js(e){Kr(e)}function Ys(e){console.error(e)}function Xs(e){Kr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(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 $s(e,t,n){return n=Ba(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ba(e),e.tag=3,e}function tc(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(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,i,!0),n=eo.current,n!==null){switch(n.tag){case 31:case 13:return to===null?Au():n.alternate===null&&Xl===0&&(Xl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Yu(e,r,i)),!1;case 22:return n.flags|=65536,r===Sa?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)),Yu(e,r,i)),!1}throw Error(o(435,n.tag))}return Yu(e,r,i),Au(),!1}if(ji)return t=eo.current,t===null?(r!==Pi&&(t=Error(o(423),{cause:r}),Vi(mi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=mi(r,n),i=$s(e.stateNode,r,i),Ua(e,i),Xl!==4&&(Xl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Pi&&(e=Error(o(422),{cause:r}),Vi(mi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=mi(a,n),tu===null?tu=[a]:tu.push(a),Xl!==4&&(Xl=2),t===null)return!0;r=mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=$s(n.stateNode,r,e),Ua(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`&&(cu===null||!cu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ec(i),tc(i,e,n,r),Ua(n,i),!1}n=n.return}while(n!==null);return!1}var rc=Error(o(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ia(t,null,n,r):Fa(t,e.child,n,r)}function oc(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 Zi(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(ji&&s&&Ei(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=ci(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(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 dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_a(t,a===null?null:a.cachePool),a===null?Qa():Za(t,a),io(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&_a(t,null),Qa(),ao(t)):(_a(t,a.cachePool),Za(t,a),ao(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ga();return a=a===null?null:{parent:ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&_a(t,null),Qa(),io(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Fa(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,oo(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(ji){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(ro(t),(e=Ai)?(e=uf(e,Ni),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return fc(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(ro(t),i)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(ic||Yi(e,t,n,!1),i=(n&e.childLanes)!==0,ic||i){if(r=Ul,r!==null&&(s=Xe(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,$r(e,s),vu(r,e,s),rc;Au(),t=pc(e,t,n)}else e=a.treeContext,Ai=mf(s.nextSibling),ki=t,ji=!0,Mi=null,Ni=!1,e!==null&&Oi(t,e),t=fc(t,r),t.flags|=4096;return t}return e=oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(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 gc(e,t,n,r,i){return Zi(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(ji&&r&&Ei(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!ic?(Oo(e,t,a),Ac(e,t,a)):(ji&&r&&Ei(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ra(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(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&&Ws.enqueueReplaceState(a,a.state,null),Ka(t,r,a,i),Ga(),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=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Qi(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)&&Ks(t,a,r,o),La=!1;var f=t.memoizedState;a.state=f,Ka(t,r,a,i),Ga(),l=t.memoizedState,s||f!==l||La?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=La||Gs(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,za(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Qi(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)&&Ks(t,a,r,c),La=!1,f=t.memoizedState,a.state=f,Ka(t,r,a,i),Ga();var p=t.memoizedState;o!==d||f!==p||La||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=La||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(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,hc(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=Fa(t,e.child,null,i),t.child=Fa(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return zi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:va()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function Cc(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:(so.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(ji){if(i?no(t):ao(t),(e=Ai)?(e=uf(e,Ni),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Fi(t);return ff(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(ao(t),i=t.mode,c=Tc({mode:`hidden`,children:c},i),r=li(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(no(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(no(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(ao(t),c=r.fallback,i=t.mode,r=Tc({mode:`visible`,children:r.children},i),c=li(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fa(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(ao(t),t.child=e.child,t.flags|=128,t=null);else if(no(t),ff(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Ul,s!==null&&(r=Xe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),vu(s,e,r),rc;df(c)||Au(),t=Ec(e,t,n)}else df(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ai=mf(c.nextSibling),ki=t,ji=!0,Mi=null,Ni=!1,e!==null&&Oi(t,e),t=wc(t,r.children),t.flags|=4096);return t}return i?(ao(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=oi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=li(c,i,n,null),c.flags|=2):c=oi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(i=c.cachePool,i===null?i=va():(l=ia._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(no(t),n=e.child,e=n.sibling,n=oi(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 wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=ii(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Fa(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function Oc(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 kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=so.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,z(so,o),ac(e,t,r,n),r=ji?vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(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&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(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&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),G|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yi(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=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Xi(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:se(t,t.stateNode.containerInfo),Gi(t,ia,e.memoizedState.cache),zi();break;case 27:case 5:le(t);break;case 4:se(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(no(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(no(t),t.flags|=128,null);no(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Yi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(so,so.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Gi(t,ia,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,ji&&t.flags&1048576&&Ti(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e==`function`)ai(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=oc(null,t,e,r,n);break a}else if(i===E){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=ee(e)||e,Error(o(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=qs(r,t.pendingProps),vc(e,t,r,i,n);case 3:a:{if(se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,za(e,t),Ka(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ia,r),r!==a.cache&&Ji(t,[ia],n,!0),Ga(),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=yc(e,t,r,n);break a}else if(r!==i){i=mi(Error(o(424)),t),Vi(i),t=yc(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(Ai=mf(e.firstChild),ki=t,ji=!0,Mi=null,Ni=!0,n=Ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===i){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:ji||(n=t.type,e=t.pendingProps,r=Kd(ae.current).createElement(n),r[nt]=t,r[rt]=e,Bd(r,n,e),ht(r),t.stateNode=r):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&ji&&(r=t.stateNode=vf(t.type,t.pendingProps,ae.current),ki=t,Ni=!0,i=Ai,rf(t.type)?(hf=i,Ai=mf(r.firstChild)):Ai=i),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ji&&((i=r=Ai)&&(r=cf(r,t.type,t.pendingProps,Ni),r===null?i=!1:(t.stateNode=r,ki=t,Ai=mf(r.firstChild),Ni=!1,i=!0)),i||Fi(t)),le(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Yd(i,a)?r=null:s!==null&&Yd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Co(e,t,Eo,null,null,n),ip._currentValue=i),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&ji&&((e=n=Ai)&&(n=lf(n,t.pendingProps,Ni),n===null?e=!1:(t.stateNode=n,ki=t,Ai=null,e=!0)),e||Fi(t)),null;case 13:return Cc(e,t,n);case 4:return se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Zi(t),i=Qi(i),r=r(i),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ia),e===null?(i=ga(),i===null&&(i=Ul,a=aa(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ra(t),Gi(t,ia,i)):((e.lanes&n)!==0&&(za(e,t),Ka(t,null,null,n),Ga()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Gi(t,ia,r),r!==i.cache&&Ji(t,[ia],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gi(t,ia,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Pc(e){e.flags|=4}function Fc(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(Du())e.flags|=8192;else throw Ea=Sa,ba}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t))if(Du())e.flags|=8192;else throw Ea=Sa,ba}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:We(),e.lanes|=t,eu|=t)}function Rc(e,t){if(!ji)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 zc(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 Bc(e,t,n){var r=t.pendingProps;switch(Di(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ia),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),zc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Pc(t),a===null?(zc(t),Fc(t,i,null,r,n)):(zc(t),Ic(t,a))):a?a===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,a)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,i,e,r,n)),null;case 27:if(ue(t),n=ae.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return zc(t),null}e=re.current,Ri(t)?Ii(t,e):(e=vf(i,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(ue(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return zc(t),null}if(a=re.current,Ri(t))Ii(t,a);else{var s=Kd(ae.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[nt]=t,a[rt]=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(Bd(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&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=ae.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ki,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ld(e.nodeValue,n)),e||Fi(t,!0)}else e=Kd(e).createTextNode(r),e[nt]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(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[nt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(oo(t),t):(oo(t),null);if(t.flags&128)throw Error(o(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ri(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[nt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),i=!1}else i=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(oo(t),t):(oo(t),null)}return oo(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),Lc(t,t.updateQueue),zc(t),null);case 4:return ce(),e===null&&Dd(t.stateNode.containerInfo),zc(t),null;case 10:return Ki(t.type),zc(t),null;case 19:if(R(so),r=t.memoizedState,r===null)return zc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Rc(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=co(e),a!==null){for(t.flags|=128,Rc(r,!1),e=a.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return z(so,so.current&1|2),ji&&wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ce()>ou&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304)}else{if(!i)if(e=co(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!ji)return zc(t),null}else 2*Ce()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,i=!0,Rc(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?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ce(),e.sibling=null,n=so.current,z(so,i?n&1|2:n&1),ji&&wi(t,r.treeForkCount),e);case 22:case 23:return oo(t),$a(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(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&&R(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ia),zc(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Vc(e,t){switch(Di(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ia),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(oo(t),t.alternate===null)throw Error(o(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(so),null;case 4:return ce(),null;case 10:return Ki(t.type),null;case 22:case 23:return oo(t),$a(),e!==null&&R(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ia),null;case 25:return null;default:return null}}function Hc(e,t){switch(Di(t),t.tag){case 3:Ki(ia),ce();break;case 26:case 27:case 5:ue(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&oo(t);break;case 13:oo(t);break;case 19:R(so);break;case 10:Ki(t.type);break;case 22:case 23:oo(t),$a(),e!==null&&R(ha);break;case 24:Ki(ia)}}function Uc(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){Ju(t,t.return,e)}}function Wc(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){Ju(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ju(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ja(t,n)}catch(t){Ju(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ju(e,t,n)}}function qc(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){Ju(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ju(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){Ju(e,t,n)}else n.current=null}function Yc(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){Ju(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Vd(r,e.type,n,t),r[rt]=t}catch(t){Ju(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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&&rf(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 $c(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=Jt));else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(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&&rf(e.type)&&(n=e.stateNode),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){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Bd(t,r,n),t[nt]=e,t[rt]=n}catch(t){Ju(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Wd=pp,e=Cr(e),wr(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(Gd={focusedElem:e,selectionRange:n},pp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,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=qs(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ju(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:sf(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,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ju(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,412 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ju(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(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{Ja(e,t)}catch(e){Ju(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qu.bind(null,n),pf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ut(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 ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(je&&typeof je.onCommitFiberUnmount==`function`)try{je.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;rf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),yf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Ju(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Ju(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,af(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):af(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Ju(t,t.return,e)}}}function hl(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){Ju(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(o(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=$u.bind(null,e,t);t.then(r,r)}})}function vl(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(rf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(o(160));pl(a,s,i),ul=null,dl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(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=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(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[lt]||a[nt]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Bd(a,r,n),a[nt]=e,ht(a),r=a;break a;case`link`:var s=qf(`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),Bd(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=qf(`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),Bd(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[nt]=e,ht(a),r=a}e.stateNode=r}else Jf(i,e.type,e.stateNode);else e.stateNode=Hf(i,r,e.memoizedProps);
vendor: 40,658 bytes, lines 9-10
9else a===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Jf(i,e.type,e.stateNode):Hf(i,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){i=e.stateNode;try{Bt(i,``)}catch(t){Ju(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Xc(e,i,n===null?i:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ju(e,e.return,t)}}break;case 3:if(Kf=null,i=yl,yl=Sf(t.containerInfo),vl(t,e),yl=i,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Ju(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=Sf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=Ce()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||i,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||nl||rl||wl(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){Ju(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Ju(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?of(m,!0):of(l.stateNode,!1)}catch(e){Ju(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,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;el(e,Qc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Bt(a,``),n.flags&=-33),el(e,Qc(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(o(161))}}catch(t){Ju(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:yf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(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:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ju(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++)qa(c[i],s)}catch(e){Ju(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(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&&oa(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oa(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(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&&oa(e)));break;case 12:if(i&2048){Ol(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){Ju(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(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:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(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:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Zf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=Sf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(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 Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(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:oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=Qi(ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ia).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,Wl=null,Gl=0,Kl=0,ql=null,U=!1,W=!1,Jl=!1,Yl=0,Xl=0,G=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,K=null,q=0,hu=null;function gu(){return Hl&2&&Gl!==0?Gl&-Gl:P.T===null?$e():hd()}function _u(){if($l===0)if(!(Gl&536870912)||ji){var e=Re;Re<<=1,!(Re&3932160)&&(Re=262144),$l=e}else $l=536870912;return e=eo.current,e!==null&&(e.flags|=32),$l}function vu(e,t,n){(e===Ul&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)&&(Tu(e,0),Su(e,Gl,$l,!1)),Ke(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(Zl|=n),Xl===4&&Su(e,Gl,$l,!1)),sd(e))}function yu(e,t,n){if(Hl&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||He(e,t),i=r?Nu(e,t):ju(e,t,!0),a=r;do{if(i===0){W&&!r&&Su(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!xu(n)){i=ju(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=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Tu(c,s).flags|=256),s=ju(c,s,!1),s!==2){if(Jl&&!l){c.errorRecoveryDisabledLanes|=a,Zl|=a,i=4;break a}a=nu,nu=i,a!==null&&(nu===null?nu=a:nu.push.apply(nu,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Tu(e,0),Su(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:Su(r,t,$l,!U);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=iu+300-Ce(),10<i)){if(Su(r,t,$l,!U),Ve(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=Qd(bu.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,U,a,`Throttled`,-0,0),i);break a}bu(r,n,nu,su,ru,t,$l,Zl,eu,U,a,null,-0,0)}}break}while(1);sd(e)}function bu(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:Jt},Pl(t,a,d);var m=(a&62914560)===a?iu-Ce():(a&4194048)===a?au-Ce():0;if(m=$f(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Bu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Su(e,a,o,!l);return}}Bu(e,t,a,n,r,i,o,s,c)}function xu(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(!vr(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 Su(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ne(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Je(e,n,t)}function Cu(){return Hl&6?!0:(cd(0,!1),!1)}function wu(){if(Wl!==null){if(Kl===0)var e=Wl.return;else e=Wl,Wi=Ui=null,ko(e),ka=null,Aa=0,e=Wl;for(;e!==null;)Hc(e.alternate,e),e=e.return;Wl=null}}function Tu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$d(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,wu(),Ul=e,Wl=n=oi(e.current,null),Gl=t,Kl=0,ql=null,U=!1,W=He(e,t),Jl=!1,eu=$l=Ql=Zl=G=Xl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ne(r),a=1<<i;t|=e[i],r&=~a}return Yl=t,Xr(),n}function Eu(e,t){uo=null,P.H=zs,t===ya||t===xa?(t=Da(),Kl=3):t===ba?(t=Da(),Kl=4):Kl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ql=t,Wl===null&&(Xl=1,Zs(e,mi(t,e.current)))}function Du(){var e=eo.current;return e===null?!0:(Gl&4194048)===Gl?to===null:(Gl&62914560)===Gl||Gl&536870912?e===to:!1}function Ou(){var e=P.H;return P.H=zs,e===null?zs:e}function ku(){var e=P.A;return P.A=Bl,e}function Au(){Xl=4,U||(Gl&4194048)!==Gl&&eo.current!==null||(W=!0),!(G&134217727)&&!(Zl&134217727)||Ul===null||Su(Ul,Gl,$l,!1)}function ju(e,t,n){var r=Hl;Hl|=2;var i=Ou(),a=ku();(Ul!==e||Gl!==t)&&(su=null,Tu(e,t)),t=!1;var o=Xl;a:do try{if(Kl!==0&&Wl!==null){var s=Wl,c=ql;switch(Kl){case 8:wu(),o=6;break a;case 3:case 2:case 9:case 6:eo.current===null&&(t=!0);var l=Kl;if(Kl=0,ql=null,Lu(e,s,c,l),n&&W){o=0;break a}break;default:l=Kl,Kl=0,ql=null,Lu(e,s,c,l)}}Mu(),o=Xl;break}catch(t){Eu(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=Ui=null,Hl=r,P.H=i,P.A=a,Wl===null&&(Ul=null,Gl=0,Xr()),o}function Mu(){for(;Wl!==null;)Fu(Wl)}function Nu(e,t){var n=Hl;Hl|=2;var r=Ou(),i=ku();Ul!==e||Gl!==t?(su=null,ou=Ce()+500,Tu(e,t)):W=He(e,t);a:do try{if(Kl!==0&&Wl!==null){t=Wl;var a=ql;b:switch(Kl){case 1:Kl=0,ql=null,Lu(e,t,a,1);break;case 2:case 9:if(Ca(a)){Kl=0,ql=null,Iu(t);break}t=function(){Kl!==2&&Kl!==9||Ul!==e||(Kl=7),sd(e)},a.then(t,t);break a;case 3:Kl=7;break a;case 4:Kl=5;break a;case 7:Ca(a)?(Kl=0,ql=null,Iu(t)):(Kl=0,ql=null,Lu(e,t,a,7));break;case 5:var s=null;switch(Wl.tag){case 26:s=Wl.memoizedState;case 5:case 27:var c=Wl;if(s?Xf(s):c.stateNode.complete){Kl=0,ql=null;var l=c.sibling;if(l!==null)Wl=l;else{var u=c.return;u===null?Wl=null:(Wl=u,Ru(u))}break b}}Kl=0,ql=null,Lu(e,t,a,5);break;case 6:Kl=0,ql=null,Lu(e,t,a,6);break;case 8:wu(),Xl=6;break a;default:throw Error(o(462))}}Pu();break}catch(t){Eu(e,t)}while(1);return Wi=Ui=null,P.H=r,P.A=i,Hl=n,Wl===null?(Ul=null,Gl=0,Xr(),Xl):0}function Pu(){for(;Wl!==null&&!xe();)Fu(Wl)}function Fu(e){var t=Nc(e.alternate,e,Yl);e.memoizedProps=e.pendingProps,t===null?Ru(e):Wl=t}function Iu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,Gl);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,Gl);break;case 5:ko(t);default:Hc(n,t),t=Wl=si(t,Yl),t=Nc(n,t,Yl)}e.memoizedProps=e.pendingProps,t===null?Ru(e):Wl=t}function Lu(e,t,n,r){Wi=Ui=null,ko(t),ka=null,Aa=0;var i=t.return;try{if(nc(e,i,t,n,Gl)){Xl=1,Zs(e,mi(n,e.current)),Wl=null;return}}catch(t){if(i!==null)throw Wl=i,t;Xl=1,Zs(e,mi(n,e.current)),Wl=null;return}t.flags&32768?(ji||r===1?e=!0:W||Gl&536870912?e=!1:(U=e=!0,(r===2||r===9||r===3||r===6)&&(r=eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),zu(t,e)):Ru(t)}function Ru(e){var t=e;do{if(t.flags&32768){zu(t,U);return}e=t.return;var n=Bc(t.alternate,t,Yl);if(n!==null){Wl=n;return}if(t=t.sibling,t!==null){Wl=t;return}Wl=t=e}while(t!==null);Xl===0&&(Xl=5)}function zu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,Wl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Wl=e;return}Wl=e=n}while(e!==null);Xl=6,Wl=null}function Bu(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Gu();while(lu!==0);if(Hl&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=Yr,qe(e,n,a,s,c,l),e===Ul&&(Wl=Ul=null,Gl=0),du=t,uu=e,fu=n,pu=a,mu=i,K=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ed(De,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,F.p=i,P.T=r}}lu=1,Vu(),Hu(),Uu()}}function Vu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Gd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(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 _=xr(s,h),v=xr(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=!!Wd,Gd=Wd=null}finally{Hl=i,F.p=r,P.T=n}}e.current=t,lu=2}}function Hu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,F.p=r,P.T=n}}lu=3}}function Uu(){if(lu===4||lu===3){lu=0,Se();var e=uu,t=du,n=fu,r=K;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Wu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Qe(n),t=t.stateNode,je&&typeof je.onCommitFiberRoot==`function`)try{je.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.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{P.T=t,F.p=i}}fu&3&&Gu(),sd(e),i=e.pendingLanes,n&261930&&i&42?e===hu?q++:(q=0,hu=e):q=0,cd(0,!1)}}function Wu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oa(t)))}function Gu(){return Vu(),Hu(),Uu(),Ku()}function Ku(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Qe(fu),r=P.T,i=F.p;try{F.p=32>n?32:n,P.T=null,n=mu,mu=null;var a=uu,s=fu;if(lu=0,du=uu=null,fu=0,Hl&6)throw Error(o(331));var c=Hl;if(Hl|=4,Ll(a.current),kl(a,a.current,s,n),Hl=c,cd(0,!1),je&&typeof je.onPostCommitFiberRoot==`function`)try{je.onPostCommitFiberRoot(Ae,a)}catch{}return!0}finally{F.p=i,P.T=r,Wu(e,t)}}function qu(e,t,n){t=mi(n,t),t=$s(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(Ke(e,2),sd(e))}function Ju(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=mi(n,e),n=ec(2),r=Va(t,n,2),r!==null&&(tc(n,r,t,e),Ke(r,2),sd(r));break}}t=t.return}}function Yu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;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)||(Jl=!0,i.add(n),e=Xu.bind(null,e,t,n),t.then(e,e))}function Xu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(Gl&n)===n&&(Xl===4||Xl===3&&(Gl&62914560)===Gl&&300>Ce()-iu?!(Hl&2)&&Tu(e,0):Ql|=n,eu===Gl&&(eu=0)),sd(e)}function Zu(e,t){t===0&&(t=We()),e=$r(e,t),e!==null&&(Ke(e,t),sd(e))}function Qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zu(e,n)}function $u(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),Zu(e,n)}function ed(e,t){return ye(e,t)}var td=null,nd=null,rd=!1,id=!1,ad=!1,od=0;function sd(e){e!==nd&&e.next===null&&(nd===null?td=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,md())}function cd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=td;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-Ne(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,pd(r,a))}else a=Gl,a=Ve(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||He(r,a)||(n=!0,pd(r,a));r=r.next}while(n);ad=!1}}function ld(){ud()}function ud(){id=rd=!1;var e=0;od!==0&&Zd()&&(e=od);for(var t=Ce(),n=null,r=td;r!==null;){var i=r.next,a=dd(r,t);a===0?(r.next=null,n===null?td=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}lu!==0&&lu!==5||cd(e,!1),od!==0&&(od=0)}function dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ne(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ue(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=Gl,n=Ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||He(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),Qe(n)){case 2:case 8:n=Ee;break;case 32:n=De;break;case 268435456:n=ke;break;default:n=De}return r=fd.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function fd(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=Gl;return r=Ve(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(yu(e,r,t),dd(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?fd.bind(null,e):null)}function pd(e,t){if(Gu())return null;yu(e,t,!0)}function md(){tf(function(){Hl&6?ye(Te,ld):ud()})}function hd(){if(od===0){var e=la;e===0&&(e=Le,Le<<=1,!(Le&261888)&&(Le=256)),od=e}return od}function gd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:qt(``+e)}function _d(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 vd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=gd((i[rt]||null).action),o=r.submitter;o&&(t=(t=o[rt]||null)?gd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new gn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(od!==0){var e=o?_d(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?_d(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var yd=0;yd<Wr.length;yd++){var bd=Wr[yd];Gr(bd.toLowerCase(),`on`+(bd[0].toUpperCase()+bd.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),yt(`onMouseEnter`,[`mouseout`,`mouseover`]),yt(`onMouseLeave`,[`mouseout`,`mouseover`]),yt(`onPointerEnter`,[`pointerout`,`pointerover`]),yt(`onPointerLeave`,[`pointerout`,`pointerover`]),vt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),vt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),vt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),vt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var xd=`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(` `),Sd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(xd));function Cd(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){Kr(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){Kr(e)}i.currentTarget=null,a=c}}}}function wd(e,t){var n=t[at];n===void 0&&(n=t[at]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,gt.forEach(function(t){t!==`selectionchange`&&(Sd.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(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,!an||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 kd(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=dt(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}tn(function(){var r=a,i=Xt(n),o=[];a:{var s=Ur.get(e);if(s!==void 0){var l=gn,u=e;switch(e){case`keypress`:if(dn(n)===0)break a;case`keydown`:case`keyup`:l=Pn;break;case`focusin`:u=`focus`,l=Tn;break;case`focusout`:u=`blur`,l=Tn;break;case`beforeblur`:case`afterblur`:l=Tn;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=Cn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=In;break;case Ir:case Lr:case Rr:l=En;break;case Hr:l=Ln;break;case`scroll`:case`scrollend`:l=vn;break;case`wheel`:l=Rn;break;case`copy`:case`cut`:case`paste`:l=Dn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Fn;break;case`toggle`:case`beforetoggle`:l=zn}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=nn(m,p),g!=null&&d.push(Ad(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!==Yt&&(u=n.relatedTarget||n.fromElement)&&(dt(u)||u[it]))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?dt(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=Cn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Fn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:pt(l),h=u==null?s:pt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,dt(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=Md,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&&Nd(o,s,l,d,!1),u!==null&&f!==null&&Nd(o,f,u,d,!0)}}a:{if(s=r?pt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=or;else if(er(s))if(sr)v=gr;else{v=mr;var y=pr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Wt(r.elementType)&&(v=or):v=hr;if(v&&=v(e,r)){tr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&H(s,`number`,s.value)}switch(y=r?pt(r):window,e){case`focusin`:(er(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(o,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(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}else Xn?Jn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Xn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Xn&&(b=un()):(sn=i,cn=`value`in sn?sn.value:sn.textContent,Xn=!0)),y=jd(r,x),0<y.length&&(x=new On(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Yn(n),b!==null&&(x.data=b)))),(b=Wn?Zn(e,n):Qn(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new On(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),vd(o,e,r,n,i)}Cd(o,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(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=nn(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=nn(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(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=nn(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=nn(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function Id(e){return(typeof e==`string`?e:``+e).replace(Pd,` 10`).replace(Fd,``)}function Ld(e,t){return t=Id(t),Id(e)===t}function Rd(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Bt(e,``+r);break;case`className`:Tt(e,`class`,r);break;case`tabIndex`:Tt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Tt(e,n,r);break;case`style`:Ut(e,r,a);break;case`data`:if(t!==`object`){Tt(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=qt(``+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`&&Rd(e,t,`name`,i.name,i,null),Rd(e,t,`formEncType`,i.formEncType,i,null),Rd(e,t,`formMethod`,i.formMethod,i,null),Rd(e,t,`formTarget`,i.formTarget,i,null)):(Rd(e,t,`encType`,i.encType,i,null),Rd(e,t,`method`,i.method,i,null),Rd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`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=qt(``+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`playsInline`: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`:wd(`beforetoggle`,e),wd(`toggle`,e),wt(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`:wt(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=Gt.get(n)||n,wt(e,n,r))}}function zd(e,t,n,r,i,a){switch(n){case`style`:Ut(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`?Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Bt(e,``+r);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!_t.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[rt]||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,``):wt(e,n,r)}}}function Bd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:wd(`error`,e),wd(`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:Rd(e,t,a,s,n,null)}}i&&Rd(e,t,`srcSet`,n.srcSet,n,null),r&&Rd(e,t,`src`,n.src,n,null);return;case`input`:wd(`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:Rd(e,t,r,d,n,null)}}It(e,a,c,l,u,s,i,!1);return;case`select`:for(i in wd(`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:Rd(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Lt(e,!!r,n,!0):Lt(e,!!r,t,!1);return;case`textarea`:for(s in wd(`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:Rd(e,t,s,c,n,null)}zt(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:Rd(e,t,l,r,n,null)}return;case`dialog`:wd(`beforetoggle`,e),wd(`toggle`,e),wd(`cancel`,e),wd(`close`,e);break;case`iframe`:case`object`:wd(`load`,e);break;case`video`:case`audio`:for(r=0;r<xd.length;r++)wd(xd[r],e);break;case`image`:wd(`error`,e),wd(`load`,e);break;case`details`:wd(`toggle`,e);break;case`embed`:case`source`:case`link`:wd(`error`,e),wd(`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:Rd(e,t,u,r,n,null)}return;default:if(Wt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&zd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Rd(e,t,c,r,n,null))}function Vd(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)||Rd(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&&Rd(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)||Rd(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&&Rd(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Lt(e,!!n,n?[]:``,!1):Lt(e,!!n,t,!0)):Lt(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:Rd(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&&Rd(e,t,s,i,r,a)}Rt(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:Rd(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:Rd(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)&&Rd(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:Rd(e,t,u,p,r,m)}return;default:if(Wt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&zd(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||zd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Rd(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||Rd(e,t,f,p,r,m)}function Hd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ud(){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&&Hd(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&&Hd(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 Wd=null,Gd=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 Jd(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 Yd(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 Xd=null;function Zd(){var e=window.event;return e&&e.type===`popstate`?e===Xd?!1:(Xd=e,!0):(Xd=null,!1)}var Qd=typeof setTimeout==`function`?setTimeout:void 0,$d=typeof clearTimeout==`function`?clearTimeout:void 0,ef=typeof Promise==`function`?Promise:void 0,tf=typeof queueMicrotask==`function`?queueMicrotask:ef===void 0?Qd:function(e){return ef.resolve(null).then(e).catch(nf)};function nf(e){setTimeout(function(){throw e})}function rf(e){return e===`head`}function af(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`)yf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,yf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&yf(e.ownerDocument.body);n=i}while(n);zp(t)}function of(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 sf(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`:sf(n),ut(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cf(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[lt])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=mf(e.nextSibling),e===null)break}return null}function lf(e,t,n){if(t===``)return null;for(;
vendor: 17,956 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mf(e.nextSibling),e===null))return null;return e}function uf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mf(e.nextSibling),e===null))return null;return e}function df(e){return e.data===`$?`||e.data===`$~`}function ff(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pf(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 mf(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 hf=null;function gf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _f(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 vf(e,t,n){switch(t=Kd(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 yf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ut(e)}var bf=new Map,xf=new Set;function Sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cf=F.d;F.d={f:wf,r:Tf,D:Of,C:kf,L:Af,m:jf,X:Nf,S:Mf,M:Pf};function wf(){var e=Cf.f(),t=Cu();return e||t}function Tf(e){var t=ft(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):Cf.r(e)}var Ef=typeof document>`u`?null:document;function Df(e,t,n){var r=Ef;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xf.has(i)||(xf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Bd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Of(e){Cf.D(e),Df(`dns-prefetch`,e,null)}function kf(e,t){Cf.C(e,t),Df(`preconnect`,e,t)}function Af(e,t,n){Cf.L(e,t,n);var r=Ef;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=If(e);break;case`script`:a=Bf(e)}bf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lf(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Bd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function jf(e,t){Cf.m(e,t);var n=Ef;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=Bf(e)}if(!bf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),bf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Bd(r,`link`,e),ht(r),n.head.appendChild(r)}}}function Mf(e,t,n){Cf.S(e,t,n);var r=Ef;if(r&&e){var i=mt(r).hoistableStyles,a=If(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bf.get(a))&&Wf(e,n);var c=o=r.createElement(`link`);ht(c),Bd(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,Uf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nf(e,t){Cf.X(e,t);var n=Ef;if(n&&e){var r=mt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=m({src:e,async:!0},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),ht(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t){Cf.M(e,t);var n=Ef;if(n&&e){var r=mt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),ht(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t,n,r){var i=(i=ae.current)?Sf(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=If(n.href),n=mt(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=If(n.href);var a=mt(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(Lf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),bf.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},bf.set(e,n),a||zf(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=Bf(n),n=mt(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 If(e){return`href="`+Pt(e)+`"`}function Lf(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function zf(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}),Bd(t,`link`,n),ht(t),e.head.appendChild(t))}function Bf(e){return`[src="`+Pt(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(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,ht(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`),ht(r),Bd(r,`style`,i),Uf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=If(n.href);var a=e.querySelector(Lf(i));if(a)return t.state.loading|=4,t.instance=a,ht(a),a;r=Rf(n),(i=bf.get(i))&&Wf(r,i),a=(e.ownerDocument||e).createElement(`link`),ht(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Bd(a,`link`,r),t.state.loading|=4,Uf(a,n.precedence,e),t.instance=a;case`script`:return a=Bf(n.src),(i=e.querySelector(Vf(a)))?(t.instance=i,ht(i),i):(r=n,(i=bf.get(a))&&(r=m({},n),Gf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),ht(i),Bd(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,Uf(r,n.precedence,e));return t.instance}function Uf(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 Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Kf=null;function qf(e,t,n){if(Kf===null){var r=new Map,i=Kf=new Map;i.set(n,r)}else i=Kf,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[lt]||a[nt]||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 Jf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Yf(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 Xf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zf(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=If(r.href),a=t.querySelector(Lf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ht(a);return}a=t.ownerDocument||t,r=Rf(r),(i=bf.get(i))&&Wf(r,i),a=a.createElement(`link`),ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Bd(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=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&np(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&np(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Ud());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&np(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function np(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(rp,e),tp=null,ep.call(e))}function rp(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.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=ep.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 ip={$$typeof:S,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function ap(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=Ge(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ge(0),this.hiddenUpdates=Ge(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 op(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ap(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ii(3,null,null,t),e.current=a,a.stateNode=e,t=aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function sp(e){return e?(e=ni,e):ni}function cp(e,t,n,r,i,a){i=sp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Va(e,r,t),n!==null&&(vu(n,e,t),Ha(n,e,t))}function lp(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){lp(e,t),(e=e.alternate)&&lp(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&vu(t,e,67108864),up(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=gu();t=Ze(t);var n=$r(e,t);n!==null&&vu(n,e,t),up(e,t)}}var pp=!0;function mp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,gp(e,t,n,r)}finally{F.p=a,P.T=i}}function hp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,gp(e,t,n,r)}finally{F.p=a,P.T=i}}function gp(e,t,n,r){if(pp){var i=_p(r);if(i===null)kd(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=ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Be(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ne(o);s.entanglements[1]|=c,o&=~c}sd(a),!(Hl&6)&&(ou=Ce()+500,cd(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&vu(s,a,2),Cu(),up(a,2)}if(a=_p(r),a===null&&kd(e,t,r,vp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function _p(e){return e=Xt(e),yp(e)}var vp=null;function yp(e){if(vp=null,e=dt(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(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke: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=ft(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=dt(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,et(e.priority,function(){fp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,et(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);Yt=r,n.target.dispatchEvent(r),Yt=null}else return t=ft(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=ft(n);a!==null&&(e.splice(t,3),t-=3,Ts(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[rt]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[rt]||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;cp(n,gu(),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;cp(e.current,2,null,e,null,null),Cu(),t[it]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();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`));F.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:P,reconcilerVersion:`19.2.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!J.isDisabled&&J.supportsFiber)try{Ae=J.inject(Wp),je=J}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var r=!1,i=``,a=Js,c=Ys,l=Xs,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=op(e,1,!0,t,n??null,r,i,u,a,c,l,Bp),t.context=sp(null),n=t.current,r=gu(),r=Ze(r),i=Ba(r),i.callback=null,Va(n,i,r),n=r,t.current.lanes=n,Ke(t,n),sd(t),e[it]=t.current,Dd(e),new Hp(t)}})),Hn=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=Vn()})),Un=`__TSS_CONTEXT`,Wn=Symbol.for(`TSS_SERVER_FUNCTION`),Gn=`application/x-tss-framed`;`${Gn}`;var Kn=()=>window.__TSS_START_OPTIONS__;function qn(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`).replace(/~([~0r])/g,(e,t)=>t===`0`?`\0`:t===`r`?`�`:t)}function Jn(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var Yn=4,Xn=5;function Zn(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Qn(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.substring(s,a);return[o?3:c?1:2,c||`_splat`,r.substring(0,i),e.substring(t+a+1,c?n:e.length)]}}return r}function $n(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=b(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=Qn(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=tr(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.substring(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=tr(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.substring(m,u));let h=p?.slice();if(!r)return h;
10if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=tr(r,Xn);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=tr(r,Yn);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function er(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function tr(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function nr(e,t){let n=tr(),r=[];function i(e,t,n,a){let[o,s,c]=$n(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(er);t.masksTree=n,t.flatCache=Jn(1e3)}function rr(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=sr(e,t.masksTree);return t.flatCache.set(e,r),r}function ir(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=tr(),$n(t,{from:e},1,o),i.singleCache.set(a,o)),sr(r,o,n)}function ar(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=sr(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=lr(a.route)),t.matchCache.set(r,a),a}function or(e,t=!1){let n=tr(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&F(),i[e.id]=e,o!==0&&e.path){let t=k(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=$n(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(er);return{processedTree:{segmentTree:n,singleCache:Jn(1e3),matchCache:Jn(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function sr(e,t,n=!1){let r=e.split(`/`),i=dr(e,r,t,n);if(!i)return null;let[a]=cr(e,r,i);return{route:i.node.route,rawParams:a}}function cr(e,t,n){let r=ur(n.node),i=n.node.data&&Zn(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===Yn)break;if(u.kind===Xn){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function lr(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function ur(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function dr(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!b(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!hr(l,n))continue;if(i.parse){if(!mr(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Yn&&hr(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Yn||i.kind===2)&&hr(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(mr(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&pr(f,o))return n;hr(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+fr(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+fr(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+fr(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+fr(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function fr(e,t){return 2**(e-t-1)}function pr(e,t){return e===2**(t-1)-1}function mr(e,t,n){let r,i;try{[r,i]=cr(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function hr(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Yn)>(e.node.kind===Yn)||t.node.kind===Yn==(e.node.kind===Yn)&&t.node.depth>e.node.depth))):!0}function gr(){try{return sessionStorage}catch{return}}var _r=`tsr-scroll-restoration-v1_3`,vr=gr();function yr(){try{return JSON.parse(vr?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var br=yr(),xr=`data-scroll-restoration-id`,Sr=e=>e.state.__TSR_key||e.href;function Cr(e){let t=e.getAttribute(xr);if(t)return`[${xr}="${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 wr=!1,Tr=`window`;function Er(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Dr(e){let t=new Set;for(let n of e){if(n===Tr)continue;let e=Er(n);e&&t.add(e)}return t}
10function Or(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Sr,a=new Set,o=e=>{let t=br[e]||={};for(let e of a)e===document?t[Tr]={scrollX,scrollY}:e.isConnected&&(t[Cr(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,wr=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{wr||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{vr?.setItem(_r,JSON.stringify(br))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=br[d];if(e){let t=br[u];for(let n in e){if(n===Tr){if(s)continue}else{let e=Er(n);if(!e||s&&o&&(l??=Dr(o),l.has(e)))continue}t||=br[u]={},t[n]??=e[n]}}}wr=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Dr(o));let t=e&&i&&c,s=r.e?br[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Tr){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Er(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{wr=!1}}))}function kr(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function Ar(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function jr(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]=Ar(r):Array.isArray(t)?t.push(Ar(r)):n[e]=[t,Ar(r)]}return n}var Mr=/^(?:\s|["[{\d-]|fa|nu|tr)/,Nr=Fr(JSON.parse),Pr=Ir(JSON.stringify,JSON.parse);function Fr(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=jr(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Mr.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Ir(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Mr.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=kr(e,r);return t?`?${t}`:``}}function Lr(e,t,n){let r=M(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=j(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Rr(n,s.input({url:e})),output:({url:e})=>s.output({url:zr(n,e)})}:s}function Rr(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 zr(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}function Br(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{x(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Vr=`__TSR_index`,Hr=`popstate`,Ur=`beforeunload`,Wr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Gr(e){let t=Wr.exec(e);return t?`/`+e.slice(t[0].length):e}function Kr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>` 11\r`.includes(e)?``:encodeURIComponent(e))),Gr(e)}function qr(e){let t=e.getLocation(),n=new Set,r=r=>
11{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=Xr(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[Vr];i=Jr(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[Vr];i=Jr(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,n?.ignoreBlocker??!1),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[Vr]!==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,_getBlockers:()=>e.getBlockers?.()??[]}}function Jr(e,t){let n=Zr();return{...t,key:n,__TSR_key:n,[Vr]:e}}function Yr(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=t=>Kr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Xr(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Zr();t.history.replaceState({[Vr]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Xr(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Vr]-l.state[Vr],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 r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=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=``},S=qr({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ur,x,{capture:!0}),t.removeEventListener(Hr,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Ur,x,{capture:!0}),t.addEventListener(Hr,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Xr(e,t){let n=Kr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Zr();t={[Vr]:0,key:e,__TSR_key:e}}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}}function Zr(){return(Math.random()+1).toString(36).substring(7)}function Qr(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function $r(e){return e.pathname+e.search+e.hash}function ei(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function ti(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function ni(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ri({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function ii(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function ai(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var oi=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Yr()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`);let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&M(n)?Lr(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Br(this.latestLocation,e),Or(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=or(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&nr(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Jn(1e3)}},this.subscribe=(e,t)=>
11{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},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:v(e),external:!1,searchStr:o,search:_(t?.search,i),hash:v(r.slice(1)),state:d(t?.state,a)}}let o=Rr(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:v(Gr(o.pathname)),external:!!this.rewrite&&Qr(o,this.origin),searchStr:c,search:_(t?.search,s),hash:v(o.hash.slice(1)),state:d(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=ar(k(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Xr(n.href,{});n={...n,to:Rr(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r)),s=n.to?`${n.to}`:`.`,c=O(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[k(c)],u=c.includes(`$`),d;if(l)d=l._branch??=lr(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??$n(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=di(n.params,e),!D(p))break;p===e&&(p=Object.assign(w(),p));try{Object.assign(p,t(p))}catch{}}}p??=di(n.params,fi(n.params,f)?o()[3]:pi);let m=e.leaveParams?c:Gr(v(f?A(c,f,p,this.pathParamsDecoder):c)),h=mi(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,ui(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?hi(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||pi,y=this.options.stringifySearch(_),b=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,x=b?`#${b}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:pi,T=`${m}${y}${x}`,E,j,M=!1;if(this.rewrite){let e=new URL(T,this.origin),t=e.origin,n=zr(this.rewrite,e);E=$r(e),Qr(n,t)?(j=n.href,M=!0):j=Gr($r(n))}else E=S(T),j=E;return{publicHref:j,href:E,pathname:m,search:_,searchStr:y,state:C,hash:b??``,external:M,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=rr(r.pathname,this.processedTree);if(t){let i=Object.assign(w(),t.rawParams),{from:a,params:o,...s}=t.route,c=di(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return si(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=k(this.latestLocation.href)===k(n.href)&&f(ri(n.state),ri(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.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={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>
11{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?y(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return si(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ca(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ni(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&ei(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(g.test(n)||(r=y(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Qr(e,this.origin)||(n=$r(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=bi,this.preloadRoute=e=>la(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?O(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=ir(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!f(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?f(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=ee(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Pr,parseSearch:e.parseSearch??Nr,protocolAllowlist:e.protocolAllowlist??E}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=$n(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),o=n,s=!1;(i?i.path!==`/`&&r[`**`]:k(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?gi(this.options.notFoundMode,o):void 0,l=Array(o.length),f=this._committed,p=(e,t)=>{let n=f[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?f.find(t=>t.routeId===e.id):void 0},m;for(let n=0;n<o.length;n++){let i=o[n],s=l[n-1],f,h,g;{let n=s?.search??e.search,r=s?._strictSearch??void 0;try{let e=ui(i.options.validateSearch,{...n})??void 0;f={...n,...e},h={...r,...e}}catch(e){let r=e;if(e instanceof ci||(r=new ci(e.message,{cause:e})),t?.throwOnError)throw r;f=n,h={},g=r}}let v=``,y=``;try{v=i.options.loaderDeps?.({search:f})??``,y=v&&JSON.stringify(v)||``}catch(e){if(t?.throwOnError)throw e;g??=e}let b=w(),x=i._interpolation?A(i.fullPath,i._interpolation,r,this.pathParamsDecoder,b):i.fullPath,S=i.id+x+y,C=p(i,n),T=this._cache.get(S)??(C?.id===S?C:void 0);m=T?._strictParams??Object.assign(b,m);let E;if(!T)try{_i(i,m)}catch(e){if(E=a(e)||u(e)?e:new li(e.message,{cause:e}),t?.throwOnError)throw E}let D=C?`stay`:`enter`,O;if(T)O={...T,cause:D,search:_(C?C.search:T.search,f),_strictSearch:h,searchError:g};else{let e=ei(i)?`pending`:`success`;O={id:S,ssr:i.options.ssr,index:n,routeId:i.id,params:C?.params??m,_strictParams:m,pathname:x,updatedAt:Date.now(),search:C?_(C.search,f):f,_strictSearch:h,searchError:g,status:e,isFetching:!1,error:void 0,paramsError:E,context:{},abortController:t?._controller??new AbortController,cause:D,loaderDeps:C?d(C.loaderDeps,v):v,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let k=c===i.id;O._notFound&&!k&&(O.error=void 0),O._notFound=k,l[n]=O}for(let e=0;e<l.length;e++){let n=l[e];n.params=n.cause===`stay`?_(n.params,m):m,t?._controller&&(n.context={})}return l}matchRoutesLightweight(e){let t=b(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=b(a),c={...e.search};for(let e of a)try{Object.assign(c,ui(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{_i(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function si(e,t,{replace:n,ignoreBlocker:r}
11){if(!h(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var ci=class extends Error{},li=class extends Error{};function ui(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ci(`Async validation not supported`);if(n.issues)throw new ci(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 di(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function fi(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!m.call(e,t[1]))}var pi=Object.freeze({});function mi(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=ui(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function hi(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=p(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function gi(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return s}function _i(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function vi(e,t){return e.options[t]?.preload?.()}function yi(e,t){let n=vi(e,`component`),r=vi(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function bi(e,t,n){let r=()=>t===!1?void 0:t?vi(e,t):yi(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function xi(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Si(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(n+1,r._assetEnd));continue}if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var Ci=0,wi=1,Ti=2,Ei=3,Di=[4];function Oi(e){return typeof e[0]==`number`}function ki(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function Ai(e,t){return e.routesById[t.routeId]}function ji(e,t,n){return u(e)?[Ei,e]:a(e)?(e.routeId||=n,[Ti,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[wi,e]):[Ci,e]}function Mi(e,t){let n=ji(t,!0,e.id);if(n[0]!==wi)return n;try{e.options.onError?.(n[1])}catch(t){n=ji(t,!0,e.id)}return n}function Ni(e,t,n,r,i){return i[0].signal.aborted?Di:Yi(e,t,n,Mi(n,r),i)}async function Pi(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=Ai(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Ii(e,r),[i,Ni(e,t,u,a,n)]}if(c.aborted)return[i,Di];let p=r.paramsError??r.searchError;if(p!==void 0)return Ii(e,r),[i,Ni(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{zi(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?ki(a,c):a);if(c.aborted)return[i,Di];
11let s=Yi(e,t,u,ji(o,!1,u.id),n);if(s[0]!==Ci)return Ii(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Ii(e,r),[i,Ni(e,t,u,a,n)]}finally{r.status=h,zi(e,r,!1,n[0])}}i()}function Fi(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Ii(e,t){let n=t._flight;t._flight=void 0,Fi(e,t,n)?.abort()}function Li(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Fi(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Ri(e){for(let t of e){let e=t._flight;e&&e[2]++}}function zi(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Bi(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Vi(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Di;if(!i)return[Ci,void 0];let l=n._flight;zi(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Bi(e,t,n,r,s,a,!!o[3]))).then(e=>ji(e,!1,r.id),e=>ji(e,!0,r.id)).then(t=>(t[0]!==Ci&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===wi&&l[2]?Mi(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Yi(e,t,r,await ki(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Ii(e,n),Di}finally{zi(e,n,!1,s)}}function Hi(e,t,n){t[0]!==Ei&&(e.status=`success`,e.error=void 0,t[0]===Ci?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Ui(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Ii(e,r)}function Wi(e,t){return t[0]===wi||t[0]===Ti?{...e,status:t[0]===wi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Gi(e,t,n,r,i,a,o){let s=t[1][n],c=Ai(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Bi(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Di)),!p)if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}catch(n){s.invalid=!0,Ii(e,s),p=Ni(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Fi(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Vi(e,t,s,c,g,i,a).then(t=>(Hi(s,t,l),t[0]===Ci&&(m&&!a[0].signal.aborted&&Ui(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Ci,s.loaderData]),T=(async()=>{try{let e=bi(c,void 0,C);e&&await ki(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Ni(e,t,c,r,a)]}let r=await w;x&&r[0]===Ci&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Wi(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Vi(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Hi(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Wi(E,e))}async function Ki(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=Ai(e,t[n]);try{let e=bi(i,!1);e&&await ki(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function qi(e,t){t[2]&&=(Li(e,t[2].map(e=>e[3])),void 0)}async function Ji(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=Ei)throw[a,t];!i&&t[0]!==Ci&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===Ei)throw[e[0],t]})}
11)))}})))}catch(e){return e}return t??i}function Yi(e,t,n,r,i,a){for(;r[0]===Ei;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[Ei,t]:[Ei,t,a]}return[Ei,o,n]}catch(e){r=a?[wi,e]:Mi(n,e),a=!0}}return r}async function Xi(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Ti?Ki(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=Ei)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Ci&&t[0]<Ei&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=Ei){let n=s[1];if(n[0]!==Ei||n[1].options.reloadDocument||n[2])return qi(e,t),n;c=!0,s=[0,[wi,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>
11{i&&(u._notFound=void 0,l===wi?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=Ai(e,u);try{await ki(i?Promise.resolve().then(()=>bi(m,l===wi?`errorComponent`:`notFoundComponent`)):Promise.all([bi(m),bi(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return qi(e,t),Di}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),qi(e,t),Li(e,o),p()):u.status=`success`}return t}async function Zi(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=Ai(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await ki(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Qi(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await Ki(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Gi(e,i,t,u,f,r,l)},m=await Pi(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Ti){let t=await Ki(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=Ei&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Xi(e,i,u,r[0],Ji(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Ji(i[2],void 0,void 0,h.then(e=>Oi(e)?0:xi(n).length,()=>0))),o=await h}catch(t){if(qi(e,i),t===a&&a.aborted)return Di;throw t}return Oi(o)?o:Zi(e,o,a,r[6]===n.length?r[6]:0)}function $i(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=Ai(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>$i(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function ea(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function ta(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!xi(t[3]).some(e=>e.id===n[1]))return;let i;try{await ki(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function na(e,t){e._committed=t,e.stores.setMatches(t)}function ra(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=xi(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=Ai(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=ii(n);na(e,n),Li(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),ai(e,i,n,a,l,t)}async function ia(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}
11function aa(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function oa(e,t,n,r,i){let a=n.map(e=>({...e}));Ri(a);for(let t of r)Ii(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Xi(e,o,r,t[0],i)}catch(t){throw Li(e,a),t}if(Oi(s)){Li(e,a),s[0]===Ei&&e._tx===t&&e._committed===n&&await aa(e,t,s);return}if(await Zi(e,s,t[0].signal),e._tx!==t||e._committed!==n){Li(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Ii(e,n))}na(e,a),Li(e,n,a)}async function sa(e,t,n,r,i,a){let o=await Qi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Oi(o)){let n=o[0]===Ei&&e._tx===t;if((!n||o[1].options.reloadDocument)&&ea(e,t),Li(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){ea(e,t);return}await aa(e,t,o);return}let s=o[1];if(e._tx===t&&await ta(e,t),e._tx!==t){ea(e,t),Li(e,s),qi(e,o);return}let c=t[2],l=ni(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await ta(e,t),e._tx!==t){ea(e,t),Li(e,s),qi(e,o);return}let n=await e.startTransition(()=>{ea(e,t),ra(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){qi(e,o);return}u?.length&&oa(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function ca(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=ni(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await ia(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Ri(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){Li(e,m),await ia(e,n);return}e._preflight=void 0;let g,_=()=>sa(e,y,f,()=>$i(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>ia(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&zi(e,t,!1)}n[0].abort(),Li(e,n[3],y[3],!0)}if(e._tx!==y){Li(e,y[3]),y[3]=[],g?.(),await ia(e,y);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&$i(e,y),g?.(_()),await y[5]}async function la(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,o,s,c;try{try{o=e.matchRoutes(n,{_controller:i}),Ri(o),s=(e._preloads??=new Map).set(i,o),c=await Qi(e,n,o,[i,t,r,!0])}finally{s&&(s=s.delete(i),Li(e,o)),i.abort()}if(!Oi(c))return c[1];if(!s||c.length<3)return;n=c[2]}catch(e){a(e)||console.error(e);return}}}async function ua(e){let t=window.$_TSR,n=e.options.serializationAdapters;n?.length&&(t.t=new Map(n.map(e=>[e.key,e.fromSerializable])),t.buffer.forEach(e=>e())),t.initialized=!0;let r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector(`meta[property="csp-nonce"]`)?.content};let i=r.matches,a=new AbortController,o=e._preflight;e._preflight=a,o?.abort();let s=()=>e._preflight===a,c,l,u,d;try{if(await ki(e.options.hydrate?.(r.dehydratedData),a.signal),!s())return;let t=e.history.location;u=t.href,d=t.state,e.updateLatestLocation(),c=e.latestLocation,e.stores.location.set(c),l=e.matchRoutes(c,{_controller:a})}catch(t){if(s()&&(e._preflight=void 0),a.abort(t),t!==a.signal)throw t}if(!s())return;let f=[],p,m=0,h=t=>{m=Math.min(m,t+1);let n=f.splice(t);for(let t of n)Ai(e,t).options.loader&&(t.status===`success`||!t.invali
11d&&`loaderData`in t)&&Ui(e,{...t,status:`success`,error:void 0,preload:!0},e._cache.get(t.id));Li(e,n)},g=i.length>l.length?l.findIndex(e=>e._notFound)+1:i.length,_=!1;for(let t=0;t<g;t++){let n=l[t],r=i[t];if(typeof r.i!=`string`||qn(r.i)!==n.id){p??=t;break}m=t+1;let a=Ai(e,n);if((`l`in r||r.s===`success`&&r.e===void 0&&a.options.loader)&&(n.loaderData=r.l),n.status=r.s,n.ssr=r.ssr,a.options.ssr=n.ssr,n.updatedAt=r.u,n.error=r.e,n._notFound||=r.g,n.status===`error`||n.status===`notFound`||n._notFound){_=!0,f.push(n),(n.ssr===!1||n.ssr===`data-only`)&&(p??=t);break}if(n.status===`pending`){p??=t;break}f.push(n),n.ssr===`data-only`&&(p??=t)}!_&&f.length===g&&g<l.length&&(p=g);let v=f.map(async t=>{try{let n=Ai(e,t);return await(t._notFound?Promise.all([bi(n),bi(n,`notFoundComponent`)]):bi(n,t.status===`error`?`errorComponent`:t.status===`notFound`?`notFoundComponent`:void 0)),!0}catch{return!1}}),y=0;try{for(;y<v.length&&await ki(v[y],a.signal);)y++}catch{return}if(!s())return;y<f.length&&h(y);let b=Math.max(p===f.length?f.length+1:f.length,y<v.length?y:m);for(let t=0;t<b;t++){let n=l[t],r=Ai(e,n),o=l[t-1]?.context??e.options.context??{},u;if(r.options.context){try{u=n._ctx=r.options.context({deps:n.loaderDeps,params:n.params,context:o,location:c,navigate:t=>e.navigate({...t,_fromLocation:c}),buildLocation:e.buildLocation,cause:n.cause,abortController:a,preload:!1,matches:l,routeId:r.id})||{}}catch{if(!s())return;if(n.status!==`error`&&n.status!==`notFound`&&!n._notFound){p=Math.min(p??t,t),h(t);break}}if(!s())return}n.context={...o,...u,...f[t]&&i[t].b}}if(await Zi(e,[c,l],a.signal,0,m),!s())return;let x=p!==void 0||f.length<g,S=_&&f.length===g?l:f,C=x?l:S,w;if(x&&p!==void 0){let e=C[p];w=e.ssr===`data-only`&&m>p+1?m:void 0,C=C.slice(),C[p]={...e,status:`pending`,ssr:e.ssr===`data-only`?`data-only`:!1,_assetEnd:w}}let T=()=>{let t=e.history.location;return x&&!e._tx&&t.href===u&&t.state===d&&e._committed===S&&S.length&&!a.signal.aborted?a:void 0},E=[T,t=>{if(e._handoff!==E)return;e._handoff=void 0;let n=S.length;if(!t||!T()||S.some((e,n)=>e.id!==t[n]?.id)){a.abort();return}let r=w;if(r!==void 0){for(let e=n;e<r;e++)if(l[e]?.id!==t[e]?.id){r=e>p+1?e:void 0;break}}let i=S.map(e=>({...e}));r!==void 0&&(i[p]._assetEnd=r),Li(e,t.splice(0,n,...i));for(let e=n;e<t.length;e++){let n=t[e],r=l[e];r?.id===n.id&&r._ctx&&(n._ctx=r._ctx),n.abortController=a}return n}];e._committed=S,e._lifecycleEnd=ii(S),e._handoff=E,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(C),e.stores.status.set(`idle`),x||e.stores.resolvedLocation.set(e.stores.location.get())})}var da=Symbol.asyncIterator,fa=Symbol.hasInstance,pa=Symbol.isConcatSpreadable,ma=Symbol.iterator,ha=Symbol.match,ga=Symbol.matchAll,_a=Symbol.replace,va=Symbol.search,ya=Symbol.species,ba=Symbol.split,xa=Symbol.toPrimitive,Sa=Symbol.toStringTag,Ca=Symbol.unscopables,wa={[da]:0,[fa]:1,[pa]:2,[ma]:3,[ha]:4,[ga]:5,[_a]:6,[va]:7,[ya]:8,[ba]:9,[xa]:10,[Sa]:11,[Ca]:12},Ta={0:da,1:fa,2:pa,3:ma,4:ha,5:ga,6:_a,7:va,8:ya,9:ba,10:xa,11:Sa,12:Ca},Ea={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Da={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Oa={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function ka(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 Aa(e){return ka(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}var ja=Aa(2),Ma=Aa(3),Na=Aa(1),Pa=Aa(0),Fa=Aa(4),Ia=Aa(5),La=Aa(6),Ra=Aa(7),za=64,Ba=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Va(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case` 12`: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 Ha(e){if(e.length>=za&&!Ba.test(e))return JSON.stringify(e).slice(1,-1);let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Va(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Ua(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return` 13`;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 Wa(e){return typeof e==`string`&&!e.includes(`\\`)?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Ua)}var{toString:Ga}
13=Object.prototype,Ka={parsing:1,serialization:2,deserialization:3};function qa(e){return`Seroval Error (step: ${Ka[e]})`}var Ja=(e,t)=>qa(e),Ya=class extends Error{constructor(e,t){super(Ja(e,t)),this.cause=t}},Xa=class extends Ya{constructor(e){super(`parsing`,e)}},Za=class extends Ya{constructor(e){super(`deserialization`,e)}};function Qa(e){return`Seroval Error (specific: ${e})`}var $a=class extends Error{constructor(e){super(Qa(1)),this.value=e}},eo=class extends Error{constructor(e){super(Qa(2))}},to=class extends Error{constructor(e){super(Qa(3))}},no=class extends Error{constructor(e){super(Qa(4))}},ro=class extends Error{constructor(e){super(Qa(5)),this.value=e}},io=class extends Error{constructor(e){super(Qa(6))}},ao=class extends Error{constructor(e){super(Qa(7))}},oo=class extends Error{constructor(e){super(Qa(8))}},so=class extends Error{constructor(e){super(Qa(9))}},co=`__SEROVAL_REFS__`,lo=new Map,uo=new Map;function fo(e){return lo.has(e)}function po(e){return uo.has(e)}function mo(e){if(fo(e))return lo.get(e);throw new ro(e)}function ho(e){if(po(e))return uo.get(e);throw new io(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,co,{value:uo,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,co,{value:uo,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,co,{value:uo,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,co,{value:uo,configurable:!0,writable:!1,enumerable:!1});function go(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 _o(e){let t=Da[go(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function vo(e,t){let n=_o(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 yo(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function bo(e){switch(e){case 1/0:return Ia;case-1/0:return La}return e===e?Object.is(e,-0)?Fa:ka(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):Ra}function xo(e){return ka(1,void 0,Ha(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function So(e){return ka(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Co(e){return ka(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function wo(e,t){let n=t.valueOf();return ka(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 To(e,t,n){return ka(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Eo(e,t){return ka(6,e,void 0,Ha(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Do(e,t){return ka(17,e,wa[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Oo(e,t){return ka(18,e,Ha(mo(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ko(e,t,n){return ka(25,e,n,Ha(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ao(e,t,n){return ka(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,yo(t),void 0)}function jo(e,t){return ka(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}var Mo=1e6;function No(e,t,n){if(t.length>Mo)throw new $a(t);return ka(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function Po(e,t,n){if(t.length>Mo)throw new $a(t);return ka(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}
13function Fo(e,t,n){if(t.byteLength>Mo)throw new $a(t);return ka(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function Io(e,t,n){return ka(13,e,go(t),void 0,Ha(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function Lo(e,t,n){return ka(14,e,go(t),void 0,Ha(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function Ro(e,t){return ka(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function zo(e,t){return ka(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Bo(e,t){return ka(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Vo(e,t,n){return ka(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function Ho(e,t){return ka(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Uo(e,t){return ka(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Wo(e,t){return ka(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Go(e,t,n,r){return ka(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var Ko=class{constructor(e,t){this.value=e,this.replacement=t}},qo=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},Jo=()=>{let e=[],t=[],n=!0,r=!1,i=0,a={flush(e,n,r){for(r=0;r<i;r++){let i=t[r];i&&i[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=0){let o=n;if(n){for(r=0;r<i&&t[r];r++);r===i&&i++,t[r]=e}return a.up(e),()=>{if(n&&o){for(o=!1,t[r]=void 0;i>0&&!t[i-1];)i--;t.length=i}}}};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)}}},Yo=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},Xo=(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},Zo=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};function Qo(e){return`__SEROVAL_SEQUENCE__`in e}function $o(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function es(e){let t=[],n=-1,r=-1,i=e[ma]();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 $o(t,n,r)}var ts=Yo(ma);function ns(e){return ts(e)}var rs={},is={},as={0:{},1:{},2:{},3:{},4:{},5:{}};function os(e){return`__SEROVAL_STREAM__`in e}function ss(){return Jo()}function cs(e,t){let n=ss(),r=e[da](),i=!1,a=!1;t?.push(()=>{a||i||(i=!0,Promise.resolve().then(()=>r.return?.call(r)).catch(()=>{}))});async function o(){try{for(;!i;){let e=await r.next();if(i)return;if(e.done){a=!0,n.return(e.value);break}n.next(e.value)}}catch(e){a=!0,i||n.throw(e)}}return o().catch(()=>{}),n}var ls=Xo(da,qo);function us(e){return ls(e)}async function ds(e){try{return[1,await e]}catch(e){return[0,e]}}function fs(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,compactArrayBufferViews:t.compactArrayBufferViews??!1}}function ps(e,t){e.marked.add(t)}function ms(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function hs(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ms(e,t)}:(ps(e,n),{type:1,value:Co(n)})}function gs(e,t){let n=hs(e,t);return n.type===1?n:fo(t)?{type:2,value:Oo(n.value,t)}:n}function _s(e,t){let n=gs(e,t);if(n.type!==0)return n.value;if(t in wa)return Do(n.value,t);throw new $a(t)}function vs(e,t){let n=hs(e,as[t]);return n.type===1?n.value:ka(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ys(e){let t=hs(e,rs);return t.type===1?t.value:ka(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,_s(e,ma),void 0,void 0,void 0)}function bs(e){let t=hs(e,is);return t.type===1?t.value:ka(29,t.value,void 0,void 0,void 0,void 0,void 0,[vs(e,1),_s(e,da)],void 0,void 0,void 0,void 0)}function xs(e,t,n,r){return ka(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,yo(t),void 0)}function Ss(e,t,n,r){return ka(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,vs(e,0),void 0,void 0,void 0)}function Cs(e,t){if(!e.compactArrayBufferViews)return t;let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,r=t.constructor;return new r(n)}function ws(e){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=new Uint8Array(e);if(typeof t.toBase64==`function`)return t.toBase64();let n=``;for(let e=0,r=t.length;e<r;e++)n+=String.fromCharCode(t[e]);return btoa(n)}
13function Ts(e,t,n){return ka(19,t,ws(n),void 0,void 0,void 0,void 0,void 0,vs(e,5),void 0,void 0,void 0)}function Es(e,t){return{base:fs(e,t),child:void 0}}var Ds=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return qs(this._p,this.depth,e)}};async function Os(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await qs(e,t,n[i]):r[i]=0;return r}async function ks(e,t,n,r){return Ao(n,r,await Os(e,t,r))}async function As(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Ha(r[n][0])),a.push(await qs(e,t,r[n][1]));return ma in n&&(i.push(_s(e.base,ma)),a.push(zo(ys(e.base),await qs(e,t,es(n))))),da in n&&(i.push(_s(e.base,da)),a.push(Bo(bs(e.base),await qs(e,t,cs(n))))),Sa in n&&(i.push(_s(e.base,Sa)),a.push(xo(n[Sa]))),pa in n&&(i.push(_s(e.base,pa)),a.push(n[pa]?ja:Ma)),{k:i,v:a}}async function js(e,t,n,r,i){return xs(n,r,i,await As(e,t,r))}async function Ms(e,t,n,r){return jo(n,await qs(e,t,r.valueOf()))}async function Ns(e,t,n,r){return r=Cs(e.base,r),No(n,r,await qs(e,t,r.buffer))}async function Ps(e,t,n,r){return r=Cs(e.base,r),Po(n,r,await qs(e,t,r.buffer))}async function Fs(e,t,n,r){return r=Cs(e.base,r),Fo(n,r,await qs(e,t,r.buffer))}async function Is(e,t,n,r){let i=vo(r,e.base.features);return Io(n,r,i?await As(e,t,i):void 0)}async function Ls(e,t,n,r){let i=vo(r,e.base.features);return Lo(n,r,i?await As(e,t,i):void 0)}async function Rs(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await qs(e,t,n)),a.push(await qs(e,t,o));return Ss(e.base,n,i,a)}async function zs(e,t,n,r){let i=[];for(let n of r.keys())i.push(await qs(e,t,n));return Ro(n,i)}async function Bs(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 ko(n,o.tag,await o.parse.async(r,new Ds(e,t),{id:n}))}}async function Vs(e,t,n,r){let[i,a]=await ds(r);return ka(12,n,i,void 0,void 0,void 0,void 0,void 0,await qs(e,t,a),void 0,void 0,void 0)}function Hs(e,t,n,r,i){let a=[],o=n.on({next:n=>{ps(this.base,t),qs(this,e,n).then(e=>{a.push(Ho(t,e))},e=>{i(e),o()})},throw:n=>{ps(this.base,t),qs(this,e,n).then(e=>{a.push(Uo(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ps(this.base,t),qs(this,e,n).then(e=>{a.push(Wo(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Us(e,t,n,r){return Vo(n,vs(e.base,4),await new Promise(Hs.bind(e,t,n,r)))}async function Ws(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await qs(e,t,r.v[n]);return Go(n,i,r.t,r.d)}async function Gs(e,t,n,r){if(Array.isArray(r))return ks(e,t,n,r);if(os(r))return Us(e,t,n,r);if(Qo(r))return Ws(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===Ko)return qs(e,t,r.replacement);let a=await Bs(e,t,n,r);if(a)return a;switch(i){case Object:return js(e,t,n,r,!1);case void 0:return js(e,t,n,r,!0);case Date:return wo(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Is(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Ms(e,t,n,r);case ArrayBuffer:return Ts(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ns(e,t,n,r);case DataView:return Fs(e,t,n,r);case Map:return Rs(e,t,n,r);case Set:return zs(e,t,n,r)}if(i===Promise||r instanceof Promise)return Vs(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Eo(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Ps(e,t,n,r)}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ls(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return To(n,0,r);case Temporal.Duration:return To(n,1,r);case Temporal.PlainDate:return To(n,2,r);case Temporal.PlainDateTime:return To(n,3,r);case Temporal.PlainMonthDay:return To(n,4,r);case Temporal.PlainTime:return To(n,5,r);case Temporal.PlainYearMonth:return To(n,6,r);case Temporal.ZonedDateTime:return To(n,7,r)}if(r instanceof Error)return Is(e,t,n,r);if(ma in r||da in r)return js(e,t,n,r,!!i);throw new $a(r)}async function Ks(e,t,n){let r=gs(e.base,n);if(r.type!==0)return r.value;let i=await Bs(e,t,r.value,n);if(i)return i;throw new $a(n)}
13async function qs(e,t,n){if(t>=e.base.depthLimit)throw new so(e.base.depthLimit);switch(typeof n){case`boolean`:return n?ja:Ma;case`undefined`:return Na;case`string`:return xo(n);case`number`:return bo(n);case`bigint`:return So(n);case`object`:if(n){let r=gs(e.base,n);return r.type===0?await Gs(e,t+1,r.value,n):r.value}return Pa;case`symbol`:return _s(e.base,n);case`function`:return Ks(e,t,n);default:throw new $a(n)}}async function Js(e,t){try{return await qs(e,0,t)}catch(e){throw e instanceof Xa?e:new Xa(e)}}function Ys(e){return e}function Xs(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Xs(e,r.extends))}}function Zs(e){if(e){let t=new Set;return Xs(t,e),[...t]}}function Qs(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 ao(e)}}function $s(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ec(e){switch(e){case da:case pa:case Sa:case ma:return!0;default:return!1}}var tc=1e6,nc=512,rc=1e4,ic=2e4;function ac(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 oc=1e3;function sc(e,t){let n=t.maxBase64Length??tc;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxBase64Length must be a non-negative safe integer`);let r=t.refs||new Map;return`types`in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:t.features??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||oc,maxBase64Length:n}}function cc(e){return{mode:2,base:sc(2,e),child:void 0}}var lc=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Yc(this._p,this.depth,e)}};function uc(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new oo({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function dc(e){return!!e&&typeof e==`object`&&`then`in e&&typeof e.then==`function`}function fc(e,t,n){return uc(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function pc(e,t,n){return uc(e.base,t),e.base.refs.set(t,n),n}function mc(e,t,n){return e.mode===1?fc(e,t,n):pc(e,t,n)}function hc(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new oo(e)}function gc(e,t){return mc(e,t.i,ho(Wa(t.s)))}function _c(e,t,n){let r=n.a,i=r.length,a=mc(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Yc(e,t,o));return ac(a,n.o),a}function vc(e,t,n){$s(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function yc(e,t,n,r,i){if(typeof r==`string`)vc(n,Wa(r),Yc(e,t,i));else{let a=Yc(e,t,r);switch(typeof a){case`string`:vc(n,a,Yc(e,t,i));break;case`symbol`:ec(a)&&(n[a]=Yc(e,t,i));break;default:throw new oo(r)}}}function bc(e,t,n){e.base.refs.types.set(t,n)}function xc(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new oo(t)}function Sc(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++)yc(e,t,r,i[a],o[a]);return r}function Cc(e,t,n){let r=mc(e,n.i,n.t===10?{}:Object.create(null));return Sc(e,t,n.p,r),ac(r,n.o),r}function wc(e,t){return mc(e,t.i,new Date(t.s))}function Tc(e,t){if(!(e.base.features&64))throw new eo(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 oo(t)}return mc(e,t.i,n)}function Ec(e,t){if(e.base.features&32){let n=Wa(t.c);if(n.length>ic)throw new oo(t);return mc(e,t.i,new RegExp(n,t.m))}throw new eo(t)}function Dc(e,t,n){let r=mc(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Yc(e,t,a[i]));return r}
13function Oc(e,t,n){let r=mc(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(Yc(e,t,a[i]),Yc(e,t,o[i]));return r}function kc(e,t){if(typeof t.s!=`string`)throw new oo(t);if(t.s.length>e.base.maxBase64Length)throw RangeError(`ArrayBuffer exceeds maxBase64Length (`+e.base.maxBase64Length+`)`);let n=Wa(t.s),r;if(n.length<nc||typeof Buffer>`u`)r=Zo(n);else{let e=atob(n);r=new ArrayBuffer(e.length),Buffer.from(r).write(e,`latin1`)}return mc(e,t.i,r)}function Ac(e,t,n){let r=Qs(n.c),i=Yc(e,t,n.f);if(!(i instanceof ArrayBuffer))throw new oo(n);let a=n.b??0;if(a<0||a>i.byteLength)throw new oo(n);return mc(e,n.i,new r(i,a,n.l))}function jc(e,t,n){let r=Yc(e,t,n.f);if(!(r instanceof ArrayBuffer))throw new oo(n);let i=n.b??0;if(i<0||i>r.byteLength)throw new oo(n);return mc(e,n.i,new DataView(r,i,n.l))}function Mc(e,t,n,r){if(n.p){let i=Sc(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Nc(e,t,n){return Mc(e,t,n,mc(e,n.i,AggregateError([],Wa(n.m))))}function Pc(e,t,n){let r=hc(n,Oa,n.s);return Mc(e,t,n,mc(e,n.i,new r(Wa(n.m))))}function Fc(e,t,n){let r=qo(),i=mc(e,n.i,r.p),a=Yc(e,t,n.f);if(dc(a))throw new oo(n.f);return n.s?r.s(a):r.f(a),i}function Ic(e,t,n){return mc(e,n.i,Object(Yc(e,t,n.f)))}function Lc(e,t,n){let r=e.base.plugins;if(r){let i=Wa(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return mc(e,n.i,o.deserialize(n.s,new lc(e,t),{id:n.i}))}}throw new to(n.c)}function Rc(e,t){let n=mc(e,t.i,mc(e,t.s,qo()).p);return bc(e,t.s,22),n}function zc(e,t,n){let r=e.base.refs.get(n.i);if(r){xc(e,n,n.i,22);let i=Yc(e,t,n.a[1]);if(dc(i))throw new oo(n.a[1]);n.t===23?r.s(i):r.f(i);return}throw new no(`Promise`)}function Bc(e,t,n){Yc(e,t,n.a[0]);let r=Yc(e,t,n.a[1]);if(xc(e,n,n.a[1].i,35),!r)throw new oo(n.a[1]);return ns(r)}function Vc(e,t,n){Yc(e,t,n.a[0]);let r=Yc(e,t,n.a[1]);if(xc(e,n,n.a[1].i,31),!r)throw new oo(n.a[1]);return us(r)}function Hc(e,t,n){let r=mc(e,n.i,ss());bc(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Yc(e,t,i[n]);return r}function Uc(e,t,n){let r=e.base.refs.get(n.i);if(r){xc(e,n,n.i,31),r.next(Yc(e,t,n.f));return}throw new no(`Stream`)}function Wc(e,t,n){let r=e.base.refs.get(n.i);if(r){xc(e,n,n.i,31),r.throw(Yc(e,t,n.f));return}throw new no(`Stream`)}function Gc(e,t,n){let r=e.base.refs.get(n.i);if(r){xc(e,n,n.i,31),r.return(Yc(e,t,n.f));return}throw new no(`Stream`)}function Kc(e,t,n){Yc(e,t,n.f)}function qc(e,t,n){Yc(e,t,n.a[1])}function Jc(e,t,n){let r=mc(e,n.i,$o([],n.s,n.l));bc(e,n.i,35);for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Yc(e,t,n.a[i]);return r}function Yc(e,t,n){if(t>e.base.depthLimit)throw new so(e.base.depthLimit);switch(t+=1,n.t){case 2:return hc(n,Ea,n.s);case 0:return Number(n.s);case 1:return Wa(String(n.s));case 3:if(String(n.s).length>rc)throw new oo(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return gc(e,n);case 9:return _c(e,t,n);case 10:case 11:return Cc(e,t,n);case 5:return wc(e,n);case 6:return Ec(e,n);case 7:return Dc(e,t,n);case 8:return Oc(e,t,n);case 19:return kc(e,n);case 16:case 15:return Ac(e,t,n);case 20:return jc(e,t,n);case 14:return Nc(e,t,n);case 13:return Pc(e,t,n);case 12:return Fc(e,t,n);case 17:return hc(n,Ta,n.s);case 21:return Ic(e,t,n);case 25:return Lc(e,t,n);case 22:return Rc(e,n);case 23:case 24:return zc(e,t,n);case 28:return Bc(e,t,n);case 30:return Vc(e,t,n);case 31:return Hc(e,t,n);case 32:return Uc(e,t,n);case 33:return Wc(e,t,n);case 34:return Gc(e,t,n);case 27:return Kc(e,t,n);case 29:return qc(e,t,n);case 35:return Jc(e,t,n);case 36:return Tc(e,n);default:throw new eo(n)}}function Xc(e,t){try{return Yc(e,0,t)}catch(e){throw new Za(e)}}function Zc(e,t){let n=Zs(t.plugins);return Xc(cc({maxBase64Length:t.maxBase64Length,plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Qc(e,t={}){let n=Zs(t.plugins),r=Es(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:n,disabledFeatures:t.disabledFeatures});return{t:await Js(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function $c(e){return Ys({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n){return{v:n.parse(e.toSerializable(t))}},async async(t,n){return{v:await n.parse(e.toSerializable(t))}},stream(t,n){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n){return e.fromSerializable(n.deserialize(t.v))}})}var el=Ys({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))}}),tl=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}};function nl(e){let t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(``))}var rl=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function il(e){try{return`t`+rl.decode(e)}catch{return`b`+nl(e)}}function al(e,t,n){n?.throwIfAborted();let r=ss(),i=e.getReader(),a=!0,o=()=>{a=!1,n?.removeEventListener(`abort`,c),i.releaseLock()},s=e=>a?(i.cancel(e).catch(()=>{}),o(),!0):!1,c=()=>{s(n.reason)&&r.throw(n.reason)};return n?.addEventListener(`abort`,c),(async()=>{try{for(;a;){let{done:e,value:n}=await i.read();if(!a)return;if(e){o(),r.return(void 0);return}r.next(t(n))}}catch(e){s(e)&&r.throw(e)}})(),[r,s]}function ol(e){return Ys({tag:`tss/RawStream`,test:e=>e instanceof tl,parse:{async:async(t,n)=>
13{let r=await n.parse(t.hint===`text`),[i]=al(t.stream,t.hint===`text`?il:nl,e);return{text:r,stream:await n.parse(i)}}},serialize:void 0,deserialize:void 0})}var sl=ol(),cl={},ll=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),ul=Ys({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===cl},parse:{sync(){return cl},async async(){return await Promise.resolve(cl)},stream(){return cl}},serialize(){return ll.toString()},deserialize(){return cl}});async function dl(e,t){try{for(;;){let n=await t.read();if(n.done){e.return(n.value),t.releaseLock();break}e.next(n.value)}}catch(n){t.releaseLock(),e.throw(n)}}function fl(e){e.cancel().catch(()=>{}),e.releaseLock()}function pl(e){let t=ss(),n=e.getReader(),r=fl.bind(null,n);return dl(t,n).catch(r),[t,r]}var ml=Ys({tag:`seroval/plugins/web/ReadableStream`,extends:[ul],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(cl),stream:t.parse(ss())}},async async(e,t){return{factory:await t.parse(cl),stream:await t.parse(pl(e)[0])}},stream(e,t){let[n,r]=pl(e);return t.addCleanup(r),{factory:t.parse(cl),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){let n=t.deserialize(e.stream);if(!n||typeof n!=`object`||!os(n))throw Error(`Expected a stream source.`);return ll(n)}});function hl(e){return[el,e?ol(e):sl,ml]}[...hl()];function gl(e){return Ys({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize:void 0,deserialize(t,n){return e(n.deserialize(t.streamId))}})}function _l(e){return[...(Kn()?.serializationAdapters)?.map($c)??[],...e]}function vl(e){return _l(hl(e))}var yl=new TextDecoder,bl=new Uint8Array,xl=new ByteLengthQueuingStrategy({highWaterMark:0});function Sl(e){let t=e.getReader(),n=new Map,r=0,i,a,o=()=>{i?.(),i=void 0},s=(e,t)=>{let n=e[1];e[1]=!1,n&&(t===1?n.close():n.error(t[0]))},c=new ReadableStream({start(e){a=e},pull:o,cancel(e){let i=[e===void 0?Error(`Framed response cancelled`):e];r=i,o(),t.cancel(e).catch(()=>{});for(let e of n.values())s(e,i)}});function l(e){let t=n.get(e);if(t)return t;if(n.size>=1024)throw Error(`Too many raw streams`);let i,a=[new ReadableStream({start(e){i=e},cancel(){a[1]!==!1&&(a[1]=null)}},xl),i];return n.set(e,a),r!==0&&s(a,r),a}function u(e){if(e===0||e>>>0!==e)throw RangeError(`Invalid raw stream ID`);return l(e)[0]}return(async()=>{let e=bl,o=0;async function c(){for(;o===e.byteLength;){e=bl,o=0;let n=await t.read();if(r!==0||n.done)return!1;e=n.value}return!0}async function u(t,n){if(t===0)return bl;if(!await c()){if(n)return;throw Error(`Incomplete frame`)}if(e.byteLength-o>=t){let n=e.subarray(o,o+t);return o+=t,o===e.byteLength&&(e=bl,o=0),n}let r=new Uint8Array(t),i=0;for(;i<t;){if(!await c())throw Error(`Incomplete frame`);let n=Math.min(t-i,e.byteLength-o);r.set(e.subarray(o,o+n),i),o+=n,i+=n}return o===e.byteLength&&(e=bl,o=0),r}try{for(;r===0;){let e=await u(9,!0);if(r!==0)return;if(!e){for(let e of n.values())if(e[1])throw Error(`Incomplete raw stream`);r=1,a.close();return}let t=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,c=(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0;if(e=bl,t>3||t===0!=(o===0)||c>16777216||t===2&&c!==0)throw Error(`Invalid frame`);let d=t===0?void 0:l(o);if(d?.[1]===!1)throw Error(`Raw stream already ended`);let f=await u(c);if(r!==0)return;if(!d){let e=yl.decode(f);for(f=bl,a.enqueue(e);r===0&&a.desiredSize<=0;)await new Promise(e=>{i=e});continue}if(t===1){let e=d[1];if(e){if(-e.desiredSize>134217728){e.error(Error(`Raw stream ${o} has too many unread bytes`)),d[1]=null,f=bl;continue}let t=f.byteLength*4<f.buffer.byteLength?f.slice():f;f=bl,e.enqueue(t)}}else s(d,t===2?1:[Error(yl.decode(f))])}}catch(e){if(r===0){let i=[e];r=i,t.cancel(e).catch(()=>{}),a.error(e);for(let e of n.values())s(e,i)}}finally{e=bl,t.releaseLock()}})(),[c,u]}var Cl=Symbol.for(`TSR_DEFERRED_PROMISE`);function wl(e,t){let n=e;return n[Cl]?n:(n[Cl]={status:`pending`},n.then(e=>{n[Cl].status=`success`,n[Cl].data=e}).catch(e=>
13{n[Cl].status=`error`,n[Cl].error={data:(t?.serializeError??ti)(e),__isServerError:!0}}),n)}function Tl(e,t){if(e)return typeof e==`string`?e:e[t]}function El(e){return e?.scriptFormat??`module`}function Dl(e,t,n){let r=Ol(t),i=Tl(n,`script`)??r.crossOrigin;return{...El(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Ol(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function kl(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 Al(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function jl(e,t,n,r){let i=Si(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function Ml([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}function Nl(e){return e}var Pl;function Fl(e,t,n){try{return Zc(e,t)}catch(e){throw Ll(n),e}}async function Il(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function Ll(e){for(let t of e)t.catch(()=>{});e.length=0}var Rl=Object.prototype.hasOwnProperty;function zl(e){for(let t in e)if(Rl.call(e,t))return!0;return!1}async function Bl(e,t,n){Pl||=vl();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData,o=new Headers(r.headers);if(o.set(`x-tsr-serverFn`,`true`),a||o.set(`accept`,`${Gn}, application/x-ndjson, application/json`),r.method===`GET`){if(a)throw Error(`FormData is not supported with GET requests`);let t=await Vl(r);if(t!==void 0){let n=kr({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;return r.method===`POST`&&(s=await Ul(r),typeof s==`string`&&o.set(`content-type`,`application/json`)),Wl(()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Vl(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&zl(e.context)&&((t??={}).context=e.context),t?Hl(t,e.signal):void 0}async function Hl(e,t){t?.throwIfAborted();let n;try{n=await Qc(e,{plugins:t?vl(t):Pl})}finally{t?.throwIfAborted()}return JSON.stringify(n)}async function Ul(e){if(e.data instanceof FormData){let t;return e.context&&zl(e.context)&&(t=await Hl(e.context,e.signal)),t!==void 0&&e.data.set(Un,t),e.data}return Vl(e)}async function Wl(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||F(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){let r=/;\s*v=(\d+)/.exec(n)?.[1];if(r&&+r!=1)throw Error(`Unsupported framed protocol version ${r}`);if(!t.body)throw Error(`No response body for framed response`);let[i,a]=Sl(t.body);e=await Gl(i,[gl(a),...Pl])}else if(n.includes(`application/json`)){let n=await t.json(),r=[];e=Fl(n,{plugins:Pl},r),await Il(r)}if(e||F(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=c(e);if(n)throw n;if(a(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Gl(e,t){let n=e.getReader(),r={refs:new Map,plugins:t},i=e=>{n.cancel(e).catch(()=>{})},a,o=[];try{let e=await n.read();if(e.done)throw Error(`Stream ended before first object`);a=Fl(JSON.parse(e.value),r,o)}catch(e){throw i(e),n.releaseLock(),e}return(async()=>{let e=[];try{for(;;){let t=await n.read();if(t.done)return;Fl(JSON.parse(t.value),r,e),Ll(e)}}catch(e){i(e),console.error(`Stream processing error:`,e)}finally{n.releaseLock()}})(),await Il(o),a}function Kl(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Kn()?.serverFns?.fetch;return Bl(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Wn]:!0})}var ql=Nl({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Wn in e)?!1:!!e[Wn],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Kl(e)}),U=e(r(),1),W=z();function Jl({promise:e}){if(R)return R(e);let t=wl(e);
13if(t[Cl].status===`pending`)throw t;if(t[Cl].status===`error`)throw t[Cl].error;return t[Cl].data}function Yl(e){let t=(0,W.jsx)(Xl,{...e});return e.fallback?(0,W.jsx)(U.Suspense,{fallback:e.fallback,children:t}):t}function Xl(e){let t=Jl(e);return e.children(t)}var G=function(e){return 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}({});function Zl({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&(G.RecursedCheck|G.Recursed|G.Dirty|G.Pending)?a&(G.RecursedCheck|G.Recursed)?a&G.RecursedCheck?!(a&(G.Dirty|G.Pending))&&c(e,i)?(i.flags=a|(G.Recursed|G.Pending),a&=G.Mutable):a=G.None:i.flags=a&~G.Recursed|G.Pending:a=G.None:i.flags=a|G.Pending,a&G.Watching&&t(i),a&G.Mutable){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&G.Dirty)a=!0;else if((c&(G.Mutable|G.Dirty))===(G.Mutable|G.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(G.Mutable|G.Pending))===(G.Mutable|G.Pending)){(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&=~G.Pending;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&(G.Pending|G.Dirty))===G.Pending&&(n.flags=r|G.Dirty,(r&(G.Watching|G.RecursedCheck))===G.Watching&&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 Ql(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 $l=[],eu=0,{link:tu,unlink:nu,propagate:ru,checkDirty:iu,shallowPropagate:au}=Zl({update(e){return e._update()},notify(e){$l[su++]=e,e.flags&=~G.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=G.Mutable|G.Dirty,du(e))}}),ou=0,su=0,cu,lu=0;function uu(e){try{++lu,e()}finally{--lu||fu()}}function du(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=nu(n,e)}function fu(){if(!(lu>0)){for(;ou<su;){let e=$l[ou];$l[ou++]=void 0,e.notify()}ou=0,su=0}}function pu(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?G.None:G.Mutable,get(){return cu!==void 0&&tu(i,cu,eu),i._snapshot},subscribe(e){let t=Ql(e),n={current:!1},r=mu(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=cu,o=t?.compare??Object.is;if(n)cu=i,++eu,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=G.Mutable|G.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{cu=a,n&&(i.flags&=~G.RecursedCheck),du(i)}}};return n?(i.flags=G.Mutable|G.Dirty,i.get=function(){let e=i.flags;if(e&G.Dirty||e&G.Pending&&iu(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&au(e)}}else e&G.Pending&&(i.flags=e&~G.Pending);return cu!==void 0&&tu(i,cu,eu),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ru(e),au(e),fu())}},i}function mu(e){let t=()=>{let t=cu;cu=n,++eu,n.depsTail=void 0,n.flags=G.Watching|G.RecursedCheck;try{return e()}finally{cu=t,n.flags&=~G.RecursedCheck,du(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:G.Watching|G.RecursedCheck,notify(){let e=this.flags;e&G.Dirty||e&G.Pending&&iu(this.deps,this)?t():this.flags=G.Watching},stop(){this.flags=G.None,this.depsTail=void 0,du(this)}};return t(),n}function K(e){return e=>{let t=I(e);return t.isRoot=!1,t}}function q(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(C(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;
13if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(R)R(a());else throw a();return U.createElement(r,e)};return o.preload=a,o}var hu=class extends U.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?U.createElement(this.props.errorComponent??gu,{error:e[0],reset:this.reset}):this.props.children}};function gu({error:e}){let[t,n]=U.useState(!1);return(0,W.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,W.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,W.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,W.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,W.jsx)(`div`,{children:(0,W.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,W.jsx)(`code`,{children:e.message}):null})}):null]})}function _u(e){let t=oe(),n=`not-found-${ce(t.stores.location,e=>e.pathname)}-${ce(t.stores.status)}`;return(0,W.jsx)(hu,{getResetKey:()=>n,onCatch:(t,n)=>{if(a(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(a(t))return e.fallback?.(t);throw t},children:e.children})}function vu(){return(0,W.jsx)(`p`,{children:`Not Found`})}function yu(e){return(0,W.jsx)(W.Fragment,{children:e.children})}function bu(e,t,n){return t.options.notFoundComponent?(0,W.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,W.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,W.jsx)(vu,{})}function xu(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,W.jsx)(n,{}):null}var Su=(e,t)=>e[0]===t[0]&&e[1]===t[1],Cu=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,wu=U.memo(function({routeId:e}){let t=oe();return(0,W.jsx)(Tu,{router:t,match:ce(t.stores.getMatchStore(e))})});function Tu({router:e,match:t}){let n=e.routesById[t.routeId],r=xu(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,o=n.options.onCatch??e.options.defaultOnCatch,s=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,c=t.ssr===!1||t.ssr===`data-only`,l=Cu(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||c))?U.Suspense:yu,u=i?hu:yu,d=s?_u:yu;return(0,W.jsxs)(n.isRoot?n.options.shellComponent??yu:yu,{children:[(0,W.jsx)(se.Provider,{value:t.routeId,children:(0,W.jsx)(l,{fallback:r,children:(0,W.jsx)(u,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(a(e))throw e.routeId??=t.routeId,e;o?.(e,n)},children:(0,W.jsx)(d,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return U.createElement(s,e)},children:c?(0,W.jsx)(ie,{fallback:r,children:(0,W.jsx)(Eu,{match:t})}):(0,W.jsx)(Eu,{match:t})})})})}),null]})}var Eu=U.memo(function({match:e}){let t=oe(),n=e.routeId,r=t.routesById[n],i=U.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=U.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,W.jsx)(e,{},i):(0,W.jsx)(Du,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Cu(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return xu(t,r)}if(e.status===`notFound`)return bu(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Du=U.memo(function(){let e=oe(),t=U.useContext(se),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=ce(a,e=>[!!e._notFound,e.error],{compare:Su}),i=ce(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return bu(e,e.routesById[t],r);if(!i)return null;let a=(0,W.jsx)(wu,{routeId:i});return t===`__root__`?(0,W.jsx)(U.Suspense,{fallback:xu(e),children:a}):a}),Ou=e=>({createMutableStore:pu,createReadonlyStore:pu,batch:uu}),ku=e=>new Au(e),Au=class extends oi{constructor(e){super(e,Ou)}};function ju(e,t){let n=e[1];e.length=0,n?.(t)}function Mu({t:e}
13){let t=oe(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{ju(n,!1),n.push(i,a),e(t),U.startTransition(r)}),ne(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(k(r.publicHref)!==k(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...ni(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Nu(){let e=oe(),t=e.routesById[s],n=xu(e,t),r=e.ssr?yu:U.Suspense,i=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Mu,{t:U.useState()[1]}),(0,W.jsx)(r,{fallback:n,children:(0,W.jsx)(Pu,{})})]});return e.options.InnerWrap?(0,W.jsx)(e.options.InnerWrap,{children:i}):i}function Pu(){let e=oe(),t=e._rendered,n=ce(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;ne(()=>{t[0]===n&&ju(t,!0)},[t,n]);let a=i?(0,W.jsx)(wu,{routeId:i}):null;return(0,W.jsx)(se.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,W.jsx)(hu,{getResetKey:()=>r,onCatch:void 0,children:a})})}function Fu({router:e,children:t,...n}
13){D(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,W.jsx)(ae.Provider,{value:e,children:t});return e.options.Wrap?(0,W.jsx)(e.options.Wrap,{children:r}):r}function Iu({router:e,...t}){return(0,W.jsx)(Fu,{router:e,...t,children:(0,W.jsx)(Nu,{})})}function Lu(e){let t=oe({warn:e?.router===void 0}),n=e?.router||t;return ce(n.stores.__store,P(e,n))}function Ru(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 zu(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=U.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,W.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,W.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,W.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,W.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,W.jsx)(Bu,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Bu({attrs:e,children:t,preventScriptHoist:n}){oe();let r=re(),i=U.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Ru(r,e),document.head.appendChild(r),()=>r.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.scripts){if(e.hasAttribute(`src`))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,Ru(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,W.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Vu(e,t,n,r){n=Si(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r)if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:T(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=Al(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Tl(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...Dl(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return kl(m,a),m.push(...d),kl(m,c),m.push(...u),kl(m,f),kl(m,p),m}var Hu=e=>{let t=oe(),n=t.options.ssr?.nonce,r=U.useCallback(r=>Vu(t,n,r,e),[e,n,t]);return ce(t.stores.matches,r,{compare:f})};function Uu(e){let t=Hu(e.assetCrossOrigin),n=oe().options.ssr?.nonce;return(0,W.jsx)(W.Fragment,{children:t.map(e=>(0,U.createElement)(zu,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Wu={suppressHydrationWarning:!0},Gu=()=>{let e=oe(),t=e.options.ssr?.nonce,n=n=>{let r=jl(n,e.ssr?.manifest,t,Wu);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ku(ce(e.stores.matches,e=>Ml(n(e)),{compare:f}))};function Ku(e){return(0,W.jsx)(W.Fragment,{children:e.map((e,t)=>(0,U.createElement)(zu,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var qu=U.createContext(void 0),Ju=e=>{let t=U.useContext(qu);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Yu=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,W.jsx)(qu.Provider,{value:e,children:t}));function Xu(e){let t;if(e.then(e=>(t=e,e),le)?.catch?.(le),t!==void 0)return{data:t}}function Zu(e,t,n){let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData;t.mutations?.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),t.queries?.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?Xu(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a?a(f):f,m=i.get(o),h=m?.state.status===`pen
13ding`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&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`,dataUpdatedAt:l,...!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,...r.status===`pending`&&p!==void 0&&{dataUpdatedAt:l}});c&&!d&&!h&&!g&&l>m.state.dataUpdatedAt&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(le)})}function Qu({router:e,queryClient:t,dehydrateOptions:n,hydrateOptions:r,handleRedirects:i=!0}){let a=e.options.hydrate;if(e.options.hydrate=async e=>{let n=e.query;try{await a?.(e),n.initial&&Zu(t,{queries:n.initial},r)}catch(e){throw n.stream.cancel(e).catch(()=>{}),e}let i=n.stream.getReader();(async()=>{try{for(;;){let{done:e,value:n}=await i.read();if(e)return;Zu(t,{queries:n},r)}}catch(e){console.error(`Error reading query stream:`,e),i.cancel(e).catch(()=>{})}finally{i.releaseLock()}})()},i){let n=t.getMutationCache().config;t.getMutationCache().config={...n,onError:(t,...r)=>u(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)=>u(t)?(t.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(t).options)):r.onError?.(t,...n)}}}function $u(e){if(Qu(e),e.wrapQueryClient===!1)return;let t=e.router.options.Wrap||U.Fragment;e.router.options.Wrap=({children:n})=>(0,W.jsx)(Yu,{client:e.queryClient,children:(0,W.jsx)(t,{children:n})})}function ed(){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 td(){return typeof crypto.randomUUID==`function`?crypto.randomUUID():ed()}function nd(){typeof crypto.randomUUID!=`function`&&Object.defineProperty(crypto,"randomUUID",{configurable:!0,value:ed})}nd();var rd=[`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`],id=[],ad=new Set,od=new Set,sd=[],cd=!1;function ld(e){id.some(t=>t.name===e.name)||id.push(e)}function ud(e){od.add(e),ve()===`granted`&&pd(e)}function dd(){if(cd||typeof window>`u`)return;cd=!0;function e(){ve()===`granted`&&fd()}e(),me(t=>{t===`granted`&&e()})}async function fd(){ye(),await Ce(),await Promise.all(id.filter(e=>!ad.has(e.name)&&(e.defaultEnabled||od.has(e.name))).map(e=>md(e)))}async function pd(e){let t=id.find(t=>t.name===e);!t||ad.has(e)||(ye(),await Ce(),await md(t))}async function md(e){try{await e.load(),ad.add(e.name),hd(e)}catch(t){console.warn(`[analytics] provider "${e.name}" failed to load`,t)}}function hd(e){for(let t of sd)_d(e,t);gd()&&(sd.length=0)}function gd(){return id.filter(e=>e.defaultEnabled||od.has(e.name)).every(e=>ad.has(e.name))}function _d(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 vd(e){sd.push(e);for(let t of id)ad.has(t.name)&&_d(t,e);gd()&&(sd.length=0)}function yd(e){vd({kind:`pageview`,props:e})}function bd(e,t){vd({kind:`identify`,userId:e,traits:t})}function xd(e,t){if(Cd.has(e)){vd({kind:`track`,name:e,properties:t,only:[Sd]});return}vd({kind:`track`,name:e,properties:t})}var Sd=`posthog`,Cd=new Set(rd);function wd(e,t){vd({kind:`track`,name:e,properties:t,only:[Sd]})}function Td(){vd({kind:`reset`})}function Ed(e,t,n=new Date){return`${e}_${t}_${n.toISOString().split(`T`)[0].replace(/-/g,``)}`}function Dd(e=Date.now()){let t=Ee(`_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=we();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 Od=`2681282998548997`,kd=`https://connect.facebook.net/en_US/fbevents.js`;function Ad(){return window.fbq}var jd={},Md=`dex.analytics.metaIdentity`,Nd=10080*60*1e3;function Pd(e){try{let t={...e,savedAt:Date.now()};window.localStorage.setItem(Md,JSON.stringify(t))}catch{}}function Fd(){try{let e=window.localStorage.getItem(Md);if(!e)return{};let t=JSON.parse(e);return!t||typeof t.savedAt!=`number`||Date.now()-t.savedAt>Nd?{}:{external_id:t.external_id,email:t.email}}catch{return{}}}function Id(){try{window.localStorage.removeItem(Md)}catch{}}function Ld(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}function Rd(){return{...jd.external_id?jd:Fd(),fbp:Ee(`_fbp`),fbc:Dd()}}function zd(e){fetch(`/api/analytics/fb-capi`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e),keepalive:!0}
13).catch(()=>{})}var Bd=!1,Vd=`dex.analytics.metaPendingConversions`,Hd=10080*60*1e3;function Ud(){try{let e=window.localStorage.getItem(Vd);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Wd(e){try{e.length===0?window.localStorage.removeItem(Vd):window.localStorage.setItem(Vd,JSON.stringify(e.slice(-20)))}catch{}}function Gd(e,t){if(Ad()?.(`track`,e,t.params,{eventID:t.eventId}),t.mirrorToCapi){let n=Rd();zd({event_name:e,event_id:t.eventId,event_time:Math.floor(Date.now()/1e3),event_source_url:xe(),user_data:{...n,external_id:t.identity?.external_id??n?.external_id,email:t.identity?.email??n?.email},custom_data:t.params})}}function Kd(){let e=Date.now()-Hd,t=Ud().filter(t=>t.queuedAt>=e);Wd([]);for(let e of t)Gd(e.eventName,e.options)}function qd(e,t){if(!(typeof window>`u`)){if(!Bd){let n=Ud();n.push({eventName:e,options:t,queuedAt:Date.now()}),Wd(n);return}Gd(e,t)}}var Jd={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=kd;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}Ad()?.(`init`,Od),Bd=!0,setTimeout(Kd,0)},pageview(){let e=Ld();Ad()?.(`track`,`PageView`,void 0,{eventID:e}),zd({event_name:`PageView`,event_id:e,event_time:Math.floor(Date.now()/1e3),event_source_url:xe(),user_data:Rd()})},identify(e,t){jd={external_id:e,email:t?.email??void 0},Pd(jd),Ad()?.(`init`,Od,{external_id:e,em:t?.email})},track(e,t){let n=Ld();Ad()?.(`trackCustom`,e,t,{eventID:n}),zd({event_name:e,event_id:n,event_time:Math.floor(Date.now()/1e3),event_source_url:xe(),user_data:Rd(),custom_data:t})},reset(){jd={},Id()}},Yd=`G-THWZ98EBTQ`,Xd=`G-81ECKJPZX4`,Zd=[Yd,Xd],Qd=`AW-768317188`,$d=`AW-768317188/HyFCCK_H2YIdEISuru4C`,ef=`dex.analytics.googleAdsPendingConversions`,tf=`dex.analytics.googleAdsClaimedConversions`,nf=10080*60*1e3,rf=720*60*60*1e3,af=20,of=50;function sf(){return window.gtag}var cf=!1,lf=!1,uf=!1,df=!1,ff=!1,pf=new Set,mf=[];function hf(e){return/^[a-f0-9]{64}$/.test(e)}function gf(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`&&hf(e.transactionId)&&typeof e.recordedAt==`number`&&e.recordedAt>=i)}catch{return[]}}function _f(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 vf(e){return pf.has(e)?!0:gf(tf,rf).some(t=>t.transactionId===e)?(pf.add(e),!0):!1}function yf(e){let t=gf(tf,rf);pf.add(e),_f(tf,[...t,{transactionId:e,recordedAt:Date.now()}],of)}function bf(){mf.length=0,pf.clear();try{window.localStorage.removeItem(ef),window.localStorage.removeItem(tf)}catch{}}function xf(e){if(!lf||ve()!==`granted`)return!1;if(vf(e))return!0;let t=sf();if(!t||ve()!==`granted`)return!1;try{t(`event`,`conversion`,{send_to:$d,transaction_id:e})}catch{return!1}return ve()===`granted`&&yf(e),!0}function Sf(e,t=Date.now()){mf.some(t=>t.transactionId===e)||(mf.push({transactionId:e,recordedAt:t}),mf.length>af&&mf.shift())}function Cf(e,t=Date.now()){let n=ve();if(n===`denied`){bf();return}if(n!==`granted`){Sf(e,t);return}if(vf(e))return;let r=gf(ef,nf);if(r.some(t=>t.transactionId===e))return;let i={transactionId:e,recordedAt:t};_f(ef,[...r,i],af)||Sf(e,t)}function wf(){if(!lf||ve()!==`granted`)return;let e=Date.now()-nf,t=[...gf(ef,nf),...mf.splice(0).filter(t=>t.recordedAt>=e)];_f(ef,[],af);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=ve();if(i===`denied`){bf();return}if(i!==`granted`){for(let n of t.slice(e))Sf(n.transactionId,n.recordedAt);return}xf(r.transactionId)||Cf(r.transactionId,r.recordedAt)}}function Tf(){if(!cf||ve()!==`granted`)return;let e=sf();if(e)try{if(uf||=(e(`js`,new Date),e(`config`,Yd,{send_page_view:!1}),e(`config`,Xd,{send_page_view:!1}),e(`set`,`user_properties`,Se()??{}),!0),ve()!==`granted`||(df||=(e(`config`,Qd,{send_page_view:!1,groups:`adsConversions`}),!0),ve()!==`granted`))return;lf=!0,wf()}catch{lf=!1}}function Ef(e){if(e===`denied`){lf=!1,bf();return}if(e===`pending`){lf=!1;return}if(Tf(),!cf)for(let e of mf.splice(0))Cf(e.transactionId,e.recordedAt)}function Df(){ff||typeof window>`u`||(ff=!0,me(Ef),Ef(ve()))}function Of(e){if(typeof window>`u`||!hf(e))return;Df();let t=ve();if(t===`denied`){bf();return}if(t===`pending`){Sf(e);return}vf(e)||(!lf||!xf(e))&&Cf(e)}var kf={name:`google-analytics`,defaultEnabled:!0,async load(){Df(),ve()===`denied`&&bf();let e=window;if(e.dataLayer=e.dataLayer||[],e.gtag=function(){e.dataLayer.push(arguments)}
13,await Promise.all([Te(`https://m.getdex.com/gtag/js?id=${Yd}`),Te(`https://www.googletagmanager.com/gtag/js?id=${Xd}`)]),cf=!0,ve()===`denied`){bf();return}Tf()},pageview(e){sf()?.(`event`,`page_view`,{page_path:e.path,page_title:e.title,page_referrer:e.referrer,send_to:[...Zd]})},identify(e){let t=sf();t?.(`config`,Yd,{user_id:e}),t?.(`config`,Xd,{user_id:e})},track(e,t){sf()?.(`event`,e,{...t,send_to:[...Zd]})}},Af=`onboarding-flow-v2`,jf=`onboarding_flow_v2_arm`,Mf=`$feature/onboarding-flow-v2`;function Nf(e){return{[Mf]:e,[jf]:e}}function Pf(e){return e??`control`}var Ff=`dex.signup_attribution`,If=64,Lf=200;function Rf(e){return e.ref_post?{signup_ref:e.ref,signup_ref_post:e.ref_post}:{signup_ref:e.ref}}function zf(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 Bf(e){let t=zf(e,`ref`,If);if(!t)return;let n=zf(e,`ref_post`,Lf);return n?{ref:t,ref_post:n}:{ref:t}}function Vf(e){if(!(!e||typeof window>`u`))try{window.sessionStorage.setItem(Ff,JSON.stringify(e))}catch{}}function Hf(){if(!(typeof window>`u`))try{let e=window.sessionStorage.getItem(Ff);return e?Bf(JSON.parse(e)):void 0}catch{return}}function Uf(){if(!(typeof window>`u`))try{window.sessionStorage.removeItem(Ff)}catch{}}B();var Wf=null,Gf=null;function Kf(e){return Gf?{...e,...Nf(Gf)}:e}var qf=!1,Jf=`dex-webapp`,Yf=`dex-desktop`,Xf=/^v(.+)-([^-]+)-([^-]+)$/,Zf=/-[^.]+\.([^.]+)$/;function Qf(){let e={app_source:Jf},t=Zf.exec(ke)?.[1];t&&(e.webapp_commit=t);let n=pe();if(!n)return e;e.app_source=Yf;let{buildVersion:r,platform:i}=n;r&&(e.desktop_build=r),i&&(e.desktop_platform=i);let a=r?Xf.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 $f(e){qf=e,rp()}var ep=null;function tp(e){Wf?Wf.register_once(e):ep=e}function np(){let e=Hf(),t=ep??(e?Rf(e):null);ep=null,t&&Wf?.register_once(t)}function rp(){Wf&&(qf?Wf.startSessionRecording():Wf.stopSessionRecording())}var ip={name:`posthog`,defaultEnabled:!0,async load(){if(typeof window>`u`)return;Wf=(await V(()=>import(`./module-DUojK2lz.js`),[])).default,Wf.init(`phc_dtzrG7UquKfZslbXGEWdImDQUIXHSU2TZ3BpKgSAUP7`,{api_host:`https://argos.getdex.com`,person_profiles:`identified_only`,capture_pageview:!1,defaults:`2025-11-30`,disable_session_recording:!0}),Wf.register(Qf()),np(),rp();let e=await pe()?.getInfo?.().catch(()=>null);e&&Wf.register({desktop_os_version:e.osVersion,desktop_arch:e.arch});let t=Se();t&&Wf.register(t)},pageview(e){Wf?.capture(`$pageview`,{$current_url:typeof window<`u`?xe():e.path,path:e.path,title:e.title,referrer:e.referrer,...Gf?Nf(Gf):{}})},identify(e,t){let{$set_once:n,...r}=t??{};Wf?.identify(e,{id:e,...r},Gf?{...n,[jf]:Gf}:n)},track(e,t){e===`onboarding_experiment_exposed`&&(t?.variant===`control`||t?.variant===`test`)&&(Gf=t.variant),Wf?.capture(e,Kf(t))},reset(){Gf=null,qf=!1,rp(),Wf?.reset()}},ap=`GNLKQHPYZW6Q`;function op(){return window.reb2b}var sp={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(ap)}},pageview(){},identify(e,t){op()?.identify?.(e,t??{})},track(){}},cp=`t2_4a9idv0f`;function lp(){return window.rdt}var up=`dex.analytics.redditPendingConversions`,dp=2880*60*1e3,fp=!1;function pp(){try{let e=window.localStorage.getItem(up);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function mp(e){try{e.length===0?window.localStorage.removeItem(up):window.localStorage.setItem(up,JSON.stringify(e.slice(-20)))}catch{}}function hp(e,t){lp()?.(`track`,e,{conversionId:t})}function gp(){let e=Date.now()-dp,t=pp().filter(t=>t.queuedAt>=e);mp([]);for(let e of t)hp(e.eventName,e.conversionId)}function _p(){fp=!0,setTimeout(gp,0)}function vp(e,t){if(!(typeof window>`u`)){if(!fp){let n=pp();n.push({eventName:e,conversionId:t.conversionId,queuedAt:Date.now()}),mp(n);return}hp(e,t.conversionId)}}var yp={name:`reddit`,defaultEnabled:!0,async load(){let e=window;if(e.rdt)e.rdt.sendEvent&&_p();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=_p;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}lp()?.(`init`,cp,{optOut:!1,useDecimalCurrencyValues:!0})},pageview(){lp()?.(`track`,`PageVisit`)},identify(e,t){lp()?.(`init`,cp,{externalId:e,...t?.email?{email:t.email.toLowerCase()}:{},optOut:!1,useDecimalCurrencyValues:!0})},track(e){e===`Lead`&&lp()?.(`track`,`Lead`)}},bp=`D2AG3KBC77U9B02LP170`,xp=`https://analytics.tiktok.com/i18n/pixel/events.js`;function Sp(){return window.ttq}var Cp={name:`tiktok`,defaultEnabled:!0,async load(){let e=window;
13if(!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=xp,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=`${xp}?sdkid=${e}&lib=ttq`;let i=document.getElementsByTagName(`script`)[0];i?.parentNode?.insertBefore(r,i)}}let t=Sp();t?.load(bp),t?.page()},pageview(){Sp()?.page()},identify(e,t){Sp()?.identify({external_id:e,email:t?.email})},track(e,t){Sp()?.track(e,t)}},wp=`qf19b`,Tp=`https://static.ads-twitter.com/uwt.js`;function Ep(){return window.twq}typeof window<`u`&&(Df(),ld(ip),ld(kf),ld(Jd),ld(yp),ld(Cp),ld({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)};t.version=`1.1`,t.queue=[],e.twq=t;let n=document.createElement(`script`);n.async=!0,n.src=Tp;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}Ep()?.(`config`,wp)},pageview(){Ep()?.(`event`,`tw-pageview`,{})},identify(e,t){Ep()?.(`config`,wp,{external_id:e,email:t?.email})},track(e,t){Ep()?.(`event`,e,t)}}),ld(Oe),ld(sp),dd(),_e());var Dp=`(function(){try{ 14var p=location.pathname; 15if(p.length>1)p=p.replace(/\\/+$/,'')||'/'; 16if(${JSON.stringify([`/`,`/jarvis`])}.indexOf(p.toLowerCase())===-1)return; 17var c=document.cookie.split(';'); 18for(var i=0;i<c.length;i++){if(c[i].trim().indexOf(${JSON.stringify(`dex_session_present=1`)})===0){location.replace('/app');return;}} 19}catch(e){}})();`,Op=Ge(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),kp=Ge(`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`}]]),Ap=Ge(`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`}]]),jp=Ge(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Mp=Ge(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Np=Ge(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Pp=Ge(`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`}]]),Fp=Ge(`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`}]]),Ip=Ge(`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`}]]),Lp=Ge(`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=Ge(`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`}]]),zp=Ge(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}
19]]),Bp=Ge(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Vp=Ge(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Hp=Ge(`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`}]]),Up=Ge(`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`}]]),Wp=Ge(`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`}]]),J=fe();function Gp(){let e=(0,J.c)(5),[t,n]=(0,U.useState)(!1),r,i;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>(n(ge()),me(()=>{n(ge())})),i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,U.useEffect)(r,i),!t)return null;let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.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,W.jsxs)(`div`,{className:`min-w-0 flex-1 text-sm text-muted-foreground`,children:[a,(0,W.jsxs)(`p`,{className:`mt-1 leading-snug`,children:[`We use analytics and marketing cookies to understand how visitors use Dex. Change this anytime.`,` `,(0,W.jsx)(N,{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,W.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,W.jsxs)(`div`,{className:`flex shrink-0 gap-2`,children:[(0,W.jsx)(Ue,{variant:`outline`,size:`sm`,onClick:qp,children:`Reject`}),(0,W.jsx)(Ue,{size:`sm`,onClick:Kp,children:`Accept all`})]})]}),e[4]=s):s=e[4],s}function Kp(){return he(`granted`)}function qp(){return he(`denied`)}var Jp=`#EA4335`,Yp=U.forwardRef(function({title:e=`Gmail`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Jp),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),Xp=`#4285F4`,Zp=U.forwardRef(function({title:e=`Google Calendar`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Xp),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),Qp=`#34DA50`,$p=U.forwardRef(function({title:e=`iMessage`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Qp),(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
19width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),em=`#000000`,tm=U.forwardRef(function({title:e=`TikTok`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=em),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),nm=`#25D366`,rm=U.forwardRef(function({title:e=`WhatsApp`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=nm),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),im=`#000000`,am=U.forwardRef(function({title:e=`X`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=im),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),om=`#FF0000`,sm=U.forwardRef(function({title:e=`YouTube`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=om),(0,W.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,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),cm=`#FF4F00`,lm=U.forwardRef(function({title:e=`Zapier`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=cm),(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
19width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,W.jsx)(`title`,{children:e}),(0,W.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`})]})}),um=`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+lBfVfSBbmuzYPlPgOX6AbtugZX+/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/J0GhM57m7BYSz1AaOMoZVKVZKkr5r8ZuXv11YWgdWQ3LekGDSOiVMxsizATkQRX0ouFgSU2nVy4np7irbQc9FcqH8iCObCkl1kWSj7wZ8TpU50ueh0kIlJvi51iNBpmne76EzAyZJ6iHvAYSbmw2924otJPpR666Ppr1McHP9YQfLaQ5baxocs64ORj3aQPbfoVB77ZudqOGR
19ZQhgLBPGf1ILzTx1Ick7Q9tSZswA0qbw3Ff7onUV8RbIxyTY01IQLKCZWiKAFqsOh2qfaphQsQ5K89t3MQW7Sp1Siw0JbBf6SrcZ+hwVKL1IW13UCWyHpwKLtj/rYJ9E3hx+2Pj66KxkQvzOXz/LzwwXGQRt+rcFYtW3aLVa8Oj+oDpfG+Cnn0IVf5jn1DTgeN89W3lTbLNT5m6zDpNz04FFNIx4G1fqbrAZHEyf442F/PXYfOtkG99vSy/D1IoJunz59utH8XXDv0eDgYGt1dXWdLXrt0qVLrkFv4fz583zj3eLPR1euXbvmvBW7Br0BdHnz5k1+6bnUzz/s8OY8d+/evUbJPQB0ePfuXXf27NlFdNv+JyzeFy98//59/sWLF+7Tp0+u+Zvh4wUUi6u9evXq7tDQ0OLt27eXKO+zTPy/DjJh/na8+TdKxweclj3teN2t4XLtv1H6B3fCpZxM0QcQAAAAAElFTkSuQmCC`,dm=`/assets/google-play-badge-BrCqUfJJ.png`,fm=`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`,pm=`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.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%3c/svg%3e`;function mm(e){let t=(0,J.c)(3),{className:n,isotypeOnly:r}=e,i=r?pm:fm,a;return t[0]!==n||t[1]!==i?(a=(0,W.jsx)(`img`,{src:i,alt:`Dex`,className:n}),t[0]=n,t[1]=i,t[2]=a):a=t[2],a}var hm=[{label:`Facebook`,href:`https://www.facebook.com/dexprm`,Icon:it},{label:`Instagram`,href:`https://www.instagram.com/dex_prm/`,Icon:at},{label:`X`,href:`https://x.com/dexprm`,Icon:am},{label:`TikTok`,href:`https://www.tiktok.com/@getdex`,Icon:tm},{label:`YouTube`,href:`https://www.youtube.com/@dexprm`,Icon:sm}],gm=[[{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`}]}
19,{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]`}]}]],_m=`text-sm text-neutral-700 transition-colors hover:text-foreground`;function vm(){let e=(0,J.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(`div`,{children:(0,W.jsx)(mm,{className:`h-6 w-auto`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,W.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,W.jsxs)(`div`,{className:`grid gap-12 md:grid-cols-[140px_1fr]`,children:[t,(0,W.jsxs)(`nav`,{"aria-labelledby":`footer-nav-heading`,children:[n,(0,W.jsx)(`div`,{className:`grid grid-cols-2 gap-[71px] lg:grid-cols-4`,children:gm.map(bm)})]})]}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,W.jsx)(`footer`,{className:`border-t border-neutral-200 bg-background`,children:(0,W.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-6 pt-20 pb-10`,children:[r,(0,W.jsxs)(`div`,{className:`mt-[60px] flex flex-col-reverse items-center gap-6 sm:flex-row sm:gap-[60px]`,children:[(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:hm.map(ym)}),(0,W.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 ym(e){let{label:t,href:n,Icon:r}=e;return(0,W.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,W.jsx)(r,{className:`size-3.5`})},t)}function bm(e,t){return(0,W.jsxs)(`div`,{className:`space-y-12`,children:[e.map(xm),t===gm.length-1?(0,W.jsxs)(`div`,{className:`flex flex-col items-start gap-3`,children:[(0,W.jsx)(`a`,{href:st,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Download on the App Store`,className:`block transition-opacity hover:opacity-90`,children:(0,W.jsx)(`img`,{src:um,alt:`Download on the App Store`,width:120,height:40,loading:`lazy`,decoding:`async`,className:`block h-[33px] w-[100px]`})}),(0,W.jsx)(`a`,{href:ot,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Get it on Google Play`,className:`block transition-opacity hover:opacity-90`,children:(0,W.jsx)(`img`,{src:dm,alt:`Get it on Google Play`,width:120,height:40,loading:`lazy`,decoding:`async`,className:`block h-[33px] w-[100px]`})})]}):null]},t)}function xm(e){let{label:t,items:n}=e;return(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h3`,{className:`text-sm text-neutral-500`,children:t}),(0,W.jsx)(`ul`,{className:`mt-3 space-y-1`,children:n.map(Sm)})]},t)}function Sm(e){let{label:t,href:n}=e;return(0,W.jsx)(`li`,{children:(0,W.jsx)(Cm,{href:n,children:t})},t)}function Cm(e){let t=(0,J.c)(10),{href:n,children:r}=e;if(!n.startsWith(`/`)){let e;return t[0]!==r||t[1]!==n?(e=(0,W.jsx)(`a`,{href:n,className:_m,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,W.jsx)(N,{to:i,search:o,className:_m,children:r}),t[6]=r,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function wm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Tm(...e){return t=>{let n=!1,r=e.map(e=>{let r=wm(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():wm(e[t],null)}}}}function Em(...e){return U.useCallback(Tm(...e),e)}var Dm=class extends U.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(vt(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=vt(e)&&e.offsetWidth||0,r=vt(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}};
19function Om({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,U.useId)(),s=(0,U.useRef)(null),c=(0,U.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,U.useContext)(gt),u=Em(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,U.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(` 20 [data-motion-pop-id="${o}"] { 21 position: absolute !important; 22 width: ${e}px !important; 23 height: ${u}px !important; 24 ${_}px !important; 25 ${v}px !important; 26 } 27 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,W.jsx)(Dm,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:U.cloneElement(e,{ref:u})})}var km=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=ct(Am),d=(0,U.useId)(),f=(0,U.useRef)(n),p=(0,U.useRef)(r);lt(()=>{f.current=n,p.current=r});let m=!0,h=(0,U.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,U.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),U.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,W.jsx)(Om,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,W.jsx)(dt.Provider,{value:h,children:e})};function Am(){return new Map}var jm=e=>e.key||``;function Mm(e){let t=[];return U.Children.forEach(e,e=>{(0,U.isValidElement)(e)&&t.push(e)}),t}var Nm=({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]=mt(o),f=(0,U.useMemo)(()=>Mm(e),[e]),p=o&&!u?[]:f.map(jm),m=(0,U.useRef)(!0),h=(0,U.useRef)(f),g=ct(()=>new Map),_=(0,U.useRef)(new Set),[v,y]=(0,U.useState)(f),[b,x]=(0,U.useState)(f);lt(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=jm(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=jm(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Mm(e)),y(f),null}let{forceRender:C}=(0,U.useContext)(ut);return(0,W.jsx)(W.Fragment,{children:b.map(e=>{let v=jm(e),y=o&&!u?!1:f===b||p.includes(v);return(0,W.jsx)(km,{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 Pm(){!ft.current&&pt();let[e]=(0,U.useState)(ht.current);return e}var Fm=`blog`,Im=`ref_post`,Lm=[`/preboard`,`/pricing`,`/get-started`],Rm=`https://getdex.com`,zm=new Set([`getdex.com`,`www.getdex.com`,`next.getdex.com`]),Bm=new Set([`author`,`tag`,`page`]);function Vm(e){return Lm.some(t=>e===t||e.startsWith(`${t}/`))}function Hm(e,t){let n;try{n=new URL(e,Rm)}catch{return e}return!zm.has(n.hostname)||!Vm(n.pathname)?e:(n.searchParams.set(`ref`,Fm),t&&n.searchParams.set(Im,t),e.startsWith(`/`)?`${n.pathname}${n.search}${n.hash}`:n.href)}function Um(e){let t=/^\/blog\/([^/]+)\/?$/.exec(e);if(!t)return;let n=t[1];if(!(!n||Bm.has(n)))return n}function Wm(e){if(e!==`/blog`&&!e.startsWith(`/blog/`))return;let t=Um(e);return t?{ref:Fm,ref_post:t}:{ref:Fm}}var Gm=[[{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`}
27],[{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`}]],Km=[{label:`Resources`,dropdown:Gm},{label:`Integrations`,to:`/integrations`},{label:`Pricing`,to:`/pricing`},{label:`Love`,to:`/testimonials`}],qm=Km.filter(e=>!e.dropdown),Jm=Gm.flat(),Ym=[`/resources`,`/blog`,`/guides`,`/ai-agents`,`/browser-extension`,`/desktop`,`/mobile`],Xm=`h-10 rounded-xl backdrop-blur-md`,Zm={boxShadow:`0 4px 10px 0 rgba(0, 0, 0, 0.05)`},Qm={...Zm,background:`linear-gradient(93.7124deg, rgba(255, 255, 255, 0.45) 27.803%, rgba(255, 255, 255, 0.88) 155.95%)`},$m={...Zm,background:`linear-gradient(93.3866deg, rgba(255, 255, 255, 0.45) 27.814%, rgba(255, 255, 255, 0.88) 160.36%)`},eh=`inline-flex items-center text-sm font-normal leading-5 transition-colors`,th=`text-neutral-500 hover:text-foreground`,nh=`text-foreground`,rh=100;function ih(e,t){return e.dropdown?Ym.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 ah(){let e=(0,J.c)(60),[t,n]=(0,U.useState)(!1),[r,i]=(0,U.useState)(!1),a=(0,U.useRef)(null),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={select:sh},e[0]=o):o=e[0];let{pathname:s,search:c}=Lu(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,U.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,U.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,U.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},rh)},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:yt},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,W.jsx)(_t.div,{className:`absolute left-6 top-1/2 -translate-y-1/2 shrink-0`,initial:x,animate:S,transition:C,children:(0,W.jsx)(N,{to:`/`,"aria-label":`Dex home`,className:`block`,children:(0,W.jsx)(mm,{className:`h-[30px] w-[88px]`})})}),e[16]=w):w=e[16];let T;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(T=We(`flex items-center gap-6 px-3`,Xm),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:yt},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=Km.map((e,t)=>{let n=ih(e,s),a=!!e.dropdown;return(0,W.jsx)(_t.li,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.4,delay:.05+t*.04,ease:yt},onMouseEnter:a?v:void 0,onMouseLeave:a?b:void 0,children:a?(0,W.jsx)(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":r,onClick:()=>r?i(!1):v(),className:We(eh,`cursor-default`,n||r?nh:th),children:e.label}):(0,W.jsx)(N,{to:e.to,search:e.search,"aria-current":n?`page`:void 0,className:We(eh,n?nh:th),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,W.jsx)(_t.ul,{className:T,style:Qm,initial:E,animate:D,transition:O,children:k}),e[24]=k,e[25]=A);let j;e[26]===r?j=e[27]:(j=(0,W.jsx)(ch,{open:r,onMouseEnter:v,onMouseLeave:b}),e[26]=r,e[27]=j);let M;e[28]!==A||e[29]!==j?(M=(0,W.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=We(`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`,Xm),e[31]=ee):ee=e[31];let P,F,I;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(P={opacity:0,y:-8},F={opacity:1,y:0},I={duration:.45,delay:.1,ease:yt},e[32]=P,e[33]=F,e[34]=I):(P=e[32],F=e[33],I=e[34]);let L;e[35]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,W.jsx)(N,{to:`/app/auth/sign-in`,className:We(eh,th,`hidden md:inline-flex`),children:`Sign in`}),e[35]=L):L=e[35];let te;e[36]===s?te=e[37]:(te=Wm(s),e[36]=s,e[37]=te);let ne;e[38]===te?ne=e[39]:(ne={step:0,...te},e[38]=te,e[39]=ne);let R;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(R=Ve({size:`sm`,className:`h-8 rounded-lg px-3 md:h-9`}),e[40]=R):R=e[40];let z;e[41]===ne?z=e[42]:(z=(0,W.jsx)(N,{to:`/get-started`,search:ne,className:R,children:`Get started for free`}),e[41]=ne,e[42]=z);let re=t?`Close menu`:`Open menu`,ie;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(ie=()=>n(oh),e[43]=ie):ie=e[43];let ae;e[44]===t?ae=e[45]:(ae=t?(0,W.jsx)(rt,{className:`size-5`}):(0,W.jsx)(zp,{className:`size-5`}),e[44]=t,e[45]=ae);let oe;e[46]!==t||e[47]!==re||e[48]!==ae?(oe=(0,W.jsx)(`button`,{type:`button`,"aria-label":re,"aria-expanded":t,onClick:ie,className:`grid size-8 place-items-center text-neutral-500 transition-colors hover:text-foreground md:hidden`,children:ae}),e[46]=t,e[47]=re,e[48]=ae,e[49]=oe):oe=e[49];let se;e[50]!==z||e[51]!==oe?(se=(0,W.jsxs)(_t.div,{className:ee,style:$m,initial:P,animate:F,transition:I,children:[L,z,oe]}),e[50]=z,e[51]=oe,e[52]=se):se=e[52];let ce;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>n(!1),e[53]=ce):ce=e[53];let le;e[54]===t?le=e[55]:(le=(0,W.jsx)(fh,{open:t,onClose:ce}),e[54]=t,e[55]=le);let ue;return e[56]!==M||e[57]!==se||e[58]!==le?(ue=(0,W.jsx)(`nav`,{className:`absolute inset-x-0 top-0 z-20 pt-6`,children:(0,W.jsxs)(`div`,{className:`relative mx-auto h-10 max-w-[1200px] px-6`,children:[w,M,se,le]})}),e[56]=M,e[57]=se,e[58]=le,e[59]=ue):ue=e[59],ue}function oh(e){return!e}function sh(e){return{pathname:e.location.pathname,search:e.location.search??{}}}function ch(e){let t=(0,J.c)(6),{open:n,onMouseEnter:r,onMouseLeave:i}=e,a;t[0]!==r||t[1]!==i||t[2]!==n?(a=n?(0,W.jsx)(_t.div,{role:`menu`,"aria-label":`Resources`,onMouseEnter:r,onMouseLeave:i,initial:{opacity:0,y:-6}
27,animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.15},style:Zm,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:Gm.map(lh)},`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,W.jsx)(Nm,{children:a}),t[4]=a,t[5]=o),o}function lh(e,t){return(0,W.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.map(uh)},t)}function uh(e){return(0,W.jsx)(`li`,{children:(0,W.jsx)(dh,{item:e})},e.title)}function dh(e){let t=(0,J.c)(17),{item:n}=e,r;t[0]===n.label?r=t[1]:(r=(0,W.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,W.jsx)(Fp,{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,W.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,W.jsxs)(W.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,W.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,W.jsx)(N,{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 fh(e){let t=(0,J.c)(11),{open:n,onClose:r}=e,[i,a]=(0,U.useState)(!1),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={select:mh},t[0]=o):o=t[0];let{pathname:s}=Lu(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,U.useEffect)(c,l);let u;t[4]!==r||t[5]!==n||t[6]!==s||t[7]!==i?(u=n?(0,W.jsxs)(_t.div,{initial:{opacity:0,y:-8},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,W.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:()=>a(ph),className:We(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,`justify-between`,ih(Km[0],s)||i?nh:th),children:[(0,W.jsx)(`span`,{children:`Resources`}),(0,W.jsx)(Np,{"aria-hidden":`true`,className:We(`size-4 shrink-0 transition-transform duration-200`,i&&`rotate-180`)})]}),(0,W.jsx)(Nm,{initial:!1,children:i?(0,W.jsx)(_t.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:Jm.map(e=>(0,W.jsx)(`li`,{children:(0,W.jsx)(hh,{item:e,onClose:r})},e.title))},`mobile-resources`):null}),qm.map(e=>{let t=ih(e,s);return(0,W.jsx)(N,{to:e.to,search:e.search,onClick:r,"aria-current":t?`page`:void 0,className:We(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,t?nh:th),children:e.label},e.label)}),(0,W.jsx)(N,{to:`/app/auth/sign-in`,onClick:r,className:We(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,th),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,W.jsx)(Nm,{children:u}),t[9]=u,t[10]=d),d}function ph(e){return!e}function mh(e){return{pathname:e.location.pathname}}function hh(e){let t=(0,J.c)(19),{item:n,onClose:r}=e,i;t[0]===n.label?i=t[1]:(i=(0,W.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,W.jsx)(Fp,{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,W.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,W.jsxs)(W.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,W.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,W.jsx)(N,{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}B();var gh=typeof window<`u`,_h=class extends U.Component{state={hasError:!1,error:void 0};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){bh(e,t)}
27render(){if(!this.state.hasError)return this.props.children;if(!gh)throw vh(this.state.error);return(0,W.jsx)(xh,{error:this.state.error})}};function vh(e){return e instanceof Error?e:Error(`Non-Error value thrown during render: ${yh(e)}`)}function yh(e){if(typeof e==`string`)return e||`<empty string>`;try{return String(e)}catch{return`<unstringifiable>`}}async function bh(e,t){try{(await V(()=>import(`./esm-umt0K0yz.js`).then(e=>e.t),__vite__mapDeps([0,1,2]))).captureException(vh(e),{contexts:{react:{componentStack:t.componentStack}},tags:{boundary:`root`},extra:{thrownValue:yh(e)}})}catch{}}function xh(e){let t=(0,J.c)(11),{error:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`},children:[(0,W.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,W.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,W.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,W.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=vh(n),t[4]=n,t[5]=s);let c;t[6]===s.message?c=t[7]:(c=(0,W.jsx)(`p`,{className:`mt-4 max-w-[56ch] truncate font-mono text-xs text-muted-foreground/70`,children:s.message}),t[6]=s.message,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsxs)(`div`,{className:`mt-12 flex items-center gap-8`,children:[(0,W.jsx)(`button`,{type:`button`,onClick:Sh,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,W.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,W.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,W.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,W.jsxs)(`div`,{className:`max-w-xl`,children:[r,i,(0,W.jsxs)(`div`,{className:`rise-in mt-8`,style:a,children:[o,c,l]})]})})}),t[9]=c,t[10]=u),u}function Sh(){return window.location.reload()}var Ch=()=>{},wh=new Promise(e=>{Ch=e});function Th(){Ch()}function Eh(){return wh}var Dh=[`/app`,`/logout`,`/preboard`,`/shared`,`/linkHandler`,`/refer`,`/auth`,`/desktop-login-start`,`/desktop-login-redirect`,`/desktop-voice-panel`];function Oh(e){return Dh.some(t=>e===t||e.startsWith(`${t}/`))}var kh=`/app/auth`,Ah=new Set([`/app/auth/mcp-authorize`,`/app/auth/device-code`]),jh=new Set([`/app/auth/action`]);function Mh(e){let t=e.toLowerCase();return t===kh||t.startsWith(`${kh}/`)}function Nh(e){return Ah.has(e.toLowerCase().replace(/\/+$/,``))}function Ph(e){return jh.has(e.toLowerCase().replace(/\/+$/,``))}var Fh=`/app`,Ih=`/desktop-voice-panel`,Lh=`/refer`;function Rh(e){let t=e.toLowerCase();return t===Fh||t.startsWith(`${Fh}/`)||t===Ih||t===Lh}function zh(e){return e.some(Rh)&&!e.some(Mh)}var Bh=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}},Vh=3e4;function Hh(e,t){if(t.length<=Vh)e.push(...t);else for(let n=0;n<t.length;n+=Vh){let r=t.slice(n,n+Vh);e.push(...r)}}function Uh(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 Wh=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 Gh(e,t){let[n,r]=e,[i,a]=t;return{onlyInA:[...Kh(n,Math.min(r,i)),...Kh(Math.max(n,a),r)],onlyInB:[...Kh(i,Math.min(a,n)),...
27Kh(Math.max(i,r),a)]}}function Kh(e,t){let n=[];for(let r=e;r<t;r++)n.push(r);return n}function qh(e,t){if(typeof e==typeof t){if(typeof e==`number`&&typeof t==`number`){let n=Number.isNaN(e),r=Number.isNaN(t);if(n||r)return n&&r?0:n?1:-1}return e<t?-1:+(e>t)}return typeof e==`string`?-1:1}function Jh(e){return Yh(e,new Set)?JSON.stringify(Xh(e)):`~${JSON.stringify(Zh(e,new Set))}`}function Yh(e,t){if(e===null)return!0;switch(typeof e){case`boolean`:case`string`:return!0;case`number`:return Number.isFinite(e);case`undefined`:case`bigint`:case`symbol`:case`function`:return!1}return $h(e,t,()=>e instanceof Date||e instanceof RegExp||e instanceof Uint8Array||e instanceof Map||e instanceof Set?!1:Array.isArray(e)?e.every(e=>Yh(e,t)):Object.keys(e).every(n=>Yh(e[n],t)))}function Xh(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`?e:Array.isArray(e)?e.map(Xh):Object.fromEntries(Object.keys(e).sort().map(t=>[t,Xh(e[t])]))}function Zh(e,t){if(e===void 0)return[`undefined`];if(e===null)return[`null`];switch(typeof e){case`boolean`:return[`boolean`,e];case`number`:return Number.isNaN(e)?[`number`,`NaN`]:e===1/0?[`number`,`Infinity`]:e===-1/0?[`number`,`-Infinity`]:[`number`,e===0?0:e];case`bigint`:return[`bigint`,e.toString()];case`string`:return[`string`,e];case`symbol`:case`function`:throw TypeError(`Cannot serialize ${typeof e} as a structural relation key`)}return $h(e,t,()=>{if(e instanceof Date){let t=e.getTime();return Number.isNaN(t)?[`date`,`Invalid`]:[`date`,t]}if(e instanceof RegExp)return[`regexp`,e.source,e.flags];if(e instanceof Uint8Array)return[`bytes`,Array.from(e)];if(Array.isArray(e))return[`array`,e.map(e=>Zh(e,t))];if(e instanceof Map){let n=[...e.entries()].map(([e,n])=>[Zh(e,t),Zh(n,t)]);return n.sort((e,t)=>Qh(JSON.stringify(e),JSON.stringify(t))),[`map`,n]}if(e instanceof Set){let n=[...e].map(e=>Zh(e,t));return n.sort((e,t)=>Qh(JSON.stringify(e),JSON.stringify(t))),[`set`,n]}return[`object`,Object.keys(e).sort().map(n=>[n,Zh(e[n],t)])]})}function Qh(e,t){return e<t?-1:+(e>t)}function $h(e,t,n){if(t.has(e))throw TypeError(`Cannot serialize a cyclic structural relation key`);t.add(e);try{return n()}finally{t.delete(e)}}var eg=ug(),tg=ug(),ng=ug(),rg=ug(),ig=ug(),ag=lg(),og=new Map,sg=0;function cg(e){let t=Symbol.keyFor(e);if(t!==void 0){let e=og.get(t);return e===void 0&&(e=++sg,og.set(t,e)),e}let n=ag.get(e);return n===void 0&&(n=++sg,ag.set(e,n)),n}function lg(){let e=new WeakMap,t=Symbol();try{if(e.set(t,0),e.get(t)===0)return e}catch{}return new Map}function ug(){return Math.random()*(2**31-1)>>>0}var dg=new ArrayBuffer(8),fg=new DataView(dg),pg=new Uint8Array(dg),mg=class{constructor(){this.hash=eg,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(ig),this.update(cg(e));return;case`string`:this.update(tg);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`:fg.setFloat64(0,e,!0),this.writeByte(pg[0]),this.writeByte(pg[1]),this.writeByte(pg[2]),this.writeByte(pg[3]),this.writeByte(pg[4]),this.writeByte(pg[5]),this.writeByte(pg[6]),this.writeByte(pg[7]);return;case`bigint`:{let t=e;for(t<0n?(t=-t,this.update(rg)):this.update(ng);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}},hg=ug(),gg=ug(),_g=ug(),vg=ug(),yg=ug(),bg=ug(),xg=ug(),Sg={object:ug(),array:ug(),map:ug(),set
27:ug()},Cg=ug(),wg=ug(),Tg=1e6,Eg=768,Dg=new Set([`Temporal.Duration`,`Temporal.Instant`,`Temporal.PlainDate`,`Temporal.PlainDateTime`,`Temporal.PlainMonthDay`,`Temporal.PlainTime`,`Temporal.PlainYearMonth`,`Temporal.ZonedDateTime`]);function Og(e){let t=e[Symbol.toStringTag];return typeof t==`string`&&Dg.has(t)}var kg=128,Ag=new WeakMap,jg=new WeakSet;function Mg(e){Kg(e)}function Ng(e){let t=new mg;return zg(t,e),t.digest()}function Pg(e,t){if(t.activeObjects.size>=Eg)throw RangeError(`Value is too complex to hash safely: structural depth`);t.activeObjects.add(e);let n;try{if(e instanceof Date)n=Fg(e);else if(Hg(e))n=Ig(e);else if(Og(e))n=Lg(e);else{let[r,i]=Ug(e);n=Rg(i,Sg[r],t)}}finally{t.activeObjects.delete(e)}return t.pendingHashes.set(e,n),n}function Fg(e){let t=new mg;return t.update(xg),t.update(e.getTime()),t.digest()}function Ig(e){let t=new mg;t.update(Cg),t.update(e.byteLength);for(let n=0;n<e.byteLength;n++)t.writeByte(e[n]);return t.digest()}function Lg(e){let t=new mg;return t.update(wg),t.update(e[Symbol.toStringTag]),t.update(e.toString()),t.digest()}function Rg(e,t,n){let r=new mg;r.update(t);let i=Object.keys(e);i.sort(qg);for(let t of i)r.update(yg),r.update(t),zg(r,e[t],n);let a=Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t)).sort((e,t)=>cg(e)-cg(t));for(let t of a)r.update(yg),r.update(t),zg(r,e[t],n);return r.digest()}function zg(e,t,n){if(n&&++n.work>Tg)throw RangeError(`Value is too complex to hash safely: structural work`);if(t===null){e.update(_g);return}switch(typeof t){case`undefined`:e.update(vg);return;case`boolean`:e.update(t?hg:gg);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(Bg(t,n));return;case`function`:e.update(Kg(t));return;default:console.warn(`Ignored input during hashing because it is of type ${typeof t} which is not supported`)}}function Bg(e,t){if(!t){let n=Ag.get(e);if(n!==void 0)return n;if(Vg(e))return Kg(e);t={activeObjects:new Set,work:0,pendingHashes:new Map};let r=Pg(e,t);for(let[e,n]of t.pendingHashes)Ag.set(e,n);return r}if(t.activeObjects.has(e))throw TypeError(`Cannot hash cyclic structural values`);if(Vg(e))return Kg(e);let n=Ag.get(e)??t.pendingHashes.get(e);return n===void 0?Pg(e,t):n}function Vg(e){return e instanceof File||Hg(e)&&e.byteLength>kg}function Hg(e){return typeof Buffer<`u`&&e instanceof Buffer||e instanceof Uint8Array}function Ug(e){return e instanceof Map?[`map`,[...e.entries()]]:e instanceof Set?[`set`,[...e.values()]]:[e instanceof Array?`array`:`object`,e]}function Wg(e,t){let n=new Map;function r(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(e===null||t===null||typeof e!=`object`||typeof t!=`object`||jg.has(e)||jg.has(t)||Vg(e)||Vg(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&r(e.getTime(),t.getTime());if(Hg(e)||Hg(t))return Hg(e)&&Hg(t)&&e.byteLength===t.byteLength&&e.every((e,n)=>e===t[n]);if(Og(e)||Og(t))return Og(e)&&Og(t)&&e[Symbol.toStringTag]===t[Symbol.toStringTag]&&e.toString()===t.toString();let i=n.get(e);if(i?.has(t))return!0;i?i.add(t):n.set(e,new Set([t]));let[a,o]=Ug(e),[s,c]=Ug(t);if(a!==s)return!1;let l=e=>Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t)),u=l(o);return u.length===l(c).length?u.every(e=>Object.prototype.propertyIsEnumerable.call(c,e)&&r(o[e],c[e])):!1}return r(e,t)}var Gg=1;function Kg(e){let t=Ag.get(e);return t===void 0&&(t=Gg^bg,Gg++,Ag.set(e,t),jg.add(e)),t}function qg(e,t){return e.localeCompare(t)}var Jg=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 Hh(n,this.#e),Hh(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`${Wh.getStringId(t)}|${Wh.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;
27s=Array.isArray(o)&&o.length===2?r(o):Wh.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 Bh(()=>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?Ng(e):e;o&&!n.has(i)&&n.set(i,e),t.update(i,e=>e+r)}let s=[];for(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;Hh(this.#e,n)}add(e,t){t!==0&&this.#e.push([e,t])}getInner(){return this.#e}},Yg=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}},Xg=class{#e=[];sendData(e){e instanceof Jg||(e=new Jg(e));for(let t of this.#e)t.unshift(e)}newReader(){let e=[];return this.#e.push(e),new Yg(e)}},Zg=class{constructor(e,t,n){this.id=e,this.inputs=t,this.output=n}hasPendingWork(){return this.inputs.some(e=>!e.isEmpty())}},Qg=class extends Zg{constructor(e,t,n){super(e,[t],n),this.id=e}inputMessages(){return this.inputs[0].drain()}},$g=class extends Zg{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()}},e_=class extends Qg{run(){for(let e of this.inputMessages())this.output.sendData(this.inner(e))}},t_=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 Xg;return new r_(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()}},n_=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)}},r_=class extends n_{sendData(e){this.writer.sendData(e)}},i_=class extends e_{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}inner(e){return e.map(this.#e)}};function a_(e){return t=>{let n=new n_(t.graph,new Xg),r=new i_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var o_=Symbol(`NO_PREFIX`),s_=class extends Map{addValue(e,t){if(t===0)return this.size===0;let n=u_(e),r=this.get(n);if(d_(r)){let[i,a]=r;if(u_(i)!==n)throw Error(`Mismatching prefixes, this should never happen`);if(i===e||Ng(i)===Ng(e)){let r=a+t;r===0?this.delete(n):this.set(n,[e,r])}else{let a=new c_;a.set(Ng(i),r),a.set(Ng(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}},c_=class extends Map{addValue(e,t){if(t===0)return this.size===0;let n=Ng(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}},l_=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(d_(t))yield t;else if(t===void 0)return;else if(t instanceof c_)for(let e of t.values())yield e;else for(let e of t.values())if(d_(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(d_(a)){this.#n(e,a,n,r);return}if(a instanceof c_){let i=u_(n);if(i!==o_){let n=new s_;n.set(o_,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=u_(n),s=u_(i);if(s===o&&(i===n||Ng(i)===Ng(n))){let t=a+r;t===0?this.#e.delete(e):this.#e.set(e,[n,t]);return}if(s===o_&&o===o_){let a=new c_;a.set(Ng(i),t),a.set(Ng(n),[n,r]),this.#e.set(e,a)}else{let a=new s_;if(s===o){let e=new c_;e.set(Ng(i),t),e.set(Ng(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 Jg(t)}};function u_(e){return Array.isArray(e)&&(typeof e[0]==`string`||typeof e[0]==`
27number`||typeof e[0]==`bigint`)?e[0]:o_}function d_(e){return Array.isArray(e)}var f_=class extends Qg{#e=new l_;#t=new l_;#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 Jg(t))}};function p_(e){return t=>{let n=new n_(t.graph,new Xg),r=new f_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}function m_(e){return`pipe`in e}function h_(e,t={}){let n=Object.from
27Entries(Object.entries(t).filter(([e,t])=>!m_(t)));return Object.fromEntries(Object.entries(t).filter(([e,t])=>m_(t))),t=>{let r=Symbol(`original_group_key`);return t.pipe(a_(t=>{let i=e(t),a=Jh(i),o={};o[r]=i;for(let[e,r]of Object.entries(n))o[e]=r.preMap(t);return[a,o]})).pipe(p_(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(a_(([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 g_(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 __(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 v_(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 y_(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 b_(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 x_(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)=>e-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 S_(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 C_={sum:g_,count:__,avg:v_,min:y_,max:b_,median:x_,mode:S_},w_=class extends e_{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}inner(e){return this.#e(e),e}};function T_(e){return t=>{let n=new n_(t.graph,new Xg),r=new w_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var E_=class extends e_{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}inner(e){return e.filter(this.#e)}};function D_(e){return t=>{let n=new n_(t.graph,new Xg),r=new E_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var O_=class extends $g{run(){for(let e of this.inputAMessages())this.output.sendData(e);for(let e of this.inputBMessages())this.output.sendData(e)}};function k_(e){return t=>{if(t.graph!==e.graph)throw Error(`Cannot concat streams from different graphs`);let n=new n_(t.graph,new Xg),r=new O_(t.graph.getNextOperatorId(),t.connectReader(),e.connectReader(),n.writer);return t.graph.addOperator(r),n}}var A_=class extends Qg{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}run(){for(let e of this.inputMessages())this.#e(e),this.output.sendData(e)}};function j_(e){return t=>{let n=new n_(t.graph,new Xg),r=new A_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var M_=class extends $g{#e=new l_;#t=new l_;#n;constructor(e,t,n,r,i=`inner`){super(e,t,n,r),this.#n=i}run(){let e=l_.fromMultiSets(this.inputAMessages()),t=l_.fromMultiSets(this.inputBMessages());if(e.size===0&&t.size===0)return;let n=new Jg;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 N_(e,t=`inner`){return n=>{if(n.graph!==e.graph)throw Error(`Cannot join streams from different graphs`);let r=new n_(n.graph,new Xg),i=new M_(n.graph.getNextOperatorId(),n.connectReader(),e.connectReader(),r.writer,t);return n.graph.addOperator(i),r}}var P_=class extends Qg{#e;#t;constructor(e,t,n,r=e=>e){super(e,t,n),this.#e=r,this.#t=new Map}run(){let e=new Map;for(let t of this.inputMessages())for(let[n,r]of t.getInner()){let t=Ng(this.#e(n)),i=(e.get(t)?.[0]??this.#t.get(t)??0)+r;e.set(t,[i,n])}let t=[];
27for(let[n,[r,i]]of e.entries()){let e=this.#t.get(n)??0;r===0?this.#t.delete(n):this.#t.set(n,r),e<=0&&r>0?t.push([[Ng(this.#e(i)),i[1]],1]):e>0&&r<=0&&t.push([[Ng(this.#e(i)),i[1]],-1])}t.length>0&&this.output.sendData(new Jg(t))}};function F_(e=e=>e){return t=>{let n=new n_(t.graph,new Xg),r=new P_(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var I_=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,L_=new Map;function R_(e){let t=L_.get(e);if(t===void 0){t=new Uint8Array(256);for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=n;L_.set(e,t)}return t}function z_(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)+z_(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]+z_(e.slice(1),null,n,r)}function B_(e,t){if(e.length!==V_(e[0],t))throw Error(`invalid integer part of order key: `+e)}function V_(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 H_(e,t){let n=V_(e[0],t);if(n>e.length)throw Error(`invalid order key: `+e);return e.slice(0,n)}function U_(e,t,n){if(q_(e,t,n))throw Error(`invalid order key: `+e);let r=H_(e,n);if(e.slice(r.length).slice(-1)===t[0])throw Error(`invalid order key: `+e)}function W_(e,t,n,r){B_(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=V_(c,r)-V_(i,r);return c+(l>0?o+a:l<0?o.slice(1):o)}function G_(e,t,n,r){B_(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=V_(c,r)-V_(i,r);return c+(l>0?o+a:l<0?o.slice(1):o)}var K_=new Map;function q_(e,t,n=``){let r=K_.get(n);r===void 0&&(r=new Map,K_.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 J_(e){for(let t=1;t<e.length;t++)if(e.charCodeAt(t-1)>=e.charCodeAt(t))return!1;return!0}function Y_(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}var X_=new Set;function Z_(e){if(!X_.has(e)){if(e.length<2||!J_(e))throw Error(`digits must be at least 2 characters in strictly ascending character code order: `+e);if(!Y_(e))throw Error(`digits must be single-byte (char code 0-255): `+e);X_.add(e)}}var Q_=new Set;function $_(e){if(!Q_.has(e)){if(e.length<2||e.length%2!=0||!J_(e))throw Error(`intDigits must be an even number of at least 2 characters in strictly ascending character code order: `+e);if(!Y_(e))throw Error(`intDigits must be single-byte (char code 0-255): `+e);Q_.add(e)}}function ev(e,t,n=I_,r=void 0){Z_(n),r!==void 0&&$_(r);let i=R_(n);if(e!=null&&U_(e,n,r),t!=null&&U_(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=H_(t,r),a=t.slice(e.length);if(q_(e,n,r))return e+z_(``,a,n,i);if(e<t)return e;let o=G_(e,n,i,r);if(o==null)throw Error(`cannot decrement any more`);return o}if(t==null){let t=H_(e,r),a=e.slice(t.length);return W_(t,n,i,r)??t+z_(a,null,n,i)}let a=H_(e,r),o=e.slice(a.length),s=H_(t,r),c=t.slice(s.length);if(a===s)return a+z_(o,c,n,i);let l=W_(a,n,i,r);if(l==null)throw Error(`cannot increment any more`);return l<t?l:a+z_(o,null,n,i)}function tv(e,t){return[e,t]}function nv(e){return e[0]}function rv(e){return e[1]}function iv(e){return([t,n],[r,i])=>{let a=e(n,i);return a===0?qh(t,r):a}}var av=class{#e=[];#t;#n;#r;constructor(e,t,n){this.#n=e,this.#r=e+t,this.#t=n}
27get 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}=Gh(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=tv(e,ev(n===0?null:rv(this.#e[n-1]),n===this.#e.length?null:rv(this.#e[n])));if(this.#e.splice(n,0,r),this.#n===this.#r)return t;if(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(this.#n===this.#r)return t;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 Uh(this.#e,tv(e,``),(e,t)=>this.#t(nv(e),nv(t)))}};function*ov(e){let t=new Map;for(let n of e)for(let[e,r]of n.getInner()){let n=t.get(e[0]);n?n.push([e,r]):t.set(e[0],[[e,r]])}let n=[];for(let e of t.values()){if(e.length===1){n.push(e[0]);continue}let t=[];for(let[n,r]of e){let e=t.find(([e])=>Wg(e[1],n[1]));e?e[1]+=r:t.push([n,r])}n.push(...t)}for(let e of n)e[1]<0&&(yield e);for(let e of n)e[1]>0&&(yield e)}var sv=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 av))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 cv(e,t){if(e){let[[n,r],i]=e;t.push([[n,[r,i]],1])}}function lv(e,t){if(e){let[[n,r],i]=e;t.push([[n,[r,i]],-1])}}var uv=class extends Qg{#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,iv(r));this.#e=new sv(s),i.setSizeCallback?.(()=>this.#e.size),i.setWindowFn?.(this.moveTopK.bind(this))}createTopK(e,t,n){return new av(e,t,n)}moveTopK({offset:e,limit:t}){let n=[],r=this.#e.move({offset:e,limit:t});r.moveIns.forEach(e=>cv(e,n)),r.moveOuts.forEach(e=>lv(e,n)),r.changes&&this.output.sendData(new Jg(n))}run(){let e=[];for(let[[t,n],r]of ov(this.inputMessages()))this.processElement(t,n,r,e);e.length>0&&this.output.sendData(new Jg(e))}processElement(e,t,n,r){let i=this.#e.processElement(e,t,n);cv(i.moveIn,r),lv(i.moveOut,r)}};function dv(e,t){let n=t||{};return t=>{let r=new n_(t.graph,new Xg),i=new uv(t.graph.getNextOperatorId(),t.connectReader(),r.writer,e,n);return t.graph.addOperator(i),r}}var fv=class extends Qg{run(){let e=this.inputMessages();if(e.length===0)return;let t=new Jg;for(let n of e)t.extend(n);let n=t.consolidate();n.getInner().length>0&&this.output.sendData(n)}};function pv(){return e=>{let t=new n_(e.graph,new Xg),n=new fv(e.graph.getNextOperatorId(),e.connectReader(),t.writer);return e.graph.addOperator(n),t}}function mv(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}),pv())}function hv(e,t){return mv(dv,e,t)}var gv=class extends Qg{#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=iv(r),i.setSizeCallback?.(()=>this.#a()),i.setWindowFn?.(this.#c.bind(this))}createTopK(e,t,n){return new av(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 sv(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});
27t.moveIns.forEach(e=>cv(e,n)),t.moveOuts.forEach(e=>lv(e,n)),t.changes&&(r=!0)}r&&this.output.sendData(new Jg(n))}run(){let e=[];for(let[[t,n],r]of ov(this.inputMessages()))this.#l(t,n,r,e);e.length>0&&this.output.sendData(new Jg(e))}#l(e,t,n,r){let i=this.#t(e,t),a=this.#o(i),o=a.processElement(e,t,n);cv(o.moveIn,r),lv(o.moveOut,r),this.#s(i,a)}};function _v(e,t){return n=>{let r=new n_(n.graph,new Xg),i=new gv(n.graph.getNextOperatorId(),n.connectReader(),r.writer,e,t);return n.graph.addOperator(i),r}}function vv(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(_v((t,n)=>s(e(t),e(n)),{limit:n,offset:r,setSizeCallback:i,setWindowFn:a,groupKeyFn:o}),pv())}function yv(){let e=typeof globalThis<`u`?globalThis.crypto:void 0;if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=[];for(let e=0;e<16;e++)n.push(t[e].toString(16).padStart(2,`0`));return n.slice(0,4).join(``)+`-`+n.slice(4,6).join(``)+`-`+n.slice(6,8).join(``)+`-`+n.slice(8,10).join(``)+`-`+n.slice(10,16).join(``)}throw Error(`No secure random number generator available: neither crypto.randomUUID nor crypto.getRandomValues is defined in this environment.`)}var bv=class extends Error{constructor(e){super(e),this.name=`TanStackDBError`}},xv=class extends bv{constructor(e,t,n){let r=`${e===`insert`?`Insert`:`Update`} validation failed: ${t.map(e=>` 28- ${e.message} - path: ${e.path}`).join(``)}`;super(n||r),this.name=`SchemaValidationError`,this.type=e,this.issues=t}},Sv=class extends bv{constructor(e){super(e),this.name=`CollectionConfigurationError`}},Cv=class extends Sv{constructor(){super(`Collection requires a config`)}},wv=class extends Sv{constructor(){super(`Collection requires a sync config`)}},Tv=class extends Sv{constructor(){super(`Schema must implement the standard-schema interface`)}},Ev=class extends Sv{constructor(){super(`Schema validation must be synchronous`)}},Dv=class extends bv{constructor(e){super(e),this.name=`CollectionStateError`}},Ov=class extends Dv{constructor(e,t){super(`Cannot perform ${e} on collection "${t}" - collection is in error state. Try calling cleanup() and restarting the collection.`)}},kv=class extends Dv{constructor(e,t,n){super(`Invalid collection status transition from "${e}" to "${t}" for collection "${n}"`)}},Av=class extends Dv{constructor(){super(`Collection is in error state`)}},jv=class extends Dv{constructor(){super(`Active subscribers count is negative - this should never happen`)}},Mv=class extends Dv{constructor(){super(`Cannot subscribe to a disposed LiveQueryObserver`)}},Nv=class extends bv{constructor(e){super(e),this.name=`CollectionOperationError`}},Pv=class extends Nv{constructor(e){super(`An object was created without a defined key: ${JSON.stringify(e)}`)}},Fv=class extends Nv{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)}`)}},Iv=class extends Nv{constructor(e){super(`Cannot insert document with ID "${e}" because it already exists in the collection`)}},Lv=class extends Nv{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)}}
28,Rv=class extends Nv{constructor(){super(`The first argument to update is missing`)}},zv=class extends Nv{constructor(){super(`No keys were passed to update`)}},Bv=class extends Nv{constructor(e){super(`The key "${e}" was passed to update but an object for this key was not found in the collection`)}},Vv=class extends Nv{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.`)}},Hv=class extends Nv{constructor(){super(`No keys were passed to delete`)}},Uv=class extends Nv{constructor(e){super(`Collection.delete was called with key '${e}' but there is no item in the collection with this key`)}},Wv=class extends bv{constructor(e){super(e),this.name=`MissingHandlerError`}},Gv=class extends Wv{constructor(){super(`Collection.insert called directly (not within an explicit transaction) but no 'onInsert' handler is configured.`)}},Kv=class extends Wv{constructor(){super(`Collection.update called directly (not within an explicit transaction) but no 'onUpdate' handler is configured.`)}},qv=class extends Wv{constructor(){super(`Collection.delete called directly (not within an explicit transaction) but no 'onDelete' handler is configured.`)}},Jv=class extends bv{constructor(e){super(e),this.name=`TransactionError`}},Yv=class extends Jv{constructor(){super(`mutationFn is required when creating a transaction`)}},Xv=class extends Jv{constructor(){super(`onMutate must be synchronous and cannot return a promise. Remove async/await or returned promises from onMutate.`),this.name=`OnMutateMustBeSynchronousError`}},Zv=class extends Jv{constructor(){super(`You can no longer call .mutate() as the transaction is no longer pending`)}},Qv=class extends Jv{constructor(){super(`You can no longer call .rollback() as the transaction is already completed`)}},$v=class extends Jv{constructor(){super(`You can no longer call .commit() as the transaction is no longer pending`)}},ey=class extends Jv{constructor(){super(`No pending sync transaction to write to`)}},ty=class extends Jv{constructor(){super(`The pending sync transaction is already committed, you can't still write to it.`)}},ny=class extends Jv{constructor(){super(`No pending sync transaction to commit`)}},ry=class extends Jv{constructor(){super(`The pending sync transaction is already committed, you can't commit it again.`)}},iy=class extends bv{constructor(e){super(e),this.name=`QueryBuilderError`}},ay=class extends iy{constructor(e){super(`Only one source is allowed in the ${e}`)}},oy=class extends iy{constructor(e){super(`A sub query passed to a ${e} must have a from clause itself`)}},sy=class extends iy{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.`)}},cy=class extends iy{constructor(e,t){super(`Invalid source for ${e}: Expected ${e===`unionAll clause`?`an object with one or more key-value pairs like { alias: collection }`:`an object with a single key-value pair like { alias: collection }`}. For example: ${e===`unionAll clause`?`.unionAll({ todos: todosCollection, events: eventsCollection })`:e===`join clause`?`.join({ todos: todosCollection }, ({ todo, todos }) => eq(todo.id, todos.id))`:`.from({ todos: todosCollection })`}. Got: ${t}`)}},ly=class extends iy{constructor(){super(`Join condition must be an equality expression`)}},uy=class extends iy{constructor(){super(`Query must have a from clause`)}},dy=class extends iy{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: 29 30 â .where(({ user }) => user.id === 'abc') 31 â .where(({ user }) => eq(user.id, 'abc')) 32 33Available comparison functions: eq, gt, gte, lt, lte, and, or, not, like, ilike, isNull, isUndefined`)}},fy=class extends bv{constructor(e){super(e),this.name=`QueryCompilationError`}}
33,py=class extends fy{constructor(e){super(`Unsafe alias path segment "${e}" is not allowed in .select(). Aliases must not contain "__proto__", "prototype", or "constructor".`),this.name=`UnsafeAliasPathError`}},my=class extends fy{constructor(){super(`DISTINCT requires a SELECT clause.`)}},hy=class extends fy{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().`)}},gy=class extends fy{constructor(e){super(`fn.select() cannot return ${e}. Child query builders, query expressions, and helpers such as eq(), toArray(), materialize(), concat(toArray()), and caseWhen() are query-construction values. Use them as direct fields in .select() instead.`)}},_y=class extends fy{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(...)).`)}},vy=class extends fy{constructor(){super(`HAVING clause requires GROUP BY clause`)}},yy=class extends fy{constructor(){super(`LIMIT and OFFSET require an ORDER BY clause to ensure deterministic results`)}},by=class extends fy{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}`)}},xy=class extends fy{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.`)}},Sy=class extends fy{constructor(e){super(`Unsupported FROM type: ${e}`)}},Cy=class extends fy{constructor(e){super(`Unknown expression type: ${e}`)}},wy=class extends fy{constructor(){super(`Reference path cannot be empty`)}},Ty=class extends fy{constructor(e){super(`Unknown function: ${e}`)}},Ey=class extends fy{constructor(e){super(`Collection "${e}" not found during compilation of join`)}},Dy=class extends bv{constructor(e){super(e),this.name=`JoinError`}},Oy=class extends Dy{constructor(e){super(`Unsupported join type: ${e}`)}},ky=class extends Dy{constructor(e){super(`Invalid join condition: both expressions refer to the same source "${e}"`)}},Ay=class extends Dy{constructor(){super(`Invalid join condition: expressions must reference source aliases`)}},jy=class extends Dy{constructor(e){super(`Invalid join condition: left expression refers to an unavailable source "${e}"`)}},My=class extends Dy{constructor(e){super(`Invalid join condition: right expression does not refer to the joined source "${e}"`)}},Ny=class extends Dy{constructor(){super(`Invalid join condition`)}},Py=class extends Dy{constructor(e){super(`Unsupported join source type: ${e}`)}},Fy=class extends bv{constructor(e){super(e),this.name=`GroupByError`}},Iy=class extends Fy{constructor(e){super(`Non-aggregate expression '${e}' in SELECT must also appear in GROUP BY clause`)}},Ly=class extends Fy{constructor(e){super(`Unsupported aggregate function: ${e}`)}},Ry=class extends Fy{constructor(e){super(`Aggregate function in HAVING clause must also be in SELECT clause: ${e}`)}},zy=class extends Fy{constructor(e){super(`Unknown expression type in HAVING clause: ${e}`)}},By=class extends bv{constructor(e){super(e),this.name=`StorageError`}},Vy=class extends By{constructor(e,t){super(`Cannot ${e} item because it cannot be JSON serialized: ${t}`)}},Hy=class extends By{constructor(e){super(e),this.name=`LocalStorageCollectionError`}},Uy=class extends Hy{constructor(){super(`[LocalStorageCollection] storageKey must be provided.`)}},Wy=class extends Hy{constructor(e,t){super(`[LocalStorageCollection] Invalid data format in storage key "${e}" for key "${t}".`)}},Gy=class extends Hy{constructor(e){super(`[LocalStorageCollection] Invalid data format in storage key "${e}". Expected object format.`)}},Ky=class extends bv{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`}}
33,qy=class extends Error{constructor(){super(`Sync transaction was aborted before application`),this.name=`AbortError`}},Jy=class extends Error{constructor(){super(`Collection preload was abandoned during cleanup`),this.name=`AbortError`}},Yy=class extends Error{constructor(){super(`Load subset operation was aborted before its result became visible`),this.name=`AbortError`}},Xy=class extends bv{constructor(e){super(e),this.name=`QueryOptimizerError`}},Zy=class extends Xy{constructor(){super(`Cannot combine empty expression list`)}},Qy=class extends fy{constructor(e){super(`Internal error: compiler returned aliases without inputs: ${e.join(`, `)}. This indicates a bug in query compilation. Please report this issue.`)}},$y=class extends fy{constructor(){super(`setWindow() can only be called on collections with an ORDER BY clause. Add .orderBy() to your query to enable window movement.`)}},eb=class extends bv{constructor(){super(`setWindow() cannot run reentrantly. Wait for the current window operation to return before starting another one.`),this.name=`SetWindowReentrancyError`}};function tb(e,t){return rb(e,t,new Map)}function nb(e){let t=Object.keys(e);for(let n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&t.push(n);return t}function rb(e,t,n){if(e===t)return!0;if(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)&&rb(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(ab(e)&&ab(t))return e[Symbol.toStringTag]===t[Symbol.toStringTag]?typeof e.equals==`function`?e.equals(t):e.toString()===t.toString():!1;if(ab(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)=>rb(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=nb(e),i=nb(t);if(r.length!==i.length)return n.delete(e),!1;let a=r.every(r=>Object.prototype.propertyIsEnumerable.call(t,r)&&rb(e[r],t[r],n));return n.delete(e),a}return!1}var ib=new Set([`Temporal.Duration`,`Temporal.Instant`,`Temporal.PlainDate`,`Temporal.PlainDateTime`,`Temporal.PlainMonthDay`,`Temporal.PlainTime`,`Temporal.PlainYearMonth`,`Temporal.ZonedDateTime`]);function ab(e){if(typeof e!=`object`||!e)return!1;let t=e[Symbol.toStringTag];return typeof t==`string`&&ib.has(t)}var ob={direction:`asc`,nulls:`first`,stringSort:`locale`};function sb(){let e=new WeakMap,t,n,r,i=0,a=(e,t)=>{let n=e.get(t);return n===void 0&&(n=++i,e.set(t,n)),n};return i=>{r??=db();let o;if(typeof i==`symbol`){let e=Symbol.keyFor(i);e===void 0?(t??=cb(),o=a(t,i)):(n??=new Map,o=a(n,e))}else o=a(e,i);return[`runtimeReference`,r,o]}}function cb(){let e=new WeakMap,t=Symbol();try{if(e.set(t,0),e.get(t)===0)return e}catch{}return new Map}var lb;function ub(e){return lb??=sb(),lb(e)}function db(){let e=new Uint32Array(4),t=Reflect.get(globalThis,`crypto`);return typeof t?.getRandomValues==`function`?(t.getRandomValues(e),Array.from(e,e=>e.toString(36)).join(`-`)):`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}-${Math.random().toString(36).slice(2)}`}var fb=new WeakMap,pb=1;function mb(e){if(fb.has(e))return fb.get(e);let t=pb++;return fb.set(e,t),t}function hb(e){return typeof e==`number`&&Number.isNaN(e)||e instanceof Date&&Number.isNaN(e.getTime())}var gb=(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;let i=hb(e),a=hb(t);if(i&&a)return 0;if(i)return 1;if(a)return-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=gb(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(ab(e)&&ab(t))return Ob(e,t);let o=typeof e==`symbol`,s=typeof t==`symbol`;if(o&&s)return e===t?0:ub(e)[2]-ub(t)[2];if(o)return 1;if(s)return-1;let c=typeof e==`object`,l=typeof t==`object`;if(c||l){if(c&&l)return mb(e)-mb(t);if(c)return 1;if(l)return-1}return e<t?-1:+(e>t)},_b=(e,t,n)=>gb(t,e,{...n,nulls:n.nulls===`first`?`last`:`first`});function vb(e){return(t,n)=>e.direction===`asc`?gb(t,n,e):_b(t,n,e)}var yb=vb({direction:`asc`,nulls:`first`,stringSort:`locale`});function bb(e){return e instanceof Uint8Array||typeof Buffer<`u`&&e instanceof Buffer}function xb(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 Sb=`\0tanstack-db:`;function Cb(e,t){return`${Sb}${e}:${t}`}function wb(e){let t=``;for(let n=0;n<e.byteLength;n++)t+=String.fromCharCode(e[n]);return Cb(`binary`,t)}Cb(`undefined`,``);function Tb(e){return typeof e==`string`?e.startsWith(Sb)?Cb(`string`,e):e:typeof e!=`object`||!e?e:e instanceof Date?e.getTime():ab(e)?Cb(`temporal`,`${e[Symbol.toStringTag]}:${e.toString()}`):bb(e)?wb(e):e}function Eb(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}var Db=new Map;function Ob(e,t){let n=e[Symbol.toStringTag],r=t[Symbol.toStringTag];if(n!==r)throw TypeError(`Cannot order Temporal values of different types: ${n} vs ${r}`);let i=Db.get(n);if(i===void 0){let t=e.constructor.compare;i=typeof t==`function`?t:null,Db.set(n,i)}if(i===null)throw TypeError(`${n} has no defined ordering`);return i(e,t)}function kb(e,t){return ab(e)&&ab(t)?Ob(e,t):e<t?-1:+(e>t)}function Ab(e,t){return e===t?!0:bb(e)&&bb(t)?xb(e,t):!1}function jb(e){return e==null}function Mb(e){return bb(e)?e:Tb(e)}function Nb(e,t){return hb(e)||hb(t)?hb(e)&&hb(t):Ab(e,t)}function Pb(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 Fb(e,t){return e===`%Y-%m-%d`?t.toISOString().slice(0,10):t.toISOString()}function Ib(e){return e===!0}
33function Lb(e,t=!1){return zb(e,t)}function Rb(e){return zb(e,!0)}function zb(e,t){switch(e.type){case`val`:{let t=e.value;return()=>t}case`ref`:return t?Vb(e):Bb(e);case`func`:return Hb(e,t);default:throw new Cy(e.type)}}function Bb(e){let[t,...n]=e.path;if(!t)throw new wy;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 Vb(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 Hb(e,t){let n=e.args.map(e=>zb(e,t));switch(e.name){case`eq`:{let e=n[0],t=n[1];return n=>{let r=Mb(e(n)),i=Mb(t(n));return jb(r)||jb(i)?null:Nb(r,i)}}case`gt`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:hb(r)||hb(i)?hb(r)&&!hb(i):kb(r,i)>0}}case`gte`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:hb(r)||hb(i)?hb(r):kb(r,i)>=0}}case`lt`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:hb(r)||hb(i)?hb(i)&&!hb(r):kb(r,i)<0}}case`lte`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:hb(r)||hb(i)?hb(i):kb(r,i)<=0}}case`and`:return e=>{let t=!1;for(let r of n){let n=r(e);if(n===!1)return!1;jb(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;jb(n)&&(t=!0)}return t?null:!1};case`not`:{let e=n[0];return t=>{let n=e(t);return jb(n)?null:!n}}case`in`:{let e=n[0],t=n[1];return n=>{let r=Mb(e(n)),i=t(n);return jb(r)?null:Array.isArray(i)?i.some(e=>Nb(Mb(e),r)):!1}}case`like`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:Wb(r,i,!1)}}case`ilike`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return jb(r)||jb(i)?null:Wb(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`caseWhen`:{let e=n.length%2==1,t=Math.floor(n.length/2);if(n.length<2)throw Error(`caseWhen() requires at least two arguments`);return r=>{for(let e=0;e<t;e++){let t=n[e*2];if(Ub(t(r))){let t=n[e*2+1];return t(r)}}return e?n[n.length-1](r):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=Pb(e(t));return n?n.toISOString().slice(0,10):null}}case`datetime`:{let e=n[0];return t=>{let n=Pb(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=Pb(t(n));return i?Fb(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 Ty(e.name)}}function Ub(e){return e==null||e===!1?!1:e===!0?!0:typeof e==`number`?e!==0&&!Number.isNaN(e):typeof e==`bigint`?e!==0n:!!e}function Wb(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 Gb=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)}take(e,t,n){return this.originalIndex.takeReversed(e,t,n)}takeFromStart(e,t){return this.originalIndex.takeReversedFromEnd(e,t)}supports(e){return this.originalIndex.supports(e)}get supportsRangeOptimization(){return this.originalIndex.supportsRangeOptimization}canOptimizeRangeFor(e){return this.originalIndex.canOptimizeRangeFor?.(e)??!0}get keyCount(){return this.originalIndex.keyCount}};function Kb(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 qb=[`$synced`,`$origin`,`$key`,`$collectionId`];function Jb(e){return qb.includes(e)}function Yb(e){return e.some(e=>Jb(e))}function Xb(e,t,n){if(Yb(t))return;let r=n??{...ob,...e.compareOptions};for(let n of e.indexes.values())if(n.matchesField(t)&&n.matchesCompareOptions(r))return n.matchesDirection(r.direction)?n:new Gb(n)}function Zb(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 Qb(e){let t=new Set;for(let n of e)for(let e of n)t.add(e);return t}function $b(e){return e!=null}function ex(e){return{...ob,...e.compareOptions}.stringSort===`locale`}function tx(e,t){switch(typeof e){case`number`:case`bigint`:case`boolean`:return!1;case`string`:return ex(t);case`symbol`:return!0;case`object`:return e===null?!1:!(e instanceof Date);default:return!1}}function nx(e,t,n){return!tx(e,n)&&t.supportsRangeOptimization&&(t.canOptimizeRangeFor?.(e)??!0)}function rx(e,t){return ix(e,t)}function ix(e,t){if(e.type===`func`)switch(e.name){case`eq`:case`gt`:case`gte`:case`lt`:case`lte`:return ox(e,t);case`and`:return sx(e,t);case`or`:return cx(e,t);case`in`:return lx(e,t)}return{canOptimize:!1,matchingKeys:new Set,isExact:!1}}function ax(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set,isExact:!1,coveredArgIndices:new Set};let n=new Map;for(let[t,r]of e.args.entries())if(r.type===`func`&&[`gt`,`gte`,`lt`,`lte`].includes(r.name)){let e=r;if(e.args.length===2){let r=e.args[0],i=e.args[1],a=null,o=null,s=e.name;if(r.type===`ref`&&i.type===`val`)a=r,o=i;else if(r.type===`val`&&i.type===`ref`)switch(a=i,o=r,s){case`gt`:s=`lt`;break;case`gte`:s=`lte`;break;case`lt`:s=`gt`;break;case`lte`:s=`gte`;break}if(a&&o){let e=a.path.join(`.`),r=o.value;n.has(e)||n.set(e,[]),n.get(e).push({operation:s,value:r,argIndex:t})}}}for(let[e,r]of n)if(r.length>=2){let n=Xb(t,e.split(`.`));if(n&&r.some(e=>!nx(e.value,n,t)))continue;if(n&&n.supports(`gt`)&&n.supports(`lt`)){let e=vb({...ob,...t.compareOptions,direction:`asc`}),i,a,o=!1,s=!1,c=!0,l=!0,u=!1;for(let{operation:t,value:n}of r){if(!$b(n)){u=!0;continue}switch(t){case`gt`:case`gte`:{let r=o?e(n,i):1;r>0?(i=n,o=!0,c=t===`gte`):r===0&&t===`gt`&&(c=!1);break}case`lt`:case`lte`:{let r=s?e(n,a):-1;r<0?(a=n,s=!0,l=t===`lte`):r===0&&t===`lt`&&(l=!1);break}}}let d={};return o&&(d.from=i,d.fromInclusive=c),s&&(d.to=a,d.toInclusive=l),{canOptimize:!0,matchingKeys:n.rangeQuery(d),isExact:o&&!u,coveredArgIndices:new Set(r.map(e=>e.argIndex))}}}return{canOptimize:!1,matchingKeys:new Set,isExact:!1,coveredArgIndices:new Set}}function ox(e,t){if(e.type!==`func`||e.args.length!==2)return{canOptimize:!1,matchingKeys:new Set,isExact:!1};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=Xb(t,e);if(n){let e=a.value,r=o;return!n.supports(r)||(o===`gt`||o===`gte`||o===`lt`||o===`lte`)&&!nx(e,n,t)?{canOptimize:!1,matchingKeys:new Set,isExact:!1}:{canOptimize:!0,matchingKeys:n.lookup(r,e),isExact:o===`lt`||o===`lte`?!1:$b(e)}}}return{canOptimize:!1,matchingKeys:new Set,isExact:!1}}function sx(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set,isExact:!1};let n=ax(e,t),r=n.canOptimize?n.coveredArgIndices:new Set,i=[];n.canOptimize&&i.push(n);let a=n.canOptimize?n.isExact:!0;for(let[n,o]of e.args.entries()){if(r.has(n))continue;let e=ix(o,t);e.canOptimize?(i.push(e),e.isExact||(a=!1)):a=!1}return i.length>0?{canOptimize:!0,matchingKeys:Zb(i.map(e=>e.matchingKeys)),isExact:a}:{canOptimize:!1,matchingKeys:new Set,isExact:!1}}function cx(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set,isExact:!1};let n=[];for(let r of e.args){let e=ix(r,t);if(!e.canOptimize)return{canOptimize:!1,matchingKeys:new Set,isExact:!1};n.push(e)}return{canOptimize:!0,matchingKeys:Qb(n.map(e=>e.matchingKeys)),isExact:n.every(e=>e.isExact)}}function lx(e,t){if(e.type!==`func`||e.args.length!==2)return{canOptimize:!1,matchingKeys:new Set,isExact:!1};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=Xb(t,e),o=i.every(e=>$b(e));if(a){if(a.supports(`in`))return{canOptimize:!0,matchingKeys:a.lookup(`in`,i),isExact:o};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,isExact:o}}}}return{canOptimize:!1,matchingKeys:new Set,isExact:!1}}var ux={enabled:!0,collectionSizeThreshold:1e3,slowQueryThresholdMs:10,onSuggestion:null};function dx(){return ux.enabled&&!1}function fx(e){if(dx())if(ux.onSuggestion)try{ux.onSuggestion(e)}catch{}else console.warn(`[TanStack DB] Index suggestion for "${e.collectionId}": 34 ${e.message} 35 Field: ${e.fieldPath.join(`.`)} 36 Add index: collection.createIndex((row) => row.${e.fieldPath.join(`.`)})`)}
36function px(e,t,n){dx()&&t>ux.collectionSizeThreshold&&fx({type:`collection-size`,collectionId:e,fieldPath:n,message:`Collection has ${t} items. Queries on "${n.join(`.`)}" may benefit from an index.`,collectionSize:t})}function mx(e){return e.config.autoIndex===`eager`}function hx(e,t,n,r,i){if(Yb(t)||!mx(n))return;let a=r??{...ob,...n.compareOptions};if(!Array.from(n.indexes.values()).find(e=>e.matchesField(t)&&e.matchesCompareOptions(a))){dx()&&px(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 gx(e,t){if(!mx(t))return;let n=_x(e);for(let{fieldName:e,fieldPath:r}of n)hx(e,r,t)}function _x(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 vx=`__includes_scalar__`,yx=0,bx=class{},xx=class extends bx{constructor(e,t){super(),this.collection=e,this.alias=t,this.type=`collectionRef`,Object.defineProperty(this,"sourceId",{value:`source-${++yx}`,enumerable:!1})}},Sx=class extends bx{constructor(e,t){super(),this.query=e,this.alias=t,this.type=`queryRef`}},Cx=class extends bx{constructor(e){super(),this.sources=e,this.type=`unionFrom`}get alias(){return this.sources[0]?.alias??``}},wx=class extends bx{constructor(e){super(),this.queries=e,this.type=`unionAll`}get alias(){return``}},Tx=class extends bx{constructor(e){super(),this.path=e,this.type=`ref`}},Ex=class extends bx{constructor(e){super(),this.value=e,this.type=`val`}},Dx=class extends bx{constructor(e,t){super(),this.name=e,this.args=t,this.type=`func`}},Ox=class extends bx{constructor(e,t){super(),this.name=e,this.args=t,this.type=`agg`}},kx=class extends bx{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`}},Ax=class extends bx{constructor(e,t){super(),this.branches=e,this.defaultValue=t,this.type=`conditionalSelect`}};function jx(e){return e instanceof Ox||e instanceof Ax||e instanceof Dx||e instanceof Tx||e instanceof Ex||e instanceof kx?!0:!e||typeof e!=`object`?!1:e.type===`conditionalSelect`?Array.isArray(e.branches):e.type===`agg`||e.type===`func`?typeof e.name==`string`&&Array.isArray(e.args):e.type===`ref`?Array.isArray(e.path):e.type===`val`?`value`in e:e.type===`includesSubquery`?`query`in e&&`fieldName`in e:!1}function Mx(e){let t=[],n=new Set,r=e=>{e.type===`collectionRef`?n.has(e.sourceId)||(n.add(e.sourceId),t.push(e)):e.type===`queryRef`?a(e.query):e.type===`unionFrom`?e.sources.forEach(r):e.queries.forEach(a)},i=e=>{e instanceof kx?a(e.query):e instanceof Ax?(e.branches.forEach(e=>i(e.value)),e.defaultValue!==void 0&&i(e.defaultValue)):typeof e==`object`&&e&&!Array.isArray(e)&&!jx(e)&&e.__refProxy!==!0&&Object.values(e).forEach(i)},a=e=>{r(e.from),e.join?.forEach(({from:e})=>r(e)),e.select&&Object.values(e.select).forEach(i)};return a(e),t}function Nx(e){return typeof e==`object`&&`expression`in e?e.expression:e}function Px(e){return typeof e==`object`&&`expression`in e?e.expression:e}function Fx(e){return typeof e==`object`&&`expression`in e&&e.residual===!0}function Ix(e){return{expression:e,residual:!0}}function Lx(e){return e.type===`unionFrom`?e.sources:e.type===`unionAll`?[]:[e]}function Rx(e,t){for(let n of Lx(e.from))if(n.alias===t)return n;for(let n of e.join||[])if(n.from.alias===t)return n.from}function zx(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 zx(e,t,n)}return{collection:n,path:[r]}}if(t.path.length>1){let[r,...i]=t.path,a=Rx(e,r);return a?a.type===`queryRef`?zx(a.query,new Tx(i),n):{collection:a.collection,path:i,alias:r,sourceId:a.sourceId}:void 0}}}function Bx(e){switch(e.type){case`ref`:return new Set(e.path[0]?[e.path[0]]:[]);case`func`:{let t=new Set;for(let n of e.args)for(let e of Bx(n))t.add(e);return t}default:return new Set}}function Vx(e,t){let n=e.type;if(n===`val`)return new Ex(e.value);if(n===`ref`){let n=e.path;if(Array.isArray(n)){if(n[0]===t&&n.length>1)return new Tx(n.slice(1));if(n.length===1&&n[0]!==void 0)return new Tx([n[0]])}return new Tx(Array.isArray(n)?n:[String(n)])}else{let n=[];for(let r of e.args){let e=Vx(r,t);n.push(e)}return new Dx(e.name,n)}}function Hx(e,t){return e.map(e=>{let n=Vx(e.expression,t);return{...e,expression:n}})}var Ux=Symbol(`tanstack_db_parent_context`);function Wx(e,t){let n=Tb(e);return typeof n==`object`&&n||typeof n==`function`||typeof n==`symbol`?t(n):n}function Gx(e,t){if(typeof e==`object`&&e||typeof e==`function`||typeof e==`symbol`)return t(e);if(typeof e==`number`){if(Object.is(e,-0))return[`number`,`-0`];if(Number.isNaN(e))return[`number`,`NaN`]}return e}function Kx(){let e=sb(),t=t=>Wx(t,e);return{equality:t,exact:t=>Gx(t,e),serializeEquality:e=>Jh(t(e))}}function qx(e){return Wx(e,ub)}function Jx(e,t){return{[Ux]:!0,value:e,identity:t}}function Yx(e){return typeof e==`object`&&!!e&&Ux in e}function Xx(e){if(Yx(e))return e.value;if(typeof e==`object`&&e)return e}function Zx(e){return Yx(e)?e.identity:e}function Qx(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function $x(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}var eS=Symbol(`tanstack_db_routed_scalar_value`),tS=Symbol(`tanstack_db_route_metadata`),nS=Symbol(`includesPublicKey`),rS=Symbol(`includesRouting`),iS=new Set([tS,nS]),aS=new Set([...iS,rS]);function oS(e,t,n){return Object.assign(e,{[tS]:{correlationKey:t,parentContext:n}})}function sS(e){if(!(typeof e!=`object`||!e||!(tS in e)))return e[tS]}function cS(e,t){return sS(e)??(typeof e==`object`&&e?sS(e[t]):void 0)}function lS(e){let t={...e};return delete t[tS],t}function uS(e,t,n,r){return t===void 0&&n===void 0&&r===void 0?e:Qx(e)?{...e,[tS]:{correlationKey:t,parentContext:n},[nS]:r}:{[eS]:e,[tS]:{correlationKey:t,parentContext:n},[nS]:r}}function dS(e){if(typeof e!=`object`||!e||!(eS in e))return;let t=e,n=t[tS];return{value:t[eS],correlationKey:n.correlationKey,parentContext:n.parentContext,publicKey:t[nS]}}function fS(e){return mS(e,e=>e,iS)}function pS(e){return mS(e,e=>e,aS)}
36function mS(e,t,n){let r=t(e);if(!Object.is(r,e))return r;if(!hS(e))return e;let i=new WeakMap,a=new WeakMap,o=new Set,s=e=>{if(a.has(e))return;let r=new Map;a.set(e,r);for(let a of Reflect.ownKeys(e)){if(n.has(a)){o.add(e);continue}let c=Object.getOwnPropertyDescriptor(e,a);if(!c)continue;let l={descriptor:c};if(r.set(a,l),!c.enumerable||!(`value`in c))continue;let u=c.value,d=t(u);if(l.value={original:u,replacement:d},!Object.is(d,u)){o.add(e);continue}if(!hS(u))continue;let f=i.get(u)??new Set;f.add(e),i.set(u,f),s(u)}};s(e);let c=[...o];for(let e of c)for(let t of i.get(e)??[])o.has(t)||(o.add(t),c.push(t));if(!o.has(e))return e;let l=new WeakMap,u=e=>{if(!o.has(e))return e;let t=l.get(e);if(t)return t;let n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));l.set(e,n);for(let[t,r]of a.get(e)??[]){let e={...r.descriptor};if(r.value){let{original:t,replacement:n}=r.value;e.value=Object.is(n,t)?hS(t)?u(t):t:n}Object.defineProperty(n,t,e)}return n};return u(e)}function hS(e){return Array.isArray(e)||Qx(e)}var gS=Symbol(`raw_group_representative`);function _S(e,t){let n=Object.keys(t??{}),r=`__tanstack_group_`;for(;n.some(e=>e.startsWith(r));)r+=`_`;return{virtual:`${r}virtual`,route:`${r}route`,correlationIdentity:`${r}correlation_identity`,parentContextIdentity:`${r}parent_context_identity`,singleGroup:`${r}single_group`,aggregatePrefix:`${r}aggregate_`,groupKeys:Array.from({length:e},(e,t)=>`${r}key_${t}`),groupValues:Array.from({length:e},(e,t)=>`${r}value_${t}`),groupKeyRefs:Array.from({length:e},(e,t)=>`${r}key_ref_${t}`)}}function vS(e){let t=e.map(qx);if(t.length===1){let e=t[0];if(e==null||typeof e!=`object`&&typeof e!=`function`&&typeof e!=`symbol`)return e}return Jh(t)}function yS(e,t){let n=e;n[nS]=t}function bS(e,t,n){let r={key:Jh([e,n])};return Object.defineProperty(r,gS,{value:t}),r}function xS(e){let t;for(let[n,r]of e)r<=0||(t===void 0||n.key<t.key)&&(t=n);return t}function SS(e){return e?.[gS]}function CS(e,t,n,r,i){let a=cS(t,n);e[r.correlationIdentity]=i.equality(a?.correlationKey),a?.parentContext!=null&&(e[r.parentContextIdentity]=Zx(a.parentContext))}function wS(e,t,n,r){e[n.route]={preMap:([e,n])=>{let i=cS(n,t);return bS(e,i,[r.exact(i?.correlationKey),Zx(i?.parentContext)])},reduce:xS,postMap:SS}}function TS(e,t){return e[t.route]}function ES(e,t){return TS(e,t)?.parentContext==null?e[t.correlationIdentity]:[e[t.correlationIdentity],e[t.parentContextIdentity]]}function DS(e,t,n=e.$selected){return{...Xx(TS(e,t)?.parentContext),$selected:n}}function OS(e){let t=!1,n=!0,r=!1;for(let[i,a]of Object.entries(e)){if(i===`$selected`||typeof a!=`object`||!a)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:kS,count:AS,avg:jS,min:MS,max:NS}=C_;function PS(e,t){let n=new Map;if(!t)return n;for(let[r,i]of Object.entries(t)){if(i.type===`agg`||BS(i))continue;let t=e.findIndex(e=>IS(i,e));if(t===-1)throw new Iy(r);n.set(r,t)}return n}function FS(e,t,n,r,i,a,o,s,c=!1){let l=_S(t.length,i),u={[l.virtual]:{preMap:([,e])=>OS(e),reduce:e=>{let t={synced:!0,hasLocal:!1};for(let[n,r]of e)r<=0||(n.synced||(t.synced=!1),n.hasLocal&&(t.hasLocal=!0));return t}}};s&&wS(u,s,l,n);let d=t.length===0,f=d?void 0:PS(t,i),p=t.map(e=>Lb(e)),m=([,e])=>{let r=d?e:{...e};d||delete r.$selected;let i=d?{[l.singleGroup]:!0}:{};for(let e=0;e<t.length;e++){let t=p[e],a=t(r);i[l.groupKeys[e]]=n.equality(a)}return s&&CS(i,e,s,l,n),i},h=u,g={},_={value:0};for(let e=0;e<p.length;e++){let t=p[e];h[l.groupValues[e]]={preMap:([e,r])=>{let i=t(r);return bS(e,i,n.exact(i))},reduce:xS,postMap:SS}}if(i){for(let[e,n]of Object.entries(i))if(n.type===`agg`)h[e]=LS(n);else if(BS(n)){let{transformed:r,extracted:i}=VS(n,_,l.aggregatePrefix);for(let[e,t]of Object.entries(i))h[e]=LS(t);g[e]=WS(d?r:HS(r,t,l.groupKeyRefs))}}if(e=e.pipe(h_(m,h)),e=e.pipe(a_(([,e])=>{let n=e.$selected||{},r=d?{...n}:{};if(i){for(let[t,a]of Object.entries(i))if(a.type===`agg`)r[t]=e[t];else if(!d&&!g[t]){let i=f?.get(t);i===void 0?r[t]=n[t]:r[t]=e[l.groupValues[i]]}zS(r,e,g,l)}else for(let n=0;n<t.length;n++)r[`__key_${n}`]=e[l.groupValues[n]];let a=s?TS(e,l):void 0,c=a?.correlationKey,u=s?ES(e,l):void 0,p=[],m=[];for(let n=0;n<t.length;n++)p.push(e[l.groupKeys[n]]),m.push(e[l.groupValues[n]]);u!==void 0&&p.push(u);let h=d?u===void 0?`single_group`:`single_group_${Jh(u)}`:p.length===1?p[0]:Jh(p),_=d?`single_group`:vS(m),v={...e,$selected:r},y=e[l.virtual];return v.$synced=y?.synced??!0,v.$origin=y?.hasLocal?`local`:`remote`,v.$key=_,v.$collectionId=o??v.$collectionId,s&&c!==void 0&&(yS(v,_),oS(v,c,a?.parentContext??null)),[s?h:_,v]})),r&&r.length>0)for(let t of r){let n=Lb(RS(Px(t),i||{}));e=e.pipe(D_(([,e])=>{let t=n(DS(e,l));return d?Ib(t):t}))}if(a&&a.length>0)for(let t of a)e=e.pipe(D_(([,e])=>{let n=DS(e,l);return Ib(t(c?pS(n):n))}));return e}function IS(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)=>IS(e,t.args[n]));case`agg`:return e.name===t.name&&e.args?.length===t.args?.length&&(e.args||[]).every((e,n)=>IS(e,t.args[n]));default:return!1}}function LS(e){let t=Lb(e.args[0]),n=([,e])=>{let n=t(e);
36return 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 kS(n);case`count`:return AS(i);case`avg`:return jS(n);case`min`:return MS(r);case`max`:return NS(r);default:throw new Ly(e.name)}}function RS(e,t,n=`$selected`){switch(e.type){case`agg`:{let r=e;for(let[e,i]of Object.entries(t))if(i.type===`agg`&&YS(r,i))return new Tx([n,e]);throw new Ry(r.name)}case`func`:{let n=e,r=n.args.map(e=>RS(e,t));return new Dx(n.name,r)}case`ref`:return e;case`val`:return e;default:throw new zy(e.type)}}function zS(e,t,n,r){for(let n of Object.keys(t))n.startsWith(r.aggregatePrefix)&&(e[n]=t[n]);for(let n=0;n<r.groupKeyRefs.length;n++)e[r.groupKeyRefs[n]]=t[r.groupValues[n]];for(let[i,a]of Object.entries(n))e[i]=a(DS(t,r,e));for(let t of Object.keys(e))(t.startsWith(r.aggregatePrefix)||r.groupKeyRefs.includes(t))&&delete e[t]}function BS(e){return JS(e)?e.branches.some(e=>BS(e.condition)||BS(e.value))||e.defaultValue!==void 0&&BS(e.defaultValue):qS(e)?Object.values(e).some(e=>BS(e)):jx(e)?e.type===`agg`?!0:e.type===`func`&&`args`in e?e.args.some(e=>BS(e)):!1:!1}function VS(e,t,n){if(e.type===`includesSubquery`)return{transformed:e,extracted:{}};if(e.type===`agg`){let r=`${n}${t.value++}`;return{transformed:new Tx([`$selected`,r]),extracted:{[r]:e}}}if(e.type===`func`){let r={},i=e.args.map(e=>{let i=VS(e,t,n);return Object.assign(r,i.extracted),i.transformed});return{transformed:new Dx(e.name,i),extracted:r}}if(JS(e)){let r={},i=e.branches.map(e=>{let i=VS(e.condition,t,n),a=VS(e.value,t,n);return Object.assign(r,i.extracted,a.extracted),{condition:i.transformed,value:a.transformed}}),a=e.defaultValue===void 0?void 0:VS(e.defaultValue,t,n);return a&&Object.assign(r,a.extracted),{transformed:new Ax(i,a?.transformed),extracted:r}}if(qS(e)){let r={},i={};for(let[a,o]of Object.entries(e)){let e=VS(o,t,n);Object.assign(r,e.extracted),i[a]=e.transformed}return{transformed:i,extracted:r}}return{transformed:e,extracted:{}}}function HS(e,t,n){if(JS(e))return new Ax(e.branches.map(e=>({condition:US(e.condition,t,n),value:HS(e.value,t,n)})),e.defaultValue===void 0?void 0:HS(e.defaultValue,t,n));if(qS(e)){let r={};for(let[i,a]of Object.entries(e))r[i]=HS(a,t,n);return r}return!jx(e)||e.type===`includesSubquery`||e.type===`agg`?e:US(e,t,n)}function US(e,t,n){if(e.type===`ref`){let r=t.findIndex(t=>IS(e,t));return r===-1?e:new Tx([`$selected`,n[r]])}return e.type===`func`?new Dx(e.name,e.args.map(e=>US(e,t,n))):e}function WS(e){return JS(e)?KS(e):e.type===`includesSubquery`?()=>null:qS(e)?GS(e):jx(e)?Lb(e):()=>e}function GS(e){let t=Object.entries(e).map(([e,t])=>{if(e.startsWith(`__SPREAD_SENTINEL__`)){let n=e.slice(19),r=n.lastIndexOf(`__`),i=r>=0?n.slice(0,r):n;return{key:e,spread:!0,value:Lb(typeof t==`object`&&`type`in t&&t.type===`ref`?t:new Tx(i.split(`.`)))}}return{key:e,spread:!1,value:WS(t)}});return e=>{let n={};for(let r of t){let t=r.value(e);r.spread?t&&typeof t==`object`&&Object.assign(n,t):n[r.key]=t}return n}}function KS(e){let t=e.branches.map(e=>({condition:Lb(e.condition),value:WS(e.value)})),n=e.defaultValue===void 0?void 0:WS(e.defaultValue);return e=>{for(let n of t)if(Ub(n.condition(e)))return n.value(e);return n===void 0?null:n(e)}}function qS(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!e.__refProxy&&!jx(e)}function JS(e){return e instanceof Ax||typeof e==`object`&&!!e&&e.type===`conditionalSelect`}function YS(e,t){return e.name===t.name&&e.args.length===t.args.length&&e.args.every((e,n)=>IS(e,t.args[n]))}function XS(e,t,n,r,i,a,o,s,c,l){let u=n.map(e=>({compiledExpression:Lb(RS(e.expression,r,`$selected`)),compareOptions:ZS(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=vb(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 vb(n.compareOptions)(e,t)}
36return yb(e,t)},p,m;if(s!==void 0&&!l&&e.from.type!==`unionFrom`&&e.from.type!==`unionAll`){let t,r,o=e.from.alias,l,u=n[0],d=u.expression,f=d.type===`ref`?zx(e,d,i):void 0;if(d.type===`ref`&&f){r=f.collection,l=f.sourceId;let n=f.path[0],a=ZS(u,i);if(n){let e=vb(a);hx(n,f.path,r,a,e)}if(t=Xb(r,f.path,a),t?.supports(`gt`)||(t=void 0),!t){let e=r.id,t=f.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.`)}o=d.path.length>1?String(d.path[0]):e.from.alias,l??=Mx(e).find(e=>e.alias===o&&e.collection===r)?.sourceId}if(l&&f){let r=QS(n,i.compareOptions),u=n.every(({expression:t})=>t.type===`ref`?zx(e,t,i)?.sourceId===l:!1),d=Lb(new Tx(f.path),!0),h=vb(r[0].compareOptions),g={sourceId:l,alias:o,offset:c??0,limit:s,comparator:(e,t)=>h(e&&d(e),t&&d(t)),valueExtractorForRawRow:d,index:t,orderBy:r,requiresFullSource:!u||e.from.type!==`collectionRef`||e.from.sourceId!==l||(e.join?.some(({type:e})=>e===`inner`||e===`right`)??!1)||(e.where?.some(e=>Fx(e)||[...Bx(Nx(e))].some(e=>e!==o))??!1)||(e.fnWhere?.length??0)>0||e.groupBy!==void 0||e.having!==void 0||e.fnHaving!==void 0||e.distinct===!0};m=g,a[l]=g,t&&(p=e=>{a[l].dataNeeded=()=>{let t=e();return Math.max(0,g.limit-t)}})}}return l?t.pipe(vv(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(hv(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 ZS(e,t){return $S(e,t.compareOptions)}function QS(e,t){return e.map(e=>({expression:e.expression,compareOptions:$S(e,t)}))}function $S(e,t){return e.compareOptions.stringSort===void 0?{...t,direction:e.compareOptions.direction,nulls:e.compareOptions.nulls}:e.compareOptions}function eC(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?tC(t.where):void 0,r=rC(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=rx(r,e);if(i.canOptimize){let t=i.isExact?void 0:tC(r),n=[];for(let r of i.matchingKeys){let i=e.get(r);i!==void 0&&(t?.(i)??!0)&&n.push({type:`insert`,key:r,value:i})}return n}else return t.optimizedOnly?void 0:n(tC(r))}catch(r){console.warn(`${e.id?`[${e.id}] `:``}Error processing where clause, falling back to full scan:`,r);let i=tC(t.where);return t.optimizedOnly?void 0:n(i)}}function tC(e){let t=Rb(e);return e=>{try{return Ib(t(e))}catch{return!1}}}function nC(e,t){let n=tC(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);return r.length>0||t.length===0?(e(r),!0):!1}}function rC(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=ZS(i,e);hx(t[0],t,e,o);let s=Xb(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=vb(r.compareOptions)(iC(e.value,r.expression),iC(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 iC(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 Rb(t)(e)}var aC=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=qh(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=qh(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)}},oC=`__tanstack_db_direct`,sC=class{constructor(e){this.pendingSyncedTransactions=[],this.syncedMetadata=new Map,this.syncedCollectionMetadata=new Map,this.hydrationSeedKeys=new Set,this.hydratedKeys=new Set,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.acknowledgedInserts=new WeakSet,this.rowOrigins=new Map,this.pendingLocalChanges=new Set,this.pendingLocalOrigins=new Set,this.virtualPropsCache=new WeakMap,this.size=0,this.preSyncVisibleState=new Map,this.preSyncVirtualState=new Map,this.recentlySyncedKeys=new Set,this.hasReceivedFirstCommit=!1,this.isCommittingSyncTransactions=!1,this.isDrainingSyncTransactions=!1,this.syncSessionGeneration=0,this.isLocalOnly=!1,this.commitPendingTransactions=()=>
36{if(this.isDrainingSyncTransactions)return;this.isDrainingSyncTransactions=!0;let e=!1,t;try{let n;do n=this.commitNextPendingTransactionBatch(),n.failure&&!e&&(e=!0,t=n.failure.error);while(n.processed)}finally{this.isDrainingSyncTransactions=!1}if(e)throw t},this.config=e,this.transactions=new aC((e,t)=>e.compareCreatedAt(t)),this.syncedData=new aC(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`})}snapshotRowOriginsForKeys(e){let t=new Map;for(let n of e){let e=this.rowOrigins.get(n);e!==void 0&&t.set(n,e)}return t}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=this.rowOrigins,i=new Map;for(let e of this.transactions.values()){let t=e.metadata[oC]===!0;if(e.state===`completed`){for(let n of e.mutations)if(this.isThisCollection(n.collection)&&!(t&&n.type===`insert`&&this.acknowledgedInserts.has(n))&&(this.pendingLocalOrigins.add(n.key),n.optimistic))switch(n.type){case`insert`:case`update`:{let e=this.pendingOptimisticUpserts.get(n.key),r=e?.insert===n;this.pendingOptimisticUpserts.set(n.key,{key:n.key,modified:r?e.modified:n.modified,insert:n.type===`update`?e?.insert??i.get(n.key):void 0}),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 for(let t of e.mutations)!this.isThisCollection(t.collection)||t.type!==`insert`||!t.optimistic||(e.state!==`failed`&&!this.acknowledgedInserts.has(t)?i.set(t.key,t):this.pendingOptimisticUpserts.get(t.key)?.insert===t&&(this.pendingOptimisticUpserts.delete(t.key),this.pendingOptimisticDirectUpserts.delete(t.key)))}this.optimisticUpserts.clear(),this.optimisticDeletes.clear(),this.pendingLocalChanges.clear();let a=new Set;for(let e of this.pendingSyncedTransactions)for(let t of e.operations)a.add(t.key);let o=[];for(let[e,t]of this.pendingOptimisticUpserts)a.has(e)||this.pendingOptimisticDirectUpserts.has(e)?this.optimisticUpserts.set(e,this.resolveOptimisticUpsert(t)):o.push(e);for(let e of o)this.pendingOptimisticUpserts.delete(e),this.pendingLocalOrigins.delete(e);let s=[];for(let e of this.pendingOptimisticDeletes)a.has(e)||this.pendingOptimisticDirectDeletes.has(e)?this.optimisticDeletes.add(e):s.push(e);for(let e of s)this.pendingOptimisticDeletes.delete(e),this.pendingLocalOrigins.delete(e);let c=[];for(let e of this.transactions.values())[`completed`,`failed`].includes(e.state)||c.push(e);for(let e of c)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,this.resolveOptimisticUpsert(t)),this.optimisticDeletes.delete(t.key);break;case`delete`:this.optimisticUpserts.delete(t.key),this.optimisticDeletes.add(t.key);break}this.size=this.calculateSize();let l=[];this.collectOptimisticChanges(t,n,r,l);let u=l.filter(t=>!!(!this.recentlySyncedKeys.has(t.key)||e));if(this.changes.shouldBatchEvents&&!e){let t=new Set;
36for(let e of this.pendingSyncedTransactions)for(let n of e.operations)t.add(n.key);let n=u.filter(e=>!(e.type===`delete`&&t.has(e.key)&&!c.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 u.length>0&&this.indexes.updateIndexes(u),this.changes.emitEvents(u,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&&(!tb(o,i)||s.$origin!==c.$origin||s.$synced!==c.$synced)&&r.push({type:`update`,key:a,value:i,previousValue:o,__virtualProps:{value:c,previousValue:s}})}}resolveOptimisticUpsert(e){let t=e.key,n=this.pendingOptimisticUpserts.get(t);return n?.insert===e?n.modified:e.modified}createSyncedKeyLookup(){if(this.pendingSyncedTransactions.length===0)return e=>this.syncedData.has(e);let e=new Map,t=!1;for(let n of this.pendingSyncedTransactions)if(n.committed){n.truncate&&(e.clear(),t=!0);for(let t of n.operations)e.set(t.key,t.type!==`delete`)}return n=>e.get(n)??(!t&&this.syncedData.has(n))}getPreviousValue(e,t,n){if(!n.has(e))return t.has(e)?t.get(e):this.syncedData.get(e)}commitNextPendingTransactionBatch(){let e=this.syncSessionGeneration,t=!1;for(let e of this.transactions.values())if(e.state===`persisting`){t=!0;break}let{committedSyncedTransactions:n,uncommittedSyncedTransactions:r,hasTruncateSync:i,hasImmediateSync:a,layoutChanged:o}=this.pendingSyncedTransactions.reduce((e,t)=>(t.committed?(e.committedSyncedTransactions.push(t),e.layoutChanged||=t.layoutChanged,t.truncate&&(e.hasTruncateSync=!0),t.immediate&&(e.hasImmediateSync=!0)):e.uncommittedSyncedTransactions.push(t),e),{committedSyncedTransactions:[],uncommittedSyncedTransactions:[],hasTruncateSync:!1,hasImmediateSync:!1,layoutChanged:!1});if(n.length===0)return{processed:!1};if(!t||i||a){let t=o?[...this.keys()]:void 0;this.pendingSyncedTransactions=r;for(let e of n)e.applicationStarted=!0;this.isCommittingSyncTransactions=!0;let a=i?n.find(e=>e.truncate)?.optimisticSnapshot:null,s,c,l=new Set,u=new Set;for(let e of n){for(let t of e.operations)l.add(t.key),t.type!==`delete`&&u.add(t.key);for(let[t]of e.rowMetadataWrites)l.add(t)}let d=new Set(l);for(let e of this.pendingOptimisticDirectUpserts)d.add(e);for(let e of this.pendingOptimisticDirectDeletes)d.add(e);let f=this.snapshotRowOriginsForKeys(d),p=new Map(this.optimisticUpserts),m=new Set(this.optimisticDeletes),h=new Set(this.pendingOptimisticDirectUpserts),g=new Set(this.pendingOptimisticDirectDeletes),_=this.preSyncVisibleState;if(_.size===0){_=new Map;for(let e of l){let t=this.get(e);t!==void 0&&_.set(e,t)}}let v=[];if(i)for(let[e,t]of this.entries())v.push({type:`delete`,key:e,value:this.enrichWithVirtualPropsSnapshot(t,this.getVirtualPropsSnapshotForState(e))});let y=this.config.sync.rowUpdateMode||`partial`,b=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&&b.set(t.key,{type:t.type,value:t.modified});for(let e of n){if(e.truncate){s=new Set(this.pendingLocalChanges),c=new Set(this.pendingLocalOrigins),this.syncedData.clear(),this.syncedMetadata.clear(),this.hydrationSeedKeys.clear(),this.hydratedKeys.clear(),this.clearOriginTrackingState();for(let e of l)_.delete(e);this._events.emit(`truncate`,{type:`truncate`,collection:this.collection})}let t=new Set;for(let n of e.operations){let r=n.key,i=s?.has(r)===!0||c?.has(r)===!0&&!h.has(r)&&!g.has(r),a=this.isLocalOnly||this.pendingLocalChanges.has(r)||this.pendingLocalOrigins.has(r)||t.has(r)||i?`local`:`remote`;switch(a===`local`&&t.add(r),n.type){case`insert`:this.syncedData.set(r,n.value),this.rowOrigins.set(r,a),this.pendingLocalChanges.delete(r),this.pendingLocalOrigins.delete(r),this.pendingOptimisticUpserts.delete(r),this.pendingOptimisticDeletes.delete(r),this.pendingOptimisticDirectUpserts.delete(r),this.pendingOptimisticDirectDeletes.delete(r);break;case`update`:if(y===`partial`){let e=Object.assign({},this.syncedData.get(r),n.value);this.syncedData.set(r,e)}else this.syncedData.set(r,n.value);this.rowOrigins.set(r,a),this.pendingLocalChanges.delete(r),this.pendingLocalOrigins.delete(r),this.pendingOptimisticUpserts.delete(r),this.pendingOptimisticDeletes.delete(r),this.pendingOptimisticDirectUpserts.delete(r),this.pendingOptimisticDirectDeletes.delete(r);break;case`delete`:this.syncedData.delete(r),this.syncedMetadata.delete(r),this.rowOrigins.delete(r),this.pendingLocalChanges.delete(r),this.pendingLocalOrigins.delete(r),this.pendingOptimisticUpserts.delete(r),this.pendingOptimisticDeletes.delete(r),this.pendingOptimisticDirectUpserts.delete(r),this.pendingOptimisticDirectDeletes.delete(r);break}e.preserveHydrationSeedKeys||(this.hydrationSeedKeys.delete(r),this.hydratedKeys.delete(r))}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)}}for(let e of this.pendingOptimisticDirectUpserts)if(!(i&&a?.upserts.has(e)&&!l.has(e))){if(!l.has(e)){
36if(l.add(e),!_.has(e)){let t=p.get(e);t!==void 0&&_.set(e,t)}this.pendingOptimisticUpserts.delete(e),this.pendingLocalOrigins.delete(e)}this.pendingOptimisticDirectUpserts.delete(e)}for(let e of this.pendingOptimisticDirectDeletes)i&&a?.deletes.has(e)&&!l.has(e)||(l.has(e)||l.add(e),this.pendingOptimisticDeletes.delete(e),this.pendingLocalOrigins.delete(e),this.pendingOptimisticDirectDeletes.delete(e));if(this.optimisticUpserts.clear(),this.optimisticDeletes.clear(),this.isCommittingSyncTransactions=!1,i&&a){for(let[e,t]of a.upserts)h.has(e)&&l.has(e)||this.optimisticUpserts.set(e,t);for(let e of a.deletes)g.has(e)&&l.has(e)||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)&&this.pendingLocalChanges.add(t.key),this.isThisCollection(t.collection)&&t.type===`insert`&&u.has(t.key)&&this.acknowledgedInserts.add(t),this.isThisCollection(t.collection)&&t.optimistic)switch(t.type){case`insert`:case`update`:this.optimisticUpserts.set(t.key,this.resolveOptimisticUpsert(t)),this.optimisticDeletes.delete(t.key);break;case`delete`:this.optimisticUpserts.delete(t.key),this.optimisticDeletes.add(t.key);break}}if(i){let e=this.optimisticUpserts,t=this.optimisticDeletes;for(let[n,r]of e)if(!t.has(n))if(u.has(n)){let e=!1;for(let t=v.length-1;t>=0;t--){let i=v[t];if(i.key===n&&i.type===`insert`){i.value=r,e=!0;break}}e||v.push({type:`insert`,key:n,value:r})}else v.push({type:`insert`,key:n,value:r});if(v.length>0&&t.size>0){let e=[];for(let n of v)n.type===`insert`&&t.has(n.key)||e.push(n);v.length=0,v.push(...e)}this.lifecycle.status!==`ready`&&this.lifecycle.markReady()}for(let e of l){let t=_.get(e),n=this.get(e),r=this.preSyncVirtualState.get(e)??this.getVirtualPropsSnapshotForState(e,{rowOrigins:f,optimisticUpserts:p,optimisticDeletes:m,completedOptimisticKeys:b}),i=this.getVirtualPropsSnapshotForState(e),a=r.$synced!==i.$synced||r.$origin!==i.$origin,o=t===void 0?void 0:Kb(t,e,this.collection.id,()=>r.$synced,()=>r.$origin),s=a&&t!==void 0&&n!==void 0&&tb(t,n);if(t===void 0&&n!==void 0){let t=b.get(e);if(t){let i=t.value,a=Kb(i,e,this.collection.id,()=>r.$synced,()=>r.$origin);v.push({type:`update`,key:e,value:n,previousValue:a})}else v.push({type:`insert`,key:e,value:n})}else t!==void 0&&n===void 0?v.push({type:`delete`,key:e,value:o??t}):t!==void 0&&n!==void 0&&(!tb(t,n)||s)&&v.push({type:`update`,key:e,value:n,previousValue:o??t})}this.size=this.calculateSize(),v.length>0&&this.indexes.updateIndexes(v);let x;try{let e=t!==void 0&&(t.length!==this.size||[...this.keys()].some((e,n)=>e!==t[n]));this.changes.emitEvents(v,!0,e)}catch(e){x={error:e}}this.syncSessionGeneration===e&&(this.preSyncVisibleState.clear(),this.preSyncVirtualState.clear(),Promise.resolve().then(()=>{this.syncSessionGeneration===e&&this.recentlySyncedKeys.clear()}),this.hasReceivedFirstCommit||=!0);for(let e of n)e.applied.resolve();return{processed:!0,failure:x}}return{processed:!1}}cancelPendingSyncedTransaction(e){if(e.applicationStarted)return;let t=this.pendingSyncedTransactions.indexOf(e);if(t===-1)return;this.pendingSyncedTransactions.splice(t,1),e.applied.reject(new qy);let n=new Set;for(let e of this.pendingSyncedTransactions)for(let t of e.operations)n.add(t.key);for(let t of e.operations){let e=t.key;n.has(e)||(this.recentlySyncedKeys.delete(e),this.preSyncVisibleState.delete(e),this.preSyncVirtualState.delete(e))}this.pendingSyncedTransactions.length===0?(this.preSyncVisibleState.clear(),this.preSyncVirtualState.clear(),this.recentlySyncedKeys.clear(),this.changes.emitEvents([],!0)):this.recomputeOptimisticState(!1)}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),this.preSyncVirtualState.set(t,this.getVirtualPropsSnapshotForState(t)))}}onTransactionStateChange(){let e=[...this.transactions.values()].some(e=>e.state===`persisting`);this.changes.shouldBatchEvents=this.pendingSyncedTransactions.some(t=>t.committed&&(!e||t.immediate||t.truncate)),this.changes.shouldBatchEvents&&this.capturePreSyncVisibleState(),this.recomputeOptimisticState(!1)}cleanup(){this.syncSessionGeneration++;for(let e of this.pendingSyncedTransactions)e.applied.reject(new qy);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.hydrationSeedKeys.clear(),this.hydratedKeys.clear(),this.clearOriginTrackingState(),this.isLocalOnly=!1,this.size=0,this.pendingSyncedTransactions=[],this.preSyncVisibleState.clear(),this.preSyncVirtualState.clear(),this.recentlySyncedKeys.clear(),this.hasReceivedFirstCommit=!1}};function cC(e){let t;for(let n of e)try{n()}catch(e){t??={error:e}}if(t)throw t.error}function lC(e){return typeof e==`object`&&!!e&&typeof e.hasPendingGraphRun==`function`}var uC=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},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)}flush(e){let t=this.contexts.get(e);if(!t)return;let{queue:n,jobs:r,dependencies:i}=t;
36for(;n.length>0;){let t=!1,a=n.length;for(let o=0;o<a;o++){let a=n.shift(),o=r.get(a);if(!o){i.delete(a);continue}let s=i.get(a),c=!s;if(s){c=!0;for(let t of s){if(t===a)continue;let n=lC(t)&&t.hasPendingGraphRun(e);if(r.has(t)||n){c=!1;break}}}c?(r.delete(a),i.delete(a),o(),t=!0):n.push(a)}if(!t)throw Error(`Scheduler detected unresolved dependencies for context ${String(e)}.`)}this.contexts.delete(e)}clear(e){this.contexts.delete(e),cC([...this.clearListeners].map(t=>()=>t(e)))}onClear(e){return this.clearListeners.add(e),()=>this.clearListeners.delete(e)}},dC,fC;function pC(){return fC}function mC(){return dC}function hC(e){if(dC===void 0)throw e;fC??={error:e}}function gC(e){if(dC!==void 0)return e();let t=Symbol(`collection-publication`);dC=t,fC=void 0;let n,r;try{n=e(),uC.flush(t),r=pC()}catch(e){try{uC.clear(t)}catch{}let n=pC();throw n?n.error:e}finally{dC=void 0,fC=void 0}if(r)throw r.error;return n}function _C(){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 vC(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)||e.includes(`*`))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,configurable:!0};if(typeof n==`string`&&e.includes(n))return{enumerable:!0,configurable:!0}}})}function yC(e){let t=vC(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 bC(e){if(xC(e))return new Tx(e.__path);if(e&&typeof e==`object`&&(e.__brand===`ToArrayWrapper`||e.__brand===`ConcatToArrayWrapper`||e.__brand===`CaseWhenWrapper`||e.__brand===`MaterializeWrapper`)){let t=e.__brand===`ToArrayWrapper`?`toArray()`:e.__brand===`ConcatToArrayWrapper`?`concat(toArray())`:e.__brand===`CaseWhenWrapper`?`caseWhen()`:`materialize()`;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 Ex(e)}function xC(e){return e&&typeof e==`object`&&e.__refProxy===!0}function SC(e,t){return new Dx(`eq`,[bC(e),bC(t)])}function CC(e,t){return new Dx(`gt`,[bC(e),bC(t)])}function wC(e,t){return new Dx(`gte`,[bC(e),bC(t)])}function TC(e,t){return new Dx(`lt`,[bC(e),bC(t)])}function EC(e,t,...n){return new Dx(`and`,[e,t,...n].map(e=>bC(e)))}function DC(e,t,...n){return new Dx(`or`,[e,t,...n].map(e=>bC(e)))}function OC(e){return new Dx(`not`,[bC(e)])}function kC(e){return new Dx(`isUndefined`,[bC(e)])}function AC(e){return new Dx(`isNull`,[bC(e)])}function jC(e,t){return new Dx(`in`,[bC(e),bC(t)])}var MC=class{constructor(e){this.query=e,this.__brand=`ToArrayWrapper`}},NC=class{constructor(e){this.query=e,this.__brand=`ConcatToArrayWrapper`}},PC=class{constructor(e){this.args=e,this.__brand=`CaseWhenWrapper`}},FC=class{constructor(e){this.query=e,this.__brand=`MaterializeWrapper`}},IC=class{constructor(){this.listeners=new Map,this.onceCallbacks=new WeakMap}on(e,t){this.listeners.has(e)||this.listeners.set(e,new Map);let n=this.listeners.get(e),r=t,i=n.get(r);
36return i||(i={},n.set(r,i)),()=>{let t=this.listeners.get(e);t?.get(r)===i&&t.delete(r)}}once(e,t){let n=()=>{},r=e=>{n(),t(e)};return this.onceCallbacks.set(r,t),n=this.on(e,r),n}off(e,t){let n=this.listeners.get(e);if(n)for(let e of n.keys())(e===t||this.onceCallbacks.get(e)===t)&&n.delete(e)}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.emitInnerWhile(e,t,()=>!0)}emitInnerWhile(e,t,n){let r=this.listeners.get(e);if(r)for(let[i,a]of[...r]){if(!n())break;if(this.listeners.get(e)?.get(i)===a)try{i(t)}catch(e){queueMicrotask(()=>{throw e})}}}clearListeners(){this.listeners.clear()}};function LC(e){return DC(AC(e),kC(e))}function RC(e,t){let n=LC(e.expression);if(t==null)return e.compareOptions.nulls===`first`?OC(n):new Ex(!1);let r=(e.compareOptions.direction===`asc`?CC:TC)(e.expression,new Ex(t));return e.compareOptions.nulls===`last`?DC(r,n):r}function zC(e,t){if(t.length!==0){if(e.length!==1||t.length!==1)throw Error(`Only single-column cursors are supported`);return RC(e[0],t[0])}}function BC(e,t){let{expression:n}=e[0]??{};if(!n||t.length===0)return;let r=t[0];if(r==null)return LC(n);if(r instanceof Date)return Number.isFinite(r.getTime())?EC(wC(n,new Ex(r)),TC(n,new Ex(new Date(r.getTime()+1)))):void 0;if(typeof r!=`object`)return SC(n,new Ex(r))}function VC(e,t){if(e.length!==1||t.length!==1)return!1;let n=t[0];return n==null?!1:n instanceof Date?Number.isFinite(n.getTime()):typeof n==`string`?e[0].compareOptions.stringSort===`lexical`:typeof n==`number`&&Number.isFinite(n)||typeof n==`bigint`||typeof n==`boolean`}var HC=e=>{try{return e instanceof Error?e:Error(String(e))}catch{return Error(`Unknown error`)}};function UC(){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 WC(){let e=UC();return e.promise.catch(()=>{}),e}function GC(e){e.abortController?.abort(),e.removeRequestAbortListener?.()}var KC=class extends IC{constructor(e,t,n){super(),this.collection=e,this.callback=t,this.options=n,this.loadedInitialState=!1,this.skipFiltering=!1,this.snapshotSent=!1,this.subsetDemands=[],this.primaryFailureDeliveryDepth=0,this.requestedSubsetWhere=new WeakMap,this.sentKeys=new Set,this.publishedRows=new Map,this.stalePublishedRows=new Map,this.limitedSnapshotRowCount=0,this._status=`ready`,this.statusRevision=0,this.pendingLoadSubsetParticipants=new Set,this.loadSubsetPromiseErrors=new WeakMap,this.truncateReplacementPending=!1,this.unsubscribed=!1,n.onUnsubscribe&&this.on(`unsubscribed`,n.onUnsubscribe),n.onLoadSubsetError&&this.on(`loadSubset:error`,n.onLoadSubsetError),n.whereExpression&&gx(n.whereExpression,this.collection);let r=e=>{this.trackPublishedRows(e),this.trackSentKeys(e),t(e)};this.callback=r,this.filteredCallback=n.whereExpression?nC(this.callback,n):e=>(this.callback(e),!0),this.truncateCleanup=this.collection.on(`truncate`,()=>{this.handleTruncate()}),this.collectionCleanup=this.collection.on(`status:cleaned-up`,()=>{this.handleCollectionCleanup()}),this.collectionRestartCleanup=this.collection.on(`status:change`,({status:e})=>{if(e!==`loading`&&e!==`ready`)return;let t=this.collection._sync.getLoadSubsetSession(),n=this.truncateReplaySession;this.subsetDemands.some(e=>e.acquisitionState===`detached`)&&this.setStatus(`loadingSubset`),queueMicrotask(()=>{this.truncateReplaySession===n&&this.restartDetachedDemands(t)})})}get status(){return this._status}get lastError(){return this._lastError}handleCollectionCleanup(){this.discardTruncateReplay(),this.stalePublishedRows=new Map(this.publishedRows),this.pendingLoadSubsetParticipants.clear();for(let e of[...this.subsetDemands])if(e.initialResult?.reject(new Yy),GC(e.acquisition),e.acquisitionState===`starting`){let t=this.subsetDemands.indexOf(e);t!==-1&&this.subsetDemands.splice(t,1)}else e.acquisitionState=`detached`,e.acquisition={options:e.requestOptions,loadSubsetSession:e.acquisition.loadSubsetSession};this.setReadyIfIdle()}restartDetachedDemands(e){if(this.unsubscribed||!this.isLoadSubsetSessionCurrent(e))return;if(this.collection.status===`error`||this.collection._sync.syncLoadSubsetFn===null){this.setReadyIfIdle();return}let t=this.subsetDemands.filter(e=>e.acquisitionState===`detached`&&!e.requestOptions.signal?.aborted);if(t.length===0){this.setReadyIfIdle();return}let n=this.createTruncateReplaySession(e,()=>{let e=this.collection.currentStateAsChanges({optimizedOnly:!1});return new Map((e??[]).filter(e=>e.type!==`delete`).map(e=>[e.key,e.value]))}),r=n.currentAttempt;this.truncateReplaySession=n,this.setStatus(`loadingSubset`),this.truncateReplaySession===n&&this.startTruncateReplayAttempt(n,r,t)}handleTruncate(){let e=this.collection._sync.syncLoadSubsetFn===null?[]:[...this.subsetDemands];if(e.length===0&&this.stalePublishedRows.size===0){this.resetSnapshotTracking();return}let t=this.truncateReplaySession;t?(t.completion.isPending()||(t.completion=WC()),t.pendingSetups++,t.failures.clear(),t.currentAttempt={pendingCount:0,setupComplete:!1}):(t=this.createTruncateReplaySession(this.collection._sync.getLoadSubsetSession(),()=>new Map(this.publishedRows)),this.truncateReplaySession=t);let n=t.currentAttempt;if(this.setStatus(`loadingSubset`),this.truncateReplaySession===t){this.options.truncateReplayPublication&&(this.truncateReplacementPending=!0,this.options.truncateReplayPublication.start());for(let t of e)t.acquisition.abortController?.abort();this.resetSnapshotTracking(),queueMicrotask(()=>
36{if(this.truncateReplaySession===t){if(!this.isLoadSubsetSessionCurrent(t.loadSubsetSession)){this.retireStaleTruncateReplay(t);return}this.startTruncateReplayAttempt(t,n,t.currentAttempt===n?e:[])}})}}startTruncateReplayDemand(e,t,n){let r=()=>this.truncateReplaySession===e&&e.currentAttempt===t,i=()=>r()&&this.isLoadSubsetSessionCurrent(e.loadSubsetSession)&&this.isDemandActive(n),a=t=>{i()&&e.failures.set(n,HC(t))};n.initialResult&&e.completion.promise.then(n.initialResult.resolve,n.initialResult.reject);let o=n.acquisition,s=n.acquisitionState===`active`;if(n.acquisitionState=`detached`,s)try{this.releaseAcquisition(o)}catch(e){a(e);return}if(!i()||n.requestOptions.signal?.aborted)return;let c=this.createSubsetAcquisition(n);n.acquisition=c,n.acquisitionState=`starting`;let l;try{l=this.loadSubset(c.options,i)}catch(e){n.acquisition===c&&(n.acquisitionState=`detached`),GC(c),a(e);return}if(!i()){n.acquisition===c&&(n.acquisitionState=`detached`);try{this.releaseAcquisition(c)}catch(e){a(e)}return}n.acquisitionState=`active`,this.trackTruncateReplayParticipant(e,t,n,l),this.observeLoadSubsetResult(l,n,c.options,!0,()=>i()&&!c.options.signal?.aborted)}settleTruncateReplay(e,t){try{if(this.truncateReplaySession!==e)return;if(!this.isLoadSubsetSessionCurrent(e.loadSubsetSession)){this.retireStaleTruncateReplay(e);return}e.pending.delete(t)&&t.attempt.pendingCount--,this.checkTruncateReplayComplete(e)}catch(e){queueMicrotask(()=>{throw e})}}trackTruncateReplayParticipant(e,t,n,r){if(this.truncateReplaySession!==e||e.currentAttempt!==t&&t.setupComplete&&t.pendingCount===0||!(r instanceof Promise))return;let i={demand:n,attempt:t};t.pendingCount++,e.pending.add(i),r.then(()=>this.settleTruncateReplay(e,i),a=>{if(this.truncateReplaySession===e&&e.currentAttempt===t&&this.isLoadSubsetSessionCurrent(e.loadSubsetSession)&&this.subsetDemands.includes(n)){let t=this.normalizeLoadSubsetPromiseError(r,a);e.failures.set(n,t)}this.settleTruncateReplay(e,i)})}removeTruncateReplayParticipant(e){let t=this.truncateReplaySession;if(t){t.failures.delete(e);for(let n of t.pending)n.demand===e&&(t.pending.delete(n),n.attempt.pendingCount--)}}checkTruncateReplayComplete(e){if(this.truncateReplaySession!==e||e.pendingSetups>0||e.pending.size>0)return;let t=[...e.failures].find(([e])=>this.subsetDemands.includes(e));try{t?this.abandonTruncateReplay(e,t[1]):this.flushTruncateReplay(e)}finally{this.setReadyIfIdle()}}abandonTruncateReplay(e,t){if(this.truncateReplaySession!==e||(e.completion.reject(t),!e.privateRows))return;let n=e.publicationState;this.loadedInitialState=n.loadedInitialState,this.snapshotSent=n.snapshotSent,this.limitedSnapshotRowCount=n.limitedSnapshotRowCount,this.lastSentKey=n.lastSentKey}flushTruncateReplay(e){if(this.truncateReplaySession!==e)return;this.truncateReplaySession=void 0,this.truncateReplacementPending=!1;let{privateRows:t}=e;for(let e of this.stalePublishedRows.keys())t?.delete(e);this.stalePublishedRows.clear();try{if(t){let e=this.createStateDiff(this.publishedRows,t);e.length>0&&this.filteredCallback(e)}}finally{this.restorePublishedSnapshotTracking(),e.completion.resolve(),this.options.truncateReplayPublication?.succeed()}}restorePublishedSnapshotTracking(){if(this.sentKeys=new Set(this.publishedRows.keys()),!this.orderByIndex)return;this.limitedSnapshotRowCount=this.sentKeys.size;let e=this.orderByIndex.takeFromStart(this.sentKeys.size,e=>this.sentKeys.has(e));this.lastSentKey=e.at(-1)}bufferPrivately(e){let t=this.truncateReplaySession?.privateRows;if(!t)return!1;for(let n of e)n.type===`delete`?t.delete(n.key):t.set(n.key,n.value);return!0}createStateDiff(e,t){let n=[];for(let[r,i]of e){let e=t.get(r);e===void 0?n.push({type:`delete`,key:r,value:i}):tb(e,i)||n.push({type:`update`,key:r,value:e,previousValue:i})}for(let[r,i]of t)e.has(r)||n.push({type:`insert`,key:r,value:i});return n}get isBufferingForTruncate(){return this.truncateReplaySession!==void 0}setReadyIfIdle(){let e=this.truncateReplaySession,t=e&&(e.pendingSetups>0||e.pending.size>0);this.pendingLoadSubsetParticipants.size===0&&!t&&this.setStatus(`ready`)}isLoadSubsetSessionCurrent(e){return e===this.collection._sync.getLoadSubsetSession()}retireStaleTruncateReplay(e){this.truncateReplaySession===e&&(this.discardTruncateReplay(),this.stalePublishedRows.clear())}discardTruncateReplay(){let e=this.truncateReplaySession;e?.completion.isPending()&&e.completion.reject(new Yy),this.truncateReplaySession=void 0,this.truncateReplacementPending=!1}resetSnapshotTracking(){this.snapshotSent=!1,this.loadedInitialState=!1,this.limitedSnapshotRowCount=0,this.lastSentKey=void 0}createTruncateReplaySession(e,t){return{loadSubsetSession:e,publicationState:{loadedInitialState:this.loadedInitialState,snapshotSent:this.snapshotSent,limitedSnapshotRowCount:this.limitedSnapshotRowCount,lastSentKey:this.lastSentKey},privateRows:this.options.truncateReplayPublication?void 0:t(),pending:new Set,pendingSetups:1,currentAttempt:{pendingCount:0,setupComplete:!1},failures:new Map,completion:WC()}}startTruncateReplayAttempt(e,t,n){for(let r of n)if(this.subsetDemands.includes(r)&&(this.startTruncateReplayDemand(e,t,r),this.truncateReplaySession!==e||e.currentAttempt!==t))break;t.setupComplete=!0,e.pendingSetups--,this.checkTruncateReplayComplete(e)}get hasPendingTruncateReplacement(){return this.truncateReplacementPending}get pendingTruncateReplacement(){let e=this.truncateReplaySession?.completion;return e?.isPending()?e.promise:void 0}get hasFailedTruncateReplacement(){let e=this.truncateReplaySession?.completion;return this.truncateReplacementPending&&e!==void 0&&!e.isPending()}setOrderByIndex(e){this.orderByIndex=e}setStatus(e){if(this.unsubscribed||this._status===e)return;let t=this._status;this._status=e;let n=++this.statusRevision;if(this.emitInnerWhile(`status:change`,{type:`status:change`,subscription:this,previousStatus:t,status:e},()=>this.statusRevision===n),this.statusRevision!==n)return;let r=`status:${e}`;this.emitInnerWhile(r,{type:r,subscription:this,previousStatus:t,status:e},()=>this.statusRevision===n)}
36observeLoadSubsetResult(e,t,n,r,i=()=>!0){if(!(e instanceof Promise))return;let a=this.collection._sync.getLoadSubsetSession(),o={demand:t,promise:e};r&&(this.pendingLoadSubsetParticipants.add(o),this.setStatus(`loadingSubset`));let s=()=>{r&&(this.pendingLoadSubsetParticipants.delete(o),this.isLoadSubsetSessionCurrent(a)&&this.setReadyIfIdle())};e.then(s,t=>{this.isLoadSubsetSessionCurrent(a)&&i()&&this.recordLoadSubsetError(n,this.normalizeLoadSubsetPromiseError(e,t)),s()})}normalizeLoadSubsetPromiseError(e,t){let n=this.loadSubsetPromiseErrors.get(e);if(n)return n;let r=HC(t);return this.loadSubsetPromiseErrors.set(e,r),r}stopDemandStatusParticipants(e){for(let t of this.pendingLoadSubsetParticipants)t.demand===e&&this.pendingLoadSubsetParticipants.delete(t);this.setReadyIfIdle()}loadSubset(e,t=()=>!0){try{return this.collection._sync.loadSubset(e)}catch(n){let r=HC(n);throw t()&&this.recordLoadSubsetError(e,r),r}}createSubsetAcquisition(e){let t=new AbortController,n=e.requestOptions.signal,r;if(n?.aborted)t.abort(n.reason);else if(n){let e=()=>t.abort(n.reason);n.addEventListener(`abort`,e,{once:!0}),r=()=>n.removeEventListener(`abort`,e)}return{options:{...e.requestOptions,signal:t.signal},loadSubsetSession:this.collection._sync.getLoadSubsetSession(),abortController:t,removeRequestAbortListener:r}}releaseAcquisition(e,t=this.primaryFailureDeliveryDepth===0){if(!e.releaseAttempted){e.releaseAttempted=!0;try{e.abortController?.abort(),this.isLoadSubsetSessionCurrent(e.loadSubsetSession)&&this.collection._sync.unloadSubset(e.options)}catch(n){throw t?this.recordLoadSubsetError(e.options,HC(n),!0):HC(n)}finally{e.removeRequestAbortListener?.()}}}startSubsetDemand(e){let t={requestOptions:e,acquisition:{options:e,loadSubsetSession:this.collection._sync.getLoadSubsetSession()},acquisitionState:`starting`};if(this.collection.status===`cleaned-up`||this.collection.config.syncMode===`on-demand`&&(this.collection.status===`error`||this.collection.status!==`idle`&&this.collection._sync.syncLoadSubsetFn===null)){t.acquisitionState=`detached`,this.subsetDemands.push(t);let n=UC();t.initialResult=n;let r=()=>n.reject(new Yy);e.signal?.addEventListener(`abort`,r,{once:!0});let i=()=>{e.signal?.removeEventListener(`abort`,r),t.initialResult=void 0};return n.promise.then(i,i),{demand:t,result:n.promise,started:!1}}let n=this.createSubsetAcquisition(t);t.acquisition=n;let r=this.truncateReplaySession,i=r?.currentAttempt,a=this.collection._sync.getLoadSubsetSession();this.subsetDemands.push(t);let o;try{o=this.loadSubset(n.options,()=>this.isLoadSubsetSessionCurrent(a)&&this.subsetDemands.includes(t)&&(r===void 0||this.truncateReplaySession===r&&r.currentAttempt===i))}catch(e){let a=this.subsetDemands.indexOf(t);throw a!==-1&&(r&&i&&this.truncateReplaySession===r&&r.currentAttempt===i&&r.failures.set(t,HC(e)),this.subsetDemands.splice(a,1)),GC(n),e}if(!this.isLoadSubsetSessionCurrent(a)){let e=this.subsetDemands.indexOf(t);return e!==-1&&this.subsetDemands.splice(e,1),GC(n),{demand:t,result:o,started:!0}}return t.acquisitionState=`active`,this.subsetDemands.includes(t)?(r&&i&&this.trackTruncateReplayParticipant(r,i,t,o),{demand:t,result:o,started:!0}):(this.releaseAcquisition(n),{demand:t,result:o,started:!0})}isDemandActive(e){return!this.unsubscribed&&this.subsetDemands.includes(e)}recordLoadSubsetError(e,t,n=!1){let r=HC(t);if(e.signal?.aborted&&!n)return r;this._lastError=r,this.primaryFailureDeliveryDepth++;try{this.emitInner(`loadSubset:error`,{type:`loadSubset:error`,subscription:this,options:e,error:r})}finally{this.primaryFailureDeliveryDepth--}return r}emitEvents(e){if(this.unsubscribed)return!1;let t=this.filterAndFlipChanges(e);return e.length>0&&t.length===0||this.bufferPrivately(t)?!1:this.filteredCallback(t)}publishSnapshot(e){this.bufferPrivately(e)||this.callback(e)}requestSnapshot(e){if(this.unsubscribed||e?.signal?.aborted||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=EC(e,n)}else t.where=n}}else this.loadedInitialState=!0;let n={where:t.where,signal:e?.signal,subscription:this,orderBy:e?.orderBy,limit:e?.limit},{demand:r,result:i,started:a}=this.startSubsetDemand(n);if(!this.isDemandActive(r)||(e?.where&&this.requestedSubsetWhere.set(n,e.where),e?.onLoadSubsetRe
36sult?.(i,r.acquisition.options,e=>this.releaseDemand(r,e)),!this.isDemandActive(r))||(a&&this.observeLoadSubsetResult(i,r,r.acquisition.options,e?.trackLoadSubsetPromise??!0),!this.isDemandActive(r)))return!1;let o;if(e?.onUnoptimized){if(o=this.collection.currentStateAsChanges({...t,optimizedOnly:!0}),o===void 0){if(e.onUnoptimized(),this.unsubscribed)return!1;o=this.collection.currentStateAsChanges({...t,optimizedOnly:!1})}}else o=this.collection.currentStateAsChanges(t);if(this.unsubscribed||o===void 0)return!1;let s=this.truncateReplaySession?.privateRows??this.publishedRows,c=o.filter(e=>!this.isBufferingForTruncate&&this.stalePublishedRows.has(e.key)||!this.sentKeys.has(e.key)&&!s.has(e.key));for(let e of c)this.sentKeys.add(e.key);return this.snapshotSent=!0,this.publishSnapshot(this.isBufferingForTruncate?c:this.reconcileStalePublishedChanges(c)),!0}releaseSnapshot(e){let t=this.subsetDemands.findIndex(t=>t.requestOptions.where===e||this.requestedSubsetWhere.get(t.requestOptions)===e);t!==-1&&this.releaseDemandAt(t)}releaseDemand(e,t){if(!t){let t=this.subsetDemands.indexOf(e);t!==-1&&this.releaseDemandAt(t);return}try{this.recordLoadSubsetError(e.acquisition.options,t.error,!0)}finally{let t=this.subsetDemands.indexOf(e);t!==-1&&this.releaseDemandAt(t,!1)}}releaseDemandAt(e,t=this.primaryFailureDeliveryDepth===0){let n=this.subsetDemands[e];if(!n)return;let r=this.truncateReplaySession,i=n.acquisition;this.subsetDemands.splice(e,1),n.initialResult?.reject(new Yy),cC([()=>this.removeTruncateReplayParticipant(n),...n.acquisitionState===`active`?[()=>this.releaseAcquisition(i,t)]:[],()=>this.retireEmptyReplay(),()=>{r&&this.checkTruncateReplayComplete(r)},()=>this.stopDemandStatusParticipants(n)])}retireEmptyReplay(){this.subsetDemands.length!==0||!this.truncateReplaySession||(this.discardTruncateReplay(),this.stalePublishedRows=new Map(this.publishedRows),this.restorePublishedSnapshotTracking(),this.options.truncateReplayPublication?.succeed())}readOrderedSnapshot(e){let t=[this.options.whereExpression,e.where,e.cursor?.whereFrom].filter(e=>e!==void 0),n=this.collection.currentStateAsChanges({orderBy:e.orderBy,limit:e.limit,where:t.length>0?t.reduce((e,t)=>EC(e,t)):void 0});return Array.isArray(n)?n:[]}requestLimitedSnapshot({orderBy:e,limit:t,minValues:n,offset:r,trackLoadSubsetPromise:i=!0,onLoadSubsetResult:a}){if(this.unsubscribed)return;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?zC(e,n):void 0,s=n!==void 0&&n.length>0,c=n?.[0],l=this.orderByIndex,u=this.options.whereExpression,d=u?tC(u):void 0,f=e=>{if(e!==void 0&&this.sentKeys.has(e))return!1;let t=this.collection.get(e);return t===void 0?!1:d?.(t)??!0},p=c,m=[],h=[];if(s){let{expression:n}=e[0],r=this.collection.currentStateAsChanges({where:SC(n,new Ex(c))});if(r){let e=r.map(e=>e.key).filter(e=>!this.sentKeys.has(e)&&f(e));h.push(...e);let n=l.take(t-h.length,c,f);h.push(...n)}else h=l.take(t,c,f)}else h=l.takeFromStart(t,f);let g=()=>Math.max(t-m.length,0),_=()=>h.length===0,v=e[0].expression,y=v.type===`ref`?Lb(new Tx(v.path),!0):null;for(;g()>0&&!_();){for(let e of h){let t=this.collection.get(e);m.push({type:`insert`,key:e,value:t}),p=y?y(t):t}h=l.take(g(),p,f)}let b=this.limitedSnapshotRowCount;for(let e of m)this.sentKeys.add(e.key);if(this.publishSnapshot(m),this.unsubscribed)return;this.limitedSnapshotRowCount=Math.max(this.limitedSnapshotRowCount,b+m.length),m.length>0&&(this.lastSentKey=m[m.length-1].key);let x;if(o&&n){let t=BC(e,n);t&&(x={whereFrom:o,whereCurrent:t,lastKey:this.lastSentKey})}let S={where:u,limit:t,orderBy:e,cursor:x,offset:r??b,subscription:this},{demand:C,result:w,started:T}=this.startSubsetDemand(S);this.isDemandActive(C)&&(a?.(w,C.acquisition.options,e=>this.releaseDemand(C,e)),this.isDemandActive(C)&&(T&&this.observeLoadSubsetResult(w,C,C.acquisition.options,i),this.isDemandActive(C)))}filterAndFlipChanges(e){if(e=this.reconcileStalePublishedChanges(e),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},this.sentKeys.add(r.key);else if(r.type===`delete`){if(!t)continue}else 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}reconcileStalePublishedChanges(e){if(this.stalePublishedRows.size===0)return e;let t=[];for(let n of e){let e=this.stalePublishedRows.get(n.key);if(e===void 0){t.push(n);continue}this.stalePublishedRows.delete(n.key),n.type===`delete`?t.push({...n,value:e,previousValue:void 0}):tb(e,n.value)||t.push({...n,type:`update`,previousValue:e})}if(this.collection.config.syncMode!==`on-demand`&&!this.isBufferingForTruncate)for(let[e,n]of this.stalePublishedRows)this.collection.has(e)||(this.stalePublishedRows.delete(e),t.pu
36sh({type:`delete`,key:e,value:n}));return t}trackPublishedRows(e){for(let t of e)t.type===`delete`?this.publishedRows.delete(t.key):this.publishedRows.set(t.key,t.value)}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(){if(this.unsubscribed)return;this.unsubscribed=!0,this.statusRevision++;let e=[this.truncateCleanup,this.collectionCleanup,this.collectionRestartCleanup];this.truncateCleanup=void 0,this.collectionCleanup=void 0,this.collectionRestartCleanup=void 0,cC([...e.map(e=>()=>e?.()),()=>{this.discardTruncateReplay(),this.stalePublishedRows.clear();let e=this.subsetDemands.filter(e=>e.acquisitionState===`active`).map(e=>e.acquisition);for(let e of this.subsetDemands)e.initialResult?.reject(new Yy),this.stopDemandStatusParticipants(e),e.acquisitionState===`starting`&&GC(e.acquisition);this.subsetDemands=[],cC(e.map(e=>()=>this.releaseAcquisition(e)))},()=>this.emitInner(`unsubscribed`,{type:`unsubscribed`,subscription:this}),()=>this.clearListeners()])}},qC=class{constructor(){this.activeSubscribersCount=0,this.changeSubscriptions=new Set,this.batchedEvents=[],this.shouldBatchEvents=!1,this.publicationDeferralDepth=0,this.discardDeferredPublications=!1,this.deferredStateRevision=0,this.deferredLayoutRevision=0,this.deferredPublications=[],this.layoutChangeListeners=new Set,this.stateRevision=0,this.layoutRevision=0}setDeps(e){this.lifecycle=e.lifecycle,this.sync=e.sync,this.events=e.events,this.collection=e.collection,this.state=e.state}emitEmptyReadyEvent(){gC(()=>{try{cC([...this.changeSubscriptions].map(e=>()=>e.emitEvents([])))}catch(e){hC(e)}})}enrichChangeWithVirtualProps(e){return this.state.enrichChangeMessage(e)}emitEvents(e,t=!1,n=!1){if(e.length>0&&this.stateRevision++,n&&this.layoutRevision++,this.shouldBatchEvents&&!t){this.batchedEvents.push(...e);return}let r=e;if(t){if(this.batchedEvents.length>0){let t=new Map(this.batchedEvents.map(e=>[e.key,e]));for(let n of e){let e=t.get(n.key);t.set(n.key,e?.type===`delete`&&n.type===`insert`?{...n,type:`update`,previousValue:e.value}:n)}r=[...t.values()]}this.batchedEvents=[],this.shouldBatchEvents=!1}if(this.publicationDeferralDepth>0){this.deferredPublications.push({changes:r,layoutChanged:n});return}this.publishEvents(r,n)}deferPublication(){this.publicationDeferralDepth===0&&(this.deferredStateRevision=this.stateRevision,this.deferredLayoutRevision=this.layoutRevision),this.publicationDeferralDepth++;let e=!1,t=t=>{if(e||(e=!0,this.publicationDeferralDepth===0)||(this.discardDeferredPublications||=t,this.publicationDeferralDepth--,this.publicationDeferralDepth>0))return;let n=this.deferredPublications;if(this.deferredPublications=[],this.discardDeferredPublications){this.discardDeferredPublications=!1,this.stateRevision=this.deferredStateRevision,this.layoutRevision=this.deferredLayoutRevision;return}this.publishEvents(n.flatMap(({changes:e})=>e),n.some(({layoutChanged:e})=>e))};return{publish:()=>t(!1),discard:()=>t(!0)}}publishEvents(e,t){if(e.length===0&&!t)return;let n=e.map(e=>this.enrichChangeWithVirtualProps(e)),r=[...this.layoutChangeListeners],i=[...this.changeSubscriptions];gC(()=>{let t=i.map(e=>()=>e.emitEvents(n));e.length===0&&t.unshift(...r);try{cC(t)}catch(e){hC(e)}})}subscribeLayoutChanges(e){return this.layoutChangeListeners.add(e),()=>this.layoutChangeListeners.delete(e)}subscribeChanges(e,t={}){if(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=bC(n(_C()))),this.addSubscriber();let a,o={closed:!1}
36;try{a=new KC(this.collection,e,{...r,whereExpression:i,onUnsubscribe:()=>{o.closed=!0,this.removeSubscriber(),a&&this.changeSubscriptions.delete(a)}}),t.onStatusChange&&a.on(`status:change`,t.onStatusChange),t.includeInitialState?a.requestSnapshot({trackLoadSubsetPromise:!1,orderBy:t.orderBy,limit:t.limit,onLoadSubsetResult:t.onLoadSubsetResult}):t.includeInitialState===!1&&a.markAllStateAsSeen(),o.closed||this.changeSubscriptions.add(a)}catch(e){if(a)try{a.unsubscribe()}catch{}else this.removeSubscriber();throw e}return a}addSubscriber(){let e=this.activeSubscribersCount;this.activeSubscribersCount++,this.lifecycle.cancelGCTimer();try{(this.lifecycle.status===`cleaned-up`||this.lifecycle.status===`idle`)&&this.sync.startSync()}catch(t){throw this.activeSubscribersCount=e,this.activeSubscribersCount===0&&this.lifecycle.startGCTimer(),t}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 jv;this.events.emitSubscribersChange(this.activeSubscribersCount,e)}cleanup(){this.stateRevision++,this.batchedEvents=[],this.shouldBatchEvents=!1,this.deferredPublications=[],this.publicationDeferralDepth=0}},JC=e=>setTimeout(()=>{e({didTimeout:!0,timeRemaining:()=>50})},0),YC=e=>{clearTimeout(e)},XC=typeof window<`u`&&`requestIdleCallback`in window?(e,t)=>window.requestIdleCallback(e,t):(e,t)=>JC(e),ZC=typeof window<`u`&&`cancelIdleCallback`in window?e=>window.cancelIdleCallback(e):YC,QC=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),this.tasks.size===0&&this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}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),typeof this.timeoutId==`object`&&this.timeoutId.unref()}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()}};QC.instance=null;var $C=QC,ew=50,tw=class{constructor(e,t,n=()=>{}){this.status=`idle`,this.hasBeenReady=!1,this.hasReceivedFirstCommit=!1,this.onFirstReadyCallbacks=[],this.idleCallbackId=null,this.statusRevision=0,this.cleaningUp=!1,this.config=e,this.id=t,this.cleanupConfig=n}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:[`ready`,`cleaned-up`,`idle`],"cleaned-up":[`loading`,`error`]}[e].includes(t))throw new kv(e,t,this.id)}setStatus(e,t=!1){if(e===`ready`&&!t)throw new Dv(`You can't directly call "setStatus('ready'). You must use markReady instead.`);this.validateStatusTransition(this.status,e);let n=++this.statusRevision,r=this.status;this.status=e,this.events.emitStatusChange(e,r,()=>this.statusRevision===n)}validateCollectionUsable(e){switch(this.status){case`error`:throw new Ov(e,this.id);case`cleaned-up`:this.sync.startSync();break}}markReady(){let e=this.applyReadyTransition();if(e)throw e.error}markReadyDuringSyncStart(){return this.applyReadyTransition()}applyReadyTransition(){if(this.validateStatusTransition(this.status,`ready`),this.status===`loading`||this.status===`error`){this.syncError=void 0;let e=this.statusRevision+1;if(this.setStatus(`ready`,!0),this.status!==`ready`||this.statusRevision!==e)return;let t=[];this.hasBeenReady||(this.hasBeenReady=!0,this.hasReceivedFirstCommit||=!0,t.push(...this.onFirstReadyCallbacks),this.onFirstReadyCallbacks=[]),t.push(()=>this.changes.emitEmptyReadyEvent());try{cC(t)}catch(e){return{error:e}}}}markError(e){this.validateStatusTransition(this.status,`error`),this.syncError=e,this.setStatus(`error`)}getSyncError(){return this.syncError}assertCanStartSync(){if(this.cleaningUp)throw new Dv(`Cannot start collection "${this.id}" during cleanup. Restart after cleanup() completes.`)}startGCTimerIfUnsubscribed(){this.startGCTimer(ew)}canGarbageCollect(){return!this.cleaningUp&&this.changes.activeSubscribersCount===0&&!this.sync.hasPendingPreload}startGCTimer(e=0){if(!this.canGarbageCollect())return;let t=this.config.gcTime??3e5;t<=0||!Number.isFinite(t)||$C.getInstance().schedule(this,Math.max(t,e),()=>{this.canGarbageCollect()&&this.scheduleIdleCleanup()})}cancelGCTimer(){$C.getInstance().cancel(this),this.idleCallbackId!==null&&(ZC(this.idleCallbackId),this.idleCallbackId=null)}scheduleIdleCleanup(){this.idleCallbackId!==null&&ZC(this.idleCallbackId),this.idleCallbackId=XC(e=>{this.canGarbageCollect()?this.performCleanup(e)&&(this.idleCallbackId=null):this.idleCallbackId=null},{timeout:1e3})}performCleanup(e){if(this.cleaningUp)return!0;
36if(!e||e.timeRemaining()>0||e.didTimeout){this.cleaningUp=!0;try{this.cleanupConfig(),this.sync.cleanup(),this.state.cleanup(),this.changes.cleanup(),this.indexes.cleanup(),$C.getInstance().cancel(this),this.hasBeenReady=!1,this.syncError=void 0,this.onFirstReadyCallbacks=[]}finally{this.cleaningUp=!1}return this.setStatus(`cleaned-up`),this.changes.activeSubscribersCount===0&&this.events.cleanup(),!0}else return this.scheduleIdleCleanup(),!1}onFirstReady(e){return this.hasBeenReady?(e(),()=>{}):(this.onFirstReadyCallbacks.push(e),()=>{let t=this.onFirstReadyCallbacks.indexOf(e);t!==-1&&this.onFirstReadyCallbacks.splice(t,1)})}cleanup(){this.idleCallbackId!==null&&(ZC(this.idleCallbackId),this.idleCallbackId=null),this.performCleanup()}},nw=Symbol(`liveQueryInternal`),rw=class{constructor(e,t){this.preloadPromise=null,this.syncCleanupFn=null,this.syncLoadSubsetFn=null,this.syncUnloadSubsetFn=null,this.pendingLoadSubsetPromises=new Set,this.loadSubsetOperations=new Set,this.syncStartDeferred=!1,this.syncStartRequested=!1,this.deferredLoadSubsets=[],this.syncEpoch=0,this.loadSubsetSession=0,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}markLayoutChange(){this.getActivePendingSyncTransaction().layoutChanged=!0}startSync(){if(this.lifecycle.assertCanStartSync(),this.lifecycle.status!==`idle`&&this.lifecycle.status!==`cleaned-up`)return;if(this.syncStartDeferred){this.syncStartRequested=!0;return}let e=++this.syncEpoch,t=()=>e===this.syncEpoch;if(this.lifecycle.setStatus(`loading`),!t())return;let n=!0,r;try{let e=iw(this.config.sync.sync({collection:this.collection,begin:e=>{if(!t())return;let n=UC();n.promise.catch(()=>void 0),this.state.pendingSyncedTransactions.push({committed:!1,applicationStarted:!1,layoutChanged:!1,operations:[],deletedKeys:new Set,rowMetadataWrites:new Map,collectionMetadataWrites:new Map,immediate:e?.immediate,applied:n})},write:e=>{if(!t())return;let n=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!n)throw new ey;if(n.committed)throw new ty;let r;r=`key`in e?e.key:this.config.getKey(e.value);let i=e.type;if(e.type===`insert`){let t=this.state.syncedData.has(r),a=n.deletedKeys.has(r),o=n.truncate===!0;if(t&&!a&&!o){let t=this.state.syncedData.get(r);if(t!==void 0&&tb(t,e.value)||this.state.hydrationSeedKeys.has(r))i=`update`;else{let e=this.config.utils?.[nw];throw new Lv(r,this.id,{hasCustomGetKey:e?.hasCustomGetKey??!1,hasJoins:e?.hasJoins??!1,hasDistinct:e?.hasDistinct??!1})}}}let a={...e,type:i,key:r};n.operations.push(a),i===`delete`?(n.deletedKeys.add(r),n.rowMetadataWrites.set(r,{type:`delete`})):i===`insert`?a.metadata===void 0?n.rowMetadataWrites.set(r,{type:`delete`}):n.rowMetadataWrites.set(r,{type:`set`,value:a.metadata}):a.metadata!==void 0&&n.rowMetadataWrites.set(r,{type:`set`,value:a.metadata})},commit:e=>{if(!t())return!0;let n=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!n)throw new ny;if(n.committed)throw new ry;if(e?.aborted)return this.state.cancelPendingSyncedTransaction(n),n.applied.promise;n.committed=!0;let r=()=>{this.state.cancelPendingSyncedTransaction(n)};if(e?.addEventListener(`abort`,r,{once:!0}),this.state.commitPendingTransactions(),!n.applied.isPending())return e?.removeEventListener(`abort`,r),!0;let i=n.applied.promise;if(e){let t=()=>{e.removeEventListener(`abort`,r)};i.then(t,t)}return i},markReady:()=>{t()&&(n?r??=this.lifecycle.markReadyDuringSyncStart():this.lifecycle.markReady())},markError:e=>{t()&&this.lifecycle.markError(e)},truncate:()=>{if(!t())return;let e=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!e)throw new ey;if(e.committed)throw new ty;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(t)}));if(n=!1,!t()){if(e?.cleanup?.(),r)throw r.error;return}if(this.syncCleanupFn=e?.cleanup??null,this.syncLoadSubsetFn=e?.loadSubset??null,this.syncUnloadSubsetFn=e?.unloadSubset??null,this.syncMode===`on-demand`&&!this.syncLoadSubsetFn)throw new Sv(`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".`);this.lifecycle.startGCTimerIfUnsubscribed()}catch(e){throw n=!1,t()&&this.lifecycle.markError(e),e}if(r)throw r.error}deferStart(){return this.lifecycle.status!==`idle`&&this.lifecycle.status!==`cleaned-up`?!1:(this.syncStartDeferred=!0,!0)}
36resumeStart(){if(!this.syncStartDeferred)return;this.syncStartDeferred=!1;let e=this.syncStartRequested||this.deferredLoadSubsets.length>0;this.syncStartRequested=!1;let t=this.deferredLoadSubsets;this.deferredLoadSubsets=[];let n=this.loadSubsetSession;try{e&&this.startSync()}catch(e){for(let{deferred:n}of t)n.reject(e);throw e}for(let{options:e,deferred:r}of t){let t=this.syncLoadSubsetFn;try{if(n!==this.loadSubsetSession||e.signal?.aborted)throw new Yy;let i=t?.(e)??!0;i instanceof Promise?i.then(e=>r.resolve(e),e=>r.reject(e)):r.resolve(void 0)}catch(e){r.reject(e)}}}getActivePendingSyncTransaction(){let e=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!e)throw new ey;if(e.committed)throw new ty;return e}createSyncMetadataApi(e){return{row:{get:t=>{if(!e())return;let n=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1],r=n?.rowMetadataWrites.get(t);if(r)return r.type===`delete`?void 0:r.value;if(!n?.truncate)return this.state.syncedMetadata.get(t)},set:(t,n)=>{e()&&this.getActivePendingSyncTransaction().rowMetadataWrites.set(t,{type:`set`,value:n})},delete:t=>{e()&&this.getActivePendingSyncTransaction().rowMetadataWrites.set(t,{type:`delete`})}},collection:{get:t=>{if(!e())return;let n=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1]?.collectionMetadataWrites.get(t);return n?n.type===`delete`?void 0:n.value:this.state.syncedCollectionMetadata.get(t)},set:(t,n)=>{e()&&this.getActivePendingSyncTransaction().collectionMetadataWrites.set(t,{type:`set`,value:n})},delete:t=>{e()&&this.getActivePendingSyncTransaction().collectionMetadataWrites.set(t,{type:`delete`})},list:t=>{if(!e())return[];let n=new Map(this.state.syncedCollectionMetadata),r=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(r)for(let[e,t]of r.collectionMetadataWrites)t.type===`delete`?n.delete(e):n.set(e,t.value);return Array.from(n.entries()).filter(([e])=>t?e.startsWith(t):!0).map(([e,t])=>({key:e,value:t}))}}}}get hasPendingPreload(){return this.rejectPreload!==void 0}preload(){try{this.lifecycle.assertCanStartSync()}catch(e){return Promise.reject(e)}if(this.lifecycle.status===`ready`&&(this.lifecycle.cancelGCTimer(),this.lifecycle.startGCTimerIfUnsubscribed()),this.preloadPromise)return 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.`);let e=new Promise((e,t)=>{if(this.lifecycle.status===`ready`){e();return}if(this.lifecycle.status===`error`){t(this.getPreloadError());return}let n=!1,r={active:!1,ready:!1},i=()=>{},a=()=>{},o=()=>{n=!0,i(),a(),this.rejectPreload===c&&(this.rejectPreload=void 0),this.lifecycle.startGCTimerIfUnsubscribed()},s=()=>
36{if(r.active){r.ready=!0;return}n||(o(),e())},c=e=>{n||(o(),t(e))};if(this.rejectPreload=c,this.lifecycle.cancelGCTimer(),a=this.lifecycle.onFirstReady(s),i=this.collection.on(`status:error`,()=>{r.active||c(this.getPreloadError())}),this.lifecycle.status===`idle`||this.lifecycle.status===`cleaned-up`){r.active=!0;let e;try{this.startSync()}catch(t){e={error:t}}finally{r.active=!1}this.collection.status===`error`?c(this.getPreloadError()):r.ready?s():e&&c(e.error)}});return this.preloadPromise=e,e.then(void 0,()=>{this.preloadPromise===e&&(this.preloadPromise=null)}),e}getPreloadError(){let e=this.lifecycle.getSyncError();return e===void 0?new Av:e}get isLoadingSubset(){return this.pendingLoadSubsetPromises.size>0}beginLoadSubsetOperation(){let e=this.activeLoadSubsetOperation,t={pending:new Set,waiting:!1,completed:!1,hasError:!1};return this.activeLoadSubsetOperation=t,this.loadSubsetOperations.add(t),{wait:()=>this.waitForLoadSubsetOperation(t),cancel:()=>{t.completed=!0,this.loadSubsetOperations.delete(t),this.activeLoadSubsetOperation===t&&(this.activeLoadSubsetOperation=e?.completed?void 0:e)}}}waitForLoadSubsetOperation(e){return e.waiting=!0,e.pending.size===0?(e.completed=!0,this.loadSubsetOperations.delete(e),this.activeLoadSubsetOperation===e&&(this.activeLoadSubsetOperation=void 0),e.hasError?Promise.reject(e.error):!0):(e.deferred=UC(),e.deferred.promise)}
36settleLoadSubsetOperation(e,t,n){e.completed||(e.pending.delete(t),!n.ok&&!e.hasError&&(e.hasError=!0,e.error=n.error),!(!e.waiting||e.pending.size>0)&&queueMicrotask(()=>{e.completed||e.pending.size>0||(e.completed=!0,this.loadSubsetOperations.delete(e),this.activeLoadSubsetOperation===e&&(this.activeLoadSubsetOperation=void 0),e.hasError?e.deferred.reject(e.error):e.deferred.resolve())}))}trackLoadSubsetOperationPromise(e){let t=this.activeLoadSubsetOperation;!t||t.pending.has(e)||(t.pending.add(e),e.then(()=>this.settleLoadSubsetOperation(t,e,{ok:!0}),n=>this.settleLoadSubsetOperation(t,e,{ok:!1,error:n})))}trackLoadPromise(e){let t=this.loadSubsetSession,n=!this.isLoadingSubset;this.pendingLoadSubsetPromises.add(e),this.trackLoadSubsetOperationPromise(e),n&&this._events.emit(`loadingSubset:change`,{type:`loadingSubset:change`,collection:this.collection,isLoadingSubset:!0,previousIsLoadingSubset:!1,loadingSubsetTransition:`start`});let r=()=>{if(t!==this.loadSubsetSession)return;let n=this.pendingLoadSubsetPromises.size===1&&this.pendingLoadSubsetPromises.has(e);this.pendingLoadSubsetPromises.delete(e),n&&this._events.emit(`loadingSubset:change`,{type:`loadingSubset:change`,collection:this.collection,isLoadingSubset:!1,previousIsLoadingSubset:!0,loadingSubsetTransition:`end`})};e.then(r,r)}getLoadSubsetSession(){return this.loadSubsetSession}loadSubset(e){if(e.signal?.aborted)return Promise.reject(new Yy);if(this.syncMode===`eager`)return!0;if(this.syncStartDeferred){this.syncStartRequested=!0;let t=UC();return this.deferredLoadSubsets.push({options:e,deferred:t}),this.trackLoadPromise(t.promise),t.promise}if(this.syncLoadSubsetFn){let t=this.syncLoadSubsetFn(e);if(t instanceof Promise)return this.trackLoadPromise(t),t}return!0}unloadSubset(e){if(this.syncMode!==`eager`){if(this.syncStartDeferred){this.deferredLoadSubsets=this.deferredLoadSubsets.filter(t=>
36t.options===e?(t.deferred.reject(new Yy),!1):!0);return}this.syncUnloadSubsetFn&&this.syncUnloadSubsetFn(e)}}cleanup(){let e=++this.syncEpoch;this.loadSubsetSession++,this.rejectPreload?.(new Jy);let t=this.syncCleanupFn;this.syncCleanupFn=null,this.syncLoadSubsetFn=null,this.syncUnloadSubsetFn=null;try{t?.()}catch(n){this.syncEpoch===e&&(this.syncCleanupFn=t),queueMicrotask(()=>{if(n instanceof Error){let e=new Ky(this.id,n);throw e.cause=n,e.stack=n.stack,e}else throw new Ky(this.id,n)})}this.preloadPromise=null,this.syncStartDeferred=!1,this.syncStartRequested=!1;let n=this.pendingLoadSubsetPromises.size>0;this.pendingLoadSubsetPromises.clear(),n&&this._events.emit(`loadingSubset:change`,{type:`loadingSubset:change`,collection:this.collection,isLoadingSubset:!1,previousIsLoadingSubset:!0,loadingSubsetTransition:`end`}),this.activeLoadSubsetOperation=void 0;for(let e of this.loadSubsetOperations)e.completed||(e.completed=!0,e.pending.clear(),e.hasError=!0,e.error=new Yy,e.deferred?.reject(e.error));this.loadSubsetOperations.clear();let r=this.deferredLoadSubsets;this.deferredLoadSubsets=[];for(let e of r)e.deferred.reject(new Yy)}};function iw(e){if(typeof e==`function`)return{cleanup:e};if(typeof e==`object`)return e}var aw=1;function ow(e,t){return e===t?0:e<t?-1:1}function sw(e){return{kind:`constructor`,...e.name?{name:e.name}:{}}}function cw(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=>cw(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=>cw(e)??null).sort((e,t)=>ow(lw(e),lw(t)))};if(e instanceof Map)return{__type:`map`,entries:Array.from(e.entries()).map(([e,t])=>({key:cw(e)??null,value:cw(t)??null})).sort((e,t)=>ow(lw(e.key),lw(t.key)))};if(e instanceof RegExp)return{__type:`regexp`,value:e.toString()};let t={},n=Object.entries(e).sort(([e],[t])=>ow(e,t));for(let[e,r]of n){let n=cw(r);n!==void 0&&(t[e]=n)}return t}function lw(e){return e===null?`null`:Array.isArray(e)?`[${e.map(lw).join(`,`)}]`:typeof e==`object`?`{${Object.keys(e).sort((e,t)=>ow(e,t)).map(t=>`${JSON.stringify(t)}:${lw(e[t])}`).join(`,`)}}`:JSON.stringify(e)}function uw(e,t,n,r,i){let a=sw(r),o=cw(t)??null,s=cw(i);return{signatureVersion:aw,signature:lw(cw({signatureVersion:aw,expression:o,options:s??null})??null),indexId:e,name:n,expression:t,resolver:a,...s===void 0?{}:{options:s}}}function dw(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>dw(e));let t={};for(let[n,r]of Object.entries(e))t[n]=dw(r);return t}function fw(e){return JSON.parse(JSON.stringify(e))}var pw=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=bC(e(_C())),i=t.indexType??this.defaultIndexType;if(!i)throw new Sv(`No index type specified and no defaultIndexType set on collection. Either pass indexType in config, or set defaultIndexType on the collection: 37 import { BasicIndex } from '@tanstack/db' 38 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=uw(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)=>e.indexId-t.indexId).map(e=>({...e,expression:fw(e.expression),resolver:{...e.resolver},...e.options===void 0?{}:{options:dw(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()}},mw=new WeakMap;function hw(e,t,n){if(t!==`__proto__`){e[t]=n;return}Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})}function gw(e){return typeof e==`object`&&e?mw.get(e)??e:e}var _w=new Set([`find`,`findLast`,`findIndex`,`findLastIndex`,`filter`,`map`,`flatMap`,`forEach`,`some`,`every`,`reduce`,`reduceRight`]),vw=new Set([`pop`,`push`,`shift`,`unshift`,`splice`,`sort`,`reverse`,`fill`,`copyWithin`]),yw=new Set([`entries`,`keys`,`values`,`forEach`]);function bw(e){return typeof e==`object`&&!!e&&!(e instanceof Date)&&!(e instanceof RegExp)&&!ab(e)}function xw(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(bw(i)){let{proxy:n}=t(i,{tracker:e,prop:String(r)});a=n}return r++,{done:!1,value:a}},[Symbol.iterator](){return this}}}}function Sw(e,t,n){return function(...r){let i=e.apply(t.copy_,r);return n(t),i}}function Cw(e,t,n,r,i){if(!(!yw.has(e)&&t!==Symbol.iterator))return(...a)=>{let o=n.copy_,s=o instanceof Map;if(s&&e===`keys`)return o.keys();let c=e=>bw(e)?i(e,{tracker:n,prop:``,retainIdentity:!0}).proxy:e;if(e===`forEach`){let e=a[0];if(typeof e!=`function`)throw TypeError(`forEach callback must be a function`);return o.forEach((t,n)=>{let i=c(t);e.call(a[1],i,s?n:i,r)})}let l=o.entries(),u=e===`entries`||s&&t===Symbol.iterator;return{next(){let e=l.next();if(e.done)return e;let[t,n]=e.value,r=c(n);return{done:!1,value:u?[s?t:r,r]:r}},[Symbol.iterator](){return this}}}}function ww(e,t=new WeakMap,n=!1){if(e=gw(e),typeof e!=`object`||!e)return e;if(t.has(e))return t.get(e);if(e instanceof Date){let n=new Date(e.getTime());return t.set(e,n),n}if(e instanceof RegExp){let n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,t.set(e,n),n}if(e instanceof URL){let n=new URL(e.href);return t.set(e,n),n}if(Array.isArray(e)){let r=Array(e.length);return t.set(e,r),e.forEach((e,i)=>{r[i]=ww(e,t,n)}),r}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 r=new Map;return t.set(e,r),e.forEach((e,i)=>{r.set(i,ww(e,t,n))}),r}if(e instanceof Set){let r=new Set;
38return t.set(e,r),e.forEach(e=>{r.add(ww(e,t,n))}),r}if(ab(e))return e;if(n){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e}let r={};t.set(e,r);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&hw(r,i,ww(e[i],t,n));let i=Object.getOwnPropertySymbols(e);for(let a of i)r[a]=ww(e[a],t,n);return r}function Tw(e,t,n=new Map){if(e===t)return!0;if(e===null||t===null||typeof e!=`object`||typeof t!=`object`)return tb(e,t);if(n.has(e))return n.get(e)===t;n.set(e,t);try{if(e instanceof Set||t instanceof Set){if(!(e instanceof Set)||!(t instanceof Set)||e.size!==t.size)return!1;let r=[...t];return[...e].every((e,t)=>Tw(e,r[t],n))}if(e instanceof RegExp||t instanceof RegExp)return e instanceof RegExp&&t instanceof RegExp&&tb(e,t)&&e.lastIndex===t.lastIndex;if(e instanceof Map||t instanceof Map){if(!(e instanceof Map)||!(t instanceof Map)||e.size!==t.size)return!1;let r=[...t];return[...e].every(([e,t],i)=>(e===r[i][0]||Object.is(e,r[i][0]))&&Tw(t,r[i][1],n))}if(e instanceof Date||t instanceof Date||ArrayBuffer.isView(e)||ArrayBuffer.isView(t)||ab(e)||ab(t))return tb(e,t);if(Array.isArray(e)!==Array.isArray(t)||Array.isArray(e)&&e.length!==t.length)return!1;let r=e=>Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t)),i=r(e);return i.length===r(t).length?i.every(r=>Object.prototype.propertyIsEnumerable.call(t,r)&&Tw(e[r],t[r],n)):!1}finally{n.delete(e)}}function Ew(e,t){let n=new Map;function r(e,t){if(n.has(e))return n.get(e);{let r=Ew(e,t);return n.set(e,r),r}}let i=new Map,a=t?.tracker.valueCopies??new WeakMap,o={valueCopies:a,copy_:t?a.get(e)??e:ww(e,a),originalObject:ww(e),modified:!1,assigned_:Object.create(null),parent:t,target:e};function s(e){e.modified||=!0,e.parent&&(!e.parent.retainIdentity&&e.parent.tracker.copy_[e.parent.prop]===e.copy_&&(e.parent.tracker.assigned_[e.parent.prop]=!0),s(e.parent.tracker))}function c(e){if(e.copy_ instanceof Map||e.copy_ instanceof Set)return Tw(Array.from(e.copy_),Array.from(e.originalObject));if(Object.keys(e.assigned_).length===0&&Object.getOwnPropertySymbols(e.assigned_).length===0)return!0;for(let t in e.assigned_)if(e.assigned_[t]===!0){let n=e.copy_[t],r=e.originalObject[t];if(!Tw(n,r))return!1}else if(e.assigned_[t]===!1)return!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(!Tw(t,r))return!1}else if(e.assigned_[n]===!1)return!1;return!0}function l(e){c(e)&&(e.modified=!1,e.assigned_=Object.create(null),e.parent&&l(e.parent.tracker))}function u(e){if(i.has(e))return i.get(e);let n=new Proxy(e,{get(e,t,n){let c=o.copy_[t];if(Object.getOwnPropertyDescriptor(e,t)?.get)return c;if(typeof c==`function`){if(Array.isArray(e)){let e=t.toString();if(vw.has(e))return Sw(c,o,s);if(_w.has(e)||e===`values`||e===`entries`)return c.bind(n);if(t===Symbol.iterator)return xw(o,r)}if(e instanceof Map||e instanceof Set){let i=t.toString(),l=e=>{let t=gw(e);return typeof t==`object`&&t?a.get(t)??t:t};if(i===`has`||i===`delete`||i===`add`||i===`set`)return(...t)=>{e instanceof Set?t[0]=l(t[0]):i===`set`&&(t[1]=l(t[1]));let r=c.apply(e,t);return i!==`has`&&s(o),r===e?n:r};if(e instanceof Map&&i===`get`)return t=>{let n=e.get(t);return bw(n)?r(n,{tracker:o,prop:``,retainIdentity:!0}).proxy:n};if(i===`clear`)return Sw(c,o,s);let u=Cw(i,t,o,n,r);if(u)return u}return c.bind(e)}if(bw(c)){let{proxy:e}=r(c,{tracker:o,prop:String(t)});return i.set(c,e),e}return c},set(e,n,r){let i=o.copy_[n];if(!Object.hasOwn(o.copy_,n)||!Tw(i,r)){let e=o.originalObject[n];Object.hasOwn(o.originalObject,n)&&Tw(r,e)?(delete o.assigned_[n.toString()],o.copy_[n]=ww(e),c(o)?(o.modified=!1,o.assigned_=Object.create(null),t&&l(t.tracker)):o.modified=!0):(o.copy_[n]=r,o.assigned_[n.toString()]=!0,s(o))}return!0},defineProperty(e,t,n){let r=Reflect.defineProperty(e,t,n);return r&&`value`in n&&(o.copy_[t]=ww(n.value),o.assigned_[t.toString()]=!0,s(o)),r},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)},preventExtensions(e){return Reflect.preventExtensions(e)},isExtensible(e){return Reflect.isExtensible(e)},deleteProperty(e,t){let n=typeof t==`symbol`?t.toString():t;if(Object.hasOwn(e,t)){let r=Object.hasOwn(o.originalObject,t),i=Reflect.deleteProperty(e,t);return i&&(r?(o.assigned_[n]=!1,s(o)):(delete o.assigned_[n],Object.keys(o.assigned_).length===0&&Object.getOwnPropertySymbols(o.assigned_).length===0?o.modified=!1:o.modified=!0)),i}return!0}});return i.set(e,n),mw.set(n,o.copy_),n}return{proxy:u(o.copy_),getChanges:()=>
38{if(!o.modified)return{};if(typeof o.copy_!=`object`||Array.isArray(o.copy_)||Object.keys(o.assigned_).length===0)return o.copy_;let e={},t=Object.keys(o.assigned_).some(e=>typeof o.copy_[e]==`object`||typeof o.originalObject[e]==`object`),n=new Map([[o.copy_,o.originalObject]]);for(let r in o.copy_){let i=o.copy_[r],a=o.originalObject[r];(o.assigned_[r]===!0||t&&!Tw(i instanceof Set?Array.from(i):i,a instanceof Set?Array.from(a):a,n))&&r in o.copy_&&hw(e,r,o.copy_[r])}for(let t of Object.keys(o.assigned_))o.assigned_[t]===!1&&hw(e,t,void 0);return e}}}function Dw(e){let t=e.map(e=>Ew(e));return{proxies:t.map(e=>e.proxy),getChanges:()=>t.map(e=>e.getChanges())}}function Ow(e,t){let{proxy:n,getChanges:r}=Ew(e);return t(n),ww(r(),void 0,!0)}function kw(e,t){let{proxies:n,getChanges:r}=Dw(e);return t(n),ww(r(),void 0,!0)}var Aw=new class{constructor(){this.transactions=[],this.transactionStack=[],this.sequenceNumber=0}createTransaction(e){let t=new Rw(e,this,this.sequenceNumber++);return this.transactions.push(t),t}getActiveTransaction(){return this.transactionStack.at(-1)}getActiveTransactionForCollection(){let e=this.getActiveTransaction();if(e)return e;if(this!==Aw)return Aw.claimActiveTransaction(this)}claimActiveTransaction(e){let t=this.getActiveTransaction();if(!t)return;let n=Nw(t);if(n===e)return t;if(n!==this)throw Error(`A transaction created with createTransaction() cannot mutate collections from multiple DbClient instances. Use dbClient.createTransaction() for explicit client scope.`);return this.removeTransaction(t),e.transactions.push(t),e.transactionStack.push(t),t.sequenceNumber=e.sequenceNumber++,jw.set(t,e),t}registerTransaction(e){uC.clear(e.id),this.transactionStack.push(e)}unregisterTransaction(e){try{uC.flush(e.id)}finally{this.transactionStack=this.transactionStack.filter(t=>t.id!==e.id)}}removeTransaction(e){let t=this.transactions.findIndex(t=>t.id===e.id);t!==-1&&this.transactions.splice(t,1)}rollbackConflictingTransactions(e,t){for(let n of[...this.transactions])n!==e&&n.state===`pending`&&n.mutations.some(e=>t.has(e.globalKey))&&n.rollback({isSecondaryRollback:!0})}clear(){let e=new Set([...this.transactions.map(e=>e.id),...this.transactionStack.map(e=>e.id)]);for(let t of e)uC.clear(t);this.transactions=[],this.transactionStack=[]}},jw=new WeakMap,Mw=new WeakMap;function Nw(e){let t=jw.get(e);if(!t)throw Error(`Transaction is not associated with a TransactionScope.`);return t}function Pw(e){let t=Mw.get(e);if(!t)throw Error(`Transaction is not associated with an ambient scope.`);return t}function Fw(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 Iw(e){return Aw.createTransaction(e)}function Lw(){return Aw.getActiveTransaction()}var Rw=class{constructor(e,t,n){if(e.mutationFn===void 0)throw new Yv;this.id=e.id??yv(),this.mutationFn=e.mutationFn,this.state=`pending`,this.mutations=[],this.isPersisted=UC(),this.autoCommit=e.autoCommit??!0,this.createdAt=new Date,this.sequenceNumber=n,this.metadata=e.metadata??{},jw.set(this,t),Mw.set(this,t)}setState(e){this.state=e,(e===`completed`||e===`failed`)&&Nw(this).removeTransaction(this)}mutate(e){if(this.state!==`pending`)throw new Zv;let t=Nw(this),n=new Set([t,Pw(this)]);for(let e of n)e.registerTransaction(this);try{e()}finally{n.add(Nw(this));for(let e of n)e.unregisterTransaction(this)}return this.autoCommit&&this.commit().catch(()=>{}),this}applyMutations(e){let t=new Map;for(let e of this.mutations)t.set(e.globalKey,e);for(let n of e){let e=t.get(n.globalKey);if(e){let r=Fw(e,n);r===null?t.delete(n.globalKey):t.set(n.globalKey,r)}else t.set(n.globalKey,n)}this.mutations.length=0;for(let e of t.values())this.mutations.push(e)}rollback(e){let t=e?.isSecondaryRollback??!1;if(this.state===`completed`)throw new Qv;if(this.state===`failed`)return this;if(this.setState(`failed`),!t){let e=new Set(this.mutations.map(e=>e.globalKey));Nw(this).rollbackConflictingTransactions(this,e)}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 $v;if(this.setState(`persisting`),this.mutations.length===0)return this.setState(`completed`),this.isPersisted.resolve(this),this;try{await this.mutationFn({transaction:this})}catch(e){if(this.state!==`persisting`)return this;let t=HC(e);throw this.error={message:t.message,error:t},this.rollback(),t}if(this.state!==`persisting`)return this;this.setState(`completed`);try{this.touchCollection()}finally{this.isPersisted.resolve(this)}return this}compareCreatedAt(e){let t=this.createdAt.getTime()-e.createdAt.getTime();return t===0?this.sequenceNumber-e.sequenceNumber:t}},zw=class{constructor(e,t){this.insert=(e,t)=>{this.lifecycle.validateCollectionUsable(`insert`);let n=this.state,r=this.getActiveTransaction();if(!r&&!this.config.onInsert)throw new Gv;let i=Array.isArray(e)?e:[e],a=[],o=new Set;
38if(i.forEach(e=>{let n=this.validateData(e,`insert`),r=this.config.getKey(n);if(this.state.has(r)||o.has(r))throw new Iv(r);o.add(r);let i=this.generateGlobalKey(r,e),s={mutationId:yv(),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=this.createTransaction({metadata:{[oC]:!0},mutationFn:async e=>await this.config.onInsert({transaction:e.transaction,collection:this.collection})});return e.applyMutations(a),this.markPendingLocalChanges(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=this.getActiveTransaction();if(!r&&!this.config.onDelete)throw new qv;if(Array.isArray(e)&&e.length===0)throw new Hv;let i=Array.isArray(e)?e:[e],a=[];for(let e of i){if(!this.state.has(e))throw new Uv(e);let r=this.generateGlobalKey(e,this.state.get(e)),i={mutationId:yv(),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=this.createTransaction({autoCommit:!0,metadata:{[oC]:!0},mutationFn:async e=>this.config.onDelete({transaction:e.transaction,collection:this.collection})});return o.applyMutations(a),this.markPendingLocalChanges(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}setTransactionScope(e){this.transactionScope=e}getActiveTransaction(){return this.transactionScope?this.transactionScope.getActiveTransactionForCollection():Lw()}createTransaction(e){return this.transactionScope?this.transactionScope.createTransaction(e):Iw(e)}ensureStandardSchema(e){if(e&&`~standard`in e)return e;throw new Tv}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={...i,...e},a=r[`~standard`].validate(n);if(a instanceof Promise)throw new Ev;if(`issues`in a&&a.issues)throw new xv(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 Ev;if(`issues`in i&&i.issues)throw new xv(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 Pv(t):new Fv(e,t);return`KEY::${this.id}/${e}`}markPendingLocalChanges(e){for(let t of e)this.state.pendingLocalChanges.add(t.key)}update(e,t,n){if(e===void 0)throw new Rv;let r=this.state;this.lifecycle.validateCollectionUsable(`update`);let i=this.getActiveTransaction();if(!i&&!this.config.onUpdate)throw new Kv;let a=Array.isArray(e),o=a?e:[e];if(a&&o.length===0)throw new zv;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 Bv(e);return t}),u;u=a?kw(l,s):[Ow(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={...i,...a},s=this.config.getKey(i),d=this.config.getKey(o);if(s!==d)throw new Vv(s,d);let f=this.generateGlobalKey(d,o);return{mutationId:yv(),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}}
38).filter(Boolean);if(d.length===0){let e=this.createTransaction({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=this.createTransaction({metadata:{[oC]:!0},mutationFn:async e=>this.config.onUpdate({transaction:e.transaction,collection:this.collection})});return f.applyMutations(d),this.markPendingLocalChanges(d),f.commit().catch(()=>void 0),r.transactions.set(f.id,f),r.scheduleTransactionCleanup(f),r.recomputeOptimisticState(!0),f}},Bw=class extends IC{constructor(){super()}setDeps(e){this.collection=e.collection}emit(e,t){this.emitInner(e,t)}emitStatusChange(e,t,n){if(this.emitInnerWhile(`status:change`,{type:`status:change`,collection:this.collection,previousStatus:t,status:e},n),!n())return;let r=`status:${e}`;this.emitInnerWhile(r,{type:r,collection:this.collection,previousStatus:t,status:e},n)}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()}},Vw=Symbol.for(`@tanstack/db.collectionSyncConfig.factory`),Hw=Symbol.for(`@tanstack/db.collectionSyncConfig.cleanup`);function Uw(e,t){let n=e[Vw];if(!n)return{sync:e,utilities:t};let r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));return{sync:n.call(e,r),utilities:r}}function Ww(e){let t=e[Hw];t?.()}function Gw(e){return new Kw(e)}var Kw=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 Cv;if(!e.sync)throw new wv;e.id?this.id=e.id:this.id=yv();let{sync:t,utilities:n}=Uw(e.sync,e.utils??{});if(this.config={...e,sync:t,autoIndex:e.autoIndex??`off`,utils:n},this.utils=n,this.config.autoIndex===`eager`&&!e.defaultIndexType)throw new Sv(`autoIndex: 'eager' requires defaultIndexType to be set. Import an index type and set it: 39 import { BasicIndex } from '@tanstack/db' 40 createCollection({ defaultIndexType: BasicIndex, autoIndex: 'eager', ... })`);Mg(this),this._changes=new qC,this._events=new Bw,this._indexes=new pw,this._lifecycle=new tw(this.config,this.id,()=>Ww(this.config.sync)),this._mutations=new zw(this.config,this.id),this._state=new sC(this.config),this._sync=new rw(this.config,this.id),this.comparisonOpts=qw(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}get _stateRevision(){return this._changes.stateRevision}get _layoutRevision(){return this._changes.layoutRevision}_subscribeLayoutChanges(e){return this._changes.subscribeLayoutChanges(e)}_markLayoutChange(){this._sync.markLayoutChange()}_deferPublication(){return this._changes.deferPublication()}onFirstReady(e){return this._lifecycle.onFirstReady(e)}isReady(){return this._lifecycle.status===`ready`}get isLoadingSubset(){return this._sync.isLoadingSubset}startSyncImmediate(){this._sync.startSync()}_setTransactionScope(e){this._mutations.setTransactionScope(e)}_hasHydratedKey(e){return this._state.hydratedKeys.has(e)}_deferSyncStart(){return this._sync.deferStart()}_resumeSyncStart(){this._sync.resumeStart()}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 eC(this,e)}
40subscribeChanges(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 qw(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`}}var Jw=Symbol.for(`@tanstack/db.collectionOptions`);function Yw(e){return typeof e==`object`&&!!e&&e[Jw]===!0}var Xw=new WeakMap;function Zw(e){return e.utils?.[nw]?.getBuilder?.()}function Qw(e,t){Xw.set(e,t)}function $w(e){return Xw.get(e)}function eT(e,t,n){let r=e.get(t);return r===void 0&&(r=n(),e.set(t,r)),r}function tT(e){if(e.from.type===`unionAll`)return{optimizedQuery:{...e,from:new wx(e.from.queries.map(e=>tT(e).optimizedQuery))},sourceWhereClauses:new Map};let t=nT(e),n=e,r,i=0;for(;i<10&&!tb(n,r);)r=n,n=aT(n),i++;return{optimizedQuery:sT(n),sourceWhereClauses:t}}function nT(e){let t=new Map;if(!e.where||e.where.length===0)return t;let n=mT(dT(e.where).map(e=>pT(e))),r=iT(e);for(let[i,a]of n.singleSource)rT(e,i)&&!r.has(i)&&t.set(i,a);return t}function rT(e,t){for(let n of Lx(e.from))if(n.alias===t)return n.type===`collectionRef`;if(e.join){for(let n of e.join)if(n.from.alias===t)return n.from.type===`collectionRef`}return!1}function iT(e){let t=new Set;if(e.join){let n=new Set(Lx(e.from).map(e=>e.alias));for(let r of e.join){let e=r.from.alias;if((r.type===`left`||r.type===`full`)&&t.add(e),r.type===`right`||r.type===`full`)for(let e of n)t.add(e);n.add(e)}}return t}function aT(e){return oT({...e,from:yT(e.from),join:e.join?.map(e=>({...e,from:e.from.type===`queryRef`?new Sx(aT(e.from.query),e.from.alias):e.from}))})}function oT(e){if(!e.where||e.where.length===0||e.from.type===`unionFrom`)return e;if(!e.join||e.join.length===0){if(e.where.length>1){let t=NT(dT(e.where));return{...e,where:[t]}}return e}let t=hT(e,mT(dT(e.where.filter(e=>!Fx(e))).map(e=>pT(e)))),n=e.where.filter(e=>Fx(e));return n.length>0&&(t.where=[...t.where||[],...n]),t}function sT(e){return{...e,from:cT(e.from),join:e.join?.map(e=>({...e,from:lT(e.from)}))}}function cT(e){if(e.type===`unionFrom`)return new Cx(e.sources.map(e=>cT(e)));if(e.type===`unionAll`)return new wx(e.queries.map(e=>sT(e)));if(e.type===`collectionRef`)return e;let t=sT(e.query);if(uT(t)){let n=cT(t.from);if(n.type===`collectionRef`)return new xx(n.collection,e.alias);if(n.type===`queryRef`)return new Sx(n.query,e.alias)}return new Sx(t,e.alias)}function lT(e){return cT(e)}function uT(e){return(!e.where||e.where.length===0)&&!e.select&&(!e.groupBy||e.groupBy.length===0)&&(!e.having||e.having.length===0)&&(!e.orderBy||e.orderBy.length===0)&&(!e.join||e.join.length===0)&&e.limit===void 0&&e.offset===void 0&&!e.fnSelect&&(!e.fnWhere||e.fnWhere.length===0)&&(!e.fnHaving||e.fnHaving.length===0)}function dT(e){let t=[];for(let n of e){let e=Nx(n);t.push(...fT(e))}return t}function fT(e){if(e.type===`func`&&e.name===`and`){let t=[];for(let n of e.args)t.push(...fT(n));return t}else return[e]}function pT(e){let t=new Set,n=!1;function r(e){switch(e.type){case`ref`:if(e.path&&e.path.length>0){let r=e.path[0];r&&(t.add(r),e.path.length===1&&(n=!0))}break;case`func`:e.args&&e.args.forEach(r);break;case`val`:break;case`agg`:e.args&&e.args.forEach(r);break}}return r(e),{expression:e,touchedSources:t,hasNamespaceOnlyRef:n}}function mT(e){let t=new Map,n=[];for(let r of e)if(r.touchedSources.size===1&&!r.hasNamespaceOnlyRef){let e=Array.from(r.touchedSources)[0];t.has(e)||t.set(e,[]),t.get(e).push(r.expression)}else(r.touchedSources.size>1||r.hasNamespaceOnlyRef)&&n.push(r.expression);let r=new Map;for(let[e,n]of t)r.set(e,NT(n));return{singleSource:r,multiSource:n.length>0?NT(n):void 0}}function hT(e,t){let n=new Set,r=iT(e),i=new Map;for(let[e,n]of t.singleSource)r.has(e)||i.set(e,n);let a=xT(e.from,i,n),o=e.join?e.join.map(e=>({...e,from:ST(e.from,i,n)})):void 0,s=[];t.multiSource&&s.push(t.multiSource);let c=r.size>0;for(let[e,r]of t.singleSource)n.has(e)?c&&s.push(Ix(r)):s.push(r);let l=s.length>1?[NT(s.flatMap(e=>fT(Nx(e))))]:s;return{select:e.select,groupBy:e.groupBy?[...e.groupBy]:void 0,having:e.having?[...e.having]:void 0,orderBy:e.orderBy?[...e.orderBy]:void 0,limit:e.limit,offset:e.offset,distinct:e.distinct,fnSelect:e.fnSelect,fnWhere:e.fnWhere?[...e.fnWhere]:void 0,fnHaving:e.fnHaving?[...e.fnHaving]:void 0,from:a,join:o,where:l.length>0?l:[]}}function gT(e){return{from:_T(e.from),select:e.select,join:e.join?e.
40join.map(e=>({type:e.type,left:e.left,right:e.right,from:vT(e.from)})):void 0,where:e.where?[...e.where]:void 0,groupBy:e.groupBy?[...e.groupBy]:void 0,having:e.having?[...e.having]:void 0,orderBy:e.orderBy?[...e.orderBy]:void 0,limit:e.limit,offset:e.offset,fnSelect:e.fnSelect,fnWhere:e.fnWhere?[...e.fnWhere]:void 0,fnHaving:e.fnHaving?[...e.fnHaving]:void 0}}function _T(e){return e.type===`collectionRef`?new xx(e.collection,e.alias):e.type===`queryRef`?new Sx(gT(e.query),e.alias):e.type===`unionAll`?new wx(e.queries.map(e=>gT(e))):new Cx(e.sources.map(e=>_T(e)))}function vT(e){return _T(e)}function yT(e){return e.type===`queryRef`?new Sx(aT(e.query),e.alias):e.type===`unionFrom`?new Cx(e.sources.map(e=>yT(e))):e.type===`unionAll`?new wx(e.queries.map(e=>aT(e))):e}function bT(e){return Lx(e.from)[0]?.alias}function xT(e,t,n){if(e.type===`unionFrom`)return new Cx(e.sources.map(e=>ST(e,t,n)));if(e.type===`unionAll`)return new wx(e.queries.map(e=>gT(e)));let r=t.get(e.alias);if(!r)return e.type===`collectionRef`?new xx(e.collection,e.alias):new Sx(gT(e.query),e.alias);if(e.type===`collectionRef`){let t={from:new xx(e.collection,e.alias),where:[r]};return n.add(e.alias),new Sx(t,e.alias)}if(!OT(e.query,r,e.alias)||MT(e.query,r,e.alias))return new Sx(gT(e.query),e.alias);let i=e.query.where||[],a={...gT(e.query),where:[...i,r]};return n.add(e.alias),new Sx(a,e.alias)}function ST(e,t,n){return xT(e,t,n)}function CT(e,t,n){return e.select?kT(e.select)||jT(e.select,t,n):!1}function wT(e){return e.groupBy&&e.groupBy.length>0}function TT(e){return e.having&&e.having.length>0}function ET(e){return e.orderBy&&e.orderBy.length>0&&(e.limit!==void 0||e.offset!==void 0)}function DT(e){return e.fnSelect||e.fnWhere&&e.fnWhere.length>0||e.fnHaving&&e.fnHaving.length>0}function OT(e,t,n){return!(CT(e,t,n)||wT(e)||TT(e)||ET(e)||DT(e))}function kT(e){for(let t of Object.values(e))if(typeof t==`object`){let e=t;if(e.type===`agg`||!(`type`in e)&&kT(e))return!0}return!1}function AT(e){let t=[];if(typeof e!=`object`||!e)return t;switch(e.type){case`ref`:t.push(e);break;case`func`:case`agg`:for(let n of e.args??[])t.push(...AT(n));break}return t}function jT(e,t,n){let r=new Set;for(let[t,n]of Object.entries(e))t.startsWith(`__SPREAD_SENTINEL__`)||n instanceof Tx||r.add(t);let i=AT(t);for(let e of i){let t=e.path;if(!Array.isArray(t)||t.length<2)continue;let i=t[0],a=t[1];if(i===n&&r.has(a))return!0}return!1}function MT(e,t,n){let r=AT(t);if(r.every(e=>e.path[0]!==n))return!1;if(e.fnSelect)return!0;let i=e.select;if(!i)return!1;for(let t of r){let r=t.path;if(r.length<2||r[0]!==n)continue;let a=i[r[1]];if(!a)continue;if(!(a instanceof Tx)||a.path.length<2)return!0;let[o,s]=a.path,c=bT(e);if(o!==n&&o!==c||s!==r[1])return!0}return!1}function NT(e){if(e.length===0)throw new Zy;return e.length===1?e[0]:new Dx(`and`,e)}var PT=Symbol(`bucketFacadeRef`),FT=0;function IT(e,t,n=!1){if(!e.includes?.length&&!(t&&n))return{pipeline:e.pipeline,facades:[]};let r=LT(e,t,new WeakMap,`root`);return{...r,facades:RT(r.facades)}}function LT(e,t,n,r){let i=n.get(e)?.[r];if(i)return i;let a=BT(zT(e.pipeline),t,r,e.valueIdentity),o=[];for(let t of e.includes??[]){let i=LT(t.childCompilationResult,void 0,n,`child`);o.push(...i.facades);let s=UT(i.pipeline,t.childCompilationResult.valueIdentity);
40if(t.materialization===`collection`){let n=`bucket-facade-${++FT}`,i=GT(a,t,e.valueIdentity),c=i.pipe(N_(s),a_(([e,[,t]])=>[e,t]));o.push({edgeId:n,rows:c,activeBuckets:i,hasOrderBy:t.hasOrderBy}),a=WT(a,t,n,r,e.valueIdentity)}else a=HT(a,s,t,r,e.valueIdentity)}let s={pipeline:a,facades:o};return n.set(e,{...n.get(e),[r]:s}),s}function RT(e){return[...new Map(e.map(e=>[e.edgeId,e])).values()]}function zT(e){return e.pipe(a_(([e,t])=>{let n=t;return[e,[n[0],n[1],n[2],n[3],n[0][rS],n[4]]]}))}function BT(e,t,n,r){return e.pipe(a_(([e,i])=>{let a=i,o=t?t(a[0]):a[5]??e;return[Jh(n===`root`?[`root`,o]:[JT(a[2],a[3],r),o]),{publicKey:o,tuple:a}]}),p_(e=>{let t=e.reduce((e,[,t])=>e+t,0);if(t===0)return[];if(t<0)throw Error(`Canonical query row has negative multiplicity`);let n=e.find(([,e])=>e>0)?.[0];if(!n)throw Error(`Canonical query row has no positive contributor`);for(let[t,r]of e)r<=0||VT(n,t);return[[n,1]]}),a_(([e,{publicKey:t,tuple:r}])=>[n===`root`?t:e,r]))}function VT(e,t){let[n,r,i,a,o]=e.tuple,[s,c,l,u,d]=t.tuple;if(r!==c||!tb(n,s)||!tb(i,l)||!tb(a,u)||!tb(o,d))throw Error(`Query contributors for public key ${Jh(e.publicKey)} are not congruent`)}function HT(e,t,n,r,i){let a=t.pipe(p_(e=>{let t=[];for(let[n,r]of e){if(r<0)throw Error(`Materialization bucket row has negative multiplicity`);for(let e=0;e<r;e++)t.push(n)}return t.length===0?[]:(t.sort(YT),[[{value:XT(t,n)},1]])}));return BT(e.pipe(a_(([e,t])=>{let r=t,a=qT(r,n.fieldName);return[a?.active===!0?JT(a.correlationKey,a.parentContext,i):`inactive:${Jh(e)}`,{parentKey:e,tuple:r}]}),N_(a,`left`),a_(([e,[t,r]])=>{let[i,a,o,s,c,l]=t.tuple;if(c?.[n.fieldName]?.active!==!0)return[t.parentKey,[i,a,o,s,c,l]];let u=r===null?ZT(n.materialization):r.value;return[t.parentKey,[QT(i,n.resultPath,u),a,o,s,c,l]]})),void 0,r,i)}function UT(e,t){return e.pipe(a_(([e,n])=>{let[r,i,a,o,,s]=n;return[JT(a,o,t),{publicKey:s??e,value:r,order:i}]}))}function WT(e,t,n,r,i){return BT(e.pipe(a_(([e,r])=>{let a=r,o=qT(a,t.fieldName);if(o?.active!==!0)return[e,a];let s=KT(n,JT(o.correlationKey,o.parentContext,i));return[e,[QT(a[0],t.resultPath,s),a[1],a[2],a[3],a[4],a[5]]]})),void 0,r,i)}function GT(e,t,n){return e.pipe(a_(([e,r])=>{let i=qT(r,t.fieldName);return[e,i?.active===!0?JT(i.correlationKey,i.parentContext,n):void 0]}),D_(([,e])=>e!==void 0),F_(([,e])=>e),a_(([,e])=>[e,!0]))}function KT(e,t){return{[PT]:{edgeId:e,bucketKey:t}}}function qT(e,t){return e[4]?.[t]}function JT(e,t,n){return Jh([n.equality(e??null),Zx(t??null)])}function YT(e,t){if(e.order!==t.order)return e.order===void 0?1:t.order===void 0||e.order<t.order?-1:1;if((typeof e.publicKey==`string`||typeof e.publicKey==`number`)&&(typeof t.publicKey==`string`||typeof t.publicKey==`number`))return qh(e.publicKey,t.publicKey);let n=Jh(e.publicKey),r=Jh(t.publicKey);return n<r?-1:+(n>r)}function XT(e,t){let n=t.scalarField,r=n?e.map(({value:e})=>e[n]):e.map(({value:e})=>e);return t.materialization===`array`?r:t.materialization===`singleton`?r[0]:r.map(e=>String(e??``)).join(``)}function ZT(e){if(e===`array`)return[];if(e===`concat`)return``;if(e!==`singleton`)throw Error(`Collection includes require a bucket facade`)}function QT(e,t,n){let r={...e},i=r,a=e;for(let e=0;e<t.length-1;e++){let n=t[e],r=a?.[n],o=Array.isArray(r)?[...r]:{...r??{}};i[n]=o,i=o,a=r}return i[t[t.length-1]]=n,r}function $T(e){return e._getQuery()}var eE=`unionAll clause`,tE=class e{constructor(e={},t){this.resolveCollection=t,this.query={},this.query={...e}}_clone(t){return new e(t,this.resolveCollection)}_createRefForSource(e,t){let n=this._createRefsForSource(e,t);if(n.length!==1)throw new ay(t);return n[0]}_createRefsForSource(t,n){if(typeof t==`string`)throw new cy(n,`string`);let r;try{r=Object.keys(t)}catch{throw new cy(n,t===null?`null`:`undefined`)}if(Array.isArray(t))throw new cy(n,`array`);if(r.length===0)throw new cy(n,`empty object`);if(n!==eE&&r.length!==1)throw new ay(n);let i=[];for(let a of r){let r=t[a],o;if(r instanceof Kw)o=new xx(r,a);else if(Yw(r)){if(!this.resolveCollection)throw Error(`Cannot use collection descriptor "${a}" as a query source without a DbClient resolver. In React, wrap your tree in <DbProvider>.`);o=new xx(this.resolveCollection(r),a)}else if(r instanceof e){let e=r._getQuery();if(!e.from)throw new oy(n);o=new Sx(e,a)}else throw new sy(a);i.push([a,o])}return i}from(e){let[,t]=this._createRefForSource(e,`from clause`);return this._clone({...this.query,from:t})}unionAll(t,...n){if(t instanceof e)return this._clone({...this.query,from:new wx([t,...n].map(e=>e._getQuery()))});let r=this._createRefsForSource(t,eE),i=r.length===1?r[0][1]:new Cx(r.map(e=>e[1]));return this._clone({...this.query,from:i})}join(e,t,n=`left`){let[r,i]=this._createRefForSource(e,`join clause`),a=t(vC([...this._getCurrentAliases(),r])),o,s;if(a.type===`func`&&a.name===`eq`&&a.args.length===2)o=a.args[0],s=a.args[1];else throw new ly;let c={from:i,type:n,left:o,right:s},l=this.query.join||[];return this._clone({...this.query,join:[...l,c]})}leftJoin(e,t){return this.join(e,t,`left`)}rightJoin(e,t){return this.join(e,t,`right`)}innerJoin(e,t){return this.join(e,t,`inner`)}fullJoin(e,t){return this.join(e,t,`full`)}where(e){let t=e(vC(this._getCurrentAliases())),n=xC(t)?bC(t):t;if(!jx(n))throw new dy(nE(n));let r=this.query.where||[];return this._clone({...this.query,where:[...r,n]})}having(e){let t=this._getCurrentAliases(),n=e(this.query.select||this.query.fnSelect?yC(t):vC(t)),r=xC(n)?bC(n):n;
40if(!jx(r))throw new dy(nE(r));let i=this.query.having||[];return this._clone({...this.query,having:[...i,r]})}select(e){let t=this._getCurrentAliases(),n=e(vC(t));xC(n)&&n.__path.length===1&&(n={[`__SPREAD_SENTINEL__${n.__path[0]}__0`]:!0});let r=aE(n,t);return this._clone({...this.query,select:r,fnSelect:void 0})}orderBy(e,t=`asc`){let n=this._getCurrentAliases(),r=e(this.query.select||this.query.fnSelect?yC(n):vC(n)),i=typeof t==`string`?{direction:t,nulls:`first`}:{direction:t.direction??`asc`,nulls:t.nulls??`first`,stringSort:t.stringSort,locale:t.stringSort===`locale`?t.locale:void 0,localeOptions:t.stringSort===`locale`?t.localeOptions:void 0},a=e=>({expression:bC(e),compareOptions:i}),o=Array.isArray(r)?r.map(e=>a(e)):[a(r)],s=this.query.orderBy||[];return this._clone({...this.query,orderBy:[...s,...o]})}groupBy(e){let t=e(vC(this._getCurrentAliases())),n=Array.isArray(t)?t.map(e=>bC(e)):[bC(t)],r=this.query.groupBy||[];return this._clone({...this.query,groupBy:[...r,...n]})}limit(e){return this._clone({...this.query,limit:e})}offset(e){return this._clone({...this.query,offset:e})}distinct(){return this._clone({...this.query,distinct:!0})}findOne(){return this._clone({...this.query,singleResult:!0})}_getCurrentAliases(){let e=[];
40if(this.query.from&&(this.query.from.type===`unionFrom`?e.push(...this.query.from.sources.map(e=>e.alias)):this.query.from.type===`unionAll`?e.push(`*`):e.push(this.query.from.alias)),this.query.join)for(let t of this.query.join)e.push(t.from.alias);return e}get fn(){let e=this;return{select(t){return e._clone({...e.query,select:void 0,fnSelect:t})},where(t){return e._clone({...e.query,fnWhere:[...e.query.fnWhere||[],t]})},having(t){return e._clone({...e.query,fnHaving:[...e.query.fnHaving||[],t]})}}}_getQuery(){if(!this.query.from)throw new uy;return this.query}};function nE(e){return e===null?`null`:e===void 0?`undefined`:typeof e==`object`?`object`:typeof e}function rE(e){return e===void 0?bC(null):e instanceof Ox||e instanceof Dx||e instanceof Tx||e instanceof Ex?e:bC(e)}function iE(e){return typeof e==`object`&&!!e&&!jx(e)&&!e.__refProxy}function aE(e,t=[],n){if(e instanceof tE){if(!n)throw Error(`Conditional include branch is missing a field name`);return pE(e,n,t,`collection`)}if(e instanceof MC){if(!(e.query instanceof tE))throw Error(`toArray() must wrap a subquery builder`);if(!n)throw Error(`Conditional toArray() branch is missing a field name`);return pE(e.query,n,t,`array`)}if(e instanceof NC){if(!(e.query instanceof tE))throw Error(`concat(toArray(...)) must wrap a subquery builder`);if(!n)throw Error(`Conditional concat(toArray(...)) branch is missing a field name`);return pE(e.query,n,t,`concat`)}if(e instanceof PC)return oE(e,t,n);if(!iE(e))return rE(e);let r={};for(let[n,i]of Object.entries(e)){if(typeof n==`string`&&n.startsWith(`__SPREAD_SENTINEL__`)){r[n]=i;continue}if(i instanceof tE){r[n]=pE(i,n,t,`collection`);continue}if(i instanceof MC){if(!(i.query instanceof tE))throw Error(`toArray() must wrap a subquery builder`);r[n]=pE(i.query,n,t,`array`);continue}if(i instanceof NC){if(!(i.query instanceof tE))throw Error(`concat(toArray(...)) must wrap a subquery builder`);r[n]=pE(i.query,n,t,`concat`);continue}if(i instanceof FC){if(!(i.query instanceof tE))throw Error(`materialize() must wrap a subquery builder`);let e=i.query._getQuery().singleResult?`singleton`:`array`;r[n]=pE(i.query,n,t,e);continue}if(i instanceof PC){r[n]=oE(i,t,n);continue}r[n]=aE(i,t,n)}return r}function oE(e,t,n){let r=e.args;if(r.length<2)throw Error(`caseWhen() requires at least two arguments`);let i=r.length%2==1,a=Math.floor(r.length/2),o=[];for(let e=0;e<a;e++)o.push({condition:bC(r[e*2]),value:aE(r[e*2+1],t,n)});return new Ax(o,i?aE(r[r.length-1],t,n):void 0)}function sE(e){let t=[];switch(e.type){case`ref`:t.push(e);break;case`func`:case`agg`:for(let n of e.args)t.push(...sE(n));break}return t}function cE(e){return e instanceof Tx||e instanceof Dx||e instanceof Ox?sE(e):e instanceof Ax?[...e.branches.flatMap(e=>[...sE(e.condition),...cE(e.value)]),...e.defaultValue===void 0?[]:cE(e.defaultValue)]:e instanceof kx?[e.correlationField,...e.parentProjection??[],...lE(e.query)]:iE(e)?Object.values(e).flatMap(cE):[]}function lE(e){let t=new Set(mE(e)),n=[],r=e=>{n.push(...sE(e))},i=e=>{r(typeof e==`object`&&`expression`in e?e.expression:e)};for(let t of e.where??[])i(t);for(let t of e.join??[])r(t.left),r(t.right),t.from.type===`queryRef`&&n.push(...lE(t.from.query));for(let t of e.groupBy??[])r(t);for(let t of e.having??[])i(t);for(let{expression:t}of e.orderBy??[])r(t);if(e.select&&n.push(...cE(e.select)),e.from.type===`queryRef`)n.push(...lE(e.from.query));else if(e.from.type===`unionFrom`)for(let t of e.from.sources)t.type===`queryRef`&&n.push(...lE(t.query));else if(e.from.type===`unionAll`)for(let t of e.from.queries)n.push(...lE(t));let a=new Set;return n.filter(e=>{let n=e.path.length>1?e.path[0]:void 0,r=e.path.join(`.`);return n==null||n===`$selected`||t.has(n)||a.has(r)?!1:(a.add(r),!0)})}function uE(e,t){let n=[],r=e=>{n.push(...sE(e))},i=e=>{r(typeof e==`object`&&`expression`in e?e.expression:e)};for(let t of e.where??[])i(t);for(let i of e.join??[])r(i.left),r(i.right),i.from.type===`queryRef`&&n.push(...uE(i.from.query,t));for(let t of e.groupBy??[])r(t);for(let t of e.having??[])i(t);for(let{expression:t}of e.orderBy??[])r(t);if(e.select&&n.push(...cE(e.select)),e.from.type===`queryRef`)n.push(...uE(e.from.query,t));else if(e.from.type===`unionFrom`)for(let r of e.from.sources)r.type===`queryRef`&&n.push(...uE(r.query,t));else if(e.from.type===`unionAll`)for(let r of e.from.queries)n.push(...uE(r,t));let a=new Set;return n.filter(e=>{let n=e.path.join(`.`);return e.path[0]==null||!t.includes(e.path[0])||a.has(n)?!1:(a.add(n),!0)})}function dE(e){return[...new Set(lE(e).map(e=>e.path[0]).filter(e=>e!==void 0))]}function fE(e,t){return sE(typeof e==`object`&&`expression`in e?e.expression:e).some(e=>e.path[0]!=null&&t.includes(e.path[0]))}function pE(e,t,n,r){let i=e._getQuery(),a=mE(i),o=[...new Set([...n,...dE(i)])],s,c,l=-1,u=-1;if(i.where)for(let e=0;e<i.where.length;e++){let t=i.where[e],n=typeof t==`object`&&`expression`in t?t.expression:t;if(n.type===`func`&&n.name===`eq`&&n.args.length===2){let t=gE(n.args[0],n.args[1],o,a);if(t){s=t.parentRef,c=t.childRef,l=e;break}}if(n.type===`func`&&n.name===`and`&&n.args.length>=2){for(let t=0;t<n.args.length;t++){let r=n.args[t];
40if(r.type===`func`&&r.name===`eq`&&r.args.length===2){let n=gE(r.args[0],r.args[1],o,a);if(n){s=n.parentRef,c=n.childRef,l=e,u=t;break}}}if(s)break}}if(!s||!c||l===-1)throw Error(`Includes subquery for "${t}" must have a WHERE clause with an eq() condition that correlates a parent field with a child field. Example: .where(({child}) => eq(child.parentId, parent.id))`);let d=[...i.where];if(u>=0){let e=d[l],t=(typeof e==`object`&&`expression`in e?e.expression:e).args.filter((e,t)=>t!==u);if(t.length===1)d[l]=typeof e==`object`&&`expression`in e&&e.residual?{expression:t[0],residual:!0}:t[0];else{let n=new Dx(`and`,t);d[l]=typeof e==`object`&&`expression`in e&&e.residual?{expression:n,residual:!0}:n}}else d.splice(l,1);let f=[],p=[];for(let e of d)fE(e,o)?p.push(e):f.push(e);let m=uE({...i,where:d},o),h=m.length>0?m:void 0,g={...i,where:f.length>0?f:void 0},_=g.select,v=_===void 0||iE(_),y=g,b;if(r===`concat`&&(_===void 0||v))throw Error(`concat(toArray(...)) for "${t}" requires the subquery to select a scalar value`);if(!v){if(r===`collection`)throw Error(`Includes subquery for "${t}" must select an object when materializing as a Collection`);b=vx,y={...g,select:{[b]:_}}}return new kx(y,s,c,t,p.length>0?p:void 0,h,r,b)}function mE(e){let t=new Set(hE(e.from));if(e.join)for(let n of e.join)t.add(n.from.alias);return[...t]}function hE(e){return e.type===`unionFrom`?e.sources.map(e=>e.alias):e.type===`unionAll`?e.queries.flatMap(e=>mE(e)):[e.alias]}function gE(e,t,n,r){if(e.type===`ref`&&t.type===`ref`){let i=e.path[0],a=t.path[0];if(i&&a&&n.includes(i)&&r.includes(a))return{parentRef:e,childRef:t};if(i&&a&&n.includes(a)&&r.includes(i))return{parentRef:t,childRef:e}}}function _E(e){return $T(e(new tE))}function vE(e,t,n,r,i,a){if(t.type===`unionFrom`)return xE(e,r);if(t.type===`queryRef`&&yE(t.query.from))return EE(bE(t.query,n,r));if(!i)return[];let o=DE(r);if(!o)return[];let s=zx(e,o,i);if(!s)return[];let c=s.alias||a[n]||n,l=wE(e,t,{alias:c,collection:s.collection});return l?[{sourceId:l.sourceId,alias:c,collection:s.collection,path:s.path}]:[]}function yE(e){return e.type===`unionFrom`?!0:e.type===`queryRef`?yE(e.query.from):e.type===`unionAll`?e.queries.some(e=>yE(e.from)):!1}function bE(e,t,n){if(!n||typeof n!=`object`||!(`type`in n))return[];let r=n;if(r.type===`func`&&r.name===`coalesce`)return EE(r.args.flatMap(n=>bE(e,t,n)));let i=DE(r);return!i||i.path[0]!==t?[]:SE(e,new Tx(i.path.slice(1)))}function xE(e,t){if(!t||typeof t!=`object`||!(`type`in t))return[];let n=t;return n.type===`ref`?SE(e,n):n.type===`func`&&n.name===`coalesce`?EE(n.args.flatMap(t=>xE(e,t))):[]}function SE(e,t){if(t.path.length===0)return[];if(t.path.length===1){let n=t.path[0],r=e.select?.[n];return r?xE(e,r):[]}let[n,...r]=t.path,i=CE(e,n);return i?i.type===`collectionRef`?[{sourceId:i.sourceId,alias:i.alias,collection:i.collection,path:r}]:i.query.limit||i.query.offset?[]:bE(i.query,i.alias,t):[]}function CE(e,t){if(e.join){for(let n of e.join)if(n.from.alias===t)return n.from}return Lx(e.from).find(e=>e.alias===t)}function wE(e,t,n){let r=TE(e,n.alias,n.collection);if(r)return r;if(t.type===`collectionRef`&&t.collection===n.collection&&t.alias===n.alias)return t}function TE(e,t,n){let r=[...Lx(e.from),...e.join?.map(e=>e.from)??[]];for(let e of r){if(e.type===`collectionRef`&&e.alias===t&&e.collection===n)return e;if(e.type===`queryRef`){let r=TE(e.query,t,n);if(r)return r}}if(e.from.type===`unionAll`)for(let r of e.from.queries){let e=TE(r,t,n);if(e)return e}}function EE(e){let t=new Set,n=[];for(let r of e){let e=`${r.sourceId}:${r.path.join(`.`)}`;t.has(e)||(t.add(e),n.push(r))}return n}function DE(e){if(e instanceof Tx)return e;if(e&&typeof e==`object`&&`type`in e&&e.type===`ref`&&Array.isArray(e.path))return new Tx(e.path)}var OE=`__tanstack_parent_route_cross__`;function kE(e,t,n){let r=e.pipe(a_(([e,t])=>[OE,[e,t]])),i=t.pipe(a_(([e,t])=>[OE,[e,t]]));return r.pipe(N_(i,`inner`),D_(([,[e,t]])=>e!=null&&t!=null),a_(([,[e,t]])=>{let[r,i]=e,[a,o]=t;return n(r,i,a,o)}))}var AE=0;function jE(e,t,n){return kE(e,t,(e,t,r,i)=>[Jh([n.equality(e),n.equality(r),Zx(i)]),oS({...t},r,i)])}function ME(e,t){let n=dS(t);
40if(n){let t=oS({[e]:n.value,[nS]:n.publicKey},n.correlationKey,n.parentContext);return n.parentContext!=null&&typeof n.parentContext==`object`&&Object.assign(t,Xx(n.parentContext)),t}if(typeof t!=`object`||!t)return{[e]:t};let r=sS(t),i=r?lS(t):t,a={[e]:i};return r?.parentContext!=null&&Object.assign(a,Xx(r.parentContext)),r&&oS(a,r.correlationKey,r.parentContext),a}function NE(e,t,n,r){let i=cS(e,t);return Jh([r.equality(i?.correlationKey),Zx(i?.parentContext??null),r.equality(n)])}function PE(e,t,n=new Set){let r={id:`lazy-demand-${++AE}`,path:t.path,collectionId:t.collection.id,initialKeys:new Set(n)},i=e[t.sourceId]??={};return(i.plans??=[]).push(r),r}function FE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=e;for(let e of t)S=IE(S,e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x);return S}function IE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=t.from.type===`collectionRef`,C=t.from.alias,w=[...Object.keys(n),C],{mainExpr:T,joinedExpr:E}=LE(t.left,t.right,w,C,m.from.type===`unionAll`),D=[...Bx(E)].some(e=>e!==C&&!n[e]),O=x!==void 0&&(t.from.type===`queryRef`||D),{alias:k,input:A,collectionId:j}=RE(t.from,a,c,l,u,d,f,p,o,s,h,g,_,v,b,O?x:void 0);if(k!==C)throw new Ay;n[C]=A,S&&(g[C]=j);let M=c[r],ee=c[j];if(!M)throw new Ey(r);if(!ee)throw new Ey(j);let N=VE(t.type,M,ee,y),P=O?void 0:N.activeSource,F=N.lazySource,I=Lb(T),L=Lb(E),te=e.pipe(a_(([e,t])=>{let n=Tb(I(t));return[O?NE(t,i,n,b):n,[e,t]]})),ne=A.pipe(a_(([e,t])=>{let n=ME(C,t),r=Tb(L(n));return[O?NE(n,C,r,b):r,[e,n]]}));if(![`inner`,`left`,`right`,`full`].includes(t.type))throw new Oy(t.type);if(P){let e=P===`main`?t.from:m.from,n=e.type===`queryRef`&&(e.query.limit||e.query.offset),r=e.type===`unionAll`?[]:vE(m,e,P===`main`?C:i,P===`main`?E:T,F,_);if(!n&&r.length>0){for(let e of r)d.add(e.sourceId);let e=r.map(e=>PE(u,e)),t=new Map,n=P===`main`?te:ne;for(let e of r){let t=e.path[0];t&&hx(t,e.path,e.collection)}let i=n.pipe(T_(n=>{for(let[[e],r]of n.getInner()){if(e==null)continue;let n=b.serializeEquality(e),i=(t.get(n)?.weight??0)+r;i===0?t.delete(n):t.set(n,{key:e,weight:i})}let i=new Set([...t.values()].filter(({weight:e})=>e>0).map(({key:e})=>e));for(let t=0;t<r.length;t++)u[r[t].sourceId]?.setDemand?.(e[t],i)}));P===`main`?te=i:ne=i}}return te.pipe(N_(ne,t.type),BE(t.type))}function LE(e,t,n,r,i=!1){let a=n.filter(e=>e!==r),o=Bx(e),s=Bx(t),c=o.has(r),l=s.has(r),u=[...o].filter(e=>a.includes(e)||i&&e!==r),d=[...s].filter(e=>a.includes(e)||i&&e!==r);if(u.length>0&&!c&&l&&d.length===0)return{mainExpr:e,joinedExpr:t};if(c&&u.length===0&&d.length>0&&!l)return{mainExpr:t,joinedExpr:e};throw o.size===0||s.size===0?new Ay:o.size===1&&s.size===1&&[...o][0]===[...s][0]?new ky([...o][0]):u.length===0?new jy([...o][0]):l?new Ny:new My(r)}function RE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){switch(e.type){case`collectionRef`:{let n=t[e.sourceId]??t[e.alias];if(!n)throw new by(e.alias,e.collection.id,Object.keys(t));return d[e.alias]=e.collection.id,{alias:e.alias,input:h?jE(n,h,m):n,collectionId:e.collection.id}}case`queryRef`:{let m=u(l.get(e.query)||e.query,t,n,r,i,a,o,s,c,l,h);Object.assign(d,m.aliasToCollectionId),Object.assign(f,m.aliasRemapping);let g=l.has(e.query),_=zE(e.query);if(!(!g&&_!==void 0&&e.alias===_))for(let[e,t]of m.sourceWhereClauses)p.set(e,t);let v=Object.keys(m.aliasToCollectionId).find(e=>m.aliasToCollectionId[e]===m.collectionId);v&&v!==e.alias&&(f[e.alias]=v);let y=m.pipeline.pipe(a_(e=>{let[t,[n,r,i,a,o]]=e;return h?[t,uS(n,i,a,o)]:[t,n]}));return{alias:e.alias,input:y,collectionId:m.collectionId}}default:throw new Py(e.type)}}function zE(e){return Lx(e.from)[0]?.alias}function BE(e){return function(t){return t.pipe(D_(t=>{let[n,[r,i]]=t,a=r?.[1],o=i?.[1];return e===`inner`?!!(a&&o):e===`left`?!!a:e===`right`?!!o:!0}),a_(e=>{let[t,[n,r]]=e,i=n?.[0],a=n?.[1],o=r?.[0],s=r?.[1],c={};return a&&Object.assign(c,a),s&&Object.assign(c,s),[`[${i},${o}]`,c]}))}}function VE(e,t,n,r){switch(e){case`left`:return{activeSource:`main`,lazySource:n};case`right`:return{activeSource:`joined`,lazySource:t};case`inner`:return r||t.size<n.size?{activeSource:`main`,lazySource:n}:{activeSource:`joined`,lazySource:t};default:return{activeSource:void 0,lazySource:void 0}}}function HE(e){return e instanceof Ex?e.value:e}var UE=new Set([`__proto__`,`prototype`,`constructor`]);function WE(e){for(let t of e)if(UE.has(t))throw new py(t)}function GE(e,t,n){WE(e.targetPath);let r=e.source(t);if(r&&typeof r==`object`){let t=n,i=e.targetPath;if(i.length===0)for(let[e,t]of Object.entries(r))n[e]=HE(t);else for(let e=0;e<i.length;e++){let n=i[e];if(e===i.length-1){let e=t[n]??={};if(typeof e==`object`)for(let[t,n]of Object.entries(r))e[t]=HE(n)}else{let e=t[n];(typeof e!=`object`||!e)&&(t[n]={}),t=t[n]}}}}function KE(e,t,n){let r=e.alias.split(`.`);if(WE(r),r.length===1)n[e.alias]=e.compiled(t);else{let i=n;for(let e=0;e<r.length-1;e++){let t=r[e],n=i[t];(typeof n!=`object`||!n)&&(i[t]={}),i=i[t]}i[r[r.length-1]]=HE(e.compiled(t))}}function qE([e,t],n){let r={};for(let e of n)e.kind===`merge`?GE(e,t,r):KE(e,t,r);return[e,{...t,$selected:r}]}
40function JE(e,t,n){if(!$E(t)){let n=XE(t);return e.pipe(a_(([e,t])=>[e,{...t,$selected:n(t)}]))}let r=[];return eD([],t,r),e.pipe(a_(e=>qE(e,r)))}function YE(e){let t=[];return eD([],e,t),e=>{let n={};for(let r of t)r.kind===`merge`?GE(r,e,n):KE(r,e,n);return n}}function XE(e){return e==null?()=>e:tD(e)?BS(e)?()=>null:ZE(e):e instanceof Ex?()=>e.value:e.type===`includesSubquery`?()=>null:$E(e)?YE(e):QE(e)||BS(e)?()=>null:jx(e)?Lb(e):()=>e}function ZE(e){let t=e.branches.map(e=>({condition:Lb(e.condition),value:XE(e.value)})),n=e.defaultValue===void 0?void 0:XE(e.defaultValue);return e=>{for(let n of t)if(Ub(n.condition(e)))return n.value(e);return n===void 0?null:n(e)}}function QE(e){return e.type===`agg`}function $E(e){return e&&typeof e==`object`&&!jx(e)}function eD(e,t,n){for(let[r,i]of Object.entries(t)){if(r.startsWith(`__SPREAD_SENTINEL__`)||WE(r.split(`.`)),r.startsWith(`__SPREAD_SENTINEL__`)){let t=r.slice(19),a=t.lastIndexOf(`__`),o=a>=0?t.slice(0,a):t,s=i&&typeof i==`object`&&`type`in i&&i.type===`ref`;if(o.includes(`.`)||s){let t=[...e],r=Lb(s?i:new Tx(o.split(`.`)));n.push({kind:`merge`,targetPath:t,source:r})}else{let t=o,r=[...e];n.push({kind:`merge`,targetPath:r,source:e=>e[t]})}continue}let t=i;if(tD(t)){if(BS(t)){n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:()=>null});continue}n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:ZE(t)});continue}if(t&&t.type===`includesSubquery`){n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:()=>null});continue}if($E(t)){eD([...e,r],t,n);continue}if(QE(t)||BS(t))n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:()=>null});else{if(t===void 0||!jx(t)){n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:()=>t});continue}if(t instanceof Ex){let i=t.value;n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:()=>i})}else n.push({kind:`field`,alias:[...e,r].join(`.`),compiled:Lb(t)})}}}function tD(e){return e instanceof Ax||typeof e==`object`&&!!e&&e.type===`conditionalSelect`&&Array.isArray(e.branches)}var nD=Symbol(`skipInclude`);function rD(e,t=new Set){if(e instanceof tE)return`a child query builder`;if(e instanceof MC)return`toArray()`;if(e instanceof NC)return`concat(toArray())`;if(e instanceof FC)return`materialize()`;if(e instanceof PC)return`caseWhen()`;if(jx(e))return e&&typeof e==`object`&&`name`in e&&typeof e.name==`string`?`${e.name}()`:`a query expression`;if(typeof e!=`object`||!e||t.has(e))return;t.add(e);let n=[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))];for(let r of n){let n=e[r],i=rD(n,t);if(i)return i}}function iD(e){let t=rD(e);if(t)throw new gy(t)}function aD(e,t,n){let r=sS(e)?.parentContext,i=Xx(r),a=i===void 0?{}:{...i},o=[];for(let r of t){let t=r.compiled(e);if(o.push([r.alias,r.field,n.equality(t)]),r.field.length===0){let e=t;a[r.alias]=typeof e==`object`&&e?{...e}:e;continue}let i=a[r.alias],s=typeof i==`object`&&i?{...i}:{};a[r.alias]=s;let c=s;for(let e=0;e<r.field.length-1;e++){let t=r.field[e],n=c[t],i=typeof n==`object`&&n?{...n}:{};c[t]=i,c=i}c[r.field[r.field.length-1]]=t}return Jx(a,[Zx(r),o])}function oD(e,t,n,r){return kE(e,t,(e,t,i,a)=>{let o={...t};return o[n]={...o[n],[nS]:o[n]?.[nS]??e},a!=null&&Object.assign(o,Xx(a)),oS(o,i,a),[Jh([r.equality(e),r.equal
40ity(i),Zx(a)]),o]})}function sD(e,t){return cS(e,t)?.correlationKey}function cD(e,t){return cS(e,t)?.parentContext??null}function lD(e,t){if(e==null||t==null)return!1;let n=Tb(e),r=Tb(t);return Object.is(n,r)||typeof n==`number`&&typeof r==`number`&&Number.isNaN(n)&&Number.isNaN(r)}var uD=new WeakMap;function dD(e){return eT(uD,e,Kx)}function fD(e,t,n,r,i,a,o,s,c=new WeakMap,l=new WeakMap,u,d){let f=u===void 0?c.get(e):void 0;if(f)return f;let p=dD(c);vD(e);let{optimizedQuery:m,sourceWhereClauses:h}=tT(e),g=m;l.set(g,e),OD(g,e,l);let _={...t},v=Mx(e);hD(v,_);let y={},b={},x={},{alias:S,collectionId:C,pipeline:w,sources:T,sourceIncludes:E,directIncludes:D,isUnionFrom:O,isParentRouted:k}=yD(g.from,_,n,r,i,a,o,s,c,l,y,b,h,u);Object.assign(x,T);let A=u!==void 0||E.length>0||D.length>0,j=w,M=d?.path[0],ee=!O&&!k&&u!==void 0&&d!==void 0&&M===S;if(u&&d&&ee){let e=x[S],t=e,n=d.path.slice(1),r=e.pipe(a_(([e,t])=>{let r=qD(t,n);return[p.serializeEquality(r),[e,t,r]]})),i=u.pipe(a_(([e,t])=>[p.serializeEquality(e),t]),p_(e=>e.map(([e,t])=>[e,+(t>0)])));t=r.pipe(N_(i,`inner`)).pipe(D_(([e,[t]])=>t!=null),a_(([e,[t,n]])=>{let[r,i,a]=t,o=oS({...i,[nS]:r},a,n);return[n==null?r:Jh([p.equality(r),Zx(n)]),o]})),x[S]=t,j=xD(t,S)}else u&&!k&&(j=oD(w,u,S,p));if(g.join&&g.join.length>0&&(j=FE(j,g.join,x,C,S,_,c,l,n,r,i,a,o,s,e,fD,y,b,h,u!==void 0,p,u)),u&&d&&!ee){let e=Lb(d);j=j.pipe(D_(([,t])=>lD(e(t),sD(t,S))))}if(g.where&&g.where.length>0)for(let e of g.where){let t=Lb(Nx(e));j=j.pipe(D_(([e,n])=>Ib(t(n))))}if(g.fnWhere&&g.fnWhere.length>0)for(let e of g.fnWhere)j=j.pipe(D_(([t,n])=>Ib(e(A?pS(n):n))));let N=[...D,...E.map(({include:e})=>e)],P=!!g.fnSelect&&N.length>0,F=g.select?[]:[...D],I=[];for(let{sourceAlias:e,include:t}of E){let n=g.select==null?g.fnSelect&&!P?[]:[{path:[e,...t.resultPath],guards:[]}]:jD(g.select,e,t.resultPath);if(n.length!==0)for(let{path:r,guards:i}of n){let n=BD(`${e}.${r.join(`.`)}`,I);F.push({...t,fieldName:n,resultPath:r}),I.push({fieldName:n,getRouting:JD(i,n=>n[e]?.[rS]?.[t.fieldName])})}}if(g.select&&D.length>0)for(let e of D){let t=MD(g.select,e.resultPath);for(let{path:n,guards:r}of t){let t=BD(n.join(`.`),I);F.push({...e,fieldName:t,resultPath:n}),I.push({fieldName:t,getRouting:JD(r,t=>t[rS]?.[e.fieldName])})}}if(g.select){let t=ID(g.select);t.length>0&&(g={...g,select:{...g.select}});for(let{key:u,path:d,subquery:f,guards:m}of t){let t=BD(u,I),v=Lb(f.correlationField),x=f.parentProjection?.map(e=>({alias:e.path[0],field:e.path.slice(1),compiled:Lb(e)}))??[],S=JD(m,e=>({active:!0,correlationKey:v(e),parentContext:x.length>0?aD(e,x,p):null})),C=j.pipe(a_(([e,t])=>{let n=S(t);return n.active?[n.correlationKey,n.parentContext]:[nD,null]}),D_(([e])=>e!==nD));C=C.pipe(p_(e=>e.map(([e,t])=>[e,+(t>0)])));let w=f.childCorrelationField.path[0],T=f.query.from.type===`collectionRef`?f.query.from.collection:void 0,E=vE(f.query,f.query.from,w,f.childCorrelationField,T,b);if(E.length>0){for(let e of E)a.add(e.sourceId);for(let e of E){let t=e.path[0];t&&hx(t,e.path,e.collection)}let t=YD(e,f.correlationField),n=E.map(e=>PE(i,e,t)),r=new Map;C=C.pipe(T_(e=>{for(let[[t],n]of e.getInner()){if(t==null)continue;let e=p.serializeEquality(t),i=(r.get(e)?.weight??0)+n;i===0?r.delete(e):r.set(e,{key:t,weight:i})}let t=new Set([...r.values()].filter(({weight:e})=>e>0).map(({key:e})=>e));for(let e=0;e<E.length;e++){let r=E[e],a=n[e];i[r.sourceId]?.setDemand?.(a,t)}}))}let D=fD(f.parentFilters&&f.parentFilters.length>0?{...f.query,where:[...f.query.where||[],...f.parentFilters]}:f.query,_,n,r,i,a,o,s,c,l,C,f.childCorrelationField);Object.assign(y,D.aliasToCollectionId),Object.assign(b,D.aliasRemapping);for(let[e,t]of D.sourceWhereClauses)h.set(e,t);F.push({pipeline:D.pipeline,fieldName:t,resultPath:d,correlationField:f.correlationField,childCorrelationField:f.childCorrelationField,hasOrderBy:!!(f.query.orderBy&&f.query.orderBy.length>0),childCompilationResult:D,parentProjection:f.parentProjection,materialization:f.materialization,scalarField:f.scalarField}),I.push({fieldName:t,getRouting:S}),g={...g,select:UD(g.select,d)}}}if(g.distinct&&!g.fnSelect&&!g.select&&g.from.type!==`unionAll`)throw new my;if(g.fnSelect&&g.groupBy&&g.groupBy.length>0)throw new hy;let L=g.select!==void 0&&BS(g.select),te=I,ne=e=>Object.fromEntries(te.map(({fieldName:t,getRouting:n})=>[t,n(e)]));if(P){if(!N.every(pD))throw Error(`fn.select() cannot consume Collection-valued includes. Use toArray() or materialize() in the upstream select(), or use an expression select() to keep live Collections.`);j=IT({pipeline:j.pipe(a_(([e,t])=>[e,[{...t,[rS]:{...t[rS],...ne(t)}},void 0]])),includes:F,valueIdentity:p,collectionId:C,sourceWhereClauses:h,aliasToCollectionId:y,aliasRemapping:b}).pipeline.pipe(a_(([e,[t]])=>{let n={...t};return delete n[rS],[e,n]})),F=[],I=[]}if(g.fnSelect){let e=e=>{let t=g.fnSelect(e);return iD(t),t},t=t=>{let n=e(A?pS(t):t),r=n;if(n&&typeof n==`object`&&(Array.isArray(n)||Qx(n))){r=Array.isArray(n)?[...n]:{...n};let e=t[rS];e&&(r[rS]=e)}return{...t,$selected:r}};j=j.pipe(a_(([e,n])=>[e,t(n)]))}else j=g.select?JE(j,g.select):j.pipe(a_(([e,t])=>{let n=dS(t),r=O&&n?n.value:!O&&!g.join&&!g.groupBy?t[S]:t;return[e,{...t,$selected:r}]}
40));I.length>0&&(j=j.pipe(a_(([e,t])=>{let n=Array.isArray(t.$selected)?[...t.$selected]:{...t.$selected};return n[rS]=ne(t),[e,{...t,$selected:n}]})));let R=u?S:void 0;if(g.groupBy&&g.groupBy.length>0?j=FS(j,g.groupBy,p,g.having,g.select,g.fnHaving,C,R,A||I.length>0):L&&(j=FS(j,[],p,g.having,g.select,g.fnHaving,C,R,A||I.length>0)),g.having&&(!g.groupBy||g.groupBy.length===0)&&!(g.select&&Object.values(g.select).some(e=>e.type===`agg`)))throw new vy;if(g.fnHaving&&g.fnHaving.length>0&&(!g.groupBy||g.groupBy.length===0))for(let e of g.fnHaving)j=j.pipe(D_(([t,n])=>e(A||I.length>0?pS(n):n)));L||(j=gD(j,g,S,u!==void 0));let z=mD(v,h,b);g.distinct&&(j=j.pipe(F_(([e,t])=>t.$selected)));let re=(e,t,n)=>{let r=ED(TD(t.$selected),t);return u?[e,[fS(r),n,sD(t,S),cD(t,S),DD(t,S,e)]]:[e,[r,n]]},ie;if(g.orderBy&&g.orderBy.length>0){let t=u&&(g.limit!==void 0||g.offset!==void 0)?(e,t)=>{let n=sD(t,S),r=cD(t,S);return r==null?p.equality(n):Jh([p.equality(n),Zx(r)])}:void 0;ie=XS(e,j,g.orderBy,g.select||{},n[C],o,s,g.limit,g.offset,t).pipe(a_(([e,[t,n]])=>re(e,t,n)))}else if(g.limit!==void 0||g.offset!==void 0)throw new yy;else ie=j.pipe(a_(([e,t])=>re(e,t,void 0)));let ae={collectionId:C,pipeline:ie,valueIdentity:p,sourceWhereClauses:z,aliasToCollectionId:y,aliasRemapping:b,includes:F.length>0?F:void 0};return u===void 0&&c.set(e,ae),ae}function pD(e){return e.materialization!==`collection`&&(e.childCompilationResult.includes??[]).every(pD)}function mD(e,t,n){let r=new Set(e.map(({sourceId:e})=>e)),i=new Map;for(let[a,o]of t){if(r.has(a)){i.set(a,o);continue}let t=n[a]??a;for(let n of e)n.alias===t&&i.set(n.sourceId,o)}return i}function hD(e,t){for(let n of e){let e=t[n.sourceId]??t[n.alias];e&&(t[n.sourceId]=e,t[n.alias]=e)}}function gD(e,t,n,r){let i=(t.orderBy??[]).map(({expression:e})=>Lb(e)),a=e=>({value:e.$selected,routing:e.$selected?.[rS],outerCorrelation:r?sD(e,n):void 0,parentContext:r?cD(e,n):void 0,order:i.map(t=>t(e))});return e.pipe(p_(e=>{let t=e.reduce((e,[,t])=>e+t,0);if(t===0)return[];if(t<0)throw Error(`Query row has negative multiplicity`);let n=e.find(([,e])=>e>0)?.[0];if(!n)throw Error(`Query row has no positive contributor`);let r=a(n);for(let[t,n]of e)if(n>0&&!tb(r,a(t)))throw Error(`Query contributors with the same row key are not congruent`);return[[n,1]]}))}function _D(e){let t=new Set;for(let n of Lx(e.from))n.type===`collectionRef`&&t.add(n.alias);if(e.join)for(let n of e.join)n.from.type===`collectionRef`&&t.add(n.from.alias);return t}function vD(e,t=new Set){let n=_D(e);for(let e of n)if(t.has(e))throw new xy(e,Array.from(t));let r=new Set([...t,...n]);if(e.from.type===`unionAll`)for(let t of e.from.queries)vD(t,r);else for(let t of Lx(e.from))t.type===`queryRef`&&vD(t.query,r);if(e.join)for(let t of e.join)t.from.type===`queryRef`&&vD(t.from.query,r);if(e.select)for(let{subquery:t}of ID(e.select))vD(t.query,r)}function yD(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=dD(c);if(e.type===`unionAll`)return bD(e,t,n,r,i,a,o,s,c,l,u,d,f,p);if(e.type!==`unionFrom`){let{alias:m,input:h,collectionId:g,sourceIncludes:_,isParentRouted:v}=CD(e,t,n,r,i,a,o,s,c,l,u,d,f,p);return{alias:m,pipeline:xD(h,m),collectionId:g,sources:{[m]:h},sourceIncludes:_,directIncludes:[],isUnionFrom:!1,isParentRouted:v}}if(e.sources.length===0)throw new Sy(`empty unionFrom`);let h={},g=[],_,v=``,y=``;for(let b of e.sources){let{alias:e,input:x,collectionId:S,sourceIncludes:C,isParentRouted:w}=CD(b,t,n,r,i,a,o,s,c,l,u,d,f,p);v||(v=e,y=S),h[e]=x,g.push(...C);let T=(p&&!w?oD(xD(x,e),p,e,m):xD(x,e)).pipe(a_(([t,n])=>{let r=`${e}:${SD(t)}`,i=`${e}:${SD(n[e]?.[nS]??t)}`;return[r,p?{...n,[nS]:i,[e]:{...n[e],[nS]:i}}:n]}));_=_?_.pipe(k_(T)):T}return{alias:v,pipeline:_,collectionId:y,sources:h,sourceIncludes:g,directIncludes:[],isUnionFrom:!0,isParentRouted:p!==void 0}}function bD(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.queries.length===0)throw new Sy(`empty unionAll`);let m={},h=[],g=[],_,v=``,y=new Set;for(let h=0;h<e.queries.length;h++){let b=e.queries[h];for(let e of kD(b)){if(y.has(e.alias))throw Error(`Duplicate source alias "${e.alias}" in unionAll query branches. Use distinct aliases in each branch before passing them to unionAll().`);y.add(e.alias)}let x=fD(b,t,n,r,i,a,o,s,c,l,p);v||=x.collectionId,Object.assign(u,x.aliasToCollectionId),Object.assign(d,x.aliasRemapping),g.push(...x.includes??[]),Object.assign(m,t);for(let[e,t]of x.sourceWhereClauses)f.set(e,t);let S=x.pipeline.pipe(a_(e=>{let[t,[n,r,i,a,o]]=e,s=`${h}:${SD(t)}`,c=`${h}:${SD(o??t)}`;return[s,p?uS(n,i,a,c):n]}));_=_?_.pipe(k_(S)):S}return{alias:``,pipeline:_,collectionId:v,sources:m,sourceIncludes:h,directIncludes:g,isUnionFrom:!0,isParentRouted:p!==void 0}}function xD(e,t){return e.pipe(a_(([e,n])=>{let r=n,i=dS(r);if(i){let n=oS({[t]:i.value,[nS]:i.publicKey},i.correlationKey,i.parentContext);return i.parentContext!=null&&typeof i.parentContext==`object`&&Object.assign(n,Xx(i.parentContext)),[e,n]}if(typeof r!=`object`||!r)return[e,{[t]:r}];let a=sS(r),o=a?lS(r):r,s={[t]:o};return a?.parentContext!=null&&Object.assign(s,Xx(a.parentContext)),a&&oS(s,a.correlationKey,a.parentContext),[e,s]}))}function SD(e){return typeof e==`string`?`string:${e}`:typeof e==`number`?`number:${String(e)}`:typeof e==`bigint`?`bigint:${String(e)}`:`${typeof e}:${JSON.stringify(e)}`}function CD(e,t,n,r,i,a,o,s,c,l,u,d,f,p){switch(e.type){case`collectionRef`:{let n=t[e.sourceId]??t[e.alias];if(!n)throw new by(e.alias,e.collection.id,Object.keys(t));return u[e.alias]=e.collection.id,{alias:e.alias,input:n,collectionId:e.collection.id,sourceIncludes:[],isParentRouted:!1}}case`queryRef`:{let m=fD(l.get(e.query)||e.query,t,n,r,i,a,o,s,c,l,p);Object.assign(u,m.aliasToCollectionId),Object.assign(d,m.aliasRemapping);let h=l.has(e.query),g=AD(e.query.from);if(!(!h&&e.alias===g))for(let[e,t]of m.sourceWhereClauses)f.set(e,t);let _=Object.keys(m.aliasToCollectionId).find(e=>m.aliasToCollectionId[e]===m.collectionId);_&&_!==e.alias&&(d[e.alias]=_);let v=m.pipeline.pipe(a_(e=>{let[t,[n,r,i,a,o]]=e;return[t,uS(TD(n),i,a,o)]}));return{alias:e.alias,input:v,collectionId:m.collectionId,sourceIncludes:m.includes?.map(t=>({sourceAlias:e.alias,include:t}))??[],isParentRouted:p!==void 0}}default:throw new Sy(e.type)}}function wD(e){return e instanceof Ex||e&&typeof e==`object`&&`type`in e&&e.type===`val`}function TD(e){return wD(e)?e.value:e}function ED(e,t){if(!e||typeof e!=`object`||!Array.isArray(e)&&!Qx(e))return e;let n=e,r=!1;for(let e of qb)if(n[e]==null&&e in t){r=!0;break}if(!r)return e;let i=Array.isArray(e)?[...e]:{...e};for(let e of qb)n[e]==null&&e in t&&(i[e]=t[e]);return i}
40function DD(e,t,n){return e[t]?.[nS]??e[nS]??n}function OD(e,t,n){if(FD(e.from,t.from,n),e.join&&t.join)for(let r=0;r<e.join.length&&r<t.join.length;r++){let i=e.join[r],a=t.join[r];i.from.type===`queryRef`&&a.from.type===`queryRef`&&(n.set(i.from.query,a.from.query),OD(i.from.query,a.from.query,n))}}function kD(e){return[...Lx(e.from),...e.join?.map(e=>e.from)??[]]}function AD(e){return Lx(e)[0]?.alias??``}function jD(e,t,n){return ND(e,[t,...n])}function MD(e,t){return ND(e,t)}function ND(e,t){let n=[],r=(e,t,n)=>{for(let[r,o]of Object.entries(e)){if(r.startsWith(`__SPREAD_SENTINEL__`)){i(r,o,t,n);continue}a(o,[...t,r],n)}},i=(e,r,i,a)=>{let o=e.slice(19),s=o.lastIndexOf(`__`),c=s>=0?o.slice(0,s):o,l=r&&typeof r==`object`&&`type`in r&&r.type===`ref`?r.path:c.split(`.`).filter(Boolean);PD(t,l)&&n.push({path:[...i,...t.slice(l.length)],guards:a})},a=(e,i,o)=>{if(e instanceof Tx&&PD(t,e.path)){n.push({path:[...i,...t.slice(e.path.length)],guards:o});return}if(e instanceof Ax){let t=[];for(let n of e.branches)a(n.value,i,[...o,...t,{condition:n.condition,expected:!0}]),t.push({condition:n.condition,expected:!1});e.defaultValue!==void 0&&a(e.defaultValue,i,[...o,...t]);return}VD(e)&&r(e,i,o)};return r(e,[],[]),n}function PD(e,t){return t.length<=e.length&&t.every((t,n)=>e[n]===t)}function FD(e,t,n){if(e.type===`unionAll`&&t.type===`unionAll`){for(let r=0;r<e.queries.length&&r<t.queries.length;r++){let i=e.queries[r],a=t.queries[r];n.set(i,a),OD(i,a,n)}return}let r=Lx(e),i=Lx(t);for(let e=0;e<r.length&&e<i.length;e++){let t=r[e],a=i[e];t.type===`queryRef`&&a.type===`queryRef`&&(n.set(t.query,a.query),OD(t.query,a.query,n))}}function ID(e){let t=[];for(let[n,r]of Object.entries(e))n.startsWith(`__SPREAD_SENTINEL__`)||(r instanceof kx?t.push({key:zD([n],t),path:[n],subquery:r,guards:[]}):r instanceof Ax?LD(r,[n],[],t):VD(r)&&HD(r,n));return t}function LD(e,t,n,r){let i=[];for(let a of e.branches)RD(a.value,t,[...n,...i,{condition:a.condition,expected:!0}],r),i.push({condition:a.condition,expected:!1});e.defaultValue!==void 0&&RD(e.defaultValue,t,[...n,...i],r)}function RD(e,t,n,r){if(e instanceof kx){let i=zD(t,r);r.push({key:i,path:t,subquery:e,guards:n});return}if(e instanceof Ax){LD(e,t,n,r);return}if(VD(e))for(let[i,a]of Object.entries(e))i.startsWith(`__SPREAD_SENTINEL__`)||RD(a,[...t,i],n,r)}function zD(e,t){return BD(e.join(`.`),t)}function BD(e,t){let n=e=>t.some(t=>(t.key??t.fieldName)===e);if(!n(e))return e;let r=t.length,i=`${e}#${r}`;for(;n(i);)r++,i=`${e}#${r}`;return i}function VD(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!jx(e)&&e.__refProxy!==!0}function HD(e,t){for(let[n,r]of Object.entries(e))if(!n.startsWith(`__SPREAD_SENTINEL__`)){if(r instanceof kx)throw Error(`Includes subqueries must be at the top level of select(). Found nested includes at "${t}.${n}".`);VD(r)&&HD(r,`${t}.${n}`)}}function UD(e,t){return WD(e,t,new Ex(null)).value}function WD(e,t,n){if(t.length===0)return GD(e,n);if(e instanceof Ax)return KD(e,t,n);if(!VD(e))return{value:e,replaced:!1};if(t.length===1){let r=t[0],i=GD(e[r],n);return i.replaced?{value:{...e,[r]:i.value},replaced:!0}:{value:e,replaced:!1}}let[r,...i]=t,a=WD(e[r],i,n);return a.replaced?{value:{...e,[r]:a.value},replaced:!0}:{value:e,replaced:!1}}function GD(e,t){return e instanceof kx?{value:t,replaced:!0}:e instanceof Ax?KD(e,[],t):{value:e,replaced:!1}}function KD(e,t,n){let r=!1,i=e.branches.map(e=>{let i=t.length===0?GD(e.value,n):WD(e.value,t,n);return i.replaced?(r=!0,{...e,value:i.value}):e}),a=e.defaultValue;if(e.defaultValue!==void 0){let i=t.length===0?GD(e.defaultValue,n):WD(e.defaultValue,t,n);i.replaced&&(r=!0,a=i.value)}return r?{value:new Ax(i,a),replaced:!0}:{value:e,replaced:!1}}function qD(e,t){let n=e;for(let e of t){if(n==null)return n;n=n[e]}return n}function JD(e,t){let n=e.map(e=>({condition:Lb(e.condition),expected:e.expected}));return e=>(n.every(t=>Ub(t.condition(e))===t.expected)?t(e):void 0)??{active:!1,correlationKey:null,parentContext:null}}function YD(e,t){let n=[],r=e=>{if(e.type!==`func`)return;if(e.name===`and`){e.args.forEach(r);return}if(e.name!==`eq`&&e.name!==`in`)return;let[i,a]=e.args,o=i?.type===`ref`&&XD(i.path,t.path)&&a instanceof Ex?a.value:a?.type===`ref`&&XD(a.path,t.path)&&i instanceof Ex?i.value:void 0;o!==void 0&&n.push(new Set(Array.isArray(o)?o:[o]))};
40return e.where?.forEach(e=>r(Nx(e))),n.length===0?new Set:new Set([...n[0]].filter(e=>n.slice(1).every(t=>t.has(e))))}function XD(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var ZD=class{constructor(e,t,n,r=()=>{},i=()=>!1){this.info=e,this.subscription=t,this.alias=n,this.onResult=r,this.canRetryRepair=i,this.hasSettledSourceRequest=!1,this.needsFullSourceRecovery=!1,this.requesting=!1,this.fullSource=`none`,this.settledFiniteAcquisitions=new Map,this.failedAcquisitions=new Map,this.active=!0,this.generation=0,this.repairRetries=0,this.info.isRequesting=()=>this.requesting}onSourceChanges(e,t){let n=!1;for(let r of e){let e=t?.get(r.key);if(r.type!==`insert`&&e!==void 0&&(r.type===`delete`||this.info.comparator(e,r.value)!==0)){this.invalidateSourceOrdering();return}r.type!==`delete`&&e===void 0&&(n=!0)}n&&this.invalidateCursor()}start(){let{index:e,limit:t,offset:n,orderBy:r,requiresFullSource:i}=this.info;if(e&&this.subscription.setOrderByIndex(e),t!==0){if(i){this.loadFullSource();return}if(!e||r.length!==1){this.loadPrefix(n+t);return}this.loadPage(n+t)}}loadMore(e){if(!this.active||this.info.limit===0||this.requesting)return;if(!(this.failedRequest===void 0||e!==void 0&&e!==this.failedRequest.windowOperationGeneration))return this.pending;if((this.failedRequest||this.failedAcquisitions.size>0)&&e!==void 0&&(this.cancelRepairRetry(),this.repairRetries=0,this.failedRequest&&(this.failedRequest.windowOperationGeneration=e),this.releaseFailedAcquisitions(),!this.active))return;if(this.fullSource===`failed`)this.fullSource=`none`;else if(this.fullSource!==`none`)return this.pending;if(this.needsFullSourceRecovery||this.info.requiresFullSource)return this.loadFullSource(e),this.pending;if(!this.info.index||this.info.orderBy.length!==1)return(e!==void 0||(this.info.dataNeeded?.()??0)>0||this.lastPrefixCount!==void 0&&this.lastPrefixCount<this.info.offset+this.info.limit)&&this.loadPrefix(this.info.offset+this.info.limit,e),this.pending;if(!this.info.dataNeeded||this.pending)return this.pending;let t=Math.max(this.info.dataNeeded(),this.hasSettledSourceRequest?0:this.info.offset+this.info.limit);if(e!==void 0&&this.settledSourceBoundary!==void 0){let e=this.info.offset+this.info.limit;t=Math.max(t,e-this.countAcquiredRows())}return t>0&&this.loadPage(t,e),this.pending}loadFullSource(e){!this.active||this.fullSource!==`none`||(this.fullSource=`held`,this.requestAndObserve(e=>{this.subscription.requestSnapshot({trackLoadSubsetPromise:!1,onLoadSubsetResult:e})},`full-source`,e))}loadPrefix(e,t){if(!(!this.active||this.pending)){if(this.lastPrefixCount===e){(this.info.dataNeeded?.()??0)>0&&this.loadFullSource(t);return}this.requestAndObserve(t=>{this.subscription.requestSnapshot({orderBy:Hx(this.info.orderBy,this.alias),limit:e,trackLoadSubsetPromise:!1,onLoadSubsetResult:t})},`ordered`,t),this.lastPrefixCount=e}}resetCursor(){this.cancelRepairRetry(),this.repairRetries=0,this.generation++,this.fullSource===`complete`&&(this.fullSource=`held`),this.pending=void 0,this.lastBoundary=void 0,this.settledSourceBoundary=void 0,this.invalidateCursor()}settleFullSourceReplay(){if(this.fullSource===`failed`){for(let[e,t]of this.failedAcquisitions)t===`full-source`&&this.failedAcquisitions.delete(e);this.fullSource=`held`}this.fullSource!==`none`&&(this.fullSource=`complete`,this.retireSettledFiniteAcquisitions())}retireSettledFiniteAcquisitions(e){if(this.fullSource!==`complete`&&!e||this.subscription.hasPendingTruncateReplacement)return;let t=this.generation;cC(Array.from(this.settledFiniteAcquisitions,([n,r])=>()=>{!this.active||t!==this.generation||this.fullSource!==`complete`&&(!e||n===e.release||r===void 0||r>e.count)||(this.settledFiniteAcquisitions.delete(n),n())}))}invalidateCursor(){this.lastPage=void 0,this.lastPrefixCount=void 0}invalidateSourceOrdering(){this.invalidateCursor(),this.requireFullSourceRecovery()}dispose(){this.active=!1,this.resetCursor(),this.failedAcquisitions.clear(),this.settledFiniteAcquisitions.clear()}countAcquiredRows(){return this.subscription.readOrderedSnapshot({orderBy:Hx(this.info.orderBy,this.alias),limit:this.info.offset+this.info.limit}).filter(({value:e})=>this.info.comparator(e,this.settledSourceBoundary)<=0).length}loadPage(e,t){if(!this.active||this.pending)return;let n=this.settledSourceBoundary===void 0,r=this.settledSourceBoundary,i;if(r!==void 0){let e=this.info.valueExtractorForRawRow(r);if(!VC(this.info.orderBy,[e])){this.loadPrefix(this.info.offset+this.info.limit,t);return}i=[e]}let a=i?.[0];this.lastPage?.count===e&&Object.is(this.lastPage.boundary,a)||(this.lastPage={count:e,boundary:a},this.requestAndObserve(t=>{this.subscription.requestLimitedSnapshot({orderBy:Hx(this.info.orderBy,this.alias),limit:e,minValues:i,offset:n?0:this.countAcquiredRows(),trackLoadSubsetPromise:!1,onLoadSubsetRe
40sult:t})},`ordered`,t))}observe(e,t,n,r,i){let a=n===`full-source`,o=a&&this.hasSettledSourceRequest&&this.needsFullSourceRecovery&&r===void 0,s=this.generation,c=()=>{this.pending===f&&(this.pending=void 0),this.active&&cC([()=>{if(!a){let e=i?.orderBy&&!i.cursor?i.limit:void 0;this.settledFiniteAcquisitions.set(t,e),this.retireSettledFiniteAcquisitions(),s===this.generation&&e!==void 0&&this.retireSettledFiniteAcquisitions({release:t,count:e})}},()=>{if(s===this.generation&&!(!a&&(this.failedRequest||this.fullSource!==`none`))){if(this.failedRequest=void 0,n!==`boundary`&&(this.hasSettledSourceRequest=!0,i?.orderBy&&!i.cursor&&(this.lastPrefixCount=i.limit),!a&&i?.orderBy))try{this.settledSourceBoundary=this.subscription.readOrderedSnapshot(i).at(-1)?.value??this.settledSourceBoundary}catch(e){d(e)}if(a&&(this.cancelRepairRetry(),this.repairRetries=0,this.needsFullSourceRecovery=!1,this.fullSource=`complete`,this.retireSettledFiniteAcquisitions()),n===`ordered`){this.loadBoundary(r);return}this.loadMore()}}])},l=e instanceof Promise,u=l?e:Promise.resolve(),d=e=>{if(this.settledFiniteAcquisitions.delete(t),this.pending===f&&(this.pending=void 0),this.active&&(this.requireFullSourceRecovery(),s===this.generation))throw a&&(this.fullSource=`failed`),this.recordRequestFailure(r),this.failedAcquisitions.set(t,n),o&&this.scheduleRepairRetry(),e},f=u.then(c,d);return this.pending=f,f.catch(()=>{}),this.onResult(f,l&&a&&this.needsFullSourceRecovery),f}loadBoundary(e){let t=this.settledSourceBoundary;if(t===void 0)return;let n=this.info.valueExtractorForRawRow(t),r=Hx(this.info.orderBy,this.alias);if(!VC(r.slice(0,1),[n]))return this.loadFullSource(e),this.pending;if(Object.is(this.lastBoundary,n))return this.loadMore();let i=BC(r,[n]);return i?(this.lastBoundary=n,this.requestAndObserve(e=>{this.subscription.requestSnapshot({where:i,trackLoadSubsetPromise:!1,onLoadSubsetResult:e})},`boundary`,e)):(this.loadFullSource(e),this.pending)}requireFullSourceRecovery(){this.settledSourceBoundary=void 0,this.needsFullSourceRecovery=!0}cancelRepairRetry(){clearTimeout(this.repairTimer),this.repairTimer=void 0}releaseFailedAcquisitions(){let e=this.failedAcquisitions;this.failedAcquisitions=new Map,this.requesting=!0;try{cC(e.keys())}finally{this.requesting=!1}}scheduleRepairRetry(){if(!this.active||!this.canRetryRepair()||this.repairTimer!==void 0||this.repairRetries>=2)return;let e=this.generation,t=this.failedRequest;this.repairTimer=setTimeout(()=>{this.repairTimer=void 0;let n=Promise.resolve().then(()=>{!this.active||!this.canRetryRepair()||e!==this.generation||this.failedRequest!==t||this.failedRequest?.windowOperationGeneration!==void 0||(this.releaseFailedAcquisitions(),!(!this.active||e!==this.generation||this.subscription.hasPendingTruncateReplacement)&&(this.failedRequest=void 0,this.fullSource=`none`,this.loadFullSource()))});n.catch(()=>{}),this.onResult(n,!0)},250*2**this.repairRetries++)}failRequest(e,t,n,r,i=!1){i&&(this.generation++,this.pending=void 0),this.requireFullSourceRecovery(),this.recordRequestFailure(r),n&&(this.fullSource=`none`);try{e?.release({error:t})}catch{}return n&&this.hasSettledSourceRequest&&r===void 0&&this.scheduleRepairRetry(),t}recordRequestFailure(e){this.failedRequest={windowOperationGeneration:e},this.invalidateCursor(),this.lastBoundary=void 0}requestAndObserve(e,t,n){let r=t===`full-source`,i;this.requesting=!0;let a=!1;try{try{e((e,t,n)=>{i={result:e,options:t,release:n}})}finally{this.requesting=!1}return i?(a=!0,this.observe(i.result,i.release,t,n,i.options)):void 0}catch(e){this.requesting=!0;try{let t=this.failRequest(i,HC(e),r,n,a);if(!a&&r&&this.hasSettledSourceRequest){let e=Promise.reject(t);e.catch(()=>{}),this.onResult(e,!0)}throw t}finally{this.requesting=!1}}}};function QD(e){let t={};for(let n of Mx(e))t[n.collection.id]=n.collection;return t}function $D(e){let t=e.from;if(t.type===`collectionRef`)return t.collection;if(t.type===`queryRef`)return $D(t.query);if(t.type===`unionFrom`)return $D({from:t.sources[0]});if(t.type===`unionAll`)return $D(t.queries[0]);throw Error(`Failed to extract collection. Invalid FROM clause: ${JSON.stringify(e)}`)}function eO(e){return!(typeof e!=`object`||!e||jx(e)||e.__refProxy)}function tO(e){let t=typeof e.query==`function`?_E(e.query):$T(e.query);
40if(e.requireObjectResult&&t.select&&!eO(t.select))throw new _y;return t}function nO(e,t){let n=[];for(let e of t){let t=e.key;e.type===`insert`?n.push([[t,e.value],1]):e.type===`update`?(n.push([[t,e.previousValue],-1]),n.push([[t,e.value],1])):n.push([[t,e.value],-1])}return n.length!==0&&e.sendData(new Jg(n)),n.length}function*rO(e){for(let t of e)t.type===`update`?(yield{type:`delete`,key:t.key,value:t.previousValue},yield{type:`insert`,key:t.key,value:t.value}):yield t}function iO(e,t){let n=[];for(let r of e){let e=t.get(r.key);if(r.type===`insert`){if(e!==void 0)continue;t.set(r.key,r.value),n.push(r)}else if(r.type===`delete`){if(e===void 0)continue;t.delete(r.key),n.push({...r,value:e})}else t.set(r.key,r.value),n.push(e===void 0?{type:`insert`,key:r.key,value:r.value}:{...r,previousValue:e})}return n}function aO(e,t){let{orderBy:n,limit:r,offset:i}=e,a=r!==void 0&&i!==void 0?r+i:r,o=n?Hx(n,t):void 0,s=o?.every(e=>{let t=e.expression;if(t.type!==`ref`)return!1;let n=t.path;return Array.isArray(n)&&n.length===1})??!1;return{orderBy:s?o:void 0,limit:s?a:void 0}}var oO=class{constructor(){this.states=new Map,this.warnedPlans=new Set,this.valueIdentity=Kx()}setDemand(e,t,n){let r=sO(n,this.valueIdentity),i=this.states.get(t.id),a=i?.segments.some(e=>e.state===`failed`&&lO(e.keys,r));if(i&&cO(i.keys,r)&&!a)return{changed:!1,empty:r.size===0,ready:!0};let o=[];for(let t of i?.segments??[]){if(t.state!==`failed`&&lO(t.keys,r)){o.push(t);continue}t.abortController.abort();try{e.releaseSnapshot(t.where)}catch{}}let s=new Set(o.flatMap(e=>[...e.keys.keys()])),c=new Map([...r].filter(([e])=>!s.has(e)));c.size>0&&o.push(uO(e,t,c,()=>this.warnUnoptimized(t))),r.size===0?this.states.delete(t.id):this.states.set(t.id,{keys:r,segments:o});let l=o.filter(e=>lO(e.keys,r)).map(e=>e.ready).filter(e=>e instanceof Promise);return{changed:!0,empty:r.size===0,ready:l.length>0?Promise.all(l):!0}}clear(){for(let e of this.states.values())for(let t of e.segments)t.abortController.abort();this.states.clear(),this.warnedPlans.clear(),this.valueIdentity=Kx()}warnUnoptimized(e){if(this.warnedPlans.has(e.id))return;this.warnedPlans.add(e.id);let t=e.path.join(`.`);console.warn(`[TanStack DB]${e.collectionId?` [${e.collectionId}]`:``} Join requires an index on "${t}" for efficient loading. Falling back to scanning local data. Consider creating an index on the collection with collection.createIndex((row) => row.${t}) or enable auto-indexing with autoIndex: 'eager' and a defaultIndexType.`)}};function sO(e,t){return new Map([...e].map(e=>[t.serializeEquality(e),e]))}function cO(e,t){return e.size===t.size&&[...e.keys()].every(e=>t.has(e))}function lO(e,t){return[...e.keys()].some(e=>t.has(e))}function uO(e,t,n,r){let i=jC(new Tx(t.path),[...n.values()]),a=new AbortController,o={ready:!0};e.requestSnapshot({where:i,signal:a.signal,trackLoadSubsetPromise:!1,onUnoptimized:r,onLoadSubsetResult:e=>{o.ready=e}});let s=o.ready,c={keys:n,where:i,abortController:a,ready:s,state:s instanceof Promise?`pending`:`settled`};return s instanceof Promise&&s.then(()=>{c.state=`settled`},()=>{c.state=`failed`}),c}var dO=Symbol.for(`@tanstack/db.collection-config-builder`),fO=class{constructor(e,t,n,r){this.sourceId=e,this.alias=t,this.collection=n,this.collectionConfigBuilder=r,this.subscriptionLoadingPromises=new Map,this.sentToD2Rows=new Map,this.demand=new oO}subscribe(){let e=this.getWhereClause();if(e){let t=Vx(e,this.alias);return this.subscribeToChanges(t)}return this.subscribeToChanges()}subscribeToChanges(e){let t=this.getOrderByInfo(),n=e=>{if(e instanceof Promise){let t=e.catch(async e=>{throw await Promise.resolve(),e});this.collectionConfigBuilder.trackSubsetLoadPromise(t)}},r=e=>{if(this.collectionConfigBuilder.isLazySource(this.sourceId))return;let t=e.subscription;if(e.status===`loadingSubset`)this.ensureLoadingPromise(t);else{let e=this.subscriptionLoadingPromises.get(t);e&&(this.subscriptionLoadingPromises.delete(t),e.resolve())}},i=e=>{this.collectionConfigBuilder.recordSubsetError(e.error,!this.collectionConfigBuilder.isLazySource(this.sourceId)&&this.collectionConfigBuilder.liveQueryCollection?.status===`loading`)},a;if(t)a=this.subscribeToOrderedChanges(e,t,r,n,i);else{let t=(this.collection.config.syncMode!==`on-demand`||this.collectionConfigBuilder.query.limit!==0)&&!this.collectionConfigBuilder.isLazySource(this.sourceId);a=this.subscribeToMatchingChanges(e,t,r,n,i),this.registerSubscriptionCleanup(a)}return!this.collectionConfigBuilder.isLazySource(this.sourceId)&&a.status===`loadingSubset`&&this.ensureLoadingPromise(a),a}registerSubscriptionCleanup(e){this.collectionConfigBuilder.currentSyncState.unsubscribeCallbacks.add(()=>{let t=this.subscriptionLoadingPromises.get(e);t&&(this.subscriptionLoadingPromises.delete(e),t.resolve());try{this.demand.clear()}finally{e.unsubscribe()}})}
40setDemand(e,t,n){let r;try{r=this.demand.setDemand(e,t,n)}catch(n){if(!Object.is(e.lastError,n))throw n;let r=this.collectionConfigBuilder.liveQueryCollection?.status===`loading`,i=this.collectionConfigBuilder.beginDemand(t.id);if(this.collectionConfigBuilder.failDemand(t.id,i,n),r)throw n;return}if(!r.changed)return;if(r.empty){this.collectionConfigBuilder.retireDemand(t.id);return}let i=this.collectionConfigBuilder.beginDemand(t.id);r.ready instanceof Promise?(this.collectionConfigBuilder.trackSubsetLoadOperationPromise(r.ready),r.ready.then(()=>this.collectionConfigBuilder.settleDemand(t.id,i),e=>this.collectionConfigBuilder.failDemand(t.id,i,e))):this.collectionConfigBuilder.settleDemand(t.id,i)}sendChangesToPipeline(e,t){let n=iO(Array.isArray(e)?e:[...e],this.sentToD2Rows),r=this.collectionConfigBuilder.currentSyncState.inputs[this.sourceId],i=nO(r,n)>0?t:void 0;this.collectionConfigBuilder.scheduleGraphRun(i)}subscribeToMatchingChanges(e,t,n,r,i){let a=e=>{this.sendChangesToPipeline(e)},o=aO(this.collectionConfigBuilder.query,this.alias);return this.collection.subscribeChanges(a,{...t&&{includeInitialState:t},whereExpression:e,onStatusChange:n,onLoadSubsetError:i,truncateReplayPublication:this.truncateReplayPublicationControl(),orderBy:o.orderBy,limit:o.limit,onLoadSubsetResult:t?r:void 0})}subscribeToOrderedChanges(e,t,n,r,i){let a={},o=this.collection.subscribeChanges(e=>{let t=a.current;if(!t)return;let n=Array.isArray(e)?e:[...e];this.orderedLoader?.onSourceChanges(n,this.sentToD2Rows);let r=rO(n);this.sendChangesToPipelineWithTracking(r,t)},{whereExpression:e,onStatusChange:n,onLoadSubsetError:i,truncateReplayPublication:this.truncateReplayPublicationControl(()=>{let e=this.orderedLoader;this.collectionConfigBuilder.trackOrderedLoadPromise(Promise.resolve().then(()=>e?.loadFullSource()),!0)})});a.current=o,this.registerSubscriptionCleanup(o);let s=this.collection.on(`truncate`,()=>{this.orderedLoader?.resetCursor()});return o.on(`unsubscribed`,()=>{s(),a.current=void 0,this.orderedLoader?.dispose(),this.orderedLoader=void 0}),this.orderedLoader=new ZD(t,o,this.alias,(e,t)=>{e instanceof Promise&&this.collectionConfigBuilder.trackOrderedLoadPromise(e,t&&!o.hasPendingTruncateReplacement),r(e)},()=>this.collectionConfigBuilder.liveQueryCollection?.status===`ready`&&!this.collectionConfigBuilder.hasActiveWindowOperation()),this.orderedLoader.start(),o}truncateReplayPublicationControl(e){let t=this.collectionConfigBuilder.getSyncSession();return{start:()=>{e?.()},succeed:()=>{t===this.collectionConfigBuilder.getSyncSession()&&(this.orderedLoader?.settleFullSourceReplay(),this.collectionConfigBuilder.scheduleGraphRunForSession(t))}}}loadMoreIfNeeded(e){if(!(e.hasPendingTruncateReplacement&&!this.collectionConfigBuilder.hasActiveWindowOperation())&&this.getOrderByInfo())try{let e=this.orderedLoader?.loadMore(this.collectionConfigBuilder.getActiveWindowOperationGeneration());e&&this.collectionConfigBuilder.trackSubsetLoadOperationPromise(e)}catch(t){if(!Object.is(e.lastError,t))throw t}}sendChangesToPipelineWithTracking(e,t){if(!this.getOrderByInfo()){this.sendChangesToPipeline(e);return}let n=t;n[dO]??=this.loadMoreIfNeeded.bind(this,t),this.sendChangesToPipeline(e,n[dO])}getWhereClause(){let e=this.collectionConfigBuilder.sourceWhereClausesCache;if(e)return e.get(this.sourceId)}getOrderByInfo(){let e=this.collectionConfigBuilder.optimizableOrderByCollections[this.sourceId];if(e?.sourceId===this.sourceId)return e}ensureLoadingPromise(e){if(this.subscriptionLoadingPromises.has(e))return;let t,n=new Promise(e=>{t=e});this.subscriptionLoadingPromises.set(e,{resolve:t}),this.collectionConfigBuilder.trackSubsetLoadPromise(n)}},pO=new Set([rS]),mO=class{constructor(e,t,n){this.parentId=e,this.compilations=t,this.pending=new Map,this.pendingActivity=new Map,this.activeBuckets=new Map,this.entries=new Map,this.retiredEntries=new Map,this.resolvedValues=new WeakMap;for(let e of t)e.rows.pipe(j_(t=>{let r=t.getInner();n(r.length);for(let[[t,n],i]of r)this.accumulate(e.edgeId,t,n,i)})),e.activeBuckets.pipe(j_(t=>{let r=t.getInner();n(r.length);for(let[[t],n]of r)this.accumulateActivity(e.edgeId,t,n)}))}hasPendingChanges(){return this.pending.size>0||this.pendingActivity.size>0}flush(){let e=this.snapshot(),t=new Set,n=[],r=e=>{t.has(e)||(t.add(e),n.push(e.collection._deferPublication()))},i=[];try{for(let e of this.compilations){let t=this.pendingActivity.get(e.edgeId),n=this.getActiveBuckets(e.edgeId);for(let[r,a]of t??[])a>0&&!n.has(r)&&(n.add(r),i.push(this.getEntry(e.edgeId,r)));let a=this.pending.get(e.edgeId);for(let[t,i]of a??[]){let a=this.entries.get(e.edgeId)?.get(t);if(!n.has(t)&&!a)continue;let o=this.getEntry(e.edgeId,t),s=o.sync;if(!(!s||i.size===0)){for(let e of i.values())this.prepareChange(o,e);r(o),s.begin();for(let t of i.values())this.applyChange(o,s,t,e.hasOrderBy);s.commit()}}for(let[i,a]of t??[])a>=0||(n.delete(i),this.retireEntry(e.edgeId,i,r))}}catch(r){this.restore(e,t),this.retiredEntries.clear();for(let e of n)e.discard();throw r}this.pending.clear(),this.pendingActivity.clear();let a=!1,o=!1,s=()=>
40{if(!(a||o)){o=!0;for(let e of i)e.sync?.markReady()}};return{prepare:s,publish:()=>{if(!a){s(),a=!0;for(let e of n)e.publish();this.retiredEntries.clear()}},rollback:()=>{if(!a){a=!0,this.restore(e,t),this.retiredEntries.clear();for(let e of n)e.discard()}}}}resolve(e){return this.resolveValue(e)}cleanup(){for(let e of this.entries.values())for(let t of e.values())t.collection.cleanup();this.entries.clear(),this.cleanupRetiredEntries(),this.pending.clear(),this.pendingActivity.clear(),this.activeBuckets.clear()}accumulate(e,t,n,r){let i=eT(eT(this.pending,e,()=>new Map),t,()=>new Map),a=Jh(n.publicKey),o=i.get(a)??{deletes:0,inserts:0,value:n};r<0?o.deletes+=-r:r>0&&(o.inserts+=r,o.value=n),i.set(a,o)}snapshot(){let e=new Map;for(let t of this.entries.values())for(let n of t.values())e.set(n,[...n.collection._state.syncedData].map(([e,t])=>({key:e,value:t,order:n.currentOrder.get(e)})));return{activeBuckets:new Map([...this.activeBuckets].map(([e,t])=>[e,new Set(t)])),entries:new Map([...this.entries].map(([e,t])=>[e,new Map(t)])),rows:e}}restore(e,t){let n=new Set([...e.entries.values()].flatMap(e=>[...e.values()])),r=new Set([...this.entries.values()].flatMap(e=>[...e.values()]));for(let r of t){if(!n.has(r))continue;let t=r.sync;if(!t)continue;let i=e.rows.get(r)??[],a=new Set(i.map(e=>e.key));t.begin();for(let e of r.collection.keys())a.has(e)||t.write({type:`delete`,key:e});r.currentOrder.clear();for(let e of i)r.keys.set(e.value,e.key),e.order!==void 0&&r.order.set(e.value,e.order),r.currentOrder.set(e.key,e.order),t.write({type:r.collection.has(e.key)?`update`:`insert`,value:e.value});t.commit()}this.entries.clear();for(let[t,n]of e.entries)this.entries.set(t,new Map(n));this.activeBuckets.clear();for(let[t,n]of e.activeBuckets)this.activeBuckets.set(t,new Set(n));this.resolvedValues=new WeakMap;for(let e of r)n.has(e)||e.collection.cleanup()}accumulateActivity(e,t,n){let r=eT(this.pendingActivity,e,()=>new Map);r.set(t,(r.get(t)??0)+n)}getActiveBuckets(e){return eT(this.activeBuckets,e,()=>new Set)}retireEntry(e,t,n){let r=this.entries.get(e),i=r?.get(t);if(!i)return;let a=i.sync,o=[...i.collection.keys()];if(a&&o.length>0){n(i),a.begin();for(let e of o)a.write({type:`delete`,key:e});a.commit()}r.delete(t),r.size===0&&this.entries.delete(e),eT(this.retiredEntries,e,()=>new Map).set(t,i)}getEntry(e,t){let n=eT(this.entries,e,()=>new Map),r=n.get(t);if(r)return r;let i=new WeakMap,a=new WeakMap,o,s={collection:Gw({id:`__bucket-facade:${this.parentId}:${e}:${t}`,getKey:e=>{let t=i.get(e)??e?.$key;if(typeof t!=`string`&&typeof t!=`number`)throw Error(`Bucket facade row has no public key`);return t},compare:(e,t)=>{let n=a.get(e),r=a.get(t);return n===r?0:n===void 0?1:r===void 0||n<r?-1:1},sync:{rowUpdateMode:`full`,sync:e=>(o=e,()=>{o=void 0})},startSync:!0,gcTime:0}),get sync(){return o},keys:i,order:a,currentOrder:new Map};return n.set(t,s),s}applyChange(e,t,n,r){let i=n.value.publicKey,a=e.currentOrder.get(i),o=n.value.order,s=t.collection.has(i)&&a!==o,c=this.resolve(n.value.value),l=s?{...c}:c;if(e.keys.set(l,i),o!==void 0&&e.order.set(l,o),n.inserts>n.deletes)t.write({type:t.collection.has(i)?`update`:`insert`,value:l});else if(n.inserts===n.deletes&&t.collection.has(i))t.write({type:`update`,value:l});else if(n.deletes>0){t.write({type:`delete`,key:i}),e.currentOrder.delete(i);return}e.currentOrder.set(i,o),r&&s&&t.collection._markLayoutChange()}prepareChange(e,t){let n=t.value.publicKey,r=this.resolve(t.value.value);e.keys.set(r,n),e.collection.getKeyFromItem(r)}resolveValue(e){if(typeof e!=`object`||!e)return e;let t=this.resolvedValues.get(e);if(t!==void 0)return t;if(hO(e)){let{edgeId:t,bucketKey:n}=e[PT],r=this.entries.get(t)?.get(n)?.collection??this.retiredEntries.get(t)?.get(n)?.collection??this.getEntry(t,n).collection;return this.resolvedValues.set(e,r),r}if(Array.isArray(e)||Qx(e)){let t=mS(e,e=>hO(e)?this.resolveValue(e):e,pO);return this.resolvedValues.set(e,t),t}return e}cleanupRetiredEntries(){for(let e of this.retiredEntries.values())for(let t of e.values())t.collection.cleanup();this.retiredEntries.clear()}};function hO(e){return typeof e==`object`&&!!e&&PT in e}var gO=0,_O=class{constructor(e){this.config=e,this.resultKeys=new WeakMap,this.orderByIndices=new WeakMap,this.isGraphRunning=!1,this.isInErrorState=!1,this.fatalQueryError=!1,this.erroredSourceIds=new Set,this.builderDependencies=new Set,this.pendingGraphRuns=new Map,this.subscriptions={},this.lazySourcesCallbacks={},this.lazySources=new Set,this.activeDemands=new Map,this.demandGenerations=new Map,this.pendingOrderedLoads=new Set,this.orderedLoadFailed=!1,this.windowFailed=!1,this.syncSession=0,this.windowOperationGeneration=0,this.optimizableOrderByCollections={},this.id=e.id||`live-query-${++gO}`,this.query=tO({query:e.query,requireObjectResult:!0}),this.initialWindow=this.query.orderBy?.length?{offset:this.query.offset??0,limit:this.query.limit??1/0}:void 0,this.settledWindow=this.initialWindow,this.collections=QD(this.query),this.collectionSources=Mx(this.query),this.query.orderBy&&this.query.orderBy.length>0&&(this.compare=vO(this.orderByIndices)),this.compareOptions=this.config.defaultStringCollation??$D(this.query).compareOptions,this.compileBasePipeline()}hasJoins(e){if(e.join&&e.join.length>0)return!0;
40if(e.from.type===`queryRef`){if(this.hasJoins(e.from.query))return!0}else if(e.from.type===`unionFrom`){for(let t of e.from.sources)if(t.type===`queryRef`&&this.hasJoins(t.query))return!0}else if(e.from.type===`unionAll`){for(let t of e.from.queries)if(this.hasJoins(t))return!0}return!1}getConfig(){let e=this;return{id:this.id,getKey:this.config.getKey||(e=>this.resultKeys.get(e)??e.$key),sync:this.getSyncConfig(),compare:this.compare,defaultStringCollation:this.compareOptions,gcTime:this.config.gcTime??5e3,schema:this.config.schema,onInsert:this.config.onInsert,onUpdate:this.config.onUpdate,onDelete:this.config.onDelete,startSync:this.config.startSync,singleResult:this.query.singleResult,utils:{get lastSubsetError(){return e.lastSubsetError},setWindow:this.setWindow.bind(this),getWindow:this.getWindow.bind(this),[nw]:{getBuilder:()=>this,hasCustomGetKey:!!this.config.getKey,hasJoins:this.hasJoins(this.query),hasDistinct:!!this.query.distinct}}}}setWindow(e){let t=this.windowFn;if(!t)throw new $y;if(this.activeWindowOperation||this.isGraphRunning||Object.values(this.optimizableOrderByCollections).some(e=>e.isRequesting?.()))throw new eb;let n=this.currentWindow??this.settledWindow??this.initialWindow,r={offset:e.offset??n?.offset,limit:e.limit??n?.limit},i=this.pendingSourceRecovery();if(i)return i.then(async()=>{let e=this.setWindow(r);e!==!0&&await e});if(this.hasFailedSourceRecovery())return Promise.reject(this.lastSubsetError??Error(`Source recovery failed`));let a=++this.windowOperationGeneration,o=this.liveQueryCollection?._sync.beginLoadSubsetOperation(),s=this.activeWindowOperation,c={generation:a,failed:!1};this.activeWindowOperation=c,this.windowFailed=!1,this.pendingOrderedLoads.size===0&&(this.orderedLoadFailed=!1);try{if(this.currentWindow=r,gC(()=>{t(r),this.maybeRunGraphFn?.()}),c.failed)throw c.error}catch(e){throw a===this.windowOperationGeneration&&(this.windowFailed=!0,this.currentWindow=this.settledWindow),o?.cancel(),e}finally{this.activeWindowOperation=s}let l=o?.wait()??!0;return l===!0?(this.settledWindow=r,!0):l.then(()=>{a===this.windowOperationGeneration&&(this.settledWindow=r)},e=>{throw a===this.windowOperationGeneration&&(this.windowFailed=!0,this.currentWindow=this.settledWindow),e})}getWindow(){let e=this.settledWindow??this.initialWindow;if(!(!this.windowFn||!e))return{offset:e.offset??0,limit:e.limit??0}}isLazySource(e){return this.lazySources.has(e)}beginDemand(e){let t=(this.demandGenerations.get(e)??0)+1;return this.demandGenerations.set(e,t),this.activeDemands.set(e,{generation:t,settled:!1}),t}settleDemand(e,t){let n=this.activeDemands.get(e);!n||n.generation!==t||n.settled||(n.settled=!0,this.maybeRunGraphFn?.())}failDemand(e,t,n){let r=this.activeDemands.get(e);if(!r||r.generation!==t)return;let i=this.recordSubsetError(n);this.transitionToError(`Subset demand '${e}' failed: ${i.message}`,i)}recordSubsetError(e,t=!1){let n=HC(e);return this.lastSubsetError=n,this.activeWindowOperation&&(this.activeWindowOperation.failed=!0,this.activeWindowOperation.error=n,this.orderedLoadFailed=!0),t&&this.transitionToError(`Initial subset load failed: ${n.message}`,n),n}trackSubsetLoadPromise(e){this.liveQueryCollection._sync.trackLoadPromise(e)}trackSubsetLoadOperationPromise(e){this.liveQueryCollection._sync.trackLoadSubsetOperationPromise(e)}hasActiveWindowOperation(){return this.activeWindowOperation!==void 0}getActiveWindowOperationGeneration(){return this.activeWindowOperation?.generation}scheduleGraphRunForSession(e){e!==this.syncSession||!this.currentSyncConfig||!this.currentSyncState||this.scheduleGraphRun()}trackOrderedLoadPromise(e,t=!1){if(!t&&!this.activeWindowOperation&&this.liveQueryCollection?.status!==`loading`&&this.pendingOrderedLoads.size===0)return;let n=this.syncSession;this.pendingOrderedLoads.size===0&&(this.orderedLoadFailed=!1),this.pendingOrderedLoads.add(e);let r=t=>{n!==this.syncSession||!this.pendingOrderedLoads.delete(e)||(t||(this.orderedLoadFailed=!0),!this.orderedLoadFailed&&this.pendingOrderedLoads.size===0&&this.scheduleGraphRun())};e.then(()=>r(!0),()=>r(!1))}retireDemand(e){this.activeDemands.delete(e)}hasPendingSourceRecovery(){return Object.values(this.subscriptions).some(e=>e.hasPendingTruncateReplacement)}pendingSourceRecovery(){let e=Object.values(this.subscriptions).flatMap(e=>e.pendingTruncateReplacement?[e.pendingTruncateReplacement]:[]);return e.length>0?Promise.all(e).then(()=>void 0):void 0}hasFailedSourceRecovery(){return Object.values(this.subscriptions).some(e=>e.hasFailedTruncateReplacement)}
40getSyncSession(){return this.syncSession}maybeRunGraph(e){if(!this.isGraphRunning){if(!this.currentSyncConfig||!this.currentSyncState)throw Error(`maybeRunGraph called without active sync session. This should not happen.`);this.isGraphRunning=!0;try{let t=this.syncSession,n=this.currentSyncConfig,{begin:r,commit:i}=n,a=this.currentSyncState,o=()=>t===this.syncSession&&this.currentSyncConfig===n&&this.currentSyncState===a;if(this.isInErrorState)return;if(a.subscribedToAllCollections){let t=!1,s=()=>{for(;a.graph.pendingWork();){try{a.graph.run()}catch(e){throw o()&&this.transitionToError(`Live query graph failed`,e),e}if(!o()||(e?.(),!o()))return!1;t=!0}return!0};if(!s()||!t&&(e?.(),!o())||!s()||(a.flushPendingChanges?.(),!o()))return;a.messagesCount===0&&(r(),i()),this.updateLiveQueryStatus(n)}}finally{this.isGraphRunning=!1}}}scheduleGraphRun(e,t){let n=t?.contextId??Lw()?.id??mC(),r=t?.jobId??this,i=t?.dependencies??[...this.builderDependencies];if(n)for(let e of i)typeof e.scheduleGraphRun==`function`&&e.scheduleGraphRun(void 0,{contextId:n});if(!this.currentSyncConfig||!this.currentSyncState)throw Error(`scheduleGraphRun called without active sync session. This should not happen.`);let a=n?this.pendingGraphRuns.get(n):void 0;(!a||a.syncSession!==this.syncSession)&&(a={syncSession:this.syncSession,loadCallbacks:new Set},n&&this.pendingGraphRuns.set(n,a)),e&&a.loadCallbacks.add(e);let o=n?void 0:a;uC.schedule({contextId:n,jobId:r,dependencies:i,run:()=>this.executeGraphRun(n,o)})}clearPendingGraphRun(e){this.pendingGraphRuns.delete(e)}hasPendingGraphRun(e){return this.pendingGraphRuns.has(e)}executeGraphRun(e,t){let n=t??(e?this.pendingGraphRuns.get(e):void 0);e&&this.pendingGraphRuns.delete(e),n&&(n.syncSession!==this.syncSession||!this.currentSyncConfig||!this.currentSyncState||this.maybeRunGraph(()=>cC(n.loadCallbacks)))}getSyncConfig(){return{rowUpdateMode:`full`,sync:this.syncFn.bind(this)}}syncFn(e){let t=++this.syncSession;this.liveQueryCollection=e.collection,this.isInErrorState=!1,this.fatalQueryError=!1,this.erroredSourceIds.clear(),this.lastSubsetError=void 0,this.currentSyncConfig=e;let n={messagesCount:0,subscribedToAllCollections:!1,unsubscribeCallbacks:new Set},r=!1,i=()=>{if(!r){r=!0,this.syncSession===t&&this.syncSession++;try{cC(n.unsubscribeCallbacks)}finally{n.unsubscribeCallbacks.clear(),this.clearSyncSessionState()}}};try{let t=this.extendPipelineWithChangeProcessing(e,n);this.currentSyncState=t,this.unsubscribeFromSchedulerClears=uC.onClear(e=>{this.clearPendingGraphRun(e)});let r=e.collection.on(`loadingSubset:change`,t=>{t.isLoadingSubset||(this.updateLiveQueryStatus(e),this.hasPendingSourceRecovery()&&this.maybeRunGraphFn?.())});n.unsubscribeCallbacks.add(r);let i=this.subscribeToAllCollections(e,t);this.maybeRunGraphFn=()=>this.scheduleGraphRun(i),this.scheduleGraphRun(i)}catch(e){try{i()}catch{}throw e}return i}clearSyncSessionState(){this.windowOperationGeneration++,this.currentSyncConfig=void 0,this.currentSyncState=void 0,this.maybeRunGraphFn=void 0,this.currentWindow=void 0,this.settledWindow=this.initialWindow,this.isInErrorState=!1,this.fatalQueryError=!1,this.erroredSourceIds.clear(),this.pendingGraphRuns.clear(),this.graphCache=void 0,this.inputsCache=void 0,this.pipelineCache=void 0,this.sourceWhereClausesCache=void 0,this.bucketFacadesCache=void 0,this.lazySources.clear(),this.demandGenerations.clear(),this.activeDemands.clear(),this.pendingOrderedLoads.clear(),this.orderedLoadFailed=!1,this.windowFailed=!1,this.optimizableOrderByCollections={},this.lazySourcesCallbacks={},Object.keys(this.subscriptions).forEach(e=>delete this.subscriptions[e]),this.unsubscribeFromSchedulerClears?.(),this.unsubscribeFromSchedulerClears=void 0}compileBasePipeline(){this.graphCache=new t_,this.inputsCache=Object.fromEntries(this.collectionSources.map(e=>[e.sourceId,this.graphCache.newInput()]));let e=fD(this.query,this.inputsCache,this.collections,this.subscriptions,this.lazySourcesCallbacks,this.lazySources,this.optimizableOrderByCollections,e=>{this.windowFn=e,this.currentWindow&&e(this.currentWindow)}),t=IT(e,this.config.getKey,this.hasJoins(this.query));this.pipelineCache=t.pipeline,this.sourceWhereClausesCache=e.sourceWhereClauses,this.bucketFacadesCache=t.facades;let n=this.collectionSources.map(e=>e.sourceId).filter(e=>!Object.hasOwn(this.inputsCache,e));if(n.length>0)throw new Qy(n)}maybeCompileBasePipeline(){return(!this.graphCache||!this.inputsCache||!this.pipelineCache)&&this.compileBasePipeline(),{graph:this.graphCache,inputs:this.inputsCache,pipeline:this.pipelineCache}}extendPipelineWithChangeProcessing(e,t){let{begin:n,commit:r}=e,{graph:i,inputs:a,pipeline:o}=this.maybeCompileBasePipeline(),s=new Map;o.pipe(j_(e=>{let n=e.getInner();t.messagesCount+=n.length,n.reduce(yO,s)}));let c=new mO(this.id,this.bucketFacadesCache??[],e=>{t.messagesCount+=e});return t.unsubscribeCallbacks.add(()=>c.cleanup()),t.flushPendingChanges=()=>{let t=s.size>0,i=c.hasPendingChanges();if(!t&&!i||this.windowFailed||this.orderedLoadFailed||this.hasPendingSourceRecovery()||this.pendingOrderedLoads.size>0)return;let a,o;try{a=c.flush(),o=t?e.collection._deferPublication():void 0;let i=new Map([...s].map(([e,t])=>{let n={...t,value:c.resolve(t.value)};return t.previousValue!==void 0&&(n.previousValue=c.resolve(t.previousValue)),[e,n]}));if(a.prepare(),t){n();let t;
40i.forEach(this.applyChanges.bind(this,e,n=>(t??=e.collection._state.createSyncedKeyLookup(),t(n)))),bO(i)&&xO(e.collection),r()}}catch(e){throw o?.discard(),a?.rollback(),e}s=new Map;let l;for(let e of[o?.publish,a.publish])if(e)try{e()}catch(e){l??=e}if(l!==void 0)throw l},i.finalize(),t.graph=i,t.inputs=a,t.pipeline=o,t}applyChanges(e,t,n,r){let{write:i,collection:a}=e,{deletes:o,inserts:s,value:c,orderByIndex:l}=n;if(this.resultKeys.set(c,r),l!==void 0&&this.orderByIndices.set(c,l),s&&o===0)i({value:c,type:`insert`});else if(s>o||s===o&&t(a.getKeyFromItem(c)))i({value:c,type:`update`});else if(o>0)i({value:c,type:`delete`});else throw Error(`Could not apply changes: ${JSON.stringify(n)}. This should never happen.`)}handleSourceStatusChange(e,t,n,r){let{status:i}=r;if(i===`error`){this.erroredSourceIds.add(t),this.setErrorState(`Source collection '${n}' entered error state`);return}if(i===`cleaned-up`){this.transitionToError(`Source collection '${n}' was manually cleaned up while live query '${this.id}' depends on it. Live queries prevent automatic GC, so this was likely a manual cleanup() call.`);return}i===`ready`&&this.erroredSourceIds.delete(t)&&!this.fatalQueryError&&this.erroredSourceIds.size===0&&(this.isInErrorState=!1,this.maybeRunGraphFn?.()),this.updateLiveQueryStatus(e)}updateLiveQueryStatus(e){let{markReady:t}=e;if(this.isInErrorState)return;let n=this.currentSyncState?.subscribedToAllCollections,r=this.allRequiredSourcesReady(),i=[...this.activeDemands.values()].every(e=>e.settled),a=this.liveQueryCollection?.isLoadingSubset;n&&r&&i&&!a&&t()}transitionToError(e,t){this.fatalQueryError=!0,this.setErrorState(e,t)}setErrorState(e,t){this.isInErrorState=!0,console.error(`[Live Query Error] ${e}`),this.liveQueryCollection?._lifecycle.markError(t??Error(e))}allRequiredSourcesReady(){return this.collectionSources.every(e=>this.lazySources.has(e.sourceId)&&e.collection.config.syncMode===`on-demand`||e.collection.isReady())}subscribeToAllCollections(e,t){if(this.collectionSources.length===0)throw Error(`Query '${this.id}' has no collection sources. This should not happen; please report.`);let n=this.collectionSources.map(n=>{let{sourceId:r,alias:i,collection:a}=n,o=a.id,s=$w(a);s&&s!==this&&this.builderDependencies.add(s);let c=new fO(r,i,a,this),l=a.on(`status:change`,t=>{this.handleSourceStatusChange(e,r,o,t)});t.unsubscribeCallbacks.add(l),a.status===`error`&&this.handleSourceStatusChange(e,r,o,{type:`status:change`,collection:a,status:`error`,previousStatus:`error`});let u=c.subscribe();this.subscriptions[r]=u;let d=this.lazySourcesCallbacks[r];if(d){d.setDemand=(e,t)=>c.setDemand(u,e,t);for(let e of d.plans??[])e.initialKeys.size>0&&d.setDemand(e,e.initialKeys)}return c.loadMoreIfNeeded.bind(c,u)});return t.subscribedToAllCollections=!0,()=>cC(n)}};function vO(e){return(t,n)=>{let r=e.get(t),i=e.get(n);return r&&i?r<i?-1:+(r>i):0}}function yO(e,[[t,n],r]){let[i,a]=n,o=e.get(t)||{deletes:0,inserts:0,value:i,orderByIndex:a};return r<0?(o.deletes+=Math.abs(r),o.previousValue=i,o.previousOrderByIndex=a):r>0&&(o.inserts+=r,o.value=i,a!==void 0&&(o.orderByIndex=a)),e.set(t,o),e}function bO(e){for(let t of e.values())if(t.inserts>0&&t.deletes>0&&t.previousValue!==void 0&&tb(t.previousValue,t.value)&&t.orderByIndex!==t.previousOrderByIndex)return!0;return!1}function xO(e){e._markLayoutChange()}function SO(e){return new _O(e).getConfig()}function CO(e){if(typeof e==`function`)return wO(SO({query:e}));{let t=e,n=SO(t);return t.utils&&Object.defineProperties(n.utils,Object.getOwnPropertyDescriptors(t.utils)),wO(n)}}function wO(e){let t=Gw(e),n=Zw(e);return n&&Qw(t,n),t}function TO(e){return typeof e==`object`&&!!e&&typeof e.subscribeChanges==`function`&&typeof e.startSyncImmediate==`function`&&typeof e.id==`string`}function EO(e){return e.config?.singleResult===!0}function DO(e){return{isLoading:e===`loading`,isReady:e===`ready`,isIdle:e===`idle`,isError:e===`error`,isCleanedUp:e===`cleaned-up`}}var OO={state:void 0,data:void 0,collection:void 0,layoutRevision:0,status:`disabled`,isLoading:!1,isReady:!0,isIdle:!1,isError:!1,isCleanedUp:!1,isEnabled:!1},kO=class{constructor(e,t,n,r,i){this.snapshotDirty=!0,this.cachedSnapshot=OO,this.layoutRevision=0,this.subscriptions=new Set,this.publicationQueue=[],this.dispatching=!1,this.blockDelivery=!1,this.attached=!1,this.collectionUnsub=null,this.hasHydrationError=!1,this.liveResultIsAuthoritative=!1,this.handoffScheduled=!1,this.disposed=!1,this.collection=e,this.wholesale=t,this.client=n,this.queryHash=r,this.onPreload=i,this.registerClientResource()}getSnapshot(){let e=this.collection;if(!e)return OO;if(this.syncHydrationState(),this.attached||this.refreshDetachedState(e),this.snapshotDirty){let t=this.getVisibleEntries(e),n=new Map(t),r=t.map(([,e])=>e),i=EO(e),a=this.visibleStatus??e.status,o=this.hasHydrationError||a===`error`?`error`:this.hasHydrationSeed()?`ready`:a,s=this.lastLayoutKeys,c=s===void 0||s.length!==t.length;if(!c){for(let e=0;e<t.length;e++)if(s[e]!==t[e][0]){c=!0;break}}c&&(this.lastLayoutKeys=t.map(([e])=>e),this.layoutRevision++),this.cachedSnapshot={state:n,data:i?r[0]:r,collection:e,layoutRevision:this.layoutRevision,status:o,...DO
40(o),isEnabled:!0},this.snapshotDirty=!1}return this.cachedSnapshot}getServerSnapshot(){return this.getSnapshot()}getError(){return this.syncHydrationState(),this.hasHydrationError?this.hydrationError:void 0}dehydrate(){let e=this.collection;return e?{rows:(this.hasHydrationSeed()?this.hydrationSeed.entries:this.readEntries(e).entries).map(([e,t])=>({key:e,value:t}))}:{rows:[]}}hasHydrationSeed(){return this.hydrationSeed!==void 0&&!this.liveResultIsAuthoritative}getVisibleEntries(e){return this.hasHydrationSeed()?this.hydrationSeed.entries:this.cachedEntries??this.captureEntries(e).entries}syncHydrationState(){if(!this.client||!this.queryHash||this.liveResultIsAuthoritative)return!1;let e=this.client._getLiveQuery(this.queryHash);if(!e)return!1;if(this.attached&&!this.hydrationSeed&&this.collection?.status===`ready`&&!this.collection.isLoadingSubset)return this.markLiveResultAuthoritative(e.dehydratedAt);if(e.status===`error`){let t=!this.hasHydrationError||this.hydrationError!==e.error;return this.hydrationError=e.error,this.hasHydrationError=!0,t&&(this.snapshotDirty=!0),t}return e.status!==`success`||!e.snapshot||this.hydrationSeed&&this.hydrationSeed.dehydratedAt>=e.dehydratedAt?!1:(this.hydrationSeed={dehydratedAt:e.dehydratedAt,entries:e.snapshot.rows.map(e=>[e.key,e.value])},this.hydrationError=void 0,this.hasHydrationError=!1,this.snapshotDirty=!0,!0)}diffEntries(e,t){let n=new Map(e),r=new Map(t),i=[];for(let[t,n]of e)r.has(t)||i.push({type:`delete`,key:t,value:n});for(let[e,r]of t){let t=n.get(e);t===void 0?i.push({type:`insert`,key:e,value:r}):t!==r&&i.push({type:`update`,key:e,value:r,previousValue:t})}return i}handoffHydrationSeed(e){let t=this.hydrationSeed?.entries??[],n=this.hydrationSeed?.dehydratedAt,{entries:r,revision:i}=this.readEntries(e);return this.hydrationSeed=void 0,this.markLiveResultAuthoritative(n),this.updateCachedEntries(r,i),this.snapshotDirty=!0,{changes:this.diffEntries(t,r),entries:r,revision:i}}markLiveResultAuthoritative(e){let t=this.hasHydrationError;return this.hydrationError=void 0,this.hasHydrationError=!1,this.liveResultIsAuthoritative=!0,e!==void 0&&this.queryHash&&this.client?._consumeLiveQueryResult(this.queryHash,e),t&&(this.snapshotDirty=!0),t}scheduleHydrationHandoff(){this.handoffScheduled||(this.handoffScheduled=!0,queueMicrotask(()=>{this.handoffScheduled=!1;let e=this.collection;if(this.disposed||!this.attached||!e||!this.hasHydrationSeed()||e.status!==`ready`||e.isLoadingSubset)return;let t=this.handoffHydrationSeed(e);this.emit(this.wholesale?void 0:t.changes,void 0,t.entries,e.status,t.revision,this.getCollectionLayoutRevision(e),!0)}))}getCollectionRevision(e){let t=e._stateRevision;return typeof t==`number`?t:void 0}getCollectionLayoutRevision(e){let t=e._layoutRevision;return typeof t==`number`?t:void 0}readEntries(e){return{entries:Array.from(e.entries()),revision:this.getCollectionRevision(e)}}captureEntries(e){let{entries:t,revision:n}=this.readEntries(e);return this.updateCachedEntries(t,n),{entries:t,revision:n}}updateCachedEntries(e,t){let n=t===void 0?!this.entriesEqual(this.cachedEntries,e):this.cachedEntries===void 0||t!==this.cachedCollectionRevision;this.cachedEntries=e,this.cachedCollectionRevision=t,n&&(this.snapshotDirty=!0)}entriesEqual(e,t){return!e||e.length!==t.length?!1:e.every(([e,n],r)=>t[r][0]===e&&t[r][1]===n)}refreshDetachedState(e){let t=e.status,n=this.getCollectionRevision(e),r=this.getCollectionLayoutRevision(e);if(n!==void 0)(this.cachedEntries===void 0||n!==this.cachedCollectionRevision||r!==this.cachedCollectionLayoutRevision)&&(this.captureEntries(e),this.cachedCollectionLayoutRevision=r,this.snapshotDirty=!0);else{let t=Array.from(e.entries());this.updateCachedEntries(t,void 0)}this.visibleStatus!==t&&(this.visibleStatus=t,this.snapshotDirty=!0)}subscribe(e){if(this.disposed)throw new Mv;let t={listener:e,active:!0};return this.subscriptions.add(t),this.subscriptions.size===1?this.attach():this.wholesale||this.seed(t),()=>{t.active&&(t.active=!1,this.subscriptions.delete(t),this.subscriptions.size===0&&this.detach())}}seed(e){let t=this.collection;if(!t)return;let n=[];for(let[e,r]of this.getVisibleEntries(t))n.push({type:`insert`,key:e,value:r});
40n.length!==0&&this.emit(n,[e])}attach(){let e=this.collection;if(!e||this.disposed)return;this.registerClientResource(),this.syncHydrationState(),this.refreshDetachedState(e),this.attached=!0,this.visibleStatus??=e.status,this.deliveredLayoutRevision=this.getCollectionLayoutRevision(e);let t=this.hasHydrationSeed();this.blockDelivery=this.wholesale||t;let n=(t,n=e.status,r=!1)=>{if(this.disposed||this.subscriptions.size===0||this.hasHydrationSeed()&&(n===`ready`&&this.scheduleHydrationHandoff(),n!==`error`))return;if(n===`ready`&&!e.isLoadingSubset&&!this.liveResultIsAuthoritative&&this.client&&this.queryHash){let e=this.client._getLiveQuery(this.queryHash);this.markLiveResultAuthoritative(e?.dehydratedAt)}let i=this.getCollectionLayoutRevision(e),a=r;if(!r&&t!==void 0&&t.length===0){if(i===void 0||i===this.deliveredLayoutRevision)return;a=!0}t!==void 0&&i!==void 0&&(this.deliveredLayoutRevision=i);let o=t===void 0?n===`cleaned-up`?this.readEntries(e):void 0:this.readEntries(e);this.emit(t,void 0,o?.entries,n,o?.revision,i,a)},r=e.on(`status:change`,({status:e})=>n(void 0,e)),i=e._subscribeLayoutChanges,a=typeof i==`function`?i.call(e,()=>n([],e.status,!0)):()=>{},o=null,s=this.client&&this.queryHash?this.client.subscribe(t=>{if(t.type===`liveQueryStreamError`||t.query.queryHash!==this.queryHash)return;let n=this.getVisibleEntries(e);if(!this.syncHydrationState())return;let r=this.getVisibleEntries(e);this.emit(this.wholesale?void 0:this.diffEntries(n,r))}):()=>{},c=()=>{s(),r(),a(),o?.unsubscribe()};if(this.collectionUnsub=c,o=e.subscribeChanges(e=>n(e),{includeInitialState:!this.wholesale&&!t}),this.blockDelivery=!1,this.collectionUnsub!==c){o.unsubscribe();return}if(this.wholesale||t){this.flushPublications(!this.wholesale);let{entries:t,revision:n}=this.readEntries(e);this.updateCachedEntries(t,n)}this.hasHydrationSeed()&&(this.wholesale||this.seed(Array.from(this.subscriptions)[0]),e.status===`ready`&&this.scheduleHydrationHandoff())}detach(){this.collectionUnsub?.(),this.collectionUnsub=null,this.attached=!1,this.blockDelivery=!1,this.publicationQueue.length=0,this.unregisterClientResource?.(),this.unregisterClientResource=void 0}registerClientResource(){this.unregisterClientResource||!this.client?._isSsrServerCleanupEnabled()||!this.collection||!Zw(this.collection.config)||(this.unregisterClientResource=this.client._registerLiveQueryResource(this,async()=>{let e=this.collection;this.dispose(),await e?.cleanup()}))}emit(e,t=Array.from(this.subscriptions),n,r=this.collection?.status??`cleaned-up`,i,a,o=!1){this.publicationQueue.push({changes:e,targets:t,entries:n,status:r,collectionRevision:i,collectionLayoutRevision:a,layoutChanged:o}),!(this.dispatching||this.blockDelivery)&&this.flushPublications()}flushPublications(e=!0){if(this.dispatching)return;let t;this.dispatching=!0;try{for(;this.publicationQueue.length>0;){let n=this.publicationQueue.shift();if(n.entries&&this.updateCachedEntries(n.entries,n.collectionRevision),n.collectionLayoutRevision!==void 0&&(this.cachedCollectionLayoutRevision=n.collectionLayoutRevision),n.layoutChanged&&(this.snapshotDirty=!0),this.visibleStatus!==n.status&&(this.visibleStatus=n.status,this.snapshotDirty=!0),e)for(let e of n.targets){if(this.disposed)break;try{e.listener(n.changes)}catch(e){t??={error:e}}}}}finally{this.dispatching=!1}if(t)throw t.error}preload(){if(this.preloadPromise)return this.preloadPromise;if(this.client&&this.queryHash){let e=this.client._getLiveQuery(this.queryHash);if(e?.status===`pending`)return e.promise;if(e?.status===`success`)return Promise.resolve()}this.registerClientResource(),this.onPreload?.();let e=this.collection?.preload()??Promise.resolve(),t=this.client?._isSsrStreamingEnabled()&&this.queryHash?this.client._registerLiveQuery(this.queryHash,e.then(()=>this.dehydrate())):e;this.preloadPromise=t;let n=()=>{this.preloadPromise===t&&(this.preloadPromise=void 0)};return t.then(n,n),t}dispose(){if(!this.disposed){this.disposed=!0,this.detach();for(let e of this.subscriptions)e.active=!1;this.subscriptions.clear(),this.publicationQueue.length=0}}};function AO(e,t={}){return new kO(e??null,t.mode===`wholesale`,t.client,t.queryHash,t.onPreload)}
40var jO=class extends Error{constructor(e,t){super(`Query IR is not stably hashable at ${e}: ${t}`),this.path=e,this.reason=t,this.name=`UnhashableQueryIRError`}};function MO(e){return FO(e)}function NO(e){return MO($T(e))}function PO(e,t=`value`){return JSON.stringify(tk(e,t,new WeakSet))}function FO(e){return JSON.stringify(LO(e))}function IO(e){if(e.where===void 0&&!e.orderBy?.length&&e.limit===void 0&&(e.offset===void 0||e.offset===0)&&e.cursor===void 0)return;let t=new WeakSet,n={type:`loadSubsetDemand`,query:UO(e,`loadSubset`,t)};if(e.limit!==void 0&&(n.limit=tk(e.limit,`loadSubset.limit`,t)),e.offset!==void 0&&e.offset!==0&&(n.offset=tk(e.offset,`loadSubset.offset`,t)),e.cursor!==void 0){let r={whereFrom:XO(e.cursor.whereFrom,`loadSubset.cursor.whereFrom`,t,`exact-output`),whereCurrent:XO(e.cursor.whereCurrent,`loadSubset.cursor.whereCurrent`,t,`exact-output`)};e.cursor.lastKey!==void 0&&(r.lastKey=tk(e.cursor.lastKey,`loadSubset.cursor.lastKey`,t)),n.cursor=r}return JSON.stringify(n)}function LO(e){return BO(e,`query`,new WeakSet)}function RO(e,t){let n=new Map,r=e=>{if(e.type===`unionFrom`){e.sources.forEach(r);return}e.type!==`unionAll`&&(n.has(e.alias)||n.set(e.alias,n.size))};return r(e.from),e.join?.forEach(({from:e})=>r(e)),{bindings:n,hasUnqualifiedOutput:e.from.type===`unionAll`,parent:t}}function zO(e,t){let n=e,r=0;for(;n;){let e=n.bindings.get(t);if(e!==void 0)return[r,e];if(n.hasUnqualifiedOutput)return;n=n.parent,r++}}function BO(e,t,n,r){return VO(e,t,n,RO(e,r))}function VO(e,t,n,r){if(e.fnSelect)throw new jO(`${t}.fnSelect`,`function select`);if(e.fnWhere?.length)throw new jO(`${t}.fnWhere`,`function where`);if(e.fnHaving?.length)throw new jO(`${t}.fnHaving`,`function having`);let i={type:`query`,from:GO(e.from,`${t}.from`,n,r)};return e.select&&(i.select=KO(e.select,`${t}.select`,n,r)),!e.select&&(e.from.type===`unionFrom`||e.join!==void 0||e.groupBy!==void 0)&&(i.implicitOutput={type:`namespaced`,aliases:Array.from(r.bindings.keys())}),e.join&&(i.join=e.join.map((e,i)=>WO(e,`${t}.join[${i}]`,n,r))),e.where&&(i.where=HO(e.where,`${t}.where`,n,r)),e.groupBy&&(i.groupBy=e.groupBy.map((e,i)=>XO(e,`${t}.groupBy[${i}]`,n,`exact-output`,r))),e.having&&(i.having=HO(e.having,`${t}.having`,n,r)),e.orderBy&&(i.orderBy=e.orderBy.map((e,i)=>YO(e,`${t}.orderBy[${i}]`,n,`ordering-operand`,r))),e.limit!==void 0&&(i.limit=tk(e.limit,`${t}.limit`,n)),e.offset!==void 0&&e.offset!==0&&(i.offset=tk(e.offset,`${t}.offset`,n)),e.distinct&&(i.distinct=!0),e.singleResult&&(i.singleResult=!0),i}function HO(e,t,n,r){let i=e.map((e,i)=>JO(e,`${t}[${i}]`,n,r));return i.sort(ak),i.filter((e,t)=>t===0||ak(e,i[t-1])!==0)}function UO(e,t,n){let r={type:`loadSubsetQuery`};return e.where!==void 0&&(r.where=XO(e.where,`${t}.where`,n,`exact-output`)),e.orderBy?.length&&(r.orderBy=e.orderBy.map((e,r)=>YO(e,`${t}.orderBy[${r}]`,n,`ordering-operand`))),r}function WO(e,t,n,r){return{type:e.type,from:GO(e.from,`${t}.from`,n,r),left:XO(e.left,`${t}.left`,n,`equality-operand`,r),right:XO(e.right,`${t}.right`,n,`equality-operand`,r)}}function GO(e,t,n,r){return e.type===`collectionRef`?{type:`collectionRef`,collectionId:tk(e.collection.id,`${t}.collection.id`,n)}:e.type===`unionFrom`?{type:`unionFrom`,sources:e.sources.map((e,i)=>GO(e,`${t}.sources[${i}]`,n,r))}:e.type===`unionAll`?{type:`unionAll`,queries:e.queries.map((e,i)=>BO(e,`${t}.queries[${i}]`,n,r.parent))}:{type:`queryRef`,query:BO(e.query,`${t}.query`,n,r)}}function KO(e,t,n,r){return{type:`select`,fields:Object.keys(e).sort().map(i=>[i,qO(e[i],`${t}.${i}`,n,r)])}}function qO(e,t,n,r){return xC(e)?XO(bC(e),t,n,`exact-output`,r):lk(e)?XO(e,t,n,`exact-output`,r):Qx(e)?KO(e,t,n,r):nk(e,t,n)}function JO(e,t,n,r){if(ck(e)){let i={type:`where`,expression:XO(e.expression,`${t}.expression`,n,`exact-output`,r)};return e.residual===!0&&(i.residual=!0),i}return XO(e,t,n,`exact-output`,r)}function YO(e,t,n,r=`exact-output`,i){return{expression:XO(e.expression,`${t}.expression`,n,r,i),compareOptions:tk(e.compareOptions,`${t}.compareOptions`,n)}}function XO(e,t,n,r=`exact-output`,i){if(e.type===`ref`){let r=zO(i,e.path[0]??``);return{type:`ref`,path:r===void 0?e.path.map((e,r)=>tk(e,`${t}.path[${r}]`,n)):[[`binding`,...r],...e.path.slice(1).map((e,r)=>tk(e,`${t}.path[${r+1}]`,n))]}}if(e.type===`val`)return{type:`val`,value:r===`equality-operand`?rk(e.value,`${t}.value`,n,i):r===`ordering-operand`?ik(e.value,`${t}.value`,n):nk(e.value,`${t}.value`,n)};if(e.type===`func`){if(e.name===`in`&&e.args.length===2&&e.args[1]?.type===`val`&&Array.isArray(e.args[1].value)){let r=e.args[1].value.map((e,r)=>rk(e,`${t}
40.args[1].value[${r}]`,n,i));return ZO(e.name,[XO(e.args[0],`${t}.args[0]`,n,`equality-operand`,i),{type:`val`,value:[`set`,QO(r)]}])}let r=e.name===`eq`?`equality-operand`:e.name===`gt`||e.name===`gte`||e.name===`lt`||e.name===`lte`?`ordering-operand`:`exact-output`,a=e.args.map((e,a)=>XO(e,`${t}.args[${a}]`,n,r,i));return ZO(e.name,a)}if(e.type===`agg`)return{type:`agg`,name:e.name,args:e.args.map((e,r)=>XO(e,`${t}.args[${r}]`,n,`exact-output`,i))};if(e.type===`conditionalSelect`){let r={type:`conditionalSelect`,branches:e.branches.map((e,r)=>({condition:XO(e.condition,`${t}.branches[${r}].condition`,n,`exact-output`,i),value:qO(e.value,`${t}.branches[${r}].value`,n,i)}))};return e.defaultValue!==void 0&&(r.defaultValue=qO(e.defaultValue,`${t}.defaultValue`,n,i)),r}let a=RO(e.query,i),o={type:`includesSubquery`,query:VO(e.query,`${t}.query`,n,a),correlationField:XO(e.correlationField,`${t}.correlationField`,n,`equality-operand`,i),childCorrelationField:XO(e.childCorrelationField,`${t}.childCorrelationField`,n,`equality-operand`,a),fieldName:e.fieldName,materialization:e.materialization};return e.parentFilters&&(o.parentFilters=e.parentFilters.map((e,r)=>JO(e,`${t}.parentFilters[${r}]`,n,i))),e.parentProjection&&(o.parentProjection=e.parentProjection.map((e,r)=>XO(e,`${t}.parentProjection[${r}]`,n,`exact-output`,i))),e.scalarField!==void 0&&(o.scalarField=e.scalarField),o}function ZO(e,t){return(e===`and`||e===`or`)&&t.length>0?{type:`func`,name:e,args:QO(t.flatMap(t=>$O(t,e)?t.args:[t]))}:e===`eq`&&t.length===2?(t.sort(ak),{type:`func`,name:e,args:t}):(e===`gt`||e===`gte`||e===`lt`||e===`lte`)&&t.length===2&&ak(t[0],t[1])>0?{type:`func`,name:ek(e),args:[t[1],t[0]]}:{type:`func`,name:e,args:t}}function QO(e){let t=e.map(e=>({key:JSON.stringify(e),value:e}));return t.sort((e,t)=>e.key<t.key?-1:+(e.key>t.key)),t.filter((e,n)=>n===0||e.key!==t[n-1].key).map(e=>e.value)}function $O(e,t){return typeof e==`object`&&!!e&&!Array.isArray(e)&&e.type===`func`&&e.name===t&&Array.isArray(e.args)}function ek(e){switch(e){case`gt`:return`lt`;case`gte`:return`lte`;case`lt`:return`gt`;case`lte`:return`gte`}}function tk(e,t,n){if(e===null)return[`null`];if(typeof e==`string`)return[`string`,e];if(typeof e==`boolean`)return[`boolean`,e];if(typeof e==`number`)return Number.isNaN(e)?[`number`,`NaN`]:e===1/0?[`number`,`Infinity`]:e===-1/0?[`number`,`-Infinity`]:Object.is(e,-0)?[`number`,`-0`]:[`number`,e];if(e===void 0)return[`undefined`];if(typeof e==`bigint`)return[`bigint`,e.toString()];if(typeof e==`function`)throw new jO(t,`function value`);if(typeof e==`symbol`)throw new jO(t,`symbol value`);if(xC(e))return XO(bC(e),t,n);if(Array.isArray(e))return sk(e,t,n,()=>[`array`,e.map((e,r)=>tk(e,`${t}[${r}]`,n))]);if(e instanceof Date){let n=e.getTime();if(Number.isNaN(n))throw new jO(t,`invalid Date`);return[`Date`,e.toISOString()]}if(e instanceof ArrayBuffer)return[`binary`,`ArrayBuffer`,Array.from(new Uint8Array(e))];if(ArrayBuffer.isView(e))return[`binary`,e.constructor.name,Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))];if(e instanceof Map)return sk(e,t,n,()=>{let r=Array.from(e.entries(),([e,r],i)=>[tk(e,`${t}.key[${i}]`,n),tk(r,`${t}.value[${i}]`,n)]);return r.sort(ak),[`Map`,r]});if(e instanceof Set)return sk(e,t,n,()=>{let r=Array.from(e,(e,r)=>tk(e,`${t}[${r}]`,n));return r.sort(ak),[`Set`,r]});if(Qx(e))return ok(e,t,n);throw new jO(t,`non-plain object value`)}function nk(e,t,n){return typeof e==`object`&&e||typeof e==`function`||typeof e==`symbol`?ub(e):tk(e,t,n)}function rk(e,t,n,r){if(xC(e))return XO(bC(e),t,n,`equality-operand`,r);if(typeof e==`number`&&Object.is(e,-0))return tk(0,t,n);if(typeof Buffer<`u`&&e instanceof Buffer||e instanceof Uint8Array)return[`binary`,`Uint8Array`,Array.from(e)];let i=Tb(e);return i===e?typeof e==`object`&&e||typeof e==`function`||typeof e==`symbol`?ub(e):tk(e,t,n):tk(i,t,n)}function ik(e,t,n){if(typeof e==`number`&&Object.is(e,-0))return tk(0,t,n);if(e instanceof Date&&Number.isNaN(e.getTime()))return tk(NaN,t,n);let r=Tb(e);if(r!==e&&!(e instanceof Uint8Array))return tk(r,t,n);
40try{return tk(e,t,n)}catch(t){if(t instanceof jO&&typeof e==`object`&&e)return ub(e);throw t}}function ak(e,t){let n=JSON.stringify(e),r=JSON.stringify(t);return n<r?-1:+(n>r)}function ok(e,t,n){return sk(e,t,n,()=>[`object`,Object.keys(e).sort().map(r=>[r,tk(e[r],`${t}.${r}`,n)])])}function sk(e,t,n,r){if(n.has(e))throw new jO(t,`circular value`);n.add(e);try{return r()}finally{n.delete(e)}}function ck(e){return`expression`in e}function lk(e){if(typeof e!=`object`||!e)return!1;let t=e.type;return t===`agg`||t===`conditionalSelect`||t===`func`||t===`ref`||t===`val`||t===`includesSubquery`}function uk(e,t){return new tE({},e?n=>{let r=e._materializeCollectionForRender(n);return r._deferSyncStart()&&t.add(r),r}:void 0)}function dk(e,t,n){if(typeof e==`function`)return dk(e(uk(t,n)),t,n);if(e&&typeof e==`object`&&!TO(e)&&!(e instanceof tE)&&`query`in e){let{query:r,queryKey:i,client:a,...o}=e,s=typeof r==`function`?r(uk(t,n)):r;return s==null?s:{...o,query:s}}return e}function fk(e){if(TO(e))return[`collection`,e.id];if(e instanceof tE)return[`query`,NO(e)];if(e&&typeof e==`object`&&`query`in e){let t=e;return[`config`,fk(t.query),[`getKey`,t.getKey],[`schema`,t.schema],[`singleResult`,t.singleResult===!0],[`defaultStringCollation`,t.defaultStringCollation]]}return e==null?[`disabled`]:[`value`,e]}var pk=Symbol.for(`@tanstack/db.collectionConfig.factory`);function mk(e,t){return Object.defineProperty(e,pk,{value:t,enumerable:!1}),e}function hk(e,t,n){try{e.stringify(t)}catch(e){throw new Vy(n,e instanceof Error?e.message:String(e))}}function gk(){return yv()}function _k(e){return typeof e==`number`?`n:${e}`:`s:${e}`}function vk(e){return e.startsWith(`n:`)?Number(e.slice(2)):e.startsWith(`s:`)?e.slice(2):e}function yk(){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 bk(){return{addEventListener:()=>{},removeEventListener:()=>{}}}function xk(e){if(!e.storageKey)throw new Uy;let t=e.storage||(typeof window<`u`?window.localStorage:null)||yk(),n=e.storageEventApi||(typeof window<`u`?window:null)||bk(),r=e.parser||JSON,i=new Map,a=Ck(e.storageKey,t,n,r,e.getKey,i),o=n=>{try{let i={};n.forEach((e,t)=>{i[_k(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=e=>{let t=new Map(i);for(let n of e)n.type===`delete`?t.delete(n.key):t.set(n.key,{versionKey:gk(),data:n.modified});o(t),i.clear();for(let[e,n]of t)i.set(e,n);a.confirmOperationsSync(e)},u=async t=>{t.transaction.mutations.forEach(e=>{hk(r,e.modified,`insert`)});let n={};return e.onInsert&&(n=await e.onInsert(t)??{}),l(t.transaction.mutations),n},d=async t=>{t.transaction.mutations.forEach(e=>{hk(r,e.modified,`update`)});let n={};return e.onUpdate&&(n=await e.onUpdate(t)??{}),l(t.transaction.mutations),n},f=async t=>{let n={};return e.onDelete&&(n=await e.onDelete(t)??{}),l(t.transaction.mutations),n},{storageKey:p,storage:m,storageEventApi:h,onInsert:g,onUpdate:_,onDelete:v,id:y,...b}=e,x=y??`local-collection:${e.storageKey}`,S=e=>{let t=e.mutations.filter(e=>a.collection&&e.collection===a.collection?!0:e.collection.id===x);if(t.length!==0){for(let e of t)switch(e.type){case`insert`:case`update`:hk(r,e.modified,e.type);break;case`delete`:hk(r,e.original,e.type);break}l(t)}};return mk({...b,id:x,sync:a,onInsert:u,onUpdate:d,onDelete:f,utils:{clearStorage:s,getStorageSize:c,acceptMutations:S}},()=>xk({...e,id:x}))}function Sk(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=vk(t);a.set(r,e)}else throw new Wy(e,t)});else throw new Gy(e);return a}catch(t){return console.warn(`[LocalStorageCollection] Error loading data from storage key "${e}":`,t),new Map}}function Ck(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=Sk(e,t,r),u=c(a,l);u.length>0&&(n(),u.forEach(({type:e,value:t})=>{t&&(hk(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=Sk(e,t,r);p.size>
400&&(c(),p.forEach(e=>{hk(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 wk=new Set,Tk=new Set,Ek=new WeakSet;function Dk(e){Ek.add(e)}function Ok(e){return Ek.has(e)}var kk=null;function Ak(e){kk=e}function jk(e){let t=e;for(let n of[`insert`,`update`,`delete`]){if(typeof t[n]!=`function`)continue;let r=t[n].bind(e);t[n]=(...e)=>{try{return r(...e)}catch(e){throw kk?.(e),e}}}}function Mk(e){e.utils?.clearStorage?.(),e.cleanup()}var Nk=(e=>{let t=Gw(e);return Tk.add(t),jk(t),wk.add(()=>Mk(t)),t});function Pk(){for(let e of wk)e()}function Fk(){return Tk}function Ik(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:${Lk}`}var Lk=`all-contacts`,Rk=`tabs`,zk=`sidebar`,Bk=`appearance`,Vk=`network`,Hk=`dex:preferences`;function Uk(e){return`s:${e}`}var Wk=null;function Gk(){return Wk??=Kk(),Wk}function Kk(){return Nk(xk({storageKey:Hk,getKey:e=>e.scope}))}var qk=`dark`,Jk=`dex:theme`,Yk=`(prefers-color-scheme: dark)`,Xk=`system`;function Zk(e){return e===`light`||e===`dark`||e===`system`}function Qk(){try{let e=Gk().get(Bk)?.theme;return Zk(e)?e:Xk}catch{return Xk}}async function $k(e){let t=Gk();await(t.has(`appearance`)?t.update(Bk,t=>{t.theme=e}):t.insert({scope:Bk,theme:e})).isPersisted.promise}function eA(){let e;try{e=window.localStorage.getItem(Jk)}catch{return}if(e!==null){try{window.localStorage.removeItem(Jk)}catch{}Zk(e)&&Gk().get(`appearance`)?.theme===void 0&&$k(e).catch(()=>{})}}function tA(){try{return window.matchMedia(Yk).matches}catch{return!1}}function nA(e,t){return e===`system`?t?`dark`:`light`:e}var rA=[`light`,`dark`,`system`];function iA(e){return rA[(rA.indexOf(e)+1)%rA.length]??rA[0]}var aA={preference:`system`,resolved:`light`,hydrated:!1},oA=aA,sA=new Set,cA=!1;function lA(){for(let e of sA)e()}function uA(e){let t=e??Qk(),n=nA(t,tA());oA.hydrated&&oA.preference===t&&oA.resolved===n||(oA={preference:t,resolved:n,hydrated:!0},lA())}function dA(){if(!(cA||typeof window>`u`)){cA=!0;try{let e=Gk();e.startSyncImmediate(),eA(),e.subscribeChanges(()=>uA())}catch{}uA();try{let e=window.matchMedia(Yk),t=()=>uA(oA.preference);typeof e.addEventListener==`function`?e.addEventListener(`change`,t):typeof e.addListener==`function`&&e.addListener(t)}catch{}}}function fA(e){return dA(),sA.add(e),()=>sA.delete(e)}function pA(){return dA(),oA}function mA(){return aA}function hA(e){uA(e),$k(e).catch(()=>{uA(e)})}function gA(){return(0,U.useSyncExternalStore)(fA,pA,mA)}function _A(e){typeof document>`u`||document.documentElement.classList.toggle(qk,e===`dark`)}var vA=`(function(){try{ 41var p=window.location.pathname.toLowerCase(); 42if(!(p==='/app'||p.indexOf('/app/')===0))return; 43if(p==='/app/auth'||p.indexOf('/app/auth/')===0)return; 44var s=null;try{ 45var r=window.localStorage.getItem('${Hk}'); 46var v=r?JSON.parse(r)['${Uk(Bk)}']:null; 47s=v&&v.data?v.data.theme:window.localStorage.getItem('${Jk}'); 48}catch(e){} 49var d=s==='dark'||(s!=='light'&&window.matchMedia('${Yk}').matches); 50if(d)document.documentElement.classList.add('${qk}'); 51}catch(e){}})();`,yA=`/assets/styles-D78IYqD5.css`,bA=te()({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:yA},{rel:`icon`,href:`/favicon.png`,type:`image/png`}]}),shellComponent:xA});function xA(e){let t=(0,J.c)(9),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`head`,{children:[(0,W.jsx)(`script`,{dangerouslySetInnerHTML:{__html:Dp}}),(0,W.jsx)(`script`,{dangerouslySetInnerHTML:{__html:be}}),(0,W.jsx)(`script`,{dangerouslySetInnerHTML:{__html:vA}}),(0,W.jsx)(Uu,{})]}),i=(0,W.jsx)(SA,{}),a=(0,W.jsx)(EA,{}),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,W.jsx)(_h,{children:(0,W.jsx)(OA,{children:n})}),t[3]=n,t[4]=o);let s,c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(Gp,{}),c=(0,W.jsx)(Gu,{}),t[5]=s,t[6]=c):(s=t[5],c=t[6]);let l;return t[7]===o?l=t[8]:(l=(0,W.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[r,(0,W.jsxs)(`body`,{children:[i,a,o,s,c]})]}),t[7]=o,t[8]=l),l}function SA(){let e=(0,J.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:CA},e[0]=t):t=e[0];let n=Lu(t),{resolved:r,hydrated:i}=gA(),a,o;return e[1]!==i||e[2]!==r||e[3]!==n?(a=()=>
51{if(!i)return;let e=n?r:null;_A(e),pe()?.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]),TA(a,o),null}function CA(e){return zh(e.matches.map(wA))}function wA(e){return e.routeId}var TA=typeof window>`u`?U.useEffect:U.useLayoutEffect;function EA(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,U.useEffect)(DA,t),null}function DA(){Th()}function OA(e){let t=(0,J.c)(9),{children:n}=e,r;if(t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:kA},t[0]=r):r=t[0],Lu(r)){let e;return t[1]===n?e=t[2]:(e=(0,W.jsx)(W.Fragment,{children:n}),t[1]=n,t[2]=e),e}let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,W.jsx)(ah,{}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,W.jsx)(`main`,{children:n}),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,W.jsx)(vm,{}),t[6]=o):o=t[6];let s;return t[7]===a?s=t[8]:(s=(0,W.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[i,a,o]}),t[7]=a,t[8]=s),s}function kA(e){return e.matches.some(AA)}function AA(e){return Oh(e.routeId)}var jA=`${Ct}/#organization`,MA=`${Ct}/#website`,NA=`${Ct}/#software`,PA={"@id":jA},FA={"@type":`Organization`,"@id":jA,name:`Dex`,legalName:`Dana HQ Inc.`,url:Ct,logo:`${Ct}/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`,st,ot,Tt.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:It.map(e=>({"@type":`Certification`,name:e}))};function IA(e){let t=e.startsWith(`/`)?e:`/${e}`;return`${Ct}${t.endsWith(`/`)?t:`${t}/`}`}function LA(e){return e.toFixed(2)}var RA={annual:`Annual billing`,quarterly:`Quarterly billing`,monthly:`Monthly billing`};function zA(e){return{"@type":`Offer`,"@id":`${Ct}/pricing/#${e.slug}`,name:`Dex ${e.name}`,description:e.summary,url:IA(`/pricing`),category:`subscription`,price:LA(e.prices.annual),priceCurrency:`USD`,availability:`https://schema.org/InStock`,seller:PA,priceSpecification:Object.keys(RA).map(t=>({"@type":`UnitPriceSpecification`,name:RA[t],price:LA(e.prices[t]),priceCurrency:`USD`,referenceQuantity:{"@type":`QuantitativeValue`,value:1,unitCode:`MON`}}))}}function BA(){return jt.map(zA)}function VA(){return`${Mt.map(e=>e.prices===null?`${e.name} is sales-assisted â ${e.summary} Talk to us at ${Nt}.`:`${e.name} starts at $${e.prices.annual}/month (annual billing) â ${e.summary}`).join(` `)} Premium and Professional include a 7-day free trial.`}function HA(e){return e.replace(/\[([^\]]+)\]\(([^()\s]+)\)/g,(e,t,n)=>`<a href="${n.startsWith(`/`)?IA(n):n}">${t}</a>`)}function UA(e,t){return{"@type":`FAQPage`,"@id":t,mainEntity:e.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:HA(e.answer)}}))}}function WA(e){return{"@type":`BreadcrumbList`,itemListElement:[{name:`Home`,path:`/`},...e].map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:IA(e.path)}))}}var GA={blog:{name:`Blog`,path:`/blog`},guides:{name:`Guides`,path:`/guides`}};function KA(e){return qA([WA([GA[e.section],{name:e.title,path:e.path}])])}function qA(e){return{"@context":`https://schema.org`,"@graph":e.filter(Boolean)}}function JA(e){return{"@type":`SoftwareApplication`,"@id":e.id??NA,name:e.name??`Dex`,applicationCategory:e.category??`BusinessApplication`,operatingSystem:e.operatingSystem,description:e.description,url:e.url,...e.downloadUrl?{downloadUrl:e.downloadUrl}:{},publisher:PA,offers:BA()}}function YA(e,t){return{"@type":`ItemList`,"@id":e,numberOfItems:t.length,itemListElement:t.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,url:IA(e.path),...e.description?{description:e.description}:{}}))}}function XA(e){let t=IA(e.path);return{"@type":e.type??`WebPage`,"@id":`${t}#webpage`,url:t,name:e.name,description:e.description,isPartOf:{"@id":MA},publisher:PA,inLanguage:`en`}}var ZA=`${Ct}/pricing/#faq`;function QA(){return qA([XA({path:`/pricing`,name:`Dex pricing`,de
51scription:`Compare Dex Premium, Professional, and Enterprise plans for personal relationship management, contact sync, reminders, and integrations.`}),{"@type":`Product`,"@id":`${Ct}/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:IA(`/pricing`),brand:PA,offers:BA()},UA(Pt,ZA),WA([{name:`Pricing`,path:`/pricing`}])])}var $A=qA([FA,{"@type":`WebSite`,"@id":MA,url:Ct,name:`Dex`,publisher:PA,inLanguage:`en`},{"@type":`SoftwareApplication`,"@id":NA,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:Ct,publisher:PA,offers:BA()},{"@type":`FAQPage`,"@id":`${Ct}/#faq`,mainEntity:[{"@type":`Question`,name:`What is Dex?`,acceptedAnswer:{"@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:VA()}},{"@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
51nswer:{"@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 (${st}) and Android (${ot}), 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.`}}]}]);B();var ej=K(`/`)({head:()=>H(`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:$A}),component:q(()=>V(()=>import(`./routes-CXTuVvpF.js`),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52])),`component`)});B();var tj=()=>V(()=>import(`./about-C9MwdAw6.js`),__vite__mapDeps([53,4,1,2,5,6,7,8,9,10,11,54,16,55,56,17,25,57,14,43])),nj=`Learn why Dex was created as a personal CRM for organizing, remembering, and nurturing the relationships that matter.`,rj=K(`/about`)({head:()=>H(`About`,{description:nj,canonicalPath:`/about`,markdownPath:`/about.md`,jsonLd:qA([{...XA({path:`/about`,name:`About Dex`,description:nj,type:`AboutPage`}),mainEntity:PA},WA([{name:`About`,path:`/about`}])])}),component:q(tj,`component`)}),ij=`Bring who you know to your AI assistant`,aj=`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.`;B();var oj=K(`/ai-agents`)({head:()=>H(ij,{description:aj,canonicalPath:`/ai-agents`,markdownPath:`/ai-agents.md`,jsonLd:qA([{...XA({path:`/ai-agents`,name:ij,description:aj}),about:{"@id":NA}}
51,WA([{name:`Dex for Agents`,path:`/ai-agents`}])])}),component:q(()=>V(()=>import(`./ai-agents-hrXp_Ptd.js`),__vite__mapDeps([58,1,2,6,11,19,20,21,22,14,23,16,24,17,18,4,5,7,8,9,10,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,59,60,45,46,47,48,61,44,62,63,49,50,51])),`component`)});B();var sj=()=>V(()=>import(`./ambassador-D-pwkrL1.js`),__vite__mapDeps([64,6,1,11,2,19,20,21,22,14,23,16,65,66,57,17,25,43,48,4,5,7,8,9,10,67,28,29,30,68,69,70,37])),cj=`Share Dex with your network and earn rewards as a Dex ambassador.`,lj=K(`/ambassador`)({head:()=>H(`Ambassador Program`,{description:cj,canonicalPath:`/ambassador`,markdownPath:`/ambassador.md`,jsonLd:qA([XA({path:`/ambassador`,name:`Dex Ambassador Program`,description:cj}),WA([{name:`Ambassador Program`,path:`/ambassador`}])])}),component:q(sj,`component`)});function uj(e){let t=(0,J.c)(5),{className:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`g`,{className:`dex-loader-spin`,children:[(0,W.jsx)(`circle`,{cx:`44.811`,cy:`53.685`,r:`3.002`,opacity:1}),(0,W.jsx)(`circle`,{cx:`37.606`,cy:`63.976`,r:`3.002`,opacity:1}),(0,W.jsx)(`circle`,{cx:`32.299`,cy:`75.36`,r:`3.002`,opacity:1}),(0,W.jsx)(`circle`,{cx:`29.045`,cy:`87.488`,r:`3.002`,opacity:.803}),(0,W.jsx)(`circle`,{cx:`27.952`,cy:`100.0`,r:`3.002`,opacity:.803}),(0,W.jsx)(`circle`,{cx:`29.045`,cy:`112.512`,r:`3.002`,opacity:.803}),(0,W.jsx)(`circle`,{cx:`32.299`,cy:`124.64`,r:`3.002`,opacity:.577}),(0,W.jsx)(`circle`,{cx:`37.606`,cy:`136.024`,r:`3.002`,opacity:.577}),(0,W.jsx)(`circle`,{cx:`44.811`,cy:`146.315`,r:`3.002`,opacity:.577}),(0,W.jsx)(`circle`,{cx:`53.685`,cy:`155.189`,r:`3.002`,opacity:.577}),(0,W.jsx)(`circle`,{cx:`63.976`,cy:`162.394`,r:`3.002`,opacity:.577}),(0,W.jsx)(`circle`,{cx:`75.36`,cy:`167.701`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`87.488`,cy:`170.955`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`100.0`,cy:`172.048`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`112.512`,cy:`170.955`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`124.64`,cy:`167.701`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`136.024`,cy:`162.394`,r:`3.002`,opacity:.36}),(0,W.jsx)(`circle`,{cx:`146.315`,cy:`155.189`,r:`3.002`,opacity:.191}),(0,W.jsx)(`circle`,{cx:`155.189`,cy:`146.315`,r:`3.002`,opacity:.191}),(0,W.jsx)(`circle`,{cx:`162.394`,cy:`136.024`,r:`3.002`,opacity:.191}),(0,W.jsx)(`circle`,{cx:`167.701`,cy:`124.64`,r:`3.002`,opacity:.191}),(0,W.jsx)(`circle`,{cx:`170.955`,cy:`112.512`,r:`3.002`,opacity:.191}),(0,W.jsx)(`circle`,{cx:`172.048`,cy:`100.0`,r:`3.002`,opacity:.092}),(0,W.jsx)(`circle`,{cx:`170.955`,cy:`87.488`,r:`3.002`,opacity:.092}),(0,W.jsx)(`circle`,{cx:`167.701`,cy:`75.36`,r:`3.002`,opacity:.092}),(0,W.jsx)(`circle`,{cx:`162.394`,cy:`63.976`,r:`3.002`,opacity:.092}),(0,W.jsx)(`circle`,{cx:`155.189`,cy:`53.685`,r:`3.002`,opacity:.092}),(0,W.jsx)(`circle`,{cx:`146.315`,cy:`44.811`,r:`3.002`,opacity:.092})]}),i=(0,W.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,W.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;
51return t[3]===n?o=t[4]:(o=(0,W.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 dj=`dex:auth-handoff-at`,fj=3e4;function pj(){try{sessionStorage.setItem(dj,String(Date.now()))}catch{}}function mj(){try{let e=Number(sessionStorage.getItem(dj));return Number.isFinite(e)&&e>0&&Date.now()-e<fj}catch{return!1}}function hj(){return()=>{}}function gj(){return!1}function _j(){return(0,U.useSyncExternalStore)(hj,mj,gj)}function vj(e){let t=(0,J.c)(8),{className:n}=e,r=_j(),i=r?`Signing you in`:`Loading Dex`,a;t[0]===n?a=t[1]:(a=We(`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,W.jsx)(Wt,{variant:`unlocking`,className:`logo-breathe size-10 text-primary`}):(0,W.jsx)(uj,{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,W.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 yj=`/app`,bj=Lt().optional().catch(void 0),xj=32;function Sj(e){return!e.startsWith(`/`)||e.startsWith(`//`)||e.startsWith(`/\\`)}function Cj(e){return Mh(e)&&!Nh(e)}function wj(e){try{return new URL(e,`http://internal`).pathname.toLowerCase()}catch{return null}}function Tj(e){if(Sj(e))return null;let t;try{t=new URL(e,`http://internal`)}catch{return null}return Cj(t.pathname.toLowerCase())?t.searchParams.get(`continue`):null}function Ej(e){if(!e)return yj;let t=e;for(let e=0;e<xj;e+=1){let e=Tj(t);if(!e)break;t=e}if(Sj(t))return yj;let n,r;try{let e=new URL(t,`http://internal`);n=e.pathname+e.search+e.hash,r=e.pathname.toLowerCase()}catch{return yj}return r!==`/app`&&!r.startsWith(`/app/`)||Cj(r)?yj:n}function Dj(e,t){let n=wj(e);return n!==null&&Cj(n)?e:`${t}?${new URLSearchParams({continue:Ej(e)}).toString()}`}B();var Oj=()=>V(()=>import(`./app-D75bEPO8.js`),__vite__mapDeps([71,1,2,6,8,11,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,29,14,16,87,88,89,90,91,92,93,59,94,95,96])),kj=Ht({contact:Lt().optional(),note:Lt().optional(),continue:bj}),Aj=K(`/app`)({validateSearch:kj,beforeLoad:async({location:e,search:t})=>{if(typeof window>`u`)return{workspaceId:null};let[{runAppGate:n},r]=await Promise.all([V(()=>import(`./app-gate-B7yXDCGL.js`),__vite__mapDeps([97,98,72,1,77,78,79,80,81,82,83,84,96,99,73,2,74,75,76,11,85,86,29,6,14,16,87,88,89,90,91,92,93,59,94,95,100,101,102,103,104])),V(()=>Promise.resolve().then(()=>EV),void 0).catch(()=>null)]);return r?.captureCheckoutOffer(e.search),n({location:e,search:t})},component:q(Oj,`component`),pendingComponent:vj});B();var jj=()=>V(()=>import(`./browser-extension-BMwvX9gX.js`),__vite__mapDeps([105,1,2,6,11,19,20,21,22,14,23,16,17,25,59,57,43,45,4,5,7,8,9,10,46,47,48])),Mj=`Use the Dex browser extension to add contacts from LinkedIn, Facebook, and the web into your personal CRM.`,Nj=Tt.chromeWebStore,Pj=K(`/browser-extension`)({head:()=>H(`Browser Extension`,{description:Mj,canonicalPath:`/browser-extension`,markdownPath:`/browser-extension.md`,jsonLd:qA([{...JA({id:`${Ct}/browser-extension/#software`,name:`Dex browser extension`,description:Mj,operatingSystem:`Chrome`,category:`BrowserApplication`,url:IA(`/browser-extension`),downloadUrl:Nj}),sameAs:[Nj]},WA([{name:`Browser extension`,path:`/browser-extension`}])])}),component:q(jj,`component`)});B();var Fj=()=>V(()=>import(`./desktop-D2XbCtoo.js`),__vite__mapDeps([106,6,1,11,2,19,20,21,22,14,23,16,107,17,25,59,57,43,45,4,5,7,8,9,10,46,47,48,63,108,109])),Ij=`Download Dex for desktop to manage your relationships, notes, reminders, and network context from your computer.`,Lj=K(`/desktop`)({head:()=>H(`Desktop App`,{description:Ij,canonicalPath:`/desktop`,markdownPath:`/desktop.md`,jsonLd:qA([JA({id:`${Ct}/desktop/#software`,name:`Dex for macOS and Windows`,description:Ij,operatingSystem:`macOS, Windows`,category:`DesktopApplication`,url:IA(`/desktop`)}),WA([{name:`Desktop app`,path:`/desktop`}])])}),component:q(Fj,`component`)});B();var Rj=K(`/desktop-login-redirect`)({head:()=>H(`Signing in to Dex`,{noindex:!0}),component:q(()=>V(()=>import(`./desktop-login-redirect-Ds7h__DZ.js`),__vite__mapDeps([110,1,2,6,11,94,79,84,72,111,112,113,14])),`component`)});B();var zj=K(`/desktop-login-start`)({head:()=>H(`Signing in to Dex`,{noindex:!0}),validateSearch:Ht({provider:Rt([`google`,`apple`]).catch(`google`)}),component:q(()=>V(()=>import(`./desktop-login-start-CGrcZkkJ.js`),__vite__mapDeps([114,1,2,6,73,74,75,76,77,78,79,80,81,82,83,84,72,11,85,86,29,14,16,87,88,89,90,91,92,93,59,94,95,96,111,112,113])),`component`)});B();var Bj=K(`/desktop-voice-panel`)({component:q(()=>V(()=>import(`./desktop-voice-panel-CYYqjQQK.js`),__vite__mapDeps([115,1,2,6,79,116,11,19,20,21,22,14,23,16,117,118,119,76,75,77,78,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,120,121,122,73,74,93,59,94,95,96,123,124,125])),`component`)});function Vj(e,t,n){e&&e.isPersisted.promise.then(()=>xd(t,n),()=>void 0)}var Hj=`dex.analytics.metaConversion.`,Uj=`dex.analytics.redditConversion.`;function Wj(e,t){return`${Hj}${e}.${t}`}function Gj(e){try{return window.localStorage.getItem(e)!==null}catch{return!1}}function Kj(e){try{window.localStorage.setItem(e,`true`)}catch{}}function qj(e,t,n,r,i){typeof window>`u`||!t||Gj(Wj(e,t))||(qd(e,{eventId:Ed(t,e),params:r,mirrorToCapi:i,identity:{external_id:t,email:n??void 0}}),Kj(Wj(e,t)))}function Jj(e,t){qj(`StartTrial`,e,t,{value:0,currency:`USD`,predicted_ltv:125},!1)}function Yj(e,t){qj(`CompleteRegistration`,e,t,void 0,!0)}function Xj(e){if(typeof window>`u`||!e)return;let t=`${Uj}SignUp.${e}`;Gj(t)||(vp(`SignUp`,{conversionId:`${e}_SignUp`}),Kj(t))}var Zj=t({buildRegistrationData:()=>$j,hasCapturedRegistrationData:()=>Qj,maybeCaptureRegistrationData:()=>rM,resetRegistrationDataStateForTests:()=>iM});function Qj(e){let t=e?.registration_data;return!!(t&&(t.client_user_agent||t.fbp||t.fbc))}function $j(){let e=we(),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=Ee(`_fbp`);a&&(i.fbp=a);let o=Dd();o&&(i.fbc=o);let s=Ee(`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=De();return l&&(i.dub_id=l),typeof window<`u`&&(i.source_url=xe()),i}var eM=!1,tM=!1,nM=!1;function rM(e){if(typeof window>`u`||eM||tM||!e)return;if(Qj(e)){eM=!0;return}let t=ve();if(t!==`denied`){if(t===`pending`){if(nM)return;nM=!0;let t=me(n=>{n!==`pending`&&(t(),nM=!1,n===`granted`&&rM(e))});return}ye(),tM=!0,(async()=>{try{await Gt().v2.users.update({registration_data:$j()},{idempotencyKey:crypto.randomUUID()}),eM=!0}catch{}finally{tM=!1}})()}}function iM(){eM=!1,tM=!1,nM=!1}var aM=`preboard_steps`;function oM(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(aM);return e?JSON.parse(e):{}}catch{return{}}}function sM(e,t){if(typeof window>`u`)return;let n={...oM(),[e]:t};window.localStorage.setItem(aM,JSON.stringify(n))}function cM(){if(!(typeof window>`u`))try{window.localStorage.removeItem(aM)}catch{}}var lM=`preboard_`;function uM(e){let t=e?.utm_tags;return typeof t!=`object`||!t||Array.isArray(t)?{}:t}function dM(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)&&r.length===0||(t[`${lM}${n}`]=r));return t}function fM(e){return Object.keys(uM(e)).some(e=>e.startsWith(lM))}var pM=!1,mM=!1;function hM(e){if(typeof window>`u`||pM||mM||!e)return;if(fM(e)){cM(),pM=!0;return}let t=dM(oM());if(Object.keys(t).length===0)return;let n={...uM(e),...t};mM=!0,(async()=>{try{await Gt().v2.users.update({utm_tags:n},{idempotencyKey:crypto.randomUUID()}),cM(),pM=!0}catch{}finally{mM=!1}})()}B();var gM=`019b137a-bcb4-0000-b250-349e6878f50c`;async function _M(){if(typeof window>`u`)return null;try{return(await V(()=>import(`./module-DUojK2lz.js`),[])).default}catch{return null}}async function vM(){let e=await _M();return!e?.__loaded||typeof e.getActiveMatchingSurveys!=`function`?null:new Promise(t=>{try{e.getActiveMatchingSurveys(n=>{let r=n.find(e=>e.id===gM);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 yM(e,t){let n=await _M();n&&(e?n.capture(`survey sent`,{$survey_id:e.id,$survey_name:e.name,[`$survey_response_${e.firstQuestionId??``}
51`]:t,$survey_questions:[{id:e.firstQuestionId,question:e.firstQuestion}]}):n.capture(`copilot_feedback_submitted`,{feedback:t}))}function bM(e){if(typeof window>`u`)return;let t=null;e.subscribe(`onResolved`,()=>{let{pathname:e}=window.location;e!==t&&(t=e,yd({path:e,title:document.title,referrer:document.referrer||void 0}))})}var xM=864e5;function SM(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*xM}var CM=t({REPLAY_WINDOW_DAYS:()=>7,SESSION_PRESENCE_COOKIE:()=>SESSION_PRESENCE_COOKIE,track:()=>xd});function wM(e,t){let n=Bf(e);if(n)return Vf(n),tp(Rf(n)),xd(`blog_cta_arrived`,{ref:n.ref,ref_post:n.ref_post,landing_path:t}),n}function TM(e){let t=Hf();return Uf(),!e||!t?{}:{$set_once:Rf(t)}}var EM=K(`/get-started`)({beforeLoad:async()=>{if(typeof window>`u`)throw l({to:`/preboard`,search:{step:0},replace:!0});xd(`Lead`);let e=wM(new URLSearchParams(window.location.search),`/get-started`);throw await Eh(),l({to:`/preboard`,search:{step:0,...e},replace:!0})}});B();var DM=K(`/integrations`)({component:q(()=>V(()=>import(`./integrations-BSq2ckuU.js`),__vite__mapDeps([126,6,1,11,2])),`component`)}),OM=`Your personal AI for everyone you know`,kM=`Dex remembers everyone, keeps you up to date, and tells you when to reach out.`;B();var AM=K(`/jarvis`)({head:()=>H(OM,{description:kM,canonicalPath:`/`,noindex:!0}),component:q(()=>V(()=>import(`./jarvis-2_RRhBDY.js`),__vite__mapDeps([127,6,1,11,2,18,4,5,7,8,9,10,19,20,21,22,14,23,16,24,17,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,48,49,50,51,52,45,46,47])),`component`)});B();var jM=()=>V(()=>import(`./linkHandler-MZZIthuP.js`),__vite__mapDeps([128,1,2,6])),MM=Ht({link:Lt().optional().catch(void 0),event:Lt().optional().catch(void 0)}),NM=K(`/linkHandler`)({validateSearch:MM,head:()=>H(`Redirectingâ¦`,{noindex:!0}),component:q(jM,`component`)});B();var PM=K(`/logout`)({head:()=>H(`Signing out`),validateSearch:Ht({continue:bj}),component:q(()=>V(()=>import(`./logout-BS9evRsU.js`),__vite__mapDeps([129,1,2,6,130,11,14,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,16,87,88,89,90,91,92,93,59,94,95,96,131,17,25,132])),`component`)}),FM={student:{offer:`student`,percentOff:50,durationLabel:`1 year`,maxSavingsUsd:204},mba:{offer:`mba`,percentOff:50,durationLabel:`2 years`,maxSavingsUsd:408}},IM=[{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`},{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:`@ster
51n.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`},{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:`Vanderb
51ilt 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
51School 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`}
51,{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 LM(e){return e.trim().toLowerCase()}function RM(e,t){let n=zM(t);return n?e.emailDomains.some(e=>n===e||n.endsWith(`.${e}`)):!1}function zM(e){let t=LM(e),n=t.lastIndexOf(`@`);return n===-1||n===t.length-1?null:t.slice(n+1)}function BM(e){return IM.find(t=>RM(t,e))}var VM=[`getdex.com`];function HM(e,t){let n=zM(t);return n?VM.includes(n)?!0:e===`mba`?BM(t)!==void 0:n.endsWith(`.edu`)||BM(t)!==void 0:!1}var UM={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 ${FM.mba.percentOff}% off for ${FM.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 ${FM.student.percentOff}% off for ${FM.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.`}},WM=UM.mba;B();var GM=K(`/mba`)({head:()=>H(`Dex for MBA students: 50% off for 2 years`,{description:WM.seoDescription,canonicalPath:WM.path}),component:q(()=>V(()=>import(`./mba-Qqz0siCe.js`),__vite__mapDeps([133,6,1,11,2,134,4,5,7,8,9,10,19,20,21,22,14,23,16,17,18,24,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,135,136,62,45,46,47,48,63,49,50,51,61])),`component`)});B();var KM=()=>V(()=>import(`./mobile-CZOhOKuY.js`),__vite__mapDeps([137,6,1,11,2,17,25,57,14,43,45,4,5,7,8,9,10,19,20,21,22,23,16,46,47,48,108,109])),qM=`Download Dex for iOS and Android to manage your relationships, follow-ups, and contact context on the go.`,JM=K(`/mobile`)({head:()=>H(`Mobile App`,{description:qM,canonicalPath:`/mobile`,markdownPath:`/mobile.md`,jsonLd:qA([{...JA({id:`${Ct}/mobile/#software`,name:`Dex for iOS and Android`,description:qM,operatingSystem:`iOS, Android`,category:`MobileApplication`,url:IA(`/mobile`),downloadUrl:st}),sameAs:[st,ot]},WA([{name:`Mobile app`,path:`/mobile`}])])}),component:q(KM,`component`)});function YM(e){"@babel/helpers - typeof";return YM=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},YM(e)}function XM(e,t){if(YM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ZM(e){var t=XM(e,`string`);return YM(t)==`symbol`?t:t+``}function Y(e,t,n){return(t=ZM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QM=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},$M=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)}},eN=class{constructor(){Y(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new QM:new $M}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}},tN=typeof window<`u`&&window.document!==void 0,nN=new Uint8Array([80,75,3,4]),rN=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],X,Z=0,iN=null;function aN(){return(iN===null||iN.byteLength===0)&&(iN=new Uint8Array(X.memory.buffer)),iN}var oN=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},sN=typeof oN.encodeInto==`function`?function(e,t){return oN.encodeInto(e,t)}:function(e,t){let n=oN.encode(e);return t.set(n),{read:e.length,written:n.length}};function cN(e,t,n){if(n===void 0){let n=oN.encode(e),r=t(n.length,1)>>>0;return aN().subarray(r,r+n.length).set(n),Z=n.length,r}let r=e.length,i=t(r,1)>>>0,a=aN(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}
51if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=aN().subarray(i+o,i+r),a=sN(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return Z=o,i}var lN=null;function uN(){return(lN===null||lN.buffer.detached===!0||lN.buffer.detached===void 0&&lN.buffer!==X.memory.buffer)&&(lN=new DataView(X.memory.buffer)),lN}function dN(e){let t=X.__externref_table_alloc_command_export();return X.__wbindgen_export_4.set(t,e),t}function fN(e,t){try{return e.apply(this,t)}catch(e){let t=dN(e);X.__wbindgen_exn_store_command_export(t)}}var pN=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&pN.decode();function mN(e,t){return e>>>=0,pN.decode(aN().subarray(e,e+t))}function hN(e){return e==null}var gN=null;function _N(){return(gN===null||gN.byteLength===0)&&(gN=new Float32Array(X.memory.buffer)),gN}function vN(e,t){let n=t(e.length*4,4)>>>0;return _N().set(e,n/4),Z=e.length,n}function yN(e,t){let n=t(e.length*1,1)>>>0;return aN().set(e,n/1),Z=e.length,n}function bN(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=dN(e[t]);uN().setUint32(n+4*t,r,!0)}return Z=e.length,n}function xN(e,t){let n=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=yN(t,X.__wbindgen_malloc_command_export),a=Z;return X.register_font(n,r,i,a)!==0}var SN=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),CN=Object.freeze({Idle:0,0:`Idle`,Playing:1,1:`Playing`,Paused:2,2:`Paused`,Stopped:3,3:`Stopped`,Tweening:4,4:`Tweening`}),wN=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>X.__wbg_dotlottieplayerwasm_free(e>>>0,1)),TN=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wN.unregister(this),e}free(){let e=this.__destroy_into_raw();X.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=cN(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],mN(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=cN(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=cN(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=cN(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=cN(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=mN(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=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r
51=X.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=mN(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=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=cN(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=cN(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=mN(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],mN(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=cN(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=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=cN(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=vN(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=mN(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=cN(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=cN(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=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=cN(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=cN(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=cN(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],mN(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=cN(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=cN(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],mN(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=mN(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}get_state_machine(e){let t=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r
51=X.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=mN(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=cN(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=cN(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=yN(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=cN(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=mN(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=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=cN(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=cN(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=cN(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=cN(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=cN(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=cN(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=cN(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=cN(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,wN.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=cN(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=bN(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=mN(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}load_font(e,t){let n=cN(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=yN(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=cN(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],mN(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}};async function EN(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 DN(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer}
51,e.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return fN(function(e,t){let n=cN(URL.createObjectURL(t),X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;uN().setInt32(e+4,r,!0),uN().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(mN(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 fN(function(e,t){return new Audio(mN(e,t))},arguments)},e.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return fN(function(e,t){return new Blob(e,t)},arguments)},e.wbg.__wbg_pause_b74c96d69f769518=function(){return fN(function(e){e.pause()},arguments)},e.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return fN(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 fN(function(e,t){URL.revokeObjectURL(mN(e,t))},arguments)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return fN(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=mN(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=cN(n,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),i=Z;uN().setInt32(e+4,i,!0),uN().setInt32(e+0,r,!0)}
51,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=hN(r)?0:cN(r,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;uN().setInt32(e+4,a,!0),uN().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return mN(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(mN(e,t))},e}function ON(e,t){return X=e.exports,kN.__wbindgen_wasm_module=t,lN=null,gN=null,iN=null,X.__wbindgen_start(),X}async function kN(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=DN();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await EN(await e,t);return ON(n,r)}var AN=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()}},jN=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(jN,`_observer`,null),Y(jN,`_observedCanvases`,new Map);var MN=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(MN,`_observer`,null),Y(MN,`_observedCanvases`,new Map);function NN(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function PN(e){if(!NN(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 FN(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,nN.byteLength));for(let e=0;e<nN.length;e+=1)if(nN[e]!==t[e])return!1;return!0}function IN(e){return rN.every(t=>Object.hasOwn(e,t))}function LN(e){return typeof e==`string`?/^\s*\{/u.test(e)&&/\}\s*$/u.test(e):IN(e)}function RN(){return 1+((tN?window.devicePixelRatio:1)-1)*.75}function zN(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 BN(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 VN(e){return new Promise((t,n)=>{let r=new FileReader;r.onerror=()=>n(r.error??Error(`Failed to read image slot source`)),r.onload=()=>
51t(r.result),r.readAsDataURL(e)})}async function HN(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 VN(await t.blob())}function UN(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 WN(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 GN=null;function KN(){return GN??=WN(kN,`https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/dotlottie-player.wasm`,`https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-player.wasm`),GN}var qN=e=>{switch(e){case`reverse`:return SN.Reverse;case`bounce`:return SN.Bounce;case`reverse-bounce`:return SN.ReverseBounce;default:return SN.Forward}},JN=e=>{switch(e){case SN.Reverse:return`reverse`;case SN.Bounce:return`bounce`;case SN.ReverseBounce:return`reverse-bounce`;default:return`forward`}},YN=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`}},XN=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 AN,this._frameManager=new eN,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||RN(),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(qN(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`}
51),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 KN().load()}_createCore(){return new TN}_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()!==CN.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??``;tN&&t.startsWith(`OpenUrl: `)?UN(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 FN(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&&!LN(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(!FN(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(!LN(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: 52 - string (Lottie JSON), 53 - ArrayBuffer (dotLottie), 54 - object (Lottie JSON). 55 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 55
55pFrame:!!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=JN(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()===CN.Playing&&this._startAnimationLoop(),tN&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(jN.observe(this._canvas,this),zN(this._canvas)||this.freeze()),this._renderConfig.autoResize&&MN.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:YN(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?JN(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()??CN.Idle)!==CN.Idle}get isPlaying(){return this._dotLottieCore?.status()===CN.Playing}get isPaused(){return this._dotLottieCore?.status()===CN.Paused}get isStopped(){return this._dotLottieCore?.status()===CN.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(qN(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`&&(!tN||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&&tN&&this._canvas instanceof HTMLCanvasElement&&(jN.unobserve(this._canvas),MN.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&tN&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(jN.observe(this._canvas,this),zN(this._canvas)||this.freeze()),this._renderConfig.autoResize&&MN.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()===CN.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(e){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(this._dotLottieCore.status()!==CN.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()===CN.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&tN&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!zN(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(tN&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=e;else{let[t,n,r,i]=PN(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(!(tN&&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(qN(e))}setRenderConfig(e){let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...i}=e;this._renderConfig={...this._renderConfig,...i,devicePixelRatio:t||RN(),freezeOnOffscreen:n??!0,...r!==void 0&&{quality:r}},r!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(r),tN&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?MN.observe(this._canvas,this):MN.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(jN.observe(this._canvas,this),zN(this._canvas)||this.freeze()):(jN.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 HN(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){KN().setWasmUrl(e)}static preload(){return KN().load()}static async registerFont(e,t){try{await KN().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=xN(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}
55":`,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()!==CN.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=BN(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=BN(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=BN(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=BN(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=BN(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=BN(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(tN&&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(){tN&&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))}},ZN=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";
55var 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}
55animation_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)}
55current_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)}
55constructor(){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)}
55,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=()=>
55t(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"}
55),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
55irst.");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 55
55get 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 55
55setBackgroundColor(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 55
55if(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=>
55t=>{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 55
55={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
55S(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);
55if(!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}},QN=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 55
55(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 ZN,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 $N(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 eP(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var tP=null;function nP(){return tP??=new QN,tP}var rP=``,iP=new Map,aP=class{constructor(e){if(Y(this,`_eventManager`,new AN),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:RN()},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-${eP()}`,this._workerId=e.workerId||`defaultWorker`,this._worker=nP().getWorker(this._workerId),nP().assignAnimationToWorker(this._id,this._workerId),rP&&this._sendMessage(`setWasmUrl`,{url:rP});let t={...e,renderConfig:{...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||RN(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0}};this._pendingConfig=t,this._canvas&&(this._create(t),this._pendingConfig=null),nP().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),tN&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&(jN.observe(this._canvas,this),zN(this._canvas)||await this.freeze()),this._dotLottieInstanceState.renderConfig.autoResize&&MN.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: `)&&UN(e.message)}}async _create(e){if(!this._canvas)return;let t;if(this._canvas instanceof HTMLCanvasElement){let n=iP.get(this._canvas);if(n&&n.workerId===this._workerId){await this._adopt(n,e);return}t=this._canvas.transferControlToOffscreen(),iP.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},...$N(this._canvas,e.renderConfig?.devicePixelRatio||RN())},[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),nP().unassignAnimationFromWorker(this._id),this._id=e.instanceId,nP().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(),tN&&this._canvas instanceof HTMLCanvasElement&&(jN.unobserve(this._canvas),MN.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(),tN&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&!zN(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||RN(),freezeOnOffscreen:n??!0,...r!==void 0&&{quality:r}}}),await this._updateDotLottieInstanceState(),tN&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.autoResize?MN.observe(this._canvas,this):MN.unobserve(this._canvas),this._dotLottieInstanceState.renderConfig.freezeOnOffscreen?(jN.observe(this._canvas,this),zN(this._canvas)||await this.freeze()):(jN.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}=$N(this._canvas,this._dotLottieInstanceState.renderConfig.devicePixelRatio||RN());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?iP.get(e):void 0;this._retire(),t&&t.facade===this?t.destroyTimer=setTimeout(()=>{iP.delete(e),this._finalizeDestroy()},0):await this._finalizeDestroy()}async _finalizeDestroy(){nP().unregisterEventHandler(this._id),nP().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())}
55async 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 HN(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-${eP()}`,method:e,params:t};return new Promise((t,i)=>{nP().registerRpcReplyHandler(r.id,n=>{nP().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){rP=e}static async registerFont(e,t){try{let n=eP();return nP().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 55
55async 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=BN(e);t&&this._sendMessage(`stateMachinePostClickEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerUp(e){let t=BN(e);t&&this._sendMessage(`stateMachinePostPointerUpEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerDown(e){let t=BN(e);t&&this._sendMessage(`stateMachinePostPointerDownEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerMove(e){let t=BN(e);t&&this._sendMessage(`stateMachinePostPointerMoveEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerEnter(e){let t=BN(e);t&&this._sendMessage(`stateMachinePostPointerEnterEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerLeave(e){let t=BN(e);t&&this._sendMessage(`stateMachinePostPointerExitEvent`,{instanceId:this._id,x:t.x,y:t.y})}async _setupStateMachineListeners(){if(tN&&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.
55includes(`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(){tN&&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`&&XN.setWasmUrl(`/assets/dotlottie-player-CkTF56SJ.wasm`);function oP(e){let t=(0,J.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=We(`animate-pulse rounded-md bg-muted`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{"data-slot":`skeleton`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var sP=`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`,cP=`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
557.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`,lP=`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
551.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`,uP=`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
550.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`,dP=[{key:`vscode`,src:`/assets/vscode-0_hX0Src.png`},{key:`cube`,src:cP},{key:`sparkle`,src:uP},{key:`openai`,src:lP},{key:`claude`,src:sP}],fP=`Do I have any contact in Dex named Priya?`,pP={name:`Priya Anand`,title:`VP of Design at Northbeam`},mP=`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.`,hP=560,gP=90,_P=300,vP=hP+(dP.length-1)*gP+_P+200,yP=vP+700,bP=yP+1400,xP=400;function SP(){let e=(0,J.c)(13),[t,n]=(0,U.useState)(`entering`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),yP),t=setTimeout(()=>n(`loaded`),bP);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,U.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={maxHeight:xP},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:hP/1e3,duration:.4,ease:`easeOut`},l={height:xP},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,W.jsx)(`div`,{className:`flex -space-x-2.5`,children:dP.map(CP)}),e[7]=u):u=e[7];let d;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,W.jsx)(_t.p,{initial:{opacity:0,y:8},animate:{opacity:.9,y:0},transition:{delay:vP/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:fP}),e[8]=d):d=e[8];let f;e[9]===t?f=e[10]:(f=t===`loaded`?(0,W.jsx)(_t.div,{initial:{opacity:0}
55,animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:`easeOut`},className:`mt-5 flex flex-col gap-4`,children:(0,W.jsxs)(`div`,{className:`text-sm text-foreground`,children:[(0,W.jsx)(`p`,{className:`font-bold`,children:`Contact found`}),(0,W.jsx)(`p`,{className:`mt-5`,children:pP.name}),(0,W.jsxs)(`ul`,{className:`list-disc pl-5`,children:[(0,W.jsxs)(`li`,{children:[`Position: `,pP.title]}),(0,W.jsx)(`li`,{children:`Starred contact: Yes`})]}),(0,W.jsx)(`p`,{className:`mt-5`,children:mP})]})},`response`):t===`skeleton`?(0,W.jsxs)(_t.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,W.jsx)(oP,{className:`h-2.5 w-[90px] rounded-full bg-blue-50 opacity-60`}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsx)(oP,{className:`h-2.5 w-full rounded-full bg-blue-50 opacity-60`}),(0,W.jsx)(oP,{className:`h-2.5 w-full rounded-full bg-blue-50 opacity-60`}),(0,W.jsx)(oP,{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,W.jsx)(`div`,{className:`flex size-full flex-col items-center pt-2`,children:(0,W.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,W.jsxs)(_t.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,W.jsx)(Nm,{mode:`wait`,children:f})]})})}),e[11]=f,e[12]=p),p}function CP(e,t){let{key:n,src:r}=e;return(0,W.jsx)(_t.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:(hP+t*gP)/1e3,duration:_P/1e3,ease:`easeOut`},className:`flex size-10 items-center justify-center rounded-xl border border-border bg-background shadow-xs`,children:(0,W.jsx)(`span`,{className:`flex size-[33.6px] items-center justify-center rounded-[10px] border border-border bg-card`,children:(0,W.jsx)(`img`,{src:r,alt:``,className:`size-[18px]`})})},n)}var wP=U.createContext(void 0);function TP(){let e=U.useContext(wP);if(e===void 0)throw Error(Pe(13));return e}var EP={imageLoadingStatus:()=>null},DP=U.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=U.useState(`idle`),c={imageLoadingStatus:o},l=U.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=Re(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:EP});return(0,W.jsx)(wP.Provider,{value:l,children:u})});function OP(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i}){let[a,o]=U.useState(`idle`);return Me(()=>{if(!e&&!i)return o(`error`),Ne;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 kP={...EP,...Jt},AP=U.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,style:a,...o}=e,{setImageLoadingStatus:s}=TP(),c=OP(o.src,o),l=c===`loaded`,{mounted:u,transitionStatus:d,setMounted:f}=Xt(l),p=U.useRef(null),m=je(e=>{i?.(e),s(e)});Me(()=>{c!==`idle`&&m(c)},[c,m]),Me(()=>()=>s(`idle`),[s]),Yt({open:l,ref:p,onComplete(){l||f(!1)}});let h=Re(`img`,e,{state:{imageLoadingStatus:c,transitionStatus:d},ref:[t,p],props:o,stateAttributesMapping:kP,enabled:u});return u?h:null}),jP=U.forwardRef(function(e,t){let{className:n,render:r,delay:i,style:a,...o}=e,{imageLoadingStatus:s}=TP(),[c,l]=U.useState(i===void 0),u=Zt();return U.useEffect(()=>(i===void 0?l(!0):u.start(i,()=>l(!0)),u.clear),[u,i]),Re(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:EP,enabled:s!==`loaded`&&(i===void 0||c)})});function MP(e){let t=(0,J.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=We(`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,W.jsx)(DP,{"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 NP(e){let t=(0,J.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=We(`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,W.jsx)(AP,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function PP(e){let t=(0,J.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=We(`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,W.jsx)(jP,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function FP({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=U.useRef(e!==void 0),[a,o]=U.useState(t);return[i?e:a,U.useCallback(e=>{i||o(e)},[])]}function IP(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 LP=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
55d=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),RP=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}({}),zP={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},BP={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},VP={disabled:!1,...BP},HP={valid(e){return e===null?null:e?{[RP.valid]:``}:{[RP.invalid]:``}}};function UP(e){return U.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[LP.checked]:``}:{[LP.unchecked]:``}},...HP}),[e.indeterminate])}var WP={invalid:void 0,name:void 0,validityData:{state:zP,errors:[],error:``,value:``,initialValue:null},setValidityData:Ne,disabled:void 0,touched:BP.touched,setTouched:Ne,dirty:BP.dirty,setDirty:Ne,filled:BP.filled,setFilled:Ne,focused:BP.focused,setFocused:Ne,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:VP,markedDirtyRef:{current:!1},registerFieldControl:Ne,validation:{getValidationProps:(e,t=Ie)=>t,inputRef:{current:null},registerInput:Ne,commit:async()=>{},change:Ne}},GP=U.createContext(WP);function KP(e=!0){let t=U.useContext(GP);if(t.setValidityData===Ne&&!e)throw Error(Pe(28));return t}function qP(e,t,n,r,i=!0,a){let{registerFieldControl:o}=KP(),s=U.useRef(null);s.current||=Symbol(),Me(()=>{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 JP=U.createContext({disabled:!1});function YP(){return U.useContext(JP)}var XP=U.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Ne,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function ZP(){return U.useContext(XP)}var QP=U.createContext({controlId:void 0,registerControlId:Ne,labelId:void 0,setLabelId:Ne,messageIds:[],setMessageIds:Ne,getDescriptionProps:e=>e});function $P(){return U.useContext(QP)}function eF(e,t,n,r=!0,i){let[a,o]=U.useState(),s=nn(i?`${i}-label`:void 0),c=e??t??a;return Me(()=>{let i=e||t||!r?void 0:tF(n.current,s);a!==i&&o(i)}),c}function tF(e,t){let n=nF(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function nF(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 rF=U.createContext(void 0);function iF(e=!0){let t=U.useContext(rF);if(t===void 0&&!e)throw Error(Pe(3));return t}var aF=U.createContext(void 0);function oF(){let e=U.useContext(aF);if(e===void 0)throw Error(Pe(14));return e}var sF=`data-parent`,cF=U.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}=ZP(),{disabled:C,name:w,setDirty:T,setFilled:E,setFocused:D,setTouched:O,state:k,validationMode:A,validityData:j,validation:M}=KP(),ee=YP(),{labelId:N,controlId:P,registerControlId:F,getDescriptionProps:I}=$P(),L=iF(),te=L?.parent,ne=te&&L.allValues,R=C||ee.disabled||L?.disabled||o,z=w??d,re=v??z,ie=nn(),ae=nn(),oe=P;ne?oe=p?ae:`${te.id}-${re}`:c&&(oe=c);let se={};ne&&(p?se=L.parent.getParentProps():re&&(se=L.parent.getChildProps(re)));let{checked:ce=n,indeterminate:le=l,onCheckedChange:ue,...de}=se,fe=L?.value,pe=L?.setValue,me=L?.defaultValue,he=U.useRef(null),ge=Fe(()=>Symbol(`checkbox-control`)),_e=U.useRef(!1),{getButtonProps:ve,buttonRef:ye}=Be({disabled:R,native:y}),be=L?.validation??M,[xe,Se]=FP({controlled:re&&fe&&!p?fe.includes(re):ce,default:re&&me&&!p?me.includes(re):i,name:`Checkbox`,state:`checked`}),Ce=ne?!!ce:xe,we=ne&&le||l;Me(()=>{F!==Ne&&(_e.current=!0,F(ge.current,oe))},[oe,F,ge]),U.useEffect(()=>{let e=ge.current;return()=>{!_e.current||F===Ne||(_e.current=!1,F(e,void 0))}},[F,ge]),qP(he,ie,xe,void 0,!L&&!R,d);let Te=U.useRef(null),Ee=Le(u,Te,be.inputRef,be.registerInput),De=eF(a,N,Te,!y,oe??void 0);Me(()=>{Te.current&&(Te.current.indeterminate=we,xe&&E(!0))},[xe,we,E]),rn(xe,()=>{L||(S(z),E(xe),T(xe!==j.initialValue),be.change(xe))});let Oe=ze({checked:xe,disabled:R,form:s,name:p?void 0:z,id:y?void 0:oe??void 0,required:g,ref:Ee,style:z?Qt:$t,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=tn(en,e.nativeEvent);f?.(t,n),!n.isCanceled&&(ue?.(t,n),!n.isCanceled&&(Se(t),re&&fe&&pe&&!p&&!ne&&pe(t?[...fe,re]:fe.filter(e=>e!==re),n)))},onFocus(){he.current?.focus()}},v===void 0?Ie:{value:(L?xe&&v:v)||``},I,e=>be.getValidationProps(R,e));U.useEffect(()=>{if(!te||!re)return;let e=te.disabledStatesRef.current;return e.set(re,R),()=>{e.delete(re)}},[te,R,re]);let ke=U.useMemo(()=>({...k,checked:Ce,disabled:R,readOnly:m,required:g,indeterminate:we}),[k,Ce,R,m,g,we]),B=UP(ke),V=Re(`span`,e,{state:ke,ref:[ye,he,t,L?.registerControlRef],props:[{id:y?oe??void 0:ie,role:`checkbox`,"aria-checked":we?`mixed`:Ce,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":De,[sF]:p?``:void 0,onFocus(){R||D(!0)},onBlur(){let e=Te.current;e&&(O(!0),D(!1),A===`onBlur`&&be.commit(L?fe:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Te.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),Ae(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||IP(t)?.click()})},onClick(e){if(m||R)return;e.preventDefault();let t=Te.current;t&&t.dispatchEvent(new(Ae(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},x,de,ve,I,e=>be.getValidationProps(R,e)],stateAttributesMapping:B});return(0,W.jsxs)(aF.Provider,{value:ke,children:[V,!xe&&!L&&z&&!p&&_!==void 0&&(0,W.jsx)(`input`,{type:`hidden`,form:s,name:z,value:_,disabled:R}),(0,W.jsx)(`input`,{...Oe,suppressHydrationWarning:!0})]})}),lF=U.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=oF(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=Xt(c),f=U.useRef(null),p={...s,transitionStatus:u};Yt({open:c,ref:f,onComplete(){c||d(!1)}});let m={...UP(s),...Jt,...HP},h=a||l,g=Re(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});function uF(e){let t=(0,J.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=We(`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,W.jsx)(lF,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:r.indeterminate?(0,W.jsx)(Bp,{}):(0,W.jsx)(Mp,{})}),t[5]=r.indeterminate,t[6]=a);let o;return t[7]!==r||t[8]!==i||t[9]!==a?(o=(0,W.jsx)(cF,{"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 dF=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASXSURBVHgB7Z09TBRBFMf/u0cAAwU2Eqzu6CQS+WhILFCxEpQz2mBItIDSSKlYiIUfJdhqodFYWZxES6IUGCxUDAl2cBUEGik0AuFY582xB5zc3d7uzM4K75eQy8ndcvfLm5k3H7614JHkiFO3sYFkDOh0HLRYFuLisQ4HAPFdVsV3SYvHGfF0MlaJVGrEWvX03lIvSN524hkLt8QrbxwUYV4QMp/HtnA/9dhKF31doV9QxGXWcc8BhnCIEYJGY1VCZIGI3FfgdtR9EPLiYEhSOubg7H7RaOf/Q3LYaWF5eyEX5OSCcJP/uz0RyJFXnP0iMSdwu8/7xvKKIyVWodXtE3NNeHvAiIMpimzOwpX7XEYgNd1NCwtgPFPhIEFNWUZgxt4xynhjczu9s6jv21zHTzDlslpRhYSdEdMzMH6oI3fUhDvB+KXTFqNKCxhf
550KKKbXHqEoS4fZhWWDRQV4EIUlMN1B8FEg3A7z/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==`,fF=`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=`,pF=`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`,mF=`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
55KhE2EWJiYmJiYuqMfwAHciLNjm/o5QAAAABJRU5ErkJggg==`,hF=`/assets/granola-BcG_lhIJ.png`,gF=`/assets/imessage-D5XrIP1t.png`,_F=`/assets/instagram-Cwy3C-II.png`,vF=`/assets/linkedin-app-H2nv55AE.png`,yF=`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`,bF=`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`,xF=`/assets/outlook-2G6KXDFI.svg`,SF=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAU8SURBVHgB7Z1PaBxVHMe/Mxs2kXpYLwn2ILs5VCiWpvGgIBplC4KIruBFUSxYb5Z41PbgeqmCl414Sw4KUg8qrGJvBu1BsIfWSoIiwmZBUJpLc+h/spm+78zOJtlmdt/MvDfZt/s+UDabvN2yH37vvd/7vdk3DiSpVL3C3buo5IA5z8OM46AoHgsYAsRn2RCfpSker4inF3J51OtVZ0Pqtf0aVN73ii0H86LliWERJoOQ+UVuCx/VP3GaPdtF/YE
55R17qDDz3gPYwwQlAtNy5ERkTkngLbUfezkFeEhZKaOQ/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==`,CF=`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 wF(e){let t=(0,J.c)(3),{src:n,className:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,W.jsx)(`img`,{src:n,alt:``,"aria-hidden":`true`,className:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function TF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:mF,className:n}),t[0]=n,t[1]=r),r}function EF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:pF,className:n}),t[0]=n,t[1]=r),r}function DF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:xF,className:n}),t[0]=n,t[1]=r),r}function OF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:yF,className:n}),t[0]=n,t[1]=r),r}function kF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:vF,className:n}),t[0]=n,t[1]=r),r}function AF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:fF,className:n}),t[0]=n,t[1]=r),r}function jF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:_F,className:n}),t[0]=n,t[1]=r),r}function MF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:CF,className:n}),t[0]=n,t[1]=r),r}function NF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:gF,className:n}),t[0]=n,t[1]=r),r}function PF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:SF,className:n}),t[0]=n,t[1]=r),r}function FF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:dF,className:n}),t[0]=n,t[1]=r),r}function IF(e){let t=(0,J.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.jsx)(wF,{src:bF,className:n}),t[0]=n,t[1]=r),r}function LF(e){let t=(0,J.c)(4),{className:n}=e,r;t[0]===n?r=t[1]:(r=We(`rounded-[22%]`,n),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,W.jsx)(wF,{src:hF,className:r}),t[2]=r,t[3]=i),i}function RF(e){let t=(0,J.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,W.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 zF=`/assets/Circle-Dt-YmYro.png`,BF=`/assets/Circle-1-CGBo9U5P.png`,VF=`/assets/Circle-2-CuCbxLFf.png`,HF=`/assets/Circle-3-BgWucdxb.png`,UF=`/assets/Circle-4-BAZpzUbV.png`,WF=[{key:`gmail`,Icon:EF},{key:`outlook`,Icon:DF},{key:`linkedin`,Icon:OF},{key:`whatsapp`,Icon:MF}
55,{key:`instagram`,Icon:jF},{key:`imessage`,Icon:NF},{key:`facebook`,Icon:AF}],GF=[{label:`All contacts`,icon:Rp},{label:`MBA Classmates`,icon:Lp},{label:`Alumni Network`,icon:Up},{label:`Mentors & Advisors`,icon:Xe}],KF=[{name:`James Robinson`,title:`MBA Classmate · Finance`,frequency:`Every week`,avatar:UF},{name:`Amelia White`,title:`Venture Capital Associate`,frequency:`Every 2 weeks`,avatar:VF},{name:`Christopher Taylor`,title:`Director of Inside Sales`,frequency:`Every week`,avatar:BF},{name:`Alexander Rodriguez`,title:`Entrepreneurship Club Lead`,frequency:`Every month`,avatar:HF},{name:`Samuel Brown`,title:`Product Manager · Growth`,frequency:`Every 3 months`,avatar:zF}],qF=460,JF=90,YF=350,XF=1100,ZF=qF+((WF.length-1)*JF+YF)+450,QF=356,$F=`grid-cols-[1.4fr_1fr_0.7fr]`;function eI(){let e=(0,J.c)(21),[t,n]=(0,U.useState)(`icons`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),ZF),t=setTimeout(()=>n(`loaded`),ZF+XF);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,U.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(`div`,{className:`flex shrink-0 gap-3`,children:WF.map(iI)}),e[2]=a):a=e[2];let o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={maxHeight:QF},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:QF},e[8]=d,e[9]=f):(d=e[8],f=e[9]);let p;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,W.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,W.jsxs)(`div`,{className:`mb-3`,children:[p,(0,W.jsx)(Nm,{mode:`wait`,children:t===`skeleton`?(0,W.jsxs)(_t.p,{initial:{opacity:0}
55,animate:{opacity:1},exit:{opacity:0},className:`mt-1 flex items-center gap-1 text-caption-md text-muted-foreground`,children:[(0,W.jsx)(He,{className:`size-3 animate-spin`}),`total contacts`]},`count-spinner`):(0,W.jsx)(_t.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,W.jsx)(Nm,{mode:`wait`,children:t===`loaded`?(0,W.jsxs)(_t.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},children:[(0,W.jsxs)(`div`,{className:`mb-3 flex items-center gap-0.5`,children:[GF.map(rI),(0,W.jsx)(Vp,{className:`ml-1 size-4 shrink-0 text-muted-foreground`})]}),(0,W.jsxs)(`div`,{className:`overflow-hidden rounded-lg border border-border`,children:[(0,W.jsxs)(`div`,{className:`grid ${$F} divide-x divide-border border-b border-border`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,W.jsx)(uF,{className:`pointer-events-none`}),(0,W.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Name`})]}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Title`})}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Frequency`})})]}),(0,W.jsx)(`div`,{className:`divide-y divide-border`,children:KF.map(nI)})]})]},`loaded`):(0,W.jsxs)(_t.div,{initial:{opacity:0}
55,animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},children:[(0,W.jsxs)(`div`,{className:`mb-3 flex gap-1.5`,children:[(0,W.jsx)(oP,{className:`h-6 w-20`}),(0,W.jsx)(oP,{className:`h-6 w-20`}),(0,W.jsx)(oP,{className:`h-6 w-20`})]}),(0,W.jsxs)(`div`,{className:`overflow-hidden rounded-lg border border-border`,children:[(0,W.jsxs)(`div`,{className:`grid ${$F} divide-x divide-border border-b border-border`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,W.jsx)(oP,{className:`size-3.5 shrink-0 rounded-[4px]`}),(0,W.jsx)(oP,{className:`h-2.5 w-16`})]}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(oP,{className:`h-2.5 w-14`})}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(oP,{className:`h-2.5 w-10`})})]}),(0,W.jsx)(`div`,{className:`divide-y divide-border`,children:Array.from({length:KF.length}).map(tI)})]})]},`skeleton`)}),e[13]=t,e[14]=h);let g;e[15]!==m||e[16]!==h?(g=(0,W.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,W.jsxs)(`div`,{className:`flex size-full flex-col items-center gap-4 pt-2`,children:[a,(0,W.jsx)(_t.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 tI(e,t){return(0,W.jsxs)(`div`,{className:`grid ${$F} divide-x divide-border`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,W.jsx)(oP,{className:`size-3.5 shrink-0 rounded-[4px]`}),(0,W.jsx)(oP,{className:`size-5 shrink-0 rounded-full`}),(0,W.jsx)(oP,{className:`h-2.5 flex-1`})]}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(oP,{className:`h-2.5 w-full max-w-24`})}),(0,W.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,W.jsx)(oP,{className:`h-2.5 w-10`})})]},t)}function nI(e){return(0,W.jsxs)(`div`,{className:`grid ${$F} divide-x divide-border`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 px-3 py-2`,children:[(0,W.jsx)(uF,{className:`pointer-events-none shrink-0`}),(0,W.jsxs)(MP,{size:`sm`,className:`shrink-0`,children:[(0,W.jsx)(NP,{src:e.avatar,alt:``}),(0,W.jsx)(PP,{children:e.name[0]})]}),(0,W.jsx)(`span`,{className:`truncate text-sm text-foreground`,children:e.name})]}),(0,W.jsx)(`div`,{className:`flex min-w-0 items-center px-3 py-2`,children:(0,W.jsx)(`span`,{className:`truncate text-caption-md text-muted-foreground`,children:e.title})}),(0,W.jsx)(`div`,{className:`flex min-w-0 items-center px-3 py-2`,children:(0,W.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 rI(e,t){return(0,W.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,W.jsx)(e.icon,{className:`size-4 shrink-0`}),(0,W.jsx)(`span`,{className:t===0?``:`truncate`,children:e.label})]},e.label)}function iI(e,t){let{key:n,Icon:r}=e;return(0,W.jsx)(_t.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:(qF+t*JF)/1e3,duration:YF/1e3,ease:`easeOut`},children:(0,W.jsx)(`div`,{className:`flex size-11 items-center justify-center rounded-[10px] border border-border bg-card`,children:(0,W.jsx)(r,{className:`size-6`})})},n)}var aI=`/assets/daniel-eGO-Bi1h.png`,oI=`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`,sI=`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`,cI=`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
55167%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`,lI=`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`,uI=`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`,dI=`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
550.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`,fI=`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`,pI=`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
55012C15.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`,mI=[{key:`telegram`,src:fI},{key:`imessage`,src:sI},{key:`messenger`,src:dI},{key:`whatsapp`,src:pI},{key:`instagram`,src:cI},{key:`facebook`,src:oI},{key:`linkedin`,src:lI},{key:`mail`,src:uI}],hI=`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.`,gI=`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.`,_I=560,vI=1060,yI=155,bI=400;function xI(){let e=(0,J.c)(27),[t,n]=(0,U.useState)(`entering`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),vI),t=setTimeout(()=>n(`loaded`),2460);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,U.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={maxHeight:bI},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:_I/1e3,duration:.4,ease:`easeOut`},l={height:bI},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,W.jsx)(`img`,{src:aI,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,W.jsx)(`p`,{className:`font-display text-heading-md text-foreground`,children:`Daniel Carter`}),f=(0,W.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,W.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,W.jsx)(kp,{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,W.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1.5`,children:[p,(0,W.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,W.jsx)(Ip,{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,W.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,W.jsx)(_t.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,W.jsxs)(`div`,{className:`flex items-start gap-3`,children:[u,(0,W.jsxs)(`div`,{className:`min-w-0 flex-1 pt-0.5`,children:[d,f,m,(0,W.jsx)(`div`,{className:`mt-4 flex gap-2.5`,children:mI.map(SI)})]})]})})}),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:yI},e[17]=b,e[18]=x):(b=e[17],x=e[18]);let S;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.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,W.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,W.jsx)(_t.p,{initial:{opacity:0}
55,animate:{opacity:1},transition:{duration:.3},className:`mt-1.5 line-clamp-3 text-caption-md text-foreground`,children:hI}):(0,W.jsxs)(`div`,{className:`mt-2 flex flex-col gap-1.5`,children:[(0,W.jsx)(oP,{className:`h-3 w-full bg-blue-100`}),(0,W.jsx)(oP,{className:`h-3 w-full bg-blue-100`}),(0,W.jsx)(oP,{className:`h-3 w-3/5 bg-blue-100`})]})]}),w=t===`loaded`&&(0,W.jsxs)(_t.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,W.jsx)(`p`,{className:`text-caption-sm text-blue-400 uppercase`,children:`Suggested action`}),(0,W.jsxs)(`div`,{className:`mt-1.5 flex items-start gap-2`,children:[(0,W.jsxs)(`p`,{className:`line-clamp-2 flex-1 text-caption-md text-foreground`,children:[`â`,gI,`â`]}),(0,W.jsx)(Ue,{variant:`ghost`,size:`icon-sm`,className:`shrink-0 text-blue-500`,"aria-label":`Send message`,children:(0,W.jsx)(Ze,{})})]})]}),e[20]=t,e[21]=C,e[22]=w);let T;return e[23]!==y||e[24]!==C||e[25]!==w?(T=(0,W.jsxs)(`div`,{className:`relative flex size-full flex-col items-center pt-2`,children:[h,(0,W.jsxs)(_t.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 SI(e){let{key:t,src:n}=e;return(0,W.jsx)(`img`,{src:n,alt:``,className:`size-7`},t)}var CI=[{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,U.createElement)(eI)},{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,U.createElement)(xI)},{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,U.createElement)(SP)}];B();var wI=()=>V(()=>import(`./preboard-DKiLeeVX.js`),__vite__mapDeps([138,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,140,28,29,33,30,39,36,41,136,141,142,143,69,144,35,68,145,46])),TI=Ht({step:zt().int().min(0).max(CI.length-1).catch(0),ref:Lt().optional().catch(void 0),ref_post:Lt().optional().catch(void 0)}),EI=K(`/preboard`)({validateSearch:TI,head:()=>H(`Get Started`),component:q(wI,`component`)});B();var DI=K(`/pricing`)({head:()=>H(`Pricing`,{description:`Compare Dex Premium, Professional, and Enterprise plans for personal relationship management, contact sync, reminders, and integrations.`,canonicalPath:`/pricing`,markdownPath:`/pricing.md`,jsonLd:QA()}),component:q(()=>V(()=>import(`./pricing-ghy6YmEt.js`),__vite__mapDeps([146,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,54,147,148,87,17,25,149,80,150,29,28,32,30,31,33,34,35,36,37,151,152,68,40,43,153,47,
55154,155,67,69,70])),`component`)});B();var OI=K(`/privacypolicy`)({head:()=>H(`Privacy Policy`,{description:`Read the Dex privacy policy for details on data collection, use, retention, integrations, and user privacy choices.`,canonicalPath:`/privacypolicy`}),component:q(()=>V(()=>import(`./privacypolicy-DV510HEo.js`),__vite__mapDeps([156,6,1,11,2,157,57,14,17,25,43])),`component`)});B();var kI=()=>V(()=>import(`./product-overview-CLA9M71V.js`),__vite__mapDeps([158,6,1,11,2,159,16,17,18,4,5,7,8,9,10,19,20,21,22,14,23,24,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,62,45,46,47,48,63,49,50,51])),AI=`See how Dex helps you consolidate contacts, remember context, set keep-in-touch reminders, and build stronger relationships.`,jI=K(`/product-overview`)({head:()=>H(`Product Overview`,{description:AI,canonicalPath:`/product-overview`,markdownPath:`/product-overview.md`,jsonLd:qA([JA({description:AI,operatingSystem:`iOS, Android, macOS, Windows, Chrome, Web`,url:IA(`/product-overview`)}),WA([{name:`Product overview`,path:`/product-overview`}])])}),component:q(kI,`component`)}),MI=K(`/refer`)({head:()=>H(`Refer & Earn`),beforeLoad:()=>{if(!(typeof window>`u`))throw l({to:`/app/refer`,replace:!0})},pendingComponent:vj});B();var NI=K(`/resources`)({component:q(()=>V(()=>import(`./resources-BVTdBUuD.js`),__vite__mapDeps([160,6,1,11,2])),`component`)});B();var PI=()=>V(()=>import(`./security-Drj8rYyC.js`),__vite__mapDeps([161,4,1,2,5,6,7,8,9,10,11,16,162,56,17,25,163,57,14,43])),FI=`Learn how Dex protects your relationship data with privacy-first product decisions and secure infrastru
55cture.`,II=K(`/security`)({head:()=>H(`Security`,{description:FI,canonicalPath:`/security`,markdownPath:`/security.md`,jsonLd:qA([{...XA({path:`/security`,name:`Security and Privacy at Dex`,description:FI}),mainEntity:PA,hasPart:Ft.map((e,t)=>({"@type":`WebPageElement`,"@id":`${Ct}/security/#practice-${t+1}`,text:e}))},WA([{name:`Security`,path:`/security`}])])}),component:q(PI,`component`)}),LI=UM.student;B();var RI=K(`/student`)({head:()=>H(`Dex for students: 50% off for 1 year`,{description:LI.seoDescription,canonicalPath:LI.path}),component:q(()=>V(()=>import(`./student-D0i3VML3.js`),__vite__mapDeps([164,6,1,11,2,134,4,5,7,8,9,10,19,20,21,22,14,23,16,17,18,24,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,135,136,62,45,46,47,48,63,49,50,51,61])),`component`)});B();var zI=()=>V(()=>import(`./support-BD8m8Xys.js`),__vite__mapDeps([165,4,1,2,5,6,7,8,9,10,11,19,20,21,22,14,23,16,59,166,86,29,87,26,15,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,135,136,57,17,25,43,154,155,149,80,67,68,69,70])),BI=`Get help with Dex. Contact our support team, browse guides, and find answers to common questions about your personal CRM.`,VI=K(`/support`)({head:()=>H(`Support`,{description:BI,canonicalPath:`/support`,markdownPath:`/support.md`,jsonLd:qA([{...XA({path:`/support`,name:`Dex support`,description:BI,type:`ContactPage`}),mainEntity:{"@type":`ContactPoint`,contactType:`customer support`,email:wt,availableLanguage:`English`}},WA([{name:`Support`,path:`/support`}])])}),component:q(zI,`component`)});B();var HI=K(`/termsofservice`)({head:()=>H(`Terms of Service`,{description:`Read the Dex terms of service for account, subscription, acceptable use, and legal terms.`,canonicalPath:`/termsofservice`}),component:q(()=>V(()=>import(`./termsofservice-B66kbyar.js`),__vite__mapDeps([167,6,1,11,2,157,57,14,17,25,43])),`component`)});B();var UI=()=>V(()=>import(`./testimonials-CHBHDCbQ.js`),__vite__mapDeps([168,6,1,11,2,19,20,21,22,14,23,16,17,25,50,169,43,57,60,51])),WI=`Read how founders, investors, consultants, and job seekers use Dex to stay close to the people who matter to them.`,GI=K(`/testimonials`)({head:()=>H(`Testimonials`,{description:WI,canonicalPath:`/testimonials`,markdownPath:`/testimonials.md`,jsonLd:qA([XA({path:`/testimonials`,name:`Dex testimonials`,description:WI}),WA([{name:`Testimonials`,path:`/testimonials`}])])}),component:q(UI,`component`)});B();var KI=K(`/app/_shell`)({component:q(()=>V(()=>import(`./app._shell-BhjkNs3J.js`),__vite__mapDeps([170,1,2,6,11,79,14,171,4,5,7,8,9,10,139,172,19,20,21,22,23,16,173,15,85,76,75,77,78,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,187,188,189,190,191,192,136,145,141,69,116,117,118,119,120,73,74,93,59,94,95,96,123,124,125,193,194,195,142,143,54,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,135,218,219,220,221,222,223,224,225,226,227,228,229,230,231,70,232,99,233,234,112,235,236,237,238,239,240,241])),`component`)});B();var qI=K(`/app/auth`)({component:q(()=>V(()=>import(`./app.auth-DZSkqIUo.js`),__vite__mapDeps([242,4,1,2,5,6,7,8,9,10,11,79,17,25,112,113,14])),`component`)}),JI=[`welcome`,`full-disk-access`,`restart`,`apple-sync`,`linkedin`,`sync-utility`,`background`,`voice`,`done`];function YI(e){return typeof e==`string`&&JI.includes(e)}function XI(e){return e.appleSupported&&(e.selection.imessage||e.selection.phoneCalls)}function ZI(e,t){switch(e){case`full-disk-access`:case`restart`:return XI(t)&&!t.hasFullDiskAccess;case`apple-sync`:return XI(t);case`linkedin`:return t.linkedinSupported&&t.selection.linkedin&&!t.hasLinkedInLogin;case`sync-utility`:return XI(t)&&t.legacySyncUtilityInstalled&&t.hasFullDiskAccess&&t.hasCredential;case`voice`:return t.voiceSupported;case`welcome`:case`background`:case`done`:return!0}}function QI(e,t){let n=JI.indexOf(e);return JI.slice(n+1).find(e=>ZI(e,t))??`done`}function $I(e,t){let n=JI.indexOf(e);return JI.slice(0,n).reverse().find(e=>ZI(e,t))??null}function eL(e,t){return e?ZI(e,t)?e:QI(e,t):`welcome`}var tL=`dex:desktop-setup:`,nL=`dex:desktop-setup-complete:`,rL=`dex:desktop-setup-rerun:`,iL=new Set,aL=new Set;function oL(e){if(typeof e!=`object`||!e)return!1;let{imessage:t,phoneCalls:n,linkedin:r}=e;return typeof t==`boolean`&&typeof n==`boolean`&&typeof r==`boolean`}function sL(e){if(typeof window>`u`||!e)return null;let t=`${tL}${e}`;try{let e=window.localStorage.getItem(t);if(!e)return null;let n=JSON.parse(e);if(typeof n!=`object`||!n)return null;let{step:r,selection:i,relaunchRequestedAt:a}=n;return!YI(r)||!oL(i)?(window.localStorage.removeItem(t),null):{step:r,selection:i,relaunchRequestedAt:Number.isFinite(a)?a:null}}catch{return null}}function cL(e,t){if(!(typeof window>`u`||!e))try{window.localStorage.setItem(`${tL}${e}`,JSON.stringify(t))}catch{}}function lL(e){if(typeof window>`u`||!e)return!1;if(iL.has(e))return!0;try{return window.localStorage.getItem(`${nL}${e}`)!==null}catch{return!1}}function uL(e){if(!(typeof window>`u`||!e)){iL.add(e),aL.delete(e);try{window.localStorage.setItem(`${nL}${e}`,new Date().toISOString()),window.localStorage.removeItem(`${tL}${e}`),window.localStorage.removeItem(`${rL}${e}`)}catch{}}}function dL(e){if(!(typeof window>`u`||!e)){iL.delete(e),aL.add(e);try{window.localStorage.removeItem(`${nL}${e}`),window.localStorage.removeItem(`${tL}${e}`),window.localStorage.setItem(`${rL}${e}`,new Date().toISOString())}catch{}}}function fL(e){if(typeof window>`u`||!e)return!1;if(aL.has(e))return!0;try{return window.localStorage.getItem(`${rL}${e}`)!==null}catch{return!1}}var pL=`/app/desktop-setup`,mL=new WeakMap;function hL(e){let t=mL.get(e);return t||(t=Promise.resolve(e.getInstallInfo?.()).then(e=>e?.newInstall===!0).catch(()=>!1),mL.set(e,t)),t}function gL(){let e=pe();return!!(e?.sync&&e.getInstallInfo)}async function _L(e){let t=pe();return!t||!gL()||!e||lL(e)?null:fL(e)||await hL(t)?pL:null}B();var vL=()=>V(()=>import(`./app.desktop-setup-iDngbB9y.js`),__vite__mapDeps([243,1,2,139,8,6,11,79,19,20,21,22,14,23,16,86,29,87,117,244,217,93,85,76,75,77,78,80,81,82,83,84,72,88,89,90,91,92,59,183,239,121,122,245,33,30,39,136,112,113,246,247,248,249,250,251,252,253,209,107,108,109,254,255])),yL=Ht({again:Rt([`settings`,`help-menu`]).optional().catch(void 0)}),bL=K(`/app/desktop-setup`)({head:()=>H(`Set up Dex`),validateSearch:yL,beforeLoad:async({search:e})=>
55{if(typeof window>`u`)return;if(!gL())throw l({to:`/app`});let{fetchUserForGate:t}=await V(async()=>{let{fetchUserForGate:e}=await Promise.resolve().then(()=>aV);return{fetchUserForGate:e}},void 0),n=await t();if(n&&e.again){dL(n.id);let t=e.again;throw V(async()=>{let{track:e}=await Promise.resolve().then(()=>CM);return{track:e}},void 0).then(({track:e})=>e(`desktop_setup_rerun_requested`,{source:t})),l({to:pL,replace:!0})}if(!await _L(n?.id))throw l({to:`/app`})},component:q(vL,`component`)}),xL=Vt(Ht({name:Bt().optional(),email:Bt().optional()})),SL=Ht({action:Lt().optional().catch(void 0),eventName:Bt().optional().catch(void 0),attendees:Ut(e=>{if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return}},xL.optional()).catch(void 0),eventTimestamp:zt().optional().catch(void 0)});function CL(e){let t=SL.safeParse(e);return t.success?t.data:{}}var wL=Ht({name:Bt().optional().catch(void 0),slug:Bt().optional().catch(void 0),company:Bt().optional().catch(void 0),education:Bt().optional().catch(void 0),email:Bt().optional().catch(void 0),location:Bt().optional().catch(void 0),source:Bt().optional().catch(void 0),title:Bt().optional().catch(void 0),bio:Bt().optional().catch(void 0),image_url:Bt().optional().catch(void 0),image_source:Bt().optional().catch(void 0)});function TL(e){let t=wL.safeParse(e);return t.success?t.data:{}}[...Object.keys(wL.shape),...Object.keys(SL.shape)];function EL(e,t){let n=(0,U.useRef)(e);return t(e)&&(n.current=e),n.current}function DL(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function OL(e,t){return t!==void 0&&!Number.isNaN(t.getTime())&&e===on(t)?t:an(e)??new Date}B();var kL=K(`/app/extension-handler`)({validateSearch:TL,head:()=>H(`Open in Dex`),component:q(()=>V(()=>import(`./app.extension-handler-BAJHcU4T.js`),__vite__mapDeps([256,1,2,139,8,6,19,11,20,21,22,14,23,16,86,29,87,77,78,79,80,81,82,83,84,72,223,224,257])),`component`)});async function AL(){if(await cn()!==!0)throw o()}function jL(e){return sn()?H(e):{}}var ML={owner:`Owner`,admin:`Admin`,standard:`Member`,viewer:`Viewer`},NL={owner:[`owner`,`admin`,`standard`,`viewer`],admin:[`standard`,`viewer`],standard:[],viewer:[]};function PL(e){return e?NL[e]:[]}function FL(e){return PL(e).length>0}function IL(e,t,n,r=`active`){if(t.user.is_deleted)return[];if(r!==`active`)return t.user_id===n&&t.status===`active`?[{kind:`leave`}]:[];let i=PL(e),a=i.filter(e=>e!==t.role).map(e=>({kind:`role`,role:e}));return t.user_id===n?t.status===`active`?[...i.includes(t.role)?a:[],{kind:`leave`}]:[]:i.includes(t.role)?t.status===`active`?[...a,{kind:`deactivate`}]:t.status===`deactivated`&&t.departure!==`left`?[{kind:`reactivate`}]:[]:[]}function LL(e){let{errorCode:t,statusCode:n}=e??{};switch(t){case`workspace_invitation_expired`:return`expired`;case`workspace_invitation_revoked`:return`revoked`;case`workspace_invitation_wrong_account`:return`wrong_account`;case`workspace_invitation_invalid`:case`not_found`:return`invalid`}return n===403?`no_access`:n===404?`invalid`:`unavailable`}var RL=`dex:workspace-invitation-token`,zL=`/app/join`,BL=null,VL=0,HL=new Set;function UL(){return VL}function WL(e){return HL.add(e),()=>{HL.delete(e)}}function GL(e){return e.toLowerCase().replace(/\/$/,``)===zL}function KL(e){return new URLSearchParams(e.replace(/^#/,``)).get(`token`)??void 0}function qL(e){if(!e)return;let t=e!==XL();BL=e;try{sessionStorage.setItem(RL,e)}catch{}if(t){VL+=1;for(let e of HL)e()}}function JL(){if(typeof window>`u`)return;let{pathname:e,search:t,hash:n}=window.location;if(!GL(e))return;let r=KL(n);r&&(qL(r),window.history.replaceState(window.history.state,``,`${e}${t}`))}function YL(e,t){if(!GL(e))return t;let n=new URL(t,`https://dex.invalid`);return KL(n.hash)?`${n.pathname}${n.search}`:t}function XL(){try{return sessionStorage.getItem(RL)??BL}catch{return BL}}function ZL(){BL=null;try{sessionStorage.removeItem(RL)}catch{}}B();var QL=K(`/app/join`)({head:()=>jL(`Join workspace`),beforeLoad:async()=>{JL(),await AL()},pendingComponent:vj,pendingMs:0,notFoundComponent:q(()=>V(()=>import(`./app.join-DZ6aad7f.js`),__vite__mapDeps([258,259,1,2,6,8,11,234,96])),`notFoundComponent`),component:q(()=>V(()=>import(`./app.join-CYn43cVa.js`),__vite__mapDeps([260,1,2,6,121,75,90,74,11,19,20,21,22,14,23,16,86,29,87,77,78,79,80,81,82,83,84,72,96,0,73,76,85,88,89,91,92,93,59,94,95,261,262,99,259,8,234])),`component`)}),$L=[`identity`,`about`,`phone`,`connect`,`connect-linkedin`,`connect-email`,`connect-whatsapp`,`connect-imessage`,`connect-instagram`,`connect-mcp`,`connected`,`contacts`,`resurface`,`extension`,`everywhere`,`copilot`],eR=[`connect-linkedin`,`connect-email`,`connect-whatsapp`,`connect-imessage`,`connect-instagram`,`connect-mcp`,`connected`],tR=[`identity`,`about`,...eR,`extension`,`copilot`],nR=[`connect`];function rR(e){return e===`control`?tR:nR}function iR(e,t){return t===`control`?eR.includes(e)?`connect`:null:e===`connect`?`connected`:null}var aR={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`},oR=$L[0],sR=[`resurface`];function cR(e,t=[]){let n=$L.indexOf(e);for(let e=n+1;e<$L.length;e++){let n=$L[e];if(!t.includes(n))return n}return null}function lR(e,t=[]){let n=$L.indexOf(e);for(let e=n-1;e>=0;e--){let n=$L[e];if(!sR.includes(n)&&!t.includes(n))return n}return null}var uR=`dex:onboarding-step:`;function dR(e){return`${uR}${e}`}function fR(e){return $L.includes(e)}function pR(e){if(typeof window>`u`||!e)return null;try{let t=dR(e),n=window.localStorage.getItem(t);return n?fR(n)?n:(window.localStorage.removeItem(t),null):null}catch{return null}}function mR(e,t){if(!(typeof window>`u`||!e))try{window.localStorage.setItem(dR(e),t)}catch{}}function hR(e){if(!(typeof window>`u`||!e))try{window.localStorage.removeItem(dR(e))}catch{}}function gR(e,t=`test`){return vR(e,null,t)}function _R(e,t=`test`){return t===`control`?aR.phone:e?e.linkedin_profile_id?!e.job_title&&!e.school&&!e.about_me?aR.about:aR.phone:aR.identity:aR[oR]}function vR(e,t,n=`test`){let r=pR(e);if(!r)return _R(t,n);if(!rR(n).includes(r))return aR[r];let i=iR(r,n);return i?aR[i]:_R(t,n)}B();var yR=K(`/app/onboarding`)({head:()=>H(`Welcome to Dex`),beforeLoad:async({location:e})=>
55{if(typeof window>`u`)return{onboardingExperiment:{userId:null,variant:null}};let{fetchUserForGate:t}=await V(async()=>{let{fetchUserForGate:e}=await Promise.resolve().then(()=>aV);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 V(async()=>{let{fetchOnboardingVariantForGate:e}=await import(`./onboarding-experiment-gate--0zOJUuY.js`).then(e=>e.n);return{fetchOnboardingVariantForGate:e}},__vite__mapDeps([102,1,76,75,77,78,79,80,81,82,83,84,72])),i=await r(n),a=Pf(i),o=e.pathname.replace(/\/$/,``),s=rR(a).find(e=>o===aR[e]);if(s){let t=iR(s,a);throw l(t?{to:aR[t],search:e.search}:{to:vR(n?.id,null,a)})}return V(async()=>{let{getOAuthCredentialsCollection:e}=await import(`./oauth-credentials.collection-DKW6P-N_.js`).then(e=>e.n);return{getOAuthCredentialsCollection:e}},__vite__mapDeps([91,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,89,90])).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:q(()=>V(()=>import(`./app.onboarding-Efh2UTWg.js`),__vite__mapDeps([263,6,1,11,2,264])),`component`)});async function bR(...e){let t=await Promise.allSettled(e.map(e=>e.preload()));for(let e of t)e.status===`rejected`&&console.warn(`[preloadCollections] warm-up skipped`,e.reason)}B();var xR=K(`/app/plans`)({head:()=>H(`Dex Plans`),loader:async()=>{let{getBillingCollection:e,getUserCollection:t}=await V(async()=>{let{getBillingCollection:e,getUserCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getBillingCollection:e,getUserCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t()),null},component:q(()=>V(()=>import(`./app.plans-B8YFcEi0.js`),__vite__mapDeps([265,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,54,266,147,80,77,78,79,81,82,83,84,72,219,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,267,121,75,90,74,86,87,109,85,76,88,89,91,92,122,59,0,239,153,17,25,268,252])),`component`)}),SR=`/onboarding/watercolor.webp`,CR=`/reactivation/watercolor-dense.webp`;function wR(e){let t=(0,J.c)(7),{blooms:n,src:r}=e,i=r===void 0?SR:r,a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,W.jsx)(`img`,{src:i,alt:``,style:{left:e.left,top:e.top,width:e.width},className:We(`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,W.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 select-none`,children:a}),t[5]=a,t[6]=o),o}var TR=[{key:`claude`,src:sP},{key:`openai`,src:lP},{key:`sparkle`,src:uP}],ER=`Do I have any contact in Dex named Priya?`,DR=[{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.`}],OR=DR.reduce((e,t,n)=>(e.push(n===0?0:e[n-1]+DR[n-1].text.length),e),[]),kR=OR[DR.length-1]+DR[DR.length-1].text.length,AR=500,jR=420,MR=60,NR=MR-8,PR=680,FR=200,IR=PR+TR.length*FR+120,LR=IR+420,RR=LR+460,zR=2400,BR=RR+zR,VR=[{left:`-10%`,top:`10%`,width:`68%`,className:`opacity-30`}],HR=`bg-gradient-to-l from-background from-25% to-transparent`,UR=`bg-gradient-to-t from-background from-30% to-transparent`;function WR(){let e=(0,J.c)(59),t=Pm(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,U.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>=BR&&clearInterval(n)},40);return()=>clearInterval(n)},o=[t],e[2]=t,e[3]=a,e[4]=o),(0,U.useEffect)(a,o);let s=Math.max(0,Math.min(TR.length,Math.floor((r-PR)/FR)+1)),c=r>=IR,l=r>=LR,u;e[5]===r?u=e[6]:(u=Math.round((r-RR)/zR*kR),e[5]=r,e[6]=u);let d=Math.max(0,Math.min(kR,u)),f=d>=kR?`answered`:d>0?`answering`:l?`query`:c?`card`:`tools`,p;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p={maxWidth:AR,height:jR},e[7]=p):p=e[7];let m;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(m={opacity:0}
55,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,W.jsx)(wR,{blooms:VR,src:CR}),e[13]=y):y=e[13];let b;e[14]!==v||e[15]!==g?(b=(0,W.jsx)(_t.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=TR.map((e,n)=>{let{key:r,src:i}=e;return(0,W.jsx)(GR,{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,W.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:jR},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,N;e[31]!==M||e[32]!==ee?(N={opacity:M,y:ee},e[31]=M,e[32]=ee,e[33]=N):N=e[33];let P=t?0:.32,F;e[34]===P?F=e[35]:(F={duration:P,ease:`easeOut`},e[34]=P,e[35]=F);let I;e[36]!==N||e[37]!==F?(I=(0,W.jsx)(_t.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:N,transition:F,children:ER}),e[36]=N,e[37]=F,e[38]=I):I=e[38];let L;e[39]===d?L=e[40]:(L=(0,W.jsx)(KR,{typed:d}),e[39]=d,e[40]=L);let te;e[41]!==I||e[42]!==L?(te=(0,W.jsxs)(`div`,{className:`h-full p-7`,children:[I,L]}),e[41]=I,e[42]=L,e[43]=te):te=e[43];let ne;e[44]!==E||e[45]!==k||e[46]!==te?(ne=(0,W.jsx)(_t.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:te}),e[44]=E,e[45]=k,e[46]=te,e[47]=ne):ne=e[47];let R;e[48]!==S||e[49]!==ne?(R=(0,W.jsxs)(`div`,{className:`absolute inset-0 flex items-start gap-7`,children:[S,ne]}),e[48]=S,e[49]=ne,e[50]=R):R=e[50];let z;e[51]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,W.jsx)(`div`,{"aria-hidden":!0,className:We(`pointer-events-none absolute -inset-y-8 -right-8 w-32`,HR)}),e[51]=z):z=e[51];let re;e[52]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,W.jsx)(`div`,{"aria-hidden":!0,className:We(`pointer-events-none absolute -inset-x-8 -bottom-8 h-32`,UR),style:{left:72}}),e[52]=re):re=e[52];let ie;e[53]!==b||e[54]!==R?(ie=(0,W.jsxs)(`div`,{className:`relative w-full`,style:p,children:[b,R,z,re]}),e[53]=b,e[54]=R,e[55]=ie):ie=e[55];let ae;return e[56]!==ie||e[57]!==f?(ae=(0,W.jsx)(`div`,{className:`relative flex size-full flex-col items-center`,"data-phase":f,children:ie}),e[56]=ie,e[57]=f,e[58]=ae):ae=e[58],ae}function GR(e){let t=(0,J.c)(16),{src:n,show:r,reduceMotion:i}=e,a=r?``:void 0,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={width:MR,height:MR},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:NR,height:NR},t[8]=m):m=t[8];let h;t[9]===n?h=t[10]:(h=(0,W.jsx)(`span`,{style:m,className:`flex items-center justify-center rounded-xl bg-card`,children:(0,W.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,W.jsx)(_t.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 KR(e){let t=(0,J.c)(32),{typed:n}=e,r;t[0]===n?r=t[1]:(r=e=>n>OR[e],t[0]=n,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=e=>DR[e].text.slice(0,n-OR[e]),t[2]=n,t[3]=a);let o=a,s;t[4]===n?s=t[5]:(s=OR.reduce((e,t,r)=>n>t?r:e,-1),t[4]=n,t[5]=s);let c=s,l=n>0&&n<kR,u=n>0?``:void 0,d;t[6]!==c||t[7]!==l||t[8]!==o||t[9]!==i?(d=i(0)?(0,W.jsxs)(`p`,{className:`mt-5 text-sm font-bold text-foreground`,children:[o(0),(0,W.jsx)(qR,{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,W.jsxs)(`p`,{className:`mt-4 text-sm text-foreground`,children:[o(1),(0,W.jsx)(qR,{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,W.jsxs)(`ul`,{className:`ml-5 list-disc text-sm text-foreground`,children:[(0,W.jsxs)(`li`,{children:[o(2),(0,W.jsx)(qR,{show:l&&c===2})]}),i(3)?(0,W.jsxs)(`li`,{children:[o(3),(0,W.jsx)(qR,{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,W.jsxs)(`p`,{className:`mt-4 text-sm text-foreground`,children:[o(4),(0,W.jsx)(qR,{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,W.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 qR(e){let t=(0,J.c)(1),{show:n}=e;if(!n)return null;let r;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsx)(`span`,{"aria-hidden":!0,
55className:`ml-0.5 inline-block h-[1em] w-[2px] translate-y-[2px] animate-pulse bg-foreground`}),t[0]=r):r=t[0],r}var JR=[{key:`mail`,src:uI},{key:`linkedin`,src:lI},{key:`facebook`,src:oI},{key:`instagram`,src:cI},{key:`whatsapp`,src:pI},{key:`imessage`,src:sI}],YR=1.5;function XR(e){let t=(0,J.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=We(`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-YR,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,W.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,W.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 ZR=`/assets/nora-DWnfnxkq.png`,QR=`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.`,$R=[{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`}],ez=[{label:`Driving Customer Acquisition`,date:`Sep 14, 2026`,Icon:Ze,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:(0,W.jsxs)(W.Fragment,{children:[`Engineering @ACME `,(0,W.jsx)(`span`,{className:`text-green-600`,children:`Maintenance`})]}),date:`Sep 12, 2026`,Icon:mn,badgeClassName:`bg-blue-50 text-primary`},{label:`Product Positioning and Messaging Workshop`,date:`Sep 9, 2026`,Icon:Ap,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Customer Acquisition Strategy Meeting`,date:`Sep 8, 2026`,Icon:Ap,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Added a note`,date:`Sep 4, 2026`,Icon:Hp,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`New onboarding flow`,date:`Sep 3, 2026`,Icon:Ap,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Aligning Product Innovation with Investor Expectations`,date:`Sep 2, 2026`,Icon:Ze,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Investment Readiness for Early-Stage Product Companies`,date:`Sep 1, 2026`,Icon:Ze,badgeClassName:`bg-neutral-50 text-neutral-500`}],tz=420,nz=500,rz=nz,iz=20,az=10,oz=36,sz=58,cz=tz-iz*2,lz=396,uz=(rz-lz)/2,dz=72,fz=90,pz=98,mz=20,hz=64,gz=`scale-[0.80] min-[380px]:scale-[0.96] min-[440px]:scale-100`,_z=460,vz=1020,yz=520,bz=vz+($R.length-1)*yz+620,xz=560,Sz=[.65,0,.35,1],Cz=bz+xz+160,wz=620,Tz=Cz+520,Ez=[{left:`-12%`,top:`-5.2%`,width:`122.4%`,className:`opacity-40`},{left:`13.1%`,top:`-6%`,width:`104%`,className:`opacity-40`}];function Dz(){let e=(0,J.c)(42),t=Pm(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,U.useState)(n),a,o;e[2]===t?(a=e[3],o=e[4]):(a=()=>{if(t)return;let e=[...$R.map(Oz),bz,Cz,Tz].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,U.useEffect)(a,o);let s=Math.max(0,Math.min($R.length,Math.floor((r-vz)/yz)+1)),c=r>=bz,l=r>=Cz,u=r>=Tz,d=u?`summary`:l?`detail`:c?`compacting`:`chatting`,f,p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=We(`relative shrink-0 origin-center`,gz),p={width:tz,height:rz},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}
55,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,W.jsx)(wR,{blooms:Ez,src:CR}),e[10]=_,e[11]=v):(_=e[10],v=e[11]);let y;e[12]===g?y=e[13]:(y=(0,W.jsx)(_t.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,W.jsx)(Az,{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,W.jsx)(kz,{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,W.jsx)(Mz,{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:nz*.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`}
55,e[31]=j):j=e[31];let M;e[32]===A?M=e[33]:(M=(0,W.jsx)(_t.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,W.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 N;return e[39]!==ee||e[40]!==d?(N=(0,W.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]=N):N=e[41],N}function Oz(e,t){return vz+t*yz}function kz(e){let t=(0,J.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:tz},s={opacity:0,y:12,top:uz,height:lz},t[0]=o,t[1]=s):(o=t[0],s=t[1]);let c=+!r,l=n?pz:lz,u=n?20:32,d;t[2]!==c||t[3]!==l||t[4]!==u?(d={opacity:c,y:0,top:uz,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:_z/1e3,ease:`easeOut`},t[6]=r,t[7]=f);let p,m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p={duration:.4,delay:_z/1e3,ease:`easeOut`},m={duration:xz/1e3,ease:Sz},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,W.jsx)(_t.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 Az(e){let t=(0,J.c)(12),{shownMessages:n,isCompacting:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={left:iz,top:fz,width:cz,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:xz/1e3,ease:Sz,opacity:{duration:xz/1e3,ease:[.7,0,.84,0]}},t[6]=u):u=t[6];let d;t[7]===n?d=t[8]:(d=$R.map((e,t)=>(0,W.jsx)(jz,{message:e,show:t<n},t)),t[7]=n,t[8]=d);let f;return t[9]!==l||t[10]!==d?(f=(0,W.jsx)(_t.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 jz(e){let t=(0,J.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=We(`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=We(`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,W.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,W.jsx)(jp,{className:`size-3.5 text-[#3497f9]`}):null,t[12]=i,t[13]=_);let v;t[14]!==n.at||t[15]!==_?(v=(0,W.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,W.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,W.jsx)(_t.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 Mz(e){let t=(0,J.c)(102),{isOpen:n,absorbed:r,showSummary:i,reduceMotion:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={left:iz,top:dz,width:cz,height:sz,padding:az,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:tz,he
55ight:nz,padding:mz,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=We(`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:_z/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:_z/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:wz/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:oz,height:oz},t[25]=D):D=t[25];let O=n?hz:oz,k=n?hz:oz,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:wz/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 N;t[32]!==A||t[33]!==ee?(N=(0,W.jsx)(_t.img,{src:ZR,alt:``,className:`shrink-0 rounded-full object-cover`,initial:D,animate:A,transition:ee}),t[32]=A,t[33]=ee,t[34]=N):N=t[34];let P;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(P={opacity:1},t[35]=P):P=t[35];let F=+!!n,I;
55t[36]===F?I=t[37]:(I={opacity:F},t[36]=F,t[37]=I);let L=a?0:.3,te=a?0:.12,ne;t[38]!==L||t[39]!==te?(ne={duration:L,delay:te},t[38]=L,t[39]=te,t[40]=ne):ne=t[40];let R,z;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,W.jsx)(`p`,{className:`text-display-sm text-foreground`,children:`Nora Bennett`}),z=(0,W.jsx)(`p`,{className:`truncate text-caption-md text-neutral-500`,children:`Head of Partnerships at Google`}),t[41]=R,t[42]=z):(R=t[41],z=t[42]);let re;t[43]!==I||t[44]!==ne?(re=(0,W.jsxs)(_t.div,{className:`min-w-0`,initial:P,animate:I,transition:ne,children:[R,z]}),t[43]=I,t[44]=ne,t[45]=re):re=t[45];let ie;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(ie={opacity:1},t[46]=ie):ie=t[46];let ae=+!n,oe;t[47]===ae?oe=t[48]:(oe={opacity:ae},t[47]=ae,t[48]=oe);let se=a?0:.2,ce;t[49]===se?ce=t[50]:(ce={duration:se},t[49]=se,t[50]=ce);let le,ue;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,W.jsx)(`p`,{className:`truncate text-sm text-foreground`,children:`Nora Bennett`}),ue=(0,W.jsx)(`p`,{className:`text-caption-md text-neutral-500`,children:`online`}),t[51]=le,t[52]=ue):(le=t[51],ue=t[52]);let de;t[53]!==oe||t[54]!==ce?(de=(0,W.jsxs)(_t.div,{className:`absolute inset-x-0 top-0 min-w-0`,initial:ie,animate:oe,transition:ce,children:[le,ue]}),t[53]=oe,t[54]=ce,t[55]=de):de=t[55];let fe;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(fe=JR.map(Pz),t[56]=fe):fe=t[56];let pe;t[57]!==n||t[58]!==a?(pe=(0,W.jsx)(Fz,{show:n,reduceMotion:a,className:`mt-3 flex gap-2`,children:fe}),t[57]=n,t[58]=a,t[59]=pe):pe=t[59];let me;t[60]!==re||t[61]!==de||t[62]!==pe?(me=(0,W.jsxs)(`div`,{className:`relative min-w-0 flex-1`,children:[re,de,pe]}),t[60]=re,t[61]=de,t[62]=pe,t[63]=me):me=t[63];let he;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(he={opacity:1},t[64]=he):he=t[64];let ge=+!n,_e;t[65]===ge?_e=t[66]:(_e={opacity:ge},t[65]=ge,t[66]=_e);let ve=a?0:.2,ye;t[67]===ve?ye=t[68]:(ye={duration:ve},t[67]=ve,t[68]=ye);let be,xe;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,W.jsx)(Wp,{className:`size-4 text-neutral-500`}),xe=(0,W.jsx)(Qe,{className:`size-4 text-neutral-500`}),t[69]=be,t[70]=xe):(be=t[69],xe=t[70]);let Se;t[71]!==_e||t[72]!==ye?(Se=(0,W.jsxs)(_t.div,{className:`flex shrink-0 items-center gap-2.5 pt-2.5`,initial:he,animate:_e,transition:ye,children:[be,xe]}),t[71]=_e,t[72]=ye,t[73]=Se):Se=t[73];let Ce;t[74]!==N||t[75]!==me||t[76]!==Se?(Ce=(0,W.jsxs)(`div`,{className:`flex items-start gap-3`,children:[N,me,Se]}),t[74]=N,t[75]=me,t[76]=Se,t[77]=Ce):Ce=t[77];let we;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(we={opacity:0,height:0},t[78]=we):we=t[78];let Te=+!!i,Ee=i?`auto`:0,De;t[79]!==Te||t[80]!==Ee?(De={opacity:Te,height:Ee},t[79]=Te,t[80]=Ee,t[81]=De):De=t[81];let Oe=a?0:.5,ke;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(ke=[.22,1,.36,1],t[82]=ke):ke=t[82];let B;t[83]===Oe?B=t[84]:(B={duration:Oe,ease:ke},t[83]=Oe,t[84]=B);let V;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,W.jsx)(Iz,{label:`WhatsApp Conversation`,date:`Sep 16, 2026`,Icon:un,badgeClassName:`bg-green-100 text-green-600`}),t[85]=V):V=t[85];let Ae;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,W.jsx)(XR,{radius:12,outerClassName:`mt-1.5`,className:`bg-blue-50 p-4`,children:(0,W.jsx)(`p`,{className:`text-caption-md text-foreground-secondary`,children:QR})}),t[86]=Ae):Ae=t[86];let je;t[87]!==De||t[88]!==B?(je=(0,W.jsxs)(_t.div,{className:`overflow-hidden py-3`,initial:we,animate:De,transition:B,children:[V,Ae]}),t[87]=De,t[88]=B,t[89]=je):je=t[89];let Me;t[90]===Symbol.for(`react.memo_cache_sentinel`)?(Me=ez.map(Nz),t[90]=Me):Me=t[90];let Ne;t[91]!==n||t[92]!==a?(Ne=(0,W.jsx)(Fz,{show:n,reduceMotion:a,to:.45,children:Me}),t[91]=n,t[92]=a,t[93]=Ne):Ne=t[93];let Pe;return t[94]!==E||t[95]!==u||t[96]!==f||t[97]!==Ce||t[98]!==je||t[99]!==Ne||t[100]!==h?(Pe=(0,W.jsxs)(_t.div,{"aria-hidden":!0,"data-card":u,className:f,initial:p,animate:h,transition:E,children:[Ce,je,Ne]}),t[94]=E,t[95]=u,t[96]=f,t[97]=Ce,t[98]=je,t[99]=Ne,t[100]=h,t[101]=Pe):Pe=t[101],Pe}function Nz(e,t){return(0,W.jsx)(Iz,{...e},t)}function Pz(e){let{key:t,src:n}=e;return(0,W.jsx)(`img`,{src:n,alt:``,className:`size-6`},t)}function Fz(e){let t=(0,J.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}
55,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:(wz-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,W.jsx)(_t.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 Iz(e){let t=(0,J.c)(17),{label:n,date:r,Icon:i,badgeClassName:a}=e,o;t[0]===a?o=t[1]:(o=We(`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,W.jsx)(i,{className:`size-2.5`}),t[2]=i,t[3]=s);let c;t[4]!==o||t[5]!==s?(c=(0,W.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,W.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,W.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,W.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,W.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 Lz(e){let t=(0,J.c)(12),{title:n,titleAdornment:r,className:i,children:a}=e,o;t[0]===i?o=t[1]:(o=We(`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,W.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,W.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,W.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 Rz(e){let t=(0,J.c)(4),{items:n}=e,r;t[0]===n?r=t[1]:(r=n.map(zz),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,W.jsx)(`ul`,{className:`flex flex-1 flex-col gap-2 py-6`,children:r}),t[2]=r,t[3]=i),i}function zz(e){return(0,W.jsxs)(`li`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,W.jsx)(Op,{"aria-hidden":!0,className:`size-5 shrink-0 text-primary`}),e]},e)}var Bz=vn.winback_2026_09,{trialDays:Vz,planTier:Hz}=Bz,Uz=[`Full Professional access for ${Vz} days`,`LinkedIn sync: ${kt[Hz].toLocaleString(`en-US`)} connections`,`Mail merge and voice mode`,`Outlook integration`,`Priority Support`,`Reminder before your trial ends`,`Cancel anytime`],Wz=350,Gz=512,Kz=[{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`}],qz=.8,Jz=Kz.map(({left:e,top:t,size:n,className:r})=>{let i=n*qz,a=(n-i)/2;return{left:`${(e+a)/Wz*100}%`,top:`${(t+a)/Gz*100}%`,width:`${i/Wz*100}%`,className:r}});function Yz(e){let t=(0,J.c)(6),{onActivate:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsx)(wR,{blooms:Jz,src:CR}),t[0]=r):r=t[0];let i,a,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,W.jsx)(`p`,{className:`text-[2.5rem] leading-none font-semibold text-foreground`,children:`Free`}),a=(0,W.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:`Credit card required`}),o=(0,W.jsx)(Rz,{items:Uz}),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,W.jsx)(`div`,{className:`flex w-full flex-col items-center`,children:(0,W.jsxs)(`div`,{className:`relative w-full max-w-[350px]`,children:[r,(0,W.jsxs)(Lz,{title:`${Vz}-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,W.jsx)(Ue,{size:`lg`,className:`w-full`,onClick:n,children:`Activate Pro Trial`})]})]})}),t[4]=n,t[5]=s),s}var Xz=`/assets/aisha-karim-COBA_2hq.png`,Zz=`/assets/anne-hill-D9WZPc3N.png`,Qz=`/assets/daniel-okafor-D3Sf7HBi.png`,$z=`/assets/emma-cole-BSk-nf-Z.png`,eB=`/assets/lucas-meyer-T6_IXyfp.png`,tB=`/assets/priya-nair-BkMqg4Vs.png`,nB=`/assets/ryan-BU3-ermv.png`,rB=`/assets/sofia-ramirez-Dteo4DRd.png`,iB=`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.`,aB=`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.`,oB={name:`Ryan Carter`,role:`Project Manager`,avatar:nB},sB=[{name:`Sofia RamÃrez`,role:`Engineering Manager`,avatar:rB},{name:`Anne Hill`,role:`Operations Lead`,avatar:Zz},{name:`Priya Nair`,role:`Product Designer`,avatar:tB},{name:`Daniel Okafor`,role:`Project Account Executive`,avatar:Qz},{name:`Sofia RamÃrez`,role:`Engineering Manager`,avatar:rB},{name:`Anne Hill`,role:`Operations Lead`,avatar:Zz},{name:`Priya Nair`,role:`Product Designer`,avatar:tB}],cB=2,lB=[{name:`Emma Cole`,role:`Content Strategist`,avatar:$z},{name:`Aisha Karim`,role:`Marketing Manager`,avatar:Xz},oB,{name:`Lucas Meyer`,role:`Finance Director`,avatar:eB},{name:`Emma Cole`,role:`Content Strategist`,avatar:$z},{name:`Aisha Karim`,role:`Marketing Manager`,avatar:Xz},{name:`Lucas Meyer`,role:`Finance Director`,avatar:eB}],uB=259,dB=108,fB=275,pB=480,mB=420,hB=470,gB=pB/2,_B=534,vB=(_B-mB)/2,yB=hB,bB=(yB-pB)/2,xB=235-hB/2,SB=gB-302,CB=SB-95,wB=-40,TB=wB-85,EB=460,DB=1600,OB=2060,kB=380,AB=2480,jB=560,MB=2860,NB=110,PB=[{column:`left`,index:3},{column:`right`,index:3},{column:`left`,index:2},{column:`right`,index:cB}],FB=OB-(PB.length-1)*kB,IB=`scale-[0.63] min-[380px]:scale-[0.76] min-[440px]:scale-[0.89] min-[490px]:scale-100`,LB=[{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`}],RB=`mask-b-from-90% mask-b-to-100%`,zB=`text-caption-sm text-neutral-500 uppercase`;function BB(){let e=(0,J.c)(39),t=Pm(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,U.useState)(n),a,o;e[2]===t?(a=e[3],o=e[4]):(a=()=>
55{if(t)return;let e=[...PB.map(VB),AB,MB].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,U.useEffect)(a,o);let s=Math.floor((r-FB)/kB),c=r>=FB?PB[Math.min(s,PB.length-1)]??null:null,l=r>=AB,u=r>=MB,d=u?`detail`:l?`expanded`:r>=OB?`found`:`searching`,f,p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=We(`relative shrink-0 origin-center`,IB),p={width:_B,height:yB},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:vB,top:xB,width:mB,height:hB},h={opacity:0},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,W.jsx)(wR,{blooms:LB,src:CR}),e[11]=v,e[12]=y):(v=e[11],y=e[12]);let b;e[13]===_?b=e[14]:(b=(0,W.jsx)(_t.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:bB,height:pB},e[15]=x):x=e[15];let S=!!t,C;e[16]!==l||e[17]!==c||e[18]!==S?(C=(0,W.jsx)(HB,{contacts:sB,side:`left`,from:wB,to:TB,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?cB:void 0,T=!!t,E;e[20]!==l||e[21]!==c||e[22]!==w||e[23]!==T?(E=(0,W.jsx)(HB,{contacts:lB,side:`right`,from:CB,to:SB,x:fB,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,W.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,W.jsx)(WB,{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,W.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,W.jsx)(`div`,{className:`relative flex size-full flex-col items-center justify-center-safe`,"data-
55phase":d,children:A}),e[36]=A,e[37]=d,e[38]=j):j=e[38],j}function VB(e,t){return FB+t*kB}function HB(e){let t=(0,J.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:uB},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:EB/1e3,ease:`easeOut`},y:{duration:DB/1e3,delay:EB/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,W.jsx)(UB,{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,W.jsx)(_t.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 UB(e){let t=(0,J.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:dB,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=We(`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,W.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,W.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,W.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,W.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,W.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 WB(e){let t=(0,J.c)(32),{isExpanded:n,showDetail:r,reduceMotion:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={left:fB,top:235-dB/2,width:uB,height:dB,borderRadius:32},t[0]=a):a=t[0];let o=a,s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={left:vB,top:xB,width:mB,height:hB,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=We(`absolute overflow-hidden bg-card p-5 shadow-md`,RB),u={...o,op
55acity: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:jB/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,W.jsx)(`img`,{src:nB,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,W.jsx)(`p`,{className:`truncate text-display-sm text-foreground`,children:`Ryan Carter`}),v=(0,W.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=JR.map(GB),t[13]=y):y=t[13];let b;t[14]===r?b=t[15]:(b=(0,W.jsxs)(`div`,{className:`flex w-[380px] items-start gap-3`,children:[g,(0,W.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v,(0,W.jsx)(KB,{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,W.jsx)(`p`,{className:zB,children:`Why Ryan surfaced`}),S=(0,W.jsx)(`p`,{className:`mt-1 line-clamp-2 text-caption-md text-foreground-secondary`,children:iB}),t[16]=x,t[17]=S):(x=t[16],S=t[17]);let C;t[18]===r?C=t[19]:(C=(0,W.jsxs)(KB,{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,W.jsx)(`p`,{className:zB,children:`Suggested action`}),t[20]=w):w=t[20];let T;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,W.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,W.jsx)(`div`,{className:`mt-2 rounded-xl bg-neutral-50 p-4`,children:(0,W.jsx)(`p`,{className:`text-caption-md text-foreground-secondary`,children:aB})}),t[22]=E):E=t[22];let D;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,W.jsxs)(XR,{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,W.jsxs)(`div`,{className:`mt-2 flex items-center gap-2 pointer-events-none`,children:[(0,W.jsx)(`span`,{className:We(Ve({variant:`outline`,size:`icon-sm`}),`size-7`),children:(0,W.jsx)(Pp,{className:`size-3.5`})}),(0,W.jsx)(`span`,{className:We(Ve({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,W.jsxs)(KB,{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,W.jsxs)(_t.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 GB(e){let{key:t,src:n}=e;return(0,W.jsx)(`img`,{src:n,alt:``,className:`size-6`},t)}function KB(e){let t=(0,J.c)(13),{show:n,step:r,className:i,children:a}=e,o;t[0]===i?o=t[1]:(o=We(`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*NB/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,W.jsx)(_t.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 qB=`What's new at Dex`,JB=`https://www.youtube-nocookie.com/embed/bZB3XADRzAU?autoplay=1&rel=0`,YB=`/reactivation/whats-new-poster.webp`,XB=[{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 ZB(){let e=(0,J.c)(7),t=(0,U.useRef)(null),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,W.jsx)(wR,{blooms:XB}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsx)(`button`,{type:`button`,"aria-label":`Play video: ${qB}`,className:`group relative block 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,W.jsx)(`img`,{src:YB,alt:``,"aria-hidden":`true`,decoding:`async`,className:`absolute inset-0 size-full object-cover`}),e[2]=i):i=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(`span`,{className:`grid size-10 shrink-0 place-items-center rounded-full bg-card shadow-sm`,children:(0,W.jsx)($e,{className:`size-5 translate-x-px fill-primary stroke-primary`,"aria-hidden":`true`})}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,W.jsx)(Sn,{render:r,children:(0,W.jsxs)(`span`,{className:`relative block aspect-video w-full overflow-hidden rounded-lg bg-card`,children:[i,(0,W.jsx)(`span`,{className:`absolute inset-0 grid place-items-center`,children:(0,W.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:[a,(0,W.jsx)(`span`,{className:`grid grid-cols-[1fr] transition-[grid-template-columns] duration-200 ease-out group-hover:grid-cols-[0fr]`,children:(0,W.jsx)(`span`,{className:`overflow-hidden`,children:(0,W.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,W.jsx)(`span`,{className:`whitespace-nowrap text-sm text-blue-950`,children:`Watch now`}),(0,W.jsx)(`span`,{className:`text-caption-sm whitespace-nowrap text-neutral-500 uppercase`,children:`2 min`})]})})})]})})]})}),e[4]=o):o=e[4];let s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(wn,{className:`sr-only`,children:qB}),e[5]=s):s=e[5];let c;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(`div`,{className:`flex size-full flex-col items-center justify-center [container-type:size]`,children:(0,W.jsxs)(`div`,{className:`relative w-[min(587px,100%,(100cqh_-_14px)*16/9)]`,children:[n,(0,W.jsxs)(Tn,{children:[o,(0,W.jsxs)(Cn,{size:`lg`,className:`duration-300 sm:max-w-[880px]`,overlayClassName:`duration-300`,ref:t,initialFocus:t,children:[s,(0,W.jsx)(`figure`,{className:`overflow-hidden rounded-xl bg-muted`,children:(0,W.jsx)(`iframe`,{src:JB,title:qB,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`block aspect-video w-full border-0`})})]})]})]})}),e[6]=c):c=e[6],c}var QB=[{key:`whats_new`,title:`What's new at Dex`,subtitle:`A lot changed while you were away. Here's the two-minute version.`,render:()=>(0,U.createElement)(ZB)},{key:`resurface_reminders`,title:`Resurface Reminders`,subtitle:`Dex will now find opportunities in your network unprompted!`,render:()=>(0,U.createElement)(BB)}
55,{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,U.createElement)(Dz)},{key:`ai_integrations`,title:`AI Integrations`,subtitle:`Dex now connects to your favorite AI so you can ask anything about your relationships.`,render:()=>(0,U.createElement)(WR)},{key:`free_trial`,title:`Turn Dex back on â free for ${Bz.trialDays} days`,subtitle:`Full Professional access. We'll remind you before it ends.`,render:({onPrimary:e})=>(0,U.createElement)(Yz,{onActivate:e}),isPaywall:!0}];B();var $B=()=>V(()=>import(`./app.reactivation-BBUkjnsT.js`),__vite__mapDeps([269,139,1,2,8,6,11,19,20,21,22,14,23,16,270,4,5,7,9,10])),eV=Ht({step:zt().int().min(0).max(QB.length-1).catch(0)}),tV=K(`/app/reactivation`)({validateSearch:eV,head:()=>H(`What's new at Dex`),component:q($B,`component`)});B();var nV=K(`/app/settings`)({head:()=>H(`Settings`),component:q(()=>V(()=>import(`./app.settings-EW2Bg28w.js`),__vite__mapDeps([271,1,2,139,8,6,11,79,78,19,20,21,22,14,23,16,171,4,5,7,9,10,172,173,15,85,76,75,77,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,187,188,189,190,191,192,136,145,141,69,116,117,118,119,120,73,74,93,59,94,95,96,123,124,125,193,194,195,142,143,54,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,135,218,219,220,221,222,223,224,225,226,227,228,229,230,231,70,232,99,233,234,112,235,236,266,272])),`component`)});function rV(e){let t=(0,J.c)(8),{reason:n}=e,r=n===`already-subscribed`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,W.jsx)(He,{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,W.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,W.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,W.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-3 py-10 text-center`,"aria-busy":`true`,children:[i,(0,W.jsxs)(`div`,{className:`space-y-1`,children:[o,c]})]}),t[5]=o,t[6]=c,t[7]=l):l=t[7],l}function iV(e){let t=(0,J.c)(16),{reason:n,onRetry:r}=e,i=n===`already-subscribed`,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.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,W.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,W.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,W.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,W.jsx)(Ue,{variant:`outline`,onClick:r,children:`Check again`}),t[6]=r,t[7]=u);let d;t[8]===i?d=t[9]:(d=i?(0,W.jsx)(`a`,{href:`/app/settings/billing`,className:Ve({variant:`ghost`}),children:`Go to billing`}):null,t[8]=i,t[9]=d);let f;t[10]!==u||t[11]!==d?(f=(0,W.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,W.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 aV=t({fetchUserForGate:()=>mV,hasCanceledStoreSubscription:()=>fV,isEntitled:()=>uV,isExpired:()=>lV,isGrandfatheredFree:()=>dV,refetchUserForGate:()=>hV}),oV=`premium`,sV=`free`,cV=`subscriptionended`;function lV(e){return e?.pricing_plan===cV}function uV(e){return e?!!(e.pricing_plan===oV||e.pricing_plan===sV&&e.created_at&&new Date(e.created_at)<Dt):!1}function dV(e){return e?.pricing_plan===sV&&uV(e)}function fV(e){let t=e?.subscription_details;return t?t.payment_source===Et.Revenuecat&&t.cancelation_requested_at!=null:!1}async function pV(){let e=(await Gt().v2.users.getMe({include:[`subscription_details`]})).data?.user;return e?[e]:[]}async function mV(){try{return(await de().ensureQueryData({queryKey:[`user`,`me`],queryFn:pV,staleTime:5*6e4}))[0]??null}catch{return null}}async function hV(){try{return(await de().fetchQuery({queryKey:[`user`,`me`],queryFn:pV,staleTime:0}))[0]??null}catch{return de().removeQueries({queryKey:[`user`,`me`]}),null}}var gV=1500,_V=4e4;async function vV(e){let t=de(),n=Gt(),r=Date.now()+_V;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(uV(r)&&n)return await t.invalidateQueries({queryKey:[`billing`,`subscription`]}),!0}}catch{}await new Promise(e=>setTimeout(e,gV))}return await t.invalidateQueries({queryKey:[`user`,`me`]}),!1}var yV=t({trackGoogleAdsStartTrialAfterConfirmation:()=>TV}),bV=1500,xV=4e4,SV=new Map;function CV(e){return/^cs_(test|live)_[A-Za-z0-9_]+$/.test(e)}
55async function wV(e){let t=Date.now()+xV;for(;Date.now()<t;){try{let t=(await Gt().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,bV))}return null}function TV(e){if(!e||!CV(e)||SV.has(e))return;let t=wV(e).then(e=>{e&&Of(e)}).catch(()=>{}).finally(()=>{SV.delete(e)});SV.set(e,t)}var EV=t({captureCheckoutOffer:()=>OV,clearCheckoutOffer:()=>AV,readCheckoutOffer:()=>kV,trialDaysForOffer:()=>jV}),DV=`dex_checkout_offer`;function OV(e){let t=_n(e?.offer);if(t)try{window.localStorage.setItem(DV,t.id)}catch{}}function kV({liveCode:e}={}){let t=_n(e);if(t)return t;let n=MV();if(!n)return null;let r=_n(n);return r||AV(),r}function AV(){try{window.localStorage.removeItem(DV)}catch{}}function jV(e){return _n(e)?.trialDays??7}function MV(){try{return window.localStorage.getItem(DV)}catch{return null}}B();var NV=()=>V(()=>import(`./app.subscribe-Edo_BGZ2.js`),__vite__mapDeps([273,1,2,139,8,6,11,72,19,20,21,22,14,23,16,86,29,87,266,191,28,32,33,34,30,39,31,10,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,205,122,59,80,149,77,78,79,81,82,83,84,274,0,174,92,76,75,89,90,153,4,5,7,9,17,25,275,13,12,268,252,270])),PV=Ht({next:Lt().optional(),plan:Rt(Ot).optional().catch(void 0),period:Rt(At).optional().catch(void 0),checkout_session_id:Lt().optional(),offer:Lt().optional().catch(void 0),from:Rt([`reactivation`,`personal`]).optional().catch(void 0)}),FV=K(`/app/subscribe`)({validateSearch:PV,head:()=>H(`Subscribe`),beforeLoad:async({search:e})=>{if(typeof window>`u`)return;let[{fetchUserForGate:t,hasCanceledStoreSubscription:n,isEntitled:r,isGrandfatheredFree:i},{maybeCaptureRegistrationData:a}]=await Promise.all([V(()=>Promise.resolve().then(()=>aV),void 0),V(()=>Promise.resolve().then(()=>Zj),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&&V(async()=>{let{trackGoogleAdsStartTrialAfterConfirmation:e}=await Promise.resolve().then(()=>yV);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 V(async()=>{let{getUserCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getUserCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));await bR(t());let n=t().toArray[0];return!e.isResumingCheckout&&!lV(n)&&Promise.all([V(()=>import(`./payment-step-BB6akSOP.js`),__vite__mapDeps([276,1,2,6,11,19,20,21,22,14,23,16,277,15,59,80,77,78,79,81,82,83,84,72,0,135,34,30,36,136,73,74,75,76,85,86,29,87,88,89,90,91,92,93,94,95,96,153,4,5,7,8,9,10,17,25,275,13,12,278,268])),V(async()=>{let{getStripe:e}=await import(`./stripe-BlP6G83_.js`);return{getStripe:e}},__vite__mapDeps([278,72,1])).then(({getStripe:e})=>e())]).catch(()=>{}),null},component:q(NV,`component`)});B();var IV=K(`/auth/desktop-login`)({head:()=>H(`Signing in to Dex`,{noindex:!0}),validateSearch:Ht({id_token:Lt().optional(),provider:Rt([`google`,`apple`]).catch(`google`),credential:Lt().optional()}),component:q(()=>V(()=>import(`./auth.desktop-login-DzHBXP-e.js`),__vite__mapDeps([279,1,2,6,8,11,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,14,16,87,88,89,90,91,92,93,59,94,95,96,111,112,113])),`component`)});B();var LV=K(`/auth/open-app`)({head:()=>H(`Open in Dex`,{noindex:!0}),component:q(()=>V(()=>import(`./auth.open-app-B01DUWiT.js`),__vite__mapDeps([280,1,2,6,11,19,20,21,22,14,23,16,131,17,25,132,281,282])),`component`)});function RV(e,t){return function(){return e.apply(t,arguments)}}var{toString:zV}=Object.prototype,{getPrototypeOf:BV}=Object,{iterator:VV,toStringTag:HV}=Symbol,UV=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WV=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),UV(n,t))return!0;n=BV(n)}return!1},GV=(e,t)=>e!=null&&WV(e,t)?e[t]:void 0,KV=(e=>t=>{let n=zV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qV=e=>(e=e.toLowerCase(),t=>KV(t)===e),JV=e=>t=>typeof t===e,{isArray:YV}=Array,XV=JV(`undefined`);function ZV(e){return e!==null&&!XV(e)&&e.constructor!==null&&!XV(e.constructor)&&tH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var QV=qV(`ArrayBuffer`);function $V(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&QV(e.buffer),t}var eH=JV(`string`),tH=JV(`function`),nH=JV(`number`),rH=e=>typeof e==`object`&&!!e,iH=e=>e===!0||e===!1,aH=e=>{if(!rH(e))return!1;let t=BV(e);return(t===null||t===Object.prototype||BV(t)===null)&&!WV(e,HV)&&!W
55V(e,VV)},oH=e=>{if(!rH(e)||ZV(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sH=qV(`Date`),cH=qV(`File`),lH=e=>!!(e&&e.uri!==void 0),uH=e=>e&&e.getParts!==void 0,dH=qV(`Blob`),fH=qV(`FileList`),pH=qV(`Set`),mH=e=>rH(e)&&tH(e.pipe);function hH(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var gH=hH(),_H=gH.FormData===void 0?void 0:gH.FormData,vH=e=>{if(!e)return!1;if(_H&&e instanceof _H)return!0;let t=BV(e);if(!t||t===Object.prototype||!tH(e.append))return!1;let n=KV(e);return n===`formdata`||n===`object`&&tH(e.toString)&&e.toString()===`[object FormData]`},yH=qV(`URLSearchParams`),[bH,xH,SH,CH]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(qV),wH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function TH(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),YV(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ZV(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 EH(e,t){if(ZV(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 DH=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,OH=e=>!XV(e)&&e!==DH;function kH(...e){let{caseless:t,skipUndefined:n}=OH(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&EH(r,i)||i,o=UV(r,a)?r[a]:void 0;aH(o)&&aH(e)?r[a]=kH(o,e):aH(e)?r[a]=kH({},e):YV(e)?r[a]=e.slice():(!n||!XV(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||ZV(n)||(TH(n,i),typeof n!=`object`||YV(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];VH.call(n,t)&&i(n[t],t)}}return r}var AH=(e,t,n,{allOwnKeys:r}={})=>(TH(t,(t,r)=>{n&&tH(t)?Object.defineProperty(e,r,{__proto__:null,value:RV(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),jH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},NH=(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&&BV(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},PH=(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},FH=e=>{if(!e)return null;if(YV(e))return e;let t=e.length;if(!nH(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},IH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&BV(Uint8Array)),LH=(e,t)=>{let n=(e&&e[VV]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},RH=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zH=qV(`HTMLFormElement`),BH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:VH}=Object.prototype,HH=qV(`RegExp`),UH=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};TH(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},WH=e=>{UH(e,(t,n)=>{if(tH(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(tH(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},GH=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return YV(e)?r(e):r(String(e).split(t)),n},KH=()=>{},qH=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function JH(e){return!!(e&&tH(e.append)&&e[HV]===`FormData`&&e[VV])}var YH=e=>{let t=new WeakSet,n=e=>{if(rH(e)){if(t.has(e))return;if(ZV(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(pH(e)){r=[];for(let t of e){let e=n(t);!XV(e)&&r.push(e)}}else r=YV(e)?[]:{},TH(e,(e,t)=>{let i=n(e);!XV(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},XH=qV(`AsyncFunction`),ZH=e=>e&&(rH(e)||tH(e))&&tH(e.then)&&tH(e.catch),QH=((e,t)=>e?setImmediate:t?((e,t)=>(DH.addEventListener(`message`,({source:n,data:r})=>{n===DH&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),DH.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,tH(DH.postMessage)),$H=typeof queueMicrotask<`u`?queueMicrotask.bind(DH):typeof process<`u`&&process.nextTick||QH,eU=e=>e!=null&&tH(e[VV]),Q={isArray:YV,isArrayBuffer:QV,isBuffer:ZV,isFormData:vH,isArrayBufferView:$V,isString:eH,isNumber:nH,isBoolean:iH,isObject:rH,isPlainObject:aH,isEmptyObject:oH,isReadableStream:bH,isRequest:xH,isResponse:SH,isHeaders:CH,isUndefined:XV,isDate:sH,isFile:cH,isReactNativeBlob:lH,isReactNative:uH,isBlob:dH,isRegExp:HH,isFunction:tH,isStream:mH,isURLSearchParams:yH,isTypedArray:IH,isFileList:fH,forEach:TH,merge:kH,extend:AH,trim:wH,stripBOM:jH,inherits:MH,toFlatObject:NH,kindOf:KV,kindOfTest:qV,endsWith:PH,toArray:FH,forEac
55hEntry:LH,matchAll:RH,isHTMLForm:zH,hasOwnProperty:UV,hasOwnProp:UV,hasOwnInPrototypeChain:WV,getSafeProp:GV,reduceDescriptors:UH,freezeMethods:WH,toObjectSet:GH,toCamelCase:BH,noop:KH,toFiniteNumber:qH,findKey:EH,global:DH,isContextDefined:OH,isSpecCompliantForm:JH,toJSONObject:YH,isAsyncFn:XH,isThenable:ZH,setImmediate:QH,asap:$H,isIterable:eU,isSafeIterable:e=>e!=null&&WV(e,VV)&&eU(e)},tU=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`]),nU=e=>{let t={},n,r,i;return e&&e.split(` 56`).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(tU,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function rU(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 iU=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),aU=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function oU(e,t){return Q.isArray(e)?e.map(e=>oU(e,t)):rU(String(e).replace(t,``))}var sU=e=>oU(e,iU),cU=e=>oU(e,aU);function lU(e){let t=Object.create(null);return Q.forEach(e.toJSON(),(e,n)=>{t[n]=cU(e)}),t}var uU=Symbol(`internals`);function dU(e){return e&&String(e).trim().toLowerCase()}function fU(e){return e===!1||e==null?e:Q.isArray(e)?e.map(fU):sU(String(e))}function pU(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 mU=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function hU(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 gU(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 _U(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=hU(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=hU(i.slice(0,a));if(!mU.test(o))return;let s=o.toLowerCase();s===`__proto__`||s===`constructor`||s===`prototype`||(t[s]=gU(hU(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 vU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yU(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 bU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function xU(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 SU=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=dU(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]=fU(e))}let a=(e,t)=>
56Q.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())&&!vU(e))a(nU(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=dU(e),e){let n=Q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return pU(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=dU(e),e){let n=Q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||yU(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=dU(e),e){let i=Q.findKey(n,e);i&&(!t||yU(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||yU(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]=fU(r),delete t[i];return}let o=e?bU(i):String(i).trim();o!==i&&delete t[i],t[o]=fU(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(` 57`)}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 _U(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[uU]=this[uU]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=dU(e);t[r]||(xU(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}};SU.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Q.reduceDescriptors(SU.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods(SU);var CU=`[REDACTED ****]`;function wU(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 TU(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 SU&&(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)&&wU(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?CU:i(a);Q.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function EU(e){try{return String(e)}catch{return``}}function DU(e){return e.errors.map(e=>{try{return e&&e.message?EU(e.message):EU(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=DU(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?TU(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
57RR_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 OU(e){return Q.isPlainObject(e)||Q.isArray(e)}function kU(e){return Q.endsWith(e,`[]`)?e.slice(0,-2):e}function AU(e,t,n){return e?e.concat(t).map(function(e,t){return e=kU(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function jU(e){return Q.isArray(e)&&!e.some(OU)}var MU=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function NU(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(AU(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)&&jU(e)||(Q.isFileList(e)||Q.endsWith(n,`[]`))&&(s=Q.toArray(e)))return n=kU(n),s.forEac
57h(function(e,r){!(Q.isUndefined(e)||e===null)&&t.append(o===!0?AU([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return OU(e)?!0:(t.append(AU(i,n,a),d(e)),!1)}let h=Object.assign(MU,{defaultVisitor:m,convertValue:d,isVisitable:OU});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 PU(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function FU(e,t){this._pairs=[],e&&NU(e,this,t)}var IU=FU.prototype;IU.append=function(e,t){this._pairs.push([e,t])},IU.toString=function(e){let t=e?t=>e.call(this,t,PU):PU;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function LU(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function RU(e,t,n){if(!t)return e;e||=``;let r=Q.isFunction(n)?{serialize:n}:n,i=Q.getSafeProp(r,`encode`)||LU,a=Q.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):Q.isURLSearchParams(t)?t.toString():new FU(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var zU=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)})}},BU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},VU={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:FU,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},HU=t({hasBrowserEnv:()=>UU,hasStandardBrowserEnv:()=>GU,hasStandardBrowserWebWorkerEnv:()=>KU,navigator:()=>WU,origin:()=>qU}),UU=typeof window<`u`&&typeof document<`u`,WU=typeof navigator==`object`&&navigator||void 0,GU=UU&&(!WU||[`ReactNative`,`NativeScript`,`NS`].indexOf(WU.product)<0),KU=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,qU=UU&&window.location.href||`http://localhost`,JU={...HU,...VU};function YU(e,t){return NU(e,new JU.classes.URLSearchParams,{visitor:function(e,t,n,r){return JU.isNode&&Q.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var XU=100;function ZU(e){if(e>XU)throw new $(`FormData field is too deeply nested (`+e+` levels). Max depth: `+XU,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}function QU(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)ZU(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function $U(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 eW(e){function t(e,n,r,i){ZU(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]=$U(r[a])),!o)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){let n={};return Q.forEachEntry(e,(e,r)=>{t(QU(e),r,n,0)}),n}return null}var tW=(e,t)=>e!=null&&Q.hasOwnProp(e,t)?e[t]:void 0;function nW(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 rW={transitional:BU,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(eW(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;
57if(i){let t=tW(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return YU(e,t).toString();if((a=Q.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=tW(this,`env`),r=n&&n.FormData;return NU(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),nW(e)):e}],transformResponse:[function(e){let t=tW(this,`transitional`)||rW.transitional,n=t&&t.forcedJSONParsing,r=tW(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,tW(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?$.from(e,$.ERR_BAD_RESPONSE,this,null,tW(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:JU.classes.FormData,Blob:JU.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=>{rW.headers[e]={}});function iW(e,t){let n=this||rW,r=t||n,i=SU.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 aW(e){return!!(e&&e.__CANCEL__)}var oW=class extends ${constructor(e,t,n){super(e??`canceled`,$.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function sW(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 cW(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function lW(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 uW(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 dW=(e,t,n=3)=>{let r=0,i=lW(50,250);return uW(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)},fW=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pW=(e,t=Q.asap)=>(...n)=>t(()=>e(...n)),mW=JU.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,JU.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(JU.origin),JU.navigator&&/(msie|trident)/i.test(JU.navigator.userAgent)):()=>!0,hW=JU.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 gW(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function _W(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 vW=/^https?:(?!\/\/)/i,yW=/[\t\n\r]/g;function bW(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function xW(e){return bW(e).replace(yW,``)}function SW(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${CU}`)}function CW(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${CU}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${CU}`);return n===-1?r:`${r}#${SW(t.slice(n+1))}`}function wW(e,t){if(typeof e==`string`){let n=xW(e);
57if(vW.test(n))throw new $(`Invalid URL ${JSON.stringify(CW(n))}: missing "//" after protocol`,$.ERR_INVALID_URL,t)}}function TW(e,t,n,r){wW(t,r);let i=!gW(t);return e&&(i||n===!1)?(wW(e,r),_W(e,t)):t}var EW=e=>e instanceof SU?{...e}:e,DW=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function OW(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);if(!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(EW(e),EW(t),n,!0)};return Q.forEach(DW({...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
57idateStatus),n}var kW=[`content-type`,`content-length`];function AW(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{kW.includes(t.toLowerCase())&&e.set(t,n)})}var jW=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function MW(e){let t=OW({},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=SU.from(s),t.url=RU(TW(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?jW(n):``)))}catch(t){throw $.from(t,$.ERR_BAD_OPTION_VALUE,e)}}if(Q.isFormData(r)&&(JU.hasStandardBrowserEnv||JU.hasStandardBrowserWebWorkerEnv||Q.isReactNative(r)?s.setContentType(void 0):Q.isFunction(r.getHeaders)&&AW(s,r.getHeaders(),n(`formDataHeaderPolicy`))),JU.hasStandardBrowserEnv&&(Q.isFunction(i)&&(i=i(t)),i===!0||i==null&&mW(t.url))){let e=a&&o&&hW.read(o);e&&s.set(a,e)}return t}var NW=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=MW(e),i=r.data,a=SU.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=SU.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());sW(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||BU;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(lU(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]=dW(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=dW(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new oW(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 _=cW(r.url);if(_&&!JU.protocols.includes(_)){n(new $(`Unsupported protocol `+_+`:`,$.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},PW=(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 oW(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},FW=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},IW=async function*(e,t){for await(let n of LW(e))yield*FW(n,t)},LW=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()}},RW=(e,t,n,r)=>{let i=IW(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})},zW=e=>e>=48&&e<=57||e>=65&&e<=70||e>
57=97&&e<=102,BW=(e,t,n)=>t+2<n&&zW(e.charCodeAt(t+1))&&zW(e.charCodeAt(t+2)),VW=e=>e<=57?e-48:(e&223)-55,HW=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,UW=e=>e===9||e===10||e===12||e===13||e===32,WW=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},GW=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)},KW=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&&BW(e,a,t)&&(o=VW(e.charCodeAt(a+1))*16+VW(e.charCodeAt(a+2)),a+=2),!UW(o)){if(o===61){r++;continue}if(!HW(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?GW(e):WW(n)},qW=(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&&BW(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>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function JW(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return qW(t===-1?e:e.slice(0,t),KW)}var YW=`1.19.0`,XW=64*1024,{isFunction:ZW}=Q,QW=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),$W=e=>{if(!Q.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},eG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tG=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},nG=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?ZW(i):typeof fetch==`function`,c=ZW(a),l=ZW(o);if(!s)return!1;let u=s&&ZW(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&&eG(()=>{let e=!1,t=new a(JU.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&&eG(()=>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(JU.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}=MW(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=PW([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),ee,N=null,P=()=>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`)||``}),tG(t)){let e=new URL(t,JU.origin);!i&&(e.username||e.password)&&(i={username:$W(e.username),password:$W(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(QW((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&JW(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 P()}let d=D&&(Q.isReadableStream(s)||Q.isStream(s)),_=(e,t,n)=>RW(e,XW,e=>{if(D&&e>T)throw N=P();t&&t(e)},n);
57if(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&&fW(ee,dW(pW(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 F=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/`+YW,!1);let I={...C,signal:A,method:n.toUpperCase(),headers:lU(x.normalize()),body:s,duplex:`half`,credentials:F?S:void 0};j=c&&new a(t,I);let L=await(c?k(j,C):k(t,I)),te=SU.from(L.headers);if(E){let t=Q.toFiniteNumber(te.getContentLength());if(t!=null&&t>w)throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j)}let ne=p&&(b===`stream`||b===`response`);if(p&&L.body&&(v||E||ne&&M)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=L[e]});let n=Q.toFiniteNumber(te.getContentLength()),[r,i]=v&&fW(n,dW(pW(v),!0))||[],a=0;L=new o(RW(L.body,XW,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 R=await m[Q.findKey(m,b)||`text`](L,e);if(E&&!p&&!ne){let t;if(R!=null&&(typeof R.byteLength==`number`?t=R.byteLength:typeof R.size==`number`?t=R.size:typeof R==`string`&&(t=typeof r==`function`?new r().encode(R).byteLength:R.length)),typeof t==`number`&&t>w)throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j)}return!ne&&M&&M(),await new Promise((t,n)=>{sW(t,n,{data:R,headers:SU.from(L.headers),status:L.status,statusText:L.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(N)throw j&&!N.request&&(N.request=j),N;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)}}},rG=new Map,iG=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=rG;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:nG(t)),l=c;return c};iG();var aG={http:null,xhr:NW,fetch:{get:iG}};Q.forEach(aG,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var oG=e=>`- ${e}`,sG=e=>Q.isFunction(e)||e===null||e===!1;function cG(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,!sG(r)&&(i=aG[(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 : 58`+e.map(oG).join(` 59`):` `+oG(e[0]):`as no adapter specified`),$.ERR_NOT_SUPPORT)}return i}var lG={getAdapter:cG,adapters:aG};function uG(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oW(null,e)}function dG(e){return uG(e),e.headers=SU.from(e.headers),e.data=iW.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),lG.getAdapter(e.adapter||rW.adapter,e)(e).then(function(t){uG(e),e.response=t;try{t.data=iW.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=SU.from(t.headers),t},function(t){if(!aW(t)&&(uG(e),t&&t.response)){e.response=t.response;try{t.response.data=iW.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=SU.from(t.response.headers)}return Promise.reject(t)})}var fG={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{fG[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var pG={};fG.transitional=function(e,t,n){function r(e,t){return`[Axios v`+YW+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>
59{if(e===!1)throw new $(r(i,` has been removed`+(t?` in `+t:``)),$.ERR_DEPRECATED);return t&&!pG[i]&&(pG[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}},fG.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function mG(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 hG={assertOptions:mG,validators:fG},gG=hG.validators,_G=class{constructor(e){this.defaults=e||{},this.interceptors={request:new zU,response:new zU}}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=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(` 60`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(` 61`),r=t===-1?-1:n.indexOf(` 62`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=` 63`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=OW(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&hG.assertOptions(n,{silentJSONParsing:gG.transitional(gG.boolean),forcedJSONParsing:gG.transitional(gG.boolean),clarifyTimeoutError:gG.transitional(gG.boolean),legacyInterceptorReqResOrdering:gG.transitional(gG.boolean),advertiseZstdAcceptEncoding:gG.transitional(gG.boolean),validateStatusUndefinedResolves:gG.transitional(gG.boolean)},!1),r!=null&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:hG.assertOptions(r,{encode:gG.function,serialize:gG.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),hG.assertOptions(t,{baseUrl:gG.spelling(`baseURL`),withXsrfToken:gG.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=SU.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||BU;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=[dG.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(()=>dG.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=dG.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=OW(this.defaults,e),RU(TW(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Q.forEach([`delete`,`get`,`head`,`options`],function(e){_G.prototype[e]=function(t,n){return this.request(OW(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(OW(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}_G.prototype[e]=t(),e!==`query`&&(_G.prototype[e+`Form`]=t(!0))});var vG=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 oW(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
63subscribe(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 yG(e){return function(t){return e.apply(null,t)}}function bG(e){return Q.isObject(e)&&e.isAxiosError===!0}var xG={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(xG).forEach(([e,t])=>{xG[t]=e});function SG(e){let t=new _G(e),n=RV(_G.prototype.request,t);return Q.extend(n,_G.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return SG(OW(e,t))},n}var CG=SG(rW);CG.Axios=_G,CG.CanceledError=oW,CG.CancelToken=vG,CG.isCancel=aW,CG.VERSION=YW,CG.toFormData=NU,CG.AxiosError=$,CG.Cancel=CG.CanceledError,CG.all=function(e){return Promise.all(e)},CG.spread=yG,CG.isAxiosError=bG,CG.mergeConfig=OW,CG.AxiosHeaders=SU,CG.formToJSON=e=>eW(Q.isHTMLForm(e)?new FormData(e):e),CG.getAdapter=lG.getAdapter,CG.HttpStatusCode=xG,CG.default=CG;var wG=Function.prototype.toString,TG=Object.create,EG=Object.prototype.toString,DG=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 OG(){return new DG}function kG(){return new WeakMap}var AG=typeof WeakMap<`u`?kG:OG;function jG(e){if(!e)return TG(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:TG(e);if(t&&~wG.call(t).indexOf(`[native code]`))try{return new t}catch{}return TG(e)}function MG(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 NG(e){return e.flags}var PG=/test/g.flags===`g`?NG:MG;function FG(e){var t=EG.call(e);return t.substring(8,t.length-1)}function IG(e){return e[Symbol.toStringTag]||FG(e)}var LG=typeof Symbol<`u`?IG:FG,RG=Object.defineProperty,zG=Object.getOwnPropertyDescriptor,BG=Object.getOwnPropertyNames,VG=Object.getOwnPropertySymbols,HG=Object.prototype,UG=HG.hasOwnProperty,WG=HG.propertyIsEnumerable,GG=typeof VG==`function`;function KG(e){return BG(e).concat(VG(e))}var qG=GG?KG:BG;function JG(e,t,n){for(var r=qG(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=zG(e,o),!s){t[o]=n.copier(e[o],n);continue}!s.get&&!s.set&&(s.value=n.copier(s.value,n));try{RG(t,o,s)}catch{t[o]=s.value}}return t}function YG(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}
63function XG(e,t){var n=new t.Constructor;return t.cache.set(e,n),JG(e,n,t)}function ZG(e,t){return e.slice(0)}function QG(e,t){return e.slice(0,e.size,e.type)}function $G(e,t){return new t.Constructor(ZG(e.buffer))}function eK(e,t){return new t.Constructor(e.getTime())}function tK(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 nK(e,t){return JG(e,tK(e,t),t)}function rK(e,t){var n=jG(t.prototype);for(var r in t.cache.set(e,n),e)UG.call(e,r)&&(n[r]=t.copier(e[r],t));return n}function iK(e,t){var n=jG(t.prototype);for(var r in t.cache.set(e,n),e)UG.call(e,r)&&(n[r]=t.copier(e[r],t));for(var i=VG(e),a=0,o=i.length,s=void 0;a<o;++a)s=i[a],WG.call(e,s)&&(n[s]=t.copier(e[s],t));return n}var aK=GG?iK:rK;function oK(e,t){var n=jG(t.prototype);return t.cache.set(e,n),JG(e,n,t)}function sK(e,t){return new t.Constructor(e.valueOf())}function cK(e,t){var n=new t.Constructor(e.source,PG(e));return n.lastIndex=e.lastIndex,n}function lK(e,t){return e}function uK(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 dK(e,t){return JG(e,uK(e,t),t)}var fK=Array.isArray,pK=Object.assign,mK=Object.getPrototypeOf||(function(e){return e.__proto__}),hK={array:YG,arrayBuffer:ZG,blob:QG,dataView:$G,date:eK,error:lK,map:tK,object:aK,regExp:cK,set:uK},gK=pK({},hK,{array:XG,map:nK,object:oK,set:dK});function _K(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:sK,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:sK,Object:e.object,Promise:lK,RegExp:e.regExp,Set:e.set,String:sK,WeakMap:lK,WeakSet:lK,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function vK(e){var t=_K(pK({},hK,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=mK(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return r(e,i);if(fK(e))return n(e,i);var a=t[LG(e)];return a?a(e,i):typeof e.then==`function`?e:r(e,i)}return function(e){return i(e,{Constructor:void 0,cache:AG(),copier:i,prototype:void 0})}}function yK(e){return vK(pK({},gK,e))}yK({});var bK=vK({});function xK(e,t){e.interceptors.request.use(function(e){return t().then(t=>(e.headers.set(`Authorization`,`Bearer ${t}`),e))})}var SK=n(((e,t)=>{t.exports={}})),CK=e(SK(),1);function wK(){return CK.default!==void 0&&!CK.default.browser}function TK(){return typeof window<`u`&&`navigator`in window&&`product`in window.navigator&&window.navigator.product===`ReactNative`}function EK(){return CK.default.versions&&CK.default.versions.node?`v${CK.default.versions.node}`:CK.default.version}function DK(){return window}function OK(){}var kK=e=>new Promise(t=>{setTimeout(t,e)}),AK=e=>Math.SQRT2**+e;function jK(e,t=5){let{responseLogger:n=OK,requestLogger:r=OK}=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=AK(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,kK(c).then(()=>e(a))):Promise.reject(r)})}var MK=n(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),NK=n(((e,t)=>{var n=MK(),r=typeof self==`object`&&self&&self.Object===Object&&self;
63t.exports=n||r||Function(`return this`)()})),PK=n(((e,t)=>{t.exports=NK().Symbol})),FK=n(((e,t)=>{var n=PK(),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})),IK=n(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),LK=n(((e,t)=>{var n=PK(),r=FK(),i=IK(),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})),RK=n(((e,t)=>{t.exports=Array.isArray})),zK=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),BK=n(((e,t)=>{var n=LK(),r=RK(),i=zK(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),VK=class extends Error{name=`AbortError`;constructor(){super(`Throttled function aborted`)}};function HK({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 VK);i.clear()},t.isEnabled=!0,Object.defineProperty(t,"queueSize",{get(){return i.size}}),t}}var UK=e(BK(),1),WK=/(?<value>\d+)(%)/;function GK(e,t=7){let n=t;if(WK.test(e)){let r=e.match(WK)?.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 KK(e,t){return t(`info`,`Throttle request to ${e}/s`),HK({limit:e,interval:1e3,strict:!1})}var qK=(e,t=`auto`)=>{let{logHandler:n=OK}=e.defaults,r=(0,UK.default)(t)?GK(t):GK(`auto`,t),i=KK(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,UK.default)(t)&&(t===`auto`||WK.test(t))&&s.headers&&s.headers[`x-contentful-ratelimit-second-limit`]){let c=GK(t,parseInt(s.headers[`x-contentful-ratelimit-second-limit`]));c!==r&&(o&&e.interceptors.request.eject(o),r=c,i=KK(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)}},JK=n(((e,t)=>{t.exports=TypeError})),YK=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 N=SK(),P=N.custom,F=le(P)?P:null,I={__proto__:null,double:`"`,single:`'`},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(fe(s,`quoteStyle`)&&!fe(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(fe(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=fe(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 4,282 bytes, line 63
63if(fe(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(fe(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 Se(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 z(t)?`[Array]`:`[Object]`;var g=Oe(s,r);if(o===void 0)o=[];else if(he(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 fe(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ie(t)){var x=me(t),T=B(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(le(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?we(D):D}if(xe(t)){for(var P=`<`+b.call(String(t.nodeName)),L=t.attributes||[],R=0;R<L.length;R++)P+=` `+L[R].name+`=`+te(ne(L[R].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(z(t)){if(t.length===0)return`[]`;var de=B(t,y);return g&&!De(de)?`[`+ke(de,g)+`]`:`[ `+C.call(de,`, `)+` ]`}if(ae(t)){var Ce=B(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),Ce),`, `)+` }`:Ce.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(Ce,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&N)return N(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ge(t)){var V=[];return a&&a.call(t,function(e,n){V.push(y(n,t,!0)+` => `+y(e,t))}),Ee(`Map`,i.call(t),V,g)}if(ye(t)){var Ae=[];return l&&l.call(t,function(e){Ae.push(y(e,t))}),Ee(`Set`,c.call(t),Ae,g)}if(_e(t))return Te(`WeakMap`);if(be(t))return Te(`WeakSet`);if(ve(t))return Te(`WeakRef`);if(se(t))return we(y(Number(t)));if(ue(t))return we(y(E.call(t)));if(ce(t))return we(p.call(t));if(oe(t))return we(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(!re(t)&&!ie(t)){var je=B(t,y),Me=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ne=t instanceof Object?``:`null prototype`,Pe=!Me&&A&&Object(t)===t&&A in t?_.call(pe(t),8,-1):Ne?`Object`:``,Fe=(Me||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Pe||Ne?`[`+C.call(S.call([],Pe||[],Ne||[]),`: `)+`] `:``);return je.length===0?Fe+`{}`:g?Fe+`{`+ke(je,g)+`}`:Fe+`{ `+C.call(je,`, `)+` }`}return String(t)};function te(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function ne(e){return v.call(String(e),/"/g,`"`)}function R(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function z(e){return pe(e)===`[object Array]`&&R(e)}function re(e){return pe(e)===`[object Date]`&&R(e)}function ie(e){return pe(e)===`[object RegExp]`&&R(e)}function ae(e){return pe(e)===`[object Error]`&&R(e)}function oe(e){return pe(e)===`[object String]`&&R(e)}function se(e){return pe(e)===`[object Number]`&&R(e)}function ce(e){return pe(e)===`[object Boolean]`&&R(e)}function le(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 ue(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function fe(e,t){return de.call(e,t)}function pe(e){return m.call(e)}function me(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function he(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 ge(e){if(!i||!e||typeof e!=`object`)return!1;
63try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _e(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 ve(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function ye(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 be(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 xe(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Se(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Se(_.call(e,0,t.maxStringLength),t)+r}var i=L[t.quoteStyle||`single`];return i.lastIndex=0,te(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Ce),`single`,t)}function Ce(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 we(e){return`Object(`+e+`)`}function Te(e){return e+` { ? }`}function Ee(e,t,n,r){var i=r?ke(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function De(e){for(var t=0;t<e.length;t++)if(he(e[t],` 64`)>=0)return!1;return!0}function Oe(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 ke(e,t){if(e.length===0)return``;var n=` 65`+t.prev+t.base;return n+C.call(e,`,`+n)+` 66`+t.prev}function B(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=fe(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)fe(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}})),XK=n(((e,t)=>{var n=YK(),r=JK(),i=function(e,t,n){for(var r=e,i;(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}})),ZK=n(((e,t)=>{t.exports=Object})),QK=n(((e,t)=>{t.exports=Error})),$K=n(((e,t)=>{t.exports=EvalError})),eq=n(((e,t)=>{t.exports=RangeError})),tq=n(((e,t)=>{t.exports=ReferenceError})),nq=n(((e,t)=>{t.exports=SyntaxError})),rq=n(((e,t)=>{t.exports=URIError})),iq=n(((e,t)=>{t.exports=Math.abs})),aq=n(((e,t)=>{t.exports=Math.floor})),oq=n(((e,t)=>{t.exports=Math.max})),sq=n(((e,t)=>{t.exports=Math.min})),cq=n(((e,t)=>{t.exports=Math.pow})),lq=n(((e,t)=>{t.exports=Math.round})),uq=n(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),dq=n(((e,t)=>{var n=uq();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),fq=n(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),pq=n(((e,t)=>{var n=fq();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),mq=n(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),hq=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}})),gq=n(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=hq();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),_q=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),vq=n(((e,t)=>{t.exports=ZK().getPrototypeOf||null})),yq=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);
66for(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}})),bq=n(((e,t)=>{var n=yq();t.exports=Function.prototype.bind||n})),xq=n(((e,t)=>{t.exports=Function.prototype.call})),Sq=n(((e,t)=>{t.exports=Function.prototype.apply})),Cq=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),wq=n(((e,t)=>{var n=bq(),r=Sq(),i=xq();t.exports=Cq()||n.call(i,r)})),Tq=n(((e,t)=>{var n=bq(),r=JK(),i=xq(),a=wq();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Eq=n(((e,t)=>{var n=Tq(),r=pq(),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})),Dq=n(((e,t)=>{var n=_q(),r=vq(),i=Eq();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})),Oq=n(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=bq().call(n,r)})),kq=n(((e,t)=>{var n,r=ZK(),i=QK(),a=$K(),o=eq(),s=tq(),c=nq(),l=JK(),u=rq(),d=iq(),f=aq(),p=oq(),m=sq(),h=cq(),g=lq(),_=dq(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=pq(),x=mq(),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=gq()(),T=Dq(),E=vq(),D=_q(),O=Sq(),k=xq(),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>
66`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},N={__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`]},P=bq(),F=Oq(),I=P.call(k,Array.prototype.concat),L=P.call(O,Array.prototype.splice),te=P.call(k,String.prototype.replace),ne=P.call(k,String.prototype.slice),R=P.call(k,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,ie=function(e){var t=ne(e,0,1),n=ne(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 te(e,z,function(e,t,n,i){r[r.length]=n?te(i,re,`$1`):t||e}),r},ae=function(e,t){var n=e,r;if(F(N,n)&&(r=N[n],n=`%`+r[0]+`%`),F(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(R(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ie(e),r=n.length>0?n[0]:``,i=ae(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],L(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ne(p,0,1),h=ne(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+`%`,F(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=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Aq=n(((e,t)=>{var n=kq(),r=Tq(),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}})),jq=n(((e,t)=>{var n=kq(),r=Aq(),i=YK(),a=JK(),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}})),Mq=n(((e,t)=>{var n=kq(),r=Aq(),i=YK(),a=jq(),o=JK(),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})),Nq=n(((e,t)=>{var n=JK(),r=YK(),i=XK(),a=jq(),o=Mq()||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}})),Pq=n(((e,t)=>
66{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}})),Fq=n(((e,t)=>{var n=Pq(),r=Nq(),i=mq(),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(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}})),Iq=n(((e,t)=>{var n=Nq(),r=Fq(),i=Pq(),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
66:`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 N=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?N+`[]`:N;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var te=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,te):P:P+(y?`.`+te:`[`+te+`]`);T.set(t,O);var R=n();R.set(m,T),l(j,e(L,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,R))}}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");if(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:``}})),Lq=n(((e,t)=>{var n=Fq(),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);
66S&&(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;
66if(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)}})),Rq=e(n(((e,t)=>{var n=Iq(),r=Lq();t.exports={formats:Pq(),parse:r,stringify:n}}))(),1),zq=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Bq(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&&zq.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=>Rq.default.stringify(e)},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}function Vq(e){let t=bK(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}function Hq(e,t){let n=Bq(t),r=e.create(n);return r.httpClientParams=t,r.cloneWithNewParams=function(n){return Hq(e,{...Vq(t),...n})},t.onBeforeRequest&&r.interceptors.request.use(t.onBeforeRequest),typeof t.accessToken==`function`&&xK(r,t.accessToken),t.throttle&&qK(r,t.throttle),jK(r,t.retryLimit),t.onError&&r.interceptors.response.use(e=>e,t.onError),r}function Uq({query:e}){let t={};return delete e.resolveLinks,t.params=bK(e),t}function Wq(e){let t=Object.getOwnPropertyNames(e);for(let n of t){let t=e[n];t&&typeof t==`object`&&Wq(t)}return Object.freeze(e)}function Gq(e){return Wq(e.sys||{}),e}function Kq(){let e=DK();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
66indows`:`iOS`:`macOS`}function qq(){let e=CK.default.platform||`linux`,t=CK.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 Jq(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{TK()?(a=Kq(),i.push(`platform ReactNative`)):wK()?(a=qq(),i.push(`platform node.js/${EK()}`)):(a=Kq(),i.push(`platform browser`))}catch{a=null}return a&&i.push(`os ${a}`),`${i.filter(e=>e!==``).join(`; `)};`}function Yq(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return bK(this)}})}var Xq=n(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Zq=n(((e,t)=>{t.exports=Xq()(Object.getPrototypeOf,Object)})),Qq=e(n(((e,t)=>{var n=LK(),r=Zq(),i=zK(),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 $q(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 eJ(e){let{config:t,response:n}=e,r;if($q(t),!(0,Qq.default)(n)||!(0,Qq.default)(t))throw e;let i=n?.data,a={status:n?.status,statusText:n?.statusText,message:``,details:{}};t&&(0,Qq.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 tJ(e){return function(t){return Object.assign({},e,t)}}var nJ={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},rJ={0:8203,1:8204,2:8205,3:65279},iJ=[,,,,].fill(String.fromCodePoint(rJ[0])).join(``);function aJ(e){let t=JSON.stringify(e);return`${iJ}${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(rJ[e])).join(``)}).join(``)}`}function oJ(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 sJ(e){try{new URL(e,e.startsWith(`/`)?`https://acme.com`:void 0)}catch{return!1}return!0}function cJ(e,t,n=`auto`){return n===!0||n===`auto`&&(oJ(e)||sJ(e))?e:`${e}${aJ(t)}`}Object.fromEntries(Object.entries(rJ).map(e=>e.reverse())),Object.fromEntries(Object.entries(nJ).map(e=>e.reverse()));var lJ=`${Object.values(nJ).map(e=>`\\u{${e.toString(16)}}`).join(``)}`;RegExp(`[${lJ}]{4,}`,`gu`);function uJ(e,t){return cJ(e,t)}var dJ,fJ;function pJ(){if(fJ)return dJ;fJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return dJ=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)},dJ}var mJ,hJ;function gJ(){if(hJ)return mJ;hJ=1;var e=pJ();mJ=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;
66if(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(`/`)},mJ}var _J=gJ(),vJ=({pointer:e,mappings:t,data:n,hiddenStrings:r})=>{let i=t[e];if(i){delete t[e];let a=bJ(n,e);for(let e of a){t[e]=i;let a=uJ(_J.get(n,e),r);_J.set(n,e,a)}}else{let t=bJ(n,e);for(let e of t){let t=uJ(_J.get(n,e),r);_J.set(n,e,t)}}};function yJ(e){return`content`in e&&!!e.content}var bJ=(e,t=``)=>{let n=[],r=_J.get(e,t);if(yJ(r))for(let i=0;i<r.content.length;i++)r.content[i].nodeType===`text`?n.push(`${t}/content/${i}/value`):n.push(...bJ(e,`${t}/content/${i}`));return n},xJ=({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},SJ=e=>[`builtin`,`sidebar-builtin`,`editor-builtin`].includes(e),CJ=e=>TJ.includes(e);function wJ(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 TJ=[`singleLine`,`tagEditor`,`listInput`,`checkbox`,`richTextEditor`,`multipleLine`];function EJ(e,t,n,r,i,a,o){let s=o?t[o]:t;switch(e){case`Symbol`:{let e=uJ(s,n);_J.set(r,i,e);break}case`Text`:{let e=uJ(s,n);_J.set(r,i,e);break}case`RichText`:vJ({pointer:``,mappings:a,data:s,hiddenStrings:n});break;case`Array`:{let e=s.map(e=>typeof e==`string`?uJ(e,n):e);_J.set(r,i,e);break}}}var DJ=(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(SJ(p.widgetNamespace)&&!CJ(p.widgetId))continue;let m=a.startsWith(`/`)?a:`/${a}`;if(_J.has(e,m)){let t=_J.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?EJ(f,t,xJ({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=>{EJ(f,t,xJ({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)})}}},OJ=(e,t,n)=>{var r;let i=wJ(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=>DJ(e,a,o,t,n)),c&&c.Entry&&c.Entry.forEach(e=>DJ(e,a,o,t,n)),c&&c.Asset&&c.Asset.forEach(e=>DJ(e,a,o,t,n))}else{let e=i;if(!e.sys.contentSourceMapsLookup)return console.error(`Content source maps lookup data is missing`),e;DJ(e,e.sys.contentSourceMapsLookup.fieldTypes,e.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return i};function kJ(e){return MJ(e)||jJ(e)||IJ(e)||AJ()}function AJ(){throw TypeError(`Invalid attempt to spread non-iterable instance. 67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jJ(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function MJ(e){if(Array.isArray(e))return LJ(e)}function NJ(e){"@babel/helpers - typeof";return NJ=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},NJ(e)}function PJ(e,t){return zJ(e)||RJ(e,t)||IJ(e,t)||FJ()}
67function FJ(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IJ(e,t){if(e){if(typeof e==`string`)return LJ(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)?LJ(e,t):void 0}}function LJ(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 RJ(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 zJ(e){if(Array.isArray(e))return e}var BJ={},VJ=function(e){return e&&e.sys&&e.sys.type===`Link`},HJ=function(e){return e&&e.sys&&e.sys.type===`ResourceLink`},UJ=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}`]},WJ=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}`)},GJ=function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var n=PJ(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]}}},KJ=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=GJ(a),s=o.spaceId,c=o.environmentId,l=o.entryId,u=i.split(`:`)[1];return WJ(e,{linkType:u,entryId:l,spaceId:s,environmentId:c})||BJ}var d=t.sys.id;return WJ(e,{linkType:i,entryId:d})||BJ},qJ=function(e){if(Array.isArray(e))return e.filter(function(e){return e!==BJ});for(var t in e)e[t]===BJ&&delete e[t];return e},JJ=function(e,t,n,r){if(t(e))return n(e);if(e&&NJ(e)===`object`){for(var i in e)e.hasOwnProperty(i)&&(e[i]=JJ(e[i],t,n,r));r&&(e=qJ(e))}return e},YJ=function(e,t,n){var r=KJ(e,t);return r===BJ?n?r:t:r},XJ=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},ZJ=function(e,t){if(t||={},!e.items)return[];var n=bK(e),r=Object.keys(n.includes||{}).reduce(function(e,t){return[].concat(kJ(e),kJ(n.includes[t]))},[]),i=[].concat(kJ(n.items),kJ(r)).filter(function(e){return!!e.sys}),a=new Map(i.reduce(function(e,t){var n=UJ(t.sys).map(function(e){return[e,t]});return e.push.apply(e,kJ(n)),e},[]));return i.forEach(function(e){var n=XJ(e,t.itemEntryPoints);Object.assign(e,JJ(n,function(e){return VJ(e)||HJ(e)},function(e){return YJ(a,e,t.removeUnresolved)},t.removeUnresolved))}),n.items},QJ=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 $J(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,t=``){return(0,QJ.default)(this,e,t,(e,t)=>({sys:{type:`Link`,linkType:`Entry`,id:t.sys.id,circular:!0}}))}})}async function eY(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 rY(e,[],t,{paginate:a});r||(o.items=ZJ(o,{removeUnresolved:i,itemEntryPoints:[`fields`]}));let s=tY(o.items);return o.nextSyncToken&&(s.nextSyncToken=o.nextSyncToken),o.nextPageToken&&
68(s.nextPageToken=o.nextPageToken),Gq($J(Yq(s)))}function tY(e){let t=e=>(t,n)=>(n.sys.type===e&&t.push(Yq(n)),t);return{entries:e.reduce(t(`Entry`),[]),assets:e.reduce(t(`Asset`),[]),deletedEntries:e.reduce(t(`DeletedEntry`),[]),deletedAssets:e.reduce(t(`DeletedAsset`),[])}}function nY(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 rY(e,t,n,{paginate:r}){let i=nY(n),a=(await e.get(`sync`,Uq({query:i}))).data||{};return t=t.concat(a.items||[]),a.nextPageUrl?r?(delete i.initial,i.sync_token=iY(a.nextPageUrl),rY(e,t,i,{paginate:r})):{items:t,nextPageToken:iY(a.nextPageUrl)}:a.nextSyncUrl?{items:t,nextSyncToken:iY(a.nextSyncUrl)}:{items:[]}}function iY(e){let t=e.split(`?`);return t.length>0?t[1].replace(`sync_token=`,``):``}function aY(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 oY(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 sY(e){if(!e.select)return e;let t=oY(e);return t.has(`sys`)?e:(t.add(`sys.id`),t.add(`sys.type`),Object.assign(Object.assign({},e),{select:[...t].join(`,`)}))}function cY(e,{resolveLinks:t,removeUnresolved:n}){let r=$J(e);return t&&(r.items=ZJ(r,{removeUnresolved:n,itemEntryPoints:[`fields`]})),r}var lY=class extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name=`ValidationError`}};function uY(e,t,n){if(n||={},typeof t!=`number`)throw new lY(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new lY(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&t<n.now)throw new lY(e,`value (${t}) cannot be in the past, current time was ${n.now}`)}function dY(e){return!!(e&&typeof e==`object`&&typeof e.lte==`string`)}function fY(e){return!!(e&&typeof e==`object`&&(typeof e.lte==`string`||e.lte instanceof Date))}var pY=e=>{if(typeof e!=`object`||!e||Array.isArray(e))throw new lY(`timelinePreview`,`The 'timelinePreview' parameter must be an object.`);let t=dY(e.release),n=fY(e.timestamp);if(!t&&!n)throw new lY(`timelinePreview`,`The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.`);return t||n},mY=e=>{let t=e?.host,n=e?.timelinePreview??e?.alphaFeatures?.timelinePreview;return{enabled:xY(t,n),timelinePreview:n}};function hY(e){if(e.locale===`*`)throw new lY(`locale`,`The use of locale='*' is no longer supported.To fetch an entry in all existing locales, 69 use client.withAllLocales instead of the locale='*' parameter.`)}function gY(e){if(e.locale)throw new lY(`locale`,"The `locale` parameter is not allowed")}function _Y(e,t){t?gY(e):hY(e)}function vY(e){if(`resolveLinks`in e)throw new lY(`resolveLinks`,`The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. 70 If you do not want to resolve links, use client.withoutLinkResolution.`)}function yY(e){if(`removeUnresolved`in e)throw new lY(`removeUnresolved`,`The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects. 71 If you do not want to include unresolved links, use client.withoutUnresolvableLinks.`)}function bY(e,t){if(t===void 0)return!1;if(typeof t!=`boolean`)throw new lY(`includeContentSourceMaps`,`The 'includeContentSourceMaps' parameter must be a boolean.`);let n=typeof e==`string`&&e.startsWith(`preview`);if(t&&!n)throw new lY(`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. 72 `);return t}function xY(e,t){if(t===void 0)return!1;let n=pY(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 lY(`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. 73 `);return!0}function SY(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 CY=function(){return CY=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},CY.apply(this,arguments)};function wY(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 TY(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
73r++)(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 EY(e){let{cursor:t,pagePrev:n,pageNext:r,skip:i}=e,a=wY(e,[`cursor`,`pagePrev`,`pageNext`,`skip`]);return Object.assign(Object.assign(Object.assign(Object.assign({},a),{cursor:!0}),!!n&&{pagePrev:n}),!!r&&{pageNext:r})}function DY(e,t){let n=t?.split(`?`)[1];if(n)return new URLSearchParams(n).get(e)}var OY={prev:`pagePrev`,next:`pageNext`};function kY(e){let t={};for(let[n,r]of Object.entries(OY)){let i=DY(r,e.pages[n]);i&&(t[n]=i)}return Object.assign(Object.assign({},e),{pages:t})}var AY=2880*60,jY=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 MY({http:e,getGlobalOptions:t},n){let r=(e=`unknown`)=>new jY(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(bY(n?.host,r)&&(t.includeContentSourceMaps=!0,t.select)){let e=oY(t);e.add(`sys`),t.select=Array.from(e).join(`,`)}return t}function o(t){let{enabled:n}=mY(e.httpClientParams);return n?`timeline/${t}`:t}function s(t){let{enabled:n,timelinePreview:r}=mY(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?OJ(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){eJ(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){eJ(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:Uq({query:e})})}async function m(e,t={}){return _(e,t,n)}async function h(e={}){return y(e,n)}async function g(e={}){return kY(await y(EY(e),n))}async function _(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:r}=n;return _Y(t,r),vY(t),yY(t),SY(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){eJ(e)}}async function y(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:n}=t;return _Y(e,n),vY(e),yY(e),SY(e),x(n?Object.assign(Object.assign({},e),{locale:`*`}):e,t)}function b(e){return a(aY(sY(s(Object.assign({},e)))))}async function x(e,t){let{withoutLinkResolution:n,withoutUnresolvableLinks:r,withLocaleBasedPublishing:i}=t;try{let t=Uq({query:b(e)});return i&&(t.headers=Object.assign(Object.assign({},t.headers),{"X-Contentful-Locale-Based-Publishing":!0})),cY(await l({context:`environment`,path:o(`entries`),config:t}),{resolveLinks:!n,removeUnresolved:r??!1})}catch(e){eJ(e)}}async function S(e,t={}){return D(e,t,n)}async function C(e={}){return T(e,n)}async function w(e={}){return kY(await T(EY(e),n))}async function T(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:n}=t;return _Y(e,n),SY(e),O(n?Object.assign(Object.assign({},e),{locale:`*`}):e,t)}async function E(e,t,n){let{withLocaleBasedPublishing:r}=n;try{let n=Uq({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){eJ(e)}}async function D(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:r}=n;return _Y(t,r),SY(t),E(e,r?Object.assign(Object.assign({},t),{locale:`*`}):t,n)}async function O(e,t){let{withLocaleBasedPublishing:n}=t;try{let t=Uq({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){eJ(e)}}async function k(e){return l({context:`environment`,path:`tags/${e}`})}async function A(e={}){return SY(e),l({context:`environment`,path:`tags`,config:Uq({query:aY(sY(e))})})}async function j(e){try{let t=Math.floor(Date.now()/1e3);uY(`expiresAt`,e,{maximum:t+AY,now:t})}catch(e){eJ(e)}return u({context:`environment`,path:`asset_keys`,data:{expiresAt:e}})}async function M(e={}){return SY(e),l({context:`environment`,path:`locales`,config:Uq({query:sY(e)})})}async function ee(e,t={paginate:!0}){return N(e,t,n)}async function N(t,n,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){vY(t),yY(t);let i=Object.assign(Object.assign({},n),r);
73return ue(e),eY(e,t,i)}function P(e){return F(e,n)}function F(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){return I(e,t)}function I(e,t){let{withoutLinkResolution:n,withoutUnresolvableLinks:r}=t;return cY(e,{resolveLinks:!n,removeUnresolved:r??!1})}function L(e,t={}){return te(e,t)}async function te(e,t={}){try{return l({context:`environment`,path:`taxonomy/concept-schemes/${e}`,config:Uq({query:aY(sY(t))})})}catch(e){eJ(e)}}function ne(e={}){return R(e)}async function R(e={}){try{return l({context:`environment`,path:`taxonomy/concept-schemes`,config:Uq({query:aY(sY(e))})})}catch(e){eJ(e)}}function z(e,t={}){return re(e,t)}async function re(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}`,config:Uq({query:aY(sY(t))})})}catch(e){eJ(e)}}function ie(e={}){return ae(e)}async function ae(e={}){try{return l({context:`environment`,path:`taxonomy/concepts`,config:Uq({query:aY(sY(e))})})}catch(e){eJ(e)}}function oe(e,t={}){return se(e,t)}async function se(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}/ancestors`,config:Uq({query:aY(sY(t))})})}catch(e){eJ(e)}}function ce(e,t={}){return le(e,t)}async function le(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}/descendants`,config:Uq({query:aY(sY(t))})})}catch(e){eJ(e)}}function ue(e){e.defaults.baseURL=t().environmentBaseUrl}return{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:P,sync:ee,getEntry:m,getEntries:h,getEntriesWithCursor:g,getConceptScheme:L,getConceptSchemes:ne,getConcept:z,getConcepts:ie,getConceptAncestors:oe,getConceptDescendants:ce,createAssetKey:j}}function NY({http:e,getGlobalOptions:t},n,r){let i=MY({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 PY=({http:e,getGlobalOptions:t})=>{function n(r){return NY({http:e,getGlobalOptions:t},r,n)}let r=MY({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 FY(e){if(!e.accessToken)throw TypeError(`Expected parameter accessToken`);if(!e.space)throw TypeError(`Expected parameter space`);vY(e),yY(e);let t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:`cdn.contentful.com`,environment:`master`}),e),n=Jq(`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=Hq(CG,t);if(!r.defaults.baseURL)throw Error(`Please define a baseURL`);let i=tJ({space:t.space,environment:t.environment,spaceBaseUrl:r.defaults.baseURL,environmentBaseUrl:`${r.defaults.baseURL}environments/${t.environment}`});return r.defaults.baseURL=i({}).environmentBaseUrl,PY({http:r,getGlobalOptions:i})}var IY=FY({space:`u17em9tc1vdb`,environment:`master`,accessToken:`ATWRagrRwcwv428uM_3rbDgRJoKKGASF0Xh4wpnQoOg`,host:`cdn.contentful.com`}),LY=`https://getdex.com`,RY=230;function zY(e){let t=e?.fields?.file?.url;if(t)return t.startsWith(`//`)?`https:${t}`:t}function BY(e,t){let n=zY(e);
73if(!n)return;let r=new URLSearchParams({fm:`webp`,q:`75`});return t&&r.set(`w`,String(t)),`${n}?${r.toString()}`}function VY(e){let t=e?.fields;return t?.description?.trim()||t?.title?.trim()||void 0}function HY(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 UY(e){let t=HY(e).trim().split(/\s+/).filter(Boolean).length;return Math.max(1,Math.round(t/RY))}function WY(e){return e?e.replace(/^@+/,``):void 0}function GY(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=BY(r,1200);return{title:t,description:n,canonicalUrl:e.canonicalUrl,ogTitle:e.ogTitle||t,ogDescription:e.ogDescription||n,ogImageUrl:a,ogImageAlt:VY(r)??e.title,twitterTitle:e.twitterTitle||e.ogTitle||t,twitterDescription:e.twitterDescription||e.ogDescription||n,twitterImageUrl:BY(i,1200)??a,twitterImageAlt:VY(i)??e.title,jsonLdSchema:e.jsonLdSchema}}var KY={nodeType:`document`,data:{},content:[]};function qY(e){let t=e.canonicalUrl||`${LY}/blog/${e.slug}/`,n=(e.authors??[]).filter(e=>e?.fields).map(e=>({name:e.fields.name,slug:e.fields.slug,avatarUrl:BY(e.fields.profileImage,96),twitter:WY(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:UY(e.body),featured:!!e.featured,featureImageUrl:BY(e.featureImage,1200),tags:(e.tags??[]).filter(e=>e?.fields).map(e=>({name:e.fields.name,slug:e.fields.slug})),seo:GY({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 JY(e){return{...qY({...e,body:KY}),body:KY,readMinutes:0}}function YY(e){return{...XY({...e,body:KY}),body:KY,readMinutes:0}}function XY(e){let t=`${LY}/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:UY(e.body),featured:!1,featureImageUrl:BY(e.coverImage,1200),tags:[],seo:GY({canonicalUrl:t,title:e.title,excerpt:e.subtitle,featureImage:e.coverImage,jsonLdSchema:e.jsonLdSchema})}}var ZY=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`})),QY=3,$Y=600*1e3,eX=new Map;function tX(e,t){let n=eX.get(e);if(n&&Date.now()-n.at<$Y)return n.value;let r=t();return eX.set(e,{at:Date.now(),value:r}),r.catch(()=>{eX.get(e)?.value===r&&eX.delete(e)}),r}var nX=[`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`],rX=[`sys.id`,`sys.updatedAt`,`fields.title`,`fields.subtitle`,`fields.slug`,`fields.createdAt`,`fields.updatedAt`,`fields.coverImage`];function iX(e,t){return(t.publishedAt??``).localeCompare(e.publishedAt??``)}function aX(e){return!ZY.has(e.slug)}async function oX(){return tX(`blogIndex`,async()=>(await IY.getEntries({content_type:`blogPost`,order:[`-fields.publishedAt`],include:QY})).items.map(e=>qY(e.fields)).filter(aX))}async function sX(){return tX(`guideIndex`,async()=>(await IY.getEntries({content_type:`guide`,order:[`-fields.createdAt`],include:QY})).items.map(e=>XY(e.fields)))}async function cX(){return tX(`blogCards`,async()=>(await IY.getEntries({content_type:`blogPost`,order:[`-fields.publishedAt`],include:QY,select:[...nX]})).items.map(e=>JY(e.fields)).filter(aX))}async function lX(){return tX(`guideCards`,async()=>(await IY.getEntries({content_type:`guide`,order:[`-fields.createdAt`],include:QY,select:[...rX]})).items.map(e=>YY(e.fields)))}async function uX(){let[e,t]=await Promise.all([cX(),lX()]);return[...e,...t].sort(iX)}async function dX(e){return(await oX()).find(t=>t.slug===e)??null}async function fX(e){return(await sX()).find(t=>t.slug===e)??null}async function pX(e){let t=(await cX()).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 mX(e){let[t,n]=await Promise.all([cX(),oX()]),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 hX(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)=>
73t.shared===e.shared?iX(e.item,t.item):t.shared-e.shared).slice(0,n).map(e=>e.item)}function gX(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 _X(e){if(!/^\d+$/.test(e))return null;let t=Number(e);return t>=1?t:null}B();var vX=()=>V(()=>import(`./blog.index-DTIFaJIm.js`),__vite__mapDeps([283,6,1,11,2,284,4,5,7,8,9,10,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288,289,251,194])),yX=`Dex Blog`,bX=`The Dex blog â relationship-building playbooks, personal CRM guides, and notes from the team.`,xX=K(`/blog/`)({loader:async()=>gX(await cX(),1),head:({loaderData:e})=>{let t=St({title:yX,description:bX,canonicalPath:`/blog/`,markdownPath:`/blog.md`,jsonLd:e?xt({canonicalUrl:`${Ct}/blog/`,name:yX,description:bX,items:e.items}):void 0});return{meta:[...t.meta,{"script:ld+json":qA([WA([{name:`Blog`,path:`/blog`}])])}],links:t.links}},component:q(vX,`component`)});B();var SX=K(`/blog/$slug`)({loader:async({params:e})=>{let[t,n]=await Promise.all([dX(e.slug),oX()]);if(!t)throw o();return{item:t,related:hX(t,n)}},head:({loaderData:e})=>{if(!e?.item)return{};let t=e.item,n=bt(t);return{meta:[...n.meta,{"script:ld+json":KA({section:`blog`,title:t.title,path:t.href})}],links:n.links,scripts:n.scripts}},component:q(()=>V(()=>import(`./blog._slug-CMzp-vc4.js`),__vite__mapDeps([290,1,2,6,11,291,4,5,7,8,9,10,14,17,43,47,288,286,16])),`component`)});B();var CX=()=>V(()=>import(`./guides.index-DTx0sGsR.js`),__vite__mapDeps([292,6,1,11,2,284,4,5,7,8,9,10,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288])),wX=`In-depth guides from Dex on personal CRMs, networking, and staying in touch with the people who matter.`,TX=K(`/guides/`)({loader:()=>lX(),head:({loaderData:e})=>H(`Guides`,{description:wX,canonicalPath:`/guides`,markdownPath:`/guides.md`,jsonLd:qA([XA({path:`/guides`,name:`Dex guides`,description:wX,type:`CollectionPage`}),YA(`${Ct}/guides/#list`,(e??[]).map(e=>({name:e.title,path:e.href,description:e.excerpt}))),WA([{name:`Guides`,path:`/guides`}])])}),component:q(CX,`component`)});B();var EX=K(`/guides/$slug`)({loader:async({params:e})=>{let[t,n]=await Promise.all([fX(e.slug),sX()]);if(!t)throw o();return{item:t,related:hX(t,n)}},head:({loaderData:e})=>{if(!e?.item)return{};let t=e.item,n=bt(t);return{meta:[...n.meta,{"script:ld+json":KA({section:`guides`,title:t.title,path:t.href})}],links:n.links,scripts:n.scripts}},component:q(()=>V(()=>import(`./guides._slug-xC-LFxaH.js`),__vite__mapDeps([293,1,2,6,11,291,4,5,7,8,9,10,14,17,43,47,288,286,16])),`component`)}),DX=`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/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/05MdpSfXAC9tV6aTQ8hK4YxrUDM9OLp7m2EVBOP9DgAAoxpgaz4NZEBXZTEErSuChrzpLDAqYOw7uXZX5F7lHlrivtRieE9JFCRWmOrzYDyjLJm9OHw2Xjzq
731YzW2FG6fkrn87Bp3Ew60+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==`,OX=`/assets/granola-DemxJ_zc.svg`,kX=`/assets/superhuman-vLbhJs0B.png`,AX=`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%20117.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`,jX=[{value:`all`,label:`All`},{value:`social-media`,label:`Social media`},{value:`communications`,label:`Communications`},{value:`productivity`,label:`Productivity`},{value:`ai`,label:`AI`}
73],MX={"social-media":`Social media`,communications:`Communications`,productivity:`Productivity`,ai:`AI`},NX=[{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:Yp,iconStyle:`compact`,iconClass:`text-[#EA4335]`,logo:pF,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:Ze,iconStyle:`compact`,iconClass:`text-[#0072C6]`,logo:xF,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:`View 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:Zp,iconStyle:`compact`,iconClass:`text-[#4285F4]`,logo:DX,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:et,iconStyle:`compact`,iconClass:`text-primary`,logo:dF,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:it,iconStyle:`compact`,iconClass:`text-[#1877F2]`,logo:fF,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:at,iconStyle:`compact`,iconClass:`text-[#D62976]`,logo:_F,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
73your 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:rm,iconStyle:`compact`,iconClass:`text-[#25D366]`,logo:CF,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:$p,iconStyle:`compact`,iconClass:`text-[#34DA51]`,logo:gF,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:nt,iconStyle:`compact`,iconClass:`text-foreground`,logo:kX,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:Ye,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`}
73,{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:OX,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:lm,iconStyle:`full`,iconClass:`text-white`,badgeClass:`bg-[#FF4F00]`,logo:AX,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:tt,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.`,
73subtitle:`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:qe,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 PX(e){return NX.find(t=>t.slug===e)}B();var FX=()=>V(()=>import(`./integrations.index-DoYqGha4.js`),__vite__mapDeps([294,1,2,4,5,6,7,8,9,10,11,17,287,25,153,14,295,19,20,21,22,23,16,59,43])),IX=`Connect Dex with Gmail, Outlook, Google Calendar, Facebook, Instagram, WhatsApp, Zapier, and more relationship sources.`,LX=K(`/integrations/`)({head:()=>H(`Integrations`,{description:IX,canonicalPath:`/integrations`,markdownPath:`/integrations.md`,jsonLd:qA([XA({path:`/integrations`,name:`Dex integrations`,description:IX,type:`CollectionPage`}),YA(`${Ct}/integrations/#list`,NX.map(e=>({name:e.name,path:`/integrations/${e.slug}`,description:e.description}))),WA([{name:`Integrations`,path:`/integrations`}])])}),component:q(FX,`component`)});B();var RX=K(`/integrations/$slug`)({head:({params:e})=>{let t=PX(e.slug);if(!t)return H(`Integration not found`,{noindex:!0});let n=`/integrations/${t.slug}`;return H(t.title,{description:t.description,canonicalPath:n,markdownPath:`${n}.md`,jsonLd:qA([{...XA({path:n,name:t.title,description:t.description}),about:{"@id":NA},...t.documentationLink?{significantLink:t.documentationLink}:{}},WA([{name:`Integrations`,path:`/integrations`},{name:t.name,path:n}])])})},component:q(()=>V(()=>import(`./integrations._slug-B2pAOB9C.js`),__vite__mapDeps([296,4,1,2,5,6,7,8,9,10,11,19,20,21,22,14,23,16,17,25,295,59,43])),`component`)});B();var zX=K(`/resources/`)({loader:()=>uX(),head:()=>{let e=St({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:q(()=>V(()=>import(`./resources.index-fm3M2JqO.js`),__vite__mapDeps([297,6,1,11,2,284,4,5,7,8,9,10,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288])),`component`)});function BX(e){return/[",\n\r]/.test(e)?`"${e.replaceAll(`"`,`""`)}"`:e}var VX=[{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(` 74 75`)}];function HX(e){let t=VX.filter(t=>e.some(e=>t.value(e).trim()!==``));return[t.map(e=>BX(e.header)).join(`,`),...e.map(e=>t.map(t=>BX(t.value(e))).join(`,`))].join(`\r 76`)}function UX(e,t){let n=new Blob([``,HX(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 WX(e){return e.replace(/\\/g,`\\\\`).replace(/\n/g,`\\n`).replace(/[,;]/g,e=>`\\${e}`)}function GX(e,t){let n=t?.trim();return n?`${e}:${WX(n)}`:null}function KX(e){return[`BEGIN:VCARD`,`VERSION:3.0`,GX(`FN`,e.full_name??`${e.first_name??``} ${e.last_name??``}`),`N:${WX(e.last_name??``)};${WX(e.first_name??``)};;;`,GX(`TITLE`,e.job_title),GX(`ORG`,e.company),GX(`PHOTO;
76VALUE=URI`,e.image_url),GX(`ADR;TYPE=HOME`,e.legacy_location?`;;${e.legacy_location};;;;`:null),...(e.contact_emails??[]).map(e=>GX(`EMAIL;TYPE=INTERNET`,e.email)),...(e.contact_phone_numbers??[]).map(e=>GX(`TEL;TYPE=CELL`,e.phone_number)),GX(`URL`,e.website),GX(`URL`,e.linkedin),GX(`URL`,e.twitter),GX(`URL`,e.facebook),GX(`URL`,e.instagram),`END:VCARD`].filter(e=>!!e).join(`\r 77`)}function qX(e,t){let n=e.map(KX).join(`\r 78`),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 JX(e){let t=(0,J.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=We(`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,W.jsx)(N,{to:`/`,"aria-label":`Dex home`,children:(0,W.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,W.jsx)(`header`,{className:a,children:o}),t[3]=a,t[4]=s);let c;t[5]===i?c=t[6]:(c=We(`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,W.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,W.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 YX(e){let t=(0,J.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,W.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,W.jsx)(`h1`,{className:`truncate font-display text-2xl font-semibold text-foreground`,children:n.name}),t[2]=n.name,t[3]=d);let f;t[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,W.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,W.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,W.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=()=>UX(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,W.jsx)(Je,{}),t[19]=y):y=t[19];let b;t[20]===v?b=t[21]:(b=(0,W.jsxs)(Ue,{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=()=>qX(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,W.jsx)(Je,{}),t[25]=S):S=t[25];let C;t[26]===x?C=t[27]:(C=(0,W.jsxs)(Ue,{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,W.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,W.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(XX),t[34]=r,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,W.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,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,W.jsx)(Ue,{variant:`outline`,onClick:i,disabled:s,children:s?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(He,{className:`animate-spin`}),`Loadingâ¦`]}):`Show ${l>0?l.toLocaleString():``} more`}),c?(0,W.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,W.jsxs)(W.Fragment,{children:[T,D,O]}
78),t[43]=T,t[44]=D,t[45]=O,t[46]=k):k=t[46],k}function XX(e){return(0,W.jsx)(eZ,{card:e},e.id)}var ZX=[{key:`linkedin`,label:`LinkedIn`,Icon:mn},{key:`twitter`,label:`Twitter`,Icon:hn},{key:`facebook`,label:`Facebook`,Icon:gn},{key:`instagram`,label:`Instagram`,Icon:fn},{key:`telegram`,label:`Telegram`,Icon:ln},{key:`tiktok`,label:`TikTok`,Icon:pn},{key:`youtube`,label:`YouTube`,Icon:dn}];function QX(e,t){if(Kt(e))return e;try{return qt(e,t)}catch{return null}}function $X(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 eZ(e){let t=(0,J.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=$X(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=QX(a,t);return o?{label:r,href:o,Icon:i}:null},t[5]=n,t[6]=u);let d=ZX.map(u).filter(cZ),f=n.website&&Kt(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,U.useState)(null),x=n.image_url&&n.image_url!==y?(0,W.jsx)(`img`,{src:n.image_url,alt:``,className:We(`shrink-0 rounded-full object-cover`,i?`size-20`:`size-11`),onError:()=>b(n.image_url??null)}):(0,W.jsx)(`div`,{"aria-hidden":!0,className:We(`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:En(a)}),S=i?`text-2xl`:`text-heading-md`,C;t[13]===S?C=t[14]:(C=We(`truncate font-display font-semibold text-foreground`,S),t[13]=S,t[14]=C);let w;t[15]!==a||t[16]!==C?(w=(0,W.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,W.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,W.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,W.jsxs)(bn,{children:[(0,W.jsx)(yn,{render:(0,W.jsxs)(Ue,{variant:`outline`,size:`sm`,className:`w-8 shrink-0 px-0 sm:w-auto sm:px-3`,"aria-label":`Download .vcf`,onClick:()=>qX([n],n.full_name??`contact`),children:[(0,W.jsx)(Je,{}),(0,W.jsx)(`span`,{className:`hidden sm:inline`,children:`Download .vcf`})]})}),(0,W.jsx)(xn,{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,W.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,W.jsxs)(`div`,{className:We(`mt-4 flex flex-col border-t border-border pt-3`,i?`gap-2`:`gap-1.5`),children:[n.legacy_location?(0,W.jsx)(lZ,{icon:(0,W.jsx)(Ke,{className:`size-3.5 shrink-0`}),value:n.legacy_location}):null,m.map(sZ),g.map(oZ)]}):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,W.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap items-center gap-1.5`,children:[f?(0,W.jsx)(uZ,{label:`Website`,href:f,children:(0,W.jsx)(Xe,{className:`size-3.5`})}):null,d.map(aZ)]}):null,j;t[35]===n.research?j=t[36]:(j=n.research?(0,W.jsxs)(`div`,{className:`mt-4 border-t border-border pt-3`,children:[(0,W.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:`From the web`}),n.research.one_line_summary?(0,W.jsx)(`p`,{className:`mt-2 text-sm text-foreground`,children:n.research.one_line_summary}):null,n.research.sections.map(rZ),n.research.sources.length>0?(0,W.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[`Sources:`,` `,n.research.sources.map(nZ)]}):null]}):null,t[35]=n.research,t[36]=j);let M;t[37]===v?M=t[38]:(M=v.length>0?(0,W.jsxs)(`div`,{className:`mt-4 border-t border-border pt-3`,children:[(0,W.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:`Notes`}),(0,W.jsx)(`ul`,{className:`mt-2 flex flex-col gap-2`,children:v.map(tZ)})]}):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,W.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 tZ(e,t){return(0,W.jsxs)(`li`,{className:`rounded-lg bg-muted/50 px-3 py-2 text-sm text-foreground`,children:[(0,W.jsx)(`p`,{className:`whitespace-pre-wrap`,children:On(e.note)}),(0,W.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 nZ(e,t){return(0,W.jsxs)(`span`,{children:[t>0?` · `:``,(0,W.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 rZ(e){return(0,W.jsxs)(`div`,{className:`mt-3`,children:[(0,W.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:e.title}),(0,W.jsx)(`ul`,{className:`mt-1 flex flex-col gap-1`,children:e.bullets.map(iZ)})]},e.key)}function iZ(e,t){return(0,W.jsxs)(`li`,{className:`flex gap-2 text-sm text-foreground-secondary`,children:[(0,W.jsx)(`span`,{className:`select-none text-muted-foreground`,children:`â¢`}),(0,W.jsx)(`span`,{className:`min-w-0`,children:e})]},t)}function aZ(e){let{label:t,href:n,Icon:r}=e;return(0,W.jsx)(uZ,{label:t,href:n,children:(0,W.jsx)(r,{className:`size-3.5`})},t)}function oZ(e,t){return(0,W.jsx)(lZ,{href:`tel:${e.phone_number}`,icon:(0,W.jsx)(Qe,{className:`size-3.5 shrink-0`}),value:e.phone_number,label:e.label},`${e.phone_number}-${t}`)}function sZ(e,t){return(0,W.jsx)(lZ,{href:`mailto:${encodeURIComponent(e.email)}`,icon:(0,W.jsx)(Ze,{className:`size-3.5 shrink-0`}),value:e.email,label:e.label},`${e.email}-${t}`)}function cZ(e){return!!e}function lZ(e){let t=(0,J.c)(18),{href:n,icon:r,value:i,label:a}=e,o;t[0]===r?o=t[1]:(o=(0,W.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=We(`truncate`,s),t[2]=s,t[3]=c);let l;t[4]!==c||t[5]!==i?(l=(0,W.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,W.jsx)(Dn,{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,W.jsxs)(W.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,W.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,W.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 uZ(e){let t=(0,J.c)(4),{label:n,href:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,W.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 dZ(e){let t=(0,J.c)(7),{isGroup:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.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,W.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,W.jsx)(N,{to:`/app/auth/sign-up`,className:We(Ve({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,W.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[`Dex is a personal CRM for keeping in touch.`,` `,(0,W.jsx)(N,{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,W.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}B();var fZ=K(`/shared/$token`)({loader:async({params:e})=>{let{getSDK:t}=await V(async()=>{let{getSDK:e}=await import(`./useSDK-C7watZ5C.js`).then(e=>e.i);return{getSDK:e}},__vite__mapDeps([77,1,78,79,80,81,82,83,84,72]));try{let n=(await t().v2.shareLinks.resolveShared(e.token)).data?.shared;if(!n)throw Error(`empty payload`);return n}catch{throw o()}},head:({loaderData:e})=>
78{if(!e)return H(`Shared with you`,{noindex:!0});let t=(e.type===`group`?e.group?.name:e.contact?.full_name)?.trim()||`Shared with you`,n=H(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:q(()=>V(()=>import(`./shared._token-De1mJR0m.js`),__vite__mapDeps([298,1,2,6,11,72])),`component`),pendingComponent:pZ,notFoundComponent:q(()=>V(()=>import(`./shared._token-CstBWcX5.js`),__vite__mapDeps([299,4,1,2,5,6,7,8,9,10,11,19,20,21,22,14,23,16,300])),`notFoundComponent`)});function pZ(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(JX,{children:(0,W.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,W.jsx)(He,{className:`size-5 animate-spin text-muted-foreground`}),(0,W.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Opening shared linkâ¦`})]})}),e[0]=t):t=e[0],t}B();var mZ=K(`/unsubscribe/$type`)({head:()=>H(`You are unsubscribed`,{noindex:!0}),component:q(()=>V(()=>import(`./unsubscribe._type-DM4NTIWT.js`),__vite__mapDeps([301,4,1,2,5,6,7,8,9,10,11,19,20,21,22,14,23,16])),`component`)}),hZ={label:`Top professionals build their network with Dex`,items:Rn},gZ={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:In},{name:`Stanford GSB`,src:Fn},{name:`Chicago Booth`,src:Ln},{name:`Northwestern Kellogg`,src:Pn}]},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:kn},{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:Mn},{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:Nn}]},_Z=[{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:hZ},{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:hZ,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:An}]},{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:hZ}
78,{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:hZ,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:jn}]}];function vZ(e){return _Z.find(t=>t.slug===e)}B();var yZ=K(`/use-cases/$slug`)({head:({params:e})=>{let t=vZ(e.slug);if(!t)return H(`Use case not found`,{noindex:!0});let n=`/use-cases/${t.slug}`;return H(t.title,{description:t.subtitle[0],canonicalPath:n,markdownPath:`${n}.md`,jsonLd:qA([{...XA({path:n,name:t.title,description:t.subtitle[0]}),about:{"@id":NA}}
78,WA([{name:t.title,path:n}])])})},component:q(()=>V(()=>import(`./use-cases._slug-DejSqmHD.js`),__vite__mapDeps([302,4,1,2,5,6,7,8,9,10,11,61,19,20,21,22,14,23,16,17,18,24,25,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,62,45,46,47,48,63,49,50,51])),`component`)});B();var bZ=K(`/app/_shell/`)({validateSearch:CL,head:()=>H(`Home`),component:q(()=>V(()=>import(`./app._shell.index-D6j4Y-Hs.js`),__vite__mapDeps([303,1,2,4,5,6,7,8,9,10,139,121,75,90,238,74,304,11,19,20,21,22,14,23,16,86,29,87,196,285,305,306,72,307,300,84,0,308,85,76,77,78,79,80,81,82,83,88,89,91,92,35,152,34,30,31,28,32,33,36,37,68,309,120,122,73,93,59,94,95,96,310,230,311,191,39,38,192,41,42,136,180,181,145,141,69,312,251,194,274,313,314,215,118,217,221,15,150,151,40,26,27,223,224,135,176,177,178,179,218,183,182,315,316,237,193,195,142,143,317,225,318,214,319,320,175,184,321,219,124,125,322,323,324,325,257,326,327,328,329,211,330,331,198,117,119,123,332,333,334,335,336,337,174,338,339,239,226,227,340,341,342,245,343,344,345,346,240,347,348,349,350,132,351,352,109,108,353,354,355,356,254,357,210,358,144,359,360,361])),`component`)});B();var xZ=K(`/app/_shell/archive`)({head:()=>H(`Archived Contacts`),loader:async()=>{let{getContactsCollection:e}=await V(async()=>{let{getContactsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app._shell.archive-CVBYMPif.js`),__vite__mapDeps([362,6,1,11,2,363,139,8,7,172,9,10,19,20,21,22,14,23,16,173,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,238,364,365,4,5,54,366,306,307,300,0,308,309,120,73,74,93,59,94,95,96,310,230,147,251,194,191,192,136,145,141,69,319,215,217,223,224,336,135,218,367,333,274,313,338,314,123,368,369,370,323,322,320,193,195,142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,386,387,388,66,148,312,389,220,327,390,391,392,228,229,343,393,394,395,396,245,200,159,397,286,398,399,400,213,216,401,402,403,304,404,405,350,406,407,408,346,409,410,140,144,411])),`component`)});B();var SZ=K(`/app/_shell/birthdays`)({head:()=>H(`Birthdays`),loader:()=>(V(async()=>{let{prefetchBirthdays:e}=await import(`./useBirthdays-i_avhg0s.js`).then(e=>e.r);return{prefetchBirthdays:e}},__vite__mapDeps([344,1,2,121,6,75,90,304,11,86,29,14,16,87,85,76,77,78,79,80,81,82,83,84,72,88,89,91,92,122,120,73,74,93,59,94,95,96,345])).then(({prefetchBirthdays:e})=>e()).catch(()=>{}),null),component:q(()=>V(()=>import(`./app._shell.birthdays-mpEIeyBy.js`),__vite__mapDeps([412,1,2,6,11,14,16,199,319,83,320,150,29,22,20,28,32,30,31,10,33,34,35,36,37,151,152,68,40,337,4,5,7,8,9,223,224,373,323,85,76,75,77,78,79,80,81,82,84,72,86,87,88,89,90,91,92,122,393,344,121,304,120,73,74,93,59,94,95,96,345,408,177,15,135,136,413])),`component`)});B();var CZ=K(`/app/_shell/contacts`)({head:()=>H(`Contacts`),loader:async({context:e})=>{if(e.workspaceId)return null;let{getContactsCollection:t,getGranolaConnectionCollection:n,getViewsCollection:r,getPreferencesCollection:i}=await V(async()=>{let{getContactsCollection:e,getGranolaConnectionCollection:t,getViewsCollection:n,getPreferencesCollection:r}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGranolaConnectionCollection:t,getViewsCollection:n,getPreferencesCollection:r}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(t(),r(),i(),n()),null},component:q(()=>V(()=>import(`./app._shell.contacts-DtL9-15d.js`),__vite__mapDeps([414,6,1,11,2,363,139,8,7,172,9,10,19,20,21,22,14,23,16,173,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,238,364,365,4,5,54,366,306,307,300,0,308,309,120,73,74,93,59,94,95,96,310,230,147,251,194,191,192,136,145,141,69,319,215,217,223,224,336,135,218,367,333,274,313,338,314,123,368,369,370,323,322,320,193,195,
78142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,386,387,388,66,148,312,389,220,327,390,391,392,228,229,343,393,394,395,396,245,200,159,397,286,398,399,400,213,216,401,402,403,304,404,405,350,406,407,408,346,409,410,140,144,411])),`component`)});B();var wZ=K(`/app/_shell/copilot`)({head:()=>H(`Dex Copilot`),component:q(()=>V(()=>import(`./app._shell.copilot-e3TYs-jG.js`),__vite__mapDeps([415,1,2,4,5,6,7,8,9,10,139,416,188,189,187,417,11,19,20,21,22,14,23,16,86,29,87,118,418,330,331,77,78,79,80,81,82,83,84,72,0,198,117,217,150,28,32,30,31,33,34,35,36,37,151,152,68,40,308,85,76,75,88,89,90,91,92,309,120,121,122,73,74,93,59,94,95,96,183,193,194,38,39,192,41,42,179,180,181,69,195,142,143,119,123,124,125,332,15,26,27,175,182,339,219,239,240,235,419])),`component`)});B();var TZ=()=>V(()=>import(`./app._shell.game-DysFoRzj.js`),__vite__mapDeps([420,1,2,4,5,6,7,8,9,10,121,75,90,238,11,19,20,21,22,14,23,16,197,305,378,86,29,87,77,78,79,80,81,82,83,84,72,239,76,85,88,89,91,92,122,173,17,333,274,313,314,150,28,32,30,31,33,34,35,36,37,151,152,68,40,224,336,309,421,422,397,319,212,277,217,15,174,135,136,175,120,73,74,93,59,94,95,96,176,177,178,38,39,41,42,179,180,181,423,184,424,338,123,368,369,370,384,425,183,228,229,396,231,70,310,186,315,312,251,194,316,327,139,153,25,252,426,427,428,223])),EZ=Ht({play:Rt([`priority`,`frequency`]).optional().catch(void 0)}),DZ=K(`/app/_shell/game`)({head:()=>H(`Quick Action`),validateSearch:EZ,loader:async()=>{let{getContactsCollection:e}=await V(async()=>{let{getContactsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(TZ,`component`)});B();var OZ=K(`/app/_shell/import`)({component:q(()=>V(()=>import(`./app._shell.import-XGhxcAbz.js`),__vite__mapDeps([429,139,1,2,8,6,11])),`component`)});B();var kZ=K(`/app/_shell/keep-in-touch`)({head:()=>H(`Keep in Touch`),loader:async()=>{let{getContactsCollection:e}=await V(async()=>{let{getContactsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app._shell.keep-in-touch-CSkJi82n.js`),__vite__mapDeps([430,1,2,6,11,19,20,21,22,14,23,16,86,29,87,54,407,397,333,77,78,79,80,81,82,83,84,72,274,313,314,88,150,28,32,30,31,10,33,34,35,36,37,151,152,68,40,176,177,178,38,39,41,42,179,180,181,183,184,121,75,90,85,76,89,91,92,122,193,194,192,69,195,142,143,317,338,238,120,73,74,93,59,94,95,96,123,340,327,139,8,228,245,136,358,144,145,350,409,428,223,224,348,196,191,141,349,26,15,27,316])),`component`)});B();var AZ=K(`/app/_shell/locations`)({head:()=>H(`Locations`),loader:async()=>{let{getLocationsCollection:e,getContactsCollection:t}=await V(async()=>{let{getLocationsCollection:e,getContactsCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getLocationsCollection:e,getContactsCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t()),null},component:q(()=>V(()=>import(`./app._shell.locations-YSglBiND.js`),__vite__mapDeps([431,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,387,194,397,398,177,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,150,28,32,30,31,33,34,35,36,37,151,152,68,40,26,27,38,39,41,42,135,136,120,121,122,73,74,93,59,94,95,96,218,401,182,183,193,192,179,180,181,69,195,142,143,373,374,337,223,224,327,139,228,382,432,238,361])),`component`)});B();var jZ=K(`/app/_shell/map`)({head:()=>H(`Map`),component:q(()=>V(()=>import(`./app._shell.map-BBe0dPLl.js`),__vite__mapDeps([433,6,1,7,2,11,434,4,5,8,9,10,139,121,75,90,72,19,20,21,22,14,23,16,394,194,203,207,177,379,378,86,29,87,77,78,79,80,81,82,83,84,239,76,85,88,89,91,92,122,55,204,277,333,274,313,176,178,28,32,30,31,33,34,35,36,37,151,38,39,152,68,40,41,42,179,180,181,184,369,380,381,120,73,74,93,59,94,95,96,219,27,15,150,223,224,135,136,327,435,436,403,304,404,336,309])),`component`)});B();var MZ=K(`/app/_shell/merge-and-fix`)({head:()=>H(`Merge & Fix`),component:q(()=>V(()=>import(`./app._shell.merge-and-fix-BjgAdib4.js`),__vite__mapDeps([437,1,2,139,8,6,121,75,90,11,19,20,21,22,14,23,16,86,29,87,206,210,173,85,76,77,78,79,80,81,82,83,84,72,88,89,91,92,122,150,28,32,30,31,10,33,34,35,36,37,151,152,68,40,336,309,337,4,5,7,9,223,224,174,120,73,74,93,59,94,95,96,376,0,261,413])),`component`)});B();var NZ=K(`/app/_shell/network`)({head:()=>H(`Network`),loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t}=await V(async()=>{let{getContactsCollection:e,getGroupsCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t()),null},component:q(()=>V(()=>import(`./app._shell.network-ghCh4RUZ.js`),__vite__mapDeps([438,139,1,2,8,6,11,358,22,20,21,14,23,28,29,34,30,36,42,69,143,144,35,41,68,145])),`component`)});B();var PZ=K(`/app/_shell/priority-map`)({head:()=>H(`Priority Map`),loader:async()=>{let{getContactsCollection:e}=await V(async()=>{let{getContactsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app._shell.priority-map-zW6Zzdbj.js`),__vite__mapDeps([439,1,2,139,8,6,11,19,20,21,22,14,23,16,86,29,87,440,4,5,7,9,10,79,386,214,65,54,366,197,148,199,395,121,75,90,312,251,194,77,78,80,81,82,83,84,72,274,313,314,88,307,319,300,15,150,28,32,30,31,33,34,35,36,37,151,152,68,40,174,135,136,175,176,177,178,38,39,41,42,179,180,181,218,368,76,85,89,91,92,333,184,122,369,370,375,396,245,390,391,191,192,145,141,69,202,206,159,208,212,216,217,221,173,320,26,27,223,224,336,309,422,378,239,397,277,120,73,74,93,59,94,95,96,423,424,338,238,123,384,425,183,228,229,231,70,401,186,193,195,
78142,143,441,339,380,227,342,385,323,322,324,325,257,326,233,234,345,266,201,118,211,222,442,381,219,373,327,435,436,346,427,426,443,241])),`component`)});B();var FZ=K(`/app/_shell/refer`)({head:()=>H(`Refer & Earn`),component:q(()=>V(()=>import(`./app._shell.refer-Cvp0eldN.js`),__vite__mapDeps([444,1,2,6,19,11,20,21,22,14,23,16,77,78,79,80,81,82,83,84,72])),`component`)});B();var IZ=K(`/app/_shell/reminders`)({head:()=>H(`Reminders`),loader:async()=>{let{getRemindersCollection:e}=await V(async()=>{let{getRemindersCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getRemindersCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app._shell.reminders-BIncvi-3.js`),__vite__mapDeps([445,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,214,196,311,191,28,29,32,33,34,30,39,31,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,312,251,194,77,78,79,80,81,82,83,84,72,274,313,314,88,215,118,217,221,15,85,76,75,86,87,89,90,91,92,150,151,40,26,27,223,224,135,73,74,93,59,94,95,96,120,121,122,176,177,178,179,218,183,182,315,316,237,238,193,195,
78142,143,317,225,55,219,261,230,358,144,354])),`component`)}),LZ=[`contacts`,`groups`,`notes`,`tags`,`views`];B();var RZ=K(`/app/_shell/search`)({head:()=>H(`Search`),validateSearch:Ht({q:Lt().optional().default(``),tab:Rt(LZ).default(`contacts`).catch(`contacts`)}),loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await V(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t(),n()),null},component:q(()=>V(()=>import(`./app._shell.search-DdK83Pen.js`),__vite__mapDeps([446,1,2,139,8,6,121,75,90,364,19,11,20,21,22,14,23,16,365,4,5,7,9,10,86,29,87,54,366,306,72,307,300,84,0,308,85,76,77,78,79,80,81,82,83,88,89,91,92,35,152,34,30,31,28,32,33,36,37,68,309,120,122,73,74,93,59,94,95,96,310,230,147,251,194,191,39,38,192,41,42,136,180,181,145,141,69,319,215,177,217,15,150,151,40,26,27,223,224,336,135,175,178,179,218,182,183,367,333,274,313,338,238,314,123,368,176,184,369,370,323,322,320,193,195,142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,447,421,125,388,66,148,312,389,173,220,327,390,391,392,228,229,343,393,448,196,321,339,441,174,402,347])),`component`)});B();var zZ=K(`/app/_shell/timeline`)({head:()=>H(`Timeline`),loader:async()=>{let{getGranolaConnectionCollection:e,getTimelineCollection:t}=await V(async()=>{let{getGranolaConnectionCollection:e,getTimelineCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getGranolaConnectionCollection:e,getTimelineCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(t(),e()),null},component:q(()=>V(()=>import(`./app._shell.timeline-B0cUj5Tg.js`),__vite__mapDeps([449,1,2,6,11,19,20,21,22,14,23,16,387,311,4,5,7,8,9,10,196,191,28,29,32,33,34,30,39,31,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,312,251,194,77,78,79,80,81,82,83,84,72,274,313,314,88,215,118,217,221,15,85,76,75,86,87,89,90,91,92,150,151,40,26,27,223,224,135,73,74,93,59,94,95,96,120,121,122,176,177,178,179,218,183,182,315,316,237,238,193,195,
78142,143,317,225,318,139,214,305,306,307,300,0,308,309,310,230,319,320,175,184,321,219,124,125,322,323,324,325,257,326,327,328,329,450,55,448,336,421,338,333,123,339,441,174,424,425,245,261,226,451,408])),`component`)});B();var BZ=()=>V(()=>import(`./app.auth.action-BlzO-S92.js`),__vite__mapDeps([452,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,135,34,30,36,136,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,131,17,25,132,453,454,0])),VZ=Ht({mode:Lt().optional().catch(void 0),oobCode:Lt().optional().catch(void 0),continueUrl:Lt().optional().catch(void 0)}),HZ=K(`/app/auth/action`)({validateSearch:VZ,head:()=>H(`Account`,{noindex:!0}),component:q(BZ,`component`)});B();var UZ=()=>V(()=>import(`./app.auth.check-email-4kS6XFTh.js`),__vite__mapDeps([455,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,17,77,78,79,80,81,82,83,84,72,135,34,30,36,136,73,74,75,76,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,131,25,132,453,454,0,281,282])),WZ=Ht({email:Lt().email().optional().catch(void 0)}),GZ=K(`/app/auth/check-email`)({validateSearch:WZ,head:()=>H(`Check Your Email`),component:q(UZ,`component`)});B();var KZ=K(`/app/auth/device-code`)({head:()=>H(`Connect an MCP Device`,{noindex:!0}),component:q(()=>V(()=>import(`./app.auth.device-code-D3fsUz_2.js`),__vite__mapDeps([456,1,2,6,19,11,20,21,22,14,23,16,457,458,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,131,17,25,132,459,460])),`component`)});B();var qZ=K(`/app/auth/forgot-password`)({head:()=>H(`Reset Password`),component:q(()=>V(()=>import(`./app.auth.forgot-password-UWoH8tOb.js`),__vite__mapDeps([461,1,2,4,5,6,7,8,9,10,417,188,189,11,19,20,21,22,14,23,16,17,135,34,30,36,136,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,131,25,132,453])),`component`)});B();var JZ=()=>V(()=>import(`./app.auth.mcp-authorize-D9ZqzfX_.js`),__vite__mapDeps([462,1,2,6,19,11,20,21,22,14,23,16,458,244,174,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,382,195,131,17,25,132,460])),YZ=Ht({authorization_transaction:Lt().min(32).max(256).catch(``)}),XZ=K(`/app/auth/mcp-authorize`)({validateSearch:YZ,head:()=>H(`Authorize MCP Connection`),component:q(JZ,`component`)});B();var ZZ=K(`/app/auth/sign-in`)({head:()=>H(`Sign In`),component:q(()=>V(()=>import(`./app.auth.sign-in-CJcoHRdz.js`),__vite__mapDeps([463,1,2,4,5,6,7,8,9,10,464,465,98,188,189,139,416,187,11,19,20,21,22,14,23,16,319,107,17,135,34,30,36,136,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,131,25,132,453,466,99,100,101,102,104])),`component`)});B();var QZ=K(`/app/auth/sign-up`)({head:()=>H(`Sign Up`),component:q(()=>V(()=>import(`./app.auth.sign-up-BX6tRM8-.js`),__vite__mapDeps([467,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,319,107,17,135,34,30,36,136,73,74,75,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,131,25,132,453,466,99,100,101,102,104])),`component`)}),$Z=K(`/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}})}});B();var eQ=K(`/app/contacts/$contactId`)({beforeLoad:({context:e,params:t,search:n})=>{if(!e.workspaceId)throw l({to:`/app/contacts`,search:{...n,contact:t.contactId}})},component:q(()=>V(()=>import(`./app.contacts._contactId-Bcnyo6S2.js`),[]),`component`)});B();var tQ=K(`/app/onboarding/`)({beforeLoad:async()=>{if(typeof window>`u`)throw l({to:aR[oR]});let[{fetchUserForGate:e},{fetchOnboardingVariantForGate:t}]=await Promise.all([V(()=>Promise.resolve().then(()=>aV),void 0),V(()=>import(`./onboarding-experiment-gate--0zOJUuY.js`).then(e=>e.n),__vite__mapDeps([102,1,76,75,77,78,79,80,81,82,83,84,72]))]),n=await e(),r=Pf(await t(n));throw pR(n?.id)?l({to:vR(n?.id,null,r)}):l({to:vR(n?.id,{linkedin_profile_id:n?.linkedin_profile_id,job_title:n?.job_title,school:n?.school,about_me:n?.about_me},r)})}});B();var nQ=K(`/app/onboarding/about`)({head:()=>H(`Tell us about yourself`),component:q(()=>V(()=>import(`./app.onboarding.about-C7NPpcVh.js`),__vite__mapDeps([468,1,2,6,121,75,90,74,11,19,20,21,22,14,23,16,77,78,79,80,81,82,83,84,72,88,135,34,30,36,136,175,239,76,85,86,29,87,89,91,92,122,250,251,252,469,470,139,8,94,257,325,93,59,326,254,264])),`component`)}),rQ=Ht({oauth_status:Rt([`success`,`error`,`cancelled`]).optional(),email:Lt().optional(),error_code:Lt().optional(),error_message:Lt().optional(),error_reason:Lt().optional(),granola_status:Rt([`pending`,`error`]).optional(),granola_reason:Lt().optional()});B();var iQ=K(`/app/onboarding/connect`)({validateSearch:rQ,head:()=>H(`Connect your accounts`),component:q(()=>V(()=>import(`./app.onboarding.connect-BEHi2wNJ.js`),__vite__mapDeps([471,1,2,6,11,19,20,21,22,14,23,16,174,94,79,84,72,325,121,75,90,86,29,87,85,76,77,78,80,81,82,83,88,89,91,92,122,93,59,257,326,352,109,320,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,132,108,355,239,356,254,357,210,358,69,143,144,68,145,359,135,136,175,360,250,251,252,470,139,8,264,472,402,371,226,473,474,475,476])),`component`)});B();var aQ=K(`/app/onboarding/connect-email`)({validateSearch:rQ,head:()=>H(`Connect your email & calendar`),component:q(()=>V(()=>import(`./app.onboarding.connect-email-CEiaVl5E.js`),__vite__mapDeps([477,6,1,11,2,19,20,21,22,14,23,16,174,325,121,75,90,86,29,87,85,76,77,78,79,80,81,82,83,84,72,88,89,91,92,122,93,59,257,326,249,253,209,107,108,109,254,250,251,252,470,139,8,94,239,264,472,402,371,226])),`component`)});B();var oQ=K(`/app/onboarding/connect-imessage`)({head:()=>
78H(`Sync your iMessage`),component:q(()=>V(()=>import(`./app.onboarding.connect-imessage-oFq5sGFO.js`),__vite__mapDeps([478,1,2,6,11,19,20,21,22,14,23,16,174,94,79,84,72,355,86,29,87,85,76,75,77,78,80,81,82,83,88,89,90,91,92,59,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,93,239,121,122,325,257,326,356,254,249,253,209,107,108,109,250,251,252,470,139,8,264,472,402,371,226])),`component`)});B();var sQ=K(`/app/onboarding/connect-instagram`)({head:()=>H(`Sync your Instagram DMs`),component:q(()=>V(()=>import(`./app.onboarding.connect-instagram-Ccf6645W.js`),__vite__mapDeps([479,1,2,6,11,19,20,21,22,14,23,16,174,249,253,209,107,59,93,79,85,76,75,77,78,80,81,82,83,84,72,86,29,87,88,89,90,91,92,108,109,254,250,251,252,470,139,8,94,239,121,122,257,325,326,264,472,402,371,226,473,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,135,136,356])),`component`)});B();var cQ=K(`/app/onboarding/connect-linkedin`)({head:()=>H(`Connect your LinkedIn network`),component:q(()=>V(()=>import(`./app.onboarding.connect-linkedin-D1_BAwOn.js`),__vite__mapDeps([480,1,2,6,11,19,20,21,22,14,23,16,247,79,85,76,75,77,78,80,81,82,83,84,72,86,29,87,88,89,90,91,92,93,59,249,253,209,107,108,109,254,250,251,252,470,139,8,94,239,121,122,257,325,326,264,472,402,371,226,481,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42])),`component`)});B();var lQ=K(`/app/onboarding/connect-mcp`)({head:()=>H(`Your network, inside your AI assistant`),component:q(()=>V(()=>import(`./app.onboarding.connect-mcp-BnBrQZZK.js`),__vite__mapDeps([482,1,2,6,11,19,20,21,22,14,23,16,483,249,250,251,252,253,209,107,59,93,79,85,76,75,77,78,80,81,82,83,84,72,86,29,87,88,89,90,91,92,108,109,254,470,139,8,94,239,121,122,257,325,326,264,472,402,371,226,484,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,174,358,69,143,144,68,145,359,135,136,175,360])),`component`)});B();var uQ=K(`/app/onboarding/connect-whatsapp`)({head:()=>H(`Sync your WhatsApp`),component:q(()=>V(()=>import(`./app.onboarding.connect-whatsapp-BWBNNM9m.js`),__vite__mapDeps([485,1,2,6,11,19,20,21,22,14,23,16,86,29,87,92,76,75,77,78,79,80,81,82,83,84,72,89,90,249,253,209,107,59,93,85,88,91,108,109,254,250,251,252,470,139,8,94,239,121,122,257,325,326,264,472,402,371,226,476])),`component`)});B();var dQ=K(`/app/onboarding/connected`)({validateSearch:rQ,head:()=>H(`Connected accounts`),component:q(()=>V(()=>import(`./app.onboarding.connected-QELwiKU8.js`),__vite__mapDeps([486,1,2,6,11,19,20,21,22,14,23,16,174,94,79,84,72,325,121,75,90,86,29,87,85,76,77,78,80,81,82,83,88,89,91,92,122,93,59,257,326,352,109,320,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,132,108,355,239,356,254,250,251,252,470,139,8,264,472,402,371,226,473,135,136,475,476])),`component`)});B();var fQ=K(`/app/onboarding/contacts`)({head:()=>H(`Add your contacts`),component:q(()=>V(()=>import(`./app.onboarding.contacts-CSuinraF.js`),__vite__mapDeps([487,1,2,6,11,19,20,21,22,14,23,16,86,29,87,177,85,76,75,77,78,79,80,81,82,83,84,72,88,89,90,91,92,0,337,4,5,7,8,9,10,223,224,135,34,30,36,136,373,325,121,122,93,59,257,326,335,238,74,120,73,94,95,96,225,246,250,251,252,470,139,239,254,264,488])),`component`)});B();var pQ=K(`/app/onboarding/copilot`)({head:()=>H(`Set up your account with AI`),component:q(()=>V(()=>import(`./app.onboarding.copilot-RB7Owr9M.js`),__vite__mapDeps([489,1,2,139,8,6,11,19,20,21,22,14,23,16,175,239,121,75,90,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,91,92,122,332,419,490,30,181,142,143,69,144,35,36,41,68,145,246,250,251,252,470,94,257,325,93,59,326,254,264])),`component`)});B();var mQ=K(`/app/onboarding/everywhere`)({head:()=>H(`Take Dex everywhere`),component:q(()=>V(()=>import(`./app.onboarding.everywhere-BpIxi8hY.js`),__vite__mapDeps([491,139,1,2,8,6,11,109,108,14,250,19,20,21,22,23,16,251,252,470,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,94,239,121,122,257,325,93,59,326,254,264])),`component`)});B();var hQ=K(`/app/onboarding/extension`)({head:()=>H(`Dex Browser Extension`),component:q(()=>V(()=>import(`./app.onboarding.extension-CSfr9IPd.js`),__vite__mapDeps([492,1,2,6,11,19,20,21,22,14,23,16,59,250,251,252,470,139,8,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,94,239,121,122,257,325,93,326,254,264])),`component`)});B();var gQ=K(`/app/onboarding/identity`)({head:()=>H(`Welcome to Dex`),component:q(()=>V(()=>import(`./app.onboarding.identity-Cqe455Ld.js`),__vite__mapDeps([493,1,2,6,11,19,20,21,22,14,23,16,59,223,224,239,121,75,90,76,77,78,79,80,81,82,83,84,72,85,86,29,87,88,89,91,92,122,246,250,251,252,469,74,470,139,8,94,257,325,93,326,254,264])),`component`)});B();var _Q=K(`/app/onboarding/phone`)({head:()=>H(`Your AI assistant`),component:q(()=>V(()=>import(`./app.onboarding.phone-B_ctRRB7.js`),__vite__mapDeps([494,1,2,6,11,19,20,21,22,14,23,16,26,15,27,28,29,30,31,10,32,33,34,35,36,37,38,39,40,41,42,135,136,423,88,81,77,78,79,80,82,83,84,72,150,151,152,68,176,177,178,179,180,181,459,250,251,252,470,139,8,85,76,75,86,87,89,90,91,92,94,239,121,122,257,325,93,59,326,254,264,495,73,74,95,96,424])),`component`)});B();var vQ=K(`/app/onboarding/resurface`)({head:()=>H(`Who to resurface`),component:q(()=>V(()=>import(`./app.onboarding.resurface-Dw4YMp7o.js`),__vite__mapDeps([496,1,2,6,11,334,19,20,21,22,14,23,16,86,29,87,85,76,75,77,78,79,80,81,82,83,84,72,88,89,90,91,92,323,122,322,320,335,238,121,74,120,73,93,59,94,95,96,225,223,224,246,250,251,252,470,139,8,239,257,325,326,254,264])),`component`)});B();
78var yQ=K(`/app/settings/`)({component:q(()=>V(()=>import(`./app.settings.index-gL6yBCs4.js`),__vite__mapDeps([497,139,1,2,8,6,11])),`component`)});B();var bQ=K(`/app/settings/$section`)({component:q(()=>V(()=>import(`./app.settings._section-DN7AEBfo.js`),__vite__mapDeps([498,6,1,11,2,499,16,236,99,500,174,20,14,23])),`component`)});B();var xQ=K(`/app/settings/api`)({head:()=>H(`Dex API & MCP`),loader:async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await V(async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getPublicApiKeysCollection:e,getUserCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t()),null},component:q(()=>V(()=>import(`./app.settings.api-BcCg4csp.js`),__vite__mapDeps([501,1,2,6,11,19,20,21,22,14,23,16,502,458,503,210,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,15,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,174,219,371,122,359,135,136,175,360,484,358,69,143,144,68,145,500,504,505,74])),`component`)});B();var SQ=K(`/app/settings/automation`)({head:()=>H(`Automation`),loader:async()=>{let{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}=await V(async()=>{let{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(t(),e()),null},component:q(()=>V(()=>import(`./app.settings.automation-Zy6_oamV.js`),__vite__mapDeps([506,6,1,11,2,8
786,29,14,16,87,424,85,76,75,77,78,79,80,81,82,83,84,72,88,89,90,91,92,122,500,174,20,23,504,507,508,231,22,21,28,70,30,37,509,245,33,39,136])),`component`)});B();var CQ=K(`/app/settings/billing`)({head:()=>H(`Plans and billing`),loader:()=>(V(async()=>{let{getBillingCollection:e,getUserCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getBillingCollection:e,getUserCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92])).then(({getBillingCollection:e,getUserCollection:t})=>Promise.all([e().preload(),t().preload()])).catch(()=>{}),null),component:q(()=>V(()=>import(`./app.settings.billing-sXTJXmWL.js`),__vite__mapDeps([510,1,2,4,5,6,7,8,9,10,11,19,20,21,22,14,23,16,457,54,266,159,87,511,15,80,320,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,175,218,267,121,75,90,74,86,109,85,76,77,78,79,81,82,83,84,72,88,89,91,92,122,59,0,239,500,174,504])),`component`)});B();var wQ=K(`/app/settings/custom-fields`)({component:q(()=>V(()=>import(`./app.settings.custom-fields-BjdXWIbu.js`),__vite__mapDeps([512,139,1,2,8,6,11])),`component`)}),TQ=[`social-links`,`custom-fields`,`note-types`,`tags`],EQ=Ht({tab:Rt(TQ).default(`social-links`).catch(`social-links`)});B();var DQ=K(`/app/settings/data`)({head:()=>H(`Data Setup`),validateSearch:EQ,loader:async()=>{let{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}=await V(async()=>{let{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return r().preload().catch(()=>{}),await bR(n(),e(),t()),null},component:q(()=>V(()=>import(`./app.settings.data-CrVRQY66.js`),__vite__mapDeps([513,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,86,29,87,394,191,28,32,33,34,30,39,31,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,397,319,215,217,15,514,77,78,79,80,81,82,83,84,72,150,151,40,26,27,135,218,182,183,185,178,179,193,194,195,142,143,515,85,76,75,88,89,90,91,92,122,219,380,373,323,228,229,358,144,391,375,393,410,174,140,411,500,509,245,516])),`component`)});B();var OQ=K(`/app/settings/desktop`)({head:()=>H(`Desktop`),component:q(()=>V(()=>import(`./app.settings.desktop-pRfvjOHi.js`),__vite__mapDeps([517,1,2,139,8,6,11,79,19,20,21,22,14,23,16,86,29,87,118,219,27,28,30,31,10,32,33,34,35,36,37,38,39,40,41,42,248,500,174,516,272,518,214,210,15,150,151,152,68,193,194,192,179,180,181,69,195,142,143,504])),`component`)});B();var kQ=K(`/app/settings/general`)({head:()=>H(`General settings`),loader:async()=>{let{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}=await V(async()=>{let{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(t(),e()),null},component:q(()=>V(()=>import(`./app.settings.general-doWvObId.js`),__vite__mapDeps([519,1,2,6,11,79,19,20,21,22,14,23,16,86,29,87,191,28,32,33,34,30,39,31,10,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,77,78,80,81,82,83,84,72,175,423,88,150,151,40,176,177,178,179,424,85,76,75,89,90,91,92,122,515,328,255,500,174,504,509,245])),`component`)}),AQ=Ht({tab:Rt([`import`,`export`]).default(`import`).catch(`import`)});B();var jQ=K(`/app/settings/import-export`)({head:()=>H(`Import / Export`),validateSearch:AQ,loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}=await V(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t(),n(),r(),i()),null},component:q(()=>V(()=>import(`./app.settings.import-export-D9b0a_GP.js`),__vite__mapDeps([520,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,86,29,87,54,162,56,85,76,75,77,78,79,80,81,82,83,84,72,88,89,90,91,92,59,26,15,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,0,174,120,121,122,73,74,93,94,95,96,218,316,225,239,375,358,69,143,144,68,145,383,333,274,313,384,336,309,385,345,411,521,191,152,192,136,180,181,141,175,419,490,142,500,504,508,231,70,522])),`component`)});B();
78var MQ=K(`/app/settings/members`)({head:()=>jL(`Members`),component:q(()=>V(()=>import(`./app.settings.members-DBcV58xQ.js`),__vite__mapDeps([523,1,2,6,121,75,90,74,11,19,20,21,22,14,23,16,214,191,28,29,32,33,34,30,39,31,10,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,177,499,236,99,500,174,77,78,79,80,81,82,83,84,72,26,15,27,40,0,224,135,73,76,85,86,87,88,89,91,92,93,59,94,95,96,218,193,194,151,179,195,142,143,219,233,261,101,504,524,234,259,8,525])),`component`)});B();var NQ=K(`/app/settings/note-types`)({component:q(()=>V(()=>import(`./app.settings.note-types-D5KsQ-_q.js`),__vite__mapDeps([526,139,1,2,8,6,11])),`component`)});B();var PQ=K(`/app/settings/notifications`)({head:()=>H(`Notifications`),loader:async()=>{let{getNotificationPreferencesCollection:e}=await V(async()=>{let{getNotificationPreferencesCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getNotificationPreferencesCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app.settings.notifications-CzIxn04h.js`),__vite__mapDeps([527,1,2,4,5,6,7,8,9,10,11,86,29,14,16,87,191,22,20,21,28,32,33,34,30,39,31,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,239,121,75,90,76,77,78,79,80,81,82,83,84,72,85,88,89,91,92,122,326,351,352,19,23,109,320,26,15,27,40,132,108,353,500,174,504,507,508,231,70,509,245])),`component`)});B();var FQ=K(`/app/settings/profile`)({head:()=>H(`Profile`),loader:()=>(V(async()=>{let{getUserCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getUserCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92])).then(({getUserCollection:e})=>e().preload()).catch(()=>{}),null),component:q(()=>V(()=>import(`./app.settings.profile-BAe-FjPi.js`),__vite__mapDeps([528,1,2,139,8,6,121,75,90,11,19,20,21,22,14,23,16,86,29,87,215,77,78,79,80,81,82,83,84,72,150,28,32,30,31,10,33,34,35,36,37,151,152,68,40,26,15,27,38,39,41,42,0,135,136,175,73,74,76,85,88,89,91,92,93,59,94,95,96,218,182,183,239,122,500,174,504,529,176,177,178,179,180,181])),`component`)});B();var IQ=K(`/app/settings/social-links`)({component:q(()=>V(()=>import(`./app.settings.social-links-DOIY15Dg.js`),__vite__mapDeps([530,139,1,2,8,6,11])),`component`)}),LQ=Ht({connect:Rt([`linkedin`,`imessage`,`phone-calls`,`facebook`,`instagram`]).optional().catch(void 0)}),RQ=Ht({highlight:Rt([`linkedin`]).optional().catch(void 0)}),zQ=`sync-utility`,BQ=Ht({source:Lt().optional().catch(void 0),reason:Rt([`trigger-login`,`imessage-sync`]).optional().catch(void 0)});function VQ(e){return e.source===`sync-utility`?e.reason??null:null}B();var HQ=K(`/app/settings/sync-integrations`)({head:()=>H(`Sync & Integrations`),validateSearch:rQ.extend(BQ.shape).extend(LQ.shape).extend(RQ.shape),loader:async()=>{let{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}=await V(async()=>{let{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(n(),t(),r(),e()),null},component:q(()=>V(()=>import(`./app.settings.sync-integrations-Bc9Gunn9.js`),__vite__mapDeps([531,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,86,29,87,214,319,400,210,177,15,85,76,75,77,78,79,80,81,82,83,84,72,88,89,90,91,92,150,28,32,30,31,33,34,35,36,37,151,152,68,40,26,27,38,39,41,42,0,337,223,224,174,135,136,93,59,178,179,180,181,424,122,193,194,192,69,195,142,143,219,371,239,121,373,325,257,326,402,226,324,329,245,451,352,109,320,132,108,355,356,254,357,358,144,145,359,175,360,247,473,94,481,249,474,475,476,488,500,518,504,522])),`component`)});B();var UQ=K(`/app/settings/tags`)({component:q(()=>V(()=>import(`./app.settings.tags-DKkwu7l4.js`),__vite__mapDeps([532,139,1,2,8,6,11])),`component`)});B();
78var WQ=K(`/app/settings/team`)({head:()=>H(`Team`),component:q(()=>V(()=>import(`./app.settings.team-BLsXFcXV.js`),__vite__mapDeps([533,1,2,6,11,19,20,21,22,14,23,16,80,77,78,79,81,82,83,84,72,0,174,135,34,30,36,136,73,74,75,76,85,86,29,87,88,89,90,91,92,93,59,94,95,96,218,239,121,122,233,101,232,4,5,7,8,9,10,221,173,99,193,194,28,32,31,33,35,37,151,38,39,152,68,40,192,41,42,179,180,181,69,195,142,143,234,500,504,524,259,525,534])),`component`)});B();var GQ=K(`/app/settings/text-messaging`)({head:()=>H(`Text Messaging`),loader:async()=>{let{getSmsSettingsCollection:e,getUserCollection:t}=await V(async()=>{let{getSmsSettingsCollection:e,getUserCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getSmsSettingsCollection:e,getUserCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(t(),e()),null},component:q(()=>V(()=>import(`./app.settings.text-messaging-CIbO4lIo.js`),__vite__mapDeps([535,1,2,4,5,6,7,8,9,10,11,72,19,20,21,22,14,23,16,86,29,87,191,28,32,33,34,30,39,31,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,399,77,78,79,80,81,82,83,84,88,150,151,40,26,15,27,140,142,143,144,135,423,176,177,178,179,218,182,183,219,239,121,75,90,76,85,89,91,92,122,353,459,495,73,74,93,59,94,95,96,424,500,174,504,508,231,70,509,245,529])),`component`)});B();var KQ=K(`/app/settings/workspace`)({head:()=>jL(`Workspace settings`),component:q(()=>V(()=>import(`./app.settings.workspace-lM9AAlhb.js`),__vite__mapDeps([536,1,2,6,121,75,90,74,11,19,20,21,22,14,23,16,215,499,236,99,500,174,77,78,79,80,81,82,83,84,72,0,135,34,30,36,136,73,76,85,86,29,87,88,89,91,92,93,59,94,95,96,233,101,232,4,5,7,8,9,10,221,173,193,194,28,32,31,33,35,37,151,38,39,152,68,40,192,41,42,179,180,181,69,195,142,143,234,359,175,504,509,245,524,259,525,534])),`component`)}),qQ=Ht({checkout:Rt([`success`,`canceled`]).optional().catch(void 0)});B();var JQ=K(`/app/settings/workspace-billing`)({head:()=>jL(`Workspace billing`),validateSearch:qQ,component:q(()=>V(()=>import(`./app.settings.workspace-billing-CmcI4h2m.js`),__vite__mapDeps([537,1,2,6,121,75,90,74,11,19,20,21,22,14,23,16,86,29,87,499,236,99,500,174,59,77,78,79,80,81,82,83,84,72,0,95,96,233,504,516,524,234,259,8])),`component`)});B();var YQ=K(`/app/settings/zapier`)({head:()=>H(`Zapier`),loader:async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await V(async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getPublicApiKeysCollection:e,getUserCollection:t}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e(),t()),null},component:q(()=>V(()=>import(`./app.settings.zapier-DQEXI27I.js`),__vite__mapDeps([538,6,1,11,2,19,20,21,22,14,23,16,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,371,122,359,135,34,30,36,136,175,360,500,174,504,505,74])),`component`)});B();var XQ=K(`/app/w/$slug`)({head:()=>jL(`Workspace`),beforeLoad:AL,pendingComponent:vj,pendingMs:0,notFoundComponent:q(()=>V(()=>import(`./app.w._slug-Cy_iQMWd.js`),__vite__mapDeps([539,259,1,2,6,8,11,234,96])),`notFoundComponent`),component:q(()=>V(()=>import(`./app.w._slug-CSmXb3tD.js`),__vite__mapDeps([540,1,2,6,11,19,20,21,22,14,23,16,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,73,74,93,59,94,95,96,261,262,99,259,8,234])),`component`)});B();var ZQ=K(`/blog/author/$slug`)({loader:({params:e})=>mX(e.slug),head:({loaderData:e,params:t})=>{if(!e?.author){let e=St({title:`Author not found | Dex`,canonicalPath:`/blog/author/${t.slug}/`,noindex:!0});return{meta:e.meta,links:e.links}}let{author:n}=e,r=St({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:q(()=>V(()=>import(`./blog.author._slug-2RVbpMr9.js`),__vite__mapDeps([541,4,1,2,5,6,7,8,9,10,11,284,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288])),`component`)});B();var QQ=K(`/blog/page/$page`)({loader:async({params:e})=>{let t=_X(e.page);if(t===null)return{result:null,page:e.page};let n=gX(await cX(),t);return t>n.pageCount?{result:null,page:e.page}:{result:n,page:e.page}},head:({loaderData:e})=>
78{if(!e?.result){let e=St({title:`Page not found | Dex`,canonicalPath:`/blog/`,noindex:!0});return{meta:e.meta,links:e.links}}let{page:t}=e.result,n=St({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:q(()=>V(()=>import(`./blog.page._page-ewnBwOai.js`),__vite__mapDeps([542,4,1,2,5,6,7,8,9,10,11,284,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288,289,251,194])),`component`)});B();var $Q=K(`/blog/tag/$tag`)({loader:({params:e})=>pX(e.tag),head:({loaderData:e,params:t})=>{if(!e?.tag){let e=St({title:`Tag not found | Dex`,canonicalPath:`/blog/tag/${t.tag}/`,noindex:!0});return{meta:e.meta,links:e.links}}let{tag:n}=e,r=St({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:q(()=>V(()=>import(`./blog.tag._tag-BfI4n_L2.js`),__vite__mapDeps([543,4,1,2,5,6,7,8,9,10,11,284,19,20,21,22,14,23,16,285,286,17,287,25,43,153,288])),`component`)});B();var e$=K(`/app/_shell/copilot/`)({validateSearch:Ht({ask:Lt().optional()}),component:q(()=>V(()=>import(`./app._shell.copilot.index-BqHRoz8n.js`),[]),`component`)});B();var t$=K(`/app/_shell/copilot/$threadId`)({component:q(()=>V(()=>import(`./app._shell.copilot._threadId-B9jwBZ5f.js`),[]),`component`)});B();var n$=K(`/app/_shell/group/$groupId`)({loader:async({params:e})=>{let{getContactsCollection:t,getGroupsCollection:n,getViewsCollection:r}=await V(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92])),i=n();return await bR(t(),i,r()),{groupName:i.get(e.groupId)?.name?.trim()||void 0}},head:({loaderData:e})=>H(e?.groupName??`Contacts`),component:q(()=>V(()=>import(`./app._shell.group._groupId-wu8jtGOq.js`),__vite__mapDeps([544,6,1,11,2,363,139,8,7,172,9,10,19,20,21,22,14,23,16,173,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,238,364,365,4,5,54,366,306,307,300,0,308,309,120,73,74,93,59,94,95,96,310,230,147,251,194,191,192,136,145,141,69,319,215,217,223,224,336,135,218,367,333,274,313,338,314,123,368,369,370,323,322,320,193,195,142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,386,387,388,66,148,312,389,220,327,390,391,392,228,229,343,393,394,395,396,245,200,159,397,286,398,399,400,213,216,401,402,403,304,404,405,350,406,407,408,346,409,410,140,144,411])),`component`)});B();var r$=K(`/app/_shell/location/$locationName`)({head:({params:e})=>H(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 V(async()=>{let{getContactsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92]));return await bR(e()),null},component:q(()=>V(()=>import(`./app._shell.location._locationName-CXi3y51l.js`),__vite__mapDeps([545,1,2,4,5,6,7,8,9,10,139,11,19,20,21,22,14,23,16,214,388,66,148,312,251,194,77,78,79,80,81,82,83,84,72,274,313,314,88,55,389,307,173,85,76,75,86,29,87,89,90,91,92,122,333,150,28,32,30,31,33,34,35,36,37,151,152,68,40,223,224,336,309,135,136,175,120,121,73,74,93,59,94,95,96,176,177,178,38,39,41,42,179,180,181,367,306,300,0,308,310,230,15,338,238,123,368,184,369,370,323,322,320,375,220,327,390,391,392,373,228,229,343,393,394,266,215,217,26,27,218,182,183,193,192,69,195,142,143,219,374,337,406,407,404,408,432,361])),`component`)});B();var i$=K(`/app/_shell/network/`)({component:q(()=>V(()=>import(`./app._shell.network.index-DKNZPVsc.js`),__vite__mapDeps([546,1,2,139,8,6,76,75,77,78,79,80,81,82,83,84,72,11,19,20,21,22,14,23,16,86,29,87,305,213,172,9,10,173,15,85,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,214,203,215,216,217,135,136,218,193,194,192,69,195,142,143,219,220,221,222,223,224,120,73,74,93,59,94,95,96,547,389,407,369,239,368,333,274,313,370,340,327,435,405,226,372,373,374,337,4,5,7,443,241,548,54,251,442,440,386,65,366,197,148,199,395,312,314,307,319,300,375,396,245,390,391,191,145,141,202,206,159,208,212,320,336,309,422,378,397,277,423,424,338,238,123,384,425,228,229,231,70,401,441,339,380,227,342,385,323,322,324,325,257,326,233,234,345,427,549,521,419,490,144])),`component`)});B();var a$=K(`/app/_shell/network/companies`)({head:()=>H(`Companies network`),component:q(()=>V(()=>import(`./app._shell.network.companies-22XPLu_E.js`),__vite__mapDeps([550,1,2,6,11,19,20,21,22,14,23,16,305,222,15,150,29,28,32,30,31,10,33,34,35,36,37,151,152,68,40,223,224,135,136,120,12
781,75,90,76,77,78,79,80,81,82,83,84,72,85,86,87,88,89,91,92,122,73,74,93,59,94,95,96,184,239,340,183,327,139,8,435,443,241,548,54,251,194,177,226,442,440,4,5,7,9,386,214,65,366,197,148,199,395,312,274,313,314,307,319,300,174,175,176,178,38,39,41,42,179,180,181,218,368,333,369,370,375,396,245,390,391,191,192,145,141,69,202,206,159,208,212,216,217,221,173,320,26,27,336,309,422,378,397,277,423,424,338,238,123,384,425,228,229,231,70,401,186,193,195,142,143,441,339,380,227,342,385,323,322,324,325,257,326,233,234,345,373,427,549])),`component`)});B();var o$=K(`/app/_shell/network/insights`)({head:()=>H(`Network insights`),validateSearch:e=>{let t=e.insightsMock;return{insightsMock:t===1||t===`1`||t===!0||t===`true`}},component:q(()=>V(()=>import(`./app._shell.network.insights-Bky2-Eqz.js`),__vite__mapDeps([551,1,2,139,8,6,121,75,90,11,19,20,21,22,14,23,16,54,194,216,86,29,87,85,76,77,78,79,80,81,82,83,84,72,88,89,91,92,122,15,223,224,336,309,120,73,74,93,59,94,95,96,327,346,150,28,32,30,31,10,33,34,35,36,37,151,152,68,40])),`component`)});B();var s$=K(`/app/_shell/network/related`)({head:()=>H(`Related contacts`),component:q(()=>V(()=>import(`./app._shell.network.related-CRcuSyu2.js`),__vite__mapDeps([552,1,2,6,11,72,19,20,21,22,14,23,16,191,28,29,32,33,34,30,39,31,10,35,36,37,38,152,68,192,41,42,136,180,181,145,141,69,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,59,94,95,96,120,121,122,184,442,440,4,5,7,8,9,139,386,214,65,54,366,197,148,199,395,312,251,194,274,313,314,307,319,300,15,150,151,40,174,135,175,176,177,178,179,218,368,333,369,370,375,396,245,390,391,202,206,159,208,212,216,217,221,173,320,26,27,223,224,336,309,422,378,239,397,277,423,424,338,238,123,384,425,183,228,229,231,70,401,186,193,195,142,143,441,339,380,227,342,385,323,322,324,325,257,326,233,234,345,327,435,427,549])),`component`)});B();var c$=K(`/app/_shell/tag/$tagId`)({loader:async({params:e})=>{let{getTagsCollection:t}=await V(async()=>{let{getTagsCollection:e}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getTagsCollection:e}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92])),n=t();return n.preload().catch(()=>{}),{tagName:n.get(e.tagId)?.name?.trim()||void 0}},head:({loaderData:e})=>H(e?.tagName??`Contacts`),component:q(()=>V(()=>import(`./app._shell.tag._tagId-CH9NIbIh.js`),__vite__mapDeps([553,6,1,11,2,363,139,8,7,172,9,10,19,20,21,22,14,23,16,173,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,238,364,365,4,5,54,366,306,307,300,0,308,309,120,73,74,93,59,94,95,96,310,230,147,251,194,191,192,136,145,141,69,319,215,217,223,224,336,135,218,367,333,274,313,338,314,123,368,369,370,323,322,320,193,195,142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,386,387,388,66,148,312,389,220,327,390,391,392,228,229,343,393,394,395,396,245,200,159,397,286,398,399,400,213,216,401,402,403,304,404,405,350,406,407,408,346,409,410,140,144,411])),`component`)});B();var l$=K(`/app/_shell/view/$viewId`)({loader:async({params:e})=>{let{getContactsCollection:t,getGroupsCollection:n,getViewsCollection:r}=await V(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-Dp0ZgsQ5.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([85,1,76,75,77,78,79,80,81,82,83,84,72,86,2,29,6,11,14,16,87,88,89,90,91,92])),i=r();return await bR(t(),n(),i),{viewName:i.get(e.viewId)?.name?.trim()||void 0}},head:({loaderData:e})=>H(e?.viewName??`Contacts`),component:q(()=>V(()=>import(`./app._shell.view._viewId-CTmZgtTe.js`),__vite__mapDeps([554,6,1,11,2,363,139,8,7,172,9,10,19,20,21,22,14,23,16,173,15,85,76,75,77,78,79,80,81,82,83,84,72,86,29,87,88,89,90,91,92,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,174,175,176,177,178,151,152,68,179,180,181,182,150,183,184,121,122,185,186,238,364,365,4,5,54,366,306,307,300,0,308,309,120,73,74,93,59,94,95,96,310,230,147,251,194,191,192,136,145,141,69,319,215,217,223,224,336,135,218,367,333,274,313,338,314,123,368,369,370,323,322,320,193,195,
78142,143,219,371,239,372,373,374,337,375,340,325,257,326,376,377,214,197,378,55,202,206,379,203,204,277,380,381,226,382,383,384,385,345,386,387,388,66,148,312,389,220,327,390,391,392,228,229,343,393,394,395,396,245,200,159,397,286,398,399,400,213,216,401,402,403,304,404,405,350,406,407,408,346,409,410,140,144,411])),`component`)});B();var u$=K(`/app/auth/referral/$kind/$id`)({head:()=>H(`Joining Dex`,{noindex:!0}),component:q(()=>V(()=>import(`./app.auth.referral._kind._id-DQoXTyJ9.js`),__vite__mapDeps([555,1,2,139,8,6,11,103])),`component`)}),d$=ej.update({id:`/`,path:`/`,getParentRoute:()=>bA}),f$=rj.update({id:`/about`,path:`/about`,getParentRoute:()=>bA}),p$=oj.update({id:`/ai-agents`,path:`/ai-agents`,getParentRoute:()=>bA}),m$=lj.update({id:`/ambassador`,path:`/ambassador`,getParentRoute:()=>bA}),h$=Aj.update({id:`/app`,path:`/app`,getParentRoute:()=>bA}),g$=Pj.update({id:`/browser-extension`,path:`/browser-extension`,getParentRoute:()=>bA}),_$=Lj.update({id:`/desktop`,path:`/desktop`,getParentRoute:()=>bA}),v$=Rj.update({id:`/desktop-login-redirect`,path:`/desktop-login-redirect`,getParentRoute:()=>bA}),y$=zj.update({id:`/desktop-login-start`,path:`/desktop-login-start`,getParentRoute:()=>bA}),b$=Bj.update({id:`/desktop-voice-panel`,path:`/desktop-voice-panel`,getParentRoute:()=>bA}),x$=EM.update({id:`/get-started`,path:`/get-started`,getParentRoute:()=>bA}),S$=DM.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>bA}),C$=AM.update({id:`/jarvis`,path:`/jarvis`,getParentRoute:()=>bA}),w$=NM.update({id:`/linkHandler`,path:`/linkHandler`,getParentRoute:()=>bA}),T$=PM.update({id:`/logout`,path:`/logout`,getParentRoute:()=>bA}),E$=GM.update({id:`/mba`,path:`/mba`,getParentRoute:()=>bA}),D$=JM.update({id:`/mobile`,path:`/mobile`,getParentRoute:()=>bA}),O$=EI.update({id:`/preboard`,path:`/preboard`,getParentRoute:()=>bA}),k$=DI.update({id:`/pricing`,path:`/pricing`,getParentRoute:()=>bA}),A$=OI.update({id:`/privacypolicy`,path:`/privacypolicy`,getParentRoute:()=>bA}),j$=jI.update({id:`/product-overview`,path:`/product-overview`,getParentRoute:()=>bA}),M$=MI.update({id:`/refer`,path:`/refer`,getParentRoute:()=>bA}),N$=NI.update({id:`/resources`,path:`/resources`,getParentRoute:()=>bA}),P$=II.update({id:`/security`,path:`/security`,getParentRoute:()=>bA}),F$=RI.update({id:`/student`,path:`/student`,getParentRoute:()=>bA}),I$=VI.update({id:`/support`,path:`/support`,getParentRoute:()=>bA}),L$=HI.update({id:`/termsofservice`,path:`/termsofservice`,getParentRoute:()=>bA}),R$=GI.update({id:`/testimonials`,path:`/testimonials`,getParentRoute:()=>bA}),z$=KI.update({id:`/_shell`,getParentRoute:()=>h$}),B$=qI.update({id:`/auth`,path:`/auth`,getParentRoute:()=>h$}),V$=bL.update({id:`/desktop-setup`,path:`/desktop-setup`,getParentRoute:()=>h$}),H$=kL.update({id:`/extension-handler`,path:`/extension-handler`,getParentRoute:()=>h$}),U$=QL.update({id:`/join`,path:`/join`,getParentRoute:()=>h$}),W$=yR.update({id:`/onboarding`,path:`/onboarding`,getParentRoute:()=>h$}),G$=xR.update({id:`/plans`,path:`/plans`,getParentRoute:()=>h$}),K$=tV.update({id:`/reactivation`,path:`/reactivation`,getParentRoute:()=>h$}),q$=nV.update({id:`/settings`,path:`/settings`,getParentRoute:()=>h$}),J$=FV.update({id:`/subscribe`,path:`/subscribe`,getParentRoute:()=>h$}),Y$=IV.update({id:`/auth/desktop-login`,path:`/auth/desktop-login`,getParentRoute:()=>bA}),X$=LV.update({id:`/auth/open-app`,path:`/auth/open-app`,getParentRoute:()=>bA}),Z$=xX.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>bA}),Q$=SX.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>bA}),$$=TX.update({id:`/guides/`,path:`/guides/`,getParentRoute:()=>bA}),e1=EX.update({id:`/guides/$slug`,path:`/guides/$slug`,getParentRoute:()=>bA}),t1=LX.update({id:`/`,path:`/`,getParentRoute:()=>S$}),n1=RX.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>S$}),r1=zX.update({id:`/`,path:`/`,getParentRoute:()=>N$}),i1=fZ.update({id:`/shared/$token`,path:`/shared/$token`,getParentRoute:()=>bA}),a1=mZ.update({id:`/unsubscribe/$type`,path:`/unsubscribe/$type`,getParentRoute:()=>bA}),o1=yZ.update({id:`/use-cases/$slug`,path:`/use-cases/$slug`,getParentRoute:()=>bA}),s1=bZ.update({id:`/`,path:`/`,getParentRoute:()=>z$}),c1=xZ.update({id:`/archive`,path:`/archive`,getParentRoute:()=>z$}),l1=SZ.update({id:`/birthdays`,path:`/birthdays`,getParentRoute:()=>z$}),u1=CZ.update({id:`/contacts`,path:`/contacts`,getParentRoute:()=>z$}
78),d1=wZ.update({id:`/copilot`,path:`/copilot`,getParentRoute:()=>z$}),f1=DZ.update({id:`/game`,path:`/game`,getParentRoute:()=>z$}),p1=OZ.update({id:`/import`,path:`/import`,getParentRoute:()=>z$}),m1=kZ.update({id:`/keep-in-touch`,path:`/keep-in-touch`,getParentRoute:()=>z$}),h1=AZ.update({id:`/locations`,path:`/locations`,getParentRoute:()=>z$}),g1=jZ.update({id:`/map`,path:`/map`,getParentRoute:()=>z$}),_1=MZ.update({id:`/merge-and-fix`,path:`/merge-and-fix`,getParentRoute:()=>z$}),v1=NZ.update({id:`/network`,path:`/network`,getParentRoute:()=>z$}),y1=PZ.update({id:`/priority-map`,path:`/priority-map`,getParentRoute:()=>z$}),b1=FZ.update({id:`/refer`,path:`/refer`,getParentRoute:()=>z$}),x1=IZ.update({id:`/reminders`,path:`/reminders`,getParentRoute:()=>z$}),S1=RZ.update({id:`/search`,path:`/search`,getParentRoute:()=>z$}),C1=zZ.update({id:`/timeline`,path:`/timeline`,getParentRoute:()=>z$}),w1=HZ.update({id:`/action`,path:`/action`,getParentRoute:()=>B$}),T1=GZ.update({id:`/check-email`,path:`/check-email`,getParentRoute:()=>B$}),E1=KZ.update({id:`/device-code`,path:`/device-code`,getParentRoute:()=>B$}),D1=qZ.update({id:`/forgot-password`,path:`/forgot-password`,getParentRoute:()=>B$}),O1=XZ.update({id:`/mcp-authorize`,path:`/mcp-authorize`,getParentRoute:()=>B$}),k1=ZZ.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>B$}),A1=QZ.update({id:`/sign-up`,path:`/sign-up`,getParentRoute:()=>B$}),j1=$Z.update({id:`/contact/$contactId`,path:`/contact/$contactId`,getParentRoute:()=>h$}),M1=eQ.update({id:`/contacts/$contactId`,path:`/contacts/$contactId`,getParentRoute:()=>h$}),N1=tQ.update({id:`/`,path:`/`,getParentRoute:()=>W$}),P1=nQ.update({id:`/about`,path:`/about`,getParentRoute:()=>W$}),F1=iQ.update({id:`/connect`,path:`/connect`,getParentRoute:()=>W$}),I1=aQ.update({id:`/connect-email`,path:`/connect-email`,getParentRoute:()=>W$}),L1=oQ.update({id:`/connect-imessage`,path:`/connect-imessage`,getParentRoute:()=>W$}),R1=sQ.update({id:`/connect-instagram`,path:`/connect-instagram`,getParentRoute:()=>W$}),z1=cQ.update({id:`/connect-linkedin`,path:`/connect-linkedin`,getParentRoute:()=>W$}),B1=lQ.update({id:`/connect-mcp`,path:`/connect-mcp`,getParentRoute:()=>W$}),V1=uQ.update({id:`/connect-whatsapp`,path:`/connect-whatsapp`,getParentRoute:()=>W$}),H1=dQ.update({id:`/connected`,path:`/connected`,getParentRoute:()=>W$}),U1=fQ.update({id:`/contacts`,path:`/contacts`,getParentRoute:()=>W$}),W1=pQ.update({id:`/copilot`,path:`/copilot`,getParentRoute:()=>W$}),G1=mQ.update({id:`/everywhere`,path:`/everywhere`,getParentRoute:()=>W$}),K1=hQ.update({id:`/extension`,path:`/extension`,getParentRoute:()=>W$}),q1=gQ.update({id:`/identity`,path:`/identity`,getParentRoute:()=>W$}),J1=_Q.update({id:`/phone`,path:`/phone`,getParentRoute:()=>W$}),Y1=vQ.update({id:`/resurface`,path:`/resurface`,getParentRoute:()=>W$}),X1=yQ.update({id:`/`,path:`/`,getParentRoute:()=>q$}),Z1=bQ.update({id:`/$section`,path:`/$section`,getParentRoute:()=>q$}),Q1=xQ.update({id:`/api`,path:`/api`,getParentRoute:()=>q$}),$1=SQ.update({id:`/automation`,path:`/automation`,getParentRoute:()=>q$}),e0=CQ.update({id:`/billing`,path:`/billing`,getParentRoute:()=>q$}
78),t0=wQ.update({id:`/custom-fields`,path:`/custom-fields`,getParentRoute:()=>q$}),n0=DQ.update({id:`/data`,path:`/data`,getParentRoute:()=>q$}),r0=OQ.update({id:`/desktop`,path:`/desktop`,getParentRoute:()=>q$}),i0=kQ.update({id:`/general`,path:`/general`,getParentRoute:()=>q$}),a0=jQ.update({id:`/import-export`,path:`/import-export`,getParentRoute:()=>q$}),o0=MQ.update({id:`/members`,path:`/members`,getParentRoute:()=>q$}),s0=NQ.update({id:`/note-types`,path:`/note-types`,getParentRoute:()=>q$}),c0=PQ.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>q$}),l0=FQ.update({id:`/profile`,path:`/profile`,getParentRoute:()=>q$}),u0=IQ.update({id:`/social-links`,path:`/social-links`,getParentRoute:()=>q$}),d0=HQ.update({id:`/sync-integrations`,path:`/sync-integrations`,getParentRoute:()=>q$}),f0=UQ.update({id:`/tags`,path:`/tags`,getParentRoute:()=>q$}),p0=WQ.update({id:`/team`,path:`/team`,getParentRoute:()=>q$}),m0=GQ.update({id:`/text-messaging`,path:`/text-messaging`,getParentRoute:()=>q$}),h0=KQ.update({id:`/workspace`,path:`/workspace`,getParentRoute:()=>q$}),g0=JQ.update({id:`/workspace-billing`,path:`/workspace-billing`,getParentRoute:()=>q$}),_0=YQ.update({id:`/zapier`,path:`/zapier`,getParentRoute:()=>q$}),v0=XQ.update({id:`/w/$slug`,path:`/w/$slug`,getParentRoute:()=>h$}),y0=ZQ.update({id:`/blog/author/$slug`,path:`/blog/author/$slug`,getParentRoute:()=>bA}),b0=QQ.update({id:`/blog/page/$page`,path:`/blog/page/$page`,getParentRoute:()=>bA}),x0=$Q.update({id:`/blog/tag/$tag`,path:`/blog/tag/$tag`,getParentRoute:()=>bA}),S0=e$.update({id:`/`,path:`/`,getParentRoute:()=>d1}),C0=t$.update({id:`/$threadId`,path:`/$threadId`,getParentRoute:()=>d1}),w0=n$.update({id:`/group/$groupId`,path:`/group/$groupId`,getParentRoute:()=>z$}),T0=r$.update({id:`/location/$locationName`,path:`/location/$locationName`,getParentRoute:()=>z$}),E0=i$.update({id:`/`,path:`/`,getParentRoute:()=>v1}),D0=a$.update({id:`/companies`,path:`/companies`,getParentRoute:()=>v1}),O0=o$.update({id:`/insights`,path:`/insights`,getParentRoute:()=>v1}),k0=s$.update({id:`/related`,path:`/related`,getParentRoute:()=>v1}),A0=c$.update({id:`/tag/$tagId`,path:`/tag/$tagId`,getParentRoute:()=>z$}),j0=l$.update({id:`/view/$viewId`,path:`/view/$viewId`,getParentRoute:()=>z$}),M0=u$.update({id:`/referral/$kind/$id`,path:`/referral/$kind/$id`,getParentRoute:()=>B$}),N0={AppShellCopilotThreadIdRoute:C0,AppShellCopilotIndexRoute:S0},P0=d1._addFileChildren(N0),F0={AppShellNetworkCompaniesRoute:D0,AppShellNetworkInsightsRoute:O0,AppShellNetworkRelatedRoute:k0,AppShellNetworkIndexRoute:E0},I0={AppShellArchiveRoute:c1,AppShellBirthdaysRoute:l1,AppShellContactsRoute:u1,AppShellCopilotRoute:P0,AppShellGameRoute:f1,AppShellImportRoute:p1,AppShellKeepInTouchRoute:m1,AppShellLocationsRoute:h1,AppShellMapRoute:g1,AppShellMergeAndFixRoute:_1,AppShellNetworkRoute:v1._addFileChildren(F0),AppShellPriorityMapRoute:y1,AppShellReferRoute:b1,AppShellRemindersRoute:x1,AppShellSearchRoute:S1,AppShellTimelineRoute:C1,AppShellIndexRoute:s1,AppShellGroupGroupIdRoute:w0,AppShellLocationLocationNameRoute:T0,AppShellTagTagIdRoute:A0,AppShellViewViewIdRoute:j0},L0=z$._addFileChildren(I0),R0={AppAuthActionRoute:w1,AppAuthCheckEmailRoute:T1,AppAuthDeviceCodeRoute:E1,AppAuthForgotPasswordRoute:D1,AppAuthMcpAuthorizeRoute:O1,AppAuthSignInRoute:k1,AppAuthSignUpRoute:A1,AppAuthReferralKindIdRoute:M0},z0=B$._addFileChildren(R0),B0={AppOnboardingAboutRoute:P1,AppOnboardingConnectRoute:F1,AppOnboardingConnectEmailRoute:I1,AppOnboardingConnectImessageRoute:L1,AppOnboardingConnectInstagramRoute:R1,AppOnboardingConnectLinkedinRoute:z1,AppOnboardingConnectMcpRoute:B1,AppOnboardingConnectWhatsappRoute:V1,AppOnboardingConnectedRoute:H1,AppOnboardingContactsRoute:U1,AppOnboardingCopilotRoute:W1,AppOnboardingEverywhereRoute:G1,AppOnboardingExtensionRoute:K1,AppOnboardingIdentityRoute:q1,AppOnboardingPhoneRoute:J1,AppOnboardingResurfaceRoute:Y1,AppOnboardingIndexRoute:N1},V0=W$._addFileChildren(B0),H0={AppSettingsSectionRoute:Z1,AppSettingsApiRoute:Q1,AppSettingsAutomationRoute:$1,AppSettingsBillingRoute:e0,AppSettingsCustomFieldsRoute:t0,AppSettingsDataRoute:n0,Ap
78pSettingsDesktopRoute:r0,AppSettingsGeneralRoute:i0,AppSettingsImportExportRoute:a0,AppSettingsMembersRoute:o0,AppSettingsNoteTypesRoute:s0,AppSettingsNotificationsRoute:c0,AppSettingsProfileRoute:l0,AppSettingsSocialLinksRoute:u0,AppSettingsSyncIntegrationsRoute:d0,AppSettingsTagsRoute:f0,AppSettingsTeamRoute:p0,AppSettingsTextMessagingRoute:m0,AppSettingsWorkspaceRoute:h0,AppSettingsWorkspaceBillingRoute:g0,AppSettingsZapierRoute:_0,AppSettingsIndexRoute:X1},U0={AppShellRoute:L0,AppAuthRoute:z0,AppDesktopSetupRoute:V$,AppExtensionHandlerRoute:H$,AppJoinRoute:U$,AppOnboardingRoute:V0,AppPlansRoute:G$,AppReactivationRoute:K$,AppSettingsRoute:q$._addFileChildren(H0),AppSubscribeRoute:J$,AppContactContactIdRoute:j1,AppContactsContactIdRoute:M1,AppWSlugRoute:v0},W0=h$._addFileChildren(U0),G0={IntegrationsSlugRoute:n1,IntegrationsIndexRoute:t1},K0=S$._addFileChildren(G0),q0={ResourcesIndexRoute:r1},J0={IndexRoute:d$,AboutRoute:f$,AiAgentsRoute:p$,AmbassadorRoute:m$,AppRoute:W0,BrowserExtensionRoute:g$,DesktopRoute:_$,DesktopLoginRedirectRoute:v$,DesktopLoginStartRoute:y$,DesktopVoicePanelRoute:b$,GetStartedRoute:x$,IntegrationsRoute:K0,JarvisRoute:C$,LinkHandlerRoute:w$,LogoutRoute:T$,MbaRoute:E$,MobileRoute:D$,PreboardRoute:O$,PricingRoute:k$,PrivacypolicyRoute:A$,ProductOverviewRoute:j$,ReferRoute:M$,ResourcesRoute:N$._addFileChildren(q0),SecurityRoute:P$,StudentRoute:F$,SupportRoute:I$,TermsofserviceRoute:L$,TestimonialsRoute:R$,AuthDesktopLoginRoute:Y$,AuthOpenAppRoute:X$,BlogSlugRoute:Q$,GuidesSlugRoute:e1,SharedTokenRoute:i1,UnsubscribeTypeRoute:a1,UseCasesSlugRoute:o1,BlogIndexRoute:Z$,GuidesIndexRoute:$$,BlogAuthorSlugRoute:y0,BlogPagePageRoute:b0,BlogTagTagRoute:x0},Y0=bA._addFileChildren(J0);function X0(e){return e===`/app`||e.startsWith(`/app/`)}var Z0=[`Error invoking postMessage: Java exception was raised during method invocation`,`Error invoking postMessage: Java object is gone`];function Q0(e){let t=e instanceof Error?e.message:typeof e==`string`?e:``;return t?Z0.some(e=>t===e||t.endsWith(e)):!1}function $0(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(Q0(e))return!1;throw e}}function e2(e){let t=e.postMessage.bind(e);return e.postMessage=function(e){$0({postMessage:t},e)},e}function t2(e){try{return e(),!0}catch(e){if(Q0(e))return!1;throw e}}function n2(e){let t=e===void 0?typeof window>`u`?null:window:e;typeof t!=`object`||!t||(o2(t),s2(t))}function r2(e){return typeof e==`object`&&!!e&&typeof e.postMessage==`function`}function i2(e){return function(...t){try{return e.apply(this,t)}catch(e){if(Q0(e))return;throw e}}}function a2(e){return typeof e==`function`?i2(e):r2(e)?e2(e):e}function o2(e){let t=e.__call_iabjs_unified_bridge,n=a2(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=a2(e)}})}catch{}}function s2(e){typeof e.addEventListener==`function`&&e.addEventListener(`error`,function(e){Q0(e.error??e.message)&&(e.preventDefault(),e.stopImmediatePropagation())},!0)}var c2=`[pw-census]`;function l2(){if(typeof window>`u`)return!1;try{return window.localStorage.getItem(`DEX_PW_DEBUG`)===`1`}catch{return!1}}function u2(){return(Error(`pw-census stack probe`).stack||``).split(` 79`).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 d2=0,f2=typeof performance<`u`?performance.now():0;function p2(e,t,n){d2+=1;let r=Math.round((typeof performance<`u`?performance.now():0)-f2),i=typeof window<`u`?window.location.pathname+window.location.search:``,a={seq:d2,t:r,kind:e,url:i,detail:t,frames:n},o=window;(o.__pwCensus??=[]).push(a);let s=[`${c2} #${d2} +${r}ms ${e}`,t||``,`â ${i}`,n?`(frames: ${n})`:``].filter(Boolean);console.info(s.join(` `))}var m2=!1;function h2(){let e=History.prototype.pushState,t=History.prototype.replaceState;History.prototype.pushState=function(...t){return m2||p2(`pushState`,String(t[2]??``),u2()),e.apply(this,t)},History.prototype.replaceState=function(...e){return m2||p2(`replaceState`,String(e[2]??``),u2()),t.apply(this,e)};let n=window.history,r=n.pushState.bind(n),i=n.replaceState.bind(n);n.pushState=function(...e){p2(`pushState`,String(e[2]??``),u2()),m2=!0;try{return r(...e)}finally{m2=!1}},n.replaceState=function(...e){p2(`replaceState`,String(e[2]??``),u2()),m2=!0;try{return i(...e)}finally{m2=!1}}}function g2(){document.addEventListener(`submit`,e=>{p2(`submit-event`,e.target?.querySelector?.(`input[type=password]`)?`(hasPassword)`:``,u2())},!0);let e=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(...t){return p2(`form.submit()`,this.id?`#${this.id}`:``,u2()),e.apply(this,t)};let t=HTMLFormElement.prototype.requestSubmit;t&&(HTMLFormElement.prototype.requestSubmit=function(...e){return p2(`form.requestSubmit()`,this.id?`#${this.id}`:``,u2()),t.apply(this,e)})}function _2(){let e=navigator.credentials;if(!e)return;let t=e.store?.bind(e),n=e.get?.bind(e);t&&(e.store=function(...e){return p2(`credentials.store`,``,u2()),t(...e)}),n&&(e.get=function(...e){return p2(`credentials.get`,``,u2()),n(...e)})}function v2(){let e=window.addEventListener.bind(window);window.addEventListener=function(t,n,r){return(t===`popstate`||t===`hashchange`)&&p2(`addEventListener:${t}`,``,u2()),e(t,n,r)}}function y2(e,t){if(e.nodeType!==1)return;let n=e,r=e=>{if(e.matches(`input[type=password]`)){let n=e.getAttribute(`autocomplete`);p2(`password-input:${t}`,n?`[autocomplete=${n}]`:``)}
79if(e.matches(`form`)){let n=!!e.querySelector(`input[type=password]`);p2(`form:${t}`,n?`(hasPassword)`:``)}};r(n),n.querySelectorAll(`input[type=password], form`).forEach(r)}function b2(){let e=()=>{new MutationObserver(e=>{for(let t of e)t.addedNodes.forEach(e=>y2(e,`mount`)),t.removedNodes.forEach(e=>y2(e,`unmount`))}).observe(document.documentElement,{childList:!0,subtree:!0})};document.documentElement?e():document.addEventListener(`DOMContentLoaded`,e,{once:!0})}function x2(){if(!l2())return;let e=window;if(!e.__pwCensusInstalled){e.__pwCensusInstalled=!0,e.__pwCensus=[];try{h2(),g2(),_2(),v2(),b2(),p2(`census-installed`,`gate=${window.location.hostname}`)}catch(e){console.info(`${c2} install failed`,e)}}}var S2=[{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 C2(){let e=(0,J.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={animationDelay:`260ms`},n=(0,W.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,W.jsxs)(`nav`,{"aria-labelledby":`not-found-agent-links`,className:`rise-in mt-14 border-t border-border pt-6`,style:t,children:[n,(0,W.jsx)(`ul`,{className:`mt-3 space-y-1.5`,children:S2.map(w2)})]}),e[2]=r):r=e[2],r}function w2(e){return(0,W.jsxs)(`li`,{className:`text-sm text-muted-foreground`,children:[(0,W.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 T2(){let e=(0,J.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`},children:[(0,W.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,W.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,W.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,W.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,W.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,W.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,W.jsxs)(`div`,{className:`max-w-xl`,children:[t,n,(0,W.jsxs)(`div`,{className:`rise-in mt-8`,style:r,children:[i,(0,W.jsx)(`div`,{className:`mt-12 flex items-center gap-8`,children:(0,W.jsx)(N,{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,W.jsx)(C2,{})]})]})})}),e[4]=a):a=e[4],a}B();function E2({error:e}){let[t,n]=(0,U.useState)(!1);(0,U.useEffect)(()=>{n(!0)},[]),(0,U.useEffect)(()=>{V(()=>import(`./esm-umt0K0yz.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,W.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,W.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,W.jsxs)(`div`,{className:`max-w-xl`,children:[(0,W.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`}
79,children:[(0,W.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,W.jsx)(`span`,{className:`text-[0.6875rem] font-medium uppercase tracking-[0.22em]`,children:`Something went wrong`})]}),(0,W.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,W.jsxs)(`div`,{className:`rise-in mt-8`,style:{animationDelay:`180ms`},children:[(0,W.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,W.jsx)(`p`,{className:`mt-4 max-w-[56ch] truncate font-mono text-xs text-muted-foreground/70`,children:r}):null,(0,W.jsxs)(`div`,{className:`mt-12 flex items-center gap-8`,children:[(0,W.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,W.jsx)(N,{to:`/`,className:`text-sm font-medium text-muted-foreground transition-colors hover:text-foreground`,children:`Take me home`})]})]})]})})})}B(),x2(),typeof window<`u`&&n2(),(()=>{if(JL(),X0(window.location.pathname)){V(()=>import(`./instrument.client-1NGtwsBX.js`),__vite__mapDeps([556,78,79,0,1,2,557]));return}Ce().then(()=>V(()=>import(`./instrument.client-1NGtwsBX.js`),__vite__mapDeps([556,78,79,0,1,2,557])))})();function D2(){let e=ue(),t=ku({routeTree:Y0,context:e,routeMasks:[L({routeTree:Y0,from:`/app/refer`,to:`/refer`})],scrollRestoration:!0,getScrollRestorationKey:e=>e.href,defaultPreload:`intent`,defaultPreloadStaleTime:3e4,defaultNotFoundComponent:T2,defaultErrorComponent:E2});return $u({router:t,queryClient:e.queryClient}),bM(t),t}async function O2(){let e=await D2(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(ql),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.ids.get().length||await ua(e),e}var k2=O2;function A2(){return k2().finally(()=>window.$_TSR?.h())}var j2;function M2(){return j2||=A2(),(0,W.jsx)(Yl,{promise:j2,children:e=>(0,W.jsx)(Iu,{router:e})})}var N2=Hn();(0,U.startTransition)(()=>{(0,N2.hydrateRoot)(document,(0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(M2,{})}))});export{CY as $,Vj as $n,Ph as $r,$I as $t,RZ as A,Pf as Ai,oP as An,TO as Ar,QL as At,dZ as B,Lu as Bi,OM as Bn,yb as Br,JL as Bt,dQ as C,Pp as Ci,qP as Cn,mk as Cr,gR as Ct,XZ as D,kp as Di,MP as Dn,IO as Dr,rR as Dt,QZ as E,Ap as Ei,FP as En,jO as Er,aR as Et,gZ as F,Td as Fi,BM as Fn,SC as Fr,UL as Ft,jX as G,yM as Gn,Ov as Gr,EL as Gt,YX as H,uu as Hi,TM as Hn,Tb as Hr,kL as Ht,vZ as I,xd as Ii,HM as In,jC as Ir,PL as It,PX as J,sM as Jn,bv as Jr,gL as Jt,MX as K,hM as Kn,Yy as Kr,pL as Kt,mZ as L,wd as Li,PM as Ln,$x as Lr,IL as Lt,DZ as M,Nf as Mi,XN as Mn,tE as Mr,FL as Mt,bZ as N,ud as Ni,WM as Nn,Gw as Nr,LL as Nt,GZ as O,Op as Oi,PP as On,PO as Or,cR as Ot,yZ as P,bd as Pi,FM as Pn,Iw as Pr,ZL as Pt,xX as Q,Jj as Qn,Nh as Qr,QI as Qt,fZ as R,td as Ri,NM as Rn,Rb as Rr,XL as Rt,bQ as S,Fp as Si,YP as Sn,xk as Sr,hR as St,iQ as T,Mp as Ti,HP as Tn,dk as Tr,$L as Tt,zX as U,pu as Ui,SM as Un,ob as Ur,DL as Ut,JX as V,Du as Vi,wM as Vn,vb as Vr,YL as Vt,RX as W,Ql as Wi,vM as Wn,tb as Wr,OL as Wt,TX as X,Yj as Xn,qh as Xr,sL as Xt,EX as Y,rM as Yn,yv as Yr,uL as Yt,SX as Z,Xj as Zn,Mh as Zr,cL as Zt,zQ as _,Bp as _i,MF as _n,Nk as _r,Bz as _t,u$ as a,dm as ai,AF as an,aj as ar,kV as at,DQ as b,Lp as bi,$P as bn,Ok as br,bR as bt,o$ as c,sm as ci,LF as cn,hA as cr,vV as ct,$Q as d,tm as di,kF as dn,Vk as dr,lV as dt,Hm as ei,eL as en,zj as er,wY as et,QQ as f,$p as fi,OF as fn,zk as fr,hV as ft,HQ as g,Vp as gi,FF as gn,Pk as gr,QB as gt,JQ as h,Hp as hi,RF as hn,Gk as hr,tV as ht,X0 as i,pm as ii,IF as in,pj as ir,AV as it,LZ as j,Af as ji,aP as jn,CO as jr,ML as jt,HZ as k,$f as ki,NP as kn,AO as kr,lR as kt,r$ as l,am as li,NF as ln,gA as lr,mV as lt,XQ as m,Up as mi,PF as mn,Ik as mr,rV as mt,Z0 as n,Nm as ni,EI as nn,Dj as nr,IV as nt,l$ as o,um as oi,EF as on,ij as or,jV as ot,ZQ as p,Wp as pi,DF as pn,Rk as pr,iV as pt,NX as q,oM as qn,Xv as qr,_L as qt,t2 as r,mm as ri,CI as rn,vj as rr,FV as rt,c$ as s,lm as si,TF as sn,iA as sr,TV as st,T2 as t,Pm as ti,LI as tn,Ej as tr,TY as tt,n$ as u,rm as ui,jF as un,Lk as ur,uV as ut,VQ as v,zp as vi,uF as vn,Dk as vr,Rz as vt,aQ as w,Np as wi,KP as wn,fk as wr,mR as wt,TQ as x,Ip as xi,ZP as xn,Ak as xr,yR as xt,jQ as y,Rp as yi,eF as yn,Fk as yr,Lz as yt,eZ as z,Ju as zi,kM as zn,Eb as zr,WL 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.