tanstack_start_ts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.wrangler/deploy/config.json +1 -0
- package/bunfig.toml +6 -0
- package/components.json +22 -0
- package/config.json +0 -0
- package/dist/client/.assetsignore +2 -0
- package/dist/client/assets/ProductCard-DbIkJAE-.js +1 -0
- package/dist/client/assets/about-AskxOruL.js +1 -0
- package/dist/client/assets/admin-BZVcAQM3.js +1 -0
- package/dist/client/assets/admin.functions--RdVcuBx.js +1 -0
- package/dist/client/assets/admin.login-QgrF_9Fp.js +1 -0
- package/dist/client/assets/affiliate-disclosure-BIAsA-HO.js +1 -0
- package/dist/client/assets/categories-D0N418mK.js +1 -0
- package/dist/client/assets/category._slug-aCaQm14E.js +1 -0
- package/dist/client/assets/contact-PhvO-V15.js +1 -0
- package/dist/client/assets/faq-BsiHWPM8.js +1 -0
- package/dist/client/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/client/assets/index-BU9rnkF3.js +1 -0
- package/dist/client/assets/index-BpJWZkva.js +1 -0
- package/dist/client/assets/index-vRX-zAyq.js +1 -0
- package/dist/client/assets/login-DteE0ZGp.js +1 -0
- package/dist/client/assets/logo-pSNfLJQk.png +0 -0
- package/dist/client/assets/privacy-B_Pu7040.js +1 -0
- package/dist/client/assets/product-links-BkZ41Gv3.js +1 -0
- package/dist/client/assets/product._id-BVUysCW-.js +1 -0
- package/dist/client/assets/products.functions-cGzRziKO.js +1 -0
- package/dist/client/assets/profile-CveRcKq2.js +1 -0
- package/dist/client/assets/reset-password-ySEjItX_.js +1 -0
- package/dist/client/assets/saved-CHtdQDJF.js +1 -0
- package/dist/client/assets/search-CXWfET1y.js +1 -0
- package/dist/client/assets/signup-CEx90iuV.js +1 -0
- package/dist/client/assets/styles-DrNJG0BO.css +1 -0
- package/dist/client/assets/terms-VqJ9kX9b.js +1 -0
- package/dist/client/assets/update-password-C-d0ix5e.js +1 -0
- package/dist/client/assets/vendor-aria-hidden-DvXkyWUv.js +1 -0
- package/dist/client/assets/vendor-class-variance-authority-5VPnzWs2.js +1 -0
- package/dist/client/assets/vendor-clsx-B-dksMZM.js +1 -0
- package/dist/client/assets/vendor-cookie-es-CS0aJGDi.js +1 -0
- package/dist/client/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-floating-ui-core-BlUy28sp.js +1 -0
- package/dist/client/assets/vendor-floating-ui-dom-BxK0hn2R.js +1 -0
- package/dist/client/assets/vendor-floating-ui-react-dom-Bas3975S.js +1 -0
- package/dist/client/assets/vendor-floating-ui-utils-BfYUAVcw.js +1 -0
- package/dist/client/assets/vendor-framer-motion-BMdL-cuX.js +9 -0
- package/dist/client/assets/vendor-get-nonce-C-Z93AgS.js +1 -0
- package/dist/client/assets/vendor-iceberg-js-tWD4K6Lg.js +1 -0
- package/dist/client/assets/vendor-lovable.dev-cloud-auth-js-VuzqtJVg.js +1 -0
- package/dist/client/assets/vendor-lucide-react-b5K2fehp.js +1 -0
- package/dist/client/assets/vendor-motion-dom-BETJamZt.js +1 -0
- package/dist/client/assets/vendor-motion-utils-BuWewJbj.js +1 -0
- package/dist/client/assets/vendor-radix-ui-primitive-Dc_FVRD7.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-accordion-C22Rgxe9.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-arrow-DMHj2mKI.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-avatar-CVPBkFXg.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collapsible-BvM-4sKX.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collection-D9KtqmHm.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-context-CAqqn5Nx.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dialog-DZ01vOLq.js +5 -0
- package/dist/client/assets/vendor-radix-ui-react-direction-DxZwNuei.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-guards-DgWoZ-fP.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-scope-BLIu5QaL.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-id-bpga_rLa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-menu-D0qf2r6_.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-popper-BafIylxU.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-portal-BnAsfNCS.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-presence-C-f3UKQ2.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-primitive-zTHwXNoz.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-roving-focus-jyJB8K2E.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-slot-6LXHJrHl.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-callback-ref-E91aPc6s.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-effect-event-CPeX4A3c.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-size-CXS04sct.js +1 -0
- package/dist/client/assets/vendor-react-dom-BnNs-kzm.js +9 -0
- package/dist/client/assets/vendor-react-gJPiVnX5.js +1 -0
- package/dist/client/assets/vendor-react-remove-scroll-DHKl-IMP.js +4 -0
- package/dist/client/assets/vendor-react-remove-scroll-bar-CSjdInc2.js +38 -0
- package/dist/client/assets/vendor-react-style-singleton-BqHpkgXn.js +1 -0
- package/dist/client/assets/vendor-scheduler-7OC5HNn7.js +1 -0
- package/dist/client/assets/vendor-seroval-B_Fur-nl.js +3 -0
- package/dist/client/assets/vendor-seroval-plugins-CBHnPkZJ.js +1 -0
- package/dist/client/assets/vendor-sonner-71-LdGG1.js +1 -0
- package/dist/client/assets/vendor-supabase-auth-js-DWrN-bIx.js +18 -0
- package/dist/client/assets/vendor-supabase-functions-js-uY_V-TxC.js +1 -0
- package/dist/client/assets/vendor-supabase-phoenix-BzEf37Ve.js +2 -0
- package/dist/client/assets/vendor-supabase-postgrest-js-C4rBWbCx.js +4 -0
- package/dist/client/assets/vendor-supabase-realtime-js-D6BlOYKE.js +23 -0
- package/dist/client/assets/vendor-supabase-storage-js-BG98L3Zz.js +1 -0
- package/dist/client/assets/vendor-supabase-supabase-js-DCCzdwBJ.js +1 -0
- package/dist/client/assets/vendor-tailwind-merge-Ct12j0u0.js +1 -0
- package/dist/client/assets/vendor-tanstack-history-C617CaxG.js +1 -0
- package/dist/client/assets/vendor-tanstack-query-core-7wuJJ5ZL.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-query-HImzo8sX.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-router-sIZLK-LU.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-start-client-GiYCfWmf.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-store-EvTi3ahh.js +1 -0
- package/dist/client/assets/vendor-tanstack-router-core-Cr7bYUZv.js +1 -0
- package/dist/client/assets/vendor-tanstack-start-client-core-C-00BBOu.js +2 -0
- package/dist/client/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-tanstack-store-BC7mA7pq.js +1 -0
- package/dist/client/assets/vendor-tslib-Du-meQkk.js +1 -0
- package/dist/client/assets/vendor-use-callback-ref-C_fIAtot.js +1 -0
- package/dist/client/assets/vendor-use-sidecar-Bh0DDN6h.js +1 -0
- package/dist/client/assets/vendor-use-sync-external-store-ZvKHXaIn.js +1 -0
- package/dist/client/assets/vendor-vercel-analytics-DwPM5BWs.js +1 -0
- package/dist/client/assets/vendor-zod-By9teAtI.js +1 -0
- package/dist/client/robots.txt +2 -0
- package/dist/server/.dev.vars +5 -0
- package/dist/server/.vite/manifest.json +2528 -0
- package/dist/server/assets/ProductCard-CUPXy5Eo.js +149 -0
- package/dist/server/assets/_tanstack-start-manifest_v-do7vTWFD.js +4 -0
- package/dist/server/assets/about-TfKQw0Ga.js +28 -0
- package/dist/server/assets/admin-DspfJOJk.js +578 -0
- package/dist/server/assets/admin.functions-B78ppWLR.js +645 -0
- package/dist/server/assets/admin.functions-BWlKBoTL.js +93 -0
- package/dist/server/assets/admin.login-CV7QfeA6.js +139 -0
- package/dist/server/assets/affiliate-disclosure-B1wI1cDb.js +86 -0
- package/dist/server/assets/auth-middleware-Cn49MidW.js +62 -0
- package/dist/server/assets/categories-Z7jnAYZP.js +108 -0
- package/dist/server/assets/category._slug-D0XY3FGK.js +112 -0
- package/dist/server/assets/contact-IzyONsXs.js +104 -0
- package/dist/server/assets/faq-aRhB_CR3.js +133 -0
- package/dist/server/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/server/assets/index-BTPHbXw9.js +221 -0
- package/dist/server/assets/index-ByJkHkrU.js +30 -0
- package/dist/server/assets/login-Dvy5Dm0f.js +175 -0
- package/dist/server/assets/logo-pSNfLJQk.png +0 -0
- package/dist/server/assets/privacy-B6Wiez1P.js +93 -0
- package/dist/server/assets/product-links-CGYEPP56.js +16 -0
- package/dist/server/assets/product._id-BpRa-1z0.js +231 -0
- package/dist/server/assets/products.functions-DSlmibYN.js +209 -0
- package/dist/server/assets/products.functions-DlHkRiqi.js +24 -0
- package/dist/server/assets/profile-B0NWzVAZ.js +314 -0
- package/dist/server/assets/reset-password-CY-rmqMr.js +115 -0
- package/dist/server/assets/saved-7FA6Dbom.js +126 -0
- package/dist/server/assets/search-Yw5c_fZa.js +329 -0
- package/dist/server/assets/signup-UPzgZo4i.js +143 -0
- package/dist/server/assets/styles-DrNJG0BO.css +1 -0
- package/dist/server/assets/terms-CMnX95bP.js +89 -0
- package/dist/server/assets/update-password-Cr94ea8n.js +131 -0
- package/dist/server/assets/vendor-aria-hidden-DPa16MWu.js +122 -0
- package/dist/server/assets/vendor-class-variance-authority-0YxJPB9Y.js +44 -0
- package/dist/server/assets/vendor-cloudflare-unenv-preset-ya0VEFBz.js +250 -0
- package/dist/server/assets/vendor-clsx-DgYk2OaC.js +16 -0
- package/dist/server/assets/vendor-cookie-es-DAoofYiI.js +44 -0
- package/dist/server/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-floating-ui-core-3tkK0THV.js +726 -0
- package/dist/server/assets/vendor-floating-ui-dom-C-cPtgJv.js +626 -0
- package/dist/server/assets/vendor-floating-ui-react-dom-CRG6gBpH.js +319 -0
- package/dist/server/assets/vendor-floating-ui-utils-DmXANH-E.js +320 -0
- package/dist/server/assets/vendor-framer-motion-X4zAkX3J.js +1979 -0
- package/dist/server/assets/vendor-get-nonce-DiSj3EHl.js +9 -0
- package/dist/server/assets/vendor-h3-v2-CCobnLY5.js +287 -0
- package/dist/server/assets/vendor-iceberg-js-bHCkXyJn.js +534 -0
- package/dist/server/assets/vendor-isbot-CZ7WjwVs.js +21 -0
- package/dist/server/assets/vendor-lovable.dev-cloud-auth-js-BE03njZw.js +180 -0
- package/dist/server/assets/vendor-lucide-react-Ddew6HYb.js +458 -0
- package/dist/server/assets/vendor-motion-dom-D2MTwGIG.js +5983 -0
- package/dist/server/assets/vendor-motion-utils-LJlIFN6m.js +161 -0
- package/dist/server/assets/vendor-radix-ui-primitive-B-mNdDrH.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-accordion-1Izf6x00.js +308 -0
- package/dist/server/assets/vendor-radix-ui-react-arrow-B882lnFK.js +23 -0
- package/dist/server/assets/vendor-radix-ui-react-avatar-BVgZt2Ab.js +209 -0
- package/dist/server/assets/vendor-radix-ui-react-collapsible-DCBbMZiS.js +147 -0
- package/dist/server/assets/vendor-radix-ui-react-collection-BZ2srfgU.js +150 -0
- package/dist/server/assets/vendor-radix-ui-react-compose-refs-D3qsKVk1.js +39 -0
- package/dist/server/assets/vendor-radix-ui-react-context-BVoNDLue.js +78 -0
- package/dist/server/assets/vendor-radix-ui-react-dialog-DlxMaNYK.js +406 -0
- package/dist/server/assets/vendor-radix-ui-react-direction-Dt_WDL1t.js +9 -0
- package/dist/server/assets/vendor-radix-ui-react-dismissable-layer-CjsuPohV.js +210 -0
- package/dist/server/assets/vendor-radix-ui-react-dropdown-menu-DVxKumY8.js +263 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-guards-D_6NoePE.js +29 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-scope-DEIhTJJH.js +206 -0
- package/dist/server/assets/vendor-radix-ui-react-id-DFFpgh6m.js +14 -0
- package/dist/server/assets/vendor-radix-ui-react-menu-CiTMLwjT.js +893 -0
- package/dist/server/assets/vendor-radix-ui-react-popper-23Ye2Vyc.js +286 -0
- package/dist/server/assets/vendor-radix-ui-react-portal-CZCH5uPk.js +16 -0
- package/dist/server/assets/vendor-radix-ui-react-presence-CaAULlDU.js +128 -0
- package/dist/server/assets/vendor-radix-ui-react-primitive-BeOk3UYa.js +124 -0
- package/dist/server/assets/vendor-radix-ui-react-roving-focus-DES9GR8l.js +224 -0
- package/dist/server/assets/vendor-radix-ui-react-slot-DUhZbzoH.js +103 -0
- package/dist/server/assets/vendor-radix-ui-react-use-callback-ref-BynBgohw.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js +69 -0
- package/dist/server/assets/vendor-radix-ui-react-use-effect-event-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js +17 -0
- package/dist/server/assets/vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js +15 -0
- package/dist/server/assets/vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js +6 -0
- package/dist/server/assets/vendor-radix-ui-react-use-size-D6fiKJQo.js +39 -0
- package/dist/server/assets/vendor-react-DvBrY0qp.js +511 -0
- package/dist/server/assets/vendor-react-dom-yvMLPM0j.js +10484 -0
- package/dist/server/assets/vendor-react-remove-scroll-BNtiEvVN.js +328 -0
- package/dist/server/assets/vendor-react-remove-scroll-bar-hLqRASRk.js +82 -0
- package/dist/server/assets/vendor-react-style-singleton-BXjcXskB.js +69 -0
- package/dist/server/assets/vendor-rou3-3NaGPdI8.js +8 -0
- package/dist/server/assets/vendor-seroval-dJyC-Zhz.js +1775 -0
- package/dist/server/assets/vendor-seroval-plugins-Pq_U2meB.js +58 -0
- package/dist/server/assets/vendor-sonner-CqbjhsRh.js +1086 -0
- package/dist/server/assets/vendor-srvx-BA-baEX9.js +6 -0
- package/dist/server/assets/vendor-supabase-auth-js-D4xjVprw.js +7602 -0
- package/dist/server/assets/vendor-supabase-functions-js-sWy4UYn1.js +322 -0
- package/dist/server/assets/vendor-supabase-phoenix-Bw3Uh2Nn.js +1777 -0
- package/dist/server/assets/vendor-supabase-postgrest-js-AO-BXa7I.js +4938 -0
- package/dist/server/assets/vendor-supabase-realtime-js-BtdNgJbm.js +2111 -0
- package/dist/server/assets/vendor-supabase-storage-js-Dk_MrPYO.js +2679 -0
- package/dist/server/assets/vendor-supabase-supabase-js-D1EEtG3j.js +697 -0
- package/dist/server/assets/vendor-tailwind-merge-BHb_obmC.js +3255 -0
- package/dist/server/assets/vendor-tanstack-history-C4pKJmkt.js +204 -0
- package/dist/server/assets/vendor-tanstack-query-core-PwwTR5ld.js +2552 -0
- package/dist/server/assets/vendor-tanstack-react-query-hhHzXAK1.js +190 -0
- package/dist/server/assets/vendor-tanstack-react-router-XzqpA65A.js +1120 -0
- package/dist/server/assets/vendor-tanstack-react-start-RvWUpvat.js +37 -0
- package/dist/server/assets/vendor-tanstack-react-start-client-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-react-start-server-uj_Y9pEN.js +15 -0
- package/dist/server/assets/vendor-tanstack-react-store-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-router-core-6wywV3KN.js +4252 -0
- package/dist/server/assets/vendor-tanstack-start-client-core-DoOKV2pA.js +1741 -0
- package/dist/server/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tanstack-start-server-core-CsAstXv7.js +1421 -0
- package/dist/server/assets/vendor-tanstack-start-storage-context-DgH9hIJT.js +17 -0
- package/dist/server/assets/vendor-tanstack-store-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tslib-_8ICaZ64.js +67 -0
- package/dist/server/assets/vendor-unenv-DUvF4YIF.js +544 -0
- package/dist/server/assets/vendor-use-callback-ref-DMFDRvmi.js +66 -0
- package/dist/server/assets/vendor-use-sidecar-DG1tHua4.js +106 -0
- package/dist/server/assets/vendor-use-sync-external-store-rZ8vi0It.js +64 -0
- package/dist/server/assets/vendor-vercel-analytics-oP8BDp0L.js +168 -0
- package/dist/server/assets/vendor-zod-BRyQdbC-.js +3580 -0
- package/dist/server/index.js +158 -0
- package/dist/server/wrangler.json +1 -0
- package/enable-powershell.ps1 +7 -0
- package/eslint.config.js +41 -0
- package/lint.bat +4 -0
- package/package.json +95 -0
- package/public/robots.txt +2 -0
- package/run-npm-build.cjs +20 -0
- package/run-npm-build.js +20 -0
- package/src/assets/hero-bg.jpg +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/scrollsy/Footer.tsx +68 -0
- package/src/components/scrollsy/LiveTicker.tsx +31 -0
- package/src/components/scrollsy/Logo.tsx +28 -0
- package/src/components/scrollsy/Nav.tsx +255 -0
- package/src/components/scrollsy/ProductCard.tsx +190 -0
- package/src/components/scrollsy/ProductFilters.tsx +226 -0
- package/src/components/scrollsy/SupportWidget.tsx +197 -0
- package/src/components/ui/accordion.tsx +51 -0
- package/src/components/ui/alert-dialog.tsx +115 -0
- package/src/components/ui/alert.tsx +49 -0
- package/src/components/ui/aspect-ratio.tsx +5 -0
- package/src/components/ui/avatar.tsx +47 -0
- package/src/components/ui/badge.tsx +32 -0
- package/src/components/ui/breadcrumb.tsx +101 -0
- package/src/components/ui/button.tsx +49 -0
- package/src/components/ui/calendar.tsx +177 -0
- package/src/components/ui/card.tsx +55 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +331 -0
- package/src/components/ui/checkbox.tsx +26 -0
- package/src/components/ui/collapsible.tsx +11 -0
- package/src/components/ui/command.tsx +143 -0
- package/src/components/ui/context-menu.tsx +187 -0
- package/src/components/ui/dialog.tsx +104 -0
- package/src/components/ui/drawer.tsx +98 -0
- package/src/components/ui/dropdown-menu.tsx +188 -0
- package/src/components/ui/form.tsx +171 -0
- package/src/components/ui/hover-card.tsx +27 -0
- package/src/components/ui/input-otp.tsx +69 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +21 -0
- package/src/components/ui/menubar.tsx +229 -0
- package/src/components/ui/navigation-menu.tsx +120 -0
- package/src/components/ui/pagination.tsx +98 -0
- package/src/components/ui/popover.tsx +31 -0
- package/src/components/ui/progress.tsx +25 -0
- package/src/components/ui/radio-group.tsx +36 -0
- package/src/components/ui/resizable.tsx +37 -0
- package/src/components/ui/scroll-area.tsx +44 -0
- package/src/components/ui/select.tsx +152 -0
- package/src/components/ui/separator.tsx +24 -0
- package/src/components/ui/sheet.tsx +122 -0
- package/src/components/ui/sidebar.tsx +744 -0
- package/src/components/ui/skeleton.tsx +7 -0
- package/src/components/ui/slider.tsx +23 -0
- package/src/components/ui/sonner.tsx +23 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/table.tsx +94 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.tsx +21 -0
- package/src/components/ui/toggle-group.tsx +57 -0
- package/src/components/ui/toggle.tsx +42 -0
- package/src/components/ui/tooltip.tsx +32 -0
- package/src/hooks/use-auth.ts +26 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/integrations/lovable/index.ts +41 -0
- package/src/lib/admin.functions.ts +564 -0
- package/src/lib/error-capture.ts +27 -0
- package/src/lib/error-page.ts +30 -0
- package/src/lib/product-links.ts +39 -0
- package/src/lib/products.functions.ts +101 -0
- package/src/lib/utils.ts +6 -0
- package/src/routeTree.gen.ts +480 -0
- package/src/router.tsx +16 -0
- package/src/routes/__root.tsx +177 -0
- package/src/routes/about.tsx +66 -0
- package/src/routes/admin.login.tsx +95 -0
- package/src/routes/admin.tsx +811 -0
- package/src/routes/affiliate-disclosure.tsx +35 -0
- package/src/routes/categories.tsx +57 -0
- package/src/routes/category.$slug.tsx +51 -0
- package/src/routes/contact.tsx +69 -0
- package/src/routes/faq.tsx +63 -0
- package/src/routes/index.tsx +269 -0
- package/src/routes/login.tsx +160 -0
- package/src/routes/privacy.tsx +39 -0
- package/src/routes/product.$id.tsx +212 -0
- package/src/routes/profile.tsx +393 -0
- package/src/routes/reset-password.tsx +71 -0
- package/src/routes/saved.tsx +83 -0
- package/src/routes/search.tsx +136 -0
- package/src/routes/signup.tsx +108 -0
- package/src/routes/sitemap[.]xml.ts +34 -0
- package/src/routes/terms.tsx +40 -0
- package/src/routes/update-password.tsx +91 -0
- package/src/server.ts +80 -0
- package/src/start.ts +24 -0
- package/src/styles.css +333 -0
- package/terminal-test-output.txt +1 -0
- package/tsconfig.json +27 -0
- package/vercel.json +26 -0
- package/vite.config.ts +38 -0
- package/wrangler.jsonc +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as tt,q as yt,f as J,r as Pe,p as z,u as $,v as zi,i as $i,s as De,k as on,h as We,g as an,o as Xi,j as ln,d as un,c as cn,b as hn,S as Re,l as _i,n as Hi,m as Yi,e as fn,a as Gi,t as se}from"./vendor-motion-utils-BuWewJbj.js";const Dt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function dn(t,e){let i=new Set,s=new Set,n=!1,a=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){r.has(l)&&(c.schedule(l),t()),l(o)}const c={schedule:(l,h=!1,f=!1)=>{const p=f&&n?i:s;return h&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(o=l,n){a=!0;return}n=!0;const h=i;i=s,s=h,i.forEach(u),i.clear(),n=!1,a&&(a=!1,c.process(l))}};return c}const pn=40;function qi(t,e){let i=!1,s=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,r=Dt.reduce((v,x)=>(v[x]=dn(a),v),{}),{setup:o,read:u,resolveKeyframes:c,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,y=()=>{const v=tt.useManualTiming,x=v?n.timestamp:performance.now();i=!1,v||(n.delta=s?1e3/60:Math.max(Math.min(x-n.timestamp,pn),1)),n.timestamp=x,n.isProcessing=!0,o.process(n),u.process(n),c.process(n),l.process(n),h.process(n),f.process(n),d.process(n),p.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(y))},g=()=>{i=!0,s=!0,n.isProcessing||t(y)};return{schedule:Dt.reduce((v,x)=>{const S=r[x];return v[x]=(P,w=!1,V=!1)=>(i||g(),S.schedule(P,w,V)),v},{}),cancel:v=>{for(let x=0;x<Dt.length;x++)r[Dt[x]].cancel(v)},state:n,steps:r}}const{schedule:L,cancel:lt,state:F,steps:$t}=qi(typeof requestAnimationFrame<"u"?requestAnimationFrame:yt,!0);let Mt;function mn(){Mt=void 0}const I={now:()=>(Mt===void 0&&I.set(F.isProcessing||tt.useManualTiming?F.timestamp:performance.now()),Mt),set:t=>{Mt=t,queueMicrotask(mn)}},Zi=t=>e=>typeof e=="string"&&e.startsWith(t),Ji=Zi("--"),yn=Zi("var(--"),Me=t=>yn(t)?gn.test(t.split("/*")[0].trim()):!1,gn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ze(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const gt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},wt={...gt,transform:t=>J(0,1,t)},Rt={...gt,default:1},bt=t=>Math.round(t*1e5)/1e5,Ce=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Tn(t){return t==null}const vn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Be=(t,e)=>i=>!!(typeof i=="string"&&vn.test(i)&&i.startsWith(t)||e&&!Tn(i)&&Object.prototype.hasOwnProperty.call(i,e)),Qi=(t,e,i)=>s=>{if(typeof s!="string")return s;const[n,a,r,o]=s.match(Ce);return{[t]:parseFloat(n),[e]:parseFloat(a),[i]:parseFloat(r),alpha:o!==void 0?parseFloat(o):1}},xn=t=>J(0,255,t),Xt={...gt,transform:t=>Math.round(xn(t))},rt={test:Be("rgb","red"),parse:Qi("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+Xt.transform(t)+", "+Xt.transform(e)+", "+Xt.transform(i)+", "+bt(wt.transform(s))+")"};function An(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}}const ne={test:Be("#"),parse:An,transform:rt.transform},Pt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),q=Pt("deg"),Z=Pt("%"),m=Pt("px"),bn=Pt("vh"),Vn=Pt("vw"),$e={...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(t*100)},ct={test:Be("hsl","hue"),parse:Qi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+Z.transform(bt(e))+", "+Z.transform(bt(i))+", "+bt(wt.transform(s))+")"},C={test:t=>rt.test(t)||ne.test(t)||ct.test(t),parse:t=>rt.test(t)?rt.parse(t):ct.test(t)?ct.parse(t):ne.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?rt.transform(t):ct.transform(t),getAnimatableNone:t=>{const e=C.parse(t);return e.alpha=0,C.transform(e)}},Sn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wn(t){return isNaN(t)&&typeof t=="string"&&(t.match(Ce)?.length||0)+(t.match(Sn)?.length||0)>0}const ts="number",es="color",Pn="var",Dn="var(",Xe="${}",Rn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pt(t){const e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[];let a=0;const o=e.replace(Rn,u=>(C.test(u)?(s.color.push(a),n.push(es),i.push(C.parse(u))):u.startsWith(Dn)?(s.var.push(a),n.push(Pn),i.push(u)):(s.number.push(a),n.push(ts),i.push(parseFloat(u))),++a,Xe)).split(Xe);return{values:i,split:o,indexes:s,types:n}}function Mn(t){return pt(t).values}function is({split:t,types:e}){const i=t.length;return s=>{let n="";for(let a=0;a<i;a++)if(n+=t[a],s[a]!==void 0){const r=e[a];r===ts?n+=bt(s[a]):r===es?n+=C.transform(s[a]):n+=s[a]}return n}}function Cn(t){return is(pt(t))}const Bn=t=>typeof t=="number"?0:C.test(t)?C.getAnimatableNone(t):t,kn=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Bn(t);function En(t){const e=pt(t);return is(e)(e.values.map((s,n)=>kn(s,e.split[n])))}const X={test:wn,parse:Mn,createTransformer:Cn,getAnimatableNone:En};function _t(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Ln({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,e/=100,i/=100;let n=0,a=0,r=0;if(!e)n=a=r=i;else{const o=i<.5?i*(1+e):i+e-i*e,u=2*i-o;n=_t(u,o,t+1/3),a=_t(u,o,t),r=_t(u,o,t-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(r*255),alpha:s}}function Ft(t,e){return i=>i>0?e:t}const D=(t,e,i)=>t+(e-t)*i,Ht=(t,e,i)=>{const s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},Fn=[ne,rt,ct],In=t=>Fn.find(e=>e.test(t));function _e(t){const e=In(t);if(!e)return!1;let i=e.parse(t);return e===ct&&(i=Ln(i)),i}const He=(t,e)=>{const i=_e(t),s=_e(e);if(!i||!s)return Ft(t,e);const n={...i};return a=>(n.red=Ht(i.red,s.red,a),n.green=Ht(i.green,s.green,a),n.blue=Ht(i.blue,s.blue,a),n.alpha=D(i.alpha,s.alpha,a),rt.transform(n))},re=new Set(["none","hidden"]);function On(t,e){return re.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function jn(t,e){return i=>D(t,e,i)}function ke(t){return typeof t=="number"?jn:typeof t=="string"?Me(t)?Ft:C.test(t)?He:Kn:Array.isArray(t)?ss:typeof t=="object"?C.test(t)?He:Nn:Ft}function ss(t,e){const i=[...t],s=i.length,n=t.map((a,r)=>ke(a)(a,e[r]));return a=>{for(let r=0;r<s;r++)i[r]=n[r](a);return i}}function Nn(t,e){const i={...t,...e},s={};for(const n in i)t[n]!==void 0&&e[n]!==void 0&&(s[n]=ke(t[n])(t[n],e[n]));return n=>{for(const a in s)i[a]=s[a](n);return i}}function Un(t,e){const i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){const a=e.types[n],r=t.indexes[a][s[a]],o=t.values[r]??0;i[n]=o,s[a]++}return i}const Kn=(t,e)=>{const i=X.createTransformer(e),s=pt(t),n=pt(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?re.has(t)&&!n.values.length||re.has(e)&&!s.values.length?On(t,e):Pe(ss(Un(s,n),n.values),i):Ft(t,e)};function ns(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?D(t,e,i):ke(t)(t,e)}const Wn=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>L.update(e,i),stop:()=>lt(e),now:()=>F.isProcessing?F.timestamp:I.now()}},rs=(t,e,i=10)=>{let s="";const n=Math.max(Math.round(e/i),2);for(let a=0;a<n;a++)s+=Math.round(t(a/(n-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},It=2e4;function Ee(t){let e=0;const i=50;let s=t.next(e);for(;!s.done&&e<It;)e+=i,s=t.next(e);return e>=It?1/0:e}function zn(t,e=100,i){const s=i({...t,keyframes:[0,e]}),n=Math.min(Ee(s),It);return{type:"keyframes",ease:a=>s.next(n*a).value/e,duration:z(n)}}const R={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function oe(t,e){return t*Math.sqrt(1-e*e)}const $n=12;function Xn(t,e,i){let s=i;for(let n=1;n<$n;n++)s=s-t(s)/e(s);return s}const Yt=.001;function _n({duration:t=R.duration,bounce:e=R.bounce,velocity:i=R.velocity,mass:s=R.mass}){let n,a,r=1-e;r=J(R.minDamping,R.maxDamping,r),t=J(R.minDuration,R.maxDuration,z(t)),r<1?(n=c=>{const l=c*r,h=l*t,f=l-i,d=oe(c,r),p=Math.exp(-h);return Yt-f/d*p},a=c=>{const h=c*r*t,f=h*i+i,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),y=oe(Math.pow(c,2),r);return(-n(c)+Yt>0?-1:1)*((f-d)*p)/y}):(n=c=>{const l=Math.exp(-c*t),h=(c-i)*t+1;return-Yt+l*h},a=c=>{const l=Math.exp(-c*t),h=(i-c)*(t*t);return l*h});const o=5/t,u=Xn(n,a,o);if(t=$(t),isNaN(u))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Hn=["duration","bounce"],Yn=["stiffness","damping","mass"];function Ye(t,e){return e.some(i=>t[i]!==void 0)}function Gn(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!Ye(t,Yn)&&Ye(t,Hn))if(e.velocity=0,t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),n=s*s,a=2*J(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:R.mass,stiffness:n,damping:a}}else{const i=_n({...t,velocity:0});e={...e,...i,mass:R.mass},e.isResolvedFromDuration=!0}return e}function Ot(t=R.visualDuration,e=R.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:n}=i;const a=i.keyframes[0],r=i.keyframes[i.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:c,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Gn({...i,velocity:-z(i.velocity||0)}),p=f||0,y=c/(2*Math.sqrt(u*l)),g=r-a,T=z(Math.sqrt(u/l)),A=Math.abs(g)<5;s||(s=A?R.restSpeed.granular:R.restSpeed.default),n||(n=A?R.restDelta.granular:R.restDelta.default);let v,x,S,P,w,V;if(y<1)S=oe(T,y),P=(p+y*T*g)/S,v=b=>{const M=Math.exp(-y*T*b);return r-M*(P*Math.sin(S*b)+g*Math.cos(S*b))},w=y*T*P+g*S,V=y*T*g-P*S,x=b=>Math.exp(-y*T*b)*(w*Math.sin(S*b)+V*Math.cos(S*b));else if(y===1){v=M=>r-Math.exp(-T*M)*(g+(p+T*g)*M);const b=p+T*g;x=M=>Math.exp(-T*M)*(T*b*M-p)}else{const b=T*Math.sqrt(y*y-1);v=_=>{const G=Math.exp(-y*T*_),H=Math.min(b*_,300);return r-G*((p+y*T*g)*Math.sinh(H)+b*g*Math.cosh(H))/b};const M=(p+y*T*g)/b,O=y*T*M-g*b,et=y*T*g-M*b;x=_=>{const G=Math.exp(-y*T*_),H=Math.min(b*_,300);return G*(O*Math.sinh(H)+et*Math.cosh(H))}}const k={calculatedDuration:d&&h||null,velocity:b=>$(x(b)),next:b=>{if(!d&&y<1){const O=Math.exp(-y*T*b),et=Math.sin(S*b),_=Math.cos(S*b),G=r-O*(P*et+g*_),H=$(O*(w*et+V*_));return o.done=Math.abs(H)<=s&&Math.abs(r-G)<=n,o.value=o.done?r:G,o}const M=v(b);if(d)o.done=b>=h;else{const O=$(x(b));o.done=Math.abs(O)<=s&&Math.abs(r-M)<=n}return o.value=o.done?r:M,o},toString:()=>{const b=Math.min(Ee(k),It),M=rs(O=>k.next(b*O).value,b,30);return b+"ms "+M},toTransition:()=>{}};return k}Ot.applyToOptions=t=>{const e=zn(t,100,Ot);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};const qn=5;function os(t,e,i){const s=Math.max(e-qn,0);return zi(i-t(s),e-s)}function ae({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:r,min:o,max:u,restDelta:c=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=V=>o!==void 0&&V<o||u!==void 0&&V>u,p=V=>o===void 0?u:u===void 0||Math.abs(o-V)<Math.abs(u-V)?o:u;let y=i*e;const g=h+y,T=r===void 0?g:r(g);T!==g&&(y=T-h);const A=V=>-y*Math.exp(-V/s),v=V=>T+A(V),x=V=>{const k=A(V),b=v(V);f.done=Math.abs(k)<=c,f.value=f.done?T:b};let S,P;const w=V=>{d(f.value)&&(S=V,P=Ot({keyframes:[f.value,p(f.value)],velocity:os(v,V,f.value),damping:n,stiffness:a,restDelta:c,restSpeed:l}))};return w(0),{calculatedDuration:null,next:V=>{let k=!1;return!P&&S===void 0&&(k=!0,x(V),w(V)),S!==void 0&&V>=S?P.next(V-S):(!k&&x(V),f)}}}function Zn(t,e,i){const s=[],n=i||tt.mix||ns,a=t.length-1;for(let r=0;r<a;r++){let o=n(t[r],t[r+1]);if(e){const u=Array.isArray(e)?e[r]||yt:e;o=Pe(u,o)}s.push(o)}return s}function Jn(t,e,{clamp:i=!0,ease:s,mixer:n}={}){const a=t.length;if($i(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Zn(e,s,n),u=o.length,c=l=>{if(r&&l<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=De(t[h],t[h+1],l);return o[h](f)};return i?l=>c(J(t[0],t[a-1],l)):c}function Qn(t,e){const i=t[t.length-1];for(let s=1;s<=e;s++){const n=De(0,e,s);t.push(D(i,1,n))}}function tr(t){const e=[0];return Qn(e,t.length-1),e}function er(t,e){return t.map(i=>i*e)}function ir(t,e){return t.map(()=>e||an).splice(0,t.length-1)}function Vt({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const n=on(s)?s.map(We):We(s),a={done:!1,value:e[0]},r=er(i&&i.length===e.length?i:tr(e),t),o=Jn(r,e,{ease:Array.isArray(n)?n:ir(e,n)});return{calculatedDuration:t,next:u=>(a.value=o(u),a.done=u>=t,a)}}const sr=t=>t!==null;function zt(t,{repeat:e,repeatType:i="loop"},s,n=1){const a=t.filter(sr),o=n<0||e&&i!=="loop"&&e%2===1?0:a.length-1;return!o||s===void 0?a[o]:s}const nr={decay:ae,inertia:ae,tween:Vt,keyframes:Vt,spring:Ot};function as(t){typeof t.type=="string"&&(t.type=nr[t.type])}class Le{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const rr=t=>t/100;class jt extends Le{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;as(e);const{type:i=Vt,repeat:s=0,repeatDelay:n=0,repeatType:a,velocity:r=0}=e;let{keyframes:o}=e;const u=i||Vt;u!==Vt&&typeof o[0]!="number"&&(this.mixKeyframes=Pe(rr,ns(o[0],o[1])),o=[0,100]);const c=u({...e,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...o].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Ee(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=c}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:s,totalDuration:n,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?T<0:T>n;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let v=this.currentTime,x=s;if(h){const V=Math.min(this.currentTime,n)/o;let k=Math.floor(V),b=V%1;!b&&V>=1&&(b=1),b===1&&k--,k=Math.min(k,h+1),k%2&&(f==="reverse"?(b=1-b,d&&(b-=d/o)):f==="mirror"&&(x=r)),v=J(0,1,b)*o}let S;A?(this.delayState.value=l[0],S=this.delayState):S=x.next(v),a&&!A&&(S.value=a(S.value));let{done:P}=S;!A&&u!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return w&&p!==ae&&(S.value=zt(l,this.options,g,this.speed)),y&&y(S.value),w&&this.finish(),S}then(e,i){return this.finished.then(e,i)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const i=this.generator.next(e).value;return os(s=>this.generator.next(s).value,e,i)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;i&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,i&&this.driver&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Wn,startTime:i}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function or(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ot=t=>t*180/Math.PI,le=t=>{const e=ot(Math.atan2(t[1],t[0]));return ue(e)},ar={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:le,rotateZ:le,skewX:t=>ot(Math.atan(t[1])),skewY:t=>ot(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ue=t=>(t=t%360,t<0&&(t+=360),t),Ge=le,qe=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ze=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),lr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qe,scaleY:Ze,scale:t=>(qe(t)+Ze(t))/2,rotateX:t=>ue(ot(Math.atan2(t[6],t[5]))),rotateY:t=>ue(ot(Math.atan2(-t[2],t[0]))),rotateZ:Ge,rotate:Ge,skewX:t=>ot(Math.atan(t[4])),skewY:t=>ot(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ce(t){return t.includes("scale")?1:0}function he(t,e){if(!t||t==="none")return ce(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,n;if(i)s=lr,n=i;else{const o=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ar,n=o}if(!n)return ce(e);const a=s[e],r=n[1].split(",").map(cr);return typeof a=="function"?a(r):r[a]}const ur=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return he(i,e)};function cr(t){return parseFloat(t.trim())}const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vt=new Set([...Tt,"pathRotation"]),Je=t=>t===gt||t===m,hr=new Set(["x","y","z"]),fr=Tt.filter(t=>!hr.has(t));function dr(t){const e=[];return fr.forEach(i=>{const s=t.getValue(i);s!==void 0&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const Q={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>he(e,"x"),y:(t,{transform:e})=>he(e,"y")};Q.translateX=Q.x;Q.translateY=Q.y;const at=new Set;let fe=!1,de=!1,pe=!1;function ls(){if(de){const t=Array.from(at).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),i=new Map;e.forEach(s=>{const n=dr(s);n.length&&(i.set(s,n),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const n=i.get(s);n&&n.forEach(([a,r])=>{s.getValue(a)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}de=!1,fe=!1,at.forEach(t=>t.complete(pe)),at.clear()}function us(){at.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(de=!0)})}function pr(){pe=!0,us(),ls(),pe=!1}class Fe{constructor(e,i,s,n,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=s,this.motionValue=n,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(at.add(this),fe||(fe=!0,L.read(us),L.resolveKeyframes(ls))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:s,motionValue:n}=this;if(e[0]===null){const a=n?.get(),r=e[e.length-1];if(a!==void 0)e[0]=a;else if(s&&i){const o=s.readValue(i,r);o!=null&&(e[0]=o)}e[0]===void 0&&(e[0]=r),n&&a===void 0&&n.set(e[0])}or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),at.delete(this)}cancel(){this.state==="scheduled"&&(at.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const mr=t=>t.startsWith("--");function cs(t,e,i){mr(e)?t.style.setProperty(e,i):t.style[e]=i}const yr={};function hs(t,e){const i=Xi(t);return()=>yr[e]??i()}const gr=hs(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),fs=hs(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),At=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,Qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:At([0,.65,.55,1]),circOut:At([.55,0,1,.45]),backIn:At([.31,.01,.66,-.59]),backOut:At([.33,1.53,.69,.99])};function ds(t,e){if(t)return typeof t=="function"?fs()?rs(t,e):"ease-out":ln(t)?At(t):Array.isArray(t)?t.map(i=>ds(i,e)||Qe.easeOut):Qe[t]}function Tr(t,e,i,{delay:s=0,duration:n=300,repeat:a=0,repeatType:r="loop",ease:o="easeOut",times:u}={},c=void 0){const l={[e]:i};u&&(l.offset=u);const h=ds(o,n);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(l,f)}function ps(t){return typeof t=="function"&&"applyToOptions"in t}function vr({type:t,...e}){return ps(t)&&fs()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ms extends Le{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:i,name:s,keyframes:n,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:o,onComplete:u}=e;this.isPseudoElement=!!a,this.allowFlatten=r,this.options=e,$i(typeof e.type!="string");const c=vr(e);this.animation=Tr(i,s,n,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const l=zt(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(l),cs(i,s,l),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=$(e),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:i,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&gr()?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),yt):n(this)}}const ys={anticipate:hn,backInOut:cn,circInOut:un};function xr(t){return t in ys}function Ar(t){typeof t.ease=="string"&&xr(t.ease)&&(t.ease=ys[t.ease])}const Gt=10;class br extends ms{constructor(e){Ar(e),as(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:s,onComplete:n,element:a,...r}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const o=new jt({...r,autoplay:!1}),u=Math.max(Gt,I.now()-this.startTime),c=J(0,Gt,u-Gt),l=o.sample(u).value,{name:h}=this.options;a&&h&&cs(a,h,l),i.setWithVelocity(o.sample(Math.max(0,u-c)).value,l,c),o.stop()}}const ti=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function Vr(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function Sr(t,e,i,s){const n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],r=ti(n,e),o=ti(a,e);return!r||!o?!1:Vr(t)||(i==="spring"||ps(i))&&s}function me(t){t.duration=0,t.type="keyframes"}const gs=new Set(["opacity","clipPath","filter","transform"]),wr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pr(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&wr.test(t[e]))return!0;return!1}const Dr=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Rr=Xi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Mr(t){const{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:a,type:r,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=e.owner.getProps();return Rr()&&i&&(gs.has(i)||Dr.has(i)&&Pr(o))&&(i!=="transform"||!l)&&!c&&!s&&n!=="mirror"&&a!==0&&r!=="inertia"}const Cr=40;class Br extends Le{constructor({autoplay:e=!0,delay:i=0,type:s="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:r="loop",keyframes:o,name:u,motionValue:c,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();const f={autoplay:e,delay:i,type:s,repeat:n,repeatDelay:a,repeatType:r,name:u,motionValue:c,element:l,...h},d=l?.KeyframeResolver||Fe;this.keyframeResolver=new d(o,(p,y,g)=>this.onKeyframesResolved(p,y,f,!g),u,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,i,s,n){this.keyframeResolver=void 0;const{name:a,type:r,velocity:o,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=I.now();let h=!0;Sr(e,a,r,o)||(h=!1,(tt.instantAnimations||!u)&&l?.(zt(e,s,i)),e[0]=e[e.length-1],me(s),s.repeat=0);const d={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>Cr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:e},p=h&&!c&&Mr(d),y=d.motionValue?.owner?.current;let g;if(p)try{g=new br({...d,element:y})}catch{g=new jt(d)}else g=new jt(d);g.finished.then(()=>{this.notifyFinished()}).catch(yt),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ts(t,e,i,s=0,n=1){const a=Array.from(t).sort((c,l)=>c.sortNodePosition(l)).indexOf(e),r=t.size,o=(r-1)*s;return typeof i=="function"?i(a,r):n===1?a*s:o-a*s}const ei=30,kr=t=>!isNaN(parseFloat(t));class Er{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const n=I.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=kr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new Re);const s=this.events[e].add(i);return e==="change"?()=>{s(),L.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ei)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,ei);return zi(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mt(t,e){return new Er(t,e)}function vs(t,e){if(t?.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}function Ie(t,e){const i=t?.[e]??t?.default??t;return i!==t?vs(i,t):i}const Lr={type:"spring",stiffness:500,damping:25,restSpeed:10},Fr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ir={type:"keyframes",duration:.8},Or={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jr=(t,{keyframes:e})=>e.length>2?Ir:vt.has(t)?t.startsWith("scale")?Fr(e[1]):Lr:Or,Nr=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ur(t){for(const e in t)if(!Nr.has(e))return!0;return!1}const xs=(t,e,i,s={},n,a)=>r=>{const o=Ie(s,t)||{},u=o.delay||s.delay||0;let{elapsed:c=0}=s;c=c-$(u);const l={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-c,onUpdate:f=>{e.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{r(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:a?void 0:n};Ur(o)||Object.assign(l,jr(t,l)),l.duration&&(l.duration=$(l.duration)),l.repeatDelay&&(l.repeatDelay=$(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(me(l),l.delay===0&&(h=!0)),(tt.instantAnimations||tt.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(h=!0,me(l),l.delay=0),l.allowFlatten=!o.type&&!o.ease,h&&!a&&e.get()!==void 0){const f=zt(l.keyframes,o);if(f!==void 0){L.update(()=>{l.onUpdate(f),l.onComplete()});return}}return o.isSync?new jt(l):new Br(l)},Kr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wr(t){const e=Kr.exec(t);if(!e)return[,];const[,i,s,n]=e;return[`--${i??s}`,n]}function As(t,e,i=1){const[s,n]=Wr(t);if(!s)return;const a=window.getComputedStyle(e).getPropertyValue(s);if(a){const r=a.trim();return _i(r)?parseFloat(r):r}return Me(n)?As(n,e,i+1):n}function ii(t){const e=[{},{}];return t?.values.forEach((i,s)=>{e[0][s]=i.get(),e[1][s]=i.getVelocity()}),e}function bs(t,e,i,s){if(typeof e=="function"){const[n,a]=ii(s);e=e(i!==void 0?i:t.custom,n,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[n,a]=ii(s);e=e(i!==void 0?i:t.custom,n,a)}return e}function dt(t,e,i){const s=t.getProps();return bs(s,e,i!==void 0?i:s.custom,t)}const Vs=new Set(["width","height","top","left","right","bottom",...Tt]),ye=t=>Array.isArray(t);function zr(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,mt(i))}function $r(t){return ye(t)?t[t.length-1]||0:t}function Xr(t,e){const i=dt(t,e);let{transitionEnd:s={},transition:n={},...a}=i||{};a={...a,...s};for(const r in a){const o=$r(a[r]);zr(t,r,o)}}const j=t=>!!(t&&t.getVelocity);function _r(t){return!!(j(t)&&t.add)}function Hr(t,e){const i=t.getValue("willChange");if(_r(i))return i.add(e);if(!i&&tt.WillChange){const s=new tt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Oe(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Yr="framerAppearId",Gr="data-"+Oe(Yr);function Ss(t){return t.props[Gr]}function qr({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,s}function ws(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:a,transitionEnd:r,...o}=e;const u=t.getDefaultTransition();a=a?vs(a,u):u;const c=a?.reduceMotion,l=a?.skipAnimations;s&&(a=s);const h=[],f=n&&t.animationState&&t.animationState.getState()[n],d=a?.path;d&&d.animateVisualElement(t,o,a,i,h);for(const p in o){const y=t.getValue(p,t.latestValues[p]??null),g=o[p];if(g===void 0||f&&qr(f,p))continue;const T={delay:i,...Ie(a||{},p)};l&&(T.skipAnimations=!0);const A=y.get();if(A!==void 0&&!y.isAnimating()&&!Array.isArray(g)&&g===A&&!T.velocity){L.update(()=>y.set(g));continue}let v=!1;if(window.MotionHandoffAnimation){const P=Ss(t);if(P){const w=window.MotionHandoffAnimation(P,p,L);w!==null&&(T.startTime=w,v=!0)}}Hr(t,p);const x=c??t.shouldReduceMotion;y.start(xs(p,y,g,x&&Vs.has(p)?{type:!1}:T,t,v));const S=y.animation;S&&h.push(S)}if(r){const p=()=>L.update(()=>{r&&Xr(t,r)});h.length?Promise.all(h).then(p):p()}return h}function ge(t,e,i={}){const s=dt(t,e,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);const a=s?()=>Promise.all(ws(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:l,staggerDirection:h}=n;return Zr(t,e,u,c,l,h,i)}:()=>Promise.resolve(),{when:o}=n;if(o){const[u,c]=o==="beforeChildren"?[a,r]:[r,a];return u().then(()=>c())}else return Promise.all([a(),r(i.delay)])}function Zr(t,e,i=0,s=0,n=0,a=1,r){const o=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),o.push(ge(u,e,{...r,delay:i+(typeof s=="function"?0:s)+Ts(t.variantChildren,u,s,n,a)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(o)}function Jr(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const n=e.map(a=>ge(t,a,i));s=Promise.all(n)}else if(typeof e=="string")s=ge(t,e,i);else{const n=typeof e=="function"?dt(t,e,i.custom):e;s=Promise.all(ws(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Qr={test:t=>t==="auto",parse:t=>t},Ps=t=>e=>e.test(t),Ds=[gt,m,Z,q,Vn,bn,Qr],si=t=>Ds.find(Ps(t));function to(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Hi(t):!0}const eo=new Set(["brightness","contrast","saturate","opacity"]);function io(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=i.match(Ce)||[];if(!s)return t;const n=i.replace(s,"");let a=eo.has(e)?1:0;return s!==i&&(a*=100),e+"("+a+n+")"}const so=/\b([a-z-]*)\(.*?\)/gu,Te={...X,getAnimatableNone:t=>{const e=t.match(so);return e?e.map(io).join(" "):t}},ve={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ni={...gt,transform:Math.round},no={rotate:q,pathRotation:q,rotateX:q,rotateY:q,rotateZ:q,scale:Rt,scaleX:Rt,scaleY:Rt,scaleZ:Rt,skew:q,skewX:q,skewY:q,distance:m,translateX:m,translateY:m,translateZ:m,x:m,y:m,z:m,perspective:m,transformPerspective:m,opacity:wt,originX:$e,originY:$e,originZ:m},Nt={borderWidth:m,borderTopWidth:m,borderRightWidth:m,borderBottomWidth:m,borderLeftWidth:m,borderRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomRightRadius:m,borderBottomLeftRadius:m,width:m,maxWidth:m,height:m,maxHeight:m,top:m,right:m,bottom:m,left:m,inset:m,insetBlock:m,insetBlockStart:m,insetBlockEnd:m,insetInline:m,insetInlineStart:m,insetInlineEnd:m,padding:m,paddingTop:m,paddingRight:m,paddingBottom:m,paddingLeft:m,paddingBlock:m,paddingBlockStart:m,paddingBlockEnd:m,paddingInline:m,paddingInlineStart:m,paddingInlineEnd:m,margin:m,marginTop:m,marginRight:m,marginBottom:m,marginLeft:m,marginBlock:m,marginBlockStart:m,marginBlockEnd:m,marginInline:m,marginInlineStart:m,marginInlineEnd:m,fontSize:m,backgroundPositionX:m,backgroundPositionY:m,...no,zIndex:ni,fillOpacity:wt,strokeOpacity:wt,numOctaves:ni},ro={...Nt,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:Te,WebkitFilter:Te,mask:ve,WebkitMask:ve},Rs=t=>ro[t],oo=new Set([Te,ve]);function Ms(t,e){let i=Rs(t);return oo.has(i)||(i=X),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const ao=new Set(["auto","none","0"]);function lo(t,e,i){let s=0,n;for(;s<t.length&&!n;){const a=t[s];typeof a=="string"&&!ao.has(a)&&pt(a).values.length&&(n=t[s]),s++}if(n&&i)for(const a of e)t[a]=Ms(i,n)}class uo extends Fe{constructor(e,i,s,n,a){super(e,i,s,n,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),Me(h))){const f=As(h,i.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Vs.has(s)||e.length!==2)return;const[n,a]=e,r=si(n),o=si(a),u=ze(n),c=ze(a);if(u!==c&&Q[s]){this.needsMeasurement=!0;return}if(r!==o)if(Je(r)&&Je(o))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else Q[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,s=[];for(let n=0;n<e.length;n++)(e[n]===null||to(e[n]))&&s.push(n);s.length&&lo(e,s,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Q[s](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const n=i[i.length-1];n!==void 0&&e.getValue(s,n).jump(n,!1)}measureEndState(){const{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);const a=s.length-1,r=s[a];s[a]=Q[i](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,u])=>{e.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function Cs(t,e,i){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(s=>s!=null)}const xe=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function co(t){return Yi(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Bs}=qi(queueMicrotask,!1),W={x:!1,y:!1};function ks(){return W.x||W.y}function _a(t){return t==="x"||t==="y"?W[t]?null:(W[t]=!0,()=>{W[t]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Es(t,e){const i=Cs(t),s=new AbortController,n={passive:!0,...e,signal:s.signal};return[i,n,()=>s.abort()]}function ho(t){return!(t.pointerType==="touch"||ks())}function Ha(t,e,i={}){const[s,n,a]=Es(t,i);return s.forEach(r=>{let o=!1,u=!1,c;const l=()=>{r.removeEventListener("pointerleave",p)},h=g=>{c&&(c(g),c=void 0),l()},f=g=>{o=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),u&&(u=!1,h(g))},d=()=>{o=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},p=g=>{if(g.pointerType!=="touch"){if(o){u=!0;return}h(g)}},y=g=>{if(!ho(g))return;u=!1;const T=e(r,g);typeof T=="function"&&(c=T,r.addEventListener("pointerleave",p,n))};r.addEventListener("pointerenter",y,n),r.addEventListener("pointerdown",d,n)}),a}const Ls=(t,e)=>e?t===e?!0:Ls(t,e.parentElement):!1,fo=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,po=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mo(t){return po.has(t.tagName)||t.isContentEditable===!0}const yo=new Set(["INPUT","SELECT","TEXTAREA"]);function Ya(t){return yo.has(t.tagName)||t.isContentEditable===!0}const Ct=new WeakSet;function ri(t){return e=>{e.key==="Enter"&&t(e)}}function qt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const go=(t,e)=>{const i=t.currentTarget;if(!i)return;const s=ri(()=>{if(Ct.has(i))return;qt(i,"down");const n=ri(()=>{qt(i,"up")}),a=()=>qt(i,"cancel");i.addEventListener("keyup",n,e),i.addEventListener("blur",a,e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function oi(t){return fo(t)&&!ks()}const ai=new WeakSet;function Ga(t,e,i={}){const[s,n,a]=Es(t,i),r=o=>{const u=o.currentTarget;if(!oi(o)||ai.has(o))return;Ct.add(u),i.stopPropagation&&ai.add(o);const c=e(u,o),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Ct.has(u)&&Ct.delete(u),oi(d)&&typeof c=="function"&&c(d,{success:p})},h=d=>{l(d,u===window||u===document||i.useGlobalTarget||Ls(u,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",f,n)};return s.forEach(o=>{(i.useGlobalTarget?window:o).addEventListener("pointerdown",r,n),co(o)&&(o.addEventListener("focus",c=>go(c,n)),!mo(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function je(t){return Yi(t)&&"ownerSVGElement"in t}const Bt=new WeakMap;let kt;const Fs=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:je(s)&&"getBBox"in s?s.getBBox()[e]:s[i],To=Fs("inline","width","offsetWidth"),vo=Fs("block","height","offsetHeight");function xo({target:t,borderBoxSize:e}){Bt.get(t)?.forEach(i=>{i(t,{get width(){return To(t,e)},get height(){return vo(t,e)}})})}function Ao(t){t.forEach(xo)}function bo(){typeof ResizeObserver>"u"||(kt=new ResizeObserver(Ao))}function Vo(t,e){kt||bo();const i=Cs(t);return i.forEach(s=>{let n=Bt.get(s);n||(n=new Set,Bt.set(s,n)),n.add(e),kt?.observe(s)}),()=>{i.forEach(s=>{const n=Bt.get(s);n?.delete(e),n?.size||kt?.unobserve(s)})}}const Et=new Set;let ht;function So(){ht=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Et.forEach(e=>e(t))},window.addEventListener("resize",ht)}function wo(t){return Et.add(t),ht||So(),()=>{Et.delete(t),!Et.size&&typeof ht=="function"&&(window.removeEventListener("resize",ht),ht=void 0)}}function qa(t,e){return typeof t=="function"?wo(t):Vo(t,e)}function Po(t){return je(t)&&t.tagName==="svg"}const Do=[...Ds,C,X],Ro=t=>Do.find(Ps(t)),li=()=>({translate:0,scale:1,origin:0,originPoint:0}),ft=()=>({x:li(),y:li()}),ui=()=>({min:0,max:0}),B=()=>({x:ui(),y:ui()}),Mo=new WeakMap;function Is(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ne(t){return typeof t=="string"||Array.isArray(t)}const Ue=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ke=["initial",...Ue];function Os(t){return Is(t.animate)||Ke.some(e=>Ne(t[e]))}function Co(t){return!!(Os(t)||t.variants)}function Bo(t,e,i){for(const s in e){const n=e[s],a=i[s];if(j(n))t.addValue(s,n);else if(j(a))t.addValue(s,mt(n,{owner:t}));else if(a!==n)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(n):r.hasAnimated||r.set(n)}else{const r=t.getStaticValue(s);t.addValue(s,mt(r!==void 0?r:n,{owner:t}))}}for(const s in i)e[s]===void 0&&t.removeValue(s);return e}const Ae={current:null},js={current:!1},ko=typeof window<"u";function Eo(){if(js.current=!0,!!ko)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ae.current=t.matches;t.addEventListener("change",e),e()}else Ae.current=!1}const ci=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ut={};function Za(t){Ut=t}function Ja(){return Ut}class Lo{scrapeMotionValuesFromProps(e,i,s){return{}}constructor({parent:e,props:i,presenceContext:s,reducedMotionConfig:n,skipAnimations:a,blockInitialAnimation:r,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Fe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=I.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,L.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=i.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=a,this.options=u,this.blockInitialAnimation=!!r,this.isControllingVariants=Os(i),this.isVariantNode=Co(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&j(p)&&p.set(c[d])}}mount(e){if(this.hasBeenMounted)for(const i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,Mo.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(js.current||Eo(),this.shouldReduceMotion=Ae.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),lt(this.notifyUpdate),lt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),i.accelerate&&gs.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:o,times:u,ease:c,duration:l}=i.accelerate,h=new ms({element:this.current,name:e,keyframes:o,times:u,ease:c,duration:$(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=vt.has(e);s&&this.onBindTransform&&this.onBindTransform();const n=i.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&L.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{n(),a&&a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ut){const i=Ut[e];if(!i)continue;const{isEnabled:s,Feature:n}=i;if(!this.features[e]&&n&&s(this.props)&&(this.features[e]=new n(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):B()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<ci.length;s++){const n=ci[s];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const a="on"+n,r=e[a];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Bo(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const s=this.values.get(e);i!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&i!==void 0&&(s=mt(i===null?void 0:i,{owner:this}),this.addValue(e,s)),s}readValue(e,i){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(_i(s)||Hi(s))?s=parseFloat(s):!Ro(s)&&X.test(i)&&(s=Ms(e,i)),this.setBaseTarget(e,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const a=bs(this.props,i,this.presenceContext?.custom);a&&(s=a[e])}if(i&&s!==void 0)return s;const n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!j(n)?n:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new Re),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){Bs.render(this.render)}}class Ns extends Lo{constructor(){super(...arguments),this.KeyframeResolver=uo}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){const s=e.style;return s?s[i]:void 0}removeValueFromRenderState(e,{vars:i,style:s}){delete i[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class Qa{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Fo({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function tl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Io(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Zt(t){return t===void 0||t===1}function be({scale:t,scaleX:e,scaleY:i}){return!Zt(t)||!Zt(e)||!Zt(i)}function nt(t){return be(t)||Us(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Us(t){return hi(t.x)||hi(t.y)}function hi(t){return t&&t!=="0%"}function Kt(t,e,i){const s=t-i,n=e*s;return i+n}function fi(t,e,i,s,n){return n!==void 0&&(t=Kt(t,n,s)),Kt(t,i,s)+e}function Ve(t,e=0,i=1,s,n){t.min=fi(t.min,e,i,s,n),t.max=fi(t.max,e,i,s,n)}function Ks(t,{x:e,y:i}){Ve(t.x,e.translate,e.scale,e.originPoint),Ve(t.y,i.translate,i.scale,i.originPoint)}const di=.999999999999,pi=1.0000000000001;function Oo(t,e,i,s=!1){const n=i.length;if(!n)return;e.x=e.y=1;let a,r;for(let o=0;o<n;o++){a=i[o],r=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Y(t.x,-a.scroll.offset.x),Y(t.y,-a.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ks(t,r)),s&&nt(a.latestValues)&&Lt(t,a.latestValues,a.layout?.layoutBox))}e.x<pi&&e.x>di&&(e.x=1),e.y<pi&&e.y>di&&(e.y=1)}function Y(t,e){t.min+=e,t.max+=e}function mi(t,e,i,s,n=.5){const a=D(t.min,t.max,n);Ve(t,e,i,a,s)}function yi(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Lt(t,e,i){const s=i??t;mi(t.x,yi(e.x,s.x),e.scaleX,e.scale,e.originX),mi(t.y,yi(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ws(t,e){return Fo(Io(t.getBoundingClientRect(),e))}function el(t,e,i){const s=Ws(t,i),{scroll:n}=e;return n&&(Y(s.x,n.offset.x),Y(s.y,n.offset.y)),s}const jo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},No=Tt.length;function Uo(t,e,i){let s="",n=!0;for(let r=0;r<No;r++){const o=Tt[r],u=t[o];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(o.startsWith("scale")?1:0);else{const l=parseFloat(u);c=o.startsWith("scale")?l===1:l===0}if(!c||i){const l=xe(u,Nt[o]);if(!c){n=!1;const h=jo[o]||o;s+=`${h}(${l}) `}i&&(e[o]=l)}}const a=t.pathRotation;return a&&(n=!1,s+=`rotate(${xe(a,Nt.pathRotation)}) `),s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}function zs(t,e,i){const{style:s,vars:n,transformOrigin:a}=t;let r=!1,o=!1;for(const u in e){const c=e[u];if(vt.has(u)){r=!0;continue}else if(Ji(u)){n[u]=c;continue}else{const l=xe(c,Nt[u]);u.startsWith("origin")?(o=!0,a[u]=l):s[u]=l}}if(e.transform||(r||i?s.transform=Uo(e,t.transform,i):s.transform&&(s.transform="none")),o){const{originX:u="50%",originY:c="50%",originZ:l=0}=a;s.transformOrigin=`${u} ${c} ${l}`}}function $s(t,{style:e,vars:i},s,n){const a=t.style;let r;for(r in e)a[r]=e[r];n?.applyProjectionStyles(a,s);for(r in i)a.setProperty(r,i[r])}function gi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(m.test(t))t=parseFloat(t);else return t;const i=gi(t,e.target.x),s=gi(t,e.target.y);return`${i}% ${s}%`}},Ko={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,n=X.parse(t);if(n.length>5)return s;const a=X.createTransformer(t),r=typeof n[0]!="number"?1:0,o=i.x.scale*e.x,u=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=u;const c=D(o,u,.5);return typeof n[2+r]=="number"&&(n[2+r]/=c),typeof n[3+r]=="number"&&(n[3+r]/=c),a(n)}},Se={borderRadius:{...xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomLeftRadius:xt,borderBottomRightRadius:xt,boxShadow:Ko};function Wo(t,{layout:e,layoutId:i}){return vt.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!Se[t]||t==="opacity")}function Xs(t,e,i){const s=t.style,n=e?.style,a={};if(!s)return a;for(const r in s)(j(s[r])||n&&j(n[r])||Wo(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(a[r]=s[r]);return a}function zo(t){return window.getComputedStyle(t)}class il extends Ns{constructor(){super(...arguments),this.type="html",this.renderInstance=$s}readValueFromInstance(e,i){if(vt.has(i))return this.projection?.isProjecting?ce(i):ur(e,i);{const s=zo(e),n=(Ji(i)?s.getPropertyValue(i):s[i])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:i}){return Ws(e,i)}build(e,i,s){zs(e,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,i,s){return Xs(e,i,s)}}const $o={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xo={offset:"strokeDashoffset",array:"strokeDasharray"};function _o(t,e,i=1,s=0,n=!0){t.pathLength=1;const a=n?$o:Xo;t[a.offset]=`${-s}`,t[a.array]=`${e} ${i}`}const Ho=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Yo(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:a=1,pathOffset:r=0,...o},u,c,l){if(zs(t,o,c),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of Ho)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),i!==void 0&&(h.y=i),s!==void 0&&(h.scale=s),n!==void 0&&_o(h,n,a,r,!1)}const _s=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Go=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qo(t,e,i,s){$s(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(_s.has(n)?n:Oe(n),e.attrs[n])}function Zo(t,e,i){const s=Xs(t,e,i);for(const n in t)if(j(t[n])||j(e[n])){const a=Tt.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;s[a]=t[n]}return s}class sl extends Ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=B}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(vt.has(i)){const s=Rs(i);return s&&s.default||0}return i=_s.has(i)?i:Oe(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,s){return Zo(e,i,s)}build(e,i,s){Yo(e,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,i,s,n){qo(e,i,s,n)}mount(e){this.isSVGTag=Go(e.tagName),super.mount(e)}}const Jo=Ke.length;function Hs(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?Hs(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<Jo;i++){const s=Ke[i],n=t.props[s];(Ne(n)||n===!1)&&(e[s]=n)}return e}function Ys(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}const Qo=[...Ue].reverse(),ta=Ue.length;function ea(t){return e=>Promise.all(e.map(({animation:i,options:s})=>Jr(t,i,s)))}function nl(t){let e=ea(t),i=Ti(),s=!0,n=!1;const a=c=>(l,h)=>{const f=dt(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...y}=f;l={...l,...y,...p}}return l};function r(c){e=c(t)}function o(c){const{props:l}=t,h=Hs(t.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let T=0;T<ta;T++){const A=Qo[T],v=i[A],x=l[A]!==void 0?l[A]:h[A],S=Ne(x),P=A===c?v.isActive:null;P===!1&&(y=T);let w=x===h[A]&&x!==l[A]&&S;if(w&&(s||n)&&t.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...p},!v.isActive&&P===null||!x&&!v.prevProp||Is(x)||typeof x=="boolean")continue;if(A==="exit"&&v.isActive&&P!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const V=ia(v.prevProp,x);let k=V||A===c&&v.isActive&&!w&&S||T>y&&S,b=!1;const M=Array.isArray(x)?x:[x];let O=M.reduce(a(A),{});P===!1&&(O={});const{prevResolvedValues:et={}}=v,_={...et,...O},G=E=>{k=!0,d.has(E)&&(b=!0,d.delete(E)),v.needsAnimating[E]=!0;const N=t.getValue(E);N&&(N.liveStyle=!1)};for(const E in _){const N=O[E],it=et[E];if(p.hasOwnProperty(E))continue;let ut=!1;ye(N)&&ye(it)?ut=!Ys(N,it)||V:ut=N!==it,ut?N!=null?G(E):d.add(E):N!==void 0&&d.has(E)?G(E):v.protectedKeys[E]=!0}v.prevProp=x,v.prevResolvedValues=O,v.isActive&&(p={...p,...O}),(s||n)&&t.blockInitialAnimation&&(k=!1);const H=w&&V;k&&(!H||b)&&f.push(...M.map(E=>{const N={type:A};if(typeof E=="string"&&(s||n)&&!H&&t.manuallyAnimateOnMount&&t.parent){const{parent:it}=t,ut=dt(it,E);if(it.enteringChildren&&ut){const{delayChildren:rn}=ut.transition||{};N.delay=Ts(it.enteringChildren,t,rn)}}return{animation:E,options:N}}))}if(d.size){const T={};if(typeof l.initial!="boolean"){const A=dt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);A&&A.transition&&(T.transition=A.transition)}d.forEach(A=>{const v=t.getBaseTarget(A),x=t.getValue(A);x&&(x.liveStyle=!0),T[A]=v??null}),f.push({animation:T})}let g=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,n=!1,g?e(f):Promise.resolve()}function u(c,l){if(i[c].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(c,l)),i[c].isActive=l;const h=o(c);for(const f in i)i[f].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:r,getState:()=>i,reset:()=>{i=Ti(),n=!0}}}function ia(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ys(e,t):!1}function st(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ti(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}function we(t,e){t.min=e.min,t.max=e.max}function K(t,e){we(t.x,e.x),we(t.y,e.y)}function vi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Gs=1e-4,sa=1-Gs,na=1+Gs,qs=.01,ra=0-qs,oa=0+qs;function U(t){return t.max-t.min}function aa(t,e,i){return Math.abs(t-e)<=i}function xi(t,e,i,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=U(i)/U(e),t.translate=D(i.min,i.max,t.origin)-t.originPoint,(t.scale>=sa&&t.scale<=na||isNaN(t.scale))&&(t.scale=1),(t.translate>=ra&&t.translate<=oa||isNaN(t.translate))&&(t.translate=0)}function St(t,e,i,s){xi(t.x,e.x,i.x,s?s.originX:void 0),xi(t.y,e.y,i.y,s?s.originY:void 0)}function Ai(t,e,i,s=0){const n=s?D(i.min,i.max,s):i.min;t.min=n+e.min,t.max=t.min+U(e)}function la(t,e,i,s){Ai(t.x,e.x,i.x,s?.x),Ai(t.y,e.y,i.y,s?.y)}function bi(t,e,i,s=0){const n=s?D(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+U(e)}function Wt(t,e,i,s){bi(t.x,e.x,i.x,s?.x),bi(t.y,e.y,i.y,s?.y)}function Vi(t,e,i,s,n){return t-=e,t=Kt(t,1/i,s),n!==void 0&&(t=Kt(t,1/n,s)),t}function ua(t,e=0,i=1,s=.5,n,a=t,r=t){if(Z.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let o=D(a.min,a.max,s);t===a&&(o-=e),t.min=Vi(t.min,e,i,o,n),t.max=Vi(t.max,e,i,o,n)}function Si(t,e,[i,s,n],a,r){ua(t,e[i],e[s],e[n],e.scale,a,r)}const ca=["x","scaleX","originX"],ha=["y","scaleY","originY"];function wi(t,e,i,s){Si(t.x,e,ca,i?i.x:void 0,s?s.x:void 0),Si(t.y,e,ha,i?i.y:void 0,s?s.y:void 0)}function Pi(t){return t.translate===0&&t.scale===1}function Zs(t){return Pi(t.x)&&Pi(t.y)}function Di(t,e){return t.min===e.min&&t.max===e.max}function fa(t,e){return Di(t.x,e.x)&&Di(t.y,e.y)}function Ri(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Js(t,e){return Ri(t.x,e.x)&&Ri(t.y,e.y)}function Mi(t){return U(t.x)/U(t.y)}function Ci(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Bi(t){return[t("x"),t("y")]}function da(t,e,i){let s="";const n=t.x.translate/e.x,a=t.y.translate/e.y,r=i?.z||0;if((n||a||r)&&(s=`translate3d(${n}px, ${a}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:c,rotate:l,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:y}=i;c&&(s=`perspective(${c}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}deg) `)}const o=t.x.scale*e.x,u=t.y.scale*e.y;return(o!==1||u!==1)&&(s+=`scale(${o}, ${u})`),s||"none"}const Qs=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],pa=Qs.length,ki=t=>typeof t=="string"?parseFloat(t):t,Ei=t=>typeof t=="number"||m.test(t);function ma(t,e,i,s,n,a){n?(t.opacity=D(0,i.opacity??1,ya(s)),t.opacityExit=D(e.opacity??1,0,ga(s))):a&&(t.opacity=D(e.opacity??1,i.opacity??1,s));for(let r=0;r<pa;r++){const o=Qs[r];let u=Li(e,o),c=Li(i,o);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Ei(u)===Ei(c)?(t[o]=Math.max(D(ki(u),ki(c),s),0),(Z.test(c)||Z.test(u))&&(t[o]+="%")):t[o]=c}(e.rotate||i.rotate)&&(t.rotate=D(e.rotate||0,i.rotate||0,s))}function Li(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ya=tn(0,.5,fn),ga=tn(.5,.95,yt);function tn(t,e,i){return s=>s<t?0:s>e?1:i(De(t,e,s))}function Ta(t,e,i){const s=j(t)?t:mt(t);return s.start(xs("",s,e,i)),s.animation}function va(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}const xa=(t,e)=>t.depth-e.depth;class Aa{constructor(){this.children=[],this.isDirty=!1}add(e){Gi(this.children,e),this.isDirty=!0}remove(e){se(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(xa),this.isDirty=!1,this.children.forEach(e)}}function ba(t,e){const i=I.now(),s=({timestamp:n})=>{const a=n-i;a>=e&&(lt(s),t(a-e))};return L.setup(s,!0),()=>lt(s)}function Jt(t){return j(t)?t.get():t}class Va{constructor(){this.members=[]}add(e){Gi(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const n=s.instance;(!n||n.isConnected===!1)&&!s.snapshot&&(se(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(se(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:n}=s.options,{layoutDependency:a}=e.options;(n===void 0||n!==a)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},te=["","X","Y","Z"],Sa=1e3;let wa=0;function ee(t,e,i,s){const{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function en(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Ss(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:n,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",L,!(n||a))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&en(s)}function sn({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(r={},o=e?.()){this.id=wa++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ra),this.nodes.forEach(La),this.nodes.forEach(Fa),this.nodes.forEach(Ma)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Aa)}addEventListener(r,o){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Re),this.eventHandlers.get(r).add(o)}notifyListeners(r,...o){const u=this.eventHandlers.get(r);u&&u.notify(...o)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=je(r)&&!Po(r),this.instance=r;const{layoutId:o,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||o)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;L.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ba(f,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Oi)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Ua,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),T=!this.targetLayout||!Js(this.targetLayout,d),A=!h&&f;if(this.options.layoutRoot||this.resumeFrom||A||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Ie(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,A,v.path)}else h||Oi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),lt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ia),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&en(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Ba),this.nodes.forEach(Fi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ii);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ka),this.nodes.forEach(Ea),this.nodes.forEach(Pa),this.nodes.forEach(Da)):this.nodes.forEach(Ii),this.clearAllSnapshots();const o=I.now();F.delta=J(0,1e3/60,o-F.timestamp),F.timestamp=o,F.isProcessing=!0,$t.update.process(F),$t.preRender.process(F),$t.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ca),this.sharedNodes.forEach(Oa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!U(this.snapshot.measuredBox.x)&&!U(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=B()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(o=!1),o&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:u,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!n)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Zs(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;r&&this.instance&&(o||nt(this.latestValues)||l)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return r&&(u=this.removeTransform(u)),Ka(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return B();const o=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wa))){const{scroll:c}=this.root;c&&(Y(o.x,c.offset.x),Y(o.y,c.offset.y))}return o}removeElementScroll(r){const o=B();if(K(o,r),this.scroll?.wasRoot)return o;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:l,options:h}=c;c!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&K(o,r),Y(o.x,l.offset.x),Y(o.y,l.offset.y))}return o}applyTransform(r,o=!1,u){const c=u||B();K(c,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Y(c.x,-h.scroll.offset.x),Y(c.y,-h.scroll.offset.y)),nt(h.latestValues)&&Lt(c,h.latestValues,h.layout?.layoutBox)}return nt(this.latestValues)&&Lt(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(r){const o=B();K(o,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!nt(c.latestValues))continue;let l;c.instance&&(be(c.latestValues)&&c.updateSnapshot(),l=B(),K(l,c.measurePageBox())),wi(o,c.latestValues,c.snapshot?.layoutBox,l)}return nt(this.latestValues)&&wi(o,this.latestValues),o}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==o;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),la(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):K(this.target,this.layout.layoutBox),Ks(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||be(this.parent.latestValues)||Us(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,o,u){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),Wt(this.relativeTargetOrigin,o,u,this.options.layoutAnchor||void 0),K(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),o=!!this.resumingFrom||this!==r;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===F.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||l))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Oo(this.layoutCorrected,this.treeScale,this.path,o),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=B());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vi(this.prevProjectionDelta.x,this.projectionDelta.x),vi(this.prevProjectionDelta.y,this.projectionDelta.y)),St(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ci(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ci(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ft(),this.projectionDelta=ft(),this.projectionDeltaWithTransform=ft()}setAnimationOrigin(r,o=!1,u){const c=this.snapshot,l=c?c.latestValues:{},h={...this.latestValues},f=ft();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=B(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,g=p!==y,T=this.getStack(),A=!T||T.members.length<=1,v=!!(g&&!A&&this.options.crossfade===!0&&!this.path.some(Na));this.animationProgress=0;let x;const S=u?.interpolateProjection(r);this.mixTargetDelta=P=>{const w=P/1e3,V=S?.(w);V?(f.x.translate=V.x,f.x.scale=D(r.x.scale,1,w),f.x.origin=r.x.origin,f.x.originPoint=r.x.originPoint,f.y.translate=V.y,f.y.scale=D(r.y.scale,1,w),f.y.origin=r.y.origin,f.y.originPoint=r.y.originPoint):(ji(f.x,r.x,w),ji(f.y,r.y,w)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ja(this.relativeTarget,this.relativeTargetOrigin,d,w),x&&fa(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=B()),K(x,this.relativeTarget)),g&&(this.animationValues=h,ma(h,l,this.latestValues,w,v,A)),V&&V.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=V.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Ta(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),r.onUpdate&&r.onUpdate(o)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sa),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:o,target:u,layout:c,latestValues:l}=r;if(!(!o||!u||!c)){if(this!==r&&this.layout&&c&&nn(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||B();const h=U(this.layout.layoutBox.x);u.x.min=r.target.x.min,u.x.max=u.x.min+h;const f=U(this.layout.layoutBox.y);u.y.min=r.target.y.min,u.y.max=u.y.min+f}K(o,u),Lt(o,l),St(this.projectionDeltaWithTransform,this.layoutCorrected,o,l)}}registerSharedNode(r,o){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Va),this.sharedNodes.get(r).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:o,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),r&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let o=!1;const{latestValues:u}=r;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const c={};u.z&&ee("z",r,c,this.animationValues);for(let l=0;l<te.length;l++)ee(`rotate${te[l]}`,r,c,this.animationValues),ee(`skew${te[l]}`,r,c,this.animationValues);r.render();for(const l in c)r.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);r.scheduleRender()}applyProjectionStyles(r,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Jt(o?.pointerEvents)||"",r.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Jt(o?.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(r.transform=u?u({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=da(this.projectionDeltaWithTransform,this.treeScale,l);u&&(h=u(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in Se){if(l[p]===void 0)continue;const{correct:y,applyTo:g,isCSSVariable:T}=Se[p],A=h==="none"?l[p]:y(l[p],c);if(g){const v=g.length;for(let x=0;x<v;x++)r[g[x]]=A}else T?this.options.visualElement.renderState.vars[p]=A:r[p]=A}this.options.layoutId&&(r.pointerEvents=c===this?Jt(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Fi),this.root.sharedNodes.clear()}}}function Pa(t){t.updateLayout()}function Da(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,a=e.source!==t.layout.source;if(n==="size")Bi(l=>{const h=a?e.measuredBox[l]:e.layoutBox[l],f=U(h);h.min=i[l].min,h.max=h.min+f});else if(n==="x"||n==="y"){const l=n==="x"?"y":"x";we(a?e.measuredBox[l]:e.layoutBox[l],i[l])}else nn(n,e.layoutBox,i)&&Bi(l=>{const h=a?e.measuredBox[l]:e.layoutBox[l],f=U(i[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=ft();St(r,i,e.layoutBox);const o=ft();a?St(o,t.applyTransform(s,!0),e.measuredBox):St(o,i,e.layoutBox);const u=!Zs(r);let c=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,p=B();Wt(p,e.layoutBox,h.layoutBox,d);const y=B();Wt(y,i,f.layoutBox,d),Js(p,y)||(c=!0),l.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:r,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Ra(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ma(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ca(t){t.clearSnapshot()}function Fi(t){t.clearMeasurements()}function Ba(t){t.isLayoutDirty=!0,t.updateLayout()}function Ii(t){t.isLayoutDirty=!1}function ka(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Ea(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Oi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function La(t){t.resolveTargetDelta()}function Fa(t){t.calcProjection()}function Ia(t){t.resetSkewAndRotation()}function Oa(t){t.removeLeadSnapshot()}function ji(t,e,i){t.translate=D(e.translate,0,i),t.scale=D(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function Ni(t,e,i,s){t.min=D(e.min,i.min,s),t.max=D(e.max,i.max,s)}function ja(t,e,i,s){Ni(t.x,e.x,i.x,s),Ni(t.y,e.y,i.y,s)}function Na(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ua={duration:.45,ease:[.4,0,.1,1]},Ui=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ki=Ui("applewebkit/")&&!Ui("chrome/")?Math.round:yt;function Wi(t){t.min=Ki(t.min),t.max=Ki(t.max)}function Ka(t){Wi(t.x),Wi(t.y)}function nn(t,e,i){return t==="position"||t==="preserve-aspect"&&!aa(Mi(e),Mi(i),.2)}function Wa(t){return t!==t.root&&t.scroll?.wasRoot}const za=sn({attachResizeListener:(t,e)=>va(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ie={current:void 0},ol=sn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ie.current){const t=new za({});t.mount(window),t.setOptions({layoutScroll:!0}),ie.current=t}return ie.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});export{Ne as A,Co as B,el as C,Bs as D,D as E,Qa as F,Gr as G,ol as H,Z as I,Ga as J,qa as K,Jt as L,dt as M,bs as N,Xs as O,Zo as P,_a as Q,Za as R,sl as S,il as a,va as b,Hr as c,xs as d,zs as e,Yo as f,U as g,lt as h,Fo as i,tl as j,nl as k,B as l,Bi as m,L as n,F as o,Ja as p,Qt as q,Ha as r,Is as s,Os as t,Ya as u,Wo as v,co as w,j as x,fo as y,Go as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function d(s,t){s.indexOf(t)===-1&&s.push(t)}function y(s,t){const n=s.indexOf(t);n>-1&&s.splice(n,1)}const F=(s,t,n)=>n>t?t:n<s?s:n;let I=()=>{};const P={},V=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s),$=s=>typeof s=="object"&&s!==null,C=s=>/^0[^.\s]+$/u.test(s);function D(s){let t;return()=>(t===void 0&&(t=s()),t)}const l=s=>s,G=(...s)=>s.reduce((t,n)=>i=>n(t(i))),L=(s,t,n)=>{const i=t-s;return i?(n-s)/i:1};class N{constructor(){this.subscriptions=[]}add(t){return d(this.subscriptions,t),()=>y(this.subscriptions,t)}notify(t,n,i){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](t,n,i);else for(let e=0;e<c;e++){const r=this.subscriptions[e];r&&r(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=s=>s*1e3,Z=s=>s/1e3,w=(s,t)=>t?s*(1e3/t):0,b=(s,t,n)=>(((1-3*n+3*t)*s+(3*n-6*t))*s+3*t)*s,M=1e-7,O=12;function S(s,t,n,i,c){let e,r,g=0;do r=t+(n-t)/2,e=b(r,i,c)-s,e>0?n=r:t=r;while(Math.abs(e)>M&&++g<O);return r}function o(s,t,n,i){if(s===t&&n===i)return l;const c=e=>S(e,0,1,s,n);return e=>e===0||e===1?e:b(c(e),t,i)}const f=s=>t=>t<=.5?s(2*t)/2:(2-s(2*(1-t)))/2,h=s=>t=>1-s(1-t),p=o(.33,1.53,.69,.99),a=h(p),x=f(a),k=s=>s>=1?1:(s*=2)<1?.5*a(s):.5*(2-Math.pow(2,-10*(s-1))),u=s=>1-Math.sin(Math.acos(s)),v=h(u),A=f(u),T=o(.42,0,1,1),m=o(0,0,.58,1),z=o(.42,0,.58,1),B=s=>Array.isArray(s)&&typeof s[0]!="number",E=s=>Array.isArray(s)&&typeof s[0]=="number",j={linear:l,easeIn:T,easeInOut:z,easeOut:m,circIn:u,circInOut:A,circOut:v,backIn:a,backInOut:x,backOut:p,anticipate:k},q=s=>typeof s=="string",H=s=>{if(E(s)){I(s.length===4);const[t,n,i,c]=s;return o(t,n,i,c)}else if(q(s))return j[s];return s};export{P as M,N as S,d as a,k as b,x as c,A as d,v as e,F as f,z as g,H as h,I as i,E as j,B as k,V as l,$ as m,C as n,D as o,Z as p,l as q,G as r,L as s,y as t,U as u,w as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(n,r,{checkForDefaultPrevented:t=!0}={}){return function(e){if(n?.(e),t===!1||!e.defaultPrevented)return r?.(e)}}export{a as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as l,j as n}from"./vendor-react-gJPiVnX5.js";import{a as Q}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{c as W}from"./vendor-radix-ui-react-collection-D9KtqmHm.js";import{u as X}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{c as Z}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{u as D}from"./vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js";import{P as T}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{R as $,T as ee,C as oe,c as O}from"./vendor-radix-ui-react-collapsible-BvM-4sKX.js";import{u as re}from"./vendor-radix-ui-react-id-bpga_rLa.js";import{u as te}from"./vendor-radix-ui-react-direction-DxZwNuei.js";var d="Accordion",ne=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[N,ce,ae]=W(d),[g]=Q(d,[ae,O]),y=O(),M=l.forwardRef((o,c)=>{const{type:e,...t}=o,a=t,r=t;return n.jsx(N.Provider,{scope:o.__scopeAccordion,children:e==="multiple"?n.jsx(de,{...r,ref:c}):n.jsx(le,{...a,ref:c})})});M.displayName=d;var[H,ie]=g(d),[V,se]=g(d,{collapsible:!1}),le=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:a=()=>{},collapsible:r=!1,...s}=o,[i,p]=D({prop:e,defaultProp:t??"",onChange:a,caller:d});return n.jsx(H,{scope:o.__scopeAccordion,value:l.useMemo(()=>i?[i]:[],[i]),onItemOpen:p,onItemClose:l.useCallback(()=>r&&p(""),[r,p]),children:n.jsx(V,{scope:o.__scopeAccordion,collapsible:r,children:n.jsx(K,{...s,ref:c})})})}),de=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:a=()=>{},...r}=o,[s,i]=D({prop:e,defaultProp:t??[],onChange:a,caller:d}),p=l.useCallback(v=>i((f=[])=>[...f,v]),[i]),m=l.useCallback(v=>i((f=[])=>f.filter(b=>b!==v)),[i]);return n.jsx(H,{scope:o.__scopeAccordion,value:s,onItemOpen:p,onItemClose:m,children:n.jsx(V,{scope:o.__scopeAccordion,collapsible:!0,children:n.jsx(K,{...r,ref:c})})})}),[pe,I]=g(d),K=l.forwardRef((o,c)=>{const{__scopeAccordion:e,disabled:t,dir:a,orientation:r="vertical",...s}=o,i=l.useRef(null),p=X(i,c),m=ce(e),f=te(a)==="ltr",b=Z(o.onKeyDown,C=>{if(!ne.includes(C.key))return;const F=C.target,h=m().filter(j=>!j.ref.current?.disabled),x=h.findIndex(j=>j.ref.current===F),k=h.length;if(x===-1)return;C.preventDefault();let u=x;const R=0,_=k-1,w=()=>{u=x+1,u>_&&(u=R)},P=()=>{u=x-1,u<R&&(u=_)};switch(C.key){case"Home":u=R;break;case"End":u=_;break;case"ArrowRight":r==="horizontal"&&(f?w():P());break;case"ArrowDown":r==="vertical"&&w();break;case"ArrowLeft":r==="horizontal"&&(f?P():w());break;case"ArrowUp":r==="vertical"&&P();break}const J=u%k;h[J].ref.current?.focus()});return n.jsx(pe,{scope:e,disabled:t,direction:a,orientation:r,children:n.jsx(N.Slot,{scope:e,children:n.jsx(T.div,{...s,"data-orientation":r,ref:p,onKeyDown:t?void 0:b})})})}),A="AccordionItem",[ue,S]=g(A),L=l.forwardRef((o,c)=>{const{__scopeAccordion:e,value:t,...a}=o,r=I(A,e),s=ie(A,e),i=y(e),p=re(),m=t&&s.value.includes(t)||!1,v=r.disabled||o.disabled;return n.jsx(ue,{scope:e,open:m,disabled:v,triggerId:p,children:n.jsx($,{"data-orientation":r.orientation,"data-state":B(m),...i,...a,ref:c,disabled:v,open:m,onOpenChange:f=>{f?s.onItemOpen(t):s.onItemClose(t)}})})});L.displayName=A;var z="AccordionHeader",G=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,a=I(d,e),r=S(z,e);return n.jsx(T.h3,{"data-orientation":a.orientation,"data-state":B(r.open),"data-disabled":r.disabled?"":void 0,...t,ref:c})});G.displayName=z;var E="AccordionTrigger",U=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,a=I(d,e),r=S(E,e),s=se(E,e),i=y(e);return n.jsx(N.ItemSlot,{scope:e,children:n.jsx(ee,{"aria-disabled":r.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:r.triggerId,...i,...t,ref:c})})});U.displayName=E;var Y="AccordionContent",q=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,a=I(d,e),r=S(Y,e),s=y(e);return n.jsx(oe,{role:"region","aria-labelledby":r.triggerId,"data-orientation":a.orientation,...s,...t,ref:c,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...o.style}})});q.displayName=Y;function B(o){return o?"open":"closed"}var Re=M,_e=L,we=G,Pe=U,je=q;export{je as C,we as H,_e as I,Re as R,Pe as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as o}from"./vendor-react-gJPiVnX5.js";import{P as m}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";var v="Arrow",e=p.forwardRef((r,s)=>{const{children:t,width:i=10,height:a=5,...n}=r;return o.jsx(m.svg,{...n,ref:s,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?t:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});e.displayName=v;var h=e;export{h as R};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as p}from"./vendor-react-gJPiVnX5.js";import{u as P}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";import{u as x}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";import"./vendor-react-dom-BnNs-kzm.js";import{c as b}from"./vendor-radix-ui-react-slot-6LXHJrHl.js";import{u as N}from"./vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js";function j(e,r=[]){let a=[];function n(t,i){const o=u.createContext(i);o.displayName=t+"Context";const c=a.length;a=[...a,i];const d=l=>{const{scope:m,children:g,...v}=l,y=m?.[e]?.[c]||o,I=u.useMemo(()=>v,Object.values(v));return p.jsx(y.Provider,{value:I,children:g})};d.displayName=t+"Provider";function f(l,m){const g=m?.[e]?.[c]||o,v=u.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${l}\` must be used within \`${t}\``)}return[d,f]}const s=()=>{const t=a.map(i=>u.createContext(i));return function(o){const c=o?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return s.scopeName=e,[n,M(s,...r)]}function M(...e){const r=e[0];if(e.length===1)return r;const a=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(t){const i=n.reduce((o,{useScope:c,scopeName:d})=>{const l=c(t)[`__scope${d}`];return{...o,...l}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return a.scopeName=r.scopeName,a}var $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],S=$.reduce((e,r)=>{const a=b(`Primitive.${r}`),n=u.forwardRef((s,t)=>{const{asChild:i,...o}=s,c=i?a:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...o,ref:t})});return n.displayName=`Primitive.${r}`,{...e,[r]:n}},{}),A="Avatar",[k]=j(A),[F,L]=k(A),w=u.forwardRef((e,r)=>{const{__scopeAvatar:a,...n}=e,[s,t]=u.useState("idle");return p.jsx(F,{scope:a,imageLoadingStatus:s,onImageLoadingStatusChange:t,children:p.jsx(S.span,{...n,ref:r})})});w.displayName=A;var h="AvatarImage",E=u.forwardRef((e,r)=>{const{__scopeAvatar:a,src:n,onLoadingStatusChange:s=()=>{},...t}=e,i=L(h,a),o=H(n,t),c=P(d=>{s(d),i.onImageLoadingStatusChange(d)});return x(()=>{o!=="idle"&&c(o)},[o,c]),o==="loaded"?p.jsx(S.img,{...t,ref:r,src:n}):null});E.displayName=h;var _="AvatarFallback",R=u.forwardRef((e,r)=>{const{__scopeAvatar:a,delayMs:n,...s}=e,t=L(_,a),[i,o]=u.useState(n===void 0);return u.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>o(!0),n);return()=>window.clearTimeout(c)}},[n]),i&&t.imageLoadingStatus!=="loaded"?p.jsx(S.span,{...s,ref:r}):null});R.displayName=_;function C(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function H(e,{referrerPolicy:r,crossOrigin:a}){const n=N(),s=u.useRef(null),t=n?(s.current||(s.current=new window.Image),s.current):null,[i,o]=u.useState(()=>C(t,e));return x(()=>{o(C(t,e))},[t,e]),x(()=>{const c=l=>()=>{o(l)};if(!t)return;const d=c("loaded"),f=c("error");return t.addEventListener("load",d),t.addEventListener("error",f),r&&(t.referrerPolicy=r),typeof a=="string"&&(t.crossOrigin=a),()=>{t.removeEventListener("load",d),t.removeEventListener("error",f)}},[t,a,r]),i}var V=w,W=E,q=R;export{q as F,W as I,V as R};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,j as c}from"./vendor-react-gJPiVnX5.js";import{c as I}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{a as O}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{u as S}from"./vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js";import{u as D}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";import{u as M}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{P as v}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{P as L}from"./vendor-radix-ui-react-presence-C-f3UKQ2.js";import{u as k}from"./vendor-radix-ui-react-id-bpga_rLa.js";var f="Collapsible",[F,W]=O(f),[B,g]=F(f),T=o.forwardRef((e,r)=>{const{__scopeCollapsible:s,open:a,defaultOpen:t,disabled:l,onOpenChange:i,...m}=e,[d,p]=S({prop:a,defaultProp:t??!1,onChange:i,caller:f});return c.jsx(B,{scope:s,disabled:l,contentId:k(),open:d,onOpenToggle:o.useCallback(()=>p(C=>!C),[p]),children:c.jsx(v.div,{"data-state":R(d),"data-disabled":l?"":void 0,...m,ref:r})})});T.displayName=f;var j="CollapsibleTrigger",w=o.forwardRef((e,r)=>{const{__scopeCollapsible:s,...a}=e,t=g(j,s);return c.jsx(v.button,{type:"button","aria-controls":t.contentId,"aria-expanded":t.open||!1,"data-state":R(t.open),"data-disabled":t.disabled?"":void 0,disabled:t.disabled,...a,ref:r,onClick:I(e.onClick,t.onOpenToggle)})});w.displayName=j;var x="CollapsibleContent",A=o.forwardRef((e,r)=>{const{forceMount:s,...a}=e,t=g(x,e.__scopeCollapsible);return c.jsx(L,{present:s||t.open,children:({present:l})=>c.jsx(G,{...a,ref:r,present:l})})});A.displayName=x;var G=o.forwardRef((e,r)=>{const{__scopeCollapsible:s,present:a,children:t,...l}=e,i=g(x,s),[m,d]=o.useState(a),p=o.useRef(null),C=M(r,p),h=o.useRef(0),P=h.current,y=o.useRef(0),N=y.current,b=i.open||m,E=o.useRef(b),u=o.useRef(void 0);return o.useEffect(()=>{const n=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(n)},[]),D(()=>{const n=p.current;if(n){u.current=u.current||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const _=n.getBoundingClientRect();h.current=_.height,y.current=_.width,E.current||(n.style.transitionDuration=u.current.transitionDuration,n.style.animationName=u.current.animationName),d(a)}},[i.open,a]),c.jsx(v.div,{"data-state":R(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...l,ref:C,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:b&&t})});function R(e){return e?"open":"closed"}var X=T,Y=w,Z=A;export{Z as C,X as R,Y as T,W as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,j as E,R}from"./vendor-react-gJPiVnX5.js";import{a as T}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{c as j,u as M}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";function N(e){const t=P(e),n=l.forwardRef((r,o)=>{const{children:c,...a}=r,s=l.Children.toArray(c),d=s.find(b);if(d){const f=d.props.children,y=s.map(x=>x===d?l.Children.count(f)>1?l.Children.only(null):l.isValidElement(f)?f.props.children:null:x);return E.jsx(t,{...a,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,y):null})}return E.jsx(t,{...a,ref:o,children:c})});return n.displayName=`${e}.Slot`,n}function P(e){const t=l.forwardRef((n,r)=>{const{children:o,...c}=n;if(l.isValidElement(o)){const a=V(o),s=w(c,o.props);return o.type!==l.Fragment&&(s.ref=r?j(r,a):a),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v=Symbol("radix.slottable");function b(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v}function w(e,t){const n={...t};for(const r in t){const o=e[r],c=t[r];/^on[A-Z]/.test(r)?o&&c?n[r]=(...s)=>{const d=c(...s);return o(...s),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...c}:r==="className"&&(n[r]=[o,c].filter(Boolean).join(" "))}return{...e,...n}}function V(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $(e){const t=e+"CollectionProvider",[n,r]=T(t),[o,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:i,children:S}=m,u=R.useRef(null),p=R.useRef(new Map).current;return E.jsx(o,{scope:i,itemMap:p,collectionRef:u,children:S})};a.displayName=t;const s=e+"CollectionSlot",d=N(s),f=R.forwardRef((m,i)=>{const{scope:S,children:u}=m,p=c(s,S),C=M(i,p.collectionRef);return E.jsx(d,{ref:C,children:u})});f.displayName=s;const y=e+"CollectionItemSlot",x="data-radix-collection-item",O=N(y),g=R.forwardRef((m,i)=>{const{scope:S,children:u,...p}=m,C=R.useRef(null),A=M(i,C),I=c(y,S);return R.useEffect(()=>(I.itemMap.set(C,{ref:C,...p}),()=>{I.itemMap.delete(C)})),E.jsx(O,{[x]:"",ref:A,children:u})});g.displayName=y;function _(m){const i=c(e+"CollectionConsumer",m);return R.useCallback(()=>{const u=i.collectionRef.current;if(!u)return[];const p=Array.from(u.querySelectorAll(`[${x}]`));return Array.from(i.itemMap.values()).sort((I,h)=>p.indexOf(I.ref.current)-p.indexOf(h.ref.current))},[i.collectionRef,i.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},_,r]}export{$ as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l}from"./vendor-react-gJPiVnX5.js";function s(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function f(...n){return o=>{let u=!1;const c=n.map(t=>{const e=s(t,o);return!u&&typeof e=="function"&&(u=!0),e});if(u)return()=>{for(let t=0;t<c.length;t++){const e=c[t];typeof e=="function"?e():s(n[t],null)}}}}function r(...n){return l.useCallback(f(...n),n)}export{f as c,r as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,j as f}from"./vendor-react-gJPiVnX5.js";function $(t,s){const n=u.createContext(s),x=r=>{const{children:e,...o}=r,c=u.useMemo(()=>o,Object.values(o));return f.jsx(n.Provider,{value:c,children:e})};x.displayName=t+"Provider";function i(r){const e=u.useContext(n);if(e)return e;if(s!==void 0)return s;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[x,i]}function j(t,s=[]){let n=[];function x(r,e){const o=u.createContext(e),c=n.length;n=[...n,e];const d=p=>{const{scope:m,children:v,...a}=p,S=m?.[t]?.[c]||o,h=u.useMemo(()=>a,Object.values(a));return f.jsx(S.Provider,{value:h,children:v})};d.displayName=r+"Provider";function C(p,m){const v=m?.[t]?.[c]||o,a=u.useContext(v);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[d,C]}const i=()=>{const r=n.map(e=>u.createContext(e));return function(o){const c=o?.[t]||r;return u.useMemo(()=>({[`__scope${t}`]:{...o,[t]:c}}),[o,c])}};return i.scopeName=t,[x,P(i,...s)]}function P(...t){const s=t[0];if(t.length===1)return s;const n=()=>{const x=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const e=x.reduce((o,{useScope:c,scopeName:d})=>{const p=c(r)[`__scope${d}`];return{...o,...p}},{});return u.useMemo(()=>({[`__scope${s.scopeName}`]:e}),[e])}};return n.scopeName=s.scopeName,n}export{j as a,$ as c};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{r as a,j as i}from"./vendor-react-gJPiVnX5.js";import{c as m}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{c as V,u as y}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{a as $,c as B}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{u as R}from"./vendor-radix-ui-react-id-bpga_rLa.js";import{u as H}from"./vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js";import{D as Z}from"./vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js";import{F as q}from"./vendor-radix-ui-react-focus-scope-BLIu5QaL.js";import{P as K}from"./vendor-radix-ui-react-portal-BnAsfNCS.js";import{P as E}from"./vendor-radix-ui-react-presence-C-f3UKQ2.js";import{P as D}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u as U}from"./vendor-radix-ui-react-focus-guards-DgWoZ-fP.js";import{R as Y}from"./vendor-react-remove-scroll-DHKl-IMP.js";import{h as z}from"./vendor-aria-hidden-DvXkyWUv.js";function J(e){const t=Q(e),r=a.forwardRef((n,o)=>{const{children:s,...c}=n,l=a.Children.toArray(s),u=l.find(ee);if(u){const d=u.props.children,g=l.map(v=>v===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:v);return i.jsx(t,{...c,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,g):null})}return i.jsx(t,{...c,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function Q(e){const t=a.forwardRef((r,n)=>{const{children:o,...s}=r;if(a.isValidElement(o)){const c=oe(o),l=te(s,o.props);return o.type!==a.Fragment&&(l.ref=n?V(n,c):c),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var X=Symbol("radix.slottable");function ee(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===X}function te(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...l)=>{const u=s(...l);return o(...l),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function oe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var x="Dialog",[O]=$(x),[re,f]=O(x),N=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=a.useRef(null),u=a.useRef(null),[d,g]=H({prop:n,defaultProp:o??!1,onChange:s,caller:x});return i.jsx(re,{scope:t,triggerRef:l,contentRef:u,contentId:R(),titleId:R(),descriptionId:R(),open:d,onOpenChange:g,onOpenToggle:a.useCallback(()=>g(v=>!v),[g]),modal:c,children:r})};N.displayName=x;var I="DialogTrigger",ne=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=f(I,r),s=y(t,o.triggerRef);return i.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":P(o.open),...n,ref:s,onClick:m(e.onClick,o.onOpenToggle)})});ne.displayName=I;var h="DialogPortal",[se,j]=O(h,{forceMount:void 0}),A=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=f(h,t);return i.jsx(se,{scope:t,forceMount:r,children:a.Children.map(n,c=>i.jsx(E,{present:r||s.open,children:i.jsx(K,{asChild:!0,container:o,children:c})}))})};A.displayName=h;var C="DialogOverlay",b=a.forwardRef((e,t)=>{const r=j(C,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=f(C,e.__scopeDialog);return s.modal?i.jsx(E,{present:n||s.open,children:i.jsx(ie,{...o,ref:t})}):null});b.displayName=C;var ae=J("DialogOverlay.RemoveScroll"),ie=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=f(C,r);return i.jsx(Y,{as:ae,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(D.div,{"data-state":P(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),p="DialogContent",T=a.forwardRef((e,t)=>{const r=j(p,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=f(p,e.__scopeDialog);return i.jsx(E,{present:n||s.open,children:s.modal?i.jsx(le,{...o,ref:t}):i.jsx(ce,{...o,ref:t})})});T.displayName=p;var le=a.forwardRef((e,t)=>{const r=f(p,e.__scopeDialog),n=a.useRef(null),o=y(t,r.contentRef,n);return a.useEffect(()=>{const s=n.current;if(s)return z(s)},[]),i.jsx(S,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:m(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:m(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:m(e.onFocusOutside,s=>s.preventDefault())})}),ce=a.forwardRef((e,t)=>{const r=f(p,e.__scopeDialog),n=a.useRef(!1),o=a.useRef(!1);return i.jsx(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||r.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),S=a.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,l=f(p,r),u=a.useRef(null),d=y(t,u);return U(),i.jsxs(i.Fragment,{children:[i.jsx(q,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Z,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(ue,{titleId:l.titleId}),i.jsx(de,{contentRef:u,descriptionId:l.descriptionId})]})]})}),_="DialogTitle",M=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=f(_,r);return i.jsx(D.h2,{id:o.titleId,...n,ref:t})});M.displayName=_;var w="DialogDescription",F=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=f(w,r);return i.jsx(D.p,{id:o.descriptionId,...n,ref:t})});F.displayName=w;var W="DialogClose",L=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=f(W,r);return i.jsx(D.button,{type:"button",...n,ref:t,onClick:m(e.onClick,()=>o.onOpenChange(!1))})});L.displayName=W;function P(e){return e?"open":"closed"}var k="DialogTitleWarning",[Ne,G]=B(k,{contentName:p,titleName:_,docsSlug:"dialog"}),ue=({titleId:e})=>{const t=G(k),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},fe="DialogDescriptionWarning",de=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(fe).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ie=N,je=A,Ae=b,be=T,Te=M,Se=F,Me=L;export{Me as C,Se as D,Ae as O,je as P,Ie as R,Te as T,be as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./vendor-react-gJPiVnX5.js";var e=t.createContext(void 0);function i(r){const o=t.useContext(e);return r||o||"ltr"}export{i as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,j as w}from"./vendor-react-gJPiVnX5.js";import{c as h}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{P as g,d as k}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u as R}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{u as x}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";import{u as U}from"./vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js";var j="DismissableLayer",p="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",H="dismissableLayer.focusOutside",C,T=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=s.forwardRef((n,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:f,onDismiss:d,...E}=n,o=s.useContext(T),[c,F]=s.useState(null),l=c?.ownerDocument??globalThis?.document,[,I]=s.useState({}),S=R(e,t=>F(t)),y=Array.from(o.layers),[W]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),A=y.indexOf(W),b=c?y.indexOf(c):-1,N=o.layersWithOutsidePointerEventsDisabled.size>0,D=b>=A,_=Y(t=>{const v=t.target,O=[...o.branches].some(m=>m.contains(v));!D||O||(i?.(t),f?.(t),t.defaultPrevented||d?.())},l),P=q(t=>{const v=t.target;[...o.branches].some(m=>m.contains(v))||(u?.(t),f?.(t),t.defaultPrevented||d?.())},l);return U(t=>{b===o.layers.size-1&&(a?.(t),!t.defaultPrevented&&d&&(t.preventDefault(),d()))},l),s.useEffect(()=>{if(c)return r&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(C=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),L(),()=>{r&&o.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=C)}},[c,l,r,o]),s.useEffect(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),L())},[c,o]),s.useEffect(()=>{const t=()=>I({});return document.addEventListener(p,t),()=>document.removeEventListener(p,t)},[]),w.jsx(g.div,{...E,ref:S,style:{pointerEvents:N?D?"auto":"none":void 0,...n.style},onFocusCapture:h(n.onFocusCapture,P.onFocusCapture),onBlurCapture:h(n.onBlurCapture,P.onBlurCapture),onPointerDownCapture:h(n.onPointerDownCapture,_.onPointerDownCapture)})});M.displayName=j;var K="DismissableLayerBranch",X=s.forwardRef((n,e)=>{const r=s.useContext(T),a=s.useRef(null),i=R(e,a);return s.useEffect(()=>{const u=a.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),w.jsx(g.div,{...n,ref:i})});X.displayName=K;function Y(n,e=globalThis?.document){const r=x(n),a=s.useRef(!1),i=s.useRef(()=>{});return s.useEffect(()=>{const u=d=>{if(d.target&&!a.current){let E=function(){B(z,r,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=E,e.addEventListener("click",i.current,{once:!0})):E()}else e.removeEventListener("click",i.current);a.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>a.current=!0}}function q(n,e=globalThis?.document){const r=x(n),a=s.useRef(!1);return s.useEffect(()=>{const i=u=>{u.target&&!a.current&&B(H,r,{originalEvent:u},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function L(){const n=new CustomEvent(p);document.dispatchEvent(n)}function B(n,e,r,{discrete:a}){const i=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(n,e,{once:!0}),a?k(i,u):i.dispatchEvent(u)}export{M as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as t}from"./vendor-react-gJPiVnX5.js";import{c as m}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{c as j}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{a as G}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{u as k}from"./vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js";import{P as L}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{e as K,A as U,h as g,P as B,b as F,L as H,S as W,I as $,G as X,C as q,R as z,d as J,c as Q,a as V,g as Y,f as Z}from"./vendor-radix-ui-react-menu-D0qf2r6_.js";import{u as v}from"./vendor-radix-ui-react-id-bpga_rLa.js";var f="DropdownMenu",[oo]=G(f,[g]),d=g(),[ro,D]=oo(f),x=o=>{const{__scopeDropdownMenu:n,children:e,dir:r,open:a,defaultOpen:i,onOpenChange:u,modal:s=!0}=o,c=d(n),M=p.useRef(null),[l,w]=k({prop:a,defaultProp:i??!1,onChange:u,caller:f});return t.jsx(ro,{scope:n,triggerId:v(),triggerRef:M,contentId:v(),open:l,onOpenChange:w,onOpenToggle:p.useCallback(()=>w(T=>!T),[w]),modal:s,children:t.jsx(K,{...c,open:l,onOpenChange:w,dir:r,modal:s,children:e})})};x.displayName=f;var _="DropdownMenuTrigger",R=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,disabled:r=!1,...a}=o,i=D(_,e),u=d(e);return t.jsx(U,{asChild:!0,...u,children:t.jsx(L.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:j(n,i.triggerRef),onPointerDown:m(o.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:m(o.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});R.displayName=_;var eo="DropdownMenuPortal",h=o=>{const{__scopeDropdownMenu:n,...e}=o,r=d(n);return t.jsx(B,{...r,...e})};h.displayName=eo;var I="DropdownMenuContent",b=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=D(I,e),i=d(e),u=p.useRef(!1);return t.jsx(F,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...r,ref:n,onCloseAutoFocus:m(o.onCloseAutoFocus,s=>{u.current||a.triggerRef.current?.focus(),u.current=!1,s.preventDefault()}),onInteractOutside:m(o.onInteractOutside,s=>{const c=s.detail.originalEvent,M=c.button===0&&c.ctrlKey===!0,l=c.button===2||M;(!a.modal||l)&&(u.current=!0)}),style:{...o.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});b.displayName=I;var no="DropdownMenuGroup",ao=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(X,{...a,...r,ref:n})});ao.displayName=no;var to="DropdownMenuLabel",N=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(H,{...a,...r,ref:n})});N.displayName=to;var po="DropdownMenuItem",S=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx($,{...a,...r,ref:n})});S.displayName=po;var so="DropdownMenuCheckboxItem",C=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(q,{...a,...r,ref:n})});C.displayName=so;var io="DropdownMenuRadioGroup",uo=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(z,{...a,...r,ref:n})});uo.displayName=io;var co="DropdownMenuRadioItem",E=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(J,{...a,...r,ref:n})});E.displayName=co;var lo="DropdownMenuItemIndicator",A=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(Q,{...a,...r,ref:n})});A.displayName=lo;var wo="DropdownMenuSeparator",P=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(W,{...a,...r,ref:n})});P.displayName=wo;var mo="DropdownMenuArrow",fo=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(V,{...a,...r,ref:n})});fo.displayName=mo;var Mo="DropdownMenuSubTrigger",y=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(Y,{...a,...r,ref:n})});y.displayName=Mo;var vo="DropdownMenuSubContent",O=p.forwardRef((o,n)=>{const{__scopeDropdownMenu:e,...r}=o,a=d(e);return t.jsx(Z,{...a,...r,ref:n,style:{...o.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O.displayName=vo;var No=x,So=R,Co=h,Eo=b,Ao=N,Po=S,yo=C,Oo=E,To=A,jo=P,Go=y,ko=O;export{yo as C,Po as I,Ao as L,Co as P,Oo as R,jo as S,So as T,Eo as a,To as b,No as c,ko as d,Go as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"./vendor-react-gJPiVnX5.js";var t=0;function u(){o.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??n()),document.body.insertAdjacentElement("beforeend",e[1]??n()),t++,()=>{t===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),t--}},[])}function n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}export{u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as R}from"./vendor-react-gJPiVnX5.js";import{u as M}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{P as _}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u as y}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";var F="focusScope.autoFocusOnMount",T="focusScope.autoFocusOnUnmount",N={bubbles:!1,cancelable:!0},x="FocusScope",K=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:u=!1,onMountAutoFocus:p,onUnmountAutoFocus:L,...g}=e,[s,P]=d.useState(null),E=y(p),v=y(L),b=d.useRef(null),U=M(t,o=>P(o)),a=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(u){let o=function(i){if(a.paused||!s)return;const c=i.target;s.contains(c)?b.current=c:f(b.current,{select:!0})},l=function(i){if(a.paused||!s)return;const c=i.relatedTarget;c!==null&&(s.contains(c)||f(b.current,{select:!0}))},r=function(i){if(document.activeElement===document.body)for(const h of i)h.removedNodes.length>0&&f(s)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(r);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[u,s,a.paused]),d.useEffect(()=>{if(s){O.add(a);const o=document.activeElement;if(!s.contains(o)){const r=new CustomEvent(F,N);s.addEventListener(F,E),s.dispatchEvent(r),r.defaultPrevented||(k(V(I(s)),{select:!0}),document.activeElement===o&&f(s))}return()=>{s.removeEventListener(F,E),setTimeout(()=>{const r=new CustomEvent(T,N);s.addEventListener(T,v),s.dispatchEvent(r),r.defaultPrevented||f(o??document.body,{select:!0}),s.removeEventListener(T,v),O.remove(a)},0)}}},[s,E,v,a]);const A=d.useCallback(o=>{if(!n&&!u||a.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,r=document.activeElement;if(l&&r){const m=o.currentTarget,[i,c]=w(m);i&&c?!o.shiftKey&&r===c?(o.preventDefault(),n&&f(i,{select:!0})):o.shiftKey&&r===i&&(o.preventDefault(),n&&f(c,{select:!0})):r===m&&o.preventDefault()}},[n,u,a.paused]);return R.jsx(_.div,{tabIndex:-1,...g,ref:U,onKeyDown:A})});K.displayName=x;function k(e,{select:t=!1}={}){const n=document.activeElement;for(const u of e)if(f(u,{select:t}),document.activeElement!==n)return}function w(e){const t=I(e),n=S(t,e),u=S(t.reverse(),e);return[n,u]}function I(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const p=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||p?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function S(e,t){for(const n of e)if(!D(n,{upTo:t}))return n}function D(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function f(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&H(e)&&t&&e.select()}}var O=j();function j(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=C(e,t),e.unshift(t)},remove(t){e=C(e,t),e[0]?.resume()}}}function C(e,t){const n=[...e],u=n.indexOf(t);return u!==-1&&n.splice(u,1),n}function V(e){return e.filter(t=>t.tagName!=="A")}export{K as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,a as s}from"./vendor-react-gJPiVnX5.js";import{u}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";var c=s[" useId ".trim().toString()]||(()=>{}),i=0;function f(t){const[r,a]=e.useState(c());return u(()=>{a(o=>o??String(i++))},[t]),t||(r?`radix-${r}`:"")}export{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,j as i}from"./vendor-react-gJPiVnX5.js";import{c as v}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{c as We}from"./vendor-radix-ui-react-collection-D9KtqmHm.js";import{c as le,u as D}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{a as Ye}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{u as Xe}from"./vendor-radix-ui-react-direction-DxZwNuei.js";import{D as He}from"./vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js";import{u as $e}from"./vendor-radix-ui-react-focus-guards-DgWoZ-fP.js";import{F as ze}from"./vendor-radix-ui-react-focus-scope-BLIu5QaL.js";import{R as Ze,A as qe,c as de,C as Je,a as Qe}from"./vendor-radix-ui-react-popper-BafIylxU.js";import{P as et}from"./vendor-radix-ui-react-portal-BnAsfNCS.js";import{P as B}from"./vendor-radix-ui-react-presence-C-f3UKQ2.js";import{P as N,d as tt}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{c as fe,I as nt,R as ot}from"./vendor-radix-ui-react-roving-focus-jyJB8K2E.js";import{u as pe}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";import{h as rt}from"./vendor-aria-hidden-DvXkyWUv.js";import{R as st}from"./vendor-react-remove-scroll-DHKl-IMP.js";function ct(e){const n=at(e),t=r.forwardRef((o,s)=>{const{children:c,...l}=o,f=r.Children.toArray(c),m=f.find(ut);if(m){const p=m.props.children,d=f.map(a=>a===m?r.Children.count(p)>1?r.Children.only(null):r.isValidElement(p)?p.props.children:null:a);return i.jsx(n,{...l,ref:s,children:r.isValidElement(p)?r.cloneElement(p,void 0,d):null})}return i.jsx(n,{...l,ref:s,children:c})});return t.displayName=`${e}.Slot`,t}function at(e){const n=r.forwardRef((t,o)=>{const{children:s,...c}=t;if(r.isValidElement(s)){const l=dt(s),f=lt(c,s.props);return s.type!==r.Fragment&&(f.ref=o?le(o,l):l),r.cloneElement(s,f)}return r.Children.count(s)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var it=Symbol("radix.slottable");function ut(e){return r.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===it}function lt(e,n){const t={...n};for(const o in n){const s=e[o],c=n[o];/^on[A-Z]/.test(o)?s&&c?t[o]=(...f)=>{const m=c(...f);return s(...f),m}:s&&(t[o]=s):o==="style"?t[o]={...s,...c}:o==="className"&&(t[o]=[s,c].filter(Boolean).join(" "))}return{...e,...t}}function dt(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Z=["Enter"," "],ft=["ArrowDown","PageUp","Home"],me=["ArrowUp","PageDown","End"],pt=[...ft,...me],mt={ltr:[...Z,"ArrowRight"],rtl:[...Z,"ArrowLeft"]},ht={ltr:["ArrowLeft"],rtl:["ArrowRight"]},k="Menu",[j,Ct,vt]=We(k),[R,on]=Ye(k,[vt,de,fe]),W=de(),he=fe(),[Mt,E]=R(k),[gt,F]=R(k),Ce=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:s,onOpenChange:c,modal:l=!0}=e,f=W(n),[m,p]=r.useState(null),d=r.useRef(!1),a=pe(c),h=Xe(s);return r.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),i.jsx(Ze,{...f,children:i.jsx(Mt,{scope:n,open:t,onOpenChange:a,content:m,onContentChange:p,children:i.jsx(gt,{scope:n,onClose:r.useCallback(()=>a(!1),[a]),isUsingKeyboardRef:d,dir:h,modal:l,children:o})})})};Ce.displayName=k;var xt="MenuAnchor",q=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=W(t);return i.jsx(qe,{...s,...o,ref:n})});q.displayName=xt;var J="MenuPortal",[_t,ve]=R(J,{forceMount:void 0}),Me=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:s}=e,c=E(J,n);return i.jsx(_t,{scope:n,forceMount:t,children:i.jsx(B,{present:t||c.open,children:i.jsx(et,{asChild:!0,container:s,children:o})})})};Me.displayName=J;var x="MenuContent",[Rt,Q]=R(x),ge=r.forwardRef((e,n)=>{const t=ve(x,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=E(x,e.__scopeMenu),l=F(x,e.__scopeMenu);return i.jsx(j.Provider,{scope:e.__scopeMenu,children:i.jsx(B,{present:o||c.open,children:i.jsx(j.Slot,{scope:e.__scopeMenu,children:l.modal?i.jsx(Et,{...s,ref:n}):i.jsx(Pt,{...s,ref:n})})})})}),Et=r.forwardRef((e,n)=>{const t=E(x,e.__scopeMenu),o=r.useRef(null),s=D(n,o);return r.useEffect(()=>{const c=o.current;if(c)return rt(c)},[]),i.jsx(ee,{...e,ref:s,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Pt=r.forwardRef((e,n)=>{const t=E(x,e.__scopeMenu);return i.jsx(ee,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),St=ct("MenuContent.ScrollLock"),ee=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:a,onInteractOutside:h,onDismiss:g,disableOutsideScroll:C,...P}=e,w=E(x,t),S=F(x,t),ke=W(t),Fe=he(t),re=Ct(t),[Le,se]=r.useState(null),L=r.useRef(null),Ke=D(n,L,w.onContentChange),K=r.useRef(0),G=r.useRef(""),Ge=r.useRef(0),X=r.useRef(null),ce=r.useRef("right"),H=r.useRef(0),Ue=C?st:r.Fragment,Ve=C?{as:St,allowPinchZoom:!0}:void 0,Be=u=>{const I=G.current+u,_=re().filter(M=>!M.disabled),b=document.activeElement,$=_.find(M=>M.ref.current===b)?.textValue,z=_.map(M=>M.textValue),ae=Ft(z,I,$),T=_.find(M=>M.textValue===ae)?.ref.current;(function M(ie){G.current=ie,window.clearTimeout(K.current),ie!==""&&(K.current=window.setTimeout(()=>M(""),1e3))})(I),T&&setTimeout(()=>T.focus())};r.useEffect(()=>()=>window.clearTimeout(K.current),[]),$e();const y=r.useCallback(u=>ce.current===X.current?.side&&Kt(u,X.current?.area),[]);return i.jsx(Rt,{scope:t,searchRef:G,onItemEnter:r.useCallback(u=>{y(u)&&u.preventDefault()},[y]),onItemLeave:r.useCallback(u=>{y(u)||(L.current?.focus(),se(null))},[y]),onTriggerLeave:r.useCallback(u=>{y(u)&&u.preventDefault()},[y]),pointerGraceTimerRef:Ge,onPointerGraceIntentChange:r.useCallback(u=>{X.current=u},[]),children:i.jsx(Ue,{...Ve,children:i.jsx(ze,{asChild:!0,trapped:s,onMountAutoFocus:v(c,u=>{u.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:i.jsx(He,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:a,onInteractOutside:h,onDismiss:g,children:i.jsx(ot,{asChild:!0,...Fe,dir:S.dir,orientation:"vertical",loop:o,currentTabStopId:Le,onCurrentTabStopIdChange:se,onEntryFocus:v(m,u=>{S.isUsingKeyboardRef.current||u.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Je,{role:"menu","aria-orientation":"vertical","data-state":Ne(w.open),"data-radix-menu-content":"",dir:S.dir,...ke,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v(P.onKeyDown,u=>{const _=u.target.closest("[data-radix-menu-content]")===u.currentTarget,b=u.ctrlKey||u.altKey||u.metaKey,$=u.key.length===1;_&&(u.key==="Tab"&&u.preventDefault(),!b&&$&&Be(u.key));const z=L.current;if(u.target!==z||!pt.includes(u.key))return;u.preventDefault();const T=re().filter(M=>!M.disabled).map(M=>M.ref.current);me.includes(u.key)&&T.reverse(),Nt(T)}),onBlur:v(e.onBlur,u=>{u.currentTarget.contains(u.target)||(window.clearTimeout(K.current),G.current="")}),onPointerMove:v(e.onPointerMove,O(u=>{const I=u.target,_=H.current!==u.clientX;if(u.currentTarget.contains(I)&&_){const b=u.clientX>H.current?"right":"left";ce.current=b,H.current=u.clientX}}))})})})})})})});ge.displayName=x;var yt="MenuGroup",te=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return i.jsx(N.div,{role:"group",...o,ref:n})});te.displayName=yt;var It="MenuLabel",xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return i.jsx(N.div,{...o,ref:n})});xe.displayName=It;var U="MenuItem",ue="menu.itemSelect",Y=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...s}=e,c=r.useRef(null),l=F(U,e.__scopeMenu),f=Q(U,e.__scopeMenu),m=D(n,c),p=r.useRef(!1),d=()=>{const a=c.current;if(!t&&a){const h=new CustomEvent(ue,{bubbles:!0,cancelable:!0});a.addEventListener(ue,g=>o?.(g),{once:!0}),tt(a,h),h.defaultPrevented?p.current=!1:l.onClose()}};return i.jsx(_e,{...s,ref:m,disabled:t,onClick:v(e.onClick,d),onPointerDown:a=>{e.onPointerDown?.(a),p.current=!0},onPointerUp:v(e.onPointerUp,a=>{p.current||a.currentTarget?.click()}),onKeyDown:v(e.onKeyDown,a=>{const h=f.searchRef.current!=="";t||h&&a.key===" "||Z.includes(a.key)&&(a.currentTarget.click(),a.preventDefault())})})});Y.displayName=U;var _e=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:s,...c}=e,l=Q(U,t),f=he(t),m=r.useRef(null),p=D(n,m),[d,a]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{const C=m.current;C&&g((C.textContent??"").trim())},[c.children]),i.jsx(j.ItemSlot,{scope:t,disabled:o,textValue:s??h,children:i.jsx(nt,{asChild:!0,...f,focusable:!o,children:i.jsx(N.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:p,onPointerMove:v(e.onPointerMove,O(C=>{o?l.onItemLeave(C):(l.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v(e.onPointerLeave,O(C=>l.onItemLeave(C))),onFocus:v(e.onFocus,()=>a(!0)),onBlur:v(e.onBlur,()=>a(!1))})})})}),wt="MenuCheckboxItem",Re=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...s}=e;return i.jsx(Ie,{scope:e.__scopeMenu,checked:t,children:i.jsx(Y,{role:"menuitemcheckbox","aria-checked":V(t)?"mixed":t,...s,ref:n,"data-state":oe(t),onSelect:v(s.onSelect,()=>o?.(V(t)?!0:!t),{checkForDefaultPrevented:!1})})})});Re.displayName=wt;var Ee="MenuRadioGroup",[bt,Tt]=R(Ee,{value:void 0,onValueChange:()=>{}}),Pe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...s}=e,c=pe(o);return i.jsx(bt,{scope:e.__scopeMenu,value:t,onValueChange:c,children:i.jsx(te,{...s,ref:n})})});Pe.displayName=Ee;var Se="MenuRadioItem",ye=r.forwardRef((e,n)=>{const{value:t,...o}=e,s=Tt(Se,e.__scopeMenu),c=t===s.value;return i.jsx(Ie,{scope:e.__scopeMenu,checked:c,children:i.jsx(Y,{role:"menuitemradio","aria-checked":c,...o,ref:n,"data-state":oe(c),onSelect:v(o.onSelect,()=>s.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});ye.displayName=Se;var ne="MenuItemIndicator",[Ie,At]=R(ne,{checked:!1}),we=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...s}=e,c=At(ne,t);return i.jsx(B,{present:o||V(c.checked)||c.checked===!0,children:i.jsx(N.span,{...s,ref:n,"data-state":oe(c.checked)})})});we.displayName=ne;var jt="MenuSeparator",be=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return i.jsx(N.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});be.displayName=jt;var Ot="MenuArrow",Te=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=W(t);return i.jsx(Qe,{...s,...o,ref:n})});Te.displayName=Ot;var Dt="MenuSub",[rn,Ae]=R(Dt),A="MenuSubTrigger",je=r.forwardRef((e,n)=>{const t=E(A,e.__scopeMenu),o=F(A,e.__scopeMenu),s=Ae(A,e.__scopeMenu),c=Q(A,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:m}=c,p={__scopeMenu:e.__scopeMenu},d=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>d,[d]),r.useEffect(()=>{const a=f.current;return()=>{window.clearTimeout(a),m(null)}},[f,m]),i.jsx(q,{asChild:!0,...p,children:i.jsx(_e,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":s.contentId,"data-state":Ne(t.open),...e,ref:le(n,s.onTriggerChange),onClick:a=>{e.onClick?.(a),!(e.disabled||a.defaultPrevented)&&(a.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v(e.onPointerMove,O(a=>{c.onItemEnter(a),!a.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),d()},100))})),onPointerLeave:v(e.onPointerLeave,O(a=>{d();const h=t.content?.getBoundingClientRect();if(h){const g=t.content?.dataset.side,C=g==="right",P=C?-5:5,w=h[C?"left":"right"],S=h[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:a.clientX+P,y:a.clientY},{x:w,y:h.top},{x:S,y:h.top},{x:S,y:h.bottom},{x:w,y:h.bottom}],side:g}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(a),a.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:v(e.onKeyDown,a=>{const h=c.searchRef.current!=="";e.disabled||h&&a.key===" "||mt[o.dir].includes(a.key)&&(t.onOpenChange(!0),t.content?.focus(),a.preventDefault())})})})});je.displayName=A;var Oe="MenuSubContent",De=r.forwardRef((e,n)=>{const t=ve(x,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=E(x,e.__scopeMenu),l=F(x,e.__scopeMenu),f=Ae(Oe,e.__scopeMenu),m=r.useRef(null),p=D(n,m);return i.jsx(j.Provider,{scope:e.__scopeMenu,children:i.jsx(B,{present:o||c.open,children:i.jsx(j.Slot,{scope:e.__scopeMenu,children:i.jsx(ee,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&m.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:v(e.onFocusOutside,d=>{d.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:v(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:v(e.onKeyDown,d=>{const a=d.currentTarget.contains(d.target),h=ht[l.dir].includes(d.key);a&&h&&(c.onOpenChange(!1),f.trigger?.focus(),d.preventDefault())})})})})})});De.displayName=Oe;function Ne(e){return e?"open":"closed"}function V(e){return e==="indeterminate"}function oe(e){return V(e)?"indeterminate":e?"checked":"unchecked"}function Nt(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function kt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function Ft(e,n,t){const s=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,c=t?e.indexOf(t):-1;let l=kt(e,Math.max(c,0));s.length===1&&(l=l.filter(p=>p!==t));const m=l.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return m!==t?m:void 0}function Lt(e,n){const{x:t,y:o}=e;let s=!1;for(let c=0,l=n.length-1;c<n.length;l=c++){const f=n[c],m=n[l],p=f.x,d=f.y,a=m.x,h=m.y;d>o!=h>o&&t<(a-p)*(o-d)/(h-d)+p&&(s=!s)}return s}function Kt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Lt(t,n)}function O(e){return n=>n.pointerType==="mouse"?e(n):void 0}var sn=Ce,cn=q,an=Me,un=ge,ln=te,dn=xe,fn=Y,pn=Re,mn=Pe,hn=ye,Cn=we,vn=be,Mn=Te,gn=je,xn=De;export{cn as A,pn as C,ln as G,fn as I,dn as L,an as P,mn as R,vn as S,Mn as a,un as b,Cn as c,hn as d,sn as e,xn as f,gn as g,on as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as p,j as f}from"./vendor-react-gJPiVnX5.js";import{u as fe,o as me,s as he,f as ue,b as ge,a as we,h as xe,l as Pe}from"./vendor-floating-ui-react-dom-Bas3975S.js";import{R as ye}from"./vendor-radix-ui-react-arrow-DMHj2mKI.js";import{u as z}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{a as Ae}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{P as I}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u as ve}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";import{u as W}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";import{u as Ce}from"./vendor-radix-ui-react-use-size-CXS04sct.js";import{b as Se}from"./vendor-floating-ui-dom-BxK0hn2R.js";var b="Popper",[Y,Fe]=Ae(b),[be,M]=Y(b),X=e=>{const{__scopePopper:i,children:n}=e,[s,a]=p.useState(null);return f.jsx(be,{scope:i,anchor:s,onAnchorChange:a,children:n})};X.displayName=b;var D="PopperAnchor",F=p.forwardRef((e,i)=>{const{__scopePopper:n,virtualRef:s,...a}=e,t=M(D,n),r=p.useRef(null),u=z(i,r),o=p.useRef(null);return p.useEffect(()=>{const c=o.current;o.current=s?.current||r.current,c!==o.current&&t.onAnchorChange(o.current)}),s?null:f.jsx(I.div,{...a,ref:u})});F.displayName=D;var R="PopperContent",[Re,Oe]=Y(R),k=p.forwardRef((e,i)=>{const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:t="center",alignOffset:r=0,arrowPadding:u=0,avoidCollisions:o=!0,collisionBoundary:c=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:x=!1,updatePositionStrategy:P="optimized",onPlaced:d,...l}=e,L=M(R,n),[C,U]=p.useState(null),q=z(i,w=>U(w)),[S,G]=p.useState(null),O=Ce(S),J=O?.width??0,E=O?.height??0,K=s+(t!=="center"?"-"+t:""),Q=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(c)?c:[c],V=N.length>0,y={padding:Q,boundary:N.filter(Ne),altBoundary:V},{refs:ee,floatingStyles:_,placement:te,isPositioned:A,middlewareData:h}=fe({strategy:"fixed",placement:K,whileElementsMounted:(...w)=>Se(...w,{animationFrame:P==="always"}),elements:{reference:L.anchor},middleware:[me({mainAxis:a+E,alignmentAxis:r}),o&&he({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Pe():void 0,...y}),o&&ue({...y}),ge({...y,apply:({elements:w,rects:H,availableWidth:ce,availableHeight:pe})=>{const{width:le,height:de}=H.reference,v=w.floating.style;v.setProperty("--radix-popper-available-width",`${ce}px`),v.setProperty("--radix-popper-available-height",`${pe}px`),v.setProperty("--radix-popper-anchor-width",`${le}px`),v.setProperty("--radix-popper-anchor-height",`${de}px`)}}),S&&we({element:S,padding:u}),_e({arrowWidth:J,arrowHeight:E}),x&&xe({strategy:"referenceHidden",...y})]}),[$,re]=Z(te),j=ve(d);W(()=>{A&&j?.()},[A,j]);const oe=h.arrow?.x,ne=h.arrow?.y,ae=h.arrow?.centerOffset!==0,[ie,se]=p.useState();return W(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),f.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:A?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[h.transformOrigin?.x,h.transformOrigin?.y].join(" "),...h.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(Re,{scope:n,placedSide:$,onArrowChange:G,arrowX:oe,arrowY:ne,shouldHideArrow:ae,children:f.jsx(I.div,{"data-side":$,"data-align":re,...l,ref:q,style:{...l.style,animation:A?void 0:"none"}})})})});k.displayName=R;var B="PopperArrow",Ee={top:"bottom",right:"left",bottom:"top",left:"right"},T=p.forwardRef(function(i,n){const{__scopePopper:s,...a}=i,t=Oe(B,s),r=Ee[t.placedSide];return f.jsx("span",{ref:t.onArrowChange,style:{position:"absolute",left:t.arrowX,top:t.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[t.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[t.placedSide],visibility:t.shouldHideArrow?"hidden":void 0},children:f.jsx(ye,{...a,ref:n,style:{...a.style,display:"block"}})})});T.displayName=B;function Ne(e){return e!==null}var _e=e=>({name:"transformOrigin",options:e,fn(i){const{placement:n,rects:s,middlewareData:a}=i,r=a.arrow?.centerOffset!==0,u=r?0:e.arrowWidth,o=r?0:e.arrowHeight,[c,g]=Z(n),m={start:"0%",center:"50%",end:"100%"}[g],x=(a.arrow?.x??0)+u/2,P=(a.arrow?.y??0)+o/2;let d="",l="";return c==="bottom"?(d=r?m:`${x}px`,l=`${-o}px`):c==="top"?(d=r?m:`${x}px`,l=`${s.floating.height+o}px`):c==="right"?(d=`${-o}px`,l=r?m:`${P}px`):c==="left"&&(d=`${s.floating.width+o}px`,l=r?m:`${P}px`),{data:{x:d,y:l}}}});function Z(e){const[i,n="center"]=e.split("-");return[i,n]}var ke=X,Be=F,Te=k,Ze=T;export{Be as A,Te as C,ke as R,Ze as a,Fe as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,j as m}from"./vendor-react-gJPiVnX5.js";import{R as c}from"./vendor-react-dom-BnNs-kzm.js";import{P as p}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";var f="Portal",l=t.forwardRef((o,a)=>{const{container:e,...s}=o,[n,i]=t.useState(!1);u(()=>i(!0),[]);const r=e||n&&globalThis?.document?.body;return r?c.createPortal(m.jsx(p.div,{...s,ref:a}),r):null});l.displayName=f;export{l as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i}from"./vendor-react-gJPiVnX5.js";import{u as y}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{u as A}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";function E(n,e){return i.useReducer((t,r)=>e[t][r]??t,n)}var T=n=>{const{present:e,children:t}=n,r=P(e),a=typeof t=="function"?t({present:r.isPresent}):i.Children.only(t),c=y(r.ref,R(a));return typeof t=="function"||r.isPresent?i.cloneElement(a,{ref:c}):null};T.displayName="Presence";function P(n){const[e,t]=i.useState(),r=i.useRef(null),a=i.useRef(n),c=i.useRef("none"),p=n?"mounted":"unmounted",[N,s]=E(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const o=l(r.current);c.current=N==="mounted"?o:"none"},[N]),A(()=>{const o=r.current,m=a.current;if(m!==n){const f=c.current,u=l(o);n?s("MOUNT"):u==="none"||o?.display==="none"?s("UNMOUNT"):s(m&&f!==u?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),A(()=>{if(e){let o;const m=e.ownerDocument.defaultView??window,d=u=>{const g=l(r.current).includes(CSS.escape(u.animationName));if(u.target===e&&g&&(s("ANIMATION_END"),!a.current)){const O=e.style.animationFillMode;e.style.animationFillMode="forwards",o=m.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=O)})}},f=u=>{u.target===e&&(c.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{m.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:i.useCallback(o=>{r.current=o?getComputedStyle(o):null,t(o)},[])}}function l(n){return n?.animationName||"none"}function R(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}export{T as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as f}from"./vendor-react-gJPiVnX5.js";import{r as m}from"./vendor-react-dom-BnNs-kzm.js";import{c as y}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";function E(r){const e=h(r),o=i.forwardRef((n,t)=>{const{children:s,...a}=n,l=i.Children.toArray(s),c=l.find(S);if(c){const p=c.props.children,d=l.map(u=>u===c?i.Children.count(p)>1?i.Children.only(null):i.isValidElement(p)?p.props.children:null:u);return f.jsx(e,{...a,ref:t,children:i.isValidElement(p)?i.cloneElement(p,void 0,d):null})}return f.jsx(e,{...a,ref:t,children:s})});return o.displayName=`${r}.Slot`,o}function h(r){const e=i.forwardRef((o,n)=>{const{children:t,...s}=o;if(i.isValidElement(t)){const a=g(t),l=C(s,t.props);return t.type!==i.Fragment&&(l.ref=n?y(n,a):a),i.cloneElement(t,l)}return i.Children.count(t)>1?i.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var v=Symbol("radix.slottable");function S(r){return i.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===v}function C(r,e){const o={...e};for(const n in e){const t=r[n],s=e[n];/^on[A-Z]/.test(n)?t&&s?o[n]=(...l)=>{const c=s(...l);return t(...l),c}:t&&(o[n]=t):n==="style"?o[n]={...t,...s}:n==="className"&&(o[n]=[t,s].filter(Boolean).join(" "))}return{...r,...o}}function g(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=e&&"isReactWarning"in e&&e.isReactWarning;return o?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=e&&"isReactWarning"in e&&e.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=x.reduce((r,e)=>{const o=E(`Primitive.${e}`),n=i.forwardRef((t,s)=>{const{asChild:a,...l}=t,c=a?o:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...l,ref:s})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{});function w(r,e){r&&m.flushSync(()=>r.dispatchEvent(e))}export{j as P,w as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,j as d}from"./vendor-react-gJPiVnX5.js";import{c as p}from"./vendor-radix-ui-primitive-Dc_FVRD7.js";import{c as H}from"./vendor-radix-ui-react-collection-D9KtqmHm.js";import{u as V}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";import{a as z}from"./vendor-radix-ui-react-context-CAqqn5Nx.js";import{u as q}from"./vendor-radix-ui-react-id-bpga_rLa.js";import{P as G}from"./vendor-radix-ui-react-primitive-zTHwXNoz.js";import{u as J}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";import{u as Q}from"./vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js";import{u as W}from"./vendor-radix-ui-react-direction-DxZwNuei.js";var _="rovingFocusGroup.onEntryFocus",X={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[y,N,Z]=H(I),[$,Fe]=z(I,[Z]),[ee,oe]=$(I),O=s.forwardRef((e,r)=>d.jsx(y.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(y.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(te,{...e,ref:r})})}));O.displayName=I;var te=s.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:T=!1,dir:w,currentTabStopId:v,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:m,preventScrollOnEntryFocus:a=!1,...b}=e,F=s.useRef(null),g=V(r,F),R=W(w),[E,t]=Q({prop:v,defaultProp:C??null,onChange:S,caller:I}),[i,x]=s.useState(!1),u=J(m),l=N(c),h=s.useRef(!1),[k,P]=s.useState(0);return s.useEffect(()=>{const n=F.current;if(n)return n.addEventListener(_,u),()=>n.removeEventListener(_,u)},[u]),d.jsx(ee,{scope:c,orientation:o,dir:R,loop:T,currentTabStopId:E,onItemFocus:s.useCallback(n=>t(n),[t]),onItemShiftTab:s.useCallback(()=>x(!0),[]),onFocusableItemAdd:s.useCallback(()=>P(n=>n+1),[]),onFocusableItemRemove:s.useCallback(()=>P(n=>n-1),[]),children:d.jsx(G.div,{tabIndex:i||k===0?-1:0,"data-orientation":o,...b,ref:g,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{h.current=!0}),onFocus:p(e.onFocus,n=>{const L=!h.current;if(n.target===n.currentTarget&&L&&!i){const D=new CustomEvent(_,X);if(n.currentTarget.dispatchEvent(D),!D.defaultPrevented){const A=l().filter(f=>f.focusable),U=A.find(f=>f.active),B=A.find(f=>f.id===E),Y=[U,B,...A].filter(Boolean).map(f=>f.ref.current);M(Y,a)}}h.current=!1}),onBlur:p(e.onBlur,()=>x(!1))})})}),K="RovingFocusGroupItem",j=s.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:T=!1,tabStopId:w,children:v,...C}=e,S=q(),m=w||S,a=oe(K,c),b=a.currentTabStopId===m,F=N(c),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:E}=a;return s.useEffect(()=>{if(o)return g(),()=>R()},[o,g,R]),d.jsx(y.ItemSlot,{scope:c,id:m,focusable:o,active:T,children:d.jsx(G.span,{tabIndex:b?0:-1,"data-orientation":a.orientation,...C,ref:r,onMouseDown:p(e.onMouseDown,t=>{o?a.onItemFocus(m):t.preventDefault()}),onFocus:p(e.onFocus,()=>a.onItemFocus(m)),onKeyDown:p(e.onKeyDown,t=>{if(t.key==="Tab"&&t.shiftKey){a.onItemShiftTab();return}if(t.target!==t.currentTarget)return;const i=se(t,a.orientation,a.dir);if(i!==void 0){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;t.preventDefault();let u=F().filter(l=>l.focusable).map(l=>l.ref.current);if(i==="last")u.reverse();else if(i==="prev"||i==="next"){i==="prev"&&u.reverse();const l=u.indexOf(t.currentTarget);u=a.loop?ce(u,l+1):u.slice(l+1)}setTimeout(()=>M(u))}}),children:typeof v=="function"?v({isCurrentTabStop:b,hasTabStop:E!=null}):v})})});j.displayName=K;var re={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ne(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function se(e,r,c){const o=ne(e.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return re[o]}function M(e,r=!1){const c=document.activeElement;for(const o of e)if(o===c||(o.focus({preventScroll:r}),document.activeElement!==c))return}function ce(e,r){return e.map((c,o)=>e[(r+o)%e.length])}var ge=O,Re=j;export{Re as I,ge as R,Fe as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as y,a as E}from"./vendor-react-gJPiVnX5.js";import{c as S}from"./vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js";var g=Symbol.for("react.lazy"),p=E[" use ".trim().toString()];function C(t){return typeof t=="object"&&t!==null&&"then"in t}function d(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===g&&"_payload"in t&&C(t._payload)}function R(t){const n=_(t),e=i.forwardRef((o,r)=>{let{children:l,...a}=o;d(l)&&typeof p=="function"&&(l=p(l._payload));const s=i.Children.toArray(l),c=s.find(h);if(c){const f=c.props.children,m=s.map(u=>u===c?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:u);return y.jsx(n,{...a,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,m):null})}return y.jsx(n,{...a,ref:r,children:l})});return e.displayName=`${t}.Slot`,e}var V=R("Slot");function _(t){const n=i.forwardRef((e,o)=>{let{children:r,...l}=e;if(d(r)&&typeof p=="function"&&(r=p(r._payload)),i.isValidElement(r)){const a=x(r),s=j(l,r.props);return r.type!==i.Fragment&&(s.ref=o?S(o,a):a),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var b=Symbol("radix.slottable");function h(t){return i.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===b}function j(t,n){const e={...n};for(const o in n){const r=t[o],l=n[o];/^on[A-Z]/.test(o)?r&&l?e[o]=(...s)=>{const c=l(...s);return r(...s),c}:r&&(e[o]=r):o==="style"?e[o]={...r,...l}:o==="className"&&(e[o]=[r,l].filter(Boolean).join(" "))}return{...t,...e}}function x(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?t.props.ref:t.props.ref||t.ref)}export{V as S,R as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./vendor-react-gJPiVnX5.js";function c(r){const t=e.useRef(r);return e.useEffect(()=>{t.current=r}),e.useMemo(()=>(...u)=>t.current?.(...u),[])}export{c as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,a as m}from"./vendor-react-gJPiVnX5.js";import{u as v}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";var R=m[" useInsertionEffect ".trim().toString()]||v;function b({prop:e,defaultProp:s,onChange:t=()=>{},caller:f}){const[u,c,i]=C({defaultProp:s,onChange:t}),o=e!==void 0,a=o?e:u;{const n=r.useRef(e!==void 0);r.useEffect(()=>{const l=n.current;l!==o&&console.warn(`${f} is changing from ${l?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=o},[o,f])}const d=r.useCallback(n=>{if(o){const l=E(n)?n(e):n;l!==e&&i.current?.(l)}else c(n)},[o,e,c,i]);return[a,d]}function C({defaultProp:e,onChange:s}){const[t,f]=r.useState(e),u=r.useRef(t),c=r.useRef(s);return R(()=>{c.current=s},[s]),r.useEffect(()=>{u.current!==t&&(c.current?.(t),u.current=t)},[t,u]),[t,f,c]}function E(e){return typeof e=="function"}export{b as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./vendor-react-gJPiVnX5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"./vendor-react-gJPiVnX5.js";import{u as n}from"./vendor-radix-ui-react-use-callback-ref-E91aPc6s.js";function p(a,e=globalThis?.document){const t=n(a);o.useEffect(()=>{const r=s=>{s.key==="Escape"&&t(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}export{p as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r}from"./vendor-use-sync-external-store-ZvKHXaIn.js";function t(){return r.useSyncExternalStore(e,()=>!0,()=>!1)}function e(){return()=>{}}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./vendor-react-gJPiVnX5.js";var a=globalThis?.document?t.useLayoutEffect:()=>{};export{a as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as h}from"./vendor-react-gJPiVnX5.js";import{u as z}from"./vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js";function c(r){const[d,e]=h.useState(void 0);return z(()=>{if(r){e({width:r.offsetWidth,height:r.offsetHeight});const f=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const b=i[0];let o,t;if("borderBoxSize"in b){const s=b.borderBoxSize,u=Array.isArray(s)?s[0]:s;o=u.inlineSize,t=u.blockSize}else o=r.offsetWidth,t=r.offsetHeight;e({width:o,height:t})});return f.observe(r,{box:"border-box"}),()=>f.unobserve(r)}else e(void 0)},[r]),d}export{c as u};
|