libre-webui 0.36.0 → 0.37.1
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/README.md +59 -0
- package/backend/dist/cordis/contracts.d.ts +270 -0
- package/backend/dist/cordis/contracts.d.ts.map +1 -0
- package/backend/dist/cordis/contracts.js +32 -0
- package/backend/dist/cordis/contracts.js.map +1 -0
- package/backend/dist/cordis/dsh/chat-model.d.ts +16 -0
- package/backend/dist/cordis/dsh/chat-model.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/chat-model.js +104 -0
- package/backend/dist/cordis/dsh/chat-model.js.map +1 -0
- package/backend/dist/cordis/dsh/engine-plugin.d.ts +186 -0
- package/backend/dist/cordis/dsh/engine-plugin.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/engine-plugin.js +1116 -0
- package/backend/dist/cordis/dsh/engine-plugin.js.map +1 -0
- package/backend/dist/cordis/dsh/librewebui-llm-adapter.d.ts +175 -0
- package/backend/dist/cordis/dsh/librewebui-llm-adapter.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/librewebui-llm-adapter.js +480 -0
- package/backend/dist/cordis/dsh/librewebui-llm-adapter.js.map +1 -0
- package/backend/dist/cordis/dsh/model-identity.d.ts +12 -0
- package/backend/dist/cordis/dsh/model-identity.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/model-identity.js +87 -0
- package/backend/dist/cordis/dsh/model-identity.js.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-client.d.ts +44 -0
- package/backend/dist/cordis/dsh/native-provider-client.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-client.js +524 -0
- package/backend/dist/cordis/dsh/native-provider-client.js.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-plugin.d.ts +11 -0
- package/backend/dist/cordis/dsh/native-provider-plugin.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-plugin.js +416 -0
- package/backend/dist/cordis/dsh/native-provider-plugin.js.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-protocol.d.ts +37 -0
- package/backend/dist/cordis/dsh/native-provider-protocol.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/native-provider-protocol.js +325 -0
- package/backend/dist/cordis/dsh/native-provider-protocol.js.map +1 -0
- package/backend/dist/cordis/dsh/provider-handler.d.ts +36 -0
- package/backend/dist/cordis/dsh/provider-handler.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/provider-handler.js +582 -0
- package/backend/dist/cordis/dsh/provider-handler.js.map +1 -0
- package/backend/dist/cordis/dsh/session-files.d.ts +9 -0
- package/backend/dist/cordis/dsh/session-files.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/session-files.js +60 -0
- package/backend/dist/cordis/dsh/session-files.js.map +1 -0
- package/backend/dist/cordis/dsh/session-settings.d.ts +15 -0
- package/backend/dist/cordis/dsh/session-settings.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/session-settings.js +51 -0
- package/backend/dist/cordis/dsh/session-settings.js.map +1 -0
- package/backend/dist/cordis/dsh/work-driver.d.ts +12 -0
- package/backend/dist/cordis/dsh/work-driver.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/work-driver.js +402 -0
- package/backend/dist/cordis/dsh/work-driver.js.map +1 -0
- package/backend/dist/cordis/dsh/workspace-policy.d.ts +10 -0
- package/backend/dist/cordis/dsh/workspace-policy.d.ts.map +1 -0
- package/backend/dist/cordis/dsh/workspace-policy.js +44 -0
- package/backend/dist/cordis/dsh/workspace-policy.js.map +1 -0
- package/backend/dist/cordis/host/composition.d.ts +73 -0
- package/backend/dist/cordis/host/composition.d.ts.map +1 -0
- package/backend/dist/cordis/host/composition.js +205 -0
- package/backend/dist/cordis/host/composition.js.map +1 -0
- package/backend/dist/cordis/host/config.d.ts +159 -0
- package/backend/dist/cordis/host/config.d.ts.map +1 -0
- package/backend/dist/cordis/host/config.js +184 -0
- package/backend/dist/cordis/host/config.js.map +1 -0
- package/backend/dist/cordis/host/host.d.ts +74 -0
- package/backend/dist/cordis/host/host.d.ts.map +1 -0
- package/backend/dist/cordis/host/host.js +420 -0
- package/backend/dist/cordis/host/host.js.map +1 -0
- package/backend/dist/cordis/host/loader-entry.d.ts +41 -0
- package/backend/dist/cordis/host/loader-entry.d.ts.map +1 -0
- package/backend/dist/cordis/host/loader-entry.js +52 -0
- package/backend/dist/cordis/host/loader-entry.js.map +1 -0
- package/backend/dist/cordis/host/model.d.ts +45 -0
- package/backend/dist/cordis/host/model.d.ts.map +1 -0
- package/backend/dist/cordis/host/model.js +54 -0
- package/backend/dist/cordis/host/model.js.map +1 -0
- package/backend/dist/cordis/host/privacy.d.ts +8 -0
- package/backend/dist/cordis/host/privacy.d.ts.map +1 -0
- package/backend/dist/cordis/host/privacy.js +73 -0
- package/backend/dist/cordis/host/privacy.js.map +1 -0
- package/backend/dist/cordis/index.d.ts +14 -0
- package/backend/dist/cordis/index.d.ts.map +1 -0
- package/backend/dist/cordis/index.js +30 -0
- package/backend/dist/cordis/index.js.map +1 -0
- package/backend/dist/cordis/runtime.d.ts +97 -0
- package/backend/dist/cordis/runtime.d.ts.map +1 -0
- package/backend/dist/cordis/runtime.js +231 -0
- package/backend/dist/cordis/runtime.js.map +1 -0
- package/backend/dist/cordis/work-model.d.ts +7 -0
- package/backend/dist/cordis/work-model.d.ts.map +1 -0
- package/backend/dist/cordis/work-model.js +30 -0
- package/backend/dist/cordis/work-model.js.map +1 -0
- package/backend/dist/db.js +1 -1
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +9 -0
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/main.js +12 -0
- package/backend/dist/main.js.map +1 -1
- package/backend/dist/persistence/extensionTypes.d.ts +2 -0
- package/backend/dist/persistence/extensionTypes.d.ts.map +1 -1
- package/backend/dist/persistence/extensionTypes.js.map +1 -1
- package/backend/dist/persistence/postgresExtensionRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/postgresExtensionRepositories.js +38 -0
- package/backend/dist/persistence/postgresExtensionRepositories.js.map +1 -1
- package/backend/dist/persistence/postgresResourceRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/postgresResourceRepositories.js +6 -1
- package/backend/dist/persistence/postgresResourceRepositories.js.map +1 -1
- package/backend/dist/persistence/resourceTypes.d.ts +3 -1
- package/backend/dist/persistence/resourceTypes.d.ts.map +1 -1
- package/backend/dist/persistence/resourceTypes.js.map +1 -1
- package/backend/dist/persistence/sqliteExtensionRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/sqliteExtensionRepositories.js +40 -0
- package/backend/dist/persistence/sqliteExtensionRepositories.js.map +1 -1
- package/backend/dist/persistence/sqliteResourceRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/sqliteResourceRepositories.js +7 -1
- package/backend/dist/persistence/sqliteResourceRepositories.js.map +1 -1
- package/backend/dist/routes/agentCli.d.ts.map +1 -1
- package/backend/dist/routes/agentCli.js +34 -2
- package/backend/dist/routes/agentCli.js.map +1 -1
- package/backend/dist/routes/chat.d.ts.map +1 -1
- package/backend/dist/routes/chat.js +9 -1
- package/backend/dist/routes/chat.js.map +1 -1
- package/backend/dist/routes/cordis.d.ts +3 -0
- package/backend/dist/routes/cordis.d.ts.map +1 -0
- package/backend/dist/routes/cordis.js +440 -0
- package/backend/dist/routes/cordis.js.map +1 -0
- package/backend/dist/routes/libreClaw.js +1 -1
- package/backend/dist/routes/libreClaw.js.map +1 -1
- package/backend/dist/routes/work.d.ts.map +1 -1
- package/backend/dist/routes/work.js +23 -8
- package/backend/dist/routes/work.js.map +1 -1
- package/backend/dist/services/agentAccessService.d.ts +4 -0
- package/backend/dist/services/agentAccessService.d.ts.map +1 -1
- package/backend/dist/services/agentAccessService.js +48 -16
- package/backend/dist/services/agentAccessService.js.map +1 -1
- package/backend/dist/services/agentCliService.d.ts +42 -1
- package/backend/dist/services/agentCliService.d.ts.map +1 -1
- package/backend/dist/services/agentCliService.js +206 -7
- package/backend/dist/services/agentCliService.js.map +1 -1
- package/backend/dist/services/agentCliUsage.d.ts +22 -0
- package/backend/dist/services/agentCliUsage.d.ts.map +1 -0
- package/backend/dist/services/agentCliUsage.js +192 -0
- package/backend/dist/services/agentCliUsage.js.map +1 -0
- package/backend/dist/services/authService.d.ts +3 -0
- package/backend/dist/services/authService.d.ts.map +1 -1
- package/backend/dist/services/authService.js +4 -1
- package/backend/dist/services/authService.js.map +1 -1
- package/backend/dist/services/chatGenerationService.d.ts +7 -0
- package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/chatGenerationService.js +32 -1
- package/backend/dist/services/chatGenerationService.js.map +1 -1
- package/backend/dist/services/cordisAccessService.d.ts +56 -0
- package/backend/dist/services/cordisAccessService.d.ts.map +1 -0
- package/backend/dist/services/cordisAccessService.js +98 -0
- package/backend/dist/services/cordisAccessService.js.map +1 -0
- package/backend/dist/services/durableChatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/durableChatGenerationService.js +9 -1
- package/backend/dist/services/durableChatGenerationService.js.map +1 -1
- package/backend/dist/services/emailService.d.ts.map +1 -1
- package/backend/dist/services/emailService.js +8 -1
- package/backend/dist/services/emailService.js.map +1 -1
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +7 -26
- package/backend/dist/services/pluginService.js.map +1 -1
- package/backend/dist/services/pluginUsageService.d.ts +52 -0
- package/backend/dist/services/pluginUsageService.d.ts.map +1 -1
- package/backend/dist/services/pluginUsageService.js +89 -1
- package/backend/dist/services/pluginUsageService.js.map +1 -1
- package/backend/dist/services/systemSettingsService.d.ts +1 -1
- package/backend/dist/services/systemSettingsService.d.ts.map +1 -1
- package/backend/dist/services/systemSettingsService.js +1 -1
- package/backend/dist/services/systemSettingsService.js.map +1 -1
- package/backend/dist/services/thinkingSummaryService.d.ts +3 -0
- package/backend/dist/services/thinkingSummaryService.d.ts.map +1 -1
- package/backend/dist/services/thinkingSummaryService.js +56 -17
- package/backend/dist/services/thinkingSummaryService.js.map +1 -1
- package/backend/dist/services/titleGenerationService.d.ts +22 -2
- package/backend/dist/services/titleGenerationService.d.ts.map +1 -1
- package/backend/dist/services/titleGenerationService.js +63 -8
- package/backend/dist/services/titleGenerationService.js.map +1 -1
- package/backend/dist/services/workAgentService.d.ts +1 -1
- package/backend/dist/services/workAgentService.d.ts.map +1 -1
- package/backend/dist/services/workAgentService.js +76 -12
- package/backend/dist/services/workAgentService.js.map +1 -1
- package/backend/dist/services/workModelProviderService.d.ts +5 -0
- package/backend/dist/services/workModelProviderService.d.ts.map +1 -1
- package/backend/dist/services/workModelProviderService.js +52 -3
- package/backend/dist/services/workModelProviderService.js.map +1 -1
- package/backend/dist/services/workRuntimeService.d.ts.map +1 -1
- package/backend/dist/services/workRuntimeService.js +4 -1
- package/backend/dist/services/workRuntimeService.js.map +1 -1
- package/backend/dist/services/workTaskService.d.ts.map +1 -1
- package/backend/dist/services/workTaskService.js +6 -6
- package/backend/dist/services/workTaskService.js.map +1 -1
- package/backend/dist/types/work.d.ts +12 -1
- package/backend/dist/types/work.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreamAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreamAdapter.js +18 -4
- package/backend/dist/utils/pluginStreamAdapter.js.map +1 -1
- package/backend/dist/utils/pluginStreaming.d.ts +6 -0
- package/backend/dist/utils/pluginStreaming.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreaming.js +10 -0
- package/backend/dist/utils/pluginStreaming.js.map +1 -1
- package/backend/dist/utils/smtpClient.d.ts +5 -1
- package/backend/dist/utils/smtpClient.d.ts.map +1 -1
- package/backend/dist/utils/smtpClient.js +29 -3
- package/backend/dist/utils/smtpClient.js.map +1 -1
- package/backend/dist/websocketServer.d.ts.map +1 -1
- package/backend/dist/websocketServer.js +4 -0
- package/backend/dist/websocketServer.js.map +1 -1
- package/backend/package.json +37 -2
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/artifact-runtime/framer-motion.js +3 -3
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
- package/frontend/dist/artifact-runtime/react.js +5 -5
- package/frontend/dist/artifact-runtime/recharts.js +45 -45
- package/frontend/dist/assets/index-BrDSO609.js +20 -0
- package/frontend/dist/assets/index-C8_AByBq.css +1 -0
- package/frontend/dist/index.html +33 -31
- package/frontend/dist/js/{ArtifactContainer-B8tyPtWd.js → ArtifactContainer-B1-GVzVf.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-BwRfWoSK.js → ArtifactDemoPage-goftRHdk.js} +1 -1
- package/frontend/dist/js/{ArtifactSandboxFrame-Ctcwt_l2.js → ArtifactSandboxFrame-_8RA8_JV.js} +1 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-DlkOZI5N.js +1 -0
- package/frontend/dist/js/{AutomationModal-mTYs9LrJ.js → AutomationModal-BaaxZF1M.js} +1 -1
- package/frontend/dist/js/AutomationsPage-DY2x7zVm.js +1 -0
- package/frontend/dist/js/{AvatarUpload-wWUAi3e2.js → AvatarUpload-CH_n1Ef0.js} +1 -1
- package/frontend/dist/js/{Button-ZQ6BePid.js → Button-CGMYia4g.js} +1 -1
- package/frontend/dist/js/{CalendarPage-Ch4racU2.js → CalendarPage-DLo5nm3Q.js} +1 -1
- package/frontend/dist/js/ChannelsPage-DnQI7mzq.js +1 -0
- package/frontend/dist/js/ChatPage-BaDkJnEC.js +14 -0
- package/frontend/dist/js/ConnectModels-B4dGb5yc.js +1 -0
- package/frontend/dist/js/CordisPage-CPiYn2Bx.js +1 -0
- package/frontend/dist/js/{EvaluationsPage-DHPnNBkW.js → EvaluationsPage-DpdGpd7x.js} +2 -2
- package/frontend/dist/js/{FirstTimeSetup-CoF83yY8.js → FirstTimeSetup-By8OE1JS.js} +1 -1
- package/frontend/dist/js/GalleryPage-ByZyIhZQ.js +1 -0
- package/frontend/dist/js/HomePage-Btc-Mvin.js +1 -0
- package/frontend/dist/js/{LanguageSwitcher-CogfczNm.js → LanguageSwitcher-B3CxRW6J.js} +1 -1
- package/frontend/dist/js/LibreClawPage-3Sonm1gu.js +1 -0
- package/frontend/dist/js/{Logo-C9fsEUaY.js → Logo-HZvdAk2c.js} +1 -1
- package/frontend/dist/js/{LogoMark-Cvu5CQOW.js → LogoMark-GJnfMXsk.js} +1 -1
- package/frontend/dist/js/{ModelManagerModals-Bc2Woor7.js → ModelManagerModals-Bk6OQzJI.js} +1 -1
- package/frontend/dist/js/NotesPage-lFhfjMqJ.js +3 -0
- package/frontend/dist/js/{OptimizedSyntaxHighlighter-aKWyHj_c.js → OptimizedSyntaxHighlighter-CzzV6ONG.js} +1 -1
- package/frontend/dist/js/OptimizedSyntaxHighlighter-ajqwyBQm.js +1 -0
- package/frontend/dist/js/{PasswordStrengthMeter-BJr4eBbo.js → PasswordStrengthMeter-DasfJa4P.js} +1 -1
- package/frontend/dist/js/{PersonasPage-ff5opf9B.js → PersonasPage-nOThOpXp.js} +2 -2
- package/frontend/dist/js/PluginUsagePage-BRbHeRf7.js +1 -0
- package/frontend/dist/js/{RichMessageContent-BNNylVAb.js → RichMessageContent-BZ7KKJKK.js} +2 -2
- package/frontend/dist/js/RichMessageContent-oyydJjgc.js +1 -0
- package/frontend/dist/js/SettingsModal-VpsAx2Ns.js +19 -0
- package/frontend/dist/js/{SettingsToggle-CKLHOUt-.js → SettingsToggle-oxvw7ulA.js} +1 -1
- package/frontend/dist/js/{ShareDialog-DykD70uB.js → ShareDialog-CnxPGPb_.js} +1 -1
- package/frontend/dist/js/SystemPage-D2ikvhDp.js +1 -0
- package/frontend/dist/js/{TurnstileWidget-BO2ceTt8.js → TurnstileWidget-CVepEMEQ.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-Ch-PvYQ9.js → UserManagementPage-2yHv89ZA.js} +1 -1
- package/frontend/dist/js/UserManagementPanel-vxpiyiTZ.js +1 -0
- package/frontend/dist/js/{WhatsNewModal-Bu4H4MEb.js → WhatsNewModal-DAAFzY0d.js} +1 -1
- package/frontend/dist/js/WorkPage-BYpYD9mr.js +8 -0
- package/frontend/dist/js/api-C0ligMmL.js +1 -0
- package/frontend/dist/js/api-CVUaOaq4.js +14 -0
- package/frontend/dist/js/{appNavigation-CVsQuDI1.js → appNavigation-CqtrZ9bm.js} +1 -1
- package/frontend/dist/js/{appStore-Din-tTD9.js → appStore-Biw63DtJ.js} +2 -2
- package/frontend/dist/js/appVersion-D78eXAb-.js +1 -0
- package/frontend/dist/js/ar-Cq-DrSYL.js +2 -0
- package/frontend/dist/js/authStore-2DsDTcIu.js +1 -0
- package/frontend/dist/js/{authStore-Cm8P6rYs.js → authStore-C5qKrmn4.js} +3 -3
- package/frontend/dist/js/bn-BqxLh-KL.js +2 -0
- package/frontend/dist/js/chatStore-DQhEqb9F.js +3 -0
- package/frontend/dist/js/client-gf5bjBrn.js +2 -0
- package/frontend/dist/js/composerStyles-C83jssgZ.js +1 -0
- package/frontend/dist/js/{config-DHea4b8N.js → config-CNvgxwAm.js} +1 -1
- package/frontend/dist/js/cordisApi-BYjA4EOQ.js +2 -0
- package/frontend/dist/js/cs-D2DDNZf-.js +2 -0
- package/frontend/dist/js/da-BciY-TSG.js +2 -0
- package/frontend/dist/js/de-DjU_eXQ-.js +2 -0
- package/frontend/dist/js/es-ChIEs80I.js +2 -0
- package/frontend/dist/js/{estree-DCT3Jm65.js → estree-DGmLqopC.js} +17 -17
- package/frontend/dist/js/evaluationsApi-Bg12ekHo.js +1 -0
- package/frontend/dist/js/fr-Bi8BGRW4.js +2 -0
- package/frontend/dist/js/hi-BMsCnWg7.js +2 -0
- package/frontend/dist/js/{html-CBXMuS97.js → html-BryNQ_yx.js} +6 -6
- package/frontend/dist/js/id-CpcN1vhk.js +2 -0
- package/frontend/dist/js/is-DkUy2cmP.js +2 -0
- package/frontend/dist/js/it-BglK9DRZ.js +2 -0
- package/frontend/dist/js/ja-IrprzwLJ.js +2 -0
- package/frontend/dist/js/ko--wwEsMPi.js +2 -0
- package/frontend/dist/js/{markdown-Bo71X2X2.js → markdown-CZ1tYEW8.js} +17 -17
- package/frontend/dist/js/{markdown-core-BFkBYv2v.js → markdown-core-KjS96SYW.js} +1 -1
- package/frontend/dist/js/{markdown-html-CwjnwJbl.js → markdown-html-DQEwrWcf.js} +1 -1
- package/frontend/dist/js/{markdown-math-CJvHdD1l.js → markdown-math-CKi32S5d.js} +1 -1
- package/frontend/dist/js/{markdownHtml-egpK3_YY.js → markdownHtml-lrXhxBhK.js} +1 -1
- package/frontend/dist/js/markdownMath-B0BpyFBS.js +1 -0
- package/frontend/dist/js/{messageCodeStyles-euWoxwoo.js → messageCodeStyles-DJZ4QMVq.js} +2 -2
- package/frontend/dist/js/ms-BWj59y7-.js +2 -0
- package/frontend/dist/js/nl-D-QndW_A.js +2 -0
- package/frontend/dist/js/pl-Dw7d7iDV.js +2 -0
- package/frontend/dist/js/pt-BI53uHJw.js +2 -0
- package/frontend/dist/js/react-vendor-wiHys0m2.js +9 -0
- package/frontend/dist/js/router-vendor-HZm4FR0A.js +1 -0
- package/frontend/dist/js/ru-JKyTgPg9.js +2 -0
- package/frontend/dist/js/{standalone-6z5x8CWe.js → standalone-DbyFjvTU.js} +1 -1
- package/frontend/dist/js/sv-BIkBLPSQ.js +2 -0
- package/frontend/dist/js/{syntax-highlight-7t8DGG2n.js → syntax-highlight-DNc3FFCa.js} +1 -1
- package/frontend/dist/js/{teamEventStream-DGgjrVqw.js → teamEventStream-PXiwR5Kr.js} +1 -1
- package/frontend/dist/js/th-CZ_LcCU0.js +2 -0
- package/frontend/dist/js/tr-B265byx1.js +2 -0
- package/frontend/dist/js/{typescript-CslHIgIJ.js → typescript-DUM5niRM.js} +1 -1
- package/frontend/dist/js/{ui-CNcEDQ95.js → ui-DDMjO5dd.js} +2 -2
- package/frontend/dist/js/ui-vendor-BhHHyHk3.js +1 -0
- package/frontend/dist/js/uk-VTAlChwf.js +2 -0
- package/frontend/dist/js/{useChat-YRODF1y1.js → useChat-DaIZ2Dbu.js} +1 -1
- package/frontend/dist/js/{useDialogFocus-BQLdAGYH.js → useDialogFocus-BPTG_Zmy.js} +1 -1
- package/frontend/dist/js/useDictation-BXyX1U8r.js +1 -0
- package/frontend/dist/js/useQuery-hWmQjdLu.js +1 -0
- package/frontend/dist/js/{useTranslation-Kn7_iLGj.js → useTranslation-B9kflK9S.js} +1 -1
- package/frontend/dist/js/{utils-Dq1w7K0c.js → utils-p8Gt72YP.js} +1 -1
- package/frontend/dist/js/{utils-vendor-dx9vGAt3.js → utils-vendor-DISWt2y9.js} +1 -1
- package/frontend/dist/js/vi-D8rXh-53.js +2 -0
- package/frontend/dist/js/{workStatus-oU04ZrUq.js → work-DmJpVPPO.js} +1 -1
- package/frontend/dist/js/workApi-BIS9RxRi.js +1 -0
- package/frontend/dist/js/workApi-C3Td_lFD.js +5 -0
- package/frontend/dist/js/workModels-MzU2Ab7l.js +1 -0
- package/frontend/dist/js/zh-BEGd9iBD.js +2 -0
- package/package.json +43 -8
- package/scripts/prepare-dsh-provider.mjs +124 -0
- package/frontend/dist/assets/index-BXTzjRcS.js +0 -92
- package/frontend/dist/assets/index-uzzNXp5R.css +0 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-DPWGjHhp.js +0 -1
- package/frontend/dist/js/AutomationsPage-DvsLZWtg.js +0 -1
- package/frontend/dist/js/ChannelsPage-D252gXwf.js +0 -1
- package/frontend/dist/js/ChatPage-D_CzOiHw.js +0 -14
- package/frontend/dist/js/ConnectModels-DYOtIOEY.js +0 -1
- package/frontend/dist/js/GalleryPage-BpK-vrvd.js +0 -1
- package/frontend/dist/js/HomePage-zJkkDNJl.js +0 -1
- package/frontend/dist/js/LibreClawPage-CAgNj9GM.js +0 -1
- package/frontend/dist/js/NotesPage-CNTqlwNc.js +0 -3
- package/frontend/dist/js/OptimizedSyntaxHighlighter-BFjOBavF.js +0 -1
- package/frontend/dist/js/PluginUsagePage-Cp4j4-VZ.js +0 -1
- package/frontend/dist/js/RichMessageContent-BOY5jqj-.js +0 -1
- package/frontend/dist/js/SettingsModal-WAdVG4-g.js +0 -19
- package/frontend/dist/js/SystemPage-Dwi8leEQ.js +0 -1
- package/frontend/dist/js/UserManagementPanel-CfG67c_k.js +0 -1
- package/frontend/dist/js/WorkPage-D_cL9wp4.js +0 -8
- package/frontend/dist/js/api-29NO19CP.js +0 -14
- package/frontend/dist/js/api-DhafOTdF.js +0 -1
- package/frontend/dist/js/appVersion-BNuquyI6.js +0 -1
- package/frontend/dist/js/ar-WHne6B0o.js +0 -2
- package/frontend/dist/js/authStore-snvjjOuX.js +0 -1
- package/frontend/dist/js/bn-BZvCjqwO.js +0 -2
- package/frontend/dist/js/chatStore-BPpcL4I5.js +0 -3
- package/frontend/dist/js/composerStyles-bNlrIugf.js +0 -1
- package/frontend/dist/js/cs-DfSqWQ9V.js +0 -2
- package/frontend/dist/js/da-BmMLW4Dl.js +0 -2
- package/frontend/dist/js/de-BQMiQwQT.js +0 -2
- package/frontend/dist/js/es-DXf6jt4Z.js +0 -2
- package/frontend/dist/js/evaluationsApi-Btc9Mg9z.js +0 -1
- package/frontend/dist/js/fr-BD6nT1oc.js +0 -2
- package/frontend/dist/js/hi-BSuNic-8.js +0 -2
- package/frontend/dist/js/id-wodbwt3B.js +0 -2
- package/frontend/dist/js/is-CEjw-OJE.js +0 -2
- package/frontend/dist/js/it-X_pq8C7q.js +0 -2
- package/frontend/dist/js/ja-DWM2HZZd.js +0 -2
- package/frontend/dist/js/ko-DFi2khBB.js +0 -2
- package/frontend/dist/js/markdownMath-mesq3ZcY.js +0 -1
- package/frontend/dist/js/ms-DNQateTR.js +0 -2
- package/frontend/dist/js/nl-DSWhi8W8.js +0 -2
- package/frontend/dist/js/pl-W9WEDpZ3.js +0 -2
- package/frontend/dist/js/pt-DCCGvdNt.js +0 -2
- package/frontend/dist/js/react-vendor-D0Ec-185.js +0 -9
- package/frontend/dist/js/router-vendor-CM0PhOMl.js +0 -1
- package/frontend/dist/js/ru-D-Ww6dXe.js +0 -2
- package/frontend/dist/js/sv-B0Iry-H3.js +0 -2
- package/frontend/dist/js/th-CEZS0WeE.js +0 -2
- package/frontend/dist/js/tr-BFJ8TeYb.js +0 -2
- package/frontend/dist/js/ui-vendor-LatG6rFF.js +0 -177
- package/frontend/dist/js/uk-BmW3yDel.js +0 -2
- package/frontend/dist/js/useQuery-C3O4CZ54.js +0 -1
- package/frontend/dist/js/vi-Cu25FXnp.js +0 -2
- package/frontend/dist/js/work-DVgm81bJ.js +0 -1
- package/frontend/dist/js/workApi-BdUNugC3.js +0 -1
- package/frontend/dist/js/workApi-OieM8qEL.js +0 -6
- package/frontend/dist/js/zh-CuCAx3oH.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:h,__COMPILER_RUNTIME:g,act:_,cache:v,cacheSignal:y,captureOwnerStack:b,cloneElement:x,createContext:S,createElement:C,createRef:w,forwardRef:ee,isValidElement:te,lazy:ne,memo:re,startTransition:ie,unstable_useCacheRefresh:ae,use:oe,useActionState:se,useCallback:ce,useContext:T,useDebugValue:le,useDeferredValue:ue,useEffect:E,useEffectEvent:de,useId:fe,useImperativeHandle:pe,useInsertionEffect:me,useLayoutEffect:he,useMemo:ge,useOptimistic:_e,useReducer:ve,useRef:D,useState:O,useSyncExternalStore:ye,useTransition:be,version:xe}=o,Se=S({});function k(e){let t=D(null);return t.current===null&&(t.current=e()),t.current}var Ce=typeof window<`u`,we=Ce?he:E,Te=S(null);function Ee(e,t){e.indexOf(t)===-1&&e.push(t)}function De(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Oe([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var A=(e,t,n)=>n>t?t:n<e?e:n;function ke(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ae=()=>{},je=()=>{},j={},Me=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ne=e=>typeof e==`object`&&!!e,Pe=e=>/^0[^.\s]+$/u.test(e);function Fe(e){let t;return()=>(t===void 0&&(t=e()),t)}var M=e=>e,Ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Le=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Re=class{constructor(){this.subscriptions=[]}add(e){return Ee(this.subscriptions,e),()=>this.remove(e)}remove(e){De(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},N=e=>e*1e3,P=e=>e/1e3,ze=(e,t)=>t?1e3/t*e:0,Be=new Set;function Ve(e){return Be.has(e)}function He(e,t,n){e||Be.has(t)||(console.warn(ke(t,n)),Be.add(t))}var Ue=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},We=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ge=1e-7,Ke=12;function qe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=We(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ge&&++s<Ke);return o}function Je(e,t,n,r){if(e===t&&n===r)return M;let i=t=>qe(t,0,1,e,n);return e=>e===0||e===1?e:We(i(e),t,r)}var Ye=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xe=e=>t=>1-e(1-t),Ze=Je(.33,1.53,.69,.99),Qe=Xe(Ze),$e=Ye(Qe),et=e=>e>=1?1:(e*=2)<1?.5*Qe(e):.5*(2-2**(-10*(e-1))),tt=e=>1-Math.sin(Math.acos(e)),nt=Xe(tt),rt=Ye(tt),it=Je(.42,0,1,1),at=Je(0,0,.58,1),ot=Je(.42,0,.58,1);function st(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return A(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var ct=e=>Array.isArray(e)&&typeof e[0]!=`number`;function lt(e,t){return ct(e)?e[Ue(0,e.length,t)]:e}var ut=e=>Array.isArray(e)&&typeof e[0]==`number`,dt={linear:M,easeIn:it,easeInOut:ot,easeOut:at,circIn:tt,circInOut:rt,circOut:nt,backIn:Qe,backInOut:$e,backOut:Ze,anticipate:et},ft=e=>typeof e==`string`,pt=e=>{if(ut(e)){e.length;let[t,n,r,i]=e;return Je(t,n,r,i)}return ft(e)?(dt[e],`${e}`,dt[e]):e},mt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ht(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var gt=40;function _t(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=mt.reduce((e,t)=>(e[t]=ht(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=j.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,gt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:mt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<mt.length;t++)o[mt[t]].cancel(e)},state:i,steps:o}}var{schedule:F,cancel:I,state:L,steps:vt}=_t(typeof requestAnimationFrame<`u`?requestAnimationFrame:M,!0),yt;function bt(){yt=void 0}var R={now:()=>(yt===void 0&&R.set(L.isProcessing||j.useManualTiming?L.timestamp:performance.now()),yt),set:e=>{yt=e,queueMicrotask(bt)}},xt=e=>Math.round(e*1e5)/1e5,St=e=>t=>typeof t==`string`&&t.startsWith(e),Ct=St(`--`),wt=St(`var(--`),Tt=e=>wt(e)?Et.test(e.split(`/*`)[0].trim()):!1,Et=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ot={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},kt={...Ot,transform:e=>A(0,1,e)},At={...Ot,default:1},jt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mt(e){return e==null}var Nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pt=(e,t)=>n=>!!(typeof n==`string`&&Nt.test(n)&&n.startsWith(e)||t&&!Mt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ft=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(jt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},It=e=>A(0,255,e),Lt={...Ot,transform:e=>Math.round(It(e))},Rt={test:Pt(`rgb`,`red`),parse:Ft(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Lt.transform(e)+`, `+Lt.transform(t)+`, `+Lt.transform(n)+`, `+xt(kt.transform(r))+`)`};function zt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Bt={test:Pt(`#`),parse:zt,transform:Rt.transform},Vt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ht=Vt(`deg`),z=Vt(`%`),B=Vt(`px`),Ut=Vt(`vh`),Wt=Vt(`vw`),Gt={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(e*100)},Kt={test:Pt(`hsl`,`hue`),parse:Ft(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+z.transform(xt(t))+`, `+z.transform(xt(n))+`, `+xt(kt.transform(r))+`)`},V={test:e=>Rt.test(e)||Bt.test(e)||Kt.test(e),parse:e=>Rt.test(e)?Rt.parse(e):Kt.test(e)?Kt.parse(e):Bt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Rt.transform(e):Kt.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},qt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Jt=new RegExp(jt.source),Yt=new RegExp(qt.source,`i`);function Xt(e){return isNaN(e)&&typeof e==`string`&&(Jt.test(e)||Yt.test(e))}var Zt=`number`,Qt=`color`,$t=`var`,en=`var(`,tn="${}",nn=/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 rn(e){let t=e.toString();return Jt.test(t)||Yt.test(t)}function an(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(nn,e=>(V.test(e)?(r.color.push(a),i.push(Qt),n.push(V.parse(e))):e.startsWith(en)?(r.var.push(a),i.push($t),n.push(e)):(r.number.push(a),i.push(Zt),n.push(parseFloat(e))),++a,tn)).split(tn),indexes:r,types:i}}function on(e){return an(e).values}function sn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Zt?xt(r[a]):e===Qt?V.transform(r[a]):r[a]}return i}}function cn(e){return sn(an(e))}var ln=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,un=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ln(e);function dn(e){let t=an(e);return sn(t)(t.values.map((e,n)=>un(e,t.split[n])))}var H={test:Xt,parse:on,createTransformer:cn,getAnimatableNone:dn};function fn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=fn(s,r,e+1/3),a=fn(s,r,e),o=fn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function mn(e,t){return n=>n>0?t:e}var U=(e,t,n)=>e+(t-e)*n,hn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},gn=[Bt,Rt,Kt],_n=e=>gn.find(t=>t.test(e));function vn(e){let t=_n(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Kt&&(n=pn(n)),n}var yn=(e,t)=>{let n=vn(e),r=vn(t);if(!n||!r)return mn(e,t);let i={...n};return e=>(i.red=hn(n.red,r.red,e),i.green=hn(n.green,r.green,e),i.blue=hn(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),Rt.transform(i))},bn=new Set([`none`,`hidden`]);function xn(e,t){return bn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sn(e,t){return n=>U(e,t,n)}function Cn(e){return typeof e==`number`?Sn:typeof e==`string`?Tt(e)?mn:V.test(e)?yn:Dn:Array.isArray(e)?wn:typeof e==`object`?V.test(e)?yn:Tn:mn}function wn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Cn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Tn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function En(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Dn=(e,t)=>{let n=H.createTransformer(t),r=an(e),i=an(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?bn.has(e)&&!i.values.length||bn.has(t)&&!r.values.length?xn(e,t):Ie(wn(En(r,i),i.values),n):(`${e}${t}`,mn(e,t))},On=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function kn(e,t){let n=On.exec(e);if(!n)return;let r=On.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>xt(U(a,o,e))+i}function An(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return U(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=kn(e,t);if(n)return n}return Cn(e)(e,t)}var jn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>I(t),now:()=>L.isProcessing?L.timestamp:R.now()}},Mn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Nn=2e4;function Pn(e,t=50,n=Nn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Fn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Pn(r),Nn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:P(i)}}var W={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 In(e,t){return e*Math.sqrt(1-t*t)}var Ln=12;function Rn(e,t,n){let r=n;for(let n=1;n<Ln;n++)r-=e(r)/t(r);return r}var zn=.001;function Bn({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;W.maxDuration;let o=1-t;o=A(W.minDamping,W.maxDamping,o),e=A(W.minDuration,W.maxDuration,P(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=In(t,o),c=Math.exp(-i);return zn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=In(t*t,o);return(-i(t)+zn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Rn(i,a,s);if(e=N(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Vn=[`duration`,`bounce`],Hn=[`stiffness`,`damping`,`mass`];function Un(e,t){return t.some(t=>e[t]!==void 0)}function Wn(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!Un(e,Hn)&&Un(e,Vn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*A(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=Bn({...e,velocity:0});t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}}return t}function Gn(e=W.visualDuration,t=W.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d}=Wn({...n,velocity:-P(n.velocity||0)}),f=s/(2*Math.sqrt(o*c)),p=P(Math.sqrt(o/c)),m=f*p,h={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},g=()=>{let e=Math.abs(h.delta)<5;h.restSpeed=n.restSpeed||(e?W.restSpeed.granular:W.restSpeed.default),h.restDelta=n.restDelta||(e?W.restDelta.granular:W.restDelta.default)};g();let _,v,y;if(f<1){let e=In(p,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};y=()=>{t.A=(h.velocity+m*h.delta)/e,t.sinC=m*t.A+h.delta*e,t.cosC=m*h.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-m*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};_=e=>(n(e),h.target-t.env*(t.A*t.sin+h.delta*t.cos)),v=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(f===1){_=e=>h.target-Math.exp(-p*e)*(h.delta+(h.velocity+p*h.delta)*e);let e={C:0};y=()=>{e.C=h.velocity+p*h.delta},v=t=>Math.exp(-p*t)*(p*e.C*t-h.velocity)}else{let e=p*Math.sqrt(f*f-1);_=t=>{let n=Math.exp(-m*t),r=Math.min(e*t,300);return h.target-n*((h.velocity+m*h.delta)*Math.sinh(r)+e*h.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};y=()=>{t.P=(h.velocity+m*h.delta)/e,t.sinh=m*t.P-h.delta*e,t.cosh=m*h.delta-t.P*e},v=n=>{let r=Math.exp(-m*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}y();let b=!Un(n,Hn)&&Un(n,Vn),x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{h.target=e[e.length-1],h.delta=h.target-e[0],h.velocity=b?0:-P(t),n.restSpeed&&n.restDelta||g(),S.calculatedDuration=x,a.done=!1,y()},velocity:e=>N(v(e)),next:e=>{let t=_(e);if(d)a.done=e>=l;else{let n=N(v(e));a.done=Math.abs(n)<=h.restSpeed&&Math.abs(h.target-t)<=h.restDelta}return a.value=a.done?h.target:t,a},toString:()=>{let e=Math.min(Pn(S),Nn),t=Mn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Gn.applyToOptions=e=>{let t=Fn(e,100,Gn);return e.ease=t.ease,e.duration=N(t.duration),e.type=`keyframes`,e};function Kn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Gn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function qn(e,t,n){let r=[],i=n||j.mix||An,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ie(Array.isArray(t)?t[n]||M:t,a)),r.push(a)}return r}function Jn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=qn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Le(e[r],e[r+1],n);return s[r](i)};return n?t=>l(A(e[0],e[a-1],t)):l}function Yn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Le(0,t,r);e.push(U(n,1,i))}}function Xn(e){let t=[0];return Yn(t,e.length-1),t}function Zn(e,t){return e.map(e=>e*t)}function Qn(e,t){return e.map(()=>t||ot).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ct(r)?r.map(pt):pt(r),a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(j.mix||An)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?A(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Jn(Zn(n&&n.length===t.length?n:Xn(t),e),t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var er=5;function tr(e,t,n){let r=Math.max(t-er,0);return ze(n-e(r),t-r)}function nr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):tr(t=>e.next(t).value,t,e.next(t).value)}var rr=e=>e!==null;function ir(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(rr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ar={decay:Kn,inertia:Kn,tween:$n,keyframes:$n,spring:Gn};function or(e){typeof e.type==`string`&&(e.type=ar[e.type])}function sr(e,t){return{kind:e,animation:t,timestamp:R.now(),frameTimestamp:L.timestamp,frameIsProcessing:L.isProcessing}}function cr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...sr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function lr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...sr(`layout-animation-start`,e),node:t})}catch{}}var ur=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},dr=e=>e/100,fr=class extends ur{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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==R.now()&&this.tick(R.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),cr(this,this.options)}initAnimation(){let{options:e}=this;or(e);let{type:t=$n,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||$n;s!==$n&&typeof o[0]!=`number`&&(this.mixKeyframes=Ie(dr,An(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Pn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=A(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Kn&&(b.value=ir(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return P(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+P(e)}get time(){return P(this.currentTime)}set time(e){e=N(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(){return nr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(R.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=P(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=jn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(R.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(),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 pr(e){return new fr(e)}var mr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function hr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(jt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!mr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var gr=/\b([a-z-]*)\(.*?\)/gu,_r={...H,getAnimatableNone:e=>{let t=e.match(gr);return t?t.map(hr).join(` `):e}},vr={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},yr={...Ot,transform:Math.round},br={rotate:Ht,pathRotation:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:At,scaleX:At,scaleY:At,scaleZ:At,skew:Ht,skewX:Ht,skewY:Ht,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:kt,originX:Gt,originY:Gt,originZ:B},G={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...br,zIndex:yr,fillOpacity:kt,strokeOpacity:kt,numOctaves:yr},xr={...G,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:_r,WebkitFilter:_r,mask:vr,WebkitMask:vr},Sr=e=>xr[e],Cr=new Set([_r,vr]);function wr(e,t){let n=Sr(e);return Cr.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Tr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Er=e=>e*180/Math.PI,Dr=e=>kr(Er(Math.atan2(e[1],e[0]))),Or={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dr,rotateZ:Dr,skewX:e=>Er(Math.atan(e[1])),skewY:e=>Er(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},kr=e=>(e%=360,e<0&&(e+=360),e),Ar=Dr,jr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Mr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Nr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jr,scaleY:Mr,scale:e=>(jr(e)+Mr(e))/2,rotateX:e=>kr(Er(Math.atan2(e[6],e[5]))),rotateY:e=>kr(Er(Math.atan2(-e[2],e[0]))),rotateZ:Ar,rotate:Ar,skewX:e=>Er(Math.atan(e[4])),skewY:e=>Er(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pr(e){return+!!e.includes(`scale`)}function Fr(e,t){if(!e||e===`none`)return Pr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Nr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Or,i=t}if(!i)return Pr(t);let a=r[t],o=i[1].split(`,`).map(Lr);return typeof a==`function`?a(o):o[a]}var Ir=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Fr(n,t)};function Lr(e){return parseFloat(e.trim())}var Rr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],K=new Set([...Rr,`pathRotation`]),zr=e=>e===Ot||e===B,Br=new Set([`x`,`y`,`z`]),Vr=Rr.filter(e=>!Br.has(e));function Hr(e){let t=[];return Vr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Ur=new Set([`bottom`,`right`]);function Wr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Gr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Wr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Wr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Fr(e,`x`),y:({transform:e})=>Fr(e,`y`)};Gr.translateX=Gr.x,Gr.translateY=Gr.y;var Kr=new Set,qr=!1,Jr=!1,Yr=!1;function Xr(){if(Jr){let e=[],t=new Set,n=new Set;Kr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Ur.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Hr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Jr=!1,qr=!1,Kr.forEach(e=>e.complete(Yr)),Kr.clear()}function Zr(){Kr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jr=!0)})}function Qr(){Yr=!0,Zr(),Xr(),Yr=!1}function $r(e,t,n){if(typeof e==`string`){if(Me(e)||Pe(e))return parseFloat(e);if(!H.test(e)&&H.test(n))return wr(t,n)}return e??void 0}var ei=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Kr.add(this),qr||(qr=!0,F.read(Zr),F.resolveKeyframes(Xr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=$r(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Tr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Kr.delete(this)}cancel(){this.state===`scheduled`&&(Kr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ti=e=>e.startsWith(`--`);function ni(e,t,n){ti(t)?e.style.setProperty(t,n):e.style[t]=n}var ri={};function ii(e,t){let n=Fe(e);return()=>ri[t]??n()}var ai=ii(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),oi=ii(()=>window.ViewTimeline!==void 0,`viewTimeline`),si=ii(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ci=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,li={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ci([0,.65,.55,1]),circOut:ci([.55,0,1,.45]),backIn:ci([.31,.01,.66,-.59]),backOut:ci([.33,1.53,.69,.99])};function ui(e,t){if(e)return typeof e==`function`?si()?Mn(e,t):`ease-out`:ut(e)?ci(e):Array.isArray(e)?e.map(e=>ui(e,t)||li.easeOut):li[e]}function di(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ui(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function fi(e){return typeof e==`function`&&`applyToOptions`in e}function pi({type:e,...t}){return fi(e)&&si()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var mi=class extends ur{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=pi(e);this.animation=di(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ir(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ni(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},cr(this,e,c)}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;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return P(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+P(e)}get time(){return P(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=N(e),t&&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?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ai()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),M):r(this)}},hi={anticipate:et,backInOut:$e,circInOut:rt};function gi(e){return e in hi}function _i(e){typeof e.ease==`string`&&gi(e.ease)&&(e.ease=hi[e.ease])}var vi=10,yi=class extends mi{constructor(e){_i(e),or(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new fr({...a,autoplay:!1}),s=Math.max(vi,R.now()-this.startTime),c=A(0,vi,s-vi),l=o.sample(s).value,{name:u}=this.options;i&&u&&ni(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},bi=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function xi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Si(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=bi(i,t),s=bi(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):xi(e)||(n===`spring`||fi(n))&&r}function Ci(e){e.duration=0,e.type=`keyframes`}var wi=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ti=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ei(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ti.test(e[t]))return!0;return!1}var Di=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Oi=Fe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ki(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(wi.has(n)||Di.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Oi()&&(wi.has(n)||Di.has(n)&&Ei(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ai=40,ji=class extends ur{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ei;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=R.now();let u=!0;Si(e,i,a,o)||(u=!1,(j.instantAnimations||!s)&&l?.(ir(e,n,t)),e[0]=e[e.length-1],Ci(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ai?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&ki(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new yi(n)}catch{m=new fr(n)}}else m=new fr(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qr()),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()}},Mi=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Ni(this.animations,`duration`)}get iterationDuration(){return Ni(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Ni(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Pi=class extends Mi{then(e,t){return this.finished.finally(e).then(()=>{})}},Fi=class extends mi{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},cr(this,{})}},Ii=new WeakMap,Li=(e,t=``)=>`${e}:${t}`;function Ri(e){let t=Ii.get(e);return t||(t=new Map,Ii.set(e,t)),t}function zi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Bi=30,Vi=e=>!isNaN(parseFloat(e)),Hi={current:void 0},Ui=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=R.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Vi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Re)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Re,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){F.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Hi.current&&Hi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Bi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Bi);return ze(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function q(e,t){return new Ui(e,t)}function Wi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Gi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Wi(n,e)}var Ki={type:`spring`,stiffness:500,damping:25,restSpeed:10},qi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ji={type:`keyframes`,duration:.8},Yi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Xi=(e,{keyframes:t})=>t.length>2?Ji:K.has(e)?e.startsWith(`scale`)?qi(t[1]):Ki:Yi,Zi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Qi(e){for(let t in e)if(!Zi.has(t))return!0;return!1}var $i=(e,t,n,r={},i,a)=>o=>{let s=Gi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=N(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Qi(s)||Object.assign(u,Xi(e,u)),u.duration&&=N(u.duration),u.repeatDelay&&=N(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ci(u),u.delay===0&&(d=!0)),(j.instantAnimations||j.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ci(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ir(u.keyframes,s);if(e!==void 0){F.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new fr(u):new ji(u)},ea=20;function ta(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function na(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function ra(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function ia({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=ra(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=ra(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?na(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?na(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Ue(-180,180,f-d):0;return e=>{let t={x:ta(e,r.x,u.x,o.x),y:ta(e,r.y,u.y,o.y)};return i&&(t.rotate=Ue(-180,180,na(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function aa(e={}){let t=ia(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<ea))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...Gi(r||{},`x`)};delete g.path;let _=q(0);_.start($i(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var oa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sa(e){let t=oa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ca(e,t,n=1){`${e}`;let[r,i]=sa(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Me(e)?parseFloat(e):e}return Tt(i)?ca(i,t,n+1):i}function la(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ua(e,t,n,r){if(typeof t==`function`){let[i,a]=la(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=la(r);t=t(n===void 0?e.custom:n,i,a)}return t}function da(e,t,n){let r=e.getProps();return ua(r,t,n===void 0?r.custom:n,e)}var fa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Rr]),pa=e=>Array.isArray(e);function ma(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,q(n))}function ha(e){return pa(e)?e[e.length-1]||0:e}function ga(e,t){let{transitionEnd:n={},transition:r={},...i}=da(e,t)||{};i={...i,...n};for(let t in i)ma(e,t,ha(i[t]))}var J=e=>!!(e&&e.getVelocity);function _a(e){return!!(J(e)&&e.add)}function va(e,t){let n=e.getValue(`willChange`);if(_a(n))return n.add(t);if(!n&&j.WillChange){let n=new j.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ya(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ba=`framerAppearId`,xa=`data-`+ya(ba);function Sa(e){return e.props[xa]}var Ca=typeof window<`u`;function wa({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ta(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Wi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&wa(f,t))continue;let o={delay:n,...Gi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let p=!1;if(Ca&&window.MotionHandoffAnimation){let n=Sa(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,p=!0)}}va(e,t);let m=l??e.shouldReduceMotion;r.start($i(t,r,i,m&&fa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>F.update(()=>{o&&ga(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ea(e,t,n={}){let r=da(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ta(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Da(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Da(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ea(c,t,{...o,delay:n+(typeof r==`function`?0:r)+zi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Oa(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ea(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ea(e,t,n);else{let i=typeof t==`function`?da(e,t,n.custom):t;r=Promise.all(Ta(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ka={test:e=>e===`auto`,parse:e=>e},Aa=e=>t=>t.test(e),ja=[Ot,B,z,Ht,Wt,Ut,ka],Ma=e=>ja.find(Aa(e));function Na(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Pe(e)}var Pa=new Set([`auto`,`none`,`0`]);function Fa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Pa.has(t)&&rn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=wr(n,i))}var Ia=class extends ei{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Tt(r))){let i=ca(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!fa.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ma(r),o=Ma(i);if(Dt(r)!==Dt(i)&&Gr[n]){this.needsMeasurement=!0;return}if(a!==o){if(zr(a)&&zr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Gr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Na(e[t]))&&n.push(t);n.length&&Fa(e,n,t)}measure(){let{element:e,name:t}=this;return Gr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},La=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Ra=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...La,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function za(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Ra.has(t)&&(e[n]=e[n]+`px`)}function Ba(e){return!!(typeof e==`function`&&si()||!e||typeof e==`string`&&(e in li||si())||ut(e)||Array.isArray(e)&&e.every(Ba))}var Va=Fe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),Ha=[];function Ua(e){typeof e.test==`function`&&e.read,Wa(e),Ha.unshift(e)}function Wa(e){De(Ha,e)}function Ga(e){return Ha.find(t=>t.test(e))}function Ka(e,t,n={},r){let i=[],{velocity:a}=n,o=n.reduceMotion??r?.shouldReduceMotion;for(let s in t){if(s===`transition`||s===`transitionEnd`)continue;let c=t[s];if(c===void 0)continue;let l=e(s),u=l.get();if(u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a){F.update(()=>l.set(c));continue}l.start($i(s,l,c,o&&fa.has(s)?{type:!1}:n,r)),l.animation&&i.push(l.animation)}let{transitionEnd:s}=t;if(s){let t=()=>F.update(()=>{for(let t in s)e(t).set(s[t])});i.length?Promise.all(i).then(t):t()}return i}function qa(e,t,n,r,i){return Ka(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Ja(i)??e.read(t,r,i),`${r}`}a=q(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Ja(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Ya(e){return Ne(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Xa(e){return Ne(e)&&`ownerSVGElement`in e}var Za=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Qa(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function $a(e){let t=(t,n)=>{let r=Qa(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var eo=class{constructor(e=F.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function to(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new eo(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var no={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ro={};function io(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].get();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(ro[i]||(ro[i]=(no[i]||i)+`(`))+Za(a,br[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Za(i,br.pathRotation)+`)`),t||`none`}var ao=new Set([`originX`,`originY`,`originZ`]),oo=(e,t)=>Za(e.get(t)?.get(),G[t]),so=(e,t,n,r)=>{let i,a;if(K.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Rr.indexOf(e)-Rr.indexOf(t)))}t.get(`transform`)||(!Ya(e)&&!t.get(`transformBox`)&&so(e,t,`transformBox`,new Ui(`fill-box`)),t.set(`transform`,new Ui(`none`),()=>{e.style.transform=io(t)})),a=t.get(`transform`)}else ao.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Ui(``),()=>{let n=oo(t,`originX`)??`50%`,r=oo(t,`originY`)??`50%`,i=oo(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ti(n)?()=>{e.style.setProperty(n,r.get())}:()=>{e.style[n]=Za(r.get(),G[n])};return t.set(n,r,i,a)},co=e=>Ya(e)||Xa(e),lo=(e,t)=>{if(K.has(t))return Ir(e,t);let n=getComputedStyle(e),r=ti(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},uo=to(so,{test:co,read:lo}),fo=$a(uo),po={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},mo=Rr.length;function ho(e,t,n){let r=``,i=!0;for(let a=0;a<mo;a++){let o=Rr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Za(s,G[o]);if(!c){i=!1;let t=po[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Za(a,G.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function go(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(K.has(e)){o=!0;continue}if(Ct(e)){i[e]=n;continue}{let t=Za(n,G[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ho(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var _o={offset:`stroke-dashoffset`,array:`stroke-dasharray`},vo={offset:`strokeDashoffset`,array:`strokeDasharray`};function yo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?_o:vo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var bo=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function xo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(go(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of bo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&yo(d,i,a,o,!1)}function So(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Co=(e,t,n,r,i=n)=>{let a=So(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=ya(i));let o=G[n]||G[i],s=a?()=>{e[i]=Za(r.get(),G[n])}:()=>{let t=Za(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},wo=$a(to(Co));function To(e,t,n,r){return F.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Ui(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Eo=(e,t,n,r)=>n.startsWith(`path`)?To(e,t,n,r):n.startsWith(`attr`)?Co(e,t,n,r,Ao(n)):(n in e.style?so:Co)(e,t,n,r),Do=(e,t)=>K.has(t)?G[t]?.default||0:bo.includes(t)?lo(e,t):(t=Ao(t),e.getAttribute(ya(t))??e.getAttribute(t)??void 0),Oo=to(Eo,{test:Xa,read:Do}),ko=$a(Oo);function Ao(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function jo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Mo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function No(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Po(e){return e===void 0||e===1}function Fo({scale:e,scaleX:t,scaleY:n}){return!Po(e)||!Po(t)||!Po(n)}function Io(e){return Fo(e)||Lo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lo(e){return Ro(e.x)||Ro(e.y)}function Ro(e){return e&&e!==`0%`}function zo(e,t,n){return n+t*(e-n)}function Bo(e,t,n,r,i){return i!==void 0&&(e=zo(e,i,r)),zo(e,n,r)+t}function Vo(e,t=0,n=1,r,i){e.min=Bo(e.min,t,n,r,i),e.max=Bo(e.max,t,n,r,i)}function Ho(e,{x:t,y:n}){Vo(e.x,t.translate,t.scale,t.originPoint),Vo(e.y,n.translate,n.scale,n.originPoint)}var Uo=.999999999999,Wo=1.0000000000001;function Go(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Y(e.x,-a.scroll.offset.x),Y(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ho(e,o)),r&&Io(a.latestValues)&&Jo(e,a.latestValues,a.layout?.layoutBox))}t.x<Wo&&t.x>Uo&&(t.x=1),t.y<Wo&&t.y>Uo&&(t.y=1)}function Y(e,t){e.min+=t,e.max+=t}function Ko(e,t,n,r,i=.5){Vo(e,t,n,U(e.min,e.max,i),r)}function qo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Jo(e,t,n){let r=n??e;Ko(e.x,qo(t.x,r.x),t.scaleX,t.scale,t.originX),Ko(e.y,qo(t.y,r.y),t.scaleY,t.scale,t.originY)}function Yo(e,t){return jo(No(e.getBoundingClientRect(),t))}function Xo(e,t,n){let r=Yo(e,n),{scroll:i}=t;return i&&(Y(r.x,i.offset.x),Y(r.y,i.offset.y)),r}var Zo={},Qo=e=>Xa(e)?Oo:uo,$o=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Ia}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Yo(this.current)}getProps(){return Zo}};function es(e,t,n,r){if(r)return Ka(e=>r.getValue(e,null),t,n,r);let i=Qo(e);return qa(i,e,t,n,new $o(i,e))}function ts(e,t){let n=Qo(e).state(e);if(!n)return;let{transformKeys:r}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&r?.length||t.addValue(n,e)})}var ns=to((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ne(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:rs,cancel:is}=_t(queueMicrotask,!1),X={x:!1,y:!1};function as(){return X.x||X.y}function os(e){return e===`x`||e===`y`?X[e]?null:(X[e]=!0,()=>{X[e]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function ss(e,t){let n=Qa(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function cs(e){return!(e.pointerType===`touch`||as())}function ls(e,t,n={}){let[r,i,a]=ss(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!cs(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var us=(e,t)=>t?e===t||us(e,t.parentElement):!1,ds=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,fs=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ps(e){return fs.has(e.tagName)||e.isContentEditable===!0}var ms=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function hs(e){return ms.has(e.tagName)||e.isContentEditable===!0}var gs=new WeakSet;function _s(e){return t=>{t.key===`Enter`&&e(t)}}function vs(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ys=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=_s(()=>{if(gs.has(n))return;vs(n,`down`);let e=_s(()=>{vs(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>vs(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function bs(e){return ds(e)&&!as()}var xs=new WeakSet;function Ss(e,t,n={}){let[r,i,a]=ss(e,n),o=e=>{let r=e.currentTarget;if(!bs(e)||xs.has(e))return;gs.add(r),n.stopPropagation&&xs.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),gs.has(r)&&gs.delete(r),bs(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||us(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ya(e)&&(e.addEventListener(`focus`,e=>ys(e,i)),!ps(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Cs(e,t){let n=window.getComputedStyle(e);return ti(t)?n.getPropertyValue(t):n[t]}var ws=new WeakMap,Ts,Es=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ds=Es(`inline`,`width`,`offsetWidth`),Os=Es(`block`,`height`,`offsetHeight`);function ks({target:e,borderBoxSize:t}){ws.get(e)?.forEach(n=>{n(e,{get width(){return Ds(e,t)},get height(){return Os(e,t)}})})}function As(e){e.forEach(ks)}function js(){typeof ResizeObserver>`u`||(Ts=new ResizeObserver(As))}function Ms(e,t){Ts||js();let n=Qa(e);return n.forEach(e=>{let n=ws.get(e);n||(n=new Set,ws.set(e,n)),n.add(t),Ts?.observe(e)}),()=>{n.forEach(e=>{let n=ws.get(e);n?.delete(t),n?.size||Ts?.unobserve(e)})}}var Ns=new Set,Ps;function Fs(){Ps=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ns.forEach(t=>t(e))},window.addEventListener(`resize`,Ps)}function Is(e){return Ns.add(e),Ps||Fs(),()=>{Ns.delete(e),!Ns.size&&typeof Ps==`function`&&(window.removeEventListener(`resize`,Ps),Ps=void 0)}}function Ls(e,t){return typeof e==`function`?Is(e):Ms(e,t)}function Rs(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return F.preUpdate(r,!0),()=>I(r)}var zs={value:null,addProjectionMetrics:null};function Bs(){zs.value=null,zs.addProjectionMetrics=null}function Vs(){if(zs.value)throw Bs(),Error(`Stats are already being measured`);let e=zs;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function Hs(e){return Xa(e)&&e.tagName===`svg`}function Us(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Ws(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Us(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=pt(r)(s/t)*t}return t+s}}function Gs(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Jn(i,a,o);return t?s(r):s}var Ks=new Set,qs=({timestamp:e})=>{Ks.forEach(t=>t.tick(e))},Js=class extends ur{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,or(e),this.factory=e.type||$n,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(Ks.size||F.update(qs,!0),Ks.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t,o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return nr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():R.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Ks.delete(this),Ks.size||I(qs))}};function Ys(e,t){let n=q(J(e)?e.get():e);return Xs(n,e,t),n}function Xs(e,t,n={}){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=Qs(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=Qs(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new Js({keyframes:[u,o],velocity:d,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),J(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Zs(t,o),!1)):e.set(Zs(t,o))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return l}function Zs(e,t){return t?e+t:e}function Qs(e){return typeof e==`number`?e:parseFloat(e)}function $s(e,t,n){let r=()=>t.set(n()),i=()=>F.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),I(r)})}function ec(e){let t=[];Hi.current=t;let n=e();Hi.current=void 0;let r=q(n);return $s(t,r,e),r}function tc(e,t,n,r){let i=Gs(t,n,r);return ec(()=>i(e.get()))}function nc(e,t){return Ys(e,{type:`spring`,...t})}function rc(e,t,n){return Xs(e,t,{type:`spring`,...n})}var ic=[...ja,V,H],ac=e=>ic.find(Aa(e)),oc=0,sc=()=>`motion-view-${oc++}`,cc=e=>e.startsWith(`motion-view-`);function lc(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function uc(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function dc(e,t,n,r,i,a=[],o,s=[],c){let l=Qa(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??sc();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),lc(e,i,a),uc(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!cc(d)?f=d:(f=sc(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),lc(e,i,a),uc(e,f,o,s,c),f})}function fc(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function pc(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var mc={},hc=null,gc={set:(e,t)=>{mc[e]=t},commit:()=>{hc||(hc=document.createElement(`style`),hc.id=`motion-view`);let e=``;for(let t in mc){let n=mc[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
-
`}hc.textContent=e,document.head.appendChild(hc),mc={}},remove:()=>{hc&&hc.parentElement&&hc.parentElement.removeChild(hc)}};function _c(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function vc(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function yc(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var bc=[`layout`,`enter`,`exit`,`new`,`old`],xc=e=>e.split(` `).every(e=>parseFloat(e)===0),Sc={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Cc={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},wc=.2;function Tc(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new Mi([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,Qa(n)),b=dc(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=dc(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=dc(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=Dc(Gi(c,n),Gi(Ec(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=N(r.duration);let{delay:i=0,duration:a,ease:o}=pi(r);return{delay:N(i),duration:a,ease:o}},w=new Map,ee=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of La)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),te=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ne(e))&&h.add(e)},ne=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>wc},re=()=>{yc(`root`,n)||gc.set(`:root`,{"view-transition-name":`none`}),gc.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{gc.set(`::view-transition-group(${e})`,{overflow:`clip`}),gc.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{gc.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),gc.commit()},ie=()=>{fc(u,d,f),gc.remove()},ae=async()=>{await t(),b(`new`),ee(`new`),te(),re()},oe;try{b(`old`),ee(`old`),re(),oe=document.startViewTransition(ae)}catch(e){return ie(),Promise.reject(e)}return oe.finished.finally(ie),new Promise((e,t)=>{oe.ready.then(()=>{let t=vc(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of bc){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=pc(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){He(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Dc(Gi(c,m),Gi(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Cc[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=N(f.duration),f.delay&&=N(f.delay),n.push(new mi({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=_c(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new Fi(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:ui(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=N(r.duration)),r=pi(r),d={delay:N(r.delay??0),duration:u&&i!==void 0?N(i):r.duration,easing:u?`linear`:ui(r.ease,r.duration)}}t.updateTiming(d),n.push(new Fi(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of La){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;xc(s)&&xc(c)||n.push(new mi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new Mi(n))}).catch(()=>oe.updateCallbackDone.then(()=>e(new Mi([])),t))})}function Ec(e,t){for(let n of Sc[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Dc(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Oc=[],kc=null;function Ac(){kc=null;let[e]=Oc;e&&jc(e)}function jc(e){De(Oc,e),kc=e,Tc(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Ac)}function Mc(){for(let e=Oc.length-1;e>=0;e--){let t=Oc[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Oc.slice(0,e+1).map(e=>e.update),r=Oc.slice(e+1);t.update=()=>{n.forEach(e=>e())},Oc=[t,...r];break}}(!kc||Oc[0]?.options.interrupt===`immediate`)&&Ac()}function Nc(e){Oc.push(e),rs.render(Mc)}var Pc=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=M,this.notifyReject=M,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(M),Nc(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Fc(e,t={}){return new Pc(e,t)}var Ic=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lc=()=>({x:Ic(),y:Ic()}),Rc=()=>({min:0,max:0}),Z=()=>({x:Rc(),y:Rc()}),zc=new WeakMap;function Bc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Vc(e){return typeof e==`string`||Array.isArray(e)}var Hc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Uc=[`initial`,...Hc];function Wc(e){if(Bc(e.animate))return!0;for(let t=0;t<Uc.length;t++)if(Vc(e[Uc[t]]))return!0;return!1}function Gc(e){return!!(Wc(e)||e.variants)}function Kc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(J(i))e.addValue(r,i);else if(J(a))e.addValue(r,q(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,q(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var qc={current:null},Jc={current:!1},Yc=typeof window<`u`;function Xc(){if(Jc.current=!0,Yc){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>qc.current=e.matches;e.addEventListener(`change`,t),t()}else qc.current=!1}}var Zc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Qc={};function $c(e){Qc=e}function el(){return Qc}var tl=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=ei,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=()=>{let e=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Wc(t),this.isVariantNode=Gc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&J(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,zc.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Jc.current||Xc(),this.shouldReduceMotion=qc.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(),I(this.notifyUpdate),I(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&wi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new mi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:N(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=K.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Qc){let t=Qc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Zc.length;t++){let n=Zc[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Kc(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=q(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Me(n)||Pe(n))?n=parseFloat(n):typeof n!=`number`&&!H.test(n)&&H.test(t)&&(n=wr(e,t)),this.setBaseTarget(e,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ua(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!J(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){rs.render(this.render)}},nl=class extends tl{constructor(){super(...arguments),this.KeyframeResolver=Ia}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},rl=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function il(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function al(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ol={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(B.test(e))e=parseFloat(e);else return e}return`${al(e,t.target.x)}% ${al(e,t.target.y)}%`}},sl={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},cl={borderRadius:{...ol,applyTo:[...La]},borderTopLeftRadius:ol,borderTopRightRadius:ol,borderBottomLeftRadius:ol,borderBottomRightRadius:ol,boxShadow:sl};function ll(e){for(let t in e)cl[t]=e[t],Ct(t)&&(cl[t].isCSSVariable=!0)}function ul(e,{layout:t,layoutId:n}){return K.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!cl[e]||e===`opacity`)}function dl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(J(r[t])||i&&J(i[t])||ul(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function fl(e){return window.getComputedStyle(e)}var pl=class extends nl{constructor(){super(...arguments),this.type=`html`,this.renderInstance=il}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(K.has(t))return this.projection?.isProjecting?Pr(t):Ir(e,t);{let n=fl(e),r=(Ct(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Yo(e,t)}build(e,t,n){go(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return dl(e,t,n)}};function ml(e,t){return e in t}var hl=class extends tl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(ml(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Z()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},gl=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`]),_l=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vl(e,t,n,r){il(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(gl.has(n)?n:ya(n),t.attrs[n])}function yl(e,t,n){let r=dl(e,t,n);for(let n in e)if(J(e[n])||J(t[n])){let t=Rr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bl=class extends nl{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(K.has(t)){let e=Sr(t);return e&&e.default||0}if(bo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=gl.has(t)?t:ya(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yl(e,t,n)}build(e,t,n){xo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vl(e,t,n,r)}mount(e){this.isSVGTag=_l(e.tagName),super.mount(e)}},xl=Uc.length;function Sl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Sl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<xl;n++){let r=Uc[n],i=e.props[r];(Vc(i)||i===!1)&&(t[r]=i)}return t}function Cl(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var wl=[...Hc].reverse(),Tl=Hc.length;function El(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Oa(e,t,n)))}function Dl(e){let t=El(e),n=Al(),r=!0,i=!1,a=t=>(n,r)=>{let i=da(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Sl(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Tl;t++){let p=wl[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Vc(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Bc(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ol(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=pa(t)&&pa(n)?!Cl(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=da(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=zi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=da(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Al(),i=!0}}}function Ol(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Cl(t,e):!1}function kl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Al(){return{animate:kl(!0),whileInView:kl(),whileHover:kl(),whileTap:kl(),whileDrag:kl(),whileFocus:kl(),exit:kl()}}function jl(e,t){e.min=t.min,e.max=t.max}function Q(e,t){jl(e.x,t.x),jl(e.y,t.y)}function Ml(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Nl=.9999,Pl=1.0001,Fl=-.01,Il=.01;function $(e){return e.max-e.min}function Ll(e,t,n){return Math.abs(e-t)<=n}function Rl(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Nl&&e.scale<=Pl||isNaN(e.scale))&&(e.scale=1),(e.translate>=Fl&&e.translate<=Il||isNaN(e.translate))&&(e.translate=0)}function zl(e,t,n,r){Rl(e.x,t.x,n.x,r?r.originX:void 0),Rl(e.y,t.y,n.y,r?r.originY:void 0)}function Bl(e,t,n,r=0){e.min=(r?U(n.min,n.max,r):n.min)+t.min,e.max=e.min+$(t)}function Vl(e,t,n,r){Bl(e.x,t.x,n.x,r?.x),Bl(e.y,t.y,n.y,r?.y)}function Hl(e,t,n,r=0){let i=r?U(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+$(t)}function Ul(e,t,n,r){Hl(e.x,t.x,n.x,r?.x),Hl(e.y,t.y,n.y,r?.y)}function Wl(e,t,n,r,i){return e-=t,e=zo(e,1/n,r),i!==void 0&&(e=zo(e,1/i,r)),e}function Gl(e,t=0,n=1,r=.5,i,a=e,o=e){if(z.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=Wl(e.min,t,n,s,i),e.max=Wl(e.max,t,n,s,i)}function Kl(e,t,[n,r,i],a,o){Gl(e,t[n],t[r],t[i],t.scale,a,o)}var ql=[`x`,`scaleX`,`originX`],Jl=[`y`,`scaleY`,`originY`];function Yl(e,t,n,r){Kl(e.x,t,ql,n?n.x:void 0,r?r.x:void 0),Kl(e.y,t,Jl,n?n.y:void 0,r?r.y:void 0)}function Xl(e){return e.translate===0&&e.scale===1}function Zl(e){return Xl(e.x)&&Xl(e.y)}function Ql(e,t){return e.min===t.min&&e.max===t.max}function $l(e,t){return Ql(e.x,t.x)&&Ql(e.y,t.y)}function eu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tu(e,t){return eu(e.x,t.x)&&eu(e.y,t.y)}function nu(e){return $(e.x)/$(e.y)}function ru(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function iu(e){return[e(`x`),e(`y`)]}function au(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var ou=La.length,su=e=>typeof e==`string`?parseFloat(e):e,cu=e=>typeof e==`number`||B.test(e);function lu(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,du(r)),e.opacityExit=U(t.opacity??1,0,fu(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<ou;i++){let a=La[i],o=uu(t,a),s=uu(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||cu(o)===cu(s)?(e[a]=Math.max(U(su(o),su(s),r),0),(z.test(s)||z.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function uu(e,t){return e[t]===void 0?e.borderRadius:e[t]}var du=pu(0,.5,nt),fu=pu(.5,.95,M);function pu(e,t,n){return r=>r<e?0:r>t?1:n(Le(e,t,r))}function mu(e,t,n){let r=J(e)?e:q(e);return r.start($i(``,r,t,n)),r.animation}function hu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var gu=(e,t)=>e.depth-t.depth,_u=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ee(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gu),this.isDirty=!1,this.children.forEach(e)}};function vu(e,t){let n=R.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(I(r),e(a-t))};return F.setup(r,!0),()=>I(r)}function yu(e,t){return vu(e,N(t))}function bu(e){return J(e)?e.get():e}var xu=class{constructor(){this.members=[]}add(e){Ee(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(De(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(De(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.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)}},Su={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},wu=[``,`X`,`Y`,`Z`],Tu=1e3,Eu=0;function Du(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ou(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Sa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ou(r)}function ku({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Eu++,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,zs.value&&(Cu.nodes=Cu.calculatedTargetDeltas=Cu.calculatedProjections=0),this.nodes.forEach(Mu),this.nodes.forEach(Vu),this.nodes.forEach(Hu),this.nodes.forEach(Nu),zs.addProjectionMetrics&&zs.addProjectionMetrics(Cu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new _u)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Re),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Xa(t)&&!Hs(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=vu(i,250),Su.hasAnimatedSinceResize&&(Su.hasAnimatedSinceResize=!1,this.nodes.forEach(Bu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Yu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!tu(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Gi(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Bu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),I(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(Uu),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ou(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Iu),this.nodes.forEach(Fu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Lu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ru),this.nodes.forEach(zu),this.nodes.forEach(Au),this.nodes.forEach(ju)):this.nodes.forEach(Lu),this.clearAllSnapshots();let e=R.now();L.delta=A(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,vt.update.process(L),vt.preRender.process(L),vt.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pu),this.sharedNodes.forEach(Wu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Zl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Io(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),$u(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(td))){let{scroll:e}=this.root;e&&(Y(t.x,e.offset.x),Y(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(Q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Q(t,e),Y(t.x,i.offset.x),Y(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Z();Q(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Y(r.x,-n.scroll.offset.x),Y(r.y,-n.scroll.offset.y)),Io(n.latestValues)&&Jo(r,n.latestValues,n.layout?.layoutBox)}return Io(this.latestValues)&&Jo(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Z();Q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Io(n.latestValues))continue;let r;n.instance&&(Fo(n.latestValues)&&n.updateSnapshot(),r=Z(),Q(r,n.measurePageBox())),Yl(t,n.latestValues,n.snapshot?.layoutBox,r)}return Io(this.latestValues)&&Yl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=L.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Q(this.target,this.layout.layoutBox),Ho(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),zs.value&&Cu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Fo(this.parent.latestValues)||Lo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Ul(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Go(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ml(this.prevProjectionDelta.x,this.projectionDelta.x),Ml(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ru(this.projectionDelta.x,this.prevProjectionDelta.x)||!ru(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),zs.value&&Cu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lc(),this.projectionDelta=Lc(),this.projectionDeltaWithTransform=Lc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Lc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Z(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ju));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=U(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=U(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Gu(o.x,e.x,n),Gu(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ul(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),qu(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&$l(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Z(),Q(f,this.relativeTarget)),c&&(this.animationValues=a,lu(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(I(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{Su.hasAnimatedSinceResize=!0,this.motionValue||=q(0),this.motionValue.jump(0,!1),this.currentAnimation=mu(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),lr(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&ed(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Z();let t=$(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=$(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Q(t,i),Jo(t,r),zl(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new xu),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Du(`z`,e,r,this.animationValues);for(let t=0;t<wu.length;t++)Du(`rotate${wu[t]}`,e,r,this.animationValues),Du(`skew${wu[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=bu(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=bu(t?.pointerEvents)||``),this.hasProjected&&!Io(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=au(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in cl){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=cl[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?bu(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Fu),this.root.sharedNodes.clear()}}}function Au(e){e.updateLayout()}function ju(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)iu(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;jl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ed(i,t.layoutBox,n)&&iu(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Lc();zl(o,n,t.layoutBox);let s=Lc();a?zl(s,e.applyTransform(r,!0),t.measuredBox):zl(s,n,t.layoutBox);let c=!Zl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Z();Ul(s,t.layoutBox,i.layoutBox,o);let c=Z();Ul(c,n,a.layoutBox,o),tu(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Mu(e){zs.value&&Cu.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Nu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Pu(e){e.clearSnapshot()}function Fu(e){e.clearMeasurements()}function Iu(e){e.isLayoutDirty=!0,e.updateLayout()}function Lu(e){e.isLayoutDirty=!1}function Ru(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function zu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Bu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vu(e){e.resolveTargetDelta()}function Hu(e){e.calcProjection()}function Uu(e){e.resetSkewAndRotation()}function Wu(e){e.removeLeadSnapshot()}function Gu(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ku(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function qu(e,t,n,r){Ku(e.x,t.x,n.x,r),Ku(e.y,t.y,n.y,r)}function Ju(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Yu={duration:.45,ease:[.4,0,.1,1]},Xu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zu=Xu(`applewebkit/`)&&!Xu(`chrome/`)?Math.round:M;function Qu(e){e.min=Zu(e.min),e.max=Zu(e.max)}function $u(e){Qu(e.x),Qu(e.y)}function ed(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ll(nu(t),nu(n),.2)}function td(e){return e!==e.root&&e.scroll?.wasRoot}var nd=ku({attachResizeListener:(e,t)=>hu(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rd=e=>!e.isLayoutDirty&&e.willUpdate(!1);function id(){let e=new Set,t=new WeakMap,n=()=>e.forEach(rd);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var ad={current:void 0},od=ku({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ad.current){let e=new nd({});e.mount(window),e.setOptions({layoutScroll:!0}),ad.current=e}return ad.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),sd=`[data-layout],[data-layout-id]`,cd=new WeakMap,ld;function ud(e){let t=[];return e instanceof HTMLElement&&e.matches(sd)&&t.push(e),e.querySelectorAll(sd).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function dd(){if(L.isProcessing)return;let e=R.now();L.delta=A(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,vt.update.process(L),vt.preRender.process(L),vt.render.process(L),L.isProcessing=!1}function fd(e){let t=e.parentElement;for(;t;){let e=cd.get(t);if(e&&e.instance)return e;t=t.parentElement}}function pd(){return new pl({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function md(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function hd(e,t){let n=cd.get(e);if(n)n.setOptions(md(e,t));else{let r=zc.get(e);r||(r=pd(),ts(e,r)),e.style.transform&&!Io(r.latestValues)&&(e.style.transform=``),n=new od(r.latestValues,fd(e)),r.projection=n,n.setOptions({...md(e,t),visualElement:r}),n.mount(e),cd.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function gd(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function _d(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),cd.delete(e)}function vd(){let e=ld;ld=void 0,dd();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of gd(t.keys())){let r=t.get(e),i=hd(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),rs.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var yd=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),ld||(ld=[],queueMicrotask(vd)),ld.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return ud(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of ud(this.scope)){if(this.tracked.has(t))continue;let n=hd(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),_d(n,t)}}),t.relegate())return;n.remove()}_d(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new Mi([...e]))}};function bd(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Qa(e)[0]??document,updateDom:t,defaultOptions:n}}var xd=F,Sd=mt.reduce((e,t)=>(e[t]=e=>I(e),e),{}),Cd=S({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function wd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Td(...e){return t=>{let n=!1,r=e.map(e=>{let r=wd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wd(e[t],null)}}}}function Ed(...e){return ce(Td(...e),e)}var Dd=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ya(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ya(e)&&e.offsetWidth||0,r=Ya(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Od({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=fe(),c=D(null),l=D({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=T(Cd),d=Ed(c,o===!1?void 0:e.props?.ref??e?.ref);return me(()=>{let{width:e,height:i,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!i)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);u&&(y.nonce=u);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
1
|
+
(function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:ee,createRef:te,forwardRef:ne,isValidElement:re,lazy:ie,memo:ae,startTransition:oe,unstable_useCacheRefresh:se,use:ce,useActionState:le,useCallback:ue,useContext:T,useDebugValue:de,useDeferredValue:fe,useEffect:E,useEffectEvent:pe,useId:me,useImperativeHandle:he,useInsertionEffect:ge,useLayoutEffect:_e,useMemo:ve,useOptimistic:ye,useReducer:be,useRef:D,useState:xe,useSyncExternalStore:Se,useTransition:Ce,version:we}=o,Te=w({});function O(e){let t=D(null);return t.current===null&&(t.current=e()),t.current}var Ee=typeof window<`u`,De=Ee?_e:E,Oe=w(null);function ke(e,t){e.indexOf(t)===-1&&e.push(t)}function Ae(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function je([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var k=(e,t,n)=>n>t?t:n<e?e:n;function Me(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ne=()=>{},Pe=()=>{},A={},Fe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ie=e=>typeof e==`object`&&!!e,Le=e=>/^0[^.\s]+$/u.test(e);function Re(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e,ze=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Be=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ve=class{constructor(){this.subscriptions=[]}add(e){return ke(this.subscriptions,e),()=>this.remove(e)}remove(e){Ae(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},M=e=>e*1e3,N=e=>e/1e3,He=(e,t)=>t?1e3/t*e:0,Ue=new Set;function We(e){return Ue.has(e)}function Ge(e,t,n){e||Ue.has(t)||(console.warn(Me(t,n)),Ue.add(t))}var Ke=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},qe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Je=1e-7,Ye=12;function Xe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=qe(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Je&&++s<Ye);return o}function Ze(e,t,n,r){if(e===t&&n===r)return j;let i=t=>Xe(t,0,1,e,n);return e=>e===0||e===1?e:qe(i(e),t,r)}var Qe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$e=e=>t=>1-e(1-t),et=Ze(.33,1.53,.69,.99),tt=$e(et),nt=Qe(tt),rt=e=>e>=1?1:(e*=2)<1?.5*tt(e):.5*(2-2**(-10*(e-1))),it=e=>1-Math.sin(Math.acos(e)),at=$e(it),ot=Qe(it),st=Ze(.42,0,1,1),ct=Ze(0,0,.58,1),lt=Ze(.42,0,.58,1);function ut(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return k(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var dt=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ft(e,t){return dt(e)?e[Ke(0,e.length,t)]:e}var pt=e=>Array.isArray(e)&&typeof e[0]==`number`,mt={linear:j,easeIn:st,easeInOut:lt,easeOut:ct,circIn:it,circInOut:ot,circOut:at,backIn:tt,backInOut:nt,backOut:et,anticipate:rt},ht=e=>typeof e==`string`,gt=e=>{if(pt(e)){e.length;let[t,n,r,i]=e;return Ze(t,n,r,i)}return ht(e)?(mt[e],`${e}`,mt[e]):e},_t=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function vt(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var yt=40;function bt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_t.reduce((e,t)=>(e[t]=vt(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=A.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,yt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:_t.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<_t.length;t++)o[_t[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:F,state:I,steps:xt}=bt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0),St;function Ct(){St=void 0}var L={now:()=>(St===void 0&&L.set(I.isProcessing||A.useManualTiming?I.timestamp:performance.now()),St),set:e=>{St=e,queueMicrotask(Ct)}},wt=e=>Math.round(e*1e5)/1e5,Tt=e=>t=>typeof t==`string`&&t.startsWith(e),Et=Tt(`--`),Dt=Tt(`var(--`),Ot=e=>Dt(e)?kt.test(e.split(`/*`)[0].trim()):!1,kt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function At(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var jt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Mt={...jt,transform:e=>k(0,1,e)},Nt={...jt,default:1},Pt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ft(e){return e==null}var It=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lt=(e,t)=>n=>!!(typeof n==`string`&&It.test(n)&&n.startsWith(e)||t&&!Ft(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},zt=e=>k(0,255,e),Bt={...jt,transform:e=>Math.round(zt(e))},Vt={test:Lt(`rgb`,`red`),parse:Rt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Bt.transform(e)+`, `+Bt.transform(t)+`, `+Bt.transform(n)+`, `+wt(Mt.transform(r))+`)`};function Ht(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ut={test:Lt(`#`),parse:Ht,transform:Vt.transform},Wt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gt=Wt(`deg`),R=Wt(`%`),z=Wt(`px`),Kt=Wt(`vh`),qt=Wt(`vw`),Jt={...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(e*100)},Yt={test:Lt(`hsl`,`hue`),parse:Rt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+R.transform(wt(t))+`, `+R.transform(wt(n))+`, `+wt(Mt.transform(r))+`)`},B={test:e=>Vt.test(e)||Ut.test(e)||Yt.test(e),parse:e=>Vt.test(e)?Vt.parse(e):Yt.test(e)?Yt.parse(e):Ut.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Vt.transform(e):Yt.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},Xt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Zt=new RegExp(Pt.source),Qt=new RegExp(Xt.source,`i`);function $t(e){return isNaN(e)&&typeof e==`string`&&(Zt.test(e)||Qt.test(e))}var en=`number`,tn=`color`,nn=`var`,rn=`var(`,an="${}",on=/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 sn(e){let t=e.toString();return Zt.test(t)||Qt.test(t)}function cn(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(on,e=>(B.test(e)?(r.color.push(a),i.push(tn),n.push(B.parse(e))):e.startsWith(rn)?(r.var.push(a),i.push(nn),n.push(e)):(r.number.push(a),i.push(en),n.push(parseFloat(e))),++a,an)).split(an),indexes:r,types:i}}function ln(e){return cn(e).values}function un({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===en?wt(r[a]):e===tn?B.transform(r[a]):r[a]}return i}}function dn(e){return un(cn(e))}var fn=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,pn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:fn(e);function mn(e){let t=cn(e);return un(t)(t.values.map((e,n)=>pn(e,t.split[n])))}var V={test:$t,parse:ln,createTransformer:dn,getAnimatableNone:mn};function hn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=hn(s,r,e+1/3),a=hn(s,r,e),o=hn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _n(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,vn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yn=[Ut,Vt,Yt],bn=e=>yn.find(t=>t.test(e));function xn(e){let t=bn(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Yt&&(n=gn(n)),n}var Sn=(e,t)=>{let n=xn(e),r=xn(t);if(!n||!r)return _n(e,t);let i={...n};return e=>(i.red=vn(n.red,r.red,e),i.green=vn(n.green,r.green,e),i.blue=vn(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),Vt.transform(i))},Cn=new Set([`none`,`hidden`]);function wn(e,t){return Cn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tn(e,t){return n=>H(e,t,n)}function En(e){return typeof e==`number`?Tn:typeof e==`string`?Ot(e)?_n:B.test(e)?Sn:An:Array.isArray(e)?Dn:typeof e==`object`?B.test(e)?Sn:On:_n}function Dn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>En(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function On(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=En(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function kn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var An=(e,t)=>{let n=V.createTransformer(t),r=cn(e),i=cn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Cn.has(e)&&!i.values.length||Cn.has(t)&&!r.values.length?wn(e,t):ze(Dn(kn(r,i),i.values),n):(`${e}${t}`,_n(e,t))},jn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Mn(e,t){let n=jn.exec(e);if(!n)return;let r=jn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>wt(H(a,o,e))+i}function Nn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return H(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Mn(e,t);if(n)return n}return En(e)(e,t)}var Pn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>F(t),now:()=>I.isProcessing?I.timestamp:L.now()}},Fn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},In=2e4;function Ln(e,t=50,n=In,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Rn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ln(r),In);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:N(i)}}var U={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 zn(e,t){return e*Math.sqrt(1-t*t)}var Bn=12;function Vn(e,t,n){let r=n;for(let n=1;n<Bn;n++)r-=e(r)/t(r);return r}var Hn=.001;function Un({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;U.maxDuration;let o=1-t;o=k(U.minDamping,U.maxDamping,o),e=k(U.minDuration,U.maxDuration,N(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=zn(t,o),c=Math.exp(-i);return Hn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=zn(t*t,o);return(-i(t)+Hn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Vn(i,a,s);if(e=M(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Wn=[`duration`,`bounce`],Gn=[`stiffness`,`damping`,`mass`];function Kn(e,t){return t.some(t=>e[t]!==void 0)}function qn(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!Kn(e,Gn)&&Kn(e,Wn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*k(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=Un({...e,velocity:0});t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}}return t}function Jn(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d}=qn({...n,velocity:-N(n.velocity||0)}),f=s/(2*Math.sqrt(o*c)),p=N(Math.sqrt(o/c)),m=f*p,h={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},g=()=>{let e=Math.abs(h.delta)<5;h.restSpeed=n.restSpeed||(e?U.restSpeed.granular:U.restSpeed.default),h.restDelta=n.restDelta||(e?U.restDelta.granular:U.restDelta.default)};g();let _,v,y;if(f<1){let e=zn(p,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};y=()=>{t.A=(h.velocity+m*h.delta)/e,t.sinC=m*t.A+h.delta*e,t.cosC=m*h.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-m*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};_=e=>(n(e),h.target-t.env*(t.A*t.sin+h.delta*t.cos)),v=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(f===1){_=e=>h.target-Math.exp(-p*e)*(h.delta+(h.velocity+p*h.delta)*e);let e={C:0};y=()=>{e.C=h.velocity+p*h.delta},v=t=>Math.exp(-p*t)*(p*e.C*t-h.velocity)}else{let e=p*Math.sqrt(f*f-1);_=t=>{let n=Math.exp(-m*t),r=Math.min(e*t,300);return h.target-n*((h.velocity+m*h.delta)*Math.sinh(r)+e*h.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};y=()=>{t.P=(h.velocity+m*h.delta)/e,t.sinh=m*t.P-h.delta*e,t.cosh=m*h.delta-t.P*e},v=n=>{let r=Math.exp(-m*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}y();let b=!Kn(n,Gn)&&Kn(n,Wn),x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{h.target=e[e.length-1],h.delta=h.target-e[0],h.velocity=b?0:-N(t),n.restSpeed&&n.restDelta||g(),S.calculatedDuration=x,a.done=!1,y()},velocity:e=>M(v(e)),next:e=>{let t=_(e);if(d)a.done=e>=l;else{let n=M(v(e));a.done=Math.abs(n)<=h.restSpeed&&Math.abs(h.target-t)<=h.restDelta}return a.value=a.done?h.target:t,a},toString:()=>{let e=Math.min(Ln(S),In),t=Fn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Jn.applyToOptions=e=>{let t=Rn(e,100,Jn);return e.ease=t.ease,e.duration=M(t.duration),e.type=`keyframes`,e};function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Jn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Xn(e,t,n){let r=[],i=n||A.mix||Nn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ze(Array.isArray(t)?t[n]||j:t,a)),r.push(a)}return r}function Zn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Xn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Be(e[r],e[r+1],n);return s[r](i)};return n?t=>l(k(e[0],e[a-1],t)):l}function Qn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Be(0,t,r);e.push(H(n,1,i))}}function $n(e){let t=[0];return Qn(t,e.length-1),t}function er(e,t){return e.map(e=>e*t)}function tr(e,t){return e.map(()=>t||lt).splice(0,e.length-1)}function nr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=dt(r)?r.map(gt):gt(r),a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(A.mix||Nn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?k(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Zn(er(n&&n.length===t.length?n:$n(t),e),t,{ease:Array.isArray(i)?i:tr(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var rr=5;function ir(e,t,n){let r=Math.max(t-rr,0);return He(n-e(r),t-r)}function ar(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):ir(t=>e.next(t).value,t,e.next(t).value)}var or=e=>e!==null;function sr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(or),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var cr={decay:Yn,inertia:Yn,tween:nr,keyframes:nr,spring:Jn};function lr(e){typeof e.type==`string`&&(e.type=cr[e.type])}function ur(e,t){return{kind:e,animation:t,timestamp:L.now(),frameTimestamp:I.timestamp,frameIsProcessing:I.isProcessing}}function dr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...ur(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function fr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...ur(`layout-animation-start`,e),node:t})}catch{}}var pr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},mr=e=>e/100,hr=class extends pr{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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),dr(this,this.options)}initAnimation(){let{options:e}=this;lr(e);let{type:t=nr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||nr;s!==nr&&typeof o[0]!=`number`&&(this.mixKeyframes=ze(mr,Nn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ln(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=k(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Yn&&(b.value=sr(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return N(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(this.currentTime)}set time(e){e=M(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(){return ar(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Pn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(L.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(),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 gr(e){return new hr(e)}var _r=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function vr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_r.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var yr=/\b([a-z-]*)\(.*?\)/gu,br={...V,getAnimatableNone:e=>{let t=e.match(yr);return t?t.map(vr).join(` `):e}},xr={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Sr={...jt,transform:Math.round},Cr={rotate:Gt,pathRotation:Gt,rotateX:Gt,rotateY:Gt,rotateZ:Gt,scale:Nt,scaleX:Nt,scaleY:Nt,scaleZ:Nt,skew:Gt,skewX:Gt,skewY:Gt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Mt,originX:Jt,originY:Jt,originZ:z},W={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...Cr,zIndex:Sr,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:Sr},wr={...W,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:br,WebkitFilter:br,mask:xr,WebkitMask:xr},Tr=e=>wr[e],Er=new Set([br,xr]);function Dr(e,t){let n=Tr(e);return Er.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Or(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var kr=e=>e*180/Math.PI,Ar=e=>Mr(kr(Math.atan2(e[1],e[0]))),jr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ar,rotateZ:Ar,skewX:e=>kr(Math.atan(e[1])),skewY:e=>kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mr=e=>(e%=360,e<0&&(e+=360),e),Nr=Ar,Pr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ir={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pr,scaleY:Fr,scale:e=>(Pr(e)+Fr(e))/2,rotateX:e=>Mr(kr(Math.atan2(e[6],e[5]))),rotateY:e=>Mr(kr(Math.atan2(-e[2],e[0]))),rotateZ:Nr,rotate:Nr,skewX:e=>kr(Math.atan(e[4])),skewY:e=>kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lr(e){return+!!e.includes(`scale`)}function Rr(e,t){if(!e||e===`none`)return Lr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ir,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jr,i=t}if(!i)return Lr(t);let a=r[t],o=i[1].split(`,`).map(Br);return typeof a==`function`?a(o):o[a]}var zr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Rr(n,t)};function Br(e){return parseFloat(e.trim())}var Vr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],G=new Set([...Vr,`pathRotation`]),Hr=e=>e===jt||e===z,Ur=new Set([`x`,`y`,`z`]),Wr=Vr.filter(e=>!Ur.has(e));function Gr(e){let t=[];return Wr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Kr=new Set([`bottom`,`right`]);function qr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Jr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>qr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>qr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Rr(e,`x`),y:({transform:e})=>Rr(e,`y`)};Jr.translateX=Jr.x,Jr.translateY=Jr.y;var Yr=new Set,Xr=!1,Zr=!1,Qr=!1;function $r(){if(Zr){let e=[],t=new Set,n=new Set;Yr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Kr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Gr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Zr=!1,Xr=!1,Yr.forEach(e=>e.complete(Qr)),Yr.clear()}function ei(){Yr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zr=!0)})}function ti(){Qr=!0,ei(),$r(),Qr=!1}function ni(e,t,n){if(typeof e==`string`){if(Fe(e)||Le(e))return parseFloat(e);if(!V.test(e)&&V.test(n))return Dr(t,n)}return e??void 0}var ri=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Yr.add(this),Xr||(Xr=!0,P.read(ei),P.resolveKeyframes($r))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=ni(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Yr.delete(this)}cancel(){this.state===`scheduled`&&(Yr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ii=e=>e.startsWith(`--`);function ai(e,t,n){ii(t)?e.style.setProperty(t,n):e.style[t]=n}var oi={};function si(e,t){let n=Re(e);return()=>oi[t]??n()}var ci=si(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),li=si(()=>window.ViewTimeline!==void 0,`viewTimeline`),ui=si(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),di=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fi={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:di([0,.65,.55,1]),circOut:di([.55,0,1,.45]),backIn:di([.31,.01,.66,-.59]),backOut:di([.33,1.53,.69,.99])};function pi(e,t){if(e)return typeof e==`function`?ui()?Fn(e,t):`ease-out`:pt(e)?di(e):Array.isArray(e)?e.map(e=>pi(e,t)||fi.easeOut):fi[e]}function mi(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=pi(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function hi(e){return typeof e==`function`&&`applyToOptions`in e}function gi({type:e,...t}){return hi(e)&&ui()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var _i=class extends pr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=gi(e);this.animation=mi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=sr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ai(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},dr(this,e,c)}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;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return N(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=M(e),t&&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?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ci()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),j):r(this)}},vi={anticipate:rt,backInOut:nt,circInOut:ot};function yi(e){return e in vi}function bi(e){typeof e.ease==`string`&&yi(e.ease)&&(e.ease=vi[e.ease])}var xi=10,Si=class extends _i{constructor(e){bi(e),lr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new hr({...a,autoplay:!1}),s=Math.max(xi,L.now()-this.startTime),c=k(0,xi,s-xi),l=o.sample(s).value,{name:u}=this.options;i&&u&&ai(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ci=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function wi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ti(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ci(i,t),s=Ci(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):wi(e)||(n===`spring`||hi(n))&&r}function Ei(e){e.duration=0,e.type=`keyframes`}var Di=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Oi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ki(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Oi.test(e[t]))return!0;return!1}var Ai=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ji=Re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Mi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Di.has(n)||Ai.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ji()&&(Di.has(n)||Ai.has(n)&&ki(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ni=40,Pi=class extends pr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ri;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let u=!0;Ti(e,i,a,o)||(u=!1,(A.instantAnimations||!s)&&l?.(sr(e,n,t)),e[0]=e[e.length-1],Ei(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ni?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&Mi(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new Si(n)}catch{m=new hr(n)}}else m=new hr(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ti()),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()}},Fi=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Ii(this.animations,`duration`)}get iterationDuration(){return Ii(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Ii(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Li=class extends Fi{then(e,t){return this.finished.finally(e).then(()=>{})}},Ri=class extends _i{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},dr(this,{})}},zi=new WeakMap,Bi=(e,t=``)=>`${e}:${t}`;function Vi(e){let t=zi.get(e);return t||(t=new Map,zi.set(e,t)),t}function Hi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Ui=30,Wi=e=>!isNaN(parseFloat(e)),Gi={current:void 0},Ki=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Wi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Ve)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Ve,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){P.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Gi.current&&Gi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ui)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ui);return He(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function K(e,t){return new Ki(e,t)}function qi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ji(e,t){let n=e?.[t]??e?.default??e;return n===e?n:qi(n,e)}var Yi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zi={type:`keyframes`,duration:.8},Qi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$i=(e,{keyframes:t})=>t.length>2?Zi:G.has(e)?e.startsWith(`scale`)?Xi(t[1]):Yi:Qi,ea=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ta(e){for(let t in e)if(!ea.has(t))return!0;return!1}var na=(e,t,n,r={},i,a)=>o=>{let s=Ji(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=M(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ta(s)||Object.assign(u,$i(e,u)),u.duration&&=M(u.duration),u.repeatDelay&&=M(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ei(u),u.delay===0&&(d=!0)),(A.instantAnimations||A.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ei(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=sr(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new hr(u):new Pi(u)},ra=20;function ia(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function aa(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function oa(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function sa({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=oa(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=oa(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?aa(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?aa(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Ke(-180,180,f-d):0;return e=>{let t={x:ia(e,r.x,u.x,o.x),y:ia(e,r.y,u.y,o.y)};return i&&(t.rotate=Ke(-180,180,aa(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function ca(e={}){let t=sa(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<ra))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...Ji(r||{},`x`)};delete g.path;let _=K(0);_.start(na(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var la=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ua(e){let t=la.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function da(e,t,n=1){`${e}`;let[r,i]=ua(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Fe(e)?parseFloat(e):e}return Ot(i)?da(i,t,n+1):i}function fa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function pa(e,t,n,r){if(typeof t==`function`){let[i,a]=fa(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=fa(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ma(e,t,n){let r=e.getProps();return pa(r,t,n===void 0?r.custom:n,e)}var ha=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Vr]),ga=e=>Array.isArray(e);function _a(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,K(n))}function va(e){return ga(e)?e[e.length-1]||0:e}function ya(e,t){let{transitionEnd:n={},transition:r={},...i}=ma(e,t)||{};i={...i,...n};for(let t in i)_a(e,t,va(i[t]))}var q=e=>!!(e&&e.getVelocity);function ba(e){return!!(q(e)&&e.add)}function xa(e,t){let n=e.getValue(`willChange`);if(ba(n))return n.add(t);if(!n&&A.WillChange){let n=new A.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Sa(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ca=`framerAppearId`,wa=`data-`+Sa(Ca);function Ta(e){return e.props[wa]}var Ea=typeof window<`u`;function Da({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Oa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?qi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Da(f,t))continue;let o={delay:n,...Ji(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let p=!1;if(Ea&&window.MotionHandoffAnimation){let n=Ta(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,p=!0)}}xa(e,t);let m=l??e.shouldReduceMotion;r.start(na(t,r,i,m&&ha.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>P.update(()=>{o&&ya(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ka(e,t,n={}){let r=ma(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Oa(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Aa(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Aa(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ka(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Hi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ja(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ka(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ka(e,t,n);else{let i=typeof t==`function`?ma(e,t,n.custom):t;r=Promise.all(Oa(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Ma={test:e=>e===`auto`,parse:e=>e},Na=e=>t=>t.test(e),Pa=[jt,z,R,Gt,qt,Kt,Ma],Fa=e=>Pa.find(Na(e));function Ia(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Le(e)}var La=new Set([`auto`,`none`,`0`]);function Ra(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!La.has(t)&&sn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Dr(n,i))}var za=class extends ri{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ot(r))){let i=da(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ha.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Fa(r),o=Fa(i);if(At(r)!==At(i)&&Jr[n]){this.needsMeasurement=!0;return}if(a!==o){if(Hr(a)&&Hr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Jr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ia(e[t]))&&n.push(t);n.length&&Ra(e,n,t)}measure(){let{element:e,name:t}=this;return Jr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ba=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Va=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Ba,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function Ha(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Va.has(t)&&(e[n]=e[n]+`px`)}function Ua(e){return!!(typeof e==`function`&&ui()||!e||typeof e==`string`&&(e in fi||ui())||pt(e)||Array.isArray(e)&&e.every(Ua))}var Wa=Re(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),Ga=[];function Ka(e){typeof e.test==`function`&&e.read,qa(e),Ga.unshift(e)}function qa(e){Ae(Ga,e)}function Ja(e){return Ga.find(t=>t.test(e))}function Ya(e,t,n={},r){let i=[],{velocity:a}=n,o=n.reduceMotion??r?.shouldReduceMotion;for(let s in t){if(s===`transition`||s===`transitionEnd`)continue;let c=t[s];if(c===void 0)continue;let l=e(s),u=l.get();if(u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a){P.update(()=>l.set(c));continue}l.start(na(s,l,c,o&&ha.has(s)?{type:!1}:n,r)),l.animation&&i.push(l.animation)}let{transitionEnd:s}=t;if(s){let t=()=>P.update(()=>{for(let t in s)e(t).set(s[t])});i.length?Promise.all(i).then(t):t()}return i}function Xa(e,t,n,r,i){return Ya(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Za(i)??e.read(t,r,i),`${r}`}a=K(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Za(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Qa(e){return Ie(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function $a(e){return Ie(e)&&`ownerSVGElement`in e}var eo=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function to(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function no(e){let t=(t,n)=>{let r=to(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var ro=class{constructor(e=P.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function io(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new ro(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var ao={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},oo={};function so(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].get();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(oo[i]||(oo[i]=(ao[i]||i)+`(`))+eo(a,Cr[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+eo(i,Cr.pathRotation)+`)`),t||`none`}var co=new Set([`originX`,`originY`,`originZ`]),lo=(e,t)=>eo(e.get(t)?.get(),W[t]),uo=(e,t,n,r)=>{let i,a;if(G.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Vr.indexOf(e)-Vr.indexOf(t)))}t.get(`transform`)||(!Qa(e)&&!t.get(`transformBox`)&&uo(e,t,`transformBox`,new Ki(`fill-box`)),t.set(`transform`,new Ki(`none`),()=>{e.style.transform=so(t)})),a=t.get(`transform`)}else co.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Ki(``),()=>{let n=lo(t,`originX`)??`50%`,r=lo(t,`originY`)??`50%`,i=lo(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ii(n)?()=>{e.style.setProperty(n,r.get())}:()=>{e.style[n]=eo(r.get(),W[n])};return t.set(n,r,i,a)},fo=e=>Qa(e)||$a(e),po=(e,t)=>{if(G.has(t))return zr(e,t);let n=getComputedStyle(e),r=ii(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},mo=io(uo,{test:fo,read:po}),ho=no(mo),go={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},_o=Vr.length;function vo(e,t,n){let r=``,i=!0;for(let a=0;a<_o;a++){let o=Vr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=eo(s,W[o]);if(!c){i=!1;let t=go[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${eo(a,W.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function yo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(G.has(e)){o=!0;continue}if(Et(e)){i[e]=n;continue}{let t=eo(n,W[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=vo(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var bo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},xo={offset:`strokeDashoffset`,array:`strokeDasharray`};function So(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?bo:xo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Co=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function wo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(yo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Co)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&So(d,i,a,o,!1)}function To(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Eo=(e,t,n,r,i=n)=>{let a=To(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Sa(i));let o=W[n]||W[i],s=a?()=>{e[i]=eo(r.get(),W[n])}:()=>{let t=eo(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},Do=no(io(Eo));function Oo(e,t,n,r){return P.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Ki(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var ko=(e,t,n,r)=>n.startsWith(`path`)?Oo(e,t,n,r):n.startsWith(`attr`)?Eo(e,t,n,r,No(n)):(n in e.style?uo:Eo)(e,t,n,r),Ao=(e,t)=>G.has(t)?W[t]?.default||0:Co.includes(t)?po(e,t):(t=No(t),e.getAttribute(Sa(t))??e.getAttribute(t)??void 0),jo=io(ko,{test:$a,read:Ao}),Mo=no(jo);function No(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Po({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Fo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Io(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Lo(e){return e===void 0||e===1}function Ro({scale:e,scaleX:t,scaleY:n}){return!Lo(e)||!Lo(t)||!Lo(n)}function zo(e){return Ro(e)||Bo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bo(e){return Vo(e.x)||Vo(e.y)}function Vo(e){return e&&e!==`0%`}function Ho(e,t,n){return n+t*(e-n)}function Uo(e,t,n,r,i){return i!==void 0&&(e=Ho(e,i,r)),Ho(e,n,r)+t}function Wo(e,t=0,n=1,r,i){e.min=Uo(e.min,t,n,r,i),e.max=Uo(e.max,t,n,r,i)}function Go(e,{x:t,y:n}){Wo(e.x,t.translate,t.scale,t.originPoint),Wo(e.y,n.translate,n.scale,n.originPoint)}var Ko=.999999999999,qo=1.0000000000001;function Jo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(J(e.x,-a.scroll.offset.x),J(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Go(e,o)),r&&zo(a.latestValues)&&Zo(e,a.latestValues,a.layout?.layoutBox))}t.x<qo&&t.x>Ko&&(t.x=1),t.y<qo&&t.y>Ko&&(t.y=1)}function J(e,t){e.min+=t,e.max+=t}function Yo(e,t,n,r,i=.5){Wo(e,t,n,H(e.min,e.max,i),r)}function Xo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Zo(e,t,n){let r=n??e;Yo(e.x,Xo(t.x,r.x),t.scaleX,t.scale,t.originX),Yo(e.y,Xo(t.y,r.y),t.scaleY,t.scale,t.originY)}function Qo(e,t){return Po(Io(e.getBoundingClientRect(),t))}function $o(e,t,n){let r=Qo(e,n),{scroll:i}=t;return i&&(J(r.x,i.offset.x),J(r.y,i.offset.y)),r}var es={},ts=e=>$a(e)?jo:mo,ns=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=za}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Qo(this.current)}getProps(){return es}};function rs(e,t,n,r){if(r)return Ya(e=>r.getValue(e,null),t,n,r);let i=ts(e);return Xa(i,e,t,n,new ns(i,e))}function is(e,t){let n=ts(e).state(e);if(!n)return;let{transformKeys:r}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&r?.length||t.addValue(n,e)})}var as=io((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ie(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:os,cancel:ss}=bt(queueMicrotask,!1),Y={x:!1,y:!1};function cs(){return Y.x||Y.y}function ls(e){return e===`x`||e===`y`?Y[e]?null:(Y[e]=!0,()=>{Y[e]=!1}):Y.x||Y.y?null:(Y.x=Y.y=!0,()=>{Y.x=Y.y=!1})}function us(e,t){let n=to(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ds(e){return!(e.pointerType===`touch`||cs())}function fs(e,t,n={}){let[r,i,a]=us(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ds(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ps=(e,t)=>t?e===t||ps(e,t.parentElement):!1,ms=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,hs=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function gs(e){return hs.has(e.tagName)||e.isContentEditable===!0}var _s=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function vs(e){return _s.has(e.tagName)||e.isContentEditable===!0}var ys=new WeakSet;function bs(e){return t=>{t.key===`Enter`&&e(t)}}function xs(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ss=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=bs(()=>{if(ys.has(n))return;xs(n,`down`);let e=bs(()=>{xs(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>xs(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Cs(e){return ms(e)&&!cs()}var ws=new WeakSet;function Ts(e,t,n={}){let[r,i,a]=us(e,n),o=e=>{let r=e.currentTarget;if(!Cs(e)||ws.has(e))return;ys.add(r),n.stopPropagation&&ws.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ys.has(r)&&ys.delete(r),Cs(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ps(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Qa(e)&&(e.addEventListener(`focus`,e=>Ss(e,i)),!gs(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Es(e,t){let n=window.getComputedStyle(e);return ii(t)?n.getPropertyValue(t):n[t]}var Ds=new WeakMap,Os,ks=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:$a(r)&&`getBBox`in r?r.getBBox()[t]:r[n],As=ks(`inline`,`width`,`offsetWidth`),js=ks(`block`,`height`,`offsetHeight`);function Ms({target:e,borderBoxSize:t}){Ds.get(e)?.forEach(n=>{n(e,{get width(){return As(e,t)},get height(){return js(e,t)}})})}function Ns(e){e.forEach(Ms)}function Ps(){typeof ResizeObserver>`u`||(Os=new ResizeObserver(Ns))}function Fs(e,t){Os||Ps();let n=to(e);return n.forEach(e=>{let n=Ds.get(e);n||(n=new Set,Ds.set(e,n)),n.add(t),Os?.observe(e)}),()=>{n.forEach(e=>{let n=Ds.get(e);n?.delete(t),n?.size||Os?.unobserve(e)})}}var Is=new Set,Ls;function Rs(){Ls=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Is.forEach(t=>t(e))},window.addEventListener(`resize`,Ls)}function zs(e){return Is.add(e),Ls||Rs(),()=>{Is.delete(e),!Is.size&&typeof Ls==`function`&&(window.removeEventListener(`resize`,Ls),Ls=void 0)}}function Bs(e,t){return typeof e==`function`?zs(e):Fs(e,t)}function Vs(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return P.preUpdate(r,!0),()=>F(r)}var X={value:null,addProjectionMetrics:null};function Hs(){X.value=null,X.addProjectionMetrics=null}function Us(){if(X.value)throw Hs(),Error(`Stats are already being measured`);let e=X;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function Ws(e){return $a(e)&&e.tagName===`svg`}function Gs(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Ks(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Gs(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=gt(r)(s/t)*t}return t+s}}function qs(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Zn(i,a,o);return t?s(r):s}var Js=new Set,Ys=({timestamp:e})=>{Js.forEach(t=>t.tick(e))},Xs=class extends pr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,lr(e),this.factory=e.type||nr,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(Js.size||P.update(Ys,!0),Js.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t,o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return ar(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():L.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Js.delete(this),Js.size||F(Ys))}};function Zs(e,t){let n=K(q(e)?e.get():e);return Qs(n,e,t),n}function Qs(e,t,n={}){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=ec(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=ec(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new Xs({keyframes:[u,o],velocity:d,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),q(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump($s(t,o),!1)):e.set($s(t,o))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return l}function $s(e,t){return t?e+t:e}function ec(e){return typeof e==`number`?e:parseFloat(e)}function tc(e,t,n){let r=()=>t.set(n()),i=()=>P.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),F(r)})}function nc(e){let t=[];Gi.current=t;let n=e();Gi.current=void 0;let r=K(n);return tc(t,r,e),r}function rc(e,t,n,r){let i=qs(t,n,r);return nc(()=>i(e.get()))}function ic(e,t){return Zs(e,{type:`spring`,...t})}function ac(e,t,n){return Qs(e,t,{type:`spring`,...n})}var oc=[...Pa,B,V],sc=e=>oc.find(Na(e)),cc=0,lc=()=>`motion-view-${cc++}`,uc=e=>e.startsWith(`motion-view-`);function dc(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function fc(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function pc(e,t,n,r,i,a=[],o,s=[],c){let l=to(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??lc();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),dc(e,i,a),fc(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!uc(d)?f=d:(f=lc(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),dc(e,i,a),fc(e,f,o,s,c),f})}function mc(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function hc(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var gc={},_c=null,vc={set:(e,t)=>{gc[e]=t},commit:()=>{_c||(_c=document.createElement(`style`),_c.id=`motion-view`);let e=``;for(let t in gc){let n=gc[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
+
`}_c.textContent=e,document.head.appendChild(_c),gc={}},remove:()=>{_c&&_c.parentElement&&_c.parentElement.removeChild(_c)}};function yc(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function bc(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function xc(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var Sc=[`layout`,`enter`,`exit`,`new`,`old`],Cc=e=>e.split(` `).every(e=>parseFloat(e)===0),wc={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Tc={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Ec=.2;function Dc(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new Fi([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,to(n)),b=pc(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=pc(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=pc(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=kc(Ji(c,n),Ji(Oc(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=M(r.duration);let{delay:i=0,duration:a,ease:o}=gi(r);return{delay:M(i),duration:a,ease:o}},w=new Map,ee=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of Ba)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),te=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ne(e))&&h.add(e)},ne=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>Ec},re=()=>{xc(`root`,n)||vc.set(`:root`,{"view-transition-name":`none`}),vc.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{vc.set(`::view-transition-group(${e})`,{overflow:`clip`}),vc.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{vc.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),vc.commit()},ie=()=>{mc(u,d,f),vc.remove()},ae=async()=>{await t(),b(`new`),ee(`new`),te(),re()},oe;try{b(`old`),ee(`old`),re(),oe=document.startViewTransition(ae)}catch(e){return ie(),Promise.reject(e)}return oe.finished.finally(ie),new Promise((e,t)=>{oe.ready.then(()=>{let t=bc(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of Sc){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=hc(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){Ge(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=kc(Ji(c,m),Ji(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Tc[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=M(f.duration),f.delay&&=M(f.delay),n.push(new _i({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=yc(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new Ri(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:pi(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=M(r.duration)),r=gi(r),d={delay:M(r.delay??0),duration:u&&i!==void 0?M(i):r.duration,easing:u?`linear`:pi(r.ease,r.duration)}}t.updateTiming(d),n.push(new Ri(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Ba){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;Cc(s)&&Cc(c)||n.push(new _i({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new Fi(n))}).catch(()=>oe.updateCallbackDone.then(()=>e(new Fi([])),t))})}function Oc(e,t){for(let n of wc[t]??[]){let t=e?.[n]?.options;if(t)return t}}function kc(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Ac=[],jc=null;function Mc(){jc=null;let[e]=Ac;e&&Nc(e)}function Nc(e){Ae(Ac,e),jc=e,Dc(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Mc)}function Pc(){for(let e=Ac.length-1;e>=0;e--){let t=Ac[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Ac.slice(0,e+1).map(e=>e.update),r=Ac.slice(e+1);t.update=()=>{n.forEach(e=>e())},Ac=[t,...r];break}}(!jc||Ac[0]?.options.interrupt===`immediate`)&&Mc()}function Fc(e){Ac.push(e),os.render(Pc)}var Ic=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=j,this.notifyReject=j,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(j),Fc(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Lc(e,t={}){return new Ic(e,t)}var Rc=()=>({translate:0,scale:1,origin:0,originPoint:0}),zc=()=>({x:Rc(),y:Rc()}),Bc=()=>({min:0,max:0}),Z=()=>({x:Bc(),y:Bc()}),Vc=new WeakMap;function Hc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Uc(e){return typeof e==`string`||Array.isArray(e)}var Wc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Gc=[`initial`,...Wc];function Kc(e){if(Hc(e.animate))return!0;for(let t=0;t<Gc.length;t++)if(Uc(e[Gc[t]]))return!0;return!1}function qc(e){return!!(Kc(e)||e.variants)}function Jc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,K(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,K(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Yc={current:null},Xc={current:!1},Zc=typeof window<`u`;function Qc(){if(Xc.current=!0,Zc){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Yc.current=e.matches;e.addEventListener(`change`,t),t()}else Yc.current=!1}}var $c=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],el={};function tl(e){el=e}function nl(){return el}var rl=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=ri,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=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Kc(t),this.isVariantNode=qc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Vc.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Xc.current||Qc(),this.shouldReduceMotion=Yc.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(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Di.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new _i({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:M(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=G.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 el){let t=el[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<$c.length;t++){let n=$c[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Jc(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=K(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Fe(n)||Le(n))?n=parseFloat(n):typeof n!=`number`&&!V.test(n)&&V.test(t)&&(n=Dr(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=pa(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ve),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){os.render(this.render)}},il=class extends rl{constructor(){super(...arguments),this.KeyframeResolver=za}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},al=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ol(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(z.test(e))e=parseFloat(e);else return e}return`${sl(e,t.target.x)}% ${sl(e,t.target.y)}%`}},ll={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ul={borderRadius:{...cl,applyTo:[...Ba]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:ll};function dl(e){for(let t in e)ul[t]=e[t],Et(t)&&(ul[t].isCSSVariable=!0)}function fl(e,{layout:t,layoutId:n}){return G.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ul[e]||e===`opacity`)}function pl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||fl(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ml(e){return window.getComputedStyle(e)}var hl=class extends il{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ol}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(G.has(t))return this.projection?.isProjecting?Lr(t):zr(e,t);{let n=ml(e),r=(Et(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Qo(e,t)}build(e,t,n){yo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return pl(e,t,n)}};function gl(e,t){return e in t}var _l=class extends rl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(gl(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Z()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},vl=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`]),yl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function bl(e,t,n,r){ol(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(vl.has(n)?n:Sa(n),t.attrs[n])}function xl(e,t,n){let r=pl(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=Vr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Sl=class extends il{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(G.has(t)){let e=Tr(t);return e&&e.default||0}if(Co.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=vl.has(t)?t:Sa(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return xl(e,t,n)}build(e,t,n){wo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){bl(e,t,n,r)}mount(e){this.isSVGTag=yl(e.tagName),super.mount(e)}},Cl=Gc.length;function wl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&wl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Cl;n++){let r=Gc[n],i=e.props[r];(Uc(i)||i===!1)&&(t[r]=i)}return t}function Tl(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var El=[...Wc].reverse(),Dl=Wc.length;function Ol(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ja(e,t,n)))}function kl(e){let t=Ol(e),n=Ml(),r=!0,i=!1,a=t=>(n,r)=>{let i=ma(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=wl(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Dl;t++){let p=El[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Uc(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Hc(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Al(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=ga(t)&&ga(n)?!Tl(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ma(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Hi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ma(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ml(),i=!0}}}function Al(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Tl(t,e):!1}function jl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ml(){return{animate:jl(!0),whileInView:jl(),whileHover:jl(),whileTap:jl(),whileDrag:jl(),whileFocus:jl(),exit:jl()}}function Nl(e,t){e.min=t.min,e.max=t.max}function Q(e,t){Nl(e.x,t.x),Nl(e.y,t.y)}function Pl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Fl=.9999,Il=1.0001,Ll=-.01,Rl=.01;function $(e){return e.max-e.min}function zl(e,t,n){return Math.abs(e-t)<=n}function Bl(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Fl&&e.scale<=Il||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ll&&e.translate<=Rl||isNaN(e.translate))&&(e.translate=0)}function Vl(e,t,n,r){Bl(e.x,t.x,n.x,r?r.originX:void 0),Bl(e.y,t.y,n.y,r?r.originY:void 0)}function Hl(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+$(t)}function Ul(e,t,n,r){Hl(e.x,t.x,n.x,r?.x),Hl(e.y,t.y,n.y,r?.y)}function Wl(e,t,n,r=0){let i=r?H(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+$(t)}function Gl(e,t,n,r){Wl(e.x,t.x,n.x,r?.x),Wl(e.y,t.y,n.y,r?.y)}function Kl(e,t,n,r,i){return e-=t,e=Ho(e,1/n,r),i!==void 0&&(e=Ho(e,1/i,r)),e}function ql(e,t=0,n=1,r=.5,i,a=e,o=e){if(R.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=Kl(e.min,t,n,s,i),e.max=Kl(e.max,t,n,s,i)}function Jl(e,t,[n,r,i],a,o){ql(e,t[n],t[r],t[i],t.scale,a,o)}var Yl=[`x`,`scaleX`,`originX`],Xl=[`y`,`scaleY`,`originY`];function Zl(e,t,n,r){Jl(e.x,t,Yl,n?n.x:void 0,r?r.x:void 0),Jl(e.y,t,Xl,n?n.y:void 0,r?r.y:void 0)}function Ql(e){return e.translate===0&&e.scale===1}function $l(e){return Ql(e.x)&&Ql(e.y)}function eu(e,t){return e.min===t.min&&e.max===t.max}function tu(e,t){return eu(e.x,t.x)&&eu(e.y,t.y)}function nu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ru(e,t){return nu(e.x,t.x)&&nu(e.y,t.y)}function iu(e){return $(e.x)/$(e.y)}function au(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ou(e){return[e(`x`),e(`y`)]}function su(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var cu=Ba.length,lu=e=>typeof e==`string`?parseFloat(e):e,uu=e=>typeof e==`number`||z.test(e);function du(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,pu(r)),e.opacityExit=H(t.opacity??1,0,mu(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<cu;i++){let a=Ba[i],o=fu(t,a),s=fu(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||uu(o)===uu(s)?(e[a]=Math.max(H(lu(o),lu(s),r),0),(R.test(s)||R.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function fu(e,t){return e[t]===void 0?e.borderRadius:e[t]}var pu=hu(0,.5,at),mu=hu(.5,.95,j);function hu(e,t,n){return r=>r<e?0:r>t?1:n(Be(e,t,r))}function gu(e,t,n){let r=q(e)?e:K(e);return r.start(na(``,r,t,n)),r.animation}function _u(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var vu=(e,t)=>e.depth-t.depth,yu=class{constructor(){this.children=[],this.isDirty=!1}add(e){ke(this.children,e),this.isDirty=!0}remove(e){Ae(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vu),this.isDirty=!1,this.children.forEach(e)}};function bu(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(F(r),e(a-t))};return P.setup(r,!0),()=>F(r)}function xu(e,t){return bu(e,M(t))}function Su(e){return q(e)?e.get():e}var Cu=class{constructor(){this.members=[]}add(e){ke(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Ae(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ae(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.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)}},wu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Eu=[``,`X`,`Y`,`Z`],Du=1e3,Ou=0;function ku(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Au(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ta(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Au(r)}function ju({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ou++,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,X.value&&(Tu.nodes=Tu.calculatedTargetDeltas=Tu.calculatedProjections=0),this.nodes.forEach(Pu),this.nodes.forEach(Uu),this.nodes.forEach(Wu),this.nodes.forEach(Fu),X.addProjectionMetrics&&X.addProjectionMetrics(Tu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new yu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ve),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=$a(t)&&!Ws(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=bu(i,250),wu.hasAnimatedSinceResize&&(wu.hasAnimatedSinceResize=!1,this.nodes.forEach(Hu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Zu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ru(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ji(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Hu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),F(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(Gu),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Au(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ru),this.nodes.forEach(Lu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bu),this.nodes.forEach(Vu),this.nodes.forEach(Mu),this.nodes.forEach(Nu)):this.nodes.forEach(zu),this.clearAllSnapshots();let e=L.now();I.delta=k(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,xt.update.process(I),xt.preRender.process(I),xt.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,os.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Iu),this.sharedNodes.forEach(Ku)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!$l(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||zo(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),td(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rd))){let{scroll:e}=this.root;e&&(J(t.x,e.offset.x),J(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(Q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Q(t,e),J(t.x,i.offset.x),J(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Z();Q(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(J(r.x,-n.scroll.offset.x),J(r.y,-n.scroll.offset.y)),zo(n.latestValues)&&Zo(r,n.latestValues,n.layout?.layoutBox)}return zo(this.latestValues)&&Zo(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Z();Q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!zo(n.latestValues))continue;let r;n.instance&&(Ro(n.latestValues)&&n.updateSnapshot(),r=Z(),Q(r,n.measurePageBox())),Zl(t,n.latestValues,n.snapshot?.layoutBox,r)}return zo(this.latestValues)&&Zl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=I.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ul(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Q(this.target,this.layout.layoutBox),Go(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),X.value&&Tu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ro(this.parent.latestValues)||Bo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Gl(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Jo(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pl(this.prevProjectionDelta.x,this.projectionDelta.x),Pl(this.prevProjectionDelta.y,this.projectionDelta.y)),Vl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!au(this.projectionDelta.x,this.prevProjectionDelta.x)||!au(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),X.value&&Tu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zc(),this.projectionDelta=zc(),this.projectionDeltaWithTransform=zc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=zc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Z(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Xu));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=H(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=H(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(qu(o.x,e.x,n),qu(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Yu(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&tu(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Z(),Q(f,this.relativeTarget)),c&&(this.animationValues=a,du(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(F(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{wu.hasAnimatedSinceResize=!0,this.motionValue||=K(0),this.motionValue.jump(0,!1),this.currentAnimation=gu(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),fr(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Du),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&nd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Z();let t=$(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=$(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Q(t,i),Zo(t,r),Vl(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cu),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ku(`z`,e,r,this.animationValues);for(let t=0;t<Eu.length;t++)ku(`rotate${Eu[t]}`,e,r,this.animationValues),ku(`skew${Eu[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Su(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Su(t?.pointerEvents)||``),this.hasProjected&&!zo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=su(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in ul){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ul[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Su(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Lu),this.root.sharedNodes.clear()}}}function Mu(e){e.updateLayout()}function Nu(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)ou(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Nl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else nd(i,t.layoutBox,n)&&ou(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=zc();Vl(o,n,t.layoutBox);let s=zc();a?Vl(s,e.applyTransform(r,!0),t.measuredBox):Vl(s,n,t.layoutBox);let c=!$l(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Z();Gl(s,t.layoutBox,i.layoutBox,o);let c=Z();Gl(c,n,a.layoutBox,o),ru(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Pu(e){X.value&&Tu.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Fu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Iu(e){e.clearSnapshot()}function Lu(e){e.clearMeasurements()}function Ru(e){e.isLayoutDirty=!0,e.updateLayout()}function zu(e){e.isLayoutDirty=!1}function Bu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Vu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Hu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uu(e){e.resolveTargetDelta()}function Wu(e){e.calcProjection()}function Gu(e){e.resetSkewAndRotation()}function Ku(e){e.removeLeadSnapshot()}function qu(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ju(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function Yu(e,t,n,r){Ju(e.x,t.x,n.x,r),Ju(e.y,t.y,n.y,r)}function Xu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Zu={duration:.45,ease:[.4,0,.1,1]},Qu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$u=Qu(`applewebkit/`)&&!Qu(`chrome/`)?Math.round:j;function ed(e){e.min=$u(e.min),e.max=$u(e.max)}function td(e){ed(e.x),ed(e.y)}function nd(e,t,n){return e===`position`||e===`preserve-aspect`&&!zl(iu(t),iu(n),.2)}function rd(e){return e!==e.root&&e.scroll?.wasRoot}var id=ju({attachResizeListener:(e,t)=>_u(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ad=e=>!e.isLayoutDirty&&e.willUpdate(!1);function od(){let e=new Set,t=new WeakMap,n=()=>e.forEach(ad);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var sd={current:void 0},cd=ju({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sd.current){let e=new id({});e.mount(window),e.setOptions({layoutScroll:!0}),sd.current=e}return sd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ld=`[data-layout],[data-layout-id]`,ud=new WeakMap,dd;function fd(e){let t=[];return e instanceof HTMLElement&&e.matches(ld)&&t.push(e),e.querySelectorAll(ld).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function pd(){if(I.isProcessing)return;let e=L.now();I.delta=k(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,xt.update.process(I),xt.preRender.process(I),xt.render.process(I),I.isProcessing=!1}function md(e){let t=e.parentElement;for(;t;){let e=ud.get(t);if(e&&e.instance)return e;t=t.parentElement}}function hd(){return new hl({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function gd(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function _d(e,t){let n=ud.get(e);if(n)n.setOptions(gd(e,t));else{let r=Vc.get(e);r||(r=hd(),is(e,r)),e.style.transform&&!zo(r.latestValues)&&(e.style.transform=``),n=new cd(r.latestValues,md(e)),r.projection=n,n.setOptions({...gd(e,t),visualElement:r}),n.mount(e),ud.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function vd(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function yd(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),ud.delete(e)}function bd(){let e=dd;dd=void 0,pd();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of vd(t.keys())){let r=t.get(e),i=_d(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),os.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var xd=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),dd||(dd=[],queueMicrotask(bd)),dd.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return fd(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of fd(this.scope)){if(this.tracked.has(t))continue;let n=_d(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),yd(n,t)}}),t.relegate())return;n.remove()}yd(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new Fi([...e]))}};function Sd(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:to(e)[0]??document,updateDom:t,defaultOptions:n}}var Cd=P,wd=_t.reduce((e,t)=>(e[t]=e=>F(e),e),{}),Td=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Ed(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Dd(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ed(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ed(e[t],null)}}}}function Od(...e){return ue(Dd(...e),e)}var kd=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Qa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Qa(e)&&e.offsetWidth||0,r=Qa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Ad({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=me(),c=D(null),l=D({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=T(Td),d=Od(c,o===!1?void 0:e.props?.ref??e?.ref);return ge(()=>{let{width:e,height:i,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!i)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);u&&(y.nonce=u);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
3
3
|
[data-motion-pop-id="${s}"] {
|
|
4
4
|
position: absolute !important;
|
|
5
5
|
width: ${e}px !important;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
${_}px !important;
|
|
8
8
|
${v}px !important;
|
|
9
9
|
}
|
|
10
|
-
`),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),i(Dd,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:x(e,{ref:d})})}var kd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=k(Ad),f=fe(),p=D(n),m=D(r);we(()=>{p.current=n,m.current=r});let h=!0,g=ge(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return o&&h&&(g={...g}),ge(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),E(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Od,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),i(Te.Provider,{value:g,children:e})};function Ad(){return new Map}function jd(e=!0){let t=T(Te);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=fe();E(()=>{if(e)return i(a)},[e]);let o=ce(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Md(){return Nd(T(Te))}function Nd(e){return e===null||e.isPresent}var Pd=e=>e.key||``;function Fd(e){let t=[];return c.forEach(e,e=>{te(e)&&t.push(e)}),t}var Id=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=jd(c),m=ge(()=>Fd(e),[e]),h=c&&!f?[]:m.map(Pd),g=D(!0),_=D(m),v=k(()=>new Map),y=D(new Set),[b,x]=O(m),[S,C]=O(m);we(()=>{c&&!f&&!S.length&&p?.()},[f,c,S.length,p]),we(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=Pd(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m],t=0;for(let n of S){let r=h.indexOf(Pd(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return s===`wait`&&w.length&&(e=w),C(Fd(e)),x(m),null}let{forceRender:ee}=T(Se);return i(r,{children:S.map(e=>{let r=Pd(e),b=c&&!f?!1:m===S||h.includes(r);return i(kd,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(r))return;if(v.has(r))y.current.add(r),v.set(r,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(ee?.(),C(_.current),c&&p?.(),a&&a())},anchorX:l,anchorY:u,children:e},r)})})},Ld=S(null);function Rd(){let e=D(!1);return we(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function zd(){let e=Rd(),[t,n]=O(0),r=ce(()=>{e.current&&n(t+1)},[t]);return[ce(()=>F.postRender(r),[r]),t]}var Bd=e=>e===!0,Vd=e=>Bd(e===!0)||e===`id`,Hd=({children:e,id:t,inherit:n=!0})=>{let r=T(Se),a=T(Ld),[o,s]=zd(),c=D(null),l=r.id||a;c.current===null&&(Vd(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:Bd(n)&&r.group||id()});let u=ge(()=>({...c.current,forceRender:o}),[s]);return i(Se.Provider,{value:u,children:e})},Ud=S({strict:!1}),Wd={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Gd=!1;function Kd(){if(Gd)return;let e={};for(let t in Wd)e[t]={isEnabled:e=>Wd[t].some(t=>!!e[t])};$c(e),Gd=!0}function qd(){return Kd(),el()}function Jd(e){let t=qd();for(let n in e)t[n]={...t[n],...e[n]};$c(t)}function Yd({children:e,features:t,strict:n=!1}){let[,r]=O(!Xd(t)),a=D(void 0);if(!Xd(t)){let{renderer:e,...n}=t;a.current=e,Jd(n)}return E(()=>{Xd(t)&&t().then(({renderer:e,...t})=>{Jd(t),a.current=e,r(!0)})},[]),i(Ud.Provider,{value:{renderer:a.current,strict:n},children:e})}function Xd(e){return typeof e==`function`}function Zd({children:e,...t}){let n=T(Cd);t={...n,...t},t.transition=Wi(t.transition,n.transition),t.isStatic=k(()=>t.isStatic);let r=ge(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Cd.Provider,{value:r,children:e})}var Qd=S({});function $d(e,t){if(Wc(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Vc(t)?t:void 0,animate:Vc(n)?n:void 0}}return e.inherit===!1?{}:t}function ef(e){let{initial:t,animate:n}=$d(e,T(Qd));return ge(()=>({initial:t,animate:n}),[tf(t),tf(n)])}function tf(e){return Array.isArray(e)?e.join(` `):e}var nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)!J(t[r])&&!ul(r,n)&&(e[r]=t[r])}function af({transformTemplate:e},t){return ge(()=>{let n=nf();return go(n,t,e),Object.assign({},n.vars,n.style)},[t])}function of(e,t){let n=e.style||{},r={};return rf(r,n,e),Object.assign(r,af(e,t)),r}function sf(e,t){let n={},r=of(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var cf=()=>({...nf(),attrs:{}});function lf(e,t,n,r){let i=ge(()=>{let n=cf();return xo(n,t,_l(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),i.style={...t,...i.style}}return i}var uf=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function df(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||uf.has(e)}function ff(e,t){return e.startsWith(`on`)?!df(e):t?.(e)??!df(e)}function pf(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(J(e[a])||(ff(a,r)||n===!0&&df(a)||!t&&!df(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var mf=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function hf(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(mf.indexOf(e)>-1||/[A-Z]/u.test(e))}function gf(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??hf(e)?lf:sf)(t,r,i,e),l=pf(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ge(()=>J(f)?f.get():f,[f]);return C(e,{...d,children:p})}function _f({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:vf(n,r,i,e),renderState:t()}}function vf(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=bu(a[e]);let{initial:o,animate:s}=e,c=Wc(e),l=Gc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Bc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=ua(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var yf=e=>(t,n)=>{let r=T(Qd),i=T(Te),a=()=>_f(e,t,r,i);return n?a():k(a)},bf=yf({scrapeMotionValuesFromProps:dl,createRenderState:nf}),xf=yf({scrapeMotionValuesFromProps:yl,createRenderState:cf}),Sf=Symbol.for(`motionComponentSymbol`);function Cf(e,t,n){let r=D(n);me(()=>{r.current=n});let i=D(null);return ce(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var wf=S({});function Tf(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Ef(e,t,n,r,i,a){let{visualElement:o}=T(Qd),s=T(Ud),c=T(Te),l=T(Cd),u=l.reducedMotion,d=l.skipAnimations,f=D(null),p=D(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=T(wf);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Df(f.current,n,i,h);let g=D(!1);me(()=>{m&&g.current&&m.update(n,c)});let _=n[xa],v=D(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return we(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),E(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Df(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Of(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Tf(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Of(e){if(e)return e.options.allowProjection===!1?Of(e.parent):e.projection}function kf(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Jd(r);let s=n?n===`svg`:hf(e),c=s?xf:bf;function l(n,l){let u,d={...T(Cd),...n,layoutId:Af(n)},{isStatic:f,isValidProp:p}=d,m=ef(n),h=c(n,f);if(!f&&typeof window<`u`){jf(d,r);let t=Mf(d);u=t.MeasureLayout,m.visualElement=Ef(e,h,d,o,t.ProjectionNode,s)}return a(Qd.Provider,{value:m,children:[u&&m.visualElement?i(u,{visualElement:m.visualElement,...d}):null,gf(e,n,Cf(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ee(l);return u[Sf]=e,u}function Af({layoutId:e}){let t=T(Se).id;return t&&e!==void 0?t+`-`+e:e}function jf(e,t){T(Ud).strict}function Mf(e){let{drag:t,layout:n}=qd();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Nf(e,t){if(typeof Proxy>`u`)return kf;let n=new Map,r=(n,r)=>kf(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,kf(a,void 0,e,t)),n.get(a))})}var Pf=Nf(),Ff=(e,t)=>t.isSVG??hf(e)?new bl(t):new pl(t,{allowProjection:e!==u}),If=class extends rl{constructor(e){super(e),e.animationState||=Dl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Bc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Lf=0,Rf={animation:{Feature:If},exit:{Feature:class extends rl{constructor(){super(...arguments),this.id=Lf++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=da(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function zf(e){return{point:{x:e.pageX,y:e.pageY}}}var Bf=e=>t=>ds(t)&&e(t,zf(t));function Vf(e,t,n,r){return hu(e,t,Bf(n),r)}var Hf=({current:e})=>e?e.ownerDocument.defaultView:null,Uf=(e,t)=>Math.abs(e-t);function Wf(e,t){let n=Uf(e.x,t.x),r=Uf(e.y,t.y);return Math.sqrt(n**2+r**2)}var Gf=new Set([`auto`,`scroll`]),Kf=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=qf(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Yf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Wf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=L;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=qf(t,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Yf(e.type===`pointercancel`?this.lastMoveEventInfo:qf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ds(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=qf(zf(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=L;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Yf(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ie(Vf(this.contextWindow,`pointermove`,this.handlePointerMove,d),Vf(this.contextWindow,`pointerup`,this.handlePointerUp,d),Vf(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Gf.has(e.overflowX)||Gf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),I(this.updatePoint)}};function qf(e,t){return t?{point:t(e.point)}:e}function Jf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yf({point:e},t){return{point:e,delta:Jf(e,Zf(t)),offset:Jf(e,Xf(t)),velocity:Qf(t,.1)}}function Xf(e){return e[0]}function Zf(e){return e[e.length-1]}function Qf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Zf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>N(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>N(t)*2&&(r=e[1]);let a=P(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function $f(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function ep(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function tp(e,{top:t,left:n,bottom:r,right:i}){return{x:ep(e.x,n,i),y:ep(e.y,t,r)}}function np(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rp(e,t){return{x:np(e.x,t.x),y:np(e.y,t.y)}}function ip(e,t){let n=.5,r=$(e),i=$(t);return i>r?n=Le(t.min,t.max-r,e.min):r>i&&(n=Le(e.min,e.max-i,t.min)),A(0,1,n)}function ap(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var op=.35;function sp(e=op){return e===!1?e=0:e===!0&&(e=op),{x:cp(e,`left`,`right`),y:cp(e,`top`,`bottom`)}}function cp(e,t,n){return{min:lp(e,t),max:lp(e,n)}}function lp(e,t){return typeof e==`number`?e:e[t]||0}var up=new WeakMap,dp=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(zf(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=os(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iu(e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&F.update(()=>i(e,t),!1,!0),va(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=hp(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&F.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Kf(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Hf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&F.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!mp(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=$f(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Tf(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?tp(n.layoutBox,e):!1,this.elastic=sp(t),r!==this.constraints&&!Tf(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&iu(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ap(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Tf(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Xo(n,r.root,this.visualElement.getTransformPagePoint()),a=rp(r.layout.layoutBox,i);if(t){let e=t(Mo(a));this.hasMutatedConstraints=!!e,e&&(a=jo(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=iu(o=>{if(!mp(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return va(this.visualElement,e),n.start($i(e,n,0,t,this.visualElement,!1))}stopAnimation(){iu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){iu(t=>{let{drag:n}=this.getProps();if(!mp(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-U(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Tf(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iu(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ip({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),iu(t=>{if(!mp(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(U(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;up.set(this.visualElement,this);let e=this.visualElement.current,t=Vf(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&hs(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Tf(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=pp(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(r);let o=hu(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iu(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=op,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function fp(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pp(e,t,n){let r=Ls(e,fp(n)),i=Ls(t,fp(n));return()=>{r(),i()}}function mp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hp(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var gp=class extends rl{constructor(e){super(e),this.removeGroupControls=M,this.removeListeners=M,this.controls=new dp(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},_p=e=>(t,n)=>{e&&F.update(()=>e(t,n),!1,!0)},vp=class extends rl{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(e){this.session=new Kf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_p(e),onStart:_p(t),onMove:_p(n),onEnd:(e,t)=>{delete this.session,r&&F.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Vf(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},yp=!1,bp=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),yp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Su.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),yp=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||F.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),rs.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;yp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function xp(e){let[t,n]=jd(),r=T(Se);return i(bp,{...e,layoutGroup:r,switchLayoutGroup:T(wf),isPresent:t,safeToRemove:n})}var Sp={pan:{Feature:vp},drag:{Feature:gp,ProjectionNode:od,MeasureLayout:xp}};function Cp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&F.postRender(()=>i(t,zf(t)))}var wp=class extends rl{mount(){let{current:e}=this.node;e&&(this.unmount=ls(e,(e,t)=>(Cp(this.node,t,`Start`),e=>Cp(this.node,e,`End`))))}unmount(){}},Tp=class extends rl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Ie(hu(this.node.current,`focus`,()=>this.onFocus()),hu(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ep(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&F.postRender(()=>i(t,zf(t)))}var Dp=class extends rl{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ss(e,(e,t)=>(Ep(this.node,t,`Start`),(e,{success:t})=>Ep(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Op=new WeakMap,kp=new WeakMap,Ap=e=>{let t=Op.get(e.target);t&&t(e)},jp=e=>{e.forEach(Ap)};function Mp({root:e,...t}){let n=e||document;kp.has(n)||kp.set(n,{});let r=kp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jp,{root:e,...t})),r[i]}function Np(e,t,n){let r=Mp(t);return Op.set(e,n),r.observe(e),()=>{Op.delete(e),r.unobserve(e)}}var Pp={some:0,all:1},Fp=class extends rl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Pp[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Np(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Ip(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Ip({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Lp={inView:{Feature:Fp},tap:{Feature:Dp},focus:{Feature:Tp},hover:{Feature:wp}},Rp={layout:{ProjectionNode:od,MeasureLayout:xp}},zp=Nf({...Rf,...Lp,...Sp,...Rp},Ff);function Bp(e){return E(()=>()=>e(),[])}var Vp={renderer:Ff,...Rf,...Lp},Hp={...Vp,...Sp,...Rp},Up={renderer:Ff,...Rf};function Wp(e,t,n){me(()=>e.on(t,n),[e,t,n])}function Gp(e){return typeof window>`u`?!1:e?oi():ai()}var Kp=50,qp=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Jp=()=>({time:0,x:qp(),y:qp()}),Yp={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function Xp(e,t,n,r){let i=n[t],{length:a,position:o}=Yp[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Le(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>Kp?0:ze(i.current-s,l)}function Zp(e,t,n){Xp(e,`x`,t,n),Xp(e,`y`,t,n),t.time=n}function Qp(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ya(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var $p={start:0,center:.5,end:1};function em(e,t,n=0){let r=0;if(e in $p&&(e=$p[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var tm=[0,0];function nm(e,t,n,r){let i=Array.isArray(e)?e:tm,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,$p[e]?e:`0`]),a=em(i[0],n,r),o=em(i[1],t),a-o}var rm={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},im={x:0,y:0};function am(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function om(e,t,n){let{offset:r=rm.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?im:Qp(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:am(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=nm(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Jn(t[a].offset,Xn(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=A(0,1,t[a].interpolate(t[a].current))}function sm(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function cm(e,t,n,r={}){return{measure:t=>{sm(e,r.target,n),Zp(e,n,t),(r.offset||r.target)&&om(e,n,r)},notify:()=>t(n)}}var lm=new WeakMap,um=new WeakMap,dm=new WeakMap,fm=new WeakMap,pm=new WeakMap,mm=e=>e===document.scrollingElement?window:e;function hm(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return M;let i=dm.get(t);i||(i=new Set,dm.set(t,i));let a=cm(t,e,Jp(),r);if(i.add(a),!lm.has(t)){let e=()=>{for(let e of i)e.measure(L.timestamp);F.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>F.read(e);lm.set(t,r);let a=mm(t);window.addEventListener(`resize`,r),t!==document.documentElement&&um.set(t,Ls(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!pm.has(t)){let e=lm.get(t),n={width:t.scrollWidth,height:t.scrollHeight};fm.set(t,n);let r=F.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);pm.set(t,r)}let o=lm.get(t);return F.read(o,!1,!0),()=>{I(o);let e=dm.get(t);if(!e||(e.delete(a),e.size))return;let n=lm.get(t);lm.delete(t),n&&(mm(t).removeEventListener(`scroll`,n),um.get(t)?.(),window.removeEventListener(`resize`,n));let r=pm.get(t);r&&(I(r),pm.delete(t)),fm.delete(t)}}var gm=[[rm.Enter,`entry`],[rm.Exit,`exit`],[rm.Any,`cover`],[rm.All,`contain`]],_m={start:0,end:1};function vm(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=_m[t[0]],r=_m[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function ym(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=vm(n);if(!e)return;t.push(e)}else return;return t}function bm(e,t){let n=ym(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function xm(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of gm)if(bm(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var Sm=new Map;function Cm(e){let t={value:0};return{currentTime:t,cancel:hm(n=>{t.value=n[e.axis].progress*100},e)}}function wm({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=Sm.get(t);i||(i=new Map,Sm.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&Gp(n.target)?xm(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=Cm({container:t,...n}):Gp()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=Cm({container:t,...n})),o[s]}function Tm(e,t){let n=wm(t),r=t.target?xm(t.offset):void 0,i=t.target?Gp(t.target)&&!!r:Gp();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),Rs(t=>{e.time=e.iterationDuration*t},n))})}function Em(e){return e&&(e.target||e.offset)}function Dm(e){return e.length===2}function Om(e,t){return Dm(e)||Em(t)?hm(n=>{e(n[t.axis].progress,n)},t):Rs(e,wm(t))}function km(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return M;let i={axis:t,container:n,...r};return typeof e==`function`?Om(e,i):Tm(e,i)}var Am=()=>({scrollX:q(0),scrollY:q(0),scrollXProgress:q(0),scrollYProgress:q(0)}),jm=e=>e?!e.current:!1;function Mm(e,t,n,r){return{factory:i=>{let a,o=()=>{if(jm(n)||jm(r)){rs.read(o);return}a=km(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return rs.read(o),()=>{is(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Nm(e,t){return typeof window>`u`?!1:e?oi()&&!!xm(t):ai()}function Pm({container:e,target:t,...n}={}){let r=k(Am);Nm(t,n.offset)&&(r.scrollXProgress.accelerate=Mm(`x`,n,e,t),r.scrollYProgress.accelerate=Mm(`y`,n,e,t));let i=D(null),a=D(!1),o=ce(()=>(i.current=km((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return we(()=>{if(a.current=!1,jm(e)||jm(t)){a.current=!0;return}return o()},[o]),E(()=>{if(!a.current)return;let n,r=()=>{let r=jm(e),i=jm(t);!r&&!i&&(n=o())};return rs.read(r),()=>{is(r),n?.()}},[o]),r}function Fm(e){return Pm({container:e})}function Im(){return Pm()}function Lm(e){let t=k(()=>q(e)),{isStatic:n}=T(Cd);if(n){let[,n]=O(e);E(()=>t.on(`change`,n),[])}return t}function Rm(e,t){let n=Lm(t()),r=()=>n.set(t());return r(),we(()=>{let t=()=>F.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),I(r)}}),n}function zm(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=J(n)?n.get():n)}return r}return Rm(t.filter(J),r)}function Bm(e){Hi.current=[],e();let t=Rm(Hi.current,e);return Hi.current=void 0,t}function Vm(e,t,n,r){if(typeof e==`function`)return Bm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Um(e,t,n,r);let i=typeof t==`function`?t:Gs(t,n,r),a=Array.isArray(e)?Hm(e,i):Hm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function Hm(e,t){let n=k(()=>[]);return Rm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Um(e,t,n,r){let i=k(()=>Object.keys(n)),a=k(()=>({}));for(let o of i)a[o]=Vm(e,t,n[o],r);return a}function Wm(e,t={}){let{isStatic:n}=T(Cd),r=()=>J(e)?e.get():e;if(n)return Vm(r);let i=Lm(r());return me(()=>Xs(i,e,t),[i,JSON.stringify(t)]),i}function Gm(e,t={}){return Wm(e,{type:`spring`,...t})}function Km(e){let t=D(0),{isStatic:n}=T(Cd);E(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return F.update(r,!0),()=>I(r)},[e])}function qm(){let e=Lm(0);return Km(t=>e.set(t)),e}function Jm(e){let t=Lm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&F.update(n)};return Wp(e,`change`,()=>{F.update(n,!1,!0)}),t}var Ym=class extends Ui{constructor(){super(...arguments),this.isEnabled=!1}add(e){(K.has(e)||wi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function Xm(){return k(()=>new Ym(`auto`))}function Zm(){!Jc.current&&Xc();let[e]=O(qc.current);return e}function Qm(){let e=Zm(),{reducedMotion:t}=T(Cd);return t===`never`?!1:t===`always`||e}function $m(e){e.values.forEach(e=>e.stop())}function eh(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ga(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{eh(e,t)})})}function th(e,t){if(Array.isArray(t))return eh(e,t);if(typeof t==`string`)return eh(e,[t]);ga(e,t)}function nh(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(Oa(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{th(e,t)})},stop(){e.forEach(e=>{$m(e)})},mount(){return()=>{t.stop()}}};return t}function rh(e){return typeof e==`object`&&!Array.isArray(e)}function ih(e,t,n,r){return e==null?[]:typeof e==`string`&&rh(t)?Qa(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ah(e,t,n){return e*(t+1)+n*t}function oh(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function sh(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(De(e,i),r--)}}function ch(e,t,n,r,i,a){sh(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:U(i,a,r[o]),easing:lt(n,o)})}function lh(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function uh(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var dh=`easeInOut`,fh=20;function ph(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,oh(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=oh(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=gh(e),{delay:l=0,times:u=Xn(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=fi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&yh(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=N(b));let r=Fn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let ee=u.length-c.length;if(ee>0&&Yn(u,ee),c.length===1&&c.unshift(null),m&&`${m}${fh}`,m&&m<fh){let e=b>0?_/b:0;b=ah(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Xe(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:lt(f,e-1))}lh(u,m,e)}let te=w+b;ch(r,c,y,u,w,te),g=Math.max(x+b,g),f=Math.max(te,f)};if(J(p)){let e=mh(p,s);_(m,h,hh(`default`,e))}else{let e=ih(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=mh(r,s);for(let e in m)_(m[e],_h(h,e),hh(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(uh);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Le(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(dh)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function mh(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function hh(e,t){return t[e]||(t[e]=[]),t[e]}function gh(e){return Array.isArray(e)?e:[e]}function _h(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var vh=e=>typeof e==`number`,yh=e=>e.every(vh);function bh(e,t){return J(e)||typeof e==`number`||typeof e==`string`&&!rh(t)}function xh(e,t,n,r){let i=[];if(bh(e,t))i.push(mu(e,rh(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=ih(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...es(r,t,s,zc.get(r))):i.push(...qa(Ga(r)??ns,r,t,s))}}return i}function Sh(e,t,n){let r=[];return ph(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=q(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Gn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...xh(n,e,t))}),r}function Ch(e){return Array.isArray(e)&&e.some(Array.isArray)}function wh(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Ch(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Sh(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=xh(e,i,{...c,...r},t)}let l=new Pi(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{De(t.animations,l)})),l}return i}var Th=Object.assign(wh(),{addEffect:Ua,removeEffect:Wa});function Eh(){let e=k(()=>({current:null,animations:[]})),t=Qm()??void 0,{skipAnimations:n}=T(Cd),r=ge(()=>wh({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return Bp(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function Dh(e,t,n,r){if(e==null)return[];let i=Qa(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Gi(s,e)};i.duration&&=N(i.duration),i.delay&&=N(i.delay);let a=Ri(r),c=Li(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Cs(r,i)),Tr(t),za(t,i),!a&&t.length<2&&t.unshift(Cs(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new mi(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Oh=e=>{function t(t,n,r){return new Pi(Dh(t,n,r,e))}return t},kh=Oh();function Ah(){let e=k(()=>({current:null,animations:[]})),t=k(()=>Oh(e));return Bp(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function jh(){let e=k(nh);return we(e.mount,[]),e}var Mh=jh;function Nh(){let e=T(Te);return e?e.custom:void 0}function Ph(e,t,n,r){E(()=>{let i=e.current;if(n&&i)return hu(i,t,n,r)},[e,t,n,r])}var Fh=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Ih=()=>new Fh;function Lh(){return k(Ih)}function Rh(e){return typeof e==`object`&&!!e&&Sf in e}function zh(e){if(Rh(e))return e[Sf]}function Bh(){return Vh}function Vh(e){ad.current&&(ad.current.isUpdating=!1,ad.current.blockUpdate(),e&&e())}function Hh(){return ce(()=>{let e=ad.current;e&&e.resetTree()},[])}function Uh(...e){let t=D(0),[n,r]=O(e[t.current]);return[n,ce(n=>{t.current=typeof n==`number`?n:Ue(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var Wh={some:0,all:1};function Gh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Qa(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Wh[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Kh(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=O(a);return E(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return Gh(e.current,a,c)},[t,e,n,i,r]),o}function qh(){let[e,t]=zd(),n=Bh(),r=D(-1);return E(()=>{F.postRender(()=>F.postRender(()=>{t===r.current&&(j.instantAnimations=!1)}))},[t]),i=>{n(()=>{j.instantAnimations=!0,e(),i(),r.current=t+1})}}function Jh(){j.instantAnimations=!1}function Yh(){let[e,t]=O(!0);return E(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Xh(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function Zh(e){return t=>{let n=e.current;if(!n)return t;let r=Qh(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function Qh(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var $h=new Map,eg=new Map,tg=(e,t)=>`${e}: ${K.has(t)?`transform`:t}`;function ng(e,t,n){let r=tg(e,t),i=$h.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var rg,ig,ag=new Set;function og(){ag.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),ag.clear()}function sg(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[ba];if(!a)return;window.MotionHandoffAnimation=ng;let o=tg(a,t);ig||(ig=di(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),$h.set(o,{animation:ig,startTime:null}),window.MotionHandoffAnimation=ng,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return eg.has(e);let n=tg(e,t);return!!$h.get(n)},window.MotionHandoffMarkAsComplete=e=>{eg.has(e)&&eg.set(e,!0)},window.MotionHandoffIsComplete=e=>eg.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=tg(e,t),a=$h.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(ag.add(a),n.render(og)):($h.delete(i),$h.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=Sa(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{ig.cancel();let a=di(e,t,n,r);rg===void 0&&(rg=performance.now()),a.startTime=rg,$h.set(o,{animation:a,startTime:rg}),i&&i(a)};eg.set(a,!1),ig.ready?ig.ready.then(s).catch(M):s()}var cg=()=>({}),lg=class extends tl{constructor(){super(...arguments),this.measureInstanceViewportBox=Z}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return cg()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},ug=yf({scrapeMotionValuesFromProps:cg,createRenderState:cg});function dg(e){let[t,n]=O(e),r=ug({},!1),i=k(()=>new lg({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return he(()=>(i.mount({}),()=>i.unmount()),[i]),[t,k(()=>e=>Oa(i,e))]}var fg=0,pg=({children:e})=>(E(()=>{},[]),i(Hd,{id:k(()=>`asl-${fg++}`),children:e})),mg=1e5,hg=e=>e>.001?1/e:mg;function gg(e){let t=Lm(1),n=Lm(1),{visualElement:r}=T(Qd);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Vm(t,hg),scaleY:Vm(n,hg)}}var _g=S(null);function vg(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:U(t.x.min,t.x.max,.5)+n.x,y:U(t.y.min,t.y.max,.5)+n.y},i=yg(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>bg(r.y,t)<bg(r.y,e)?t:e);if(c!==s)return xg(e,o,r.x,c,a);let l=Sg(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Sg(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:Oe(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=U(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?Oe(e,o,o+s):e}function yg(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function bg(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function xg(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=U(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Sg(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Cg=(e,t)=>e.max<=t.min||t.max<=e.min;function wg(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Cg(e[r].x,e[i].x),n||=Cg(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Tg({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,...o},s){let c=k(()=>zp[t]),l=D(new Map),[u,d]=O(`y`),f=D(!1),p=D(null),m=n||u,h=new Set(a);l.current.forEach((e,t)=>{h.has(t)||l.current.delete(t)});let g={axis:m,groupRef:p,registerItem:(e,t)=>{if(l.current.set(e,t),!n){let e=wg(a.flatMap(e=>{let t=l.current.get(e);return t?[t]:[]}));e!==u&&d(e)}},updateOrder:(e,t,n)=>{if(f.current)return;let i=a.flatMap(e=>{let t=l.current.get(e);return t?[{value:e,layout:t}]:[]}),o=p.current?.ownerDocument.defaultView?.getComputedStyle(p.current).direction===`rtl`?`rtl`:`ltr`,s=vg(i,e,t,n,m,o);if(i!==s){f.current=!0;let e=[...a],t=i.map(({value:e})=>a.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};E(()=>{f.current=!1});let _=e=>{p.current=e,typeof s==`function`?s(e):s&&(s.current=e)},v={overflowAnchor:`none`,...o.style};return i(c,{...o,style:v,ref:_,ignoreStrict:!0,children:i(_g.Provider,{value:g,children:e})})}var Eg=ee(Tg),Dg=50,Og=25,kg=new Set([`auto`,`scroll`]),Ag=new WeakMap,jg=new WeakMap,Mg=null;function Ng(){if(Mg){let e=Fg(Mg,`y`);e&&(jg.delete(e),Ag.delete(e));let t=Fg(Mg,`x`);t&&t!==e&&(jg.delete(t),Ag.delete(t)),Mg=null}}function Pg(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return kg.has(r)||i}function Fg(e,t){let n=e?.parentElement;for(;n;){if(Pg(n,t))return n;n=n.parentElement}return null}function Ig(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Dg){let e=1-o/Dg;return{amount:-25*e*e,edge:`start`}}if(s<Dg){let e=1-s/Dg;return{amount:Og*e*e,edge:`end`}}return{amount:0,edge:null}}function Lg(e,t,n,r){if(!e)return;Mg=e;let i=Fg(e,n);if(!i)return;let{amount:a,edge:o}=Ig(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){jg.delete(i),Ag.delete(i);return}let s=jg.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;jg.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Ag.set(i,e)}if(a>0){let e=Ag.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Rg(e,t=0){return J(e)?e:Lm(t)}function zg({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,layout:s=!0,...c},l){let u=k(()=>zp[r]),d=T(_g),f={x:Rg(t.x),y:Rg(t.y)},p=Vm([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return i(u,{drag:m===`xy`||m,...c,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:f.x.get(),y:f.y.get()};g(n,o,r);let s=m===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:m;Lg(_.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{Ng(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var Bg=ee(zg),Vg=t({Group:()=>Eg,Item:()=>Bg}),Hg=t({AnimatePresence:()=>Id,AnimateSharedLayout:()=>pg,AsyncMotionValueAnimation:()=>ji,DOMKeyframesResolver:()=>Ia,DOMVisualElement:()=>nl,DeprecatedLayoutGroupContext:()=>Ld,DocumentProjectionNode:()=>nd,DragControls:()=>Fh,Feature:()=>rl,FlatTree:()=>_u,GroupAnimation:()=>Mi,GroupAnimationWithThen:()=>Pi,HTMLProjectionNode:()=>od,HTMLVisualElement:()=>pl,JSAnimation:()=>fr,KeyframeResolver:()=>ei,LayoutAnimationBuilder:()=>yd,LayoutGroup:()=>Hd,LayoutGroupContext:()=>Se,LazyMotion:()=>Yd,MotionConfig:()=>Zd,MotionConfigContext:()=>Cd,MotionContext:()=>Qd,MotionGlobalConfig:()=>j,MotionValue:()=>Ui,MotionValueState:()=>eo,NativeAnimation:()=>mi,NativeAnimationExtended:()=>yi,NativeAnimationWrapper:()=>Fi,NodeStack:()=>xu,ObjectVisualElement:()=>hl,PopChild:()=>Od,PresenceChild:()=>kd,PresenceContext:()=>Te,Reorder:()=>Vg,SVGVisualElement:()=>bl,SubscriptionManager:()=>Re,SwitchLayoutGroupContext:()=>wf,ViewTransitionBuilder:()=>Pc,VisualElement:()=>tl,WillChangeMotionValue:()=>Ym,acceleratedValues:()=>wi,addAttrValue:()=>Co,addDomEvent:()=>hu,addEffect:()=>Ua,addPointerEvent:()=>Vf,addPointerInfo:()=>Bf,addSVGValue:()=>Eo,addScaleCorrector:()=>ll,addStyleValue:()=>so,addUniqueItem:()=>Ee,addValueToWillChange:()=>va,alpha:()=>kt,analyseComplexValue:()=>an,animate:()=>Th,animateEffectSubject:()=>qa,animateElement:()=>es,animateMini:()=>kh,animateMotionValue:()=>$i,animateSingleValue:()=>mu,animateTarget:()=>Ta,animateValue:()=>pr,animateValues:()=>Ka,animateVariant:()=>Ea,animateView:()=>Fc,animateVisualElement:()=>Oa,animationControls:()=>nh,animationMapKey:()=>Li,animations:()=>Rf,anticipate:()=>et,applyAxisDelta:()=>Vo,applyBoxDelta:()=>Ho,applyGeneratorOptions:()=>pi,applyPointDelta:()=>Bo,applyPxDefaults:()=>za,applyTreeDeltas:()=>Go,arc:()=>aa,aspectRatio:()=>nu,attachFollow:()=>Xs,attachSpring:()=>rc,attrEffect:()=>wo,axisDeltaEquals:()=>ru,axisEquals:()=>Ql,axisEqualsRounded:()=>eu,backIn:()=>Qe,backInOut:()=>$e,backOut:()=>Ze,boxEquals:()=>$l,boxEqualsRounded:()=>tu,buildHTMLStyles:()=>go,buildProjectionTransform:()=>au,buildSVGAttrs:()=>xo,buildSVGPath:()=>yo,buildTransform:()=>ho,calcAxisDelta:()=>Rl,calcBoxDelta:()=>zl,calcChildStagger:()=>zi,calcGeneratorDuration:()=>Pn,calcLength:()=>$,calcRelativeAxis:()=>Bl,calcRelativeAxisPosition:()=>Hl,calcRelativeBox:()=>Vl,calcRelativePosition:()=>Ul,camelCaseAttributes:()=>gl,camelToDash:()=>ya,cancelFrame:()=>I,cancelMicrotask:()=>is,cancelSync:()=>Sd,checkVariantsDidChange:()=>Ol,circIn:()=>tt,circInOut:()=>rt,circOut:()=>nt,clamp:()=>A,cleanDirtyNodes:()=>Nu,collectMotionValues:()=>Hi,color:()=>V,compareByDepth:()=>gu,complex:()=>H,containsCSSVariable:()=>Dt,convertBoundingBoxToBox:()=>jo,convertBoxToBoundingBox:()=>Mo,convertOffsetToTimes:()=>Zn,copyAxisDeltaInto:()=>Ml,copyAxisInto:()=>jl,copyBoxInto:()=>Q,correctBorderRadius:()=>ol,correctBoxShadow:()=>sl,correctParentTransform:()=>Zh,createAnimationState:()=>Dl,createAxis:()=>Rc,createAxisDelta:()=>Ic,createBox:()=>Z,createDelta:()=>Lc,createEffect:()=>to,createGeneratorEasing:()=>Fn,createProjectionNode:()=>ku,createRenderBatcher:()=>_t,createScopedAnimate:()=>wh,cubicBezier:()=>Je,cubicBezierAsString:()=>ci,defaultEasing:()=>Qn,defaultOffset:()=>Xn,defaultTransformValue:()=>Pr,defaultValueTypes:()=>xr,degrees:()=>Ht,delay:()=>vu,delayInSeconds:()=>yu,dimensionValueTypes:()=>ja,disableInstantTransitions:()=>Jh,distance:()=>Uf,distance2D:()=>Wf,domAnimation:()=>Vp,domMax:()=>Hp,domMin:()=>Up,eachAxis:()=>iu,easeIn:()=>it,easeInOut:()=>ot,easeOut:()=>at,easingDefinitionToFunction:()=>pt,fillOffset:()=>Yn,fillWildcards:()=>Tr,filterProps:()=>pf,findDimensionValueType:()=>Ma,findEffect:()=>Ga,findValueType:()=>ac,flushKeyframeResolvers:()=>Qr,followValue:()=>Ys,frame:()=>F,frameData:()=>L,frameSteps:()=>vt,generateLinearEasing:()=>Mn,getAnimatableNone:()=>wr,getAnimationMap:()=>Ri,getComputedStyle:()=>Cs,getDefaultTransition:()=>Xi,getDefaultValueType:()=>Sr,getEasingForSegment:()=>lt,getFeatureDefinitions:()=>el,getFinalKeyframe:()=>ir,getMixer:()=>Cn,getOptimisedAppearId:()=>Sa,getOriginIndex:()=>Us,getValueAsType:()=>Za,getValueTransition:()=>Gi,getVariableValue:()=>ca,getVariantContext:()=>Sl,getViewAnimationLayerInfo:()=>_c,getViewAnimations:()=>vc,globalProjectionState:()=>Su,handOffElementState:()=>ts,has2DTranslate:()=>Lo,hasComplexValues:()=>rn,hasReducedMotionListener:()=>Jc,hasScale:()=>Fo,hasTransform:()=>Io,hasWarned:()=>Ve,hex:()=>Bt,hover:()=>ls,hsla:()=>Kt,hslaToRgba:()=>pn,inView:()=>Gh,inertia:()=>Kn,initPrefersReducedMotion:()=>Xc,interpolate:()=>Jn,invariant:()=>je,invisibleValues:()=>bn,isAnimationControls:()=>Bc,isBezierDefinition:()=>ut,isBrowser:()=>Ce,isCSSVariableName:()=>Ct,isCSSVariableToken:()=>Tt,isControllingVariants:()=>Wc,isDeltaZero:()=>Zl,isDragActive:()=>as,isDragging:()=>X,isEasingArray:()=>ct,isElementKeyboardAccessible:()=>ps,isElementTextInput:()=>hs,isForcedMotionValue:()=>ul,isGenerator:()=>fi,isHTMLElement:()=>Ya,isKeyframesTarget:()=>pa,isMotionComponent:()=>Rh,isMotionValue:()=>J,isNear:()=>Ll,isNodeOrChild:()=>us,isNumericalString:()=>Me,isObject:()=>Ne,isPrimaryPointer:()=>ds,isSVGElement:()=>Xa,isSVGSVGElement:()=>Hs,isSVGTag:()=>_l,isTransitionDefined:()=>Qi,isValidMotionProp:()=>df,isVariantLabel:()=>Vc,isVariantNode:()=>Gc,isWaapiSupportedEasing:()=>Ba,isWillChangeMotionValue:()=>_a,isZeroValueString:()=>Pe,keyframes:()=>$n,m:()=>Pf,makeAnimationInstant:()=>Ci,makeUseVisualState:()=>yf,mapEasingToNativeEasing:()=>ui,mapValue:()=>tc,maxGeneratorDuration:()=>Nn,measurePageBox:()=>Xo,measureViewportBox:()=>Yo,memo:()=>Fe,microtask:()=>rs,millisecondsToSeconds:()=>P,mirrorEasing:()=>Ye,mix:()=>An,mixArray:()=>wn,mixColor:()=>yn,mixComplex:()=>Dn,mixImmediate:()=>mn,mixLinearColor:()=>hn,mixNumber:()=>U,mixObject:()=>Tn,mixValues:()=>lu,mixVisibility:()=>xn,motion:()=>zp,motionValue:()=>q,moveItem:()=>Oe,nodeGroup:()=>id,noop:()=>M,number:()=>Ot,numberValueTypes:()=>G,observeTimeline:()=>Rs,optimizedAppearDataAttribute:()=>xa,optimizedAppearDataId:()=>ba,parseAnimateLayoutArgs:()=>bd,parseCSSVariable:()=>sa,parseValueFromTransform:()=>Fr,percent:()=>z,pipe:()=>Ie,pixelsToPercent:()=>al,positionalKeys:()=>fa,prefersReducedMotion:()=>qc,press:()=>Ss,progress:()=>Le,progressPercentage:()=>Gt,propEffect:()=>ns,propagateDirtyNodes:()=>Mu,px:()=>B,readSVGValue:()=>Do,readStyleValue:()=>lo,readTransformValue:()=>Ir,recordStats:()=>Vs,removeAxisDelta:()=>Gl,removeAxisTransforms:()=>Kl,removeBoxTransforms:()=>Yl,removeEffect:()=>Wa,removeItem:()=>De,removePointDelta:()=>Wl,renderHTML:()=>il,renderSVG:()=>vl,resize:()=>Ls,resolveElements:()=>Qa,resolveMotionValue:()=>bu,resolveTransition:()=>Wi,resolveVariant:()=>da,resolveVariantFromProps:()=>ua,reverseEasing:()=>Xe,rgbUnit:()=>Lt,rgba:()=>Rt,rootProjectionNode:()=>ad,scale:()=>At,scaleCorrectors:()=>cl,scalePoint:()=>zo,scrapeHTMLMotionValuesFromProps:()=>dl,scrapeSVGMotionValuesFromProps:()=>yl,scroll:()=>km,scrollInfo:()=>hm,secondsToMilliseconds:()=>N,setDragLock:()=>os,setFeatureDefinitions:()=>$c,setStyle:()=>ni,setTarget:()=>ga,spring:()=>Gn,springValue:()=>nc,stagger:()=>Ws,startOptimizedAppearAnimation:()=>sg,startWaapiAnimation:()=>di,statsBuffer:()=>zs,steps:()=>st,styleEffect:()=>fo,styleSubjectEffect:()=>uo,supportedWaapiEasing:()=>li,supportsBrowserAnimation:()=>ki,supportsFlags:()=>ri,supportsLinearEasing:()=>si,supportsPartialKeyframes:()=>Va,supportsScrollTimeline:()=>ai,supportsViewTimeline:()=>oi,svgEffect:()=>ko,svgSubjectEffect:()=>Oo,sync:()=>xd,testValueType:()=>Aa,time:()=>R,transform:()=>Gs,transformAxis:()=>Ko,transformBox:()=>Jo,transformBoxPoints:()=>No,transformPropOrder:()=>Rr,transformProps:()=>K,transformValue:()=>ec,transformValueTypes:()=>br,transformViewBoxPoint:()=>Xh,translateAxis:()=>Y,unwrapMotionComponent:()=>zh,updateMotionValuesFromProps:()=>Kc,useAnimate:()=>Eh,useAnimateMini:()=>Ah,useAnimation:()=>Mh,useAnimationControls:()=>jh,useAnimationFrame:()=>Km,useComposedRefs:()=>Ed,useCycle:()=>Uh,useDeprecatedAnimatedState:()=>dg,useDeprecatedInvertedScale:()=>gg,useDomEvent:()=>Ph,useDragControls:()=>Lh,useElementScroll:()=>Fm,useFollowValue:()=>Wm,useForceUpdate:()=>zd,useInView:()=>Kh,useInstantLayoutTransition:()=>Bh,useInstantTransition:()=>qh,useIsPresent:()=>Md,useIsomorphicLayoutEffect:()=>we,useMotionTemplate:()=>zm,useMotionValue:()=>Lm,useMotionValueEvent:()=>Wp,usePageInView:()=>Yh,usePresence:()=>jd,usePresenceData:()=>Nh,useReducedMotion:()=>Zm,useReducedMotionConfig:()=>Qm,useResetProjection:()=>Hh,useScroll:()=>Pm,useSpring:()=>Gm,useTime:()=>qm,useTransform:()=>Vm,useUnmountEffect:()=>Bp,useVelocity:()=>Jm,useViewportScroll:()=>Im,useWillChange:()=>Xm,variantPriorityOrder:()=>Hc,variantProps:()=>Uc,velocityPerSecond:()=>ze,vh:()=>Ut,visualElementStore:()=>zc,vw:()=>Wt,warnOnce:()=>He,warning:()=>Ae,wrap:()=>Ue}),Ug=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},Wg=Hg;Ug.register([`framer-motion`,`motion/react`,`motion`],Wg),window.Motion=Wg})();
|
|
10
|
+
`),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),i(kd,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:C(e,{ref:d})})}var jd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=O(Md),f=me(),p=D(n),m=D(r);De(()=>{p.current=n,m.current=r});let h=!0,g=ve(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return o&&h&&(g={...g}),ve(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),E(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Ad,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),i(Oe.Provider,{value:g,children:e})};function Md(){return new Map}function Nd(e=!0){let t=T(Oe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=me();E(()=>{if(e)return i(a)},[e]);let o=ue(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Pd(){return Fd(T(Oe))}function Fd(e){return e===null||e.isPresent}var Id=e=>e.key||``;function Ld(e){let t=[];return c.forEach(e,e=>{re(e)&&t.push(e)}),t}var Rd=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Nd(c),m=ve(()=>Ld(e),[e]),h=c&&!f?[]:m.map(Id),g=D(!0),_=D(m),v=O(()=>new Map),y=D(new Set),[b,x]=xe(m),[S,C]=xe(m);De(()=>{c&&!f&&!S.length&&p?.()},[f,c,S.length,p]),De(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=Id(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m],t=0;for(let n of S){let r=h.indexOf(Id(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return s===`wait`&&w.length&&(e=w),C(Ld(e)),x(m),null}let{forceRender:ee}=T(Te);return i(r,{children:S.map(e=>{let r=Id(e),b=c&&!f?!1:m===S||h.includes(r);return i(jd,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(r))return;if(v.has(r))y.current.add(r),v.set(r,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(ee?.(),C(_.current),c&&p?.(),a&&a())},anchorX:l,anchorY:u,children:e},r)})})},zd=w(null);function Bd(){let e=D(!1);return De(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Vd(){let e=Bd(),[t,n]=xe(0),r=ue(()=>{e.current&&n(t+1)},[t]);return[ue(()=>P.postRender(r),[r]),t]}var Hd=e=>e===!0,Ud=e=>Hd(e===!0)||e===`id`,Wd=({children:e,id:t,inherit:n=!0})=>{let r=T(Te),a=T(zd),[o,s]=Vd(),c=D(null),l=r.id||a;c.current===null&&(Ud(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:Hd(n)&&r.group||od()});let u=ve(()=>({...c.current,forceRender:o}),[s]);return i(Te.Provider,{value:u,children:e})},Gd=w({strict:!1}),Kd={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},qd=!1;function Jd(){if(qd)return;let e={};for(let t in Kd)e[t]={isEnabled:e=>Kd[t].some(t=>!!e[t])};tl(e),qd=!0}function Yd(){return Jd(),nl()}function Xd(e){let t=Yd();for(let n in e)t[n]={...t[n],...e[n]};tl(t)}function Zd({children:e,features:t,strict:n=!1}){let[,r]=xe(!Qd(t)),a=D(void 0);if(!Qd(t)){let{renderer:e,...n}=t;a.current=e,Xd(n)}return E(()=>{Qd(t)&&t().then(({renderer:e,...t})=>{Xd(t),a.current=e,r(!0)})},[]),i(Gd.Provider,{value:{renderer:a.current,strict:n},children:e})}function Qd(e){return typeof e==`function`}function $d({children:e,...t}){let n=T(Td);t={...n,...t},t.transition=qi(t.transition,n.transition),t.isStatic=O(()=>t.isStatic);let r=ve(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Td.Provider,{value:r,children:e})}var ef=w({});function tf(e,t){if(Kc(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Uc(t)?t:void 0,animate:Uc(n)?n:void 0}}return e.inherit===!1?{}:t}function nf(e){let{initial:t,animate:n}=tf(e,T(ef));return ve(()=>({initial:t,animate:n}),[rf(t),rf(n)])}function rf(e){return Array.isArray(e)?e.join(` `):e}var af=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function of(e,t,n){for(let r in t)!q(t[r])&&!fl(r,n)&&(e[r]=t[r])}function sf({transformTemplate:e},t){return ve(()=>{let n=af();return yo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cf(e,t){let n=e.style||{},r={};return of(r,n,e),Object.assign(r,sf(e,t)),r}function lf(e,t){let n={},r=cf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var uf=()=>({...af(),attrs:{}});function df(e,t,n,r){let i=ve(()=>{let n=uf();return wo(n,t,yl(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};of(t,e.style,e),i.style={...t,...i.style}}return i}var ff=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function pf(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ff.has(e)}function mf(e,t){return e.startsWith(`on`)?!pf(e):t?.(e)??!pf(e)}function hf(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(q(e[a])||(mf(a,r)||n===!0&&pf(a)||!t&&!pf(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var gf=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function _f(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(gf.indexOf(e)>-1||/[A-Z]/u.test(e))}function vf(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??_f(e)?df:lf)(t,r,i,e),l=hf(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ve(()=>q(f)?f.get():f,[f]);return ee(e,{...d,children:p})}function yf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bf(n,r,i,e),renderState:t()}}function bf(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Su(a[e]);let{initial:o,animate:s}=e,c=Kc(e),l=qc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Hc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=pa(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var xf=e=>(t,n)=>{let r=T(ef),i=T(Oe),a=()=>yf(e,t,r,i);return n?a():O(a)},Sf=xf({scrapeMotionValuesFromProps:pl,createRenderState:af}),Cf=xf({scrapeMotionValuesFromProps:xl,createRenderState:uf}),wf=Symbol.for(`motionComponentSymbol`);function Tf(e,t,n){let r=D(n);ge(()=>{r.current=n});let i=D(null);return ue(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Ef=w({});function Df(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Of(e,t,n,r,i,a){let{visualElement:o}=T(ef),s=T(Gd),c=T(Oe),l=T(Td),u=l.reducedMotion,d=l.skipAnimations,f=D(null),p=D(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=T(Ef);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&kf(f.current,n,i,h);let g=D(!1);ge(()=>{m&&g.current&&m.update(n,c)});let _=n[wa],v=D(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return De(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),E(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function kf(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Af(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Df(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Af(e){if(e)return e.options.allowProjection===!1?Af(e.parent):e.projection}function jf(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Xd(r);let s=n?n===`svg`:_f(e),c=s?Cf:Sf;function l(n,l){let u,d={...T(Td),...n,layoutId:Mf(n)},{isStatic:f,isValidProp:p}=d,m=nf(n),h=c(n,f);if(!f&&typeof window<`u`){Nf(d,r);let t=Pf(d);u=t.MeasureLayout,m.visualElement=Of(e,h,d,o,t.ProjectionNode,s)}return a(ef.Provider,{value:m,children:[u&&m.visualElement?i(u,{visualElement:m.visualElement,...d}):null,vf(e,n,Tf(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ne(l);return u[wf]=e,u}function Mf({layoutId:e}){let t=T(Te).id;return t&&e!==void 0?t+`-`+e:e}function Nf(e,t){T(Gd).strict}function Pf(e){let{drag:t,layout:n}=Yd();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ff(e,t){if(typeof Proxy>`u`)return jf;let n=new Map,r=(n,r)=>jf(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,jf(a,void 0,e,t)),n.get(a))})}var If=Ff(),Lf=(e,t)=>t.isSVG??_f(e)?new Sl(t):new hl(t,{allowProjection:e!==u}),Rf=class extends al{constructor(e){super(e),e.animationState||=kl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Hc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},zf=0,Bf={animation:{Feature:Rf},exit:{Feature:class extends al{constructor(){super(...arguments),this.id=zf++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ma(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Vf(e){return{point:{x:e.pageX,y:e.pageY}}}var Hf=e=>t=>ms(t)&&e(t,Vf(t));function Uf(e,t,n,r){return _u(e,t,Hf(n),r)}var Wf=({current:e})=>e?e.ownerDocument.defaultView:null,Gf=(e,t)=>Math.abs(e-t);function Kf(e,t){let n=Gf(e.x,t.x),r=Gf(e.y,t.y);return Math.sqrt(n**2+r**2)}var qf=new Set([`auto`,`scroll`]),Jf=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Yf(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Zf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Kf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=I;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Yf(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Zf(e.type===`pointercancel`?this.lastMoveEventInfo:Yf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ms(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Yf(Vf(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=I;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Zf(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=ze(Uf(this.contextWindow,`pointermove`,this.handlePointerMove,d),Uf(this.contextWindow,`pointerup`,this.handlePointerUp,d),Uf(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(qf.has(e.overflowX)||qf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),F(this.updatePoint)}};function Yf(e,t){return t?{point:t(e.point)}:e}function Xf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zf({point:e},t){return{point:e,delta:Xf(e,$f(t)),offset:Xf(e,Qf(t)),velocity:ep(t,.1)}}function Qf(e){return e[0]}function $f(e){return e[e.length-1]}function ep(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=$f(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>M(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>M(t)*2&&(r=e[1]);let a=N(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function tp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function np(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function rp(e,{top:t,left:n,bottom:r,right:i}){return{x:np(e.x,n,i),y:np(e.y,t,r)}}function ip(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ap(e,t){return{x:ip(e.x,t.x),y:ip(e.y,t.y)}}function op(e,t){let n=.5,r=$(e),i=$(t);return i>r?n=Be(t.min,t.max-r,e.min):r>i&&(n=Be(e.min,e.max-i,t.min)),k(0,1,n)}function sp(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var cp=.35;function lp(e=cp){return e===!1?e=0:e===!0&&(e=cp),{x:up(e,`left`,`right`),y:up(e,`top`,`bottom`)}}function up(e,t,n){return{min:dp(e,t),max:dp(e,n)}}function dp(e,t){return typeof e==`number`?e:e[t]||0}var fp=new WeakMap,pp=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Vf(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ls(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ou(e=>{let t=this.getAxisMotionValue(e).get()||0;if(R.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),xa(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=_p(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Jf(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Wf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!gp(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=tp(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Df(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?rp(n.layoutBox,e):!1,this.elastic=lp(t),r!==this.constraints&&!Df(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&ou(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=sp(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Df(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=$o(n,r.root,this.visualElement.getTransformPagePoint()),a=ap(r.layout.layoutBox,i);if(t){let e=t(Fo(a));this.hasMutatedConstraints=!!e,e&&(a=Po(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=ou(o=>{if(!gp(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return xa(this.visualElement,e),n.start(na(e,n,0,t,this.visualElement,!1))}stopAnimation(){ou(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){ou(t=>{let{drag:n}=this.getProps();if(!gp(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-H(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Df(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ou(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=op({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ou(t=>{if(!gp(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;fp.set(this.visualElement,this);let e=this.visualElement.current,t=Uf(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&vs(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Df(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=hp(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=_u(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ou(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=cp,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function mp(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hp(e,t,n){let r=Bs(e,mp(n)),i=Bs(t,mp(n));return()=>{r(),i()}}function gp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _p(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var vp=class extends al{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new pp(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},yp=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},bp=class extends al{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Jf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yp(e),onStart:yp(t),onMove:yp(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Uf(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},xp=!1,Sp=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),xp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),xp=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),os.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;xp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Cp(e){let[t,n]=Nd(),r=T(Te);return i(Sp,{...e,layoutGroup:r,switchLayoutGroup:T(Ef),isPresent:t,safeToRemove:n})}var wp={pan:{Feature:bp},drag:{Feature:vp,ProjectionNode:cd,MeasureLayout:Cp}};function Tp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,Vf(t)))}var Ep=class extends al{mount(){let{current:e}=this.node;e&&(this.unmount=fs(e,(e,t)=>(Tp(this.node,t,`Start`),e=>Tp(this.node,e,`End`))))}unmount(){}},Dp=class extends al{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=ze(_u(this.node.current,`focus`,()=>this.onFocus()),_u(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Op(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,Vf(t)))}var kp=class extends al{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ts(e,(e,t)=>(Op(this.node,t,`Start`),(e,{success:t})=>Op(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Ap=new WeakMap,jp=new WeakMap,Mp=e=>{let t=Ap.get(e.target);t&&t(e)},Np=e=>{e.forEach(Mp)};function Pp({root:e,...t}){let n=e||document;jp.has(n)||jp.set(n,{});let r=jp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Np,{root:e,...t})),r[i]}function Fp(e,t,n){let r=Pp(t);return Ap.set(e,n),r.observe(e),()=>{Ap.delete(e),r.unobserve(e)}}var Ip={some:0,all:1},Lp=class extends al{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ip[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Fp(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Rp(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Rp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var zp={inView:{Feature:Lp},tap:{Feature:kp},focus:{Feature:Dp},hover:{Feature:Ep}},Bp={layout:{ProjectionNode:cd,MeasureLayout:Cp}},Vp=Ff({...Bf,...zp,...wp,...Bp},Lf);function Hp(e){return E(()=>()=>e(),[])}var Up={renderer:Lf,...Bf,...zp},Wp={...Up,...wp,...Bp},Gp={renderer:Lf,...Bf};function Kp(e,t,n){ge(()=>e.on(t,n),[e,t,n])}function qp(e){return typeof window>`u`?!1:e?li():ci()}var Jp=50,Yp=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Xp=()=>({time:0,x:Yp(),y:Yp()}),Zp={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function Qp(e,t,n,r){let i=n[t],{length:a,position:o}=Zp[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Be(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>Jp?0:He(i.current-s,l)}function $p(e,t,n){Qp(e,`x`,t,n),Qp(e,`y`,t,n),t.time=n}function em(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Qa(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var tm={start:0,center:.5,end:1};function nm(e,t,n=0){let r=0;if(e in tm&&(e=tm[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var rm=[0,0];function im(e,t,n,r){let i=Array.isArray(e)?e:rm,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,tm[e]?e:`0`]),a=nm(i[0],n,r),o=nm(i[1],t),a-o}var am={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},om={x:0,y:0};function sm(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function cm(e,t,n){let{offset:r=am.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?om:em(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:sm(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=im(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Zn(t[a].offset,$n(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=k(0,1,t[a].interpolate(t[a].current))}function lm(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function um(e,t,n,r={}){return{measure:t=>{lm(e,r.target,n),$p(e,n,t),(r.offset||r.target)&&cm(e,n,r)},notify:()=>t(n)}}var dm=new WeakMap,fm=new WeakMap,pm=new WeakMap,mm=new WeakMap,hm=new WeakMap,gm=e=>e===document.scrollingElement?window:e;function _m(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return j;let i=pm.get(t);i||(i=new Set,pm.set(t,i));let a=um(t,e,Xp(),r);if(i.add(a),!dm.has(t)){let e=()=>{for(let e of i)e.measure(I.timestamp);P.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>P.read(e);dm.set(t,r);let a=gm(t);window.addEventListener(`resize`,r),t!==document.documentElement&&fm.set(t,Bs(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!hm.has(t)){let e=dm.get(t),n={width:t.scrollWidth,height:t.scrollHeight};mm.set(t,n);let r=P.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);hm.set(t,r)}let o=dm.get(t);return P.read(o,!1,!0),()=>{F(o);let e=pm.get(t);if(!e||(e.delete(a),e.size))return;let n=dm.get(t);dm.delete(t),n&&(gm(t).removeEventListener(`scroll`,n),fm.get(t)?.(),window.removeEventListener(`resize`,n));let r=hm.get(t);r&&(F(r),hm.delete(t)),mm.delete(t)}}var vm=[[am.Enter,`entry`],[am.Exit,`exit`],[am.Any,`cover`],[am.All,`contain`]],ym={start:0,end:1};function bm(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=ym[t[0]],r=ym[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function xm(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=bm(n);if(!e)return;t.push(e)}else return;return t}function Sm(e,t){let n=xm(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function Cm(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of vm)if(Sm(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var wm=new Map;function Tm(e){let t={value:0};return{currentTime:t,cancel:_m(n=>{t.value=n[e.axis].progress*100},e)}}function Em({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=wm.get(t);i||(i=new Map,wm.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&qp(n.target)?Cm(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=Tm({container:t,...n}):qp()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=Tm({container:t,...n})),o[s]}function Dm(e,t){let n=Em(t),r=t.target?Cm(t.offset):void 0,i=t.target?qp(t.target)&&!!r:qp();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),Vs(t=>{e.time=e.iterationDuration*t},n))})}function Om(e){return e&&(e.target||e.offset)}function km(e){return e.length===2}function Am(e,t){return km(e)||Om(t)?_m(n=>{e(n[t.axis].progress,n)},t):Vs(e,Em(t))}function jm(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return j;let i={axis:t,container:n,...r};return typeof e==`function`?Am(e,i):Dm(e,i)}var Mm=()=>({scrollX:K(0),scrollY:K(0),scrollXProgress:K(0),scrollYProgress:K(0)}),Nm=e=>e?!e.current:!1;function Pm(e,t,n,r){return{factory:i=>{let a,o=()=>{if(Nm(n)||Nm(r)){os.read(o);return}a=jm(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return os.read(o),()=>{ss(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Fm(e,t){return typeof window>`u`?!1:e?li()&&!!Cm(t):ci()}function Im({container:e,target:t,...n}={}){let r=O(Mm);Fm(t,n.offset)&&(r.scrollXProgress.accelerate=Pm(`x`,n,e,t),r.scrollYProgress.accelerate=Pm(`y`,n,e,t));let i=D(null),a=D(!1),o=ue(()=>(i.current=jm((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return De(()=>{if(a.current=!1,Nm(e)||Nm(t)){a.current=!0;return}return o()},[o]),E(()=>{if(!a.current)return;let n,r=()=>{let r=Nm(e),i=Nm(t);!r&&!i&&(n=o())};return os.read(r),()=>{ss(r),n?.()}},[o]),r}function Lm(e){return Im({container:e})}function Rm(){return Im()}function zm(e){let t=O(()=>K(e)),{isStatic:n}=T(Td);if(n){let[,n]=xe(e);E(()=>t.on(`change`,n),[])}return t}function Bm(e,t){let n=zm(t()),r=()=>n.set(t());return r(),De(()=>{let t=()=>P.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),F(r)}}),n}function Vm(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=q(n)?n.get():n)}return r}return Bm(t.filter(q),r)}function Hm(e){Gi.current=[],e();let t=Bm(Gi.current,e);return Gi.current=void 0,t}function Um(e,t,n,r){if(typeof e==`function`)return Hm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Gm(e,t,n,r);let i=typeof t==`function`?t:qs(t,n,r),a=Array.isArray(e)?Wm(e,i):Wm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function Wm(e,t){let n=O(()=>[]);return Bm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Gm(e,t,n,r){let i=O(()=>Object.keys(n)),a=O(()=>({}));for(let o of i)a[o]=Um(e,t,n[o],r);return a}function Km(e,t={}){let{isStatic:n}=T(Td),r=()=>q(e)?e.get():e;if(n)return Um(r);let i=zm(r());return ge(()=>Qs(i,e,t),[i,JSON.stringify(t)]),i}function qm(e,t={}){return Km(e,{type:`spring`,...t})}function Jm(e){let t=D(0),{isStatic:n}=T(Td);E(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return P.update(r,!0),()=>F(r)},[e])}function Ym(){let e=zm(0);return Jm(t=>e.set(t)),e}function Xm(e){let t=zm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&P.update(n)};return Kp(e,`change`,()=>{P.update(n,!1,!0)}),t}var Zm=class extends Ki{constructor(){super(...arguments),this.isEnabled=!1}add(e){(G.has(e)||Di.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function Qm(){return O(()=>new Zm(`auto`))}function $m(){!Xc.current&&Qc();let[e]=xe(Yc.current);return e}function eh(){let e=$m(),{reducedMotion:t}=T(Td);return t===`never`?!1:t===`always`||e}function th(e){e.values.forEach(e=>e.stop())}function nh(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ya(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{nh(e,t)})})}function rh(e,t){if(Array.isArray(t))return nh(e,t);if(typeof t==`string`)return nh(e,[t]);ya(e,t)}function ih(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(ja(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{rh(e,t)})},stop(){e.forEach(e=>{th(e)})},mount(){return()=>{t.stop()}}};return t}function ah(e){return typeof e==`object`&&!Array.isArray(e)}function oh(e,t,n,r){return e==null?[]:typeof e==`string`&&ah(t)?to(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function sh(e,t,n){return e*(t+1)+n*t}function ch(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function lh(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ae(e,i),r--)}}function uh(e,t,n,r,i,a){lh(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:H(i,a,r[o]),easing:ft(n,o)})}function dh(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function fh(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var ph=`easeInOut`,mh=20;function hh(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,ch(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=ch(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=vh(e),{delay:l=0,times:u=$n(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=hi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&xh(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=M(b));let r=Rn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let ee=u.length-c.length;if(ee>0&&Qn(u,ee),c.length===1&&c.unshift(null),m&&`${m}${mh}`,m&&m<mh){let e=b>0?_/b:0;b=sh(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?$e(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:ft(f,e-1))}dh(u,m,e)}let te=w+b;uh(r,c,y,u,w,te),g=Math.max(x+b,g),f=Math.max(te,f)};if(q(p)){let e=gh(p,s);_(m,h,_h(`default`,e))}else{let e=oh(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=gh(r,s);for(let e in m)_(m[e],yh(h,e),_h(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(fh);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Be(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(ph)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function gh(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function _h(e,t){return t[e]||(t[e]=[]),t[e]}function vh(e){return Array.isArray(e)?e:[e]}function yh(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var bh=e=>typeof e==`number`,xh=e=>e.every(bh);function Sh(e,t){return q(e)||typeof e==`number`||typeof e==`string`&&!ah(t)}function Ch(e,t,n,r){let i=[];if(Sh(e,t))i.push(gu(e,ah(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=oh(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...rs(r,t,s,Vc.get(r))):i.push(...Xa(Ja(r)??as,r,t,s))}}return i}function wh(e,t,n){let r=[];return hh(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=K(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Jn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Ch(n,e,t))}),r}function Th(e){return Array.isArray(e)&&e.some(Array.isArray)}function Eh(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Th(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=wh(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Ch(e,i,{...c,...r},t)}let l=new Li(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Ae(t.animations,l)})),l}return i}var Dh=Object.assign(Eh(),{addEffect:Ka,removeEffect:qa});function Oh(){let e=O(()=>({current:null,animations:[]})),t=eh()??void 0,{skipAnimations:n}=T(Td),r=ve(()=>Eh({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return Hp(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function kh(e,t,n,r){if(e==null)return[];let i=to(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Ji(s,e)};i.duration&&=M(i.duration),i.delay&&=M(i.delay);let a=Vi(r),c=Bi(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Es(r,i)),Or(t),Ha(t,i),!a&&t.length<2&&t.unshift(Es(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new _i(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Ah=e=>{function t(t,n,r){return new Li(kh(t,n,r,e))}return t},jh=Ah();function Mh(){let e=O(()=>({current:null,animations:[]})),t=O(()=>Ah(e));return Hp(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function Nh(){let e=O(ih);return De(e.mount,[]),e}var Ph=Nh;function Fh(){let e=T(Oe);return e?e.custom:void 0}function Ih(e,t,n,r){E(()=>{let i=e.current;if(n&&i)return _u(i,t,n,r)},[e,t,n,r])}var Lh=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Rh=()=>new Lh;function zh(){return O(Rh)}function Bh(e){return typeof e==`object`&&!!e&&wf in e}function Vh(e){if(Bh(e))return e[wf]}function Hh(){return Uh}function Uh(e){sd.current&&(sd.current.isUpdating=!1,sd.current.blockUpdate(),e&&e())}function Wh(){return ue(()=>{let e=sd.current;e&&e.resetTree()},[])}function Gh(...e){let t=D(0),[n,r]=xe(e[t.current]);return[n,ue(n=>{t.current=typeof n==`number`?n:Ke(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var Kh={some:0,all:1};function qh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=to(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Kh[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Jh(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=xe(a);return E(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return qh(e.current,a,c)},[t,e,n,i,r]),o}function Yh(){let[e,t]=Vd(),n=Hh(),r=D(-1);return E(()=>{P.postRender(()=>P.postRender(()=>{t===r.current&&(A.instantAnimations=!1)}))},[t]),i=>{n(()=>{A.instantAnimations=!0,e(),i(),r.current=t+1})}}function Xh(){A.instantAnimations=!1}function Zh(){let[e,t]=xe(!0);return E(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Qh(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function $h(e){return t=>{let n=e.current;if(!n)return t;let r=eg(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function eg(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var tg=new Map,ng=new Map,rg=(e,t)=>`${e}: ${G.has(t)?`transform`:t}`;function ig(e,t,n){let r=rg(e,t),i=tg.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var ag,og,sg=new Set;function cg(){sg.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),sg.clear()}function lg(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Ca];if(!a)return;window.MotionHandoffAnimation=ig;let o=rg(a,t);og||(og=mi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),tg.set(o,{animation:og,startTime:null}),window.MotionHandoffAnimation=ig,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return ng.has(e);let n=rg(e,t);return!!tg.get(n)},window.MotionHandoffMarkAsComplete=e=>{ng.has(e)&&ng.set(e,!0)},window.MotionHandoffIsComplete=e=>ng.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=rg(e,t),a=tg.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(sg.add(a),n.render(cg)):(tg.delete(i),tg.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=Ta(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{og.cancel();let a=mi(e,t,n,r);ag===void 0&&(ag=performance.now()),a.startTime=ag,tg.set(o,{animation:a,startTime:ag}),i&&i(a)};ng.set(a,!1),og.ready?og.ready.then(s).catch(j):s()}var ug=()=>({}),dg=class extends rl{constructor(){super(...arguments),this.measureInstanceViewportBox=Z}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return ug()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},fg=xf({scrapeMotionValuesFromProps:ug,createRenderState:ug});function pg(e){let[t,n]=xe(e),r=fg({},!1),i=O(()=>new dg({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return _e(()=>(i.mount({}),()=>i.unmount()),[i]),[t,O(()=>e=>ja(i,e))]}var mg=0,hg=({children:e})=>(E(()=>{},[]),i(Wd,{id:O(()=>`asl-${mg++}`),children:e})),gg=1e5,_g=e=>e>.001?1/e:gg;function vg(e){let t=zm(1),n=zm(1),{visualElement:r}=T(ef);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Um(t,_g),scaleY:Um(n,_g)}}var yg=w(null);function bg(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:H(t.x.min,t.x.max,.5)+n.x,y:H(t.y.min,t.y.max,.5)+n.y},i=xg(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>Sg(r.y,t)<Sg(r.y,e)?t:e);if(c!==s)return Cg(e,o,r.x,c,a);let l=wg(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=wg(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:je(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=H(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?je(e,o,o+s):e}function xg(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function Sg(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function Cg(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=H(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function wg(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Tg=(e,t)=>e.max<=t.min||t.max<=e.min;function Eg(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Tg(e[r].x,e[i].x),n||=Tg(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Dg({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,...o},s){let c=O(()=>Vp[t]),l=D(new Map),[u,d]=xe(`y`),f=D(!1),p=D(null),m=n||u,h=new Set(a);l.current.forEach((e,t)=>{h.has(t)||l.current.delete(t)});let g={axis:m,groupRef:p,registerItem:(e,t)=>{if(l.current.set(e,t),!n){let e=Eg(a.flatMap(e=>{let t=l.current.get(e);return t?[t]:[]}));e!==u&&d(e)}},updateOrder:(e,t,n)=>{if(f.current)return;let i=a.flatMap(e=>{let t=l.current.get(e);return t?[{value:e,layout:t}]:[]}),o=p.current?.ownerDocument.defaultView?.getComputedStyle(p.current).direction===`rtl`?`rtl`:`ltr`,s=bg(i,e,t,n,m,o);if(i!==s){f.current=!0;let e=[...a],t=i.map(({value:e})=>a.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};E(()=>{f.current=!1});let _=e=>{p.current=e,typeof s==`function`?s(e):s&&(s.current=e)},v={overflowAnchor:`none`,...o.style};return i(c,{...o,style:v,ref:_,ignoreStrict:!0,children:i(yg.Provider,{value:g,children:e})})}var Og=ne(Dg),kg=50,Ag=25,jg=new Set([`auto`,`scroll`]),Mg=new WeakMap,Ng=new WeakMap,Pg=null;function Fg(){if(Pg){let e=Lg(Pg,`y`);e&&(Ng.delete(e),Mg.delete(e));let t=Lg(Pg,`x`);t&&t!==e&&(Ng.delete(t),Mg.delete(t)),Pg=null}}function Ig(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return jg.has(r)||i}function Lg(e,t){let n=e?.parentElement;for(;n;){if(Ig(n,t))return n;n=n.parentElement}return null}function Rg(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<kg){let e=1-o/kg;return{amount:-25*e*e,edge:`start`}}if(s<kg){let e=1-s/kg;return{amount:Ag*e*e,edge:`end`}}return{amount:0,edge:null}}function zg(e,t,n,r){if(!e)return;Pg=e;let i=Lg(e,n);if(!i)return;let{amount:a,edge:o}=Rg(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Ng.delete(i),Mg.delete(i);return}let s=Ng.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Ng.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Mg.set(i,e)}if(a>0){let e=Mg.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Bg(e,t=0){return q(e)?e:zm(t)}function Vg({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,layout:s=!0,...c},l){let u=O(()=>Vp[r]),d=T(yg),f={x:Bg(t.x),y:Bg(t.y)},p=Um([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return i(u,{drag:m===`xy`||m,...c,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:f.x.get(),y:f.y.get()};g(n,o,r);let s=m===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:m;zg(_.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{Fg(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var Hg=ne(Vg),Ug=t({Group:()=>Og,Item:()=>Hg}),Wg=t({AnimatePresence:()=>Rd,AnimateSharedLayout:()=>hg,AsyncMotionValueAnimation:()=>Pi,DOMKeyframesResolver:()=>za,DOMVisualElement:()=>il,DeprecatedLayoutGroupContext:()=>zd,DocumentProjectionNode:()=>id,DragControls:()=>Lh,Feature:()=>al,FlatTree:()=>yu,GroupAnimation:()=>Fi,GroupAnimationWithThen:()=>Li,HTMLProjectionNode:()=>cd,HTMLVisualElement:()=>hl,JSAnimation:()=>hr,KeyframeResolver:()=>ri,LayoutAnimationBuilder:()=>xd,LayoutGroup:()=>Wd,LayoutGroupContext:()=>Te,LazyMotion:()=>Zd,MotionConfig:()=>$d,MotionConfigContext:()=>Td,MotionContext:()=>ef,MotionGlobalConfig:()=>A,MotionValue:()=>Ki,MotionValueState:()=>ro,NativeAnimation:()=>_i,NativeAnimationExtended:()=>Si,NativeAnimationWrapper:()=>Ri,NodeStack:()=>Cu,ObjectVisualElement:()=>_l,PopChild:()=>Ad,PresenceChild:()=>jd,PresenceContext:()=>Oe,Reorder:()=>Ug,SVGVisualElement:()=>Sl,SubscriptionManager:()=>Ve,SwitchLayoutGroupContext:()=>Ef,ViewTransitionBuilder:()=>Ic,VisualElement:()=>rl,WillChangeMotionValue:()=>Zm,acceleratedValues:()=>Di,addAttrValue:()=>Eo,addDomEvent:()=>_u,addEffect:()=>Ka,addPointerEvent:()=>Uf,addPointerInfo:()=>Hf,addSVGValue:()=>ko,addScaleCorrector:()=>dl,addStyleValue:()=>uo,addUniqueItem:()=>ke,addValueToWillChange:()=>xa,alpha:()=>Mt,analyseComplexValue:()=>cn,animate:()=>Dh,animateEffectSubject:()=>Xa,animateElement:()=>rs,animateMini:()=>jh,animateMotionValue:()=>na,animateSingleValue:()=>gu,animateTarget:()=>Oa,animateValue:()=>gr,animateValues:()=>Ya,animateVariant:()=>ka,animateView:()=>Lc,animateVisualElement:()=>ja,animationControls:()=>ih,animationMapKey:()=>Bi,animations:()=>Bf,anticipate:()=>rt,applyAxisDelta:()=>Wo,applyBoxDelta:()=>Go,applyGeneratorOptions:()=>gi,applyPointDelta:()=>Uo,applyPxDefaults:()=>Ha,applyTreeDeltas:()=>Jo,arc:()=>ca,aspectRatio:()=>iu,attachFollow:()=>Qs,attachSpring:()=>ac,attrEffect:()=>Do,axisDeltaEquals:()=>au,axisEquals:()=>eu,axisEqualsRounded:()=>nu,backIn:()=>tt,backInOut:()=>nt,backOut:()=>et,boxEquals:()=>tu,boxEqualsRounded:()=>ru,buildHTMLStyles:()=>yo,buildProjectionTransform:()=>su,buildSVGAttrs:()=>wo,buildSVGPath:()=>So,buildTransform:()=>vo,calcAxisDelta:()=>Bl,calcBoxDelta:()=>Vl,calcChildStagger:()=>Hi,calcGeneratorDuration:()=>Ln,calcLength:()=>$,calcRelativeAxis:()=>Hl,calcRelativeAxisPosition:()=>Wl,calcRelativeBox:()=>Ul,calcRelativePosition:()=>Gl,camelCaseAttributes:()=>vl,camelToDash:()=>Sa,cancelFrame:()=>F,cancelMicrotask:()=>ss,cancelSync:()=>wd,checkVariantsDidChange:()=>Al,circIn:()=>it,circInOut:()=>ot,circOut:()=>at,clamp:()=>k,cleanDirtyNodes:()=>Fu,collectMotionValues:()=>Gi,color:()=>B,compareByDepth:()=>vu,complex:()=>V,containsCSSVariable:()=>At,convertBoundingBoxToBox:()=>Po,convertBoxToBoundingBox:()=>Fo,convertOffsetToTimes:()=>er,copyAxisDeltaInto:()=>Pl,copyAxisInto:()=>Nl,copyBoxInto:()=>Q,correctBorderRadius:()=>cl,correctBoxShadow:()=>ll,correctParentTransform:()=>$h,createAnimationState:()=>kl,createAxis:()=>Bc,createAxisDelta:()=>Rc,createBox:()=>Z,createDelta:()=>zc,createEffect:()=>io,createGeneratorEasing:()=>Rn,createProjectionNode:()=>ju,createRenderBatcher:()=>bt,createScopedAnimate:()=>Eh,cubicBezier:()=>Ze,cubicBezierAsString:()=>di,defaultEasing:()=>tr,defaultOffset:()=>$n,defaultTransformValue:()=>Lr,defaultValueTypes:()=>wr,degrees:()=>Gt,delay:()=>bu,delayInSeconds:()=>xu,dimensionValueTypes:()=>Pa,disableInstantTransitions:()=>Xh,distance:()=>Gf,distance2D:()=>Kf,domAnimation:()=>Up,domMax:()=>Wp,domMin:()=>Gp,eachAxis:()=>ou,easeIn:()=>st,easeInOut:()=>lt,easeOut:()=>ct,easingDefinitionToFunction:()=>gt,fillOffset:()=>Qn,fillWildcards:()=>Or,filterProps:()=>hf,findDimensionValueType:()=>Fa,findEffect:()=>Ja,findValueType:()=>sc,flushKeyframeResolvers:()=>ti,followValue:()=>Zs,frame:()=>P,frameData:()=>I,frameSteps:()=>xt,generateLinearEasing:()=>Fn,getAnimatableNone:()=>Dr,getAnimationMap:()=>Vi,getComputedStyle:()=>Es,getDefaultTransition:()=>$i,getDefaultValueType:()=>Tr,getEasingForSegment:()=>ft,getFeatureDefinitions:()=>nl,getFinalKeyframe:()=>sr,getMixer:()=>En,getOptimisedAppearId:()=>Ta,getOriginIndex:()=>Gs,getValueAsType:()=>eo,getValueTransition:()=>Ji,getVariableValue:()=>da,getVariantContext:()=>wl,getViewAnimationLayerInfo:()=>yc,getViewAnimations:()=>bc,globalProjectionState:()=>wu,handOffElementState:()=>is,has2DTranslate:()=>Bo,hasComplexValues:()=>sn,hasReducedMotionListener:()=>Xc,hasScale:()=>Ro,hasTransform:()=>zo,hasWarned:()=>We,hex:()=>Ut,hover:()=>fs,hsla:()=>Yt,hslaToRgba:()=>gn,inView:()=>qh,inertia:()=>Yn,initPrefersReducedMotion:()=>Qc,interpolate:()=>Zn,invariant:()=>Pe,invisibleValues:()=>Cn,isAnimationControls:()=>Hc,isBezierDefinition:()=>pt,isBrowser:()=>Ee,isCSSVariableName:()=>Et,isCSSVariableToken:()=>Ot,isControllingVariants:()=>Kc,isDeltaZero:()=>$l,isDragActive:()=>cs,isDragging:()=>Y,isEasingArray:()=>dt,isElementKeyboardAccessible:()=>gs,isElementTextInput:()=>vs,isForcedMotionValue:()=>fl,isGenerator:()=>hi,isHTMLElement:()=>Qa,isKeyframesTarget:()=>ga,isMotionComponent:()=>Bh,isMotionValue:()=>q,isNear:()=>zl,isNodeOrChild:()=>ps,isNumericalString:()=>Fe,isObject:()=>Ie,isPrimaryPointer:()=>ms,isSVGElement:()=>$a,isSVGSVGElement:()=>Ws,isSVGTag:()=>yl,isTransitionDefined:()=>ta,isValidMotionProp:()=>pf,isVariantLabel:()=>Uc,isVariantNode:()=>qc,isWaapiSupportedEasing:()=>Ua,isWillChangeMotionValue:()=>ba,isZeroValueString:()=>Le,keyframes:()=>nr,m:()=>If,makeAnimationInstant:()=>Ei,makeUseVisualState:()=>xf,mapEasingToNativeEasing:()=>pi,mapValue:()=>rc,maxGeneratorDuration:()=>In,measurePageBox:()=>$o,measureViewportBox:()=>Qo,memo:()=>Re,microtask:()=>os,millisecondsToSeconds:()=>N,mirrorEasing:()=>Qe,mix:()=>Nn,mixArray:()=>Dn,mixColor:()=>Sn,mixComplex:()=>An,mixImmediate:()=>_n,mixLinearColor:()=>vn,mixNumber:()=>H,mixObject:()=>On,mixValues:()=>du,mixVisibility:()=>wn,motion:()=>Vp,motionValue:()=>K,moveItem:()=>je,nodeGroup:()=>od,noop:()=>j,number:()=>jt,numberValueTypes:()=>W,observeTimeline:()=>Vs,optimizedAppearDataAttribute:()=>wa,optimizedAppearDataId:()=>Ca,parseAnimateLayoutArgs:()=>Sd,parseCSSVariable:()=>ua,parseValueFromTransform:()=>Rr,percent:()=>R,pipe:()=>ze,pixelsToPercent:()=>sl,positionalKeys:()=>ha,prefersReducedMotion:()=>Yc,press:()=>Ts,progress:()=>Be,progressPercentage:()=>Jt,propEffect:()=>as,propagateDirtyNodes:()=>Pu,px:()=>z,readSVGValue:()=>Ao,readStyleValue:()=>po,readTransformValue:()=>zr,recordStats:()=>Us,removeAxisDelta:()=>ql,removeAxisTransforms:()=>Jl,removeBoxTransforms:()=>Zl,removeEffect:()=>qa,removeItem:()=>Ae,removePointDelta:()=>Kl,renderHTML:()=>ol,renderSVG:()=>bl,resize:()=>Bs,resolveElements:()=>to,resolveMotionValue:()=>Su,resolveTransition:()=>qi,resolveVariant:()=>ma,resolveVariantFromProps:()=>pa,reverseEasing:()=>$e,rgbUnit:()=>Bt,rgba:()=>Vt,rootProjectionNode:()=>sd,scale:()=>Nt,scaleCorrectors:()=>ul,scalePoint:()=>Ho,scrapeHTMLMotionValuesFromProps:()=>pl,scrapeSVGMotionValuesFromProps:()=>xl,scroll:()=>jm,scrollInfo:()=>_m,secondsToMilliseconds:()=>M,setDragLock:()=>ls,setFeatureDefinitions:()=>tl,setStyle:()=>ai,setTarget:()=>ya,spring:()=>Jn,springValue:()=>ic,stagger:()=>Ks,startOptimizedAppearAnimation:()=>lg,startWaapiAnimation:()=>mi,statsBuffer:()=>X,steps:()=>ut,styleEffect:()=>ho,styleSubjectEffect:()=>mo,supportedWaapiEasing:()=>fi,supportsBrowserAnimation:()=>Mi,supportsFlags:()=>oi,supportsLinearEasing:()=>ui,supportsPartialKeyframes:()=>Wa,supportsScrollTimeline:()=>ci,supportsViewTimeline:()=>li,svgEffect:()=>Mo,svgSubjectEffect:()=>jo,sync:()=>Cd,testValueType:()=>Na,time:()=>L,transform:()=>qs,transformAxis:()=>Yo,transformBox:()=>Zo,transformBoxPoints:()=>Io,transformPropOrder:()=>Vr,transformProps:()=>G,transformValue:()=>nc,transformValueTypes:()=>Cr,transformViewBoxPoint:()=>Qh,translateAxis:()=>J,unwrapMotionComponent:()=>Vh,updateMotionValuesFromProps:()=>Jc,useAnimate:()=>Oh,useAnimateMini:()=>Mh,useAnimation:()=>Ph,useAnimationControls:()=>Nh,useAnimationFrame:()=>Jm,useComposedRefs:()=>Od,useCycle:()=>Gh,useDeprecatedAnimatedState:()=>pg,useDeprecatedInvertedScale:()=>vg,useDomEvent:()=>Ih,useDragControls:()=>zh,useElementScroll:()=>Lm,useFollowValue:()=>Km,useForceUpdate:()=>Vd,useInView:()=>Jh,useInstantLayoutTransition:()=>Hh,useInstantTransition:()=>Yh,useIsPresent:()=>Pd,useIsomorphicLayoutEffect:()=>De,useMotionTemplate:()=>Vm,useMotionValue:()=>zm,useMotionValueEvent:()=>Kp,usePageInView:()=>Zh,usePresence:()=>Nd,usePresenceData:()=>Fh,useReducedMotion:()=>$m,useReducedMotionConfig:()=>eh,useResetProjection:()=>Wh,useScroll:()=>Im,useSpring:()=>qm,useTime:()=>Ym,useTransform:()=>Um,useUnmountEffect:()=>Hp,useVelocity:()=>Xm,useViewportScroll:()=>Rm,useWillChange:()=>Qm,variantPriorityOrder:()=>Wc,variantProps:()=>Gc,velocityPerSecond:()=>He,vh:()=>Kt,visualElementStore:()=>Vc,vw:()=>qt,warnOnce:()=>Ge,warning:()=>Ne,wrap:()=>Ke}),Gg=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},Kg=Wg;Gg.register([`framer-motion`,`motion/react`,`motion`],Kg),window.Motion=Kg})();
|