moi-computer 0.11.0 → 0.11.1-dev.be1ed10
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 +2 -2
- package/client/AGENTS.md +2 -2
- package/client/app/AppRouter.tsx +2 -2
- package/client/app/routes/WorkspaceRoute.tsx +7 -9
- package/client/app/shell/SidebarLayout.tsx +18 -15
- package/client/components/shared/BottomPanel.tsx +26 -14
- package/client/components/shared/PanelHeader.tsx +1 -1
- package/client/components/shared/ReorderableList.tsx +7 -2
- package/client/components/shared/WorkspaceIcon.tsx +92 -0
- package/client/components/ui/alert-dialog.tsx +1 -0
- package/client/components/ui/button.tsx +1 -53
- package/client/components/ui/checkbox.tsx +1 -0
- package/client/components/ui/collapsible.tsx +1 -15
- package/client/components/ui/dialog.tsx +1 -58
- package/client/components/ui/dropdown-menu.tsx +1 -254
- package/client/components/ui/hover-card.tsx +1 -44
- package/client/components/ui/inline-input.tsx +84 -0
- package/client/components/ui/input.tsx +1 -21
- package/client/components/ui/popover.tsx +1 -88
- package/client/components/ui/resizable.tsx +1 -40
- package/client/components/ui/skeleton.tsx +1 -13
- package/client/components/ui/slider.tsx +1 -70
- package/client/components/ui/spinner.tsx +1 -18
- package/client/components/ui/switch.tsx +1 -23
- package/client/components/ui/tabs.tsx +1 -0
- package/client/components/ui/textarea.tsx +1 -18
- package/client/components/ui/toast.tsx +2 -2
- package/client/components/ui/tooltip.tsx +1 -51
- package/client/features/applets/AppletMount.tsx +1 -1
- package/client/features/applets/applet-cache.ts +3 -3
- package/client/features/applets/applet-runtime.ts +147 -108
- package/client/features/applets/applet-styles.ts +2 -2
- package/client/features/applets/applet-thumbnail.ts +6 -8
- package/client/features/applets/useApplet.ts +10 -9
- package/client/features/chat/ChatPanel.tsx +24 -15
- package/client/features/chat/ChatPopup.tsx +9 -5
- package/client/features/chat/applet-chat-intents.ts +170 -0
- package/client/features/chat/chat-send.ts +116 -64
- package/client/features/chat/chat-store.ts +51 -62
- package/client/features/chat/composer/ChatComposer.tsx +43 -128
- package/client/features/chat/composer/ModelPicker.tsx +47 -60
- package/client/features/chat/composer/attachments/AttachmentChip.tsx +99 -0
- package/client/features/chat/composer/attachments/DrawingAttachmentChip.tsx +37 -0
- package/client/features/chat/composer/attachments/FileAttachmentChip.tsx +22 -0
- package/client/features/chat/composer/attachments/TextAttachmentChip.tsx +11 -0
- package/client/features/chat/composer/attachments/draft-attachments.ts +168 -0
- package/client/features/chat/composer/attachments/types.ts +25 -0
- package/client/features/chat/composer/attachments/uploads.ts +26 -0
- package/client/features/chat/composer/banners/ErrorBanner.tsx +20 -12
- package/client/features/chat/composer/model-order.ts +15 -0
- package/client/features/chat/composer/useWorkspaceComposerState.tsx +15 -7
- package/client/features/chat/{chat-connection.ts → connection/chat-connection.ts} +1 -1
- package/client/features/chat/{chat-frames.ts → connection/chat-frames.ts} +10 -8
- package/client/features/chat/{ChatEmptyState.tsx → messages/ChatEmptyState.tsx} +16 -11
- package/client/features/chat/{MarkdownContent.tsx → messages/MarkdownContent.tsx} +16 -1
- package/client/features/chat/{TurnView.tsx → messages/TurnView.tsx} +27 -19
- package/client/features/chat/{group-turns.ts → messages/group-turns.ts} +12 -0
- package/client/features/chat/{interleave-notices.ts → messages/interleave-notices.ts} +7 -11
- package/client/features/chat/{tool-group → messages/tool-group}/SubagentCard.tsx +1 -1
- package/client/features/chat/{tool-group → messages/tool-group}/TimelineRow.tsx +2 -2
- package/client/features/chat/{tool-group → messages/tool-group}/ToolCallGroup.tsx +2 -5
- package/client/features/chat/{tool-group → messages/tool-group}/format/codex.ts +4 -1
- package/client/features/chat/{ChatSelector.tsx → sessions/ChatSelector.tsx} +3 -3
- package/client/features/chat/{api.ts → sessions/api.ts} +5 -14
- package/client/features/chat/sessions/session-view.ts +53 -0
- package/client/features/chat/useChat.ts +42 -24
- package/client/features/dev/ChatStatesPage.tsx +8 -7
- package/client/features/dev/DevIndexPage.tsx +5 -0
- package/client/features/dev/DevRoutes.tsx +2 -0
- package/client/features/dev/HarnessDebugPage.tsx +11 -8
- package/client/features/dev/ToolCallsPage.tsx +1 -1
- package/client/features/dev/UiComponentPreviews.tsx +855 -0
- package/client/features/dev/UiComponentsPage.tsx +60 -0
- package/client/features/dev/chat-states-fixtures.ts +13 -2
- package/client/features/drawings/useChatAnnotation.ts +17 -17
- package/client/features/drawings/useDrawingLayer.ts +7 -9
- package/client/features/drawings/useViewBuilderSketch.ts +18 -15
- package/client/features/home/HomePage.tsx +8 -7
- package/client/features/home/WorkspacePreview.tsx +2 -2
- package/client/features/home/workspace-presentation.tsx +1 -11
- package/client/features/home/workspace-setup/DemoDialog.tsx +3 -2
- package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +5 -8
- package/client/features/home/workspace-setup/WorkspaceAgentStep.tsx +2 -4
- package/client/features/home/workspace-setup/WorkspaceDialogContent.tsx +7 -20
- package/client/features/overview/HiddenPanel.tsx +109 -0
- package/client/features/overview/Overview.tsx +302 -0
- package/client/features/overview/WidgetCanvas.tsx +164 -0
- package/client/features/{widgets → overview}/WidgetFrame.tsx +25 -17
- package/client/features/overview/WorkspaceName.tsx +60 -0
- package/client/features/overview/api.ts +30 -0
- package/client/features/overview/default/ViewsWidget.tsx +252 -0
- package/client/features/overview/default/registry.tsx +36 -0
- package/client/features/{widgets → overview}/grid.ts +36 -0
- package/client/features/overview/useGridReconcile.ts +94 -0
- package/client/features/scratchpad/Scratchpad.tsx +7 -8
- package/client/features/scratchpad/ScratchpadControls.tsx +0 -1
- package/client/features/scratchpad/useScratchpadSnapshot.tsx +23 -13
- package/client/features/settings/GeneralSettings.tsx +55 -58
- package/client/features/settings/SettingsLayout.tsx +2 -2
- package/client/features/settings/WorkspaceIconPicker.tsx +318 -0
- package/client/features/settings/WorkspaceSettingsDialog.tsx +65 -0
- package/client/features/settings/api.ts +48 -24
- package/client/features/views/ViewBuilder.tsx +5 -4
- package/client/features/views/ViewManager.tsx +25 -22
- package/client/features/views/api.ts +36 -2
- package/client/features/views/useViewBuilderActions.ts +8 -5
- package/client/features/views/useViewBuilderDrafts.ts +23 -21
- package/client/features/views/view-presentation.ts +13 -0
- package/client/features/workspace/{CustomizePanel.tsx → ThemePanel.tsx} +26 -31
- package/client/features/workspace/UnavailablePage.tsx +21 -0
- package/client/features/workspace/WorkspaceLayoutContext.tsx +4 -7
- package/client/features/workspace/WorkspaceScreen.tsx +210 -162
- package/client/features/workspace/WorkspaceSplitLayout.tsx +7 -2
- package/client/features/workspace/WorkspaceTabs.tsx +2 -0
- package/client/features/workspace/api.ts +2 -30
- package/client/features/workspace/moi-context.ts +8 -9
- package/client/features/workspace/tab-resolution.ts +10 -33
- package/client/features/workspace/useWorkspaceNavigation.ts +164 -101
- package/client/index.css +23 -30
- package/client/lib/app-icon-registry.ts +2 -0
- package/client/lib/use-latest-ref.ts +11 -0
- package/client/main.tsx +1 -1
- package/client/runtime/useWorkspaceEvents.ts +59 -14
- package/client/theme.css +5 -5
- package/dist/{chunk-tqd3pkg8.css → chunk-60q353jq.css} +1 -1
- package/dist/chunk-691pqsj6.js +2 -0
- package/dist/chunk-7a5nm4k9.css +1 -0
- package/dist/chunk-amb8y04y.js +1 -0
- package/dist/chunk-cf3pgy7j.js +546 -0
- package/dist/{chunk-11cab5dq.css → chunk-cq2r11fg.css} +1 -1
- package/dist/chunk-mzrgr577.js +5 -0
- package/dist/chunk-nf2wkvf9.js +14 -0
- package/dist/chunk-q6a0g26x.js +1 -0
- package/dist/chunk-twgdemkc.js +74 -0
- package/dist/chunk-x90k0f5c.js +2 -0
- package/dist/chunk-yq00csvd.js +2 -0
- package/dist/index.html +1 -1
- package/lib/app-icons.ts +1 -0
- package/lib/applet-selector.ts +24 -0
- package/lib/chat-title.ts +6 -1
- package/lib/default-widgets.ts +32 -0
- package/lib/format.ts +67 -7
- package/lib/message-attachments.ts +40 -0
- package/lib/moi-attachments.ts +204 -0
- package/lib/moi-context.ts +20 -35
- package/lib/navigation.ts +84 -0
- package/lib/themes.ts +6 -6
- package/lib/types.ts +91 -34
- package/lib/workspace-icon.ts +20 -0
- package/lib/workspace-layout.ts +22 -2
- package/lib/workspace-tabs.ts +9 -33
- package/package.json +42 -32
- package/registry.json +656 -0
- package/server/AGENTS.md +2 -0
- package/server/agent.ts +1 -1
- package/server/api.ts +139 -66
- package/server/applet-typecheck.ts +95 -0
- package/server/applets/applet-css.ts +55 -0
- package/server/{bundler → applets}/build-applet.ts +13 -242
- package/server/applets/build-worker.ts +178 -0
- package/server/applets/config.ts +226 -0
- package/server/applets/dependencies.ts +206 -0
- package/server/{applets.ts → applets/index.ts} +44 -189
- package/server/applets/runtime/base.ts +4 -0
- package/server/applets/runtime/moi.ts +42 -0
- package/server/applets/runtime/rpc.ts +17 -0
- package/server/applets/view-source.ts +67 -0
- package/server/attachment-message.ts +95 -0
- package/server/cli-ui-components.ts +28 -33
- package/server/cli.ts +169 -108
- package/server/control.ts +63 -42
- package/server/data-dir.ts +1 -1
- package/server/harness/README.md +45 -50
- package/server/harness/acp/NOTES.md +426 -0
- package/server/harness/acp/adapter.ts +7 -21
- package/server/harness/acp/discovery.ts +27 -30
- package/server/harness/acp/model-state.ts +57 -0
- package/server/harness/acp/session.ts +49 -56
- package/server/harness/claude-code/NOTES.md +54 -13
- package/server/harness/claude-code/adapter.ts +8 -25
- package/server/harness/claude-code/cli.ts +40 -0
- package/server/harness/claude-code/index.ts +13 -5
- package/server/harness/claude-code/models.ts +72 -19
- package/server/harness/claude-code/session.ts +447 -343
- package/server/harness/claude-code/sessions.ts +9 -4
- package/server/harness/codex/NOTES.md +222 -350
- package/server/harness/codex/adapter.ts +102 -52
- package/server/harness/codex/auth.ts +1 -3
- package/server/harness/codex/client.ts +169 -249
- package/server/harness/codex/discovery.ts +9 -17
- package/server/harness/codex/index.ts +3 -1
- package/server/harness/codex/pagination.ts +24 -0
- package/server/harness/codex/permissions.ts +32 -8
- package/server/harness/codex/probe.ts +10 -13
- package/server/harness/codex/session.ts +567 -181
- package/server/harness/codex/transport.ts +184 -0
- package/server/harness/debug.ts +1 -1
- package/server/harness/hermes/NOTES.md +19 -1
- package/server/harness/hermes/discovery.ts +20 -0
- package/server/harness/hermes/index.ts +13 -0
- package/server/harness/hermes/models.ts +28 -8
- package/server/harness/openclaw/NOTES.md +1 -1
- package/server/harness/openclaw/adapter.ts +22 -4
- package/server/harness/openclaw/gateway.ts +5 -3
- package/server/harness/openclaw/session.ts +27 -27
- package/server/harness/types.ts +9 -5
- package/server/layout.ts +9 -14
- package/server/moi-scaffold.ts +22 -14
- package/server/navigation-relay.ts +110 -0
- package/server/preview.ts +3 -1
- package/server/registry.ts +71 -41
- package/server/scratchpad-executor.ts +79 -56
- package/server/scratchpad-shape-defaults.ts +82 -0
- package/server/selected-session.ts +24 -4
- package/server/skill-update.ts +5 -3
- package/server/skill-version.ts +4 -7
- package/server/skills-template.ts +48 -9
- package/server/tabs.ts +19 -33
- package/server/tldraw-package.d.ts +4 -0
- package/server/ui-components.ts +101 -434
- package/server/uploads.ts +0 -0
- package/server/view-builders.ts +20 -2
- package/server/views.ts +126 -6
- package/server/web.ts +46 -13
- package/server/widgets.ts +12 -5
- package/server/workspace-config.ts +13 -9
- package/server/workspace-env.ts +3 -2
- package/tsconfig.json +0 -1
- package/ui-components/accordion.tsx +71 -0
- package/ui-components/alert-dialog.tsx +165 -0
- package/ui-components/alert.tsx +68 -0
- package/ui-components/attachment.tsx +195 -0
- package/ui-components/avatar.tsx +90 -0
- package/ui-components/badge.tsx +49 -0
- package/ui-components/button-group.tsx +78 -0
- package/ui-components/button.tsx +55 -0
- package/ui-components/calendar.tsx +180 -0
- package/ui-components/card.tsx +84 -0
- package/ui-components/carousel.tsx +235 -0
- package/ui-components/chart.tsx +338 -0
- package/ui-components/checkbox.tsx +28 -0
- package/ui-components/collapsible.tsx +15 -0
- package/ui-components/combobox.tsx +267 -0
- package/ui-components/context-menu.tsx +244 -0
- package/ui-components/dialog.tsx +138 -0
- package/ui-components/docs/accordion.md +463 -0
- package/ui-components/docs/alert-dialog.md +481 -0
- package/ui-components/docs/alert.md +301 -0
- package/ui-components/docs/attachment.md +689 -0
- package/ui-components/docs/avatar.md +495 -0
- package/ui-components/docs/badge.md +258 -0
- package/ui-components/docs/button-group.md +879 -0
- package/ui-components/docs/button.md +26 -0
- package/ui-components/docs/calendar.md +862 -0
- package/ui-components/docs/card.md +265 -0
- package/ui-components/docs/carousel.md +627 -0
- package/ui-components/docs/chart.md +1256 -0
- package/ui-components/docs/checkbox.md +477 -0
- package/ui-components/docs/collapsible.md +446 -0
- package/ui-components/docs/combobox.md +1003 -0
- package/ui-components/docs/context-menu.md +860 -0
- package/ui-components/docs/data-table.md +1580 -0
- package/ui-components/docs/date-picker.md +614 -0
- package/ui-components/docs/dialog.md +414 -0
- package/ui-components/docs/drawer.md +51 -0
- package/ui-components/docs/dropdown-menu.md +1000 -0
- package/ui-components/docs/field.md +1192 -0
- package/ui-components/docs/hover-card.md +275 -0
- package/ui-components/docs/input-group.md +866 -0
- package/ui-components/docs/input.md +456 -0
- package/ui-components/docs/kbd.md +191 -0
- package/ui-components/docs/label.md +295 -0
- package/ui-components/docs/pagination.md +416 -0
- package/ui-components/docs/popover.md +348 -0
- package/ui-components/docs/progress.md +214 -0
- package/ui-components/docs/radio-group.md +389 -0
- package/ui-components/docs/resizable.md +265 -0
- package/ui-components/docs/select.md +616 -0
- package/ui-components/docs/separator.md +216 -0
- package/ui-components/docs/skeleton.md +205 -0
- package/ui-components/docs/slider.md +226 -0
- package/ui-components/docs/spinner.md +332 -0
- package/ui-components/docs/switch.md +236 -0
- package/ui-components/docs/table.md +551 -0
- package/ui-components/docs/tabs.md +379 -0
- package/ui-components/docs/textarea.md +187 -0
- package/ui-components/docs/toggle-group.md +370 -0
- package/ui-components/docs/toggle.md +91 -0
- package/ui-components/docs/tooltip.md +290 -0
- package/ui-components/drawer.tsx +213 -0
- package/ui-components/dropdown-menu.tsx +263 -0
- package/ui-components/field.tsx +224 -0
- package/ui-components/hover-card.tsx +46 -0
- package/ui-components/input-group.tsx +146 -0
- package/ui-components/input.tsx +20 -0
- package/ui-components/kbd.tsx +32 -0
- package/ui-components/label.tsx +17 -0
- package/ui-components/pagination.tsx +124 -0
- package/ui-components/popover.tsx +81 -0
- package/ui-components/progress.tsx +63 -0
- package/ui-components/radio-group.tsx +38 -0
- package/ui-components/resizable.tsx +40 -0
- package/ui-components/scoped-portal.tsx +31 -0
- package/ui-components/select.tsx +195 -0
- package/ui-components/separator.tsx +18 -0
- package/ui-components/skeleton.tsx +15 -0
- package/ui-components/slider.tsx +75 -0
- package/ui-components/spinner.tsx +20 -0
- package/ui-components/switch.tsx +27 -0
- package/ui-components/table.tsx +86 -0
- package/ui-components/tabs.tsx +75 -0
- package/ui-components/textarea.tsx +17 -0
- package/ui-components/toggle-group.tsx +85 -0
- package/ui-components/toggle.tsx +42 -0
- package/ui-components/tooltip.tsx +61 -0
- package/ui-components/utils.ts +8 -0
- package/workspace/.claude/skills/moi-workspace/SKILL.md +295 -248
- package/workspace/.claude/skills/moi-workspace/references/DESIGN.md +100 -152
- package/workspace/.claude/skills/moi-workspace/references/INTENTS.md +156 -0
- package/workspace/.claude/skills/moi-workspace/references/UI-COMPONENTS.md +67 -203
- package/client/features/chat/attachment-staging.ts +0 -153
- package/client/features/chat/uploads.ts +0 -18
- package/client/features/chat/useAppletChatMessage.ts +0 -68
- package/client/features/settings/IconPicker.tsx +0 -442
- package/client/features/settings/WorkspaceSettings.tsx +0 -92
- package/client/features/settings/render-icon.ts +0 -173
- package/client/features/widgets/HiddenPanel.tsx +0 -80
- package/client/features/widgets/WidgetGrid.tsx +0 -123
- package/client/features/widgets/Widgets.tsx +0 -264
- package/client/features/widgets/useGridReconcile.ts +0 -73
- package/dist/chunk-104m57qw.js +0 -2
- package/dist/chunk-59zf0m6n.js +0 -1
- package/dist/chunk-bj3akjs2.js +0 -1
- package/dist/chunk-c9pjqx9m.js +0 -14
- package/dist/chunk-j2w2vak4.js +0 -546
- package/dist/chunk-k2r9c95m.js +0 -10
- package/dist/chunk-kmbxhgwv.js +0 -1
- package/dist/chunk-p1yqa71k.js +0 -83
- package/dist/chunk-pcnahct1.js +0 -5
- package/dist/chunk-r5xrenjy.css +0 -1
- package/dist/chunk-tny85yt2.js +0 -2
- package/dist/chunk-v7wr1df4.js +0 -2
- package/server/bundler/applet-css.ts +0 -155
- /package/client/features/chat/{ChatPromptBubbles.tsx → messages/ChatPromptBubbles.tsx} +0 -0
- /package/client/features/chat/{ShimmerText.tsx → messages/ShimmerText.tsx} +0 -0
- /package/client/features/chat/{preview-turn.ts → messages/preview-turn.ts} +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/CodeBlock.tsx +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/Collapse.tsx +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/ReadImagePreview.tsx +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/ToolOutput.tsx +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/detect.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/fixtures.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/claude.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/hermes.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/index.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/mcp.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/openclaw.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/shared.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/format/shell.ts +0 -0
- /package/client/features/chat/{tool-group → messages/tool-group}/index.ts +0 -0
- /package/client/features/chat/{useStickToBottom.ts → messages/useStickToBottom.ts} +0 -0
- /package/client/features/chat/{useSelectedSession.ts → sessions/useSelectedSession.ts} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e,x,Ie}from"/chunk-691pqsj6.js";import{t}from"/chunk-yq00csvd.js";var r=x(function(yx,Sf){Sf.exports=globalThis.__esm["react/jsx-runtime"]});var le=x(function(Cx,bf){bf.exports=globalThis.__esm["react-dom/client"]});var k=x(function(Wsr,bd){bd.exports=globalThis.__esm["react-dom"]});var An=new Map;function we(f,I){if(I)An.set(f,I);else An.delete(f)}function ke(f){return An.get(f)}var fa=e(t(),1),vf=e(r(),1),Ff=fa.createContext("default");function b(){return fa.useContext(Ff)}function Pe({id:f,children:I}){return vf.jsx(Ff,{value:f,children:I})}function Bf(f){var I,P,D="";if(typeof f=="string"||typeof f=="number")D+=f;else if(typeof f=="object")if(Array.isArray(f)){var T=f.length;for(I=0;I<T;I++)f[I]&&(P=Bf(f[I]))&&(D&&(D+=" "),D+=P)}else for(P in f)f[P]&&(D&&(D+=" "),D+=P);return D}function It(){for(var f,I,P=0,D="",T=arguments.length;P<T;P++)(f=arguments[P])&&(I=Bf(f))&&(D&&(D+=" "),D+=I);return D}var be=It;var Fd=(f,I)=>{let P=Array(f.length+I.length);for(let D=0;D<f.length;D++)P[D]=f[D];for(let D=0;D<I.length;D++)P[f.length+D]=I[D];return P},vd=(f,I)=>({classGroupId:f,validator:I}),Mf=(f=new Map,I=null,P)=>({nextPart:f,validators:I,classGroupId:P});var wf=[];var Bd=(f)=>{let I=Pd(f),{conflictingClassGroups:P,conflictingClassGroupModifiers:D}=f;return{getClassGroupId:(L)=>{if(L.startsWith("[")&&L.endsWith("]"))return wd(L);let Z=L.split("-"),ge=Z[0]===""&&Z.length>1?1:0;return kf(Z,ge,I)},getConflictingClassGroupIds:(L,Z)=>{if(Z){let ge=D[L],xe=P[L];if(ge){if(xe)return Fd(xe,ge);return ge}return xe||wf}return P[L]||wf}}},kf=(f,I,P)=>{if(f.length-I===0)return P.classGroupId;let T=f[I],H=P.nextPart.get(T);if(H){let xe=kf(f,I+1,H);if(xe)return xe}let L=P.validators;if(L===null)return;let Z=I===0?f.join("-"):f.slice(I).join("-"),ge=L.length;for(let xe=0;xe<ge;xe++){let Fe=L[xe];if(Fe.validator(Z))return Fe.classGroupId}return},wd=(f)=>f.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let I=f.slice(1,-1),P=I.indexOf(":"),D=I.slice(0,P);return D?"arbitrary.."+D:void 0})(),Pd=(f)=>{let{theme:I,classGroups:P}=f;return Dd(P,I)},Dd=(f,I)=>{let P=Mf();for(let D in f){let T=f[D];Mn(T,P,D,I)}return P},Mn=(f,I,P,D)=>{let T=f.length;for(let H=0;H<T;H++){let L=f[H];Ad(L,I,P,D)}},Ad=(f,I,P,D)=>{if(typeof f==="string"){Td(f,I,P);return}if(typeof f==="function"){Md(f,I,P,D);return}kd(f,I,P,D)},Td=(f,I,P)=>{let D=f===""?I:Lf(I,f);D.classGroupId=P},Md=(f,I,P,D)=>{if(Ld(f)){Mn(f(D),I,P,D);return}if(I.validators===null)I.validators=[];I.validators.push(vd(P,f))},kd=(f,I,P,D)=>{let T=Object.entries(f),H=T.length;for(let L=0;L<H;L++){let[Z,ge]=T[L];Mn(ge,Lf(I,Z),P,D)}},Lf=(f,I)=>{let P=f,D=I.split("-"),T=D.length;for(let H=0;H<T;H++){let L=D[H],Z=P.nextPart.get(L);if(!Z)Z=Mf(),P.nextPart.set(L,Z);P=Z}return P},Ld=(f)=>("isThemeGetter"in f)&&f.isThemeGetter===!0,Rd=(f)=>{if(f<1)return{get:()=>{return},set:()=>{}};let I=0,P=Object.create(null),D=Object.create(null),T=(H,L)=>{if(P[H]=L,I++,I>f)I=0,D=P,P=Object.create(null)};return{get(H){let L=P[H];if(L!==void 0)return L;if((L=D[H])!==void 0)return T(H,L),L},set(H,L){if(H in P)P[H]=L;else T(H,L)}}};var Od=[],Pf=(f,I,P,D,T)=>({modifiers:f,hasImportantModifier:I,baseClassName:P,maybePostfixModifierPosition:D,isExternal:T}),Ed=(f)=>{let{prefix:I,experimentalParseClassName:P}=f,D=(T)=>{let H=[],L=0,Z=0,ge=0,xe,Fe=T.length;for(let Oe=0;Oe<Fe;Oe++){let Re=T[Oe];if(L===0&&Z===0){if(Re===":"){H.push(T.slice(ge,Oe)),ge=Oe+1;continue}if(Re==="/"){xe=Oe;continue}}if(Re==="[")L++;else if(Re==="]")L--;else if(Re==="(")Z++;else if(Re===")")Z--}let Be=H.length===0?T:T.slice(ge),De=Be,Me=!1;if(Be.endsWith("!"))De=Be.slice(0,-1),Me=!0;else if(Be.startsWith("!"))De=Be.slice(1),Me=!0;let Ae=xe&&xe>ge?xe-ge:void 0;return Pf(H,Me,De,Ae)};if(I){let T=I+":",H=D;D=(L)=>L.startsWith(T)?H(L.slice(T.length)):Pf(Od,!1,L,void 0,!0)}if(P){let T=D;D=(H)=>P({className:H,parseClassName:T})}return D},Vd=(f)=>{let I=new Map;return f.orderSensitiveModifiers.forEach((P,D)=>{I.set(P,1e6+D)}),(P)=>{let D=[],T=[];for(let H=0;H<P.length;H++){let L=P[H],Z=L[0]==="[",ge=I.has(L);if(Z||ge){if(T.length>0)T.sort(),D.push(...T),T=[];D.push(L)}else T.push(L)}if(T.length>0)T.sort(),D.push(...T);return D}},Nd=(f)=>({cache:Rd(f.cacheSize),parseClassName:Ed(f),sortModifiers:Vd(f),postfixLookupClassGroupIds:Hd(f),...Bd(f)}),Hd=(f)=>{let I=Object.create(null),P=f.postfixLookupClassGroups;if(P)for(let D=0;D<P.length;D++)I[P[D]]=!0;return I},Ud=/\s+/,Wd=(f,I)=>{let{parseClassName:P,getClassGroupId:D,getConflictingClassGroupIds:T,sortModifiers:H,postfixLookupClassGroupIds:L}=I,Z=[],ge=f.trim().split(Ud),xe="";for(let Fe=ge.length-1;Fe>=0;Fe-=1){let Be=ge[Fe],{isExternal:De,modifiers:Me,hasImportantModifier:Ae,baseClassName:Oe,maybePostfixModifierPosition:Re}=P(Be);if(De){xe=Be+(xe.length>0?" "+xe:xe);continue}let Ve=!!Re,Ne;if(Ve){let je=Oe.substring(0,Re);Ne=D(je);let Ee=Ne&&L[Ne]?D(Oe):void 0;if(Ee&&Ee!==Ne)Ne=Ee,Ve=!1}else Ne=D(Oe);if(!Ne){if(!Ve){xe=Be+(xe.length>0?" "+xe:xe);continue}if(Ne=D(Oe),!Ne){xe=Be+(xe.length>0?" "+xe:xe);continue}Ve=!1}let He=Me.length===0?"":Me.length===1?Me[0]:H(Me).join(":"),Le=Ae?He+"!":He,ze=Le+Ne;if(Z.indexOf(ze)>-1)continue;Z.push(ze);let Xe=T(Ne,Ve);for(let je=0;je<Xe.length;++je){let Ee=Xe[je];Z.push(Le+Ee)}xe=Be+(xe.length>0?" "+xe:xe)}return xe},qd=(...f)=>{let I=0,P,D,T="";while(I<f.length)if(P=f[I++]){if(D=Rf(P))T&&(T+=" "),T+=D}return T},Rf=(f)=>{if(typeof f==="string")return f;let I,P="";for(let D=0;D<f.length;D++)if(f[D]){if(I=Rf(f[D]))P&&(P+=" "),P+=I}return P},Gd=(f,...I)=>{let P,D,T,H,L=(ge)=>{let xe=I.reduce((Fe,Be)=>Be(Fe),f());return P=Nd(xe),D=P.cache.get,T=P.cache.set,H=Z,Z(ge)},Z=(ge)=>{let xe=D(ge);if(xe)return xe;let Fe=Wd(ge,P);return T(ge,Fe),Fe};return H=L,(...ge)=>H(qd(...ge))},zd=[],co=(f)=>{let I=(P)=>P[f]||zd;return I.isThemeGetter=!0,I},Of=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ef=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_d=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jo=(f)=>jd.test(f),Ye=(f)=>!!f&&!Number.isNaN(Number(f)),Vo=(f)=>!!f&&Number.isInteger(Number(f)),Tn=(f)=>f.endsWith("%")&&Ye(f.slice(0,-1)),Ko=(f)=>Kd.test(f),Vf=()=>!0,$d=(f)=>Xd.test(f)&&!_d.test(f),kn=()=>!1,Qd=(f)=>Yd.test(f),Jd=(f)=>Zd.test(f),eu=(f)=>!We(f)&&!qe(f),ou=(f)=>f.startsWith("@container")&&(f[10]==="/"&&f[11]!==void 0||f[11]==="s"&&f[16]!==void 0&&f.startsWith("-size/",10)||f[11]==="n"&&f[18]!==void 0&&f.startsWith("-normal/",10)),tu=(f)=>et(f,Uf,kn),We=(f)=>Of.test(f),ht=(f)=>et(f,Wf,$d),Df=(f)=>et(f,cu,Ye),ru=(f)=>et(f,Gf,Vf),au=(f)=>et(f,qf,kn),Af=(f)=>et(f,Nf,kn),nu=(f)=>et(f,Hf,Jd),la=(f)=>et(f,zf,Qd),qe=(f)=>Ef.test(f),lr=(f)=>gt(f,Wf),su=(f)=>gt(f,qf),Tf=(f)=>gt(f,Nf),fu=(f)=>gt(f,Uf),lu=(f)=>gt(f,Hf),ia=(f)=>gt(f,zf,!0),iu=(f)=>gt(f,Gf,!0),et=(f,I,P)=>{let D=Of.exec(f);if(D){if(D[1])return I(D[1]);return P(D[2])}return!1},gt=(f,I,P=!1)=>{let D=Ef.exec(f);if(D){if(D[1])return I(D[1]);return P}return!1},Nf=(f)=>f==="position"||f==="percentage",Hf=(f)=>f==="image"||f==="url",Uf=(f)=>f==="length"||f==="size"||f==="bg-size",Wf=(f)=>f==="length",cu=(f)=>f==="number",qf=(f)=>f==="family-name",Gf=(f)=>f==="number"||f==="weight",zf=(f)=>f==="shadow";var du=()=>{let f=co("color"),I=co("font"),P=co("text"),D=co("font-weight"),T=co("tracking"),H=co("leading"),L=co("breakpoint"),Z=co("container"),ge=co("spacing"),xe=co("radius"),Fe=co("shadow"),Be=co("inset-shadow"),De=co("text-shadow"),Me=co("drop-shadow"),Ae=co("blur"),Oe=co("perspective"),Re=co("aspect"),Ve=co("ease"),Ne=co("animate"),He=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Le=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ze=()=>[...Le(),qe,We],Xe=()=>["auto","hidden","clip","visible","scroll"],je=()=>["auto","contain","none"],Ee=()=>[qe,We,ge],Ze=()=>[Jo,"full","auto",...Ee()],Ke=()=>[Vo,"none","subgrid",qe,We],Qe=()=>["auto",{span:["full",Vo,qe,We]},Vo,qe,We],oo=()=>[Vo,"auto",qe,We],Ao=()=>["auto","min","max","fr",qe,We],Bo=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ho=()=>["start","end","center","stretch","center-safe","end-safe"],no=()=>["auto",...Ee()],Qo=()=>[Jo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Ee()],fo=()=>[Jo,"screen","full","dvw","lvw","svw","min","max","fit",...Ee()],go=()=>[Jo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Ee()],Ge=()=>[f,qe,We],jo=()=>[...Le(),Tf,Af,{position:[qe,We]}],ta=()=>["no-repeat",{repeat:["","x","y","space","round"]}],gf=()=>["auto","cover","contain",fu,tu,{size:[qe,We]}],Pn=()=>[Tn,lr,ht],So=()=>["","none","full",xe,qe,We],bo=()=>["",Ye,lr,ht],ra=()=>["solid","dashed","dotted","double"],yf=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],po=()=>[Ye,Tn,Tf,Af],Cf=()=>["","none",Ae,qe,We],aa=()=>["none",Ye,qe,We],na=()=>["none",Ye,qe,We],Dn=()=>[Ye,qe,We],sa=()=>[Jo,"full",...Ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ko],breakpoint:[Ko],color:[Vf],container:[Ko],"drop-shadow":[Ko],ease:["in","out","in-out"],font:[eu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ko],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ko],shadow:[Ko],spacing:["px",Ye],text:[Ko],"text-shadow":[Ko],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jo,We,qe,Re]}],container:["container"],"container-type":[{"@container":["","normal","size",qe,We]}],"container-named":[ou],columns:[{columns:[Ye,We,qe,Z]}],"break-after":[{"break-after":He()}],"break-before":[{"break-before":He()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ze()}],overflow:[{overflow:Xe()}],"overflow-x":[{"overflow-x":Xe()}],"overflow-y":[{"overflow-y":Xe()}],overscroll:[{overscroll:je()}],"overscroll-x":[{"overscroll-x":je()}],"overscroll-y":[{"overscroll-y":je()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Ze()}],"inset-x":[{"inset-x":Ze()}],"inset-y":[{"inset-y":Ze()}],start:[{"inset-s":Ze(),start:Ze()}],end:[{"inset-e":Ze(),end:Ze()}],"inset-bs":[{"inset-bs":Ze()}],"inset-be":[{"inset-be":Ze()}],top:[{top:Ze()}],right:[{right:Ze()}],bottom:[{bottom:Ze()}],left:[{left:Ze()}],visibility:["visible","invisible","collapse"],z:[{z:[Vo,"auto",qe,We]}],basis:[{basis:[Jo,"full","auto",Z,...Ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,Jo,"auto","initial","none",We]}],grow:[{grow:["",Ye,qe,We]}],shrink:[{shrink:["",Ye,qe,We]}],order:[{order:[Vo,"first","last","none",qe,We]}],"grid-cols":[{"grid-cols":Ke()}],"col-start-end":[{col:Qe()}],"col-start":[{"col-start":oo()}],"col-end":[{"col-end":oo()}],"grid-rows":[{"grid-rows":Ke()}],"row-start-end":[{row:Qe()}],"row-start":[{"row-start":oo()}],"row-end":[{"row-end":oo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ao()}],"auto-rows":[{"auto-rows":Ao()}],gap:[{gap:Ee()}],"gap-x":[{"gap-x":Ee()}],"gap-y":[{"gap-y":Ee()}],"justify-content":[{justify:[...Bo(),"normal"]}],"justify-items":[{"justify-items":[...ho(),"normal"]}],"justify-self":[{"justify-self":["auto",...ho()]}],"align-content":[{content:["normal",...Bo()]}],"align-items":[{items:[...ho(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ho(),{baseline:["","last"]}]}],"place-content":[{"place-content":Bo()}],"place-items":[{"place-items":[...ho(),"baseline"]}],"place-self":[{"place-self":["auto",...ho()]}],p:[{p:Ee()}],px:[{px:Ee()}],py:[{py:Ee()}],ps:[{ps:Ee()}],pe:[{pe:Ee()}],pbs:[{pbs:Ee()}],pbe:[{pbe:Ee()}],pt:[{pt:Ee()}],pr:[{pr:Ee()}],pb:[{pb:Ee()}],pl:[{pl:Ee()}],m:[{m:no()}],mx:[{mx:no()}],my:[{my:no()}],ms:[{ms:no()}],me:[{me:no()}],mbs:[{mbs:no()}],mbe:[{mbe:no()}],mt:[{mt:no()}],mr:[{mr:no()}],mb:[{mb:no()}],ml:[{ml:no()}],"space-x":[{"space-x":Ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:Qo()}],"inline-size":[{inline:["auto",...fo()]}],"min-inline-size":[{"min-inline":["auto",...fo()]}],"max-inline-size":[{"max-inline":["none",...fo()]}],"block-size":[{block:["auto",...go()]}],"min-block-size":[{"min-block":["auto",...go()]}],"max-block-size":[{"max-block":["none",...go()]}],w:[{w:[Z,"screen",...Qo()]}],"min-w":[{"min-w":[Z,"screen","none",...Qo()]}],"max-w":[{"max-w":[Z,"screen","none","prose",{screen:[L]},...Qo()]}],h:[{h:["screen","lh",...Qo()]}],"min-h":[{"min-h":["screen","lh","none",...Qo()]}],"max-h":[{"max-h":["screen","lh",...Qo()]}],"font-size":[{text:["base",P,lr,ht]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[D,iu,ru]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tn,We]}],"font-family":[{font:[su,au,I]}],"font-features":[{"font-features":[We]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[T,qe,We]}],"line-clamp":[{"line-clamp":[Ye,"none",qe,Df]}],leading:[{leading:[H,...Ee()]}],"list-image":[{"list-image":["none",qe,We]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,We]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Ge()}],"text-color":[{text:Ge()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ra(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",qe,ht]}],"text-decoration-color":[{decoration:Ge()}],"underline-offset":[{"underline-offset":[Ye,"auto",qe,We]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Ee()}],"tab-size":[{tab:[Vo,qe,We]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,We]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:jo()}],"bg-repeat":[{bg:ta()}],"bg-size":[{bg:gf()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vo,qe,We],radial:["",qe,We],conic:[Vo,qe,We]},lu,nu]}],"bg-color":[{bg:Ge()}],"gradient-from-pos":[{from:Pn()}],"gradient-via-pos":[{via:Pn()}],"gradient-to-pos":[{to:Pn()}],"gradient-from":[{from:Ge()}],"gradient-via":[{via:Ge()}],"gradient-to":[{to:Ge()}],rounded:[{rounded:So()}],"rounded-s":[{"rounded-s":So()}],"rounded-e":[{"rounded-e":So()}],"rounded-t":[{"rounded-t":So()}],"rounded-r":[{"rounded-r":So()}],"rounded-b":[{"rounded-b":So()}],"rounded-l":[{"rounded-l":So()}],"rounded-ss":[{"rounded-ss":So()}],"rounded-se":[{"rounded-se":So()}],"rounded-ee":[{"rounded-ee":So()}],"rounded-es":[{"rounded-es":So()}],"rounded-tl":[{"rounded-tl":So()}],"rounded-tr":[{"rounded-tr":So()}],"rounded-br":[{"rounded-br":So()}],"rounded-bl":[{"rounded-bl":So()}],"border-w":[{border:bo()}],"border-w-x":[{"border-x":bo()}],"border-w-y":[{"border-y":bo()}],"border-w-s":[{"border-s":bo()}],"border-w-e":[{"border-e":bo()}],"border-w-bs":[{"border-bs":bo()}],"border-w-be":[{"border-be":bo()}],"border-w-t":[{"border-t":bo()}],"border-w-r":[{"border-r":bo()}],"border-w-b":[{"border-b":bo()}],"border-w-l":[{"border-l":bo()}],"divide-x":[{"divide-x":bo()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":bo()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ra(),"hidden","none"]}],"divide-style":[{divide:[...ra(),"hidden","none"]}],"border-color":[{border:Ge()}],"border-color-x":[{"border-x":Ge()}],"border-color-y":[{"border-y":Ge()}],"border-color-s":[{"border-s":Ge()}],"border-color-e":[{"border-e":Ge()}],"border-color-bs":[{"border-bs":Ge()}],"border-color-be":[{"border-be":Ge()}],"border-color-t":[{"border-t":Ge()}],"border-color-r":[{"border-r":Ge()}],"border-color-b":[{"border-b":Ge()}],"border-color-l":[{"border-l":Ge()}],"divide-color":[{divide:Ge()}],"outline-style":[{outline:[...ra(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,qe,We]}],"outline-w":[{outline:["",Ye,lr,ht]}],"outline-color":[{outline:Ge()}],shadow:[{shadow:["","none",Fe,ia,la]}],"shadow-color":[{shadow:Ge()}],"inset-shadow":[{"inset-shadow":["none",Be,ia,la]}],"inset-shadow-color":[{"inset-shadow":Ge()}],"ring-w":[{ring:bo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Ge()}],"ring-offset-w":[{"ring-offset":[Ye,ht]}],"ring-offset-color":[{"ring-offset":Ge()}],"inset-ring-w":[{"inset-ring":bo()}],"inset-ring-color":[{"inset-ring":Ge()}],"text-shadow":[{"text-shadow":["none",De,ia,la]}],"text-shadow-color":[{"text-shadow":Ge()}],opacity:[{opacity:[Ye,qe,We]}],"mix-blend":[{"mix-blend":[...yf(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":yf()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":po()}],"mask-image-linear-to-pos":[{"mask-linear-to":po()}],"mask-image-linear-from-color":[{"mask-linear-from":Ge()}],"mask-image-linear-to-color":[{"mask-linear-to":Ge()}],"mask-image-t-from-pos":[{"mask-t-from":po()}],"mask-image-t-to-pos":[{"mask-t-to":po()}],"mask-image-t-from-color":[{"mask-t-from":Ge()}],"mask-image-t-to-color":[{"mask-t-to":Ge()}],"mask-image-r-from-pos":[{"mask-r-from":po()}],"mask-image-r-to-pos":[{"mask-r-to":po()}],"mask-image-r-from-color":[{"mask-r-from":Ge()}],"mask-image-r-to-color":[{"mask-r-to":Ge()}],"mask-image-b-from-pos":[{"mask-b-from":po()}],"mask-image-b-to-pos":[{"mask-b-to":po()}],"mask-image-b-from-color":[{"mask-b-from":Ge()}],"mask-image-b-to-color":[{"mask-b-to":Ge()}],"mask-image-l-from-pos":[{"mask-l-from":po()}],"mask-image-l-to-pos":[{"mask-l-to":po()}],"mask-image-l-from-color":[{"mask-l-from":Ge()}],"mask-image-l-to-color":[{"mask-l-to":Ge()}],"mask-image-x-from-pos":[{"mask-x-from":po()}],"mask-image-x-to-pos":[{"mask-x-to":po()}],"mask-image-x-from-color":[{"mask-x-from":Ge()}],"mask-image-x-to-color":[{"mask-x-to":Ge()}],"mask-image-y-from-pos":[{"mask-y-from":po()}],"mask-image-y-to-pos":[{"mask-y-to":po()}],"mask-image-y-from-color":[{"mask-y-from":Ge()}],"mask-image-y-to-color":[{"mask-y-to":Ge()}],"mask-image-radial":[{"mask-radial":[qe,We]}],"mask-image-radial-from-pos":[{"mask-radial-from":po()}],"mask-image-radial-to-pos":[{"mask-radial-to":po()}],"mask-image-radial-from-color":[{"mask-radial-from":Ge()}],"mask-image-radial-to-color":[{"mask-radial-to":Ge()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Le()}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":po()}],"mask-image-conic-to-pos":[{"mask-conic-to":po()}],"mask-image-conic-from-color":[{"mask-conic-from":Ge()}],"mask-image-conic-to-color":[{"mask-conic-to":Ge()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:jo()}],"mask-repeat":[{mask:ta()}],"mask-size":[{mask:gf()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,We]}],filter:[{filter:["","none",qe,We]}],blur:[{blur:Cf()}],brightness:[{brightness:[Ye,qe,We]}],contrast:[{contrast:[Ye,qe,We]}],"drop-shadow":[{"drop-shadow":["","none",Me,ia,la]}],"drop-shadow-color":[{"drop-shadow":Ge()}],grayscale:[{grayscale:["",Ye,qe,We]}],"hue-rotate":[{"hue-rotate":[Ye,qe,We]}],invert:[{invert:["",Ye,qe,We]}],saturate:[{saturate:[Ye,qe,We]}],sepia:[{sepia:["",Ye,qe,We]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,We]}],"backdrop-blur":[{"backdrop-blur":Cf()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,qe,We]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,qe,We]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,qe,We]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,qe,We]}],"backdrop-invert":[{"backdrop-invert":["",Ye,qe,We]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,qe,We]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,qe,We]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,qe,We]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Ee()}],"border-spacing-x":[{"border-spacing-x":Ee()}],"border-spacing-y":[{"border-spacing-y":Ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,We]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",qe,We]}],ease:[{ease:["linear","initial",Ve,qe,We]}],delay:[{delay:[Ye,qe,We]}],animate:[{animate:["none",Ne,qe,We]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Oe,qe,We]}],"perspective-origin":[{"perspective-origin":ze()}],rotate:[{rotate:aa()}],"rotate-x":[{"rotate-x":aa()}],"rotate-y":[{"rotate-y":aa()}],"rotate-z":[{"rotate-z":aa()}],scale:[{scale:na()}],"scale-x":[{"scale-x":na()}],"scale-y":[{"scale-y":na()}],"scale-z":[{"scale-z":na()}],"scale-3d":["scale-3d"],skew:[{skew:Dn()}],"skew-x":[{"skew-x":Dn()}],"skew-y":[{"skew-y":Dn()}],transform:[{transform:[qe,We,"","none","gpu","cpu"]}],"transform-origin":[{origin:ze()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:sa()}],"translate-x":[{"translate-x":sa()}],"translate-y":[{"translate-y":sa()}],"translate-z":[{"translate-z":sa()}],"translate-none":["translate-none"],zoom:[{zoom:[Vo,qe,We]}],accent:[{accent:Ge()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Ge()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe,We]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Ge()}],"scrollbar-track-color":[{"scrollbar-track":Ge()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Ee()}],"scroll-mx":[{"scroll-mx":Ee()}],"scroll-my":[{"scroll-my":Ee()}],"scroll-ms":[{"scroll-ms":Ee()}],"scroll-me":[{"scroll-me":Ee()}],"scroll-mbs":[{"scroll-mbs":Ee()}],"scroll-mbe":[{"scroll-mbe":Ee()}],"scroll-mt":[{"scroll-mt":Ee()}],"scroll-mr":[{"scroll-mr":Ee()}],"scroll-mb":[{"scroll-mb":Ee()}],"scroll-ml":[{"scroll-ml":Ee()}],"scroll-p":[{"scroll-p":Ee()}],"scroll-px":[{"scroll-px":Ee()}],"scroll-py":[{"scroll-py":Ee()}],"scroll-ps":[{"scroll-ps":Ee()}],"scroll-pe":[{"scroll-pe":Ee()}],"scroll-pbs":[{"scroll-pbs":Ee()}],"scroll-pbe":[{"scroll-pbe":Ee()}],"scroll-pt":[{"scroll-pt":Ee()}],"scroll-pr":[{"scroll-pr":Ee()}],"scroll-pb":[{"scroll-pb":Ee()}],"scroll-pl":[{"scroll-pl":Ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe,We]}],fill:[{fill:["none",...Ge()]}],"stroke-w":[{stroke:[Ye,lr,ht,Df]}],stroke:[{stroke:["none",...Ge()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var ca=Gd(du);function n(...f){return ca(It(f))}function p(...f){return ca(It(f))}var il=e(t(),1);var Wt=e(t(),1);function da(){return typeof window<"u"}function E(f){if(ce(f))return(f.nodeName||"").toLowerCase();return"#document"}function m(f){var I;return(f==null||(I=f.ownerDocument)==null?void 0:I.defaultView)||window}function F(f){var I;return(I=(ce(f)?f.ownerDocument:f.document)||window.document)==null?void 0:I.documentElement}function ce(f){if(!da())return!1;return f instanceof Node||f instanceof m(f).Node}function d(f){if(!da())return!1;return f instanceof Element||f instanceof m(f).Element}function y(f){if(!da())return!1;return f instanceof HTMLElement||f instanceof m(f).HTMLElement}function B(f){if(!da()||typeof ShadowRoot>"u")return!1;return f instanceof ShadowRoot||f instanceof m(f).ShadowRoot}function X(f){let{overflow:I,overflowX:P,overflowY:D,display:T}=A(f);return/auto|scroll|overlay|hidden|clip/.test(I+D+P)&&T!=="inline"&&T!=="contents"}function Ce(f){return/^(table|td|th)$/.test(E(f))}function ne(f){try{if(f.matches(":popover-open"))return!0}catch(I){}try{return f.matches(":modal")}catch(I){return!1}}var uu=/transform|translate|scale|rotate|perspective|filter/,mu=/paint|layout|strict|content/,yt=(f)=>!!f&&f!=="none",Ln;function ue(f){let I=d(f)?A(f):f;return yt(I.transform)||yt(I.translate)||yt(I.scale)||yt(I.rotate)||yt(I.perspective)||!de()&&(yt(I.backdropFilter)||yt(I.filter))||uu.test(I.willChange||"")||mu.test(I.contain||"")}function Te(f){let I=N(f);while(y(I)&&!O(I)){if(ue(I))return I;else if(ne(I))return null;I=N(I)}return null}function de(){if(Ln==null)Ln=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return Ln}function O(f){return/^(html|body|#document)$/.test(E(f))}function A(f){return m(f).getComputedStyle(f)}function ie(f){if(d(f))return{scrollLeft:f.scrollLeft,scrollTop:f.scrollTop};return{scrollLeft:f.scrollX,scrollTop:f.scrollY}}function N(f){if(E(f)==="html")return f;let I=f.assignedSlot||f.parentNode||B(f)&&f.host||F(f);return B(I)?I.host:I}function jf(f){let I=N(f);if(O(I))return(f.ownerDocument||f).body;if(y(I)&&X(I))return I;return jf(I)}function W(f,I,P){var D;if(I===void 0)I=[];if(P===void 0)P=!0;let T=jf(f),H=T===((D=f.ownerDocument)==null?void 0:D.body),L=m(T);if(H){let Z=pe(L);return I.concat(L,L.visualViewport||[],X(T)?T:[],Z&&P?W(Z):[])}else return I.concat(T,W(T,[],P))}function pe(f){return f.parent&&Object.getPrototypeOf(f.parent)?f.frameElement:null}var pu=e(t(),1),oe={...pu};var Xf=e(t(),1),Kf={};function w(f,I){let P=Xf.useRef(Kf);if(P.current===Kf)P.current=f(I);return P}var Rn=oe.useInsertionEffect,xu=Rn&&Rn!==oe.useLayoutEffect?Rn:(f)=>f();function a(f){let I=w(Iu).current;return I.next=f,xu(I.effect),I.trampoline}function Iu(){let f={next:void 0,callback:hu,trampoline:(...I)=>f.callback?.(...I),effect:()=>{f.callback=f.next}};return f}function hu(){}var _f=e(t(),1),gu=()=>{},i=typeof document<"u"?_f.useLayoutEffect:gu;function ir(f,I){if(f&&!I)return f;if(!f&&I)return I;if(f||I)return{...f,...I};return}var On={};function _(f,I,P,D,T){if(!P&&!D&&!T&&!f)return ua(I);let H=ua(f);if(I)H=cr(H,I);if(P)H=cr(H,P);if(D)H=cr(H,D);if(T)H=cr(H,T);return H}function Yf(f){if(f.length===0)return On;if(f.length===1)return ua(f[0]);let I=ua(f[0]);for(let P=1;P<f.length;P+=1)I=cr(I,f[P]);return I}function ua(f){if(En(f))return{...$f(f,On)};return yu(f)}function cr(f,I){if(En(I))return $f(I,f);return Cu(f,I)}function yu(f){let I={...f};for(let P in I){let D=I[P];if(Zf(P,D))I[P]=Qf(D)}return I}function Cu(f,I){if(!I)return f;for(let P in I){let D=I[P];switch(P){case"style":{f[P]=ir(f.style,D);break}case"className":{f[P]=Vn(f.className,D);break}default:if(Zf(P,D))f[P]=Su(f[P],D);else f[P]=D}}return f}function Zf(f,I){let P=f.charCodeAt(0),D=f.charCodeAt(1),T=f.charCodeAt(2);return P===111&&D===110&&T>=65&&T<=90&&(typeof I==="function"||typeof I>"u")}function En(f){return typeof f==="function"}function $f(f,I){if(En(f))return f(I);return f??On}function Su(f,I){if(!I)return f;if(!f)return Qf(I);return(...P)=>{let D=P[0];if(Jf(D)){let H=D;dr(H);let L=I(...P);if(!H.baseUIHandlerPrevented)f?.(...P);return L}let T=I(...P);return f?.(...P),T}}function Qf(f){if(!f)return f;return(...I)=>{let P=I[0];if(Jf(P))dr(P);return f(...I)}}function dr(f){return f.preventBaseUIHandler=()=>{f.baseUIHandlerPrevented=!0},f}function Vn(f,I){if(I){if(f)return I+" "+f;return I}return f}function Jf(f){return f!=null&&typeof f==="object"&&"nativeEvent"in f}function bu(f,I){return function(D,...T){let H=new URL(f);return H.searchParams.set("code",D.toString()),T.forEach((L)=>H.searchParams.append("args[]",L)),`${I} error #${D}; visit ${H} for the full message.`}}var Fu=bu("https://base-ui.com/production-error","Base UI"),c=Fu;var ma=e(t(),1),ye=ma.createContext(void 0);function j(f=!1){let I=ma.useContext(ye);if(I===void 0&&!f)throw Error(c(16));return I}var el=e(t(),1);function ol(f){let{focusableWhenDisabled:I,disabled:P,composite:D=!1,tabIndex:T=0,isNativeButton:H}=f,L=D&&I!==!1,Z=D&&I===!1;return{props:el.useMemo(()=>{let xe={onKeyDown(Fe){if(P&&I&&Fe.key!=="Tab")Fe.preventDefault()}};if(!D){if(xe.tabIndex=T,!H&&P)xe.tabIndex=I?T:-1}if(H&&(I||L)||!H&&P)xe["aria-disabled"]=P;if(H&&(!I||Z))xe.disabled=P;return xe},[D,P,I,L,Z,H,T])}}function u(f){return f?.ownerDocument||document}function z(f,I,{detail:P=0}={}){f.dispatchEvent(new(m(f)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:P,shiftKey:I.shiftKey,ctrlKey:I.ctrlKey,altKey:I.altKey,metaKey:I.metaKey}))}function C(f={}){let{disabled:I=!1,focusableWhenDisabled:P,tabIndex:D=0,native:T=!0,composite:H}=f,L=Wt.useRef(null),Z=j(!0),ge=H??Z!==void 0,{props:xe}=ol({focusableWhenDisabled:P,disabled:I,composite:ge,tabIndex:D,isNativeButton:T}),Fe=Wt.useCallback(()=>{let Me=L.current;if(!Nn(Me))return;if(ge&&I&&xe.disabled===void 0&&Me.disabled)Me.disabled=!1},[I,xe.disabled,ge]);i(Fe,[Fe]);let Be=Wt.useCallback((Me={})=>{let{onClick:Ae,onMouseDown:Oe,onKeyUp:Re,onKeyDown:Ve,onPointerDown:Ne,...He}=Me;return _({onClick(Le){if(I){Le.preventDefault();return}Ae?.(Le)},onMouseDown(Le){if(!I)Oe?.(Le)},onKeyDown(Le){if(I)return;if(dr(Le),Ve?.(Le),Le.baseUIHandlerPrevented)return;let ze=Le.target===Le.currentTarget,Xe=Le.currentTarget,je=Nn(Xe),Ee=!T&&vu(Xe),Ze=ze&&(T?je:!Ee),Ke=Le.key==="Enter",Qe=Le.key===" ",oo=Xe.getAttribute("role"),Ao=oo?.startsWith("menuitem")||oo==="option"||oo==="gridcell";if(ze&&ge&&Qe){if(Le.defaultPrevented&&Ao)return;if(Le.preventDefault(),!T||je)Le.preventBaseUIHandler(),z(Xe,Le);return}if(!Ze||T||!Qe&&!Ke){if(ze&&Ee&&Qe)Le.preventDefault();return}if(Le.defaultPrevented)return;if(Le.preventDefault(),Ke)Le.preventBaseUIHandler(),z(Xe,Le)},onKeyUp(Le){if(I)return;if(dr(Le),Re?.(Le),Le.target===Le.currentTarget&&T&&ge&&Nn(Le.currentTarget)&&Le.key===" "){Le.preventDefault();return}if(Le.baseUIHandlerPrevented)return;if(Le.target===Le.currentTarget&&!T&&!ge&&!Le.defaultPrevented&&Le.key===" ")Le.preventBaseUIHandler(),z(Le.currentTarget,Le)},onPointerDown(Le){if(I){Le.preventDefault();return}Ne?.(Le)}},T?{type:"button"}:{role:"button"},xe,He)},[I,xe,ge,T]),De=a((Me)=>{L.current=Me,Fe()});return{getButtonProps:Be,buttonRef:De}}function Nn(f){return y(f)&&f.tagName==="BUTTON"}function vu(f){return y(f)&&f.tagName==="A"&&Boolean(f.href)}var ot=e(t(),1);function R(f,I,P,D){let T=w(rl).current;if(Bu(T,f,I,P,D))al(T,[f,I,P,D]);return T.callback}function tl(f){let I=w(rl).current;if(wu(I,f))al(I,f);return I.callback}function rl(){return{callback:null,cleanup:null,refs:[]}}function Bu(f,I,P,D,T){return f.refs[0]!==I||f.refs[1]!==P||f.refs[2]!==D||f.refs[3]!==T}function wu(f,I){return f.refs.length!==I.length||f.refs.some((P,D)=>P!==I[D])}function al(f,I){if(f.refs=I,I.every((P)=>P==null)){f.callback=null;return}f.callback=(P)=>{if(f.cleanup)f.cleanup(),f.cleanup=null;if(P!=null){let D=Array(I.length).fill(null);for(let T=0;T<I.length;T+=1){let H=I[T];if(H==null)continue;switch(typeof H){case"function":{let L=H(P);if(typeof L==="function")D[T]=L;break}case"object":{H.current=P;break}default:}}f.cleanup=()=>{for(let T=0;T<I.length;T+=1){let H=I[T];if(H==null)continue;switch(typeof H){case"function":{let L=D[T];if(typeof L==="function")L();else H(null);break}case"object":{H.current=null;break}default:}}}}}}var sl=e(t(),1);var nl=e(t(),1),Pu=parseInt(nl.version,10);function J(f){return Pu>=f}function Hn(f){if(!sl.isValidElement(f))return null;let I=f,P=I.props;return(J(19)?P?.ref:I.ref)??null}function v(){}var M=Object.freeze([]),g=Object.freeze({});function fl(f,I){let P={};for(let D in f){let T=f[D];if(I?.hasOwnProperty(D)){let H=I[D](T);if(H!=null)Object.assign(P,H);continue}if(T===!0)P[`data-${D.toLowerCase()}`]="";else if(T)P[`data-${D.toLowerCase()}`]=T.toString()}return P}function ll(f,I){return typeof f==="function"?f(I):f}function fe(f,I){return typeof f==="function"?f(I):f}var Un=e(t(),1);function l(f,I,P={}){let D=I.render;if(P.enabled!==!1)D=Mu(D);let T=Du(I,P,D);if(P.enabled===!1)return null;let H=P.state??g;return ku(f,D,T,H)}function Du(f,I,P){let{className:D,style:T}=f,{state:H=g,ref:L,props:Z,stateAttributesMapping:ge,enabled:xe=!0}=I,Fe=xe?ll(D,H):void 0,Be=xe?fe(T,H):void 0,De=xe?fl(H,ge):g,Me=xe&&Z?Au(Z):void 0,Ae=xe?ir(De,Me)??{}:g;if(typeof document<"u")if(!xe)R(null,null);else if(Array.isArray(L))Ae.ref=tl([Ae.ref,Hn(P),...L]);else Ae.ref=R(Ae.ref,Hn(P),L);if(!xe)return g;if(Fe!==void 0)Ae.className=Vn(Ae.className,Fe);if(Be!==void 0)Ae.style=ir(Ae.style,Be);return Ae}function Au(f){if(Array.isArray(f))return Yf(f);return _(void 0,f)}var Tu=Symbol.for("react.lazy");function Mu(f){if(f?.$$typeof!==Tu)return f;let I=ot.Children.toArray(f)[0];return ot.isValidElement(I)?I:f}function ku(f,I,P,D){if(I){if(typeof I==="function")return I(P,D);let T=_(P,I.props);return T.ref=P.ref,ot.cloneElement(I,T)}if(f){if(typeof f==="string")return Lu(f,P)}throw Error(c(8))}function Lu(f,I){if(f==="button")return Un.createElement("button",{type:"button",...I,key:I.key});if(f==="img")return Un.createElement("img",{alt:"",...I,key:I.key});return ot.createElement(f,I)}var Wn=il.forwardRef(function(I,P){let{render:D,className:T,disabled:H=!1,focusableWhenDisabled:L=!1,nativeButton:Z=!0,style:ge,...xe}=I,{getButtonProps:Fe,buttonRef:Be}=C({disabled:H,focusableWhenDisabled:L,native:Z});return l("button",I,{state:{disabled:H},ref:[P,Be],props:[xe,Fe]})});var cl=(f)=>typeof f==="boolean"?`${f}`:f===0?"0":f,dl=It,Q=(f,I)=>(P)=>{var D;if((I===null||I===void 0?void 0:I.variants)==null)return dl(f,P===null||P===void 0?void 0:P.class,P===null||P===void 0?void 0:P.className);let{variants:T,defaultVariants:H}=I,L=Object.keys(T).map((xe)=>{let Fe=P===null||P===void 0?void 0:P[xe],Be=H===null||H===void 0?void 0:H[xe];if(Fe===null)return null;let De=cl(Fe)||cl(Be);return T[xe][De]}),Z=P&&Object.entries(P).reduce((xe,Fe)=>{let[Be,De]=Fe;if(De===void 0)return xe;return xe[Be]=De,xe},{}),ge=I===null||I===void 0?void 0:(D=I.compoundVariants)===null||D===void 0?void 0:D.reduce((xe,Fe)=>{let{class:Be,className:De,...Me}=Fe;return Object.entries(Me).every((Ae)=>{let[Oe,Re]=Ae;return Array.isArray(Re)?Re.includes({...H,...Z}[Oe]):{...H,...Z}[Oe]===Re})?[...xe,Be,De]:xe},[]);return dl(f,L,ge,P===null||P===void 0?void 0:P.class,P===null||P===void 0?void 0:P.className)};var ul=e(r(),1),G=Q("inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-lg text-sm font-medium whitespace-nowrap transition-all duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground inset-shadow-[0_0_8px_color-mix(in_oklab,var(--color-white)_20%,transparent)] hover:bg-primary/90 disabled:bg-accent disabled:text-muted-foreground disabled:opacity-100 disabled:shadow-none",secondary:"bg-accent text-accent-foreground hover:bg-[color-mix(in_oklch,var(--accent),var(--foreground)_3%)]",outline:"border bg-background text-foreground hover:bg-[color-mix(in_oklch,var(--background),var(--foreground)_3%)]",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-white inset-shadow-[0_0_8px_color-mix(in_oklab,var(--color-white)_20%,transparent)] hover:bg-destructive/90 focus-visible:border-destructive/40 focus-visible:ring-destructive/20"},size:{xs:"h-6 gap-1 rounded-md px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg]:size-3",sm:"h-7 gap-1.5 rounded-md px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg]:size-4",default:"h-8 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&_svg]:size-5",lg:"h-9 rounded-xl px-3.5 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&_svg]:size-5","icon-xs":"size-6 rounded-md [&_svg]:size-3","icon-sm":"size-7 rounded-md [&_svg]:size-4",icon:"size-8 [&_svg]:size-5","icon-lg":"size-9 rounded-xl [&_svg]:size-5"}},defaultVariants:{variant:"default",size:"default"}});function s({className:f,variant:I="default",size:P="default",...D}){return ul.jsx(Wn,{"data-slot":"button",className:p(G({variant:I,size:P,className:f})),...D})}var qt=e(t(),1);var ml={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var o=(f,I,P,D)=>{let T=qt.forwardRef(({color:H="currentColor",size:L=24,stroke:Z=2,title:ge,className:xe,children:Fe,...Be},De)=>qt.createElement("svg",{ref:De,...ml[f],width:L,height:L,className:["tabler-icon",`tabler-icon-${I}`,xe].join(" "),...f==="filled"?{fill:H}:{strokeWidth:Z,stroke:H},...Be},[ge&&qt.createElement("title",{key:"svg-title"},ge),...D.map(([Me,Ae])=>qt.createElement(Me,Ae)),...Array.isArray(Fe)?Fe:[Fe]]));return T.displayName=`${P}`,T};var Ru=[["path",{d:"M17 7l-10 10",key:"svg-0"}],["path",{d:"M8 7l9 0l0 9",key:"svg-1"}]],ee=o("outline","arrow-up-right","ArrowUpRight",Ru);var Ou=[["path",{d:"M4 15c2 -4.97 7.356 -11 9 -11c4.25 0 -5.5 11.958 -3 13s5.65 -6.678 7.4 -5.902c1.75 .777 -1.05 7.589 -.3 8.63s3.15 -.897 3.9 -2.728",key:"svg-0"}]],U=o("outline","sketching","Sketching",Ou);var ur=e(t(),1);var pl=(f)=>{let I,P=new Set,D=(xe,Fe)=>{let Be=typeof xe==="function"?xe(I):xe;if(!Object.is(Be,I)){let De=I;I=(Fe!=null?Fe:typeof Be!=="object"||Be===null)?Be:Object.assign({},I,Be),P.forEach((Me)=>Me(I,De))}},T=()=>I,Z={setState:D,getState:T,getInitialState:()=>ge,subscribe:(xe)=>(P.add(xe),()=>P.delete(xe))},ge=I=f(D,T,Z);return Z},me=(f)=>f?pl(f):pl;var Vu=(f)=>f;function ve(f,I=Vu){let P=ur.default.useSyncExternalStore(f.subscribe,ur.default.useCallback(()=>I(f.getState()),[f,I]),ur.default.useCallback(()=>I(f.getInitialState()),[f,I]));return ur.default.useDebugValue(P),P}var xl=(f)=>{let I=me(f),P=(D)=>ve(I,D);return Object.assign(P,I),P},ae=(f)=>f?xl(f):xl;function Se(f,I){let P;try{P=f()}catch(T){return}return{getItem:(T)=>{var H;let L=(ge)=>{if(ge===null)return null;return JSON.parse(ge,I==null?void 0:I.reviver)},Z=(H=P.getItem(T))!=null?H:null;if(Z instanceof Promise)return Z.then(L);return L(Z)},setItem:(T,H)=>P.setItem(T,JSON.stringify(H,I==null?void 0:I.replacer)),removeItem:(T)=>P.removeItem(T)}}var qn=(f)=>(I)=>{try{let P=f(I);if(P instanceof Promise)return P;return{then(D){return qn(D)(P)},catch(D){return this}}}catch(P){return{then(D){return this},catch(D){return qn(D)(P)}}}},Nu=(f,I)=>(P,D,T)=>{let H={storage:Se(()=>window.localStorage),partialize:(Re)=>Re,version:0,merge:(Re,Ve)=>({...Ve,...Re}),...I},L=!1,Z=0,ge=new Set,xe=new Set,Fe=H.storage;if(!Fe)return f((...Re)=>{console.warn(`[zustand persist middleware] Unable to update item '${H.name}', the given storage is currently unavailable.`),P(...Re)},D,T);let Be=()=>{let Re=H.partialize({...D()});return Fe.setItem(H.name,{state:Re,version:H.version})},De=T.setState;T.setState=(Re,Ve)=>(De(Re,Ve),Be());let Me=f((...Re)=>(P(...Re),Be()),D,T);T.getInitialState=()=>Me;let Ae,Oe=()=>{var Re,Ve;if(!Fe)return;let Ne=++Z;L=!1,ge.forEach((Le)=>{var ze;return Le((ze=D())!=null?ze:Me)});let He=((Ve=H.onRehydrateStorage)==null?void 0:Ve.call(H,(Re=D())!=null?Re:Me))||void 0;return qn(Fe.getItem.bind(Fe))(H.name).then((Le)=>{if(Le)if(typeof Le.version==="number"&&Le.version!==H.version){if(H.migrate){let ze=H.migrate(Le.state,Le.version);if(ze instanceof Promise)return ze.then((Xe)=>[!0,Xe]);return[!0,ze]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,Le.state];return[!1,void 0]}).then((Le)=>{var ze;if(Ne!==Z)return;let[Xe,je]=Le;if(Ae=H.merge(je,(ze=D())!=null?ze:Me),P(Ae,!0),Xe)return Be()}).then(()=>{if(Ne!==Z)return;He==null||He(D(),void 0),Ae=D(),L=!0,xe.forEach((Le)=>Le(Ae))}).catch((Le)=>{if(Ne!==Z)return;He==null||He(void 0,Le)})};if(T.persist={setOptions:(Re)=>{if(H={...H,...Re},Re.storage)Fe=Re.storage},clearStorage:()=>{++Z,Fe==null||Fe.removeItem(H.name)},getOptions:()=>H,rehydrate:()=>Oe(),hasHydrated:()=>L,onHydrate:(Re)=>(ge.add(Re),()=>{ge.delete(Re)}),onFinishHydration:(Re)=>(xe.add(Re),()=>{xe.delete(Re)})},!H.skipHydration)Oe();return Ae||Me},se=Nu;var Il=e(t(),1),V=Il.createContext({});var hl=e(t(),1);function te(f){let I=hl.useRef(null);if(I.current===null)I.current=f();return I.current}var pa=e(t(),1);var gl=typeof window<"u";var K=gl?pa.useLayoutEffect:pa.useEffect;var yl=e(t(),1),q=yl.createContext(null);function Ct(f,I){if(f.indexOf(I)===-1)f.push(I)}function tt(f,I){let P=f.indexOf(I);if(P>-1)f.splice(P,1)}var uo=(f,I,P)=>{if(P>I)return I;if(P<f)return f;return P};function Gn(f,I){return I?`${f}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${I}`:f}var No=()=>{},yo=()=>{};if(typeof process<"u"&&process.env?.NODE_ENV!=="production")No=(f,I,P)=>{if(!f&&typeof console<"u")console.warn(Gn(I,P))},yo=(f,I,P)=>{if(!f)throw Error(Gn(I,P))};var Fo={};var mr=(f)=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(f);var pr=(f)=>typeof f==="object"&&f!==null;var xr=(f)=>/^0[^.\s]+$/u.test(f);function Ir(f){let I;return()=>{if(I===void 0)I=f();return I}}var to=(f)=>f;var Oo=(...f)=>f.reduce((I,P)=>(D)=>P(I(D)));var Ho=(f,I,P)=>{let D=I-f;return D?(P-f)/D:1};class rt{constructor(){this.subscriptions=[]}add(f){return Ct(this.subscriptions,f),()=>tt(this.subscriptions,f)}notify(f,I,P){let D=this.subscriptions.length;if(!D)return;if(D===1)this.subscriptions[0](f,I,P);else for(let T=0;T<D;T++){let H=this.subscriptions[T];H&&H(f,I,P)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var lo=(f)=>f*1000,xo=(f)=>f/1000;var hr=(f,I)=>I?f*(1000/I):0;var Cl=(f,I,P)=>(((1-3*P+3*I)*f+(3*P-6*I))*f+3*I)*f,Hu=0.0000001,Uu=12;function Wu(f,I,P,D,T){let H,L,Z=0;do if(L=I+(P-I)/2,H=Cl(L,D,T)-f,H>0)P=L;else I=L;while(Math.abs(H)>Hu&&++Z<Uu);return L}function at(f,I,P,D){if(f===I&&P===D)return to;let T=(H)=>Wu(H,0,1,f,P);return(H)=>H===0||H===1?H:Cl(T(H),I,D)}var xa=(f)=>(I)=>I<=0.5?f(2*I)/2:(2-f(2*(1-I)))/2;var Ia=(f)=>(I)=>1-f(1-I);var ha=at(0.33,1.53,0.69,0.99),Gt=Ia(ha),gr=xa(Gt);var yr=(f)=>f>=1?1:(f*=2)<1?0.5*Gt(f):0.5*(2-Math.pow(2,-10*(f-1)));var Cr=(f)=>1-Math.sin(Math.acos(f)),Sr=Ia(Cr),br=xa(Cr);var zn=at(0.42,0,1,1),jn=at(0,0,0.58,1),Fr=at(0.42,0,0.58,1);var Kn=(f)=>Array.isArray(f)&&typeof f[0]!=="number";var vr=(f)=>Array.isArray(f)&&typeof f[0]==="number";var Sl={linear:to,easeIn:zn,easeInOut:Fr,easeOut:jn,circIn:Cr,circInOut:br,circOut:Sr,backIn:Gt,backInOut:gr,backOut:ha,anticipate:yr},qu=(f)=>typeof f==="string",ga=(f)=>{if(vr(f)){yo(f.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[I,P,D,T]=f;return at(I,P,D,T)}else if(qu(f))return yo(Sl[f]!==void 0,`Invalid easing type '${f}'`,"invalid-easing-type"),Sl[f];return f};var Br=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bl(f){let I=new Set,P=new Set,D=!1,T=!1,H=new WeakSet,L={delta:0,timestamp:0,isProcessing:!1};function Z(xe){if(H.has(xe))ge.schedule(xe),f();xe(L)}let ge={schedule:(xe,Fe=!1,Be=!1)=>{let Me=Be&&D?I:P;if(Fe)H.add(xe);return Me.add(xe),xe},cancel:(xe)=>{P.delete(xe),H.delete(xe)},process:(xe)=>{if(L=xe,D){T=!0;return}D=!0;let Fe=I;if(I=P,P=Fe,I.forEach(Z),I.clear(),D=!1,T)T=!1,ge.process(xe)}};return ge}var Gu=40;function ya(f,I){let P=!1,D=!0,T={delta:0,timestamp:0,isProcessing:!1},H=()=>P=!0,L=Br.reduce((He,Le)=>(He[Le]=bl(H),He),{}),{setup:Z,read:ge,resolveKeyframes:xe,preUpdate:Fe,update:Be,preRender:De,render:Me,postRender:Ae}=L,Oe=()=>{let He=Fo.useManualTiming,Le=He?T.timestamp:performance.now();if(P=!1,!He)T.delta=D?16.666666666666668:Math.max(Math.min(Le-T.timestamp,Gu),1);if(T.timestamp=Le,T.isProcessing=!0,Z.process(T),ge.process(T),xe.process(T),Fe.process(T),Be.process(T),De.process(T),Me.process(T),Ae.process(T),T.isProcessing=!1,P&&I)D=!1,f(Oe)},Re=()=>{if(P=!0,D=!0,!T.isProcessing)f(Oe)};return{schedule:Br.reduce((He,Le)=>{let ze=L[Le];return He[Le]=(Xe,je=!1,Ee=!1)=>{if(!P)Re();return ze.schedule(Xe,je,Ee)},He},{}),cancel:(He)=>{for(let Le=0;Le<Br.length;Le++)L[Br[Le]].cancel(He)},state:T,steps:L}}var{schedule:h,cancel:wo,state:so,steps:wr}=ya(typeof requestAnimationFrame<"u"?requestAnimationFrame:to,!0);var Ca;function zu(){Ca=void 0}var ro={now:()=>{if(Ca===void 0)ro.set(so.isProcessing||Fo.useManualTiming?so.timestamp:performance.now());return Ca},set:(f)=>{Ca=f,queueMicrotask(zu)}};var Fl=(f)=>(I)=>typeof I==="string"&&I.startsWith(f),Sa=Fl("--"),ju=Fl("var(--"),zt=(f)=>{if(!ju(f))return!1;return Ku.test(f.split("/*")[0].trim())},Ku=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Xn(f){if(typeof f!=="string")return!1;return f.split("/*")[0].includes("var(--")}var Uo={test:(f)=>typeof f==="number",parse:parseFloat,transform:(f)=>f},Xo={...Uo,transform:(f)=>uo(0,1,f)},Pr={...Uo,default:1};var nt=(f)=>Math.round(f*1e5)/1e5;var jt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vl(f){return f==null}var Bl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Kt=(f,I)=>(P)=>Boolean(typeof P==="string"&&Bl.test(P)&&P.startsWith(f)||I&&!vl(P)&&Object.prototype.hasOwnProperty.call(P,I)),ba=(f,I,P)=>(D)=>{if(typeof D!=="string")return D;let[T,H,L,Z]=D.match(jt);return{[f]:parseFloat(T),[I]:parseFloat(H),[P]:parseFloat(L),alpha:Z!==void 0?parseFloat(Z):1}};var Xu=(f)=>uo(0,255,f),_n={...Uo,transform:(f)=>Math.round(Xu(f))},Wo={test:Kt("rgb","red"),parse:ba("red","green","blue"),transform:({red:f,green:I,blue:P,alpha:D=1})=>"rgba("+_n.transform(f)+", "+_n.transform(I)+", "+_n.transform(P)+", "+nt(Xo.transform(D))+")"};function _u(f){let I="",P="",D="",T="";if(f.length>5)I=f.substring(1,3),P=f.substring(3,5),D=f.substring(5,7),T=f.substring(7,9);else I=f.substring(1,2),P=f.substring(2,3),D=f.substring(3,4),T=f.substring(4,5),I+=I,P+=P,D+=D,T+=T;return{red:parseInt(I,16),green:parseInt(P,16),blue:parseInt(D,16),alpha:T?parseInt(T,16)/255:1}}var Dr={test:Kt("#"),parse:_u,transform:Wo.transform};var Ar=(f)=>({test:(I)=>typeof I==="string"&&I.endsWith(f)&&I.split(" ").length===1,parse:parseFloat,transform:(I)=>`${I}${f}`}),To=Ar("deg"),Co=Ar("%"),Ue=Ar("px"),Yn=Ar("vh"),Zn=Ar("vw"),Fa=(()=>({...Co,parse:(f)=>Co.parse(f)/100,transform:(f)=>Co.transform(f*100)}))();var st={test:Kt("hsl","hue"),parse:ba("hue","saturation","lightness"),transform:({hue:f,saturation:I,lightness:P,alpha:D=1})=>"hsla("+Math.round(f)+", "+Co.transform(nt(I))+", "+Co.transform(nt(P))+", "+nt(Xo.transform(D))+")"};var Je={test:(f)=>Wo.test(f)||Dr.test(f)||st.test(f),parse:(f)=>{if(Wo.test(f))return Wo.parse(f);else if(st.test(f))return st.parse(f);else return Dr.parse(f)},transform:(f)=>typeof f==="string"?f:f.hasOwnProperty("red")?Wo.transform(f):st.transform(f),getAnimatableNone:(f)=>{let I=Je.parse(f);return I.alpha=0,Je.transform(I)}};var wl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yu(f){return isNaN(f)&&typeof f==="string"&&(f.match(jt)?.length||0)+(f.match(wl)?.length||0)>0}var Dl="number",Al="color",Zu="var",$u="var(",Pl="${}",Qu=/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 ft(f){let I=f.toString(),P=[],D={color:[],number:[],var:[]},T=[],H=0,Z=I.replace(Qu,(ge)=>{if(Je.test(ge))D.color.push(H),T.push(Al),P.push(Je.parse(ge));else if(ge.startsWith($u))D.var.push(H),T.push(Zu),P.push(ge);else D.number.push(H),T.push(Dl),P.push(parseFloat(ge));return++H,Pl}).split(Pl);return{values:P,split:Z,indexes:D,types:T}}function Ju(f){return ft(f).values}function Tl({split:f,types:I}){let P=f.length;return(D)=>{let T="";for(let H=0;H<P;H++)if(T+=f[H],D[H]!==void 0){let L=I[H];if(L===Dl)T+=nt(D[H]);else if(L===Al)T+=Je.transform(D[H]);else T+=D[H]}return T}}function em(f){return Tl(ft(f))}var om=(f)=>typeof f==="number"?0:Je.test(f)?Je.getAnimatableNone(f):f,tm=(f,I)=>{if(typeof f==="number")return I?.trim().endsWith("/")?f:0;return om(f)};function rm(f){let I=ft(f);return Tl(I)(I.values.map((D,T)=>tm(D,I.split[T])))}var mo={test:Yu,parse:Ju,createTransformer:em,getAnimatableNone:rm};function $n(f,I,P){if(P<0)P+=1;if(P>1)P-=1;if(P<0.16666666666666666)return f+(I-f)*6*P;if(P<0.5)return I;if(P<0.6666666666666666)return f+(I-f)*(0.6666666666666666-P)*6;return f}function Ml({hue:f,saturation:I,lightness:P,alpha:D}){f/=360,I/=100,P/=100;let T=0,H=0,L=0;if(!I)T=H=L=P;else{let Z=P<0.5?P*(1+I):P+I-P*I,ge=2*P-Z;T=$n(ge,Z,f+0.3333333333333333),H=$n(ge,Z,f),L=$n(ge,Z,f-0.3333333333333333)}return{red:Math.round(T*255),green:Math.round(H*255),blue:Math.round(L*255),alpha:D}}function Xt(f,I){return(P)=>P>0?I:f}var _e=(f,I,P)=>f+(I-f)*P;var Qn=(f,I,P)=>{let D=f*f,T=P*(I*I-D)+D;return T<0?0:Math.sqrt(T)},am=[Dr,Wo,st],nm=(f)=>am.find((I)=>I.test(f));function kl(f){let I=nm(f);if(No(Boolean(I),`'${f}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(I))return!1;let P=I.parse(f);if(I===st)P=Ml(P);return P}var Jn=(f,I)=>{let P=kl(f),D=kl(I);if(!P||!D)return Xt(f,I);let T={...P};return(H)=>(T.red=Qn(P.red,D.red,H),T.green=Qn(P.green,D.green,H),T.blue=Qn(P.blue,D.blue,H),T.alpha=_e(P.alpha,D.alpha,H),Wo.transform(T))};var va=new Set(["none","hidden"]);function Ll(f,I){if(va.has(f))return(P)=>P<=0?f:I;else return(P)=>P>=1?I:f}function sm(f,I){return(P)=>_e(f,I,P)}function Ba(f){if(typeof f==="number")return sm;else if(typeof f==="string")return zt(f)?Xt:Je.test(f)?Jn:im;else if(Array.isArray(f))return Rl;else if(typeof f==="object")return Je.test(f)?Jn:fm;return Xt}function Rl(f,I){let P=[...f],D=P.length,T=f.map((H,L)=>Ba(H)(H,I[L]));return(H)=>{for(let L=0;L<D;L++)P[L]=T[L](H);return P}}function fm(f,I){let P={...f,...I},D={};for(let T in P)if(f[T]!==void 0&&I[T]!==void 0)D[T]=Ba(f[T])(f[T],I[T]);return(T)=>{for(let H in D)P[H]=D[H](T);return P}}function lm(f,I){let P=[],D={color:0,var:0,number:0};for(let T=0;T<I.values.length;T++){let H=I.types[T],L=f.indexes[H][D[H]],Z=f.values[L]??0;P[T]=Z,D[H]++}return P}var im=(f,I)=>{let P=mo.createTransformer(I),D=ft(f),T=ft(I);if(D.indexes.var.length===T.indexes.var.length&&D.indexes.color.length===T.indexes.color.length&&D.indexes.number.length>=T.indexes.number.length){if(va.has(f)&&!T.values.length||va.has(I)&&!D.values.length)return Ll(f,I);return Oo(Rl(lm(D,T),T.values),P)}else return No(!0,`Complex values '${f}' and '${I}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Xt(f,I)};function wa(f,I,P){if(typeof f==="number"&&typeof I==="number"&&typeof P==="number")return _e(f,I,P);return Ba(f)(f,I)}var Ol=(f)=>{let I=({timestamp:P})=>f(P);return{start:(P=!0)=>h.update(I,P),stop:()=>wo(I),now:()=>so.isProcessing?so.timestamp:ro.now()}};var Pa=(f,I,P=10)=>{let D="",T=Math.max(Math.round(I/P),2);for(let H=0;H<T;H++)D+=Math.round(f(H/(T-1))*1e4)/1e4+", ";return`linear(${D.substring(0,D.length-2)})`};var Da=20000;function _t(f){let I=0,P=50,D=f.next(I);while(!D.done&&I<20000)I+=P,D=f.next(I);return I>=20000?1/0:I}function El(f,I=100,P){let D=P({...f,keyframes:[0,I]}),T=Math.min(_t(D),Da);return{type:"keyframes",ease:(H)=>D.next(T*H).value/I,duration:xo(T)}}var ao={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};function os(f,I){return f*Math.sqrt(1-I*I)}var cm=12;function dm(f,I,P){let D=P;for(let T=1;T<cm;T++)D=D-f(D)/I(D);return D}var es=0.001;function um({duration:f=ao.duration,bounce:I=ao.bounce,velocity:P=ao.velocity,mass:D=ao.mass}){let T,H;No(f<=lo(ao.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let L=1-I;if(L=uo(ao.minDamping,ao.maxDamping,L),f=uo(ao.minDuration,ao.maxDuration,xo(f)),L<1)T=(xe)=>{let Fe=xe*L,Be=Fe*f,De=Fe-P,Me=os(xe,L),Ae=Math.exp(-Be);return es-De/Me*Ae},H=(xe)=>{let Be=xe*L*f,De=Be*P+P,Me=Math.pow(L,2)*Math.pow(xe,2)*f,Ae=Math.exp(-Be),Oe=os(Math.pow(xe,2),L);return(-T(xe)+es>0?-1:1)*((De-Me)*Ae)/Oe};else T=(xe)=>{let Fe=Math.exp(-xe*f),Be=(xe-P)*f+1;return-es+Fe*Be},H=(xe)=>{let Fe=Math.exp(-xe*f),Be=(P-xe)*(f*f);return Fe*Be};let Z=5/f,ge=dm(T,H,Z);if(f=lo(f),isNaN(ge))return{stiffness:ao.stiffness,damping:ao.damping,duration:f};else{let xe=Math.pow(ge,2)*D;return{stiffness:xe,damping:L*2*Math.sqrt(D*xe),duration:f}}}var mm=["duration","bounce"],pm=["stiffness","damping","mass"];function Vl(f,I){return I.some((P)=>f[P]!==void 0)}function xm(f){let I={velocity:ao.velocity,stiffness:ao.stiffness,damping:ao.damping,mass:ao.mass,isResolvedFromDuration:!1,...f};if(!Vl(f,pm)&&Vl(f,mm))if(I.velocity=0,f.visualDuration){let P=f.visualDuration,D=2*Math.PI/(P*1.2),T=D*D,H=2*uo(0.05,1,1-(f.bounce||0))*Math.sqrt(T);I={...I,mass:ao.mass,stiffness:T,damping:H}}else{let P=um({...f,velocity:0});I={...I,...P,mass:ao.mass},I.isResolvedFromDuration=!0}return I}function Yt(f=ao.visualDuration,I=ao.bounce){let P=typeof f!=="object"?{visualDuration:f,keyframes:[0,1],bounce:I}:f,{restSpeed:D,restDelta:T}=P,H=P.keyframes[0],L=P.keyframes[P.keyframes.length-1],Z={done:!1,value:H},{stiffness:ge,damping:xe,mass:Fe,duration:Be,velocity:De,isResolvedFromDuration:Me}=xm({...P,velocity:-xo(P.velocity||0)}),Ae=De||0,Oe=xe/(2*Math.sqrt(ge*Fe)),Re=L-H,Ve=xo(Math.sqrt(ge/Fe)),Ne=Math.abs(Re)<5;D||(D=Ne?ao.restSpeed.granular:ao.restSpeed.default),T||(T=Ne?ao.restDelta.granular:ao.restDelta.default);let He,Le,ze,Xe,je,Ee;if(Oe<1)ze=os(Ve,Oe),Xe=(Ae+Oe*Ve*Re)/ze,He=(Ke)=>{let Qe=Math.exp(-Oe*Ve*Ke);return L-Qe*(Xe*Math.sin(ze*Ke)+Re*Math.cos(ze*Ke))},je=Oe*Ve*Xe+Re*ze,Ee=Oe*Ve*Re-Xe*ze,Le=(Ke)=>Math.exp(-Oe*Ve*Ke)*(je*Math.sin(ze*Ke)+Ee*Math.cos(ze*Ke));else if(Oe===1){He=(Qe)=>L-Math.exp(-Ve*Qe)*(Re+(Ae+Ve*Re)*Qe);let Ke=Ae+Ve*Re;Le=(Qe)=>Math.exp(-Ve*Qe)*(Ve*Ke*Qe-Ae)}else{let Ke=Ve*Math.sqrt(Oe*Oe-1);He=(Bo)=>{let ho=Math.exp(-Oe*Ve*Bo),no=Math.min(Ke*Bo,300);return L-ho*((Ae+Oe*Ve*Re)*Math.sinh(no)+Ke*Re*Math.cosh(no))/Ke};let Qe=(Ae+Oe*Ve*Re)/Ke,oo=Oe*Ve*Qe-Re*Ke,Ao=Oe*Ve*Re-Qe*Ke;Le=(Bo)=>{let ho=Math.exp(-Oe*Ve*Bo),no=Math.min(Ke*Bo,300);return ho*(oo*Math.sinh(no)+Ao*Math.cosh(no))}}let Ze={calculatedDuration:Me?Be||null:null,velocity:(Ke)=>lo(Le(Ke)),next:(Ke)=>{if(!Me&&Oe<1){let oo=Math.exp(-Oe*Ve*Ke),Ao=Math.sin(ze*Ke),Bo=Math.cos(ze*Ke),ho=L-oo*(Xe*Ao+Re*Bo),no=lo(oo*(je*Ao+Ee*Bo));return Z.done=Math.abs(no)<=D&&Math.abs(L-ho)<=T,Z.value=Z.done?L:ho,Z}let Qe=He(Ke);if(!Me){let oo=lo(Le(Ke));Z.done=Math.abs(oo)<=D&&Math.abs(L-Qe)<=T}else Z.done=Ke>=Be;return Z.value=Z.done?L:Qe,Z},toString:()=>{let Ke=Math.min(_t(Ze),Da),Qe=Pa((oo)=>Ze.next(Ke*oo).value,Ke,30);return Ke+"ms "+Qe},toTransition:()=>{}};return Ze}Yt.applyToOptions=(f)=>{let I=El(f,100,Yt);return f.ease=I.ease,f.duration=lo(I.duration),f.type="keyframes",f};var Im=5;function Aa(f,I,P){let D=Math.max(I-Im,0);return hr(P-f(D),I-D)}function Tr({keyframes:f,velocity:I=0,power:P=0.8,timeConstant:D=325,bounceDamping:T=10,bounceStiffness:H=500,modifyTarget:L,min:Z,max:ge,restDelta:xe=0.5,restSpeed:Fe}){let Be=f[0],De={done:!1,value:Be},Me=(Ee)=>Z!==void 0&&Ee<Z||ge!==void 0&&Ee>ge,Ae=(Ee)=>{if(Z===void 0)return ge;if(ge===void 0)return Z;return Math.abs(Z-Ee)<Math.abs(ge-Ee)?Z:ge},Oe=P*I,Re=Be+Oe,Ve=L===void 0?Re:L(Re);if(Ve!==Re)Oe=Ve-Be;let Ne=(Ee)=>-Oe*Math.exp(-Ee/D),He=(Ee)=>Ve+Ne(Ee),Le=(Ee)=>{let Ze=Ne(Ee),Ke=He(Ee);De.done=Math.abs(Ze)<=xe,De.value=De.done?Ve:Ke},ze,Xe,je=(Ee)=>{if(!Me(De.value))return;ze=Ee,Xe=Yt({keyframes:[De.value,Ae(De.value)],velocity:Aa(He,Ee,De.value),damping:T,stiffness:H,restDelta:xe,restSpeed:Fe})};return je(0),{calculatedDuration:null,next:(Ee)=>{let Ze=!1;if(!Xe&&ze===void 0)Ze=!0,Le(Ee),je(Ee);if(ze!==void 0&&Ee>=ze)return Xe.next(Ee-ze);else return!Ze&&Le(Ee),De}}}function hm(f,I,P){let D=[],T=P||Fo.mix||wa,H=f.length-1;for(let L=0;L<H;L++){let Z=T(f[L],f[L+1]);if(I){let ge=Array.isArray(I)?I[L]||to:I;Z=Oo(ge,Z)}D.push(Z)}return D}function Nl(f,I,{clamp:P=!0,ease:D,mixer:T}={}){let H=f.length;if(yo(H===I.length,"Both input and output ranges must be the same length","range-length"),H===1)return()=>I[0];if(H===2&&I[0]===I[1])return()=>I[1];let L=f[0]===f[1];if(f[0]>f[H-1])f=[...f].reverse(),I=[...I].reverse();let Z=hm(I,D,T),ge=Z.length,xe=(Fe)=>{if(L&&Fe<f[0])return I[0];let Be=0;if(ge>1){for(;Be<f.length-2;Be++)if(Fe<f[Be+1])break}let De=Ho(f[Be],f[Be+1],Fe);return Z[Be](De)};return P?(Fe)=>xe(uo(f[0],f[H-1],Fe)):xe}function Hl(f,I){let P=f[f.length-1];for(let D=1;D<=I;D++){let T=Ho(0,I,D);f.push(_e(P,1,T))}}function Ul(f){let I=[0];return Hl(I,f.length-1),I}function Wl(f,I){return f.map((P)=>P*I)}function gm(f,I){return f.map(()=>I||Fr).splice(0,f.length-1)}function St({duration:f=300,keyframes:I,times:P,ease:D="easeInOut"}){let T=Kn(D)?D.map(ga):ga(D),H={done:!1,value:I[0]},L=Wl(P&&P.length===I.length?P:Ul(I),f),Z=Nl(L,I,{ease:Array.isArray(T)?T:gm(I,T)});return{calculatedDuration:f,next:(ge)=>(H.value=Z(ge),H.done=ge>=f,H)}}var ym=(f)=>f!==null;function lt(f,{repeat:I,repeatType:P="loop"},D,T=1){let H=f.filter(ym),Z=T<0||I&&P!=="loop"&&I%2===1?0:H.length-1;return!Z||D===void 0?H[Z]:D}var Cm={decay:Tr,inertia:Tr,tween:St,keyframes:St,spring:Yt};function Ta(f){if(typeof f.type==="string")f.type=Cm[f.type]}class bt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((f)=>{this.resolve=f})}notifyFinished(){this.resolve()}then(f,I){return this.finished.then(f,I)}}var Sm=(f)=>f/100;class it extends bt{constructor(f){super();if(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:I}=this.options;if(I&&I.updatedAt!==ro.now())this.tick(ro.now());if(this.isStopped=!0,this.state==="idle")return;this.teardown(),this.options.onStop?.()},this.options=f,this.initAnimation(),this.play(),f.autoplay===!1)this.pause()}initAnimation(){let{options:f}=this;Ta(f);let{type:I=St,repeat:P=0,repeatDelay:D=0,repeatType:T,velocity:H=0}=f,{keyframes:L}=f,Z=I||St;if(Z!==St&&typeof L[0]!=="number")this.mixKeyframes=Oo(Sm,wa(L[0],L[1])),L=[0,100];let ge=Z({...f,keyframes:L});if(T==="mirror")this.mirroredGenerator=Z({...f,keyframes:[...L].reverse(),velocity:-H});if(ge.calculatedDuration===null)ge.calculatedDuration=_t(ge);let{calculatedDuration:xe}=ge;this.calculatedDuration=xe,this.resolvedDuration=xe+D,this.totalDuration=this.resolvedDuration*(P+1)-D,this.generator=ge}updateTime(f){let I=Math.round(f-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=I}tick(f,I=!1){let{generator:P,totalDuration:D,mixKeyframes:T,mirroredGenerator:H,resolvedDuration:L,calculatedDuration:Z}=this;if(this.startTime===null)return P.next(0);let{delay:ge=0,keyframes:xe,repeat:Fe,repeatType:Be,repeatDelay:De,type:Me,onUpdate:Ae,finalKeyframe:Oe}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,f);else if(this.speed<0)this.startTime=Math.min(f-D/this.speed,this.startTime);if(I)this.currentTime=f;else this.updateTime(f);let Re=this.currentTime-ge*(this.playbackSpeed>=0?1:-1),Ve=this.playbackSpeed>=0?Re<0:Re>D;if(this.currentTime=Math.max(Re,0),this.state==="finished"&&this.holdTime===null)this.currentTime=D;let Ne=this.currentTime,He=P;if(Fe){let je=Math.min(this.currentTime,D)/L,Ee=Math.floor(je),Ze=je%1;if(!Ze&&je>=1)Ze=1;if(Ze===1&&Ee--,Ee=Math.min(Ee,Fe+1),Boolean(Ee%2)){if(Be==="reverse"){if(Ze=1-Ze,De)Ze-=De/L}else if(Be==="mirror")He=H}Ne=uo(0,1,Ze)*L}let Le;if(Ve)this.delayState.value=xe[0],Le=this.delayState;else Le=He.next(Ne);if(T&&!Ve)Le.value=T(Le.value);let{done:ze}=Le;if(!Ve&&Z!==null)ze=this.playbackSpeed>=0?this.currentTime>=D:this.currentTime<=0;let Xe=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ze);if(Xe&&Me!==Tr)Le.value=lt(xe,this.options,Oe,this.speed);if(Ae)Ae(Le.value);if(Xe)this.finish();return Le}then(f,I){return this.finished.then(f,I)}get duration(){return xo(this.calculatedDuration)}get iterationDuration(){let{delay:f=0}=this.options||{};return this.duration+xo(f)}get time(){return xo(this.currentTime)}set time(f){if(f=lo(f),this.currentTime=f,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=f;else if(this.driver)this.startTime=this.driver.now()-f/this.playbackSpeed;if(this.driver)this.driver.start(!1);else this.startTime=0,this.state="paused",this.holdTime=f,this.tick(f)}getGeneratorVelocity(){let f=this.currentTime;if(f<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(f);let I=this.generator.next(f).value;return Aa((P)=>this.generator.next(P).value,f,I)}get speed(){return this.playbackSpeed}set speed(f){let I=this.playbackSpeed!==f;if(I&&this.driver)this.updateTime(ro.now());if(this.playbackSpeed=f,I&&this.driver)this.time=xo(this.currentTime)}play(){if(this.isStopped)return;let{driver:f=Ol,startTime:I}=this.options;if(!this.driver)this.driver=f((D)=>this.tick(D));this.options.onPlay?.();let P=this.driver.now();if(this.state==="finished")this.updateFinished(),this.startTime=P;else if(this.holdTime!==null)this.startTime=P-this.holdTime;else if(!this.startTime)this.startTime=I??P;if(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(ro.now()),this.holdTime=this.currentTime}complete(){if(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(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(f){return this.startTime=0,this.tick(f,!0)}attachTimeline(f){if(this.options.allowFlatten)this.options.type="keyframes",this.options.ease="linear",this.initAnimation();return this.driver?.stop(),f.observe(this)}}function ql(f){for(let I=1;I<f.length;I++)f[I]??(f[I]=f[I-1])}var Ft=(f)=>f*180/Math.PI,ts=(f)=>{let I=Ft(Math.atan2(f[1],f[0]));return rs(I)},bm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(f)=>(Math.abs(f[0])+Math.abs(f[3]))/2,rotate:ts,rotateZ:ts,skewX:(f)=>Ft(Math.atan(f[1])),skewY:(f)=>Ft(Math.atan(f[2])),skew:(f)=>(Math.abs(f[1])+Math.abs(f[2]))/2},rs=(f)=>{if(f=f%360,f<0)f+=360;return f},Gl=ts,zl=(f)=>Math.sqrt(f[0]*f[0]+f[1]*f[1]),jl=(f)=>Math.sqrt(f[4]*f[4]+f[5]*f[5]),Fm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zl,scaleY:jl,scale:(f)=>(zl(f)+jl(f))/2,rotateX:(f)=>rs(Ft(Math.atan2(f[6],f[5]))),rotateY:(f)=>rs(Ft(Math.atan2(-f[2],f[0]))),rotateZ:Gl,rotate:Gl,skewX:(f)=>Ft(Math.atan(f[4])),skewY:(f)=>Ft(Math.atan(f[1])),skew:(f)=>(Math.abs(f[1])+Math.abs(f[4]))/2};function Ma(f){return f.includes("scale")?1:0}function ka(f,I){if(!f||f==="none")return Ma(I);let P=f.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),D,T;if(P)D=Fm,T=P;else{let Z=f.match(/^matrix\(([-\d.e\s,]+)\)$/u);D=bm,T=Z}if(!T)return Ma(I);let H=D[I],L=T[1].split(",").map(vm);return typeof H==="function"?H(L):L[H]}var Kl=(f,I)=>{let{transform:P="none"}=getComputedStyle(f);return ka(P,I)};function vm(f){return parseFloat(f.trim())}var qo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mo=(()=>new Set([...qo,"pathRotation"]))();var as=(f)=>f===Uo||f===Ue,Bm=new Set(["x","y","z"]),wm=qo.filter((f)=>!Bm.has(f));function Xl(f){let I=[];return wm.forEach((P)=>{let D=f.getValue(P);if(D!==void 0)I.push([P,D.get()]),D.set(P.startsWith("scale")?1:0)}),I}var _o={width:({x:f},{paddingLeft:I="0",paddingRight:P="0",boxSizing:D})=>{let T=f.max-f.min;return D==="border-box"?T:T-parseFloat(I)-parseFloat(P)},height:({y:f},{paddingTop:I="0",paddingBottom:P="0",boxSizing:D})=>{let T=f.max-f.min;return D==="border-box"?T:T-parseFloat(I)-parseFloat(P)},top:(f,{top:I})=>parseFloat(I),left:(f,{left:I})=>parseFloat(I),bottom:({y:f},{top:I})=>parseFloat(I)+(f.max-f.min),right:({x:f},{left:I})=>parseFloat(I)+(f.max-f.min),x:(f,{transform:I})=>ka(I,"x"),y:(f,{transform:I})=>ka(I,"y")};_o.translateX=_o.x;_o.translateY=_o.y;var vt=new Set,ns=!1,ss=!1,fs=!1;function _l(){if(ss){let f=Array.from(vt).filter((D)=>D.needsMeasurement),I=new Set(f.map((D)=>D.element)),P=new Map;I.forEach((D)=>{let T=Xl(D);if(!T.length)return;P.set(D,T),D.render()}),f.forEach((D)=>D.measureInitialState()),I.forEach((D)=>{D.render();let T=P.get(D);if(T)T.forEach(([H,L])=>{D.getValue(H)?.set(L)})}),f.forEach((D)=>D.measureEndState()),f.forEach((D)=>{if(D.suspendedScrollY!==void 0)window.scrollTo(0,D.suspendedScrollY)})}ss=!1,ns=!1,vt.forEach((f)=>f.complete(fs)),vt.clear()}function Yl(){vt.forEach((f)=>{if(f.readKeyframes(),f.needsMeasurement)ss=!0})}function Zl(){fs=!0,Yl(),_l(),fs=!1}class Bt{constructor(f,I,P,D,T,H=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...f],this.onComplete=I,this.name=P,this.motionValue=D,this.element=T,this.isAsync=H}scheduleResolve(){if(this.state="scheduled",this.isAsync){if(vt.add(this),!ns)ns=!0,h.read(Yl),h.resolveKeyframes(_l)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:f,name:I,element:P,motionValue:D}=this;if(f[0]===null){let T=D?.get(),H=f[f.length-1];if(T!==void 0)f[0]=T;else if(P&&I){let L=P.readValue(I,H);if(L!==void 0&&L!==null)f[0]=L}if(f[0]===void 0)f[0]=H;if(D&&T===void 0)D.set(f[0])}ql(f)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(f=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,f),vt.delete(this)}cancel(){if(this.state==="scheduled")vt.delete(this),this.state="pending"}resume(){if(this.state==="pending")this.scheduleResolve()}}var $l=(f)=>f.startsWith("--");function La(f,I,P){$l(I)?f.style.setProperty(I,P):f.style[I]=P}var Ql={};function Ra(f,I){let P=Ir(f);return()=>Ql[I]??P()}var Jl=Ra(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Oa=Ra(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(f){return!1}return!0},"linearEasing");var wt=([f,I,P,D])=>`cubic-bezier(${f}, ${I}, ${P}, ${D})`;var ls={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wt([0,0.65,0.55,1]),circOut:wt([0.55,0,1,0.45]),backIn:wt([0.31,0.01,0.66,-0.59]),backOut:wt([0.33,1.53,0.69,0.99])};function is(f,I){if(!f)return;else if(typeof f==="function")return Oa()?Pa(f,I):"ease-out";else if(vr(f))return wt(f);else if(Array.isArray(f))return f.map((P)=>is(P,I)||ls.easeOut);else return ls[f]}function ei(f,I,P,{delay:D=0,duration:T=300,repeat:H=0,repeatType:L="loop",ease:Z="easeOut",times:ge}={},xe=void 0){let Fe={[I]:P};if(ge)Fe.offset=ge;let Be=is(Z,T);if(Array.isArray(Be))Fe.easing=Be;let De={delay:D,duration:T,easing:!Array.isArray(Be)?Be:"linear",fill:"both",iterations:H+1,direction:L==="reverse"?"alternate":"normal"};if(xe)De.pseudoElement=xe;return f.animate(Fe,De)}function Ea(f){return typeof f==="function"&&"applyToOptions"in f}function oi({type:f,...I}){if(Ea(f)&&Oa())return f.applyToOptions(I);else I.duration??(I.duration=300),I.ease??(I.ease="easeOut");return I}class Mr extends bt{constructor(f){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!f)return;let{element:I,name:P,keyframes:D,pseudoElement:T,allowFlatten:H=!1,finalKeyframe:L,onComplete:Z}=f;this.isPseudoElement=Boolean(T),this.allowFlatten=H,this.options=f,yo(typeof f.type!=="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let ge=oi(f);if(this.animation=ei(I,P,D,ge,T),ge.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!T){let xe=lt(D,this.options,L,this.speed);if(this.updateMotionValue)this.updateMotionValue(xe);La(I,P,xe),this.animation.cancel()}Z?.(),this.notifyFinished()}}play(){if(this.isStopped)return;if(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(f){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:f}=this;if(f==="idle"||f==="finished")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){let f=this.options?.element;if(!this.isPseudoElement&&f?.isConnected)this.animation.commitStyles?.()}get duration(){let f=this.animation.effect?.getComputedTiming?.().duration||0;return xo(Number(f))}get iterationDuration(){let{delay:f=0}=this.options||{};return this.duration+xo(f)}get time(){return xo(Number(this.animation.currentTime)||0)}set time(f){let I=this.finishedTime!==null;if(this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=lo(f),I)this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(f){if(f<0)this.finishedTime=null;this.animation.playbackRate=f}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(f){this.manualStartTime=this.animation.startTime=f}attachTimeline({timeline:f,rangeStart:I,rangeEnd:P,observe:D}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:"linear"});if(this.animation.onfinish=null,f&&Jl()){if(this.animation.timeline=f,I)this.animation.rangeStart=I;if(P)this.animation.rangeEnd=P;return to}else return D(this)}}var ti={anticipate:yr,backInOut:gr,circInOut:br};function Pm(f){return f in ti}function ri(f){if(typeof f.ease==="string"&&Pm(f.ease))f.ease=ti[f.ease]}var cs=10;class ds extends Mr{constructor(f){ri(f),Ta(f);super(f);if(f.startTime!==void 0&&f.autoplay!==!1)this.startTime=f.startTime;this.options=f}updateMotionValue(f){let{motionValue:I,onUpdate:P,onComplete:D,element:T,...H}=this.options;if(!I)return;if(f!==void 0){I.set(f);return}let L=new it({...H,autoplay:!1}),Z=Math.max(cs,ro.now()-this.startTime),ge=uo(0,cs,Z-cs),xe=L.sample(Z).value,{name:Fe}=this.options;if(T&&Fe)La(T,Fe,xe);I.setWithVelocity(L.sample(Math.max(0,Z-ge)).value,xe,ge),L.stop()}}var us=(f,I)=>{if(I==="zIndex")return!1;if(typeof f==="number"||Array.isArray(f))return!0;if(typeof f==="string"&&(mo.test(f)||f==="0")&&!f.startsWith("url("))return!0;return!1};function Dm(f){let I=f[0];if(f.length===1)return!0;for(let P=0;P<f.length;P++)if(f[P]!==I)return!0}function ai(f,I,P,D){let T=f[0];if(T===null)return!1;if(I==="display"||I==="visibility")return!0;let H=f[f.length-1],L=us(T,I),Z=us(H,I);if(No(L===Z,`You are trying to animate ${I} from "${T}" to "${H}". "${L?H:T}" is not an animatable value.`,"value-not-animatable"),!L||!Z)return!1;return Dm(f)||(P==="spring"||Ea(P))&&D}function kr(f){f.duration=0,f.type="keyframes"}var Va=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var Am=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ni(f){for(let I=0;I<f.length;I++)if(typeof f[I]==="string"&&Am.test(f[I]))return!0;return!1}var Tm=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Mm=Ir(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function si(f){let{motionValue:I,name:P,repeatDelay:D,repeatType:T,damping:H,type:L,keyframes:Z}=f,ge=I?.owner?.current;if(!(ge instanceof HTMLElement)&&!(ge instanceof SVGElement))return!1;let{onUpdate:xe,transformTemplate:Fe}=I.owner.getProps();return Mm()&&P&&(Va.has(P)||Tm.has(P)&&ni(Z))&&(P!=="transform"||!Fe)&&!xe&&!D&&T!=="mirror"&&H!==0&&L!=="inertia"}var km=40;class ms extends bt{constructor({autoplay:f=!0,delay:I=0,type:P="keyframes",repeat:D=0,repeatDelay:T=0,repeatType:H="loop",keyframes:L,name:Z,motionValue:ge,element:xe,...Fe}){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=ro.now();let Be={autoplay:f,delay:I,type:P,repeat:D,repeatDelay:T,repeatType:H,name:Z,motionValue:ge,element:xe,...Fe},De=xe?.KeyframeResolver||Bt;this.keyframeResolver=new De(L,(Me,Ae,Oe)=>this.onKeyframesResolved(Me,Ae,Be,!Oe),Z,ge,xe),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(f,I,P,D){this.keyframeResolver=void 0;let{name:T,type:H,velocity:L,delay:Z,isHandoff:ge,onUpdate:xe}=P;this.resolvedAt=ro.now();let Fe=!0;if(!ai(f,T,H,L)){if(Fe=!1,Fo.instantAnimations||!Z)xe?.(lt(f,P,I));f[0]=f[f.length-1],kr(P),P.repeat=0}let De={startTime:D?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>km?this.resolvedAt:this.createdAt:void 0,finalKeyframe:I,...P,keyframes:f},Me=Fe&&!ge&&si(De),Ae=De.motionValue?.owner?.current,Oe;if(Me)try{Oe=new ds({...De,element:Ae})}catch{Oe=new it(De)}else Oe=new it(De);if(Oe.finished.then(()=>{this.notifyFinished()}).catch(to),this.pendingTimeline)this.stopTimeline=Oe.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=Oe}get finished(){if(!this._animation)return this._finished;else return this.animation.finished}then(f,I){return this.finished.finally(f).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),Zl();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(f){this.animation.time=f}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(f){this.animation.speed=f}get startTime(){return this.animation.startTime}attachTimeline(f){if(this._animation)this.stopTimeline=this.animation.attachTimeline(f);else this.pendingTimeline=f;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}function Na(f,I,P,D=0,T=1){let H=Array.from(f).sort((xe,Fe)=>xe.sortNodePosition(Fe)).indexOf(I),L=f.size,Z=(L-1)*D;return typeof P==="function"?P(H,L):T===1?H*D:Z-H*D}var fi=30,Rm=(f)=>!isNaN(parseFloat(f)),li={current:void 0};class ii{constructor(f,I={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(P)=>{let D=ro.now();if(this.updatedAt!==D)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(P),this.current!==this.prev){if(this.events.change?.notify(this.current),this.dependents)for(let T of this.dependents)T.dirty()}},this.hasAnimated=!1,this.setCurrent(f),this.owner=I.owner}setCurrent(f){if(this.current=f,this.updatedAt=ro.now(),this.canTrackVelocity===null&&f!==void 0)this.canTrackVelocity=Rm(this.current)}setPrevFrameValue(f=this.current){this.prevFrameValue=f,this.prevUpdatedAt=this.updatedAt}onChange(f){return this.on("change",f)}on(f,I){if(!this.events[f])this.events[f]=new rt;let P=this.events[f].add(I);if(f==="change")return()=>{P(),h.read(()=>{if(!this.events.change.getSize())this.stop()})};return P}clearListeners(){for(let f in this.events)this.events[f].clear()}attach(f,I){this.passiveEffect=f,this.stopPassiveEffect=I}set(f){if(!this.passiveEffect)this.updateAndNotify(f);else this.passiveEffect(f,this.updateAndNotify)}setWithVelocity(f,I,P){this.set(I),this.prev=void 0,this.prevFrameValue=f,this.prevUpdatedAt=this.updatedAt-P}jump(f,I=!0){if(this.updateAndNotify(f),this.prev=f,this.prevUpdatedAt=this.prevFrameValue=void 0,I&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(f){if(!this.dependents)this.dependents=new Set;this.dependents.add(f)}removeDependent(f){if(this.dependents)this.dependents.delete(f)}get(){if(li.current)li.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let f=ro.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||f-this.updatedAt>fi)return 0;let I=Math.min(this.updatedAt-this.prevUpdatedAt,fi);return hr(parseFloat(this.current)-parseFloat(this.prevFrameValue),I)}start(f){return this.stop(),new Promise((I)=>{if(this.hasAnimated=!0,this.animation=f(I),this.events.animationStart)this.events.animationStart.notify()}).then(()=>{if(this.events.animationComplete)this.events.animationComplete.notify();this.clearAnimation()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function Eo(f,I){return new ii(f,I)}function Ha(f,I){if(f?.inherit&&I){let{inherit:P,...D}=f;return{...I,...D}}return f}function Zt(f,I){let P=f?.[I]??f?.default??f;if(P!==f)return Ha(P,f);return P}var Om={type:"spring",stiffness:500,damping:25,restSpeed:10},Em=(f)=>({type:"spring",stiffness:550,damping:f===0?2*Math.sqrt(550):30,restSpeed:10}),Vm={type:"keyframes",duration:0.8},Nm={type:"keyframes",ease:[0.25,0.1,0.35,1],duration:0.3},ci=(f,{keyframes:I})=>{if(I.length>2)return Vm;else if(Mo.has(f))return f.startsWith("scale")?Em(I[1]):Om;return Nm};var Hm=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function di(f){for(let I in f)if(!Hm.has(I))return!0;return!1}var Pt=(f,I,P,D={},T,H)=>(L)=>{let Z=Zt(D,f)||{},ge=Z.delay||D.delay||0,{elapsed:xe=0}=D;xe=xe-lo(ge);let Fe={keyframes:Array.isArray(P)?P:[null,P],ease:"easeOut",velocity:I.getVelocity(),...Z,delay:-xe,onUpdate:(De)=>{I.set(De),Z.onUpdate&&Z.onUpdate(De)},onComplete:()=>{L(),Z.onComplete&&Z.onComplete()},name:f,motionValue:I,element:H?void 0:T};if(!di(Z))Object.assign(Fe,ci(f,Fe));if(Fe.duration&&(Fe.duration=lo(Fe.duration)),Fe.repeatDelay&&(Fe.repeatDelay=lo(Fe.repeatDelay)),Fe.from!==void 0)Fe.keyframes[0]=Fe.from;let Be=!1;if(Fe.type===!1||Fe.duration===0&&!Fe.repeatDelay){if(kr(Fe),Fe.delay===0)Be=!0}if(Fo.instantAnimations||Fo.skipAnimations||T?.shouldSkipAnimations||Z.skipAnimations)Be=!0,kr(Fe),Fe.delay=0;if(Fe.allowFlatten=!Z.type&&!Z.ease,Be&&!H&&I.get()!==void 0){let De=lt(Fe.keyframes,Z);if(De!==void 0){h.update(()=>{Fe.onUpdate(De),Fe.onComplete()});return}}return Z.isSync?new it(Fe):new ms(Fe)};var Um=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wm(f){let I=Um.exec(f);if(!I)return[,];let[,P,D,T]=I;return[`--${P??D}`,T]}var qm=4;function ps(f,I,P=1){yo(P<=qm,`Max CSS variable fallback depth detected in property "${f}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[D,T]=Wm(f);if(!D)return;let H=window.getComputedStyle(I).getPropertyValue(D);if(H){let L=H.trim();return mr(L)?parseFloat(L):L}return zt(T)?ps(T,I,P+1):T}function ui(f){let I=[{},{}];return f?.values.forEach((P,D)=>{I[0][D]=P.get(),I[1][D]=P.getVelocity()}),I}function Dt(f,I,P,D){if(typeof I==="function"){let[T,H]=ui(D);I=I(P!==void 0?P:f.custom,T,H)}if(typeof I==="string")I=f.variants&&f.variants[I];if(typeof I==="function"){let[T,H]=ui(D);I=I(P!==void 0?P:f.custom,T,H)}return I}function Po(f,I,P){let D=f.getProps();return Dt(D,I,P!==void 0?P:D.custom,f)}var Ua=new Set(["width","height","top","left","right","bottom",...qo]);var Lr=(f)=>Array.isArray(f);function Gm(f,I,P){if(f.hasValue(I))f.getValue(I).set(P);else f.addValue(I,Eo(P))}function zm(f){return Lr(f)?f[f.length-1]||0:f}function mi(f,I){let P=Po(f,I),{transitionEnd:D={},transition:T={},...H}=P||{};H={...H,...D};for(let L in H){let Z=zm(H[L]);Gm(f,L,Z)}}var $e=(f)=>Boolean(f&&f.getVelocity);function pi(f){return Boolean($e(f)&&f.add)}function $t(f,I){let P=f.getValue("willChange");if(pi(P))return P.add(I);else if(!P&&Fo.WillChange){let D=new Fo.WillChange("auto");f.addValue("willChange",D),D.add(I)}}function Qt(f){return f.replace(/([A-Z])/g,(I)=>`-${I.toLowerCase()}`)}var xi="framerAppearId",Rr="data-"+Qt(xi);function Wa(f){return f.props[Rr]}function jm({protectedKeys:f,needsAnimating:I},P){let D=f.hasOwnProperty(P)&&I[P]!==!0;return I[P]=!1,D}function qa(f,I,{delay:P=0,transitionOverride:D,type:T}={}){let{transition:H,transitionEnd:L,...Z}=I,ge=f.getDefaultTransition();H=H?Ha(H,ge):ge;let xe=H?.reduceMotion,Fe=H?.skipAnimations;if(D)H=D;let Be=[],De=T&&f.animationState&&f.animationState.getState()[T],Me=H?.path;if(Me)Me.animateVisualElement(f,Z,H,P,Be);for(let Ae in Z){let Oe=f.getValue(Ae,f.latestValues[Ae]??null),Re=Z[Ae];if(Re===void 0||De&&jm(De,Ae))continue;let Ve={delay:P,...Zt(H||{},Ae)};if(Fe)Ve.skipAnimations=!0;let Ne=Oe.get();if(Ne!==void 0&&!Oe.isAnimating()&&!Array.isArray(Re)&&Re===Ne&&!Ve.velocity){h.update(()=>Oe.set(Re));continue}let He=!1;if(window.MotionHandoffAnimation){let Xe=Wa(f);if(Xe){let je=window.MotionHandoffAnimation(Xe,Ae,h);if(je!==null)Ve.startTime=je,He=!0}}$t(f,Ae);let Le=xe??f.shouldReduceMotion;Oe.start(Pt(Ae,Oe,Re,Le&&Ua.has(Ae)?{type:!1}:Ve,f,He));let ze=Oe.animation;if(ze)Be.push(ze)}if(L){let Ae=()=>h.update(()=>{L&&mi(f,L)});if(Be.length)Promise.all(Be).then(Ae);else Ae()}return Be}function Ga(f,I,P={}){let D=Po(f,I,P.type==="exit"?f.presenceContext?.custom:void 0),{transition:T=f.getDefaultTransition()||{}}=D||{};if(P.transitionOverride)T=P.transitionOverride;let H=D?()=>Promise.all(qa(f,D,P)):()=>Promise.resolve(),L=f.variantChildren&&f.variantChildren.size?(ge=0)=>{let{delayChildren:xe=0,staggerChildren:Fe,staggerDirection:Be}=T;return Km(f,I,ge,xe,Fe,Be,P)}:()=>Promise.resolve(),{when:Z}=T;if(Z){let[ge,xe]=Z==="beforeChildren"?[H,L]:[L,H];return ge().then(()=>xe())}else return Promise.all([H(),L(P.delay)])}function Km(f,I,P=0,D=0,T=0,H=1,L){let Z=[];for(let ge of f.variantChildren)ge.notify("AnimationStart",I),Z.push(Ga(ge,I,{...L,delay:P+(typeof D==="function"?0:D)+Na(f.variantChildren,ge,D,T,H)}).then(()=>ge.notify("AnimationComplete",I)));return Promise.all(Z)}function Ii(f,I,P={}){f.notify("AnimationStart",I);let D;if(Array.isArray(I)){let T=I.map((H)=>Ga(f,H,P));D=Promise.all(T)}else if(typeof I==="string")D=Ga(f,I,P);else{let T=typeof I==="function"?Po(f,I,P.custom):I;D=Promise.all(qa(f,T,P))}return D.then(()=>{f.notify("AnimationComplete",I)})}var hi={test:(f)=>f==="auto",parse:(f)=>f};var za=(f)=>(I)=>I.test(f);var xs=[Uo,Ue,Co,To,Zn,Yn,hi],Is=(f)=>xs.find(za(f));function gi(f){if(typeof f==="number")return f===0;else if(f!==null)return f==="none"||f==="0"||xr(f);else return!0}var Xm=new Set(["brightness","contrast","saturate","opacity"]);function _m(f){let[I,P]=f.slice(0,-1).split("(");if(I==="drop-shadow")return f;let[D]=P.match(jt)||[];if(!D)return f;let T=P.replace(D,""),H=Xm.has(I)?1:0;if(D!==P)H*=100;return I+"("+H+T+")"}var Ym=/\b([a-z-]*)\(.*?\)/gu,Or={...mo,getAnimatableNone:(f)=>{let I=f.match(Ym);return I?I.map(_m).join(" "):f}};var Er={...mo,getAnimatableNone:(f)=>{let I=mo.parse(f);return mo.createTransformer(f)(I.map((D)=>typeof D==="number"?0:typeof D==="object"?{...D,alpha:1}:D))}};var hs={...Uo,transform:Math.round};var yi={rotate:To,pathRotation:To,rotateX:To,rotateY:To,rotateZ:To,scale:Pr,scaleX:Pr,scaleY:Pr,scaleZ:Pr,skew:To,skewX:To,skewY:To,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:Xo,originX:Fa,originY:Fa,originZ:Ue};var At={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,inset:Ue,insetBlock:Ue,insetBlockStart:Ue,insetBlockEnd:Ue,insetInline:Ue,insetInlineStart:Ue,insetInlineEnd:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,paddingBlock:Ue,paddingBlockStart:Ue,paddingBlockEnd:Ue,paddingInline:Ue,paddingInlineStart:Ue,paddingInlineEnd:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,marginBlock:Ue,marginBlockStart:Ue,marginBlockEnd:Ue,marginInline:Ue,marginInlineStart:Ue,marginInlineEnd:Ue,fontSize:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue,...yi,zIndex:hs,fillOpacity:Xo,strokeOpacity:Xo,numOctaves:hs};var Zm={...At,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Or,WebkitFilter:Or,mask:Er,WebkitMask:Er},ja=(f)=>Zm[f];var $m=new Set([Or,Er]);function Ka(f,I){let P=ja(f);if(!$m.has(P))P=mo;return P.getAnimatableNone?P.getAnimatableNone(I):void 0}var Qm=new Set(["auto","none","0"]);function Ci(f,I,P){let D=0,T=void 0;while(D<f.length&&!T){let H=f[D];if(typeof H==="string"&&!Qm.has(H)&&ft(H).values.length)T=f[D];D++}if(T&&P)for(let H of I)f[H]=Ka(P,T)}class gs extends Bt{constructor(f,I,P,D,T){super(f,I,P,D,T,!0)}readKeyframes(){let{unresolvedKeyframes:f,element:I,name:P}=this;if(!I||!I.current)return;super.readKeyframes();for(let xe=0;xe<f.length;xe++){let Fe=f[xe];if(typeof Fe==="string"){if(Fe=Fe.trim(),zt(Fe)){let Be=ps(Fe,I.current);if(Be!==void 0)f[xe]=Be;if(xe===f.length-1)this.finalKeyframe=Fe}}}if(this.resolveNoneKeyframes(),!Ua.has(P)||f.length!==2)return;let[D,T]=f,H=Is(D),L=Is(T),Z=Xn(D),ge=Xn(T);if(Z!==ge&&_o[P]){this.needsMeasurement=!0;return}if(H===L)return;if(as(H)&&as(L))for(let xe=0;xe<f.length;xe++){let Fe=f[xe];if(typeof Fe==="string")f[xe]=parseFloat(Fe)}else if(_o[P])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:f,name:I}=this,P=[];for(let D=0;D<f.length;D++)if(f[D]===null||gi(f[D]))P.push(D);if(P.length)Ci(f,P,I)}measureInitialState(){let{element:f,unresolvedKeyframes:I,name:P}=this;if(!f||!f.current)return;if(P==="height")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=_o[P](f.measureViewportBox(),window.getComputedStyle(f.current)),I[0]=this.measuredOrigin;let D=I[I.length-1];if(D!==void 0)f.getValue(P,D).jump(D,!1)}measureEndState(){let{element:f,name:I,unresolvedKeyframes:P}=this;if(!f||!f.current)return;let D=f.getValue(I);D&&D.jump(this.measuredOrigin,!1);let T=P.length-1,H=P[T];if(P[T]=_o[I](f.measureViewportBox(),window.getComputedStyle(f.current)),H!==null&&this.finalKeyframe===void 0)this.finalKeyframe=H;if(this.removedTransforms?.length)this.removedTransforms.forEach(([L,Z])=>{f.getValue(L).set(Z)});this.resolveNoneKeyframes()}}var Vr=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Xa(f,I,P){if(f==null)return[];if(f instanceof EventTarget)return[f];else if(typeof f==="string"){let D=document;if(I)D=I.current;let T=P?.[f]??D.querySelectorAll(f);return T?Array.from(T):[]}return Array.from(f).filter((D)=>D!=null)}var Nr=(f,I)=>I&&typeof f==="number"?I.transform(f):f;function Y(f){return pr(f)&&"offsetHeight"in f&&!("ownerSVGElement"in f)}var{schedule:Tt,cancel:Jm}=ya(queueMicrotask,!1);var ko={x:!1,y:!1};function _a(){return ko.x||ko.y}function ys(f){if(f==="x"||f==="y")if(ko[f])return null;else return ko[f]=!0,()=>{ko[f]=!1};else if(ko.x||ko.y)return null;else return ko.x=ko.y=!0,()=>{ko.x=ko.y=!1}}function Ya(f,I){let P=Xa(f),D=new AbortController,T={passive:!0,...I,signal:D.signal};return[P,T,()=>D.abort()]}function ep(f){return!(f.pointerType==="touch"||_a())}function Cs(f,I,P={}){let[D,T,H]=Ya(f,P);return D.forEach((L)=>{let Z=!1,ge=!1,xe,Fe=()=>{L.removeEventListener("pointerleave",Ae)},Be=(Re)=>{if(xe)xe(Re),xe=void 0;Fe()},De=(Re)=>{if(Z=!1,window.removeEventListener("pointerup",De),window.removeEventListener("pointercancel",De),ge)ge=!1,Be(Re)},Me=()=>{Z=!0,window.addEventListener("pointerup",De,T),window.addEventListener("pointercancel",De,T)},Ae=(Re)=>{if(Re.pointerType==="touch")return;if(Z){ge=!0;return}Be(Re)},Oe=(Re)=>{if(!ep(Re))return;ge=!1;let Ve=I(L,Re);if(typeof Ve!=="function")return;xe=Ve,L.addEventListener("pointerleave",Ae,T)};L.addEventListener("pointerenter",Oe,T),L.addEventListener("pointerdown",Me,T)}),H}var Ss=(f,I)=>{if(!I)return!1;else if(f===I)return!0;else return Ss(f,I.parentElement)};var Mt=(f)=>{if(f.pointerType==="mouse")return typeof f.button!=="number"||f.button<=0;else return f.isPrimary!==!1};var op=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bs(f){return op.has(f.tagName)||f.isContentEditable===!0}var tp=new Set(["INPUT","SELECT","TEXTAREA"]);function Fs(f){return tp.has(f.tagName)||f.isContentEditable===!0}var Jt=new WeakSet;function Si(f){return(I)=>{if(I.key!=="Enter")return;f(I)}}function vs(f,I){f.dispatchEvent(new PointerEvent("pointer"+I,{isPrimary:!0,bubbles:!0}))}var bi=(f,I)=>{let P=f.currentTarget;if(!P)return;let D=Si(()=>{if(Jt.has(P))return;vs(P,"down");let T=Si(()=>{vs(P,"up")}),H=()=>vs(P,"cancel");P.addEventListener("keyup",T,I),P.addEventListener("blur",H,I)});P.addEventListener("keydown",D,I),P.addEventListener("blur",()=>P.removeEventListener("keydown",D),I)};function Fi(f){return Mt(f)&&!_a()}var vi=new WeakSet;function Bs(f,I,P={}){let[D,T,H]=Ya(f,P),L=(Z)=>{let ge=Z.currentTarget;if(!Fi(Z))return;if(vi.has(Z))return;if(Jt.add(ge),P.stopPropagation)vi.add(Z);let xe=I(ge,Z),Fe={...T,capture:!0},Be=(Ae,Oe)=>{if(window.removeEventListener("pointerup",De,Fe),window.removeEventListener("pointercancel",Me,Fe),Jt.has(ge))Jt.delete(ge);if(!Fi(Ae))return;if(typeof xe==="function")xe(Ae,{success:Oe})},De=(Ae)=>{Be(Ae,ge===window||ge===document||P.useGlobalTarget||Ss(ge,Ae.target))},Me=(Ae)=>{Be(Ae,!1)};window.addEventListener("pointerup",De,Fe),window.addEventListener("pointercancel",Me,Fe)};return D.forEach((Z)=>{if((P.useGlobalTarget?window:Z).addEventListener("pointerdown",L,T),Y(Z)){if(Z.addEventListener("focus",(xe)=>bi(xe,T)),!bs(Z)&&!Z.hasAttribute("tabindex"))Z.tabIndex=0}}),H}function er(f){return pr(f)&&"ownerSVGElement"in f}var Za=new WeakMap,$a,Bi=(f,I,P)=>(D,T)=>{if(T&&T[0])return T[0][f+"Size"];else if(er(D)&&"getBBox"in D)return D.getBBox()[I];else return D[P]},rp=Bi("inline","width","offsetWidth"),ap=Bi("block","height","offsetHeight");function np({target:f,borderBoxSize:I}){Za.get(f)?.forEach((P)=>{P(f,{get width(){return rp(f,I)},get height(){return ap(f,I)}})})}function sp(f){f.forEach(np)}function fp(){if(typeof ResizeObserver>"u")return;$a=new ResizeObserver(sp)}function wi(f,I){if(!$a)fp();let P=Xa(f);return P.forEach((D)=>{let T=Za.get(D);if(!T)T=new Set,Za.set(D,T);T.add(I),$a?.observe(D)}),()=>{P.forEach((D)=>{let T=Za.get(D);if(T?.delete(I),!T?.size)$a?.unobserve(D)})}}var Qa=new Set,or;function lp(){or=()=>{let f={get width(){return window.innerWidth},get height(){return window.innerHeight}};Qa.forEach((I)=>I(f))},window.addEventListener("resize",or)}function Pi(f){if(Qa.add(f),!or)lp();return()=>{if(Qa.delete(f),!Qa.size&&typeof or==="function")window.removeEventListener("resize",or),or=void 0}}function Ja(f,I){return typeof f==="function"?Pi(f):wi(f,I)}var kt={value:null,addProjectionMetrics:null};function Di(f){return er(f)&&f.tagName==="svg"}var ip=[...xs,Je,mo],Ai=(f)=>ip.find(za(f));var ws=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:ws(),y:ws()}),Ps=()=>({min:0,max:0}),eo=()=>({x:Ps(),y:Ps()});var Ti=new WeakMap;function Yo(f){return f!==null&&typeof f==="object"&&typeof f.start==="function"}function Go(f){return typeof f==="string"||Array.isArray(f)}var en=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hr=["initial",...en];function dt(f){return Yo(f.animate)||Hr.some((I)=>Go(f[I]))}function Ur(f){return Boolean(dt(f)||f.variants)}function Mi(f,I,P){for(let D in I){let T=I[D],H=P[D];if($e(T))f.addValue(D,T);else if($e(H))f.addValue(D,Eo(T,{owner:f}));else if(H!==T)if(f.hasValue(D)){let L=f.getValue(D);if(L.liveStyle===!0)L.jump(T);else if(!L.hasAnimated)L.set(T)}else{let L=f.getStaticValue(D);f.addValue(D,Eo(L!==void 0?L:T,{owner:f}))}}for(let D in P)if(I[D]===void 0)f.removeValue(D);return I}var Wr={current:null},on={current:!1};var cp=typeof window<"u";function ki(){if(on.current=!0,!cp)return;if(window.matchMedia){let f=window.matchMedia("(prefers-reduced-motion)"),I=()=>Wr.current=f.matches;f.addEventListener("change",I),I()}else Wr.current=!1}var Li=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tn={};function qr(f){tn=f}function Ds(){return tn}class rn{scrapeMotionValuesFromProps(f,I,P){return{}}constructor({parent:f,props:I,presenceContext:P,reducedMotionConfig:D,skipAnimations:T,blockInitialAnimation:H,visualState:L},Z={}){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=Bt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let De=ro.now();if(this.renderScheduledAt<De)this.renderScheduledAt=De,h.render(this.render,!1,!0)};let{latestValues:ge,renderState:xe}=L;if(this.latestValues=ge,this.baseTarget={...ge},this.initialValues=I.initial?{...ge}:{},this.renderState=xe,this.parent=f,this.props=I,this.presenceContext=P,this.depth=f?f.depth+1:0,this.reducedMotionConfig=D,this.skipAnimationsConfig=T,this.options=Z,this.blockInitialAnimation=Boolean(H),this.isControllingVariants=dt(I),this.isVariantNode=Ur(I),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(f&&f.current);let{willChange:Fe,...Be}=this.scrapeMotionValuesFromProps(I,{},this);for(let De in Be){let Me=Be[De];if(ge[De]!==void 0&&$e(Me))Me.set(ge[De])}}mount(f){if(this.hasBeenMounted)for(let I in this.initialValues)this.values.get(I)?.jump(this.initialValues[I]),this.latestValues[I]=this.initialValues[I];if(this.current=f,Ti.set(f,this),this.projection&&!this.projection.instance)this.projection.mount(f);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((I,P)=>this.bindToMotionValue(P,I)),this.reducedMotionConfig==="never")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig==="always")this.shouldReduceMotion=!0;else{if(!on.current)ki();this.shouldReduceMotion=Wr.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(),wo(this.notifyUpdate),wo(this.render),this.valueSubscriptions.forEach((f)=>f()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let f in this.events)this.events[f].clear();for(let f in this.features){let I=this.features[f];if(I)I.unmount(),I.isMounted=!1}this.current=null}addChild(f){this.children.add(f),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(f)}removeChild(f){this.children.delete(f),this.enteringChildren&&this.enteringChildren.delete(f)}bindToMotionValue(f,I){if(this.valueSubscriptions.has(f))this.valueSubscriptions.get(f)();if(I.accelerate&&Va.has(f)&&this.current instanceof HTMLElement){let{factory:H,keyframes:L,times:Z,ease:ge,duration:xe}=I.accelerate,Fe=new Mr({element:this.current,name:f,keyframes:L,times:Z,ease:ge,duration:lo(xe)}),Be=H(Fe);this.valueSubscriptions.set(f,()=>{Be(),Fe.cancel()});return}let P=Mo.has(f);if(P&&this.onBindTransform)this.onBindTransform();let D=I.on("change",(H)=>{if(this.latestValues[f]=H,this.props.onUpdate&&h.preRender(this.notifyUpdate),P&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),T;if(typeof window<"u"&&window.MotionCheckAppearSync)T=window.MotionCheckAppearSync(this,f,I);this.valueSubscriptions.set(f,()=>{if(D(),T)T()})}sortNodePosition(f){if(!this.current||!this.sortInstanceNodePosition||this.type!==f.type)return 0;return this.sortInstanceNodePosition(this.current,f.current)}updateFeatures(){let f="animation";for(f in tn){let I=tn[f];if(!I)continue;let{isEnabled:P,Feature:D}=I;if(!this.features[f]&&D&&P(this.props))this.features[f]=new D(this);if(this.features[f]){let T=this.features[f];if(T.isMounted)T.update();else T.mount(),T.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eo()}getStaticValue(f){return this.latestValues[f]}setStaticValue(f,I){this.latestValues[f]=I}update(f,I){if(f.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=f,this.prevPresenceContext=this.presenceContext,this.presenceContext=I;for(let P=0;P<Li.length;P++){let D=Li[P];if(this.propEventSubscriptions[D])this.propEventSubscriptions[D](),delete this.propEventSubscriptions[D];let T="on"+D,H=f[T];if(H)this.propEventSubscriptions[D]=this.on(D,H)}if(this.prevMotionValues=Mi(this,this.scrapeMotionValuesFromProps(f,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(f){return this.props.variants?this.props.variants[f]: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(f){let I=this.getClosestVariantNode();if(I)return I.variantChildren&&I.variantChildren.add(f),()=>I.variantChildren.delete(f)}addValue(f,I){let P=this.values.get(f);if(I!==P){if(P)this.removeValue(f);this.bindToMotionValue(f,I),this.values.set(f,I),this.latestValues[f]=I.get()}}removeValue(f){this.values.delete(f);let I=this.valueSubscriptions.get(f);if(I)I(),this.valueSubscriptions.delete(f);delete this.latestValues[f],this.removeValueFromRenderState(f,this.renderState)}hasValue(f){return this.values.has(f)}getValue(f,I){if(this.props.values&&this.props.values[f])return this.props.values[f];let P=this.values.get(f);if(P===void 0&&I!==void 0)P=Eo(I===null?void 0:I,{owner:this}),this.addValue(f,P);return P}readValue(f,I){let P=this.latestValues[f]!==void 0||!this.current?this.latestValues[f]:this.getBaseTargetFromProps(this.props,f)??this.readValueFromInstance(this.current,f,this.options);if(P!==void 0&&P!==null){if(typeof P==="string"&&(mr(P)||xr(P)))P=parseFloat(P);else if(!Ai(P)&&mo.test(I))P=Ka(f,I);this.setBaseTarget(f,$e(P)?P.get():P)}return $e(P)?P.get():P}setBaseTarget(f,I){this.baseTarget[f]=I}getBaseTarget(f){let{initial:I}=this.props,P;if(typeof I==="string"||typeof I==="object"){let T=Dt(this.props,I,this.presenceContext?.custom);if(T)P=T[f]}if(I&&P!==void 0)return P;let D=this.getBaseTargetFromProps(this.props,f);if(D!==void 0&&!$e(D))return D;return this.initialValues[f]!==void 0&&P===void 0?void 0:this.baseTarget[f]}on(f,I){if(!this.events[f])this.events[f]=new rt;return this.events[f].add(I)}notify(f,...I){if(this.events[f])this.events[f].notify(...I)}scheduleRenderMicrotask(){Tt.render(this.render)}}class Gr extends rn{constructor(){super(...arguments);this.KeyframeResolver=gs}sortInstanceNodePosition(f,I){return f.compareDocumentPosition(I)&2?1:-1}getBaseTargetFromProps(f,I){let P=f.style;return P?P[I]:void 0}removeValueFromRenderState(f,{vars:I,style:P}){delete I[f],delete P[f]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:f}=this.props;if($e(f))this.childSubscription=f.on("change",(I)=>{if(this.current)this.current.textContent=`${I}`})}}class Io{constructor(f){this.isMounted=!1,this.node=f}update(){}}function zr({top:f,left:I,right:P,bottom:D}){return{x:{min:I,max:P},y:{min:f,max:D}}}function As({x:f,y:I}){return{top:I.min,right:f.max,bottom:I.max,left:f.min}}function Ts(f,I){if(!I)return f;let P=I({x:f.left,y:f.top}),D=I({x:f.right,y:f.bottom});return{top:P.y,left:P.x,bottom:D.y,right:D.x}}function Ms(f){return f===void 0||f===1}function an({scale:f,scaleX:I,scaleY:P}){return!Ms(f)||!Ms(I)||!Ms(P)}function Zo(f){return an(f)||ks(f)||f.z||f.rotate||f.rotateX||f.rotateY||f.skewX||f.skewY}function ks(f){return Ri(f.x)||Ri(f.y)}function Ri(f){return f&&f!=="0%"}function jr(f,I,P){let D=f-P,T=I*D;return P+T}function Oi(f,I,P,D,T){if(T!==void 0)f=jr(f,T,D);return jr(f,P,D)+I}function Ls(f,I=0,P=1,D,T){f.min=Oi(f.min,I,P,D,T),f.max=Oi(f.max,I,P,D,T)}function Rs(f,{x:I,y:P}){Ls(f.x,I.translate,I.scale,I.originPoint),Ls(f.y,P.translate,P.scale,P.originPoint)}var Ei=0.999999999999,Vi=1.0000000000001;function Ui(f,I,P,D=!1){let T=P.length;if(!T)return;I.x=I.y=1;let H,L;for(let Z=0;Z<T;Z++){H=P[Z],L=H.projectionDelta;let{visualElement:ge}=H.options;if(ge&&ge.props.style&&ge.props.style.display==="contents")continue;if(D&&H.options.layoutScroll&&H.scroll&&H!==H.root)Lo(f.x,-H.scroll.offset.x),Lo(f.y,-H.scroll.offset.y);if(L)I.x*=L.x.scale,I.y*=L.y.scale,Rs(f,L);if(D&&Zo(H.latestValues))Kr(f,H.latestValues,H.layout?.layoutBox)}if(I.x<Vi&&I.x>Ei)I.x=1;if(I.y<Vi&&I.y>Ei)I.y=1}function Lo(f,I){f.min+=I,f.max+=I}function Ni(f,I,P,D,T=0.5){let H=_e(f.min,f.max,T);Ls(f,I,P,H,D)}function Hi(f,I){if(typeof f==="string")return parseFloat(f)/100*(I.max-I.min);return f}function Kr(f,I,P){let D=P??f;Ni(f.x,Hi(I.x,D.x),I.scaleX,I.scale,I.originX),Ni(f.y,Hi(I.y,D.y),I.scaleY,I.scale,I.originY)}function nn(f,I){return zr(Ts(f.getBoundingClientRect(),I))}function Os(f,I,P){let D=nn(f,P),{scroll:T}=I;if(T)Lo(D.x,T.offset.x),Lo(D.y,T.offset.y);return D}var dp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},up=qo.length;function Wi(f,I,P){let D="",T=!0;for(let L=0;L<up;L++){let Z=qo[L],ge=f[Z];if(ge===void 0)continue;let xe=!0;if(typeof ge==="number")xe=ge===(Z.startsWith("scale")?1:0);else{let Fe=parseFloat(ge);xe=Z.startsWith("scale")?Fe===1:Fe===0}if(!xe||P){let Fe=Nr(ge,At[Z]);if(!xe){T=!1;let Be=dp[Z]||Z;D+=`${Be}(${Fe}) `}if(P)I[Z]=Fe}}let H=f.pathRotation;if(H)T=!1,D+=`rotate(${Nr(H,At.pathRotation)}) `;if(D=D.trim(),P)D=P(I,T?"":D);else if(T)D="none";return D}function Lt(f,I,P){let{style:D,vars:T,transformOrigin:H}=f,L=!1,Z=!1;for(let ge in I){let xe=I[ge];if(Mo.has(ge)){L=!0;continue}else if(Sa(ge)){T[ge]=xe;continue}else{let Fe=Nr(xe,At[ge]);if(ge.startsWith("origin"))Z=!0,H[ge]=Fe;else D[ge]=Fe}}if(!I.transform){if(L||P)D.transform=Wi(I,f.transform,P);else if(D.transform)D.transform="none"}if(Z){let{originX:ge="50%",originY:xe="50%",originZ:Fe=0}=H;D.transformOrigin=`${ge} ${xe} ${Fe}`}}function sn(f,{style:I,vars:P},D,T){let H=f.style,L;for(L in I)H[L]=I[L];T?.applyProjectionStyles(H,D);for(L in P)H.setProperty(L,P[L])}function qi(f,I){if(I.max===I.min)return 0;return f/(I.max-I.min)*100}var tr={correct:(f,I)=>{if(!I.target)return f;if(typeof f==="string")if(Ue.test(f))f=parseFloat(f);else return f;let P=qi(f,I.target.x),D=qi(f,I.target.y);return`${P}% ${D}%`}};var Gi={correct:(f,{treeScale:I,projectionDelta:P})=>{let D=f,T=mo.parse(f);if(T.length>5)return D;let H=mo.createTransformer(f),L=typeof T[0]!=="number"?1:0,Z=P.x.scale*I.x,ge=P.y.scale*I.y;T[0+L]/=Z,T[1+L]/=ge;let xe=_e(Z,ge,0.5);if(typeof T[2+L]==="number")T[2+L]/=xe;if(typeof T[3+L]==="number")T[3+L]/=xe;return H(T)}};var Xr={borderRadius:{...tr,applyTo:[...Vr]},borderTopLeftRadius:tr,borderTopRightRadius:tr,borderBottomLeftRadius:tr,borderBottomRightRadius:tr,boxShadow:Gi};function _r(f,{layout:I,layoutId:P}){return Mo.has(f)||f.startsWith("origin")||(I||P!==void 0)&&(!!Xr[f]||f==="opacity")}function Rt(f,I,P){let D=f.style,T=I?.style,H={};if(!D)return H;for(let L in D)if($e(D[L])||T&&$e(T[L])||_r(L,f)||P?.getValue(L)?.liveStyle!==void 0)H[L]=D[L];return H}function mp(f){return window.getComputedStyle(f)}class fn extends Gr{constructor(){super(...arguments);this.type="html",this.renderInstance=sn}mount(f){yo(Boolean(f.style),"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(f)}readValueFromInstance(f,I){if(Mo.has(I))return this.projection?.isProjecting?Ma(I):Kl(f,I);else{let P=mp(f),D=(Sa(I)?P.getPropertyValue(I):P[I])||0;return typeof D==="string"?D.trim():D}}measureInstanceViewportBox(f,{transformPagePoint:I}){return nn(f,I)}build(f,I,P){Lt(f,I,P.transformTemplate)}scrapeMotionValuesFromProps(f,I,P){return Rt(f,I,P)}}var pp={offset:"stroke-dashoffset",array:"stroke-dasharray"},xp={offset:"strokeDashoffset",array:"strokeDasharray"};function zi(f,I,P=1,D=0,T=!0){f.pathLength=1;let H=T?pp:xp;f[H.offset]=`${-D}`,f[H.array]=`${I} ${P}`}var Ip=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Yr(f,{attrX:I,attrY:P,attrScale:D,pathLength:T,pathSpacing:H=1,pathOffset:L=0,...Z},ge,xe,Fe){if(Lt(f,Z,xe),ge){if(f.style.viewBox)f.attrs.viewBox=f.style.viewBox;return}f.attrs=f.style,f.style={};let{attrs:Be,style:De}=f;if(Be.transform)De.transform=Be.transform,delete Be.transform;if(De.transform||Be.transformOrigin)De.transformOrigin=Be.transformOrigin??"50% 50%",delete Be.transformOrigin;if(De.transform)De.transformBox=Fe?.transformBox??"fill-box",delete Be.transformBox;for(let Me of Ip)if(Be[Me]!==void 0)De[Me]=Be[Me],delete Be[Me];if(I!==void 0)Be.x=I;if(P!==void 0)Be.y=P;if(D!==void 0)Be.scale=D;if(T!==void 0)zi(Be,T,H,L,!1)}var ln=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"]);var Zr=(f)=>typeof f==="string"&&f.toLowerCase()==="svg";function ji(f,I,P,D){sn(f,I,void 0,D);for(let T in I.attrs)f.setAttribute(!ln.has(T)?Qt(T):T,I.attrs[T])}function $r(f,I,P){let D=Rt(f,I,P);for(let T in f)if($e(f[T])||$e(I[T])){let H=qo.indexOf(T)!==-1?"attr"+T.charAt(0).toUpperCase()+T.substring(1):T;D[H]=f[T]}return D}class cn extends Gr{constructor(){super(...arguments);this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eo}getBaseTargetFromProps(f,I){return f[I]}readValueFromInstance(f,I){if(Mo.has(I)){let P=ja(I);return P?P.default||0:0}return I=!ln.has(I)?Qt(I):I,f.getAttribute(I)}scrapeMotionValuesFromProps(f,I,P){return $r(f,I,P)}build(f,I,P){Yr(f,I,this.isSVGTag,P.transformTemplate,P.style)}renderInstance(f,I,P,D){ji(f,I,P,D)}mount(f){this.isSVGTag=Zr(f.tagName),super.mount(f)}}var hp=Hr.length;function Es(f){if(!f)return;if(!f.isControllingVariants){let P=f.parent?Es(f.parent)||{}:{};if(f.props.initial!==void 0)P.initial=f.props.initial;return P}let I={};for(let P=0;P<hp;P++){let D=Hr[P],T=f.props[D];if(Go(T)||T===!1)I[D]=T}return I}function Vs(f,I){if(!Array.isArray(I))return!1;let P=I.length;if(P!==f.length)return!1;for(let D=0;D<P;D++)if(I[D]!==f[D])return!1;return!0}var gp=[...en].reverse(),yp=en.length;function Cp(f){return(I)=>Promise.all(I.map(({animation:P,options:D})=>Ii(f,P,D)))}function Ns(f){let I=Cp(f),P=Ki(),D=!0,T=!1,H=(xe)=>(Fe,Be)=>{let De=Po(f,Be,xe==="exit"?f.presenceContext?.custom:void 0);if(De){let{transition:Me,transitionEnd:Ae,...Oe}=De;Fe={...Fe,...Oe,...Ae}}return Fe};function L(xe){I=xe(f)}function Z(xe){let{props:Fe}=f,Be=Es(f.parent)||{},De=[],Me=new Set,Ae={},Oe=1/0;for(let Ve=0;Ve<yp;Ve++){let Ne=gp[Ve],He=P[Ne],Le=Fe[Ne]!==void 0?Fe[Ne]:Be[Ne],ze=Go(Le),Xe=Ne===xe?He.isActive:null;if(Xe===!1)Oe=Ve;let je=Le===Be[Ne]&&Le!==Fe[Ne]&&ze;if(je&&(D||T)&&f.manuallyAnimateOnMount)je=!1;if(He.protectedKeys={...Ae},!He.isActive&&Xe===null||!Le&&!He.prevProp||Yo(Le)||typeof Le==="boolean")continue;if(Ne==="exit"&&He.isActive&&Xe!==!0){if(He.prevResolvedValues)Ae={...Ae,...He.prevResolvedValues};continue}let Ee=Xi(He.prevProp,Le),Ze=Ee||Ne===xe&&He.isActive&&!je&&ze||Ve>Oe&&ze,Ke=!1,Qe=Array.isArray(Le)?Le:[Le],oo=Qe.reduce(H(Ne),{});if(Xe===!1)oo={};let{prevResolvedValues:Ao={}}=He,Bo={...Ao,...oo},ho=(fo)=>{if(Ze=!0,Me.has(fo))Ke=!0,Me.delete(fo);He.needsAnimating[fo]=!0;let go=f.getValue(fo);if(go)go.liveStyle=!1};for(let fo in Bo){let go=oo[fo],Ge=Ao[fo];if(Ae.hasOwnProperty(fo))continue;let jo=!1;if(Lr(go)&&Lr(Ge))jo=!Vs(go,Ge)||Ee;else jo=go!==Ge;if(jo)if(go!==void 0&&go!==null)ho(fo);else Me.add(fo);else if(go!==void 0&&Me.has(fo))ho(fo);else He.protectedKeys[fo]=!0}if(He.prevProp=Le,He.prevResolvedValues=oo,He.isActive)Ae={...Ae,...oo};if((D||T)&&f.blockInitialAnimation)Ze=!1;let no=je&&Ee;if(Ze&&(!no||Ke))De.push(...Qe.map((fo)=>{let go={type:Ne};if(typeof fo==="string"&&(D||T)&&!no&&f.manuallyAnimateOnMount&&f.parent){let{parent:Ge}=f,jo=Po(Ge,fo);if(Ge.enteringChildren&&jo){let{delayChildren:ta}=jo.transition||{};go.delay=Na(Ge.enteringChildren,f,ta)}}return{animation:fo,options:go}}))}if(Me.size){let Ve={};if(typeof Fe.initial!=="boolean"){let Ne=Po(f,Array.isArray(Fe.initial)?Fe.initial[0]:Fe.initial);if(Ne&&Ne.transition)Ve.transition=Ne.transition}Me.forEach((Ne)=>{let He=f.getBaseTarget(Ne),Le=f.getValue(Ne);if(Le)Le.liveStyle=!0;Ve[Ne]=He??null}),De.push({animation:Ve})}let Re=Boolean(De.length);if(D&&(Fe.initial===!1||Fe.initial===Fe.animate)&&!f.manuallyAnimateOnMount)Re=!1;return D=!1,T=!1,Re?I(De):Promise.resolve()}function ge(xe,Fe){if(P[xe].isActive===Fe)return Promise.resolve();f.variantChildren?.forEach((De)=>De.animationState?.setActive(xe,Fe)),P[xe].isActive=Fe;let Be=Z(xe);for(let De in P)P[De].protectedKeys={};return Be}return{animateChanges:Z,setActive:ge,setAnimateFunction:L,getState:()=>P,reset:()=>{P=Ki(),T=!0}}}function Xi(f,I){if(typeof I==="string")return I!==f;else if(Array.isArray(I))return!Vs(I,f);return!1}function Ot(f=!1){return{isActive:f,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ki(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}function dn(f,I){f.min=I.min,f.max=I.max}function Ro(f,I){dn(f.x,I.x),dn(f.y,I.y)}function Hs(f,I){f.translate=I.translate,f.scale=I.scale,f.originPoint=I.originPoint,f.origin=I.origin}var _i=0.0001,Sp=1-_i,bp=1+_i,Yi=0.01,Fp=0-Yi,vp=0+Yi;function io(f){return f.max-f.min}function Gs(f,I,P){return Math.abs(f-I)<=P}function Us(f,I,P,D=0.5){if(f.origin=D,f.originPoint=_e(I.min,I.max,f.origin),f.scale=io(P)/io(I),f.translate=_e(P.min,P.max,f.origin)-f.originPoint,f.scale>=Sp&&f.scale<=bp||isNaN(f.scale))f.scale=1;if(f.translate>=Fp&&f.translate<=vp||isNaN(f.translate))f.translate=0}function Et(f,I,P,D){Us(f.x,I.x,P.x,D?D.originX:void 0),Us(f.y,I.y,P.y,D?D.originY:void 0)}function Ws(f,I,P,D=0){let T=D?_e(P.min,P.max,D):P.min;f.min=T+I.min,f.max=f.min+io(I)}function zs(f,I,P,D){Ws(f.x,I.x,P.x,D?.x),Ws(f.y,I.y,P.y,D?.y)}function qs(f,I,P,D=0){let T=D?_e(P.min,P.max,D):P.min;f.min=I.min-T,f.max=f.min+io(I)}function rr(f,I,P,D){qs(f.x,I.x,P.x,D?.x),qs(f.y,I.y,P.y,D?.y)}function Zi(f,I,P,D,T){if(f-=I,f=jr(f,1/P,D),T!==void 0)f=jr(f,1/T,D);return f}function Bp(f,I=0,P=1,D=0.5,T,H=f,L=f){if(Co.test(I))I=parseFloat(I),I=_e(L.min,L.max,I/100)-L.min;if(typeof I!=="number")return;let Z=_e(H.min,H.max,D);if(f===H)Z-=I;f.min=Zi(f.min,I,P,Z,T),f.max=Zi(f.max,I,P,Z,T)}function $i(f,I,[P,D,T],H,L){Bp(f,I[P],I[D],I[T],I.scale,H,L)}var wp=["x","scaleX","originX"],Pp=["y","scaleY","originY"];function js(f,I,P,D){$i(f.x,I,wp,P?P.x:void 0,D?D.x:void 0),$i(f.y,I,Pp,P?P.y:void 0,D?D.y:void 0)}function Qi(f){return f.translate===0&&f.scale===1}function Ks(f){return Qi(f.x)&&Qi(f.y)}function Ji(f,I){return f.min===I.min&&f.max===I.max}function oc(f,I){return Ji(f.x,I.x)&&Ji(f.y,I.y)}function ec(f,I){return Math.round(f.min)===Math.round(I.min)&&Math.round(f.max)===Math.round(I.max)}function Xs(f,I){return ec(f.x,I.x)&&ec(f.y,I.y)}function _s(f){return io(f.x)/io(f.y)}function Ys(f,I){return f.translate===I.translate&&f.scale===I.scale&&f.originPoint===I.originPoint}function Do(f){return[f("x"),f("y")]}function tc(f,I,P){let D="",T=f.x.translate/I.x,H=f.y.translate/I.y,L=P?.z||0;if(T||H||L)D=`translate3d(${T}px, ${H}px, ${L}px) `;if(I.x!==1||I.y!==1)D+=`scale(${1/I.x}, ${1/I.y}) `;if(P){let{transformPerspective:xe,rotate:Fe,pathRotation:Be,rotateX:De,rotateY:Me,skewX:Ae,skewY:Oe}=P;if(xe)D=`perspective(${xe}px) ${D}`;if(Fe)D+=`rotate(${Fe}deg) `;if(Be)D+=`rotate(${Be}deg) `;if(De)D+=`rotateX(${De}deg) `;if(Me)D+=`rotateY(${Me}deg) `;if(Ae)D+=`skewX(${Ae}deg) `;if(Oe)D+=`skewY(${Oe}deg) `}let Z=f.x.scale*I.x,ge=f.y.scale*I.y;if(Z!==1||ge!==1)D+=`scale(${Z}, ${ge})`;return D||"none"}var Dp=Vr.length,rc=(f)=>typeof f==="string"?parseFloat(f):f,ac=(f)=>typeof f==="number"||Ue.test(f);function sc(f,I,P,D,T,H){if(T)f.opacity=_e(0,P.opacity??1,Ap(D)),f.opacityExit=_e(I.opacity??1,0,Tp(D));else if(H)f.opacity=_e(I.opacity??1,P.opacity??1,D);for(let L=0;L<Dp;L++){let Z=Vr[L],ge=nc(I,Z),xe=nc(P,Z);if(ge===void 0&&xe===void 0)continue;if(ge||(ge=0),xe||(xe=0),ge===0||xe===0||ac(ge)===ac(xe)){if(f[Z]=Math.max(_e(rc(ge),rc(xe),D),0),Co.test(xe)||Co.test(ge))f[Z]+="%"}else f[Z]=xe}if(I.rotate||P.rotate)f.rotate=_e(I.rotate||0,P.rotate||0,D)}function nc(f,I){return f[I]!==void 0?f[I]:f.borderRadius}var Ap=fc(0,0.5,Sr),Tp=fc(0.5,0.95,to);function fc(f,I,P){return(D)=>{if(D<f)return 0;if(D>I)return 1;return P(Ho(f,I,D))}}function lc(f,I,P){let D=$e(f)?f:Eo(f);return D.start(Pt("",D,I,P)),D.animation}function zo(f,I,P,D={passive:!0}){return f.addEventListener(I,P,D),()=>f.removeEventListener(I,P,D)}var ic=(f,I)=>f.depth-I.depth;class Zs{constructor(){this.children=[],this.isDirty=!1}add(f){Ct(this.children,f),this.isDirty=!0}remove(f){tt(this.children,f),this.isDirty=!0}forEach(f){this.isDirty&&this.children.sort(ic),this.isDirty=!1,this.children.forEach(f)}}function cc(f,I){let P=ro.now(),D=({timestamp:T})=>{let H=T-P;if(H>=I)wo(D),f(H-I)};return h.setup(D,!0),()=>wo(D)}function Vt(f){return $e(f)?f.get():f}class $s{constructor(){this.members=[]}add(f){Ct(this.members,f);for(let I=this.members.length-1;I>=0;I--){let P=this.members[I];if(P===f||P===this.lead||P===this.prevLead)continue;let D=P.instance;if((!D||D.isConnected===!1)&&!P.snapshot)tt(this.members,P),P.unmount()}f.scheduleRender()}remove(f){if(tt(this.members,f),f===this.prevLead)this.prevLead=void 0;if(f===this.lead){let I=this.members[this.members.length-1];if(I)this.promote(I)}}relegate(f){for(let I=this.members.indexOf(f)-1;I>=0;I--){let P=this.members[I];if(P.isPresent!==!1&&P.instance?.isConnected!==!1)return this.promote(P),!0}return!1}promote(f,I){let P=this.lead;if(f===P)return;if(this.prevLead=P,this.lead=f,f.show(),P){P.updateSnapshot(),f.scheduleRender();let{layoutDependency:D}=P.options,{layoutDependency:T}=f.options;if(D===void 0||D!==T){if(f.resumeFrom=P,I)P.preserveOpacity=!0;if(P.snapshot)f.snapshot=P.snapshot,f.snapshot.latestValues=P.animationValues||P.latestValues;if(f.root?.isUpdating)f.isLayoutDirty=!0}if(f.options.crossfade===!1)P.hide()}}exitAnimationComplete(){this.members.forEach((f)=>{f.options.onExitComplete?.(),f.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach((f)=>f.instance&&f.scheduleRender(!1))}removeLeadSnapshot(){if(this.lead?.snapshot)this.lead.snapshot=void 0}}var Nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Ht={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qs=["","X","Y","Z"],Mp=1000,kp=0;function Js(f,I,P,D){let{latestValues:T}=I;if(T[f]){if(P[f]=T[f],I.setStaticValue(f,0),D)D[f]=0}}function yc(f){if(f.hasCheckedOptimisedAppear=!0,f.root===f)return;let{visualElement:I}=f.options;if(!I)return;let P=Wa(I);if(window.MotionHasOptimisedAnimation(P,"transform")){let{layout:T,layoutId:H}=f.options;window.MotionCancelOptimisedAnimation(P,"transform",h,!(T||H))}let{parent:D}=f;if(D&&!D.hasCheckedOptimisedAppear)yc(D)}function un({attachResizeListener:f,defaultParent:I,measureScroll:P,checkIsScrollRoot:D,resetTransform:T}){return class{constructor(L={},Z=I?.()){this.id=kp++,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=()=>{if(this.isUpdating)this.isUpdating=!1,this.clearAllSnapshots()},this.updateProjection=()=>{if(this.projectionUpdateScheduled=!1,kt.value)Ht.nodes=Ht.calculatedTargetDeltas=Ht.calculatedProjections=0;if(this.nodes.forEach(Op),this.nodes.forEach(Wp),this.nodes.forEach(qp),this.nodes.forEach(Ep),kt.addProjectionMetrics)kt.addProjectionMetrics(Ht)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=L,this.root=Z?Z.root||Z:this,this.path=Z?[...Z.path,Z]:[],this.parent=Z,this.depth=Z?Z.depth+1:0;for(let ge=0;ge<this.path.length;ge++)this.path[ge].shouldResetTransform=!0;if(this.root===this)this.nodes=new Zs}addEventListener(L,Z){if(!this.eventHandlers.has(L))this.eventHandlers.set(L,new rt);return this.eventHandlers.get(L).add(Z)}notifyListeners(L,...Z){let ge=this.eventHandlers.get(L);ge&&ge.notify(...Z)}hasListeners(L){return this.eventHandlers.has(L)}mount(L){if(this.instance)return;this.isSVG=er(L)&&!Di(L),this.instance=L;let{layoutId:Z,layout:ge,visualElement:xe}=this.options;if(xe&&!xe.current)xe.mount(L);if(this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(ge||Z))this.isLayoutDirty=!0;if(f){let Fe,Be=0,De=()=>this.root.updateBlockedByResize=!1;h.read(()=>{Be=window.innerWidth}),f(L,()=>{let Me=window.innerWidth;if(Me===Be)return;if(Be=Me,this.root.updateBlockedByResize=!0,Fe&&Fe(),Fe=cc(De,250),Nt.hasAnimatedSinceResize)Nt.hasAnimatedSinceResize=!1,this.nodes.forEach(mc)})}if(Z)this.root.registerSharedNode(Z,this);if(this.options.animate!==!1&&xe&&(Z||ge))this.addEventListener("didUpdate",({delta:Fe,hasLayoutChanged:Be,hasRelativeLayoutChanged:De,layout:Me})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let Ae=this.options.transition||xe.getDefaultTransition()||Xp,{onLayoutAnimationStart:Oe,onLayoutAnimationComplete:Re}=xe.getProps(),Ve=!this.targetLayout||!Xs(this.targetLayout,Me),Ne=!Be&&De;if(this.options.layoutRoot||this.resumeFrom||Ne||Be&&(Ve||!this.currentAnimation)){if(this.resumeFrom)this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0;let He={...Zt(Ae,"layout"),onPlay:Oe,onComplete:Re};if(xe.shouldReduceMotion||this.options.layoutRoot)He.delay=0,He.type=!1;this.startAnimation(He),this.setAnimationOrigin(Fe,Ne,He.path)}else{if(!Be)mc(this);if(this.isLead()&&this.options.onExitComplete)this.options.onExitComplete()}this.targetLayout=Me})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let L=this.getStack();L&&L.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wo(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(){if(this.isUpdateBlocked())return;this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gp),this.animationId++}getTransformTemplate(){let{visualElement:L}=this.options;return L&&L.getProps().transformTemplate}willUpdate(L=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear)yc(this);if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let Fe=0;Fe<this.path.length;Fe++){let Be=this.path[Fe];if(Be.shouldResetTransform=!0,typeof Be.latestValues.x==="string"||typeof Be.latestValues.y==="string")Be.isLayoutDirty=!0;if(Be.updateScroll("snapshot"),Be.options.layoutRoot)Be.willUpdate(!1)}let{layoutId:Z,layout:ge}=this.options;if(Z===void 0&&!ge)return;let xe=this.getTransformTemplate();this.prevTransformTemplateValue=xe?xe(this.latestValues,""):void 0,this.updateSnapshot(),L&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let ge=this.updateBlockedByResize;if(this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),ge)this.nodes.forEach(Np);this.nodes.forEach(dc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uc);return}if(this.animationCommitId=this.animationId,!this.isUpdating)this.nodes.forEach(uc);else this.isUpdating=!1,this.nodes.forEach(Hp),this.nodes.forEach(Up),this.nodes.forEach(Lp),this.nodes.forEach(Rp);this.clearAllSnapshots();let Z=ro.now();so.delta=uo(0,16.666666666666668,Z-so.timestamp),so.timestamp=Z,so.isProcessing=!0,wr.update.process(so),wr.preRender.process(so),wr.render.process(so),so.isProcessing=!1}didUpdate(){if(!this.updateScheduled)this.updateScheduled=!0,Tt.read(this.scheduleUpdate)}clearAllSnapshots(){this.nodes.forEach(Vp),this.sharedNodes.forEach(zp)}scheduleUpdateProjection(){if(!this.projectionUpdateScheduled)this.projectionUpdateScheduled=!0,h.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){h.postRender(()=>{if(this.isLayoutDirty)this.root.didUpdate();else this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;if(this.snapshot=this.measure(),this.snapshot&&!io(this.snapshot.measuredBox.x)&&!io(this.snapshot.measuredBox.y))this.snapshot=void 0}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let ge=0;ge<this.path.length;ge++)this.path[ge].updateScroll();let L=this.layout;if(this.layout=this.measure(!1),this.layoutVersion++,!this.layoutCorrected)this.layoutCorrected=eo();this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:Z}=this.options;Z&&Z.notify("LayoutMeasure",this.layout.layoutBox,L?L.layoutBox:void 0)}updateScroll(L="measure"){let Z=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===L)Z=!1;if(Z&&this.instance){let ge=D(this.instance);this.scroll={animationId:this.root.animationId,phase:L,isRoot:ge,offset:P(this.instance),wasRoot:this.scroll?this.scroll.isRoot:ge}}}resetTransform(){if(!T)return;let L=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,Z=this.projectionDelta&&!Ks(this.projectionDelta),ge=this.getTransformTemplate(),xe=ge?ge(this.latestValues,""):void 0,Fe=xe!==this.prevTransformTemplateValue;if(L&&this.instance&&(Z||Zo(this.latestValues)||Fe))T(this.instance,xe),this.shouldResetTransform=!1,this.scheduleRender()}measure(L=!0){let Z=this.measurePageBox(),ge=this.removeElementScroll(Z);if(L)ge=this.removeTransform(ge);return _p(ge),{animationId:this.root.animationId,measuredBox:Z,layoutBox:ge,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:L}=this.options;if(!L)return eo();let Z=L.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Yp))){let{scroll:xe}=this.root;if(xe)Lo(Z.x,xe.offset.x),Lo(Z.y,xe.offset.y)}return Z}removeElementScroll(L){let Z=eo();if(Ro(Z,L),this.scroll?.wasRoot)return Z;for(let ge=0;ge<this.path.length;ge++){let xe=this.path[ge],{scroll:Fe,options:Be}=xe;if(xe!==this.root&&Fe&&Be.layoutScroll){if(Fe.wasRoot)Ro(Z,L);Lo(Z.x,Fe.offset.x),Lo(Z.y,Fe.offset.y)}}return Z}applyTransform(L,Z=!1,ge){let xe=ge||eo();Ro(xe,L);for(let Fe=0;Fe<this.path.length;Fe++){let Be=this.path[Fe];if(!Z&&Be.options.layoutScroll&&Be.scroll&&Be!==Be.root)Lo(xe.x,-Be.scroll.offset.x),Lo(xe.y,-Be.scroll.offset.y);if(!Zo(Be.latestValues))continue;Kr(xe,Be.latestValues,Be.layout?.layoutBox)}if(Zo(this.latestValues))Kr(xe,this.latestValues,this.layout?.layoutBox);return xe}removeTransform(L){let Z=eo();Ro(Z,L);for(let ge=0;ge<this.path.length;ge++){let xe=this.path[ge];if(!Zo(xe.latestValues))continue;let Fe;if(xe.instance)an(xe.latestValues)&&xe.updateSnapshot(),Fe=eo(),Ro(Fe,xe.measurePageBox());js(Z,xe.latestValues,xe.snapshot?.layoutBox,Fe)}if(Zo(this.latestValues))js(Z,this.latestValues);return Z}setTargetDelta(L){this.targetDelta=L,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(L){this.options={...this.options,...L,crossfade:L.crossfade!==void 0?L.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){if(!this.relativeParent)return;if(this.relativeParent.resolvedRelativeTargetAt!==so.timestamp)this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(L=!1){let Z=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=Z.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=Z.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=Z.isSharedProjectionDirty);let ge=Boolean(this.resumingFrom)||this!==Z;if(!(L||ge&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:Fe,layoutId:Be}=this.options;if(!this.layout||!(Fe||Be))return;this.resolvedRelativeTargetAt=so.timestamp;let De=this.getClosestProjectingParent();if(De&&this.linkedParentVersion!==De.layoutVersion&&!De.options.layoutRoot)this.removeRelativeTarget();if(!this.targetDelta&&!this.relativeTarget)if(this.options.layoutAnchor!==!1&&De&&De.layout)this.createRelativeTarget(De,this.layout.layoutBox,De.layout.layoutBox);else this.removeRelativeTarget();if(!this.relativeTarget&&!this.targetDelta)return;if(!this.target)this.target=eo(),this.targetWithTransforms=eo();if(this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)this.forceRelativeParentToResolveTarget(),zs(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0);else if(this.targetDelta){if(Boolean(this.resumingFrom))this.applyTransform(this.layout.layoutBox,!1,this.target);else Ro(this.target,this.layout.layoutBox);Rs(this.target,this.targetDelta)}else Ro(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget)if(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&De&&Boolean(De.resumingFrom)===Boolean(this.resumingFrom)&&!De.options.layoutScroll&&De.target&&this.animationProgress!==1)this.createRelativeTarget(De,this.target,De.target);else this.relativeParent=this.relativeTarget=void 0;if(kt.value)Ht.calculatedTargetDeltas++}getClosestProjectingParent(){if(!this.parent||an(this.parent.latestValues)||ks(this.parent.latestValues))return;if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(L,Z,ge){this.relativeParent=L,this.linkedParentVersion=L.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eo(),this.relativeTargetOrigin=eo(),rr(this.relativeTargetOrigin,Z,ge,this.options.layoutAnchor||void 0),Ro(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let L=this.getLead(),Z=Boolean(this.resumingFrom)||this!==L,ge=!0;if(this.isProjectionDirty||this.parent?.isProjectionDirty)ge=!1;if(Z&&(this.isSharedProjectionDirty||this.isTransformDirty))ge=!1;if(this.resolvedRelativeTargetAt===so.timestamp)ge=!1;if(ge)return;let{layout:xe,layoutId:Fe}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),!this.isTreeAnimating)this.targetDelta=this.relativeTarget=void 0;if(!this.layout||!(xe||Fe))return;Ro(this.layoutCorrected,this.layout.layoutBox);let Be=this.treeScale.x,De=this.treeScale.y;if(Ui(this.layoutCorrected,this.treeScale,this.path,Z),L.layout&&!L.target&&(this.treeScale.x!==1||this.treeScale.y!==1))L.target=L.layout.layoutBox,L.targetWithTransforms=eo();let{target:Me}=L;if(!Me){if(this.prevProjectionDelta)this.createProjectionDeltas(),this.scheduleRender();return}if(!this.projectionDelta||!this.prevProjectionDelta)this.createProjectionDeltas();else Hs(this.prevProjectionDelta.x,this.projectionDelta.x),Hs(this.prevProjectionDelta.y,this.projectionDelta.y);if(Et(this.projectionDelta,this.layoutCorrected,Me,this.latestValues),this.treeScale.x!==Be||this.treeScale.y!==De||!Ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ys(this.projectionDelta.y,this.prevProjectionDelta.y))this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",Me);if(kt.value)Ht.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(L=!0){if(this.options.visualElement?.scheduleRender(),L){let Z=this.getStack();Z&&Z.scheduleRender()}if(this.resumingFrom&&!this.resumingFrom.instance)this.resumingFrom=void 0}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(L,Z=!1,ge){let xe=this.snapshot,Fe=xe?xe.latestValues:{},Be={...this.latestValues},De=ct();if(!this.relativeParent||!this.relativeParent.options.layoutRoot)this.relativeTarget=this.relativeTargetOrigin=void 0;this.attemptToResolveRelativeTarget=!Z;let Me=eo(),Ae=xe?xe.source:void 0,Oe=this.layout?this.layout.source:void 0,Re=Ae!==Oe,Ve=this.getStack(),Ne=!Ve||Ve.members.length<=1,He=Boolean(Re&&!Ne&&this.options.crossfade===!0&&!this.path.some(Kp));this.animationProgress=0;let Le,ze=ge?.interpolateProjection(L);this.mixTargetDelta=(Xe)=>{let je=Xe/1000,Ee=ze?.(je);if(Ee)De.x.translate=Ee.x,De.x.scale=_e(L.x.scale,1,je),De.x.origin=L.x.origin,De.x.originPoint=L.x.originPoint,De.y.translate=Ee.y,De.y.scale=_e(L.y.scale,1,je),De.y.origin=L.y.origin,De.y.originPoint=L.y.originPoint;else pc(De.x,L.x,je),pc(De.y,L.y,je);if(this.setTargetDelta(De),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){if(rr(Me,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),jp(this.relativeTarget,this.relativeTargetOrigin,Me,je),Le&&oc(this.relativeTarget,Le))this.isProjectionDirty=!1;if(!Le)Le=eo();Ro(Le,this.relativeTarget)}if(Re)this.animationValues=Be,sc(Be,Fe,this.latestValues,je,He,Ne);if(Ee&&Ee.rotate!==void 0){if(!this.animationValues)this.animationValues=Be;this.animationValues.pathRotation=Ee.rotate}this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=je},this.mixTargetDelta(this.options.layoutRoot?1000:0)}startAnimation(L){if(this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation)wo(this.pendingAnimation),this.pendingAnimation=void 0;this.pendingAnimation=h.update(()=>{if(Nt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Eo(0)),this.motionValue.jump(0,!1),this.currentAnimation=lc(this.motionValue,[0,1000],{...L,velocity:0,isSync:!0,onUpdate:(Z)=>{this.mixTargetDelta(Z),L.onUpdate&&L.onUpdate(Z)},onComplete:()=>{L.onComplete&&L.onComplete(),this.completeAnimation()}}),this.resumingFrom)this.resumingFrom.currentAnimation=this.currentAnimation;this.pendingAnimation=void 0})}completeAnimation(){if(this.resumingFrom)this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0;let L=this.getStack();L&&L.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation)this.mixTargetDelta&&this.mixTargetDelta(Mp),this.currentAnimation.stop();this.completeAnimation()}applyTransformsToTarget(){let L=this.getLead(),{targetWithTransforms:Z,target:ge,layout:xe,latestValues:Fe}=L;if(!Z||!ge||!xe)return;if(this!==L&&this.layout&&xe&&Cc(this.options.animationType,this.layout.layoutBox,xe.layoutBox)){ge=this.target||eo();let Be=io(this.layout.layoutBox.x);ge.x.min=L.target.x.min,ge.x.max=ge.x.min+Be;let De=io(this.layout.layoutBox.y);ge.y.min=L.target.y.min,ge.y.max=ge.y.min+De}Ro(Z,ge),Kr(Z,Fe),Et(this.projectionDeltaWithTransform,this.layoutCorrected,Z,Fe)}registerSharedNode(L,Z){if(!this.sharedNodes.has(L))this.sharedNodes.set(L,new $s);this.sharedNodes.get(L).add(Z);let xe=Z.options.initialPromotionConfig;Z.promote({transition:xe?xe.transition:void 0,preserveFollowOpacity:xe&&xe.shouldPreserveFollowOpacity?xe.shouldPreserveFollowOpacity(Z):void 0})}isLead(){let L=this.getStack();return L?L.lead===this:!0}getLead(){let{layoutId:L}=this.options;return L?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:L}=this.options;return L?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:L}=this.options;if(L)return this.root.sharedNodes.get(L)}promote({needsReset:L,transition:Z,preserveFollowOpacity:ge}={}){let xe=this.getStack();if(xe)xe.promote(this,ge);if(L)this.projectionDelta=void 0,this.needsReset=!0;if(Z)this.setOptions({transition:Z})}relegate(){let L=this.getStack();if(L)return L.relegate(this);else return!1}resetSkewAndRotation(){let{visualElement:L}=this.options;if(!L)return;let Z=!1,{latestValues:ge}=L;if(ge.z||ge.rotate||ge.rotateX||ge.rotateY||ge.rotateZ||ge.skewX||ge.skewY)Z=!0;if(!Z)return;let xe={};if(ge.z)Js("z",L,xe,this.animationValues);for(let Fe=0;Fe<Qs.length;Fe++)Js(`rotate${Qs[Fe]}`,L,xe,this.animationValues),Js(`skew${Qs[Fe]}`,L,xe,this.animationValues);L.render();for(let Fe in xe)if(L.setStaticValue(Fe,xe[Fe]),this.animationValues)this.animationValues[Fe]=xe[Fe];L.scheduleRender()}applyProjectionStyles(L,Z){if(!this.instance||this.isSVG)return;if(!this.isVisible){L.visibility="hidden";return}let ge=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,L.visibility="",L.opacity="",L.pointerEvents=Vt(Z?.pointerEvents)||"",L.transform=ge?ge(this.latestValues,""):"none";return}let xe=this.getLead();if(!this.projectionDelta||!this.layout||!xe.target){if(this.options.layoutId)L.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,L.pointerEvents=Vt(Z?.pointerEvents)||"";if(this.hasProjected&&!Zo(this.latestValues))L.transform=ge?ge({},""):"none",this.hasProjected=!1;return}L.visibility="";let Fe=xe.animationValues||xe.latestValues;this.applyTransformsToTarget();let Be=tc(this.projectionDeltaWithTransform,this.treeScale,Fe);if(ge)Be=ge(Fe,Be);L.transform=Be;let{x:De,y:Me}=this.projectionDelta;if(L.transformOrigin=`${De.origin*100}% ${Me.origin*100}% 0`,xe.animationValues)L.opacity=xe===this?Fe.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:Fe.opacityExit;else L.opacity=xe===this?Fe.opacity!==void 0?Fe.opacity:"":Fe.opacityExit!==void 0?Fe.opacityExit:0;for(let Ae in Xr){if(Fe[Ae]===void 0)continue;let{correct:Oe,applyTo:Re,isCSSVariable:Ve}=Xr[Ae],Ne=Be==="none"?Fe[Ae]:Oe(Fe[Ae],xe);if(Re){let He=Re.length;for(let Le=0;Le<He;Le++)L[Re[Le]]=Ne}else if(Ve)this.options.visualElement.renderState.vars[Ae]=Ne;else L[Ae]=Ne}if(this.options.layoutId)L.pointerEvents=xe===this?Vt(Z?.pointerEvents)||"":"none"}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((L)=>L.currentAnimation?.stop()),this.root.nodes.forEach(dc),this.root.sharedNodes.clear()}}}function Lp(f){f.updateLayout()}function Rp(f){let I=f.resumeFrom?.snapshot||f.snapshot;if(f.isLead()&&f.layout&&I&&f.hasListeners("didUpdate")){let{layoutBox:P,measuredBox:D}=f.layout,{animationType:T}=f.options,H=I.source!==f.layout.source;if(T==="size")Do((Fe)=>{let Be=H?I.measuredBox[Fe]:I.layoutBox[Fe],De=io(Be);Be.min=P[Fe].min,Be.max=Be.min+De});else if(T==="x"||T==="y"){let Fe=T==="x"?"y":"x";dn(H?I.measuredBox[Fe]:I.layoutBox[Fe],P[Fe])}else if(Cc(T,I.layoutBox,P))Do((Fe)=>{let Be=H?I.measuredBox[Fe]:I.layoutBox[Fe],De=io(P[Fe]);if(Be.max=Be.min+De,f.relativeTarget&&!f.currentAnimation)f.isProjectionDirty=!0,f.relativeTarget[Fe].max=f.relativeTarget[Fe].min+De});let L=ct();Et(L,P,I.layoutBox);let Z=ct();if(H)Et(Z,f.applyTransform(D,!0),I.measuredBox);else Et(Z,P,I.layoutBox);let ge=!Ks(L),xe=!1;if(!f.resumeFrom){let Fe=f.getClosestProjectingParent();if(Fe&&!Fe.resumeFrom){let{snapshot:Be,layout:De}=Fe;if(Be&&De){let Me=f.options.layoutAnchor||void 0,Ae=eo();rr(Ae,I.layoutBox,Be.layoutBox,Me);let Oe=eo();if(rr(Oe,P,De.layoutBox,Me),!Xs(Ae,Oe))xe=!0;if(Fe.options.layoutRoot)f.relativeTarget=Oe,f.relativeTargetOrigin=Ae,f.relativeParent=Fe}}}f.notifyListeners("didUpdate",{layout:P,snapshot:I,delta:Z,layoutDelta:L,hasLayoutChanged:ge,hasRelativeLayoutChanged:xe})}else if(f.isLead()){let{onExitComplete:P}=f.options;P&&P()}f.options.transition=void 0}function Op(f){if(kt.value)Ht.nodes++;if(!f.parent)return;if(!f.isProjecting())f.isProjectionDirty=f.parent.isProjectionDirty;f.isSharedProjectionDirty||(f.isSharedProjectionDirty=Boolean(f.isProjectionDirty||f.parent.isProjectionDirty||f.parent.isSharedProjectionDirty)),f.isTransformDirty||(f.isTransformDirty=f.parent.isTransformDirty)}function Ep(f){f.isProjectionDirty=f.isSharedProjectionDirty=f.isTransformDirty=!1}function Vp(f){f.clearSnapshot()}function dc(f){f.clearMeasurements()}function Np(f){f.isLayoutDirty=!0,f.updateLayout()}function uc(f){f.isLayoutDirty=!1}function Hp(f){if(f.isAnimationBlocked&&f.layout&&!f.isLayoutDirty)f.snapshot=f.layout,f.isLayoutDirty=!0}function Up(f){let{visualElement:I}=f.options;if(I&&I.getProps().onBeforeLayoutMeasure)I.notify("BeforeLayoutMeasure");f.resetTransform()}function mc(f){f.finishAnimation(),f.targetDelta=f.relativeTarget=f.target=void 0,f.isProjectionDirty=!0}function Wp(f){f.resolveTargetDelta()}function qp(f){f.calcProjection()}function Gp(f){f.resetSkewAndRotation()}function zp(f){f.removeLeadSnapshot()}function pc(f,I,P){f.translate=_e(I.translate,0,P),f.scale=_e(I.scale,1,P),f.origin=I.origin,f.originPoint=I.originPoint}function xc(f,I,P,D){f.min=_e(I.min,P.min,D),f.max=_e(I.max,P.max,D)}function jp(f,I,P,D){xc(f.x,I.x,P.x,D),xc(f.y,I.y,P.y,D)}function Kp(f){return f.animationValues&&f.animationValues.opacityExit!==void 0}var Xp={duration:0.45,ease:[0.4,0,0.1,1]},Ic=(f)=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(f),hc=Ic("applewebkit/")&&!Ic("chrome/")?Math.round:to;function gc(f){f.min=hc(f.min),f.max=hc(f.max)}function _p(f){gc(f.x),gc(f.y)}function Cc(f,I,P){return f==="position"||f==="preserve-aspect"&&!Gs(_s(I),_s(P),0.2)}function Yp(f){return f!==f.root&&f.scroll?.wasRoot}var Sc=un({attachResizeListener:(f,I)=>zo(f,"resize",I),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var mn={current:void 0},Qr=un({measureScroll:(f)=>({x:f.scrollLeft,y:f.scrollTop}),defaultParent:()=>{if(!mn.current){let f=new Sc({});f.mount(window),f.setOptions({layoutScroll:!0}),mn.current=f}return mn.current},resetTransform:(f,I)=>{f.style.transform=I!==void 0?I:"none"},checkIsScrollRoot:(f)=>Boolean(window.getComputedStyle(f).position==="fixed")});var bc=e(t(),1),re=bc.createContext({transformPagePoint:(f)=>f,isStatic:!1,reducedMotion:"never"});var ut=e(t(),1);function he(f=!0){let I=ut.useContext(q);if(I===null)return[!0,null];let{isPresent:P,onExitComplete:D,register:T}=I,H=ut.useId();ut.useEffect(()=>{if(f)return T(H)},[f]);let L=ut.useCallback(()=>f&&D&&D(H),[H,D,f]);return!P&&D?[!1,L]:[!0]}var Fc=e(t(),1),pn=Fc.createContext({strict:!1});var vc={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"]},Bc=!1;function Zp(){if(Bc)return;let f={};for(let I in vc)f[I]={isEnabled:(P)=>vc[I].some((D)=>!!P[D])};qr(f),Bc=!0}function xn(){return Zp(),Ds()}function wc(f){let I=xn();for(let P in f)I[P]={...I[P],...f[P]};qr(I)}var $p=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"]);function Jr(f){return f.startsWith("while")||f.startsWith("drag")&&f!=="draggable"||f.startsWith("layout")||f.startsWith("onTap")||f.startsWith("onPan")||f.startsWith("onLayout")||$p.has(f)}var Pc=(f)=>!Jr(f);function Qp(f){if(typeof f!=="function")return;Pc=(I)=>I.startsWith("on")?!Jr(I):f(I)}try{let f="@emotion/is-prop-valid";Qp(Ie(f).default)}catch{}function Dc(f,I,P){let D={};for(let T in f){if(T==="values"&&typeof f.values==="object")continue;if($e(f[T]))continue;if(Pc(T)||P===!0&&Jr(T)||!I&&!Jr(T)||f.draggable&&T.startsWith("onDrag"))D[T]=f[T]}return D}var Cn=e(r(),1);var fr=e(t(),1);var Ac=e(t(),1),mt=Ac.createContext({});var In=e(t(),1);function Tc(f,I){if(dt(f)){let{initial:P,animate:D}=f;return{initial:P===!1||Go(P)?P:void 0,animate:Go(D)?D:void 0}}return f.inherit!==!1?I:{}}function kc(f){let{initial:I,animate:P}=Tc(f,In.useContext(mt));return In.useMemo(()=>({initial:I,animate:P}),[Mc(I),Mc(P)])}function Mc(f){return Array.isArray(f)?f.join(" "):f}var sr=e(t(),1);var Lc=e(t(),1);var ar=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ef(f,I,P){for(let D in I)if(!$e(I[D])&&!_r(D,P))f[D]=I[D]}function Jp({transformTemplate:f},I){return Lc.useMemo(()=>{let P=ar();return Lt(P,I,f),Object.assign({},P.vars,P.style)},[I])}function ex(f,I){let P=f.style||{},D={};return ef(D,P,f),Object.assign(D,Jp(f,I)),D}function Rc(f,I){let P={},D=ex(f,I);if(f.drag&&f.dragListener!==!1)P.draggable=!1,D.userSelect=D.WebkitUserSelect=D.WebkitTouchCallout="none",D.touchAction=f.drag===!0?"none":`pan-${f.drag==="x"?"y":"x"}`;if(f.tabIndex===void 0&&(f.onTap||f.onTapStart||f.whileTap))P.tabIndex=0;return P.style=D,P}var Oc=e(t(),1);var hn=()=>({...ar(),attrs:{}});function Ec(f,I,P,D){let T=Oc.useMemo(()=>{let H=hn();return Yr(H,I,Zr(D),f.transformTemplate,f.style),{...H.attrs,style:{...H.style}}},[I]);if(f.style){let H={};ef(H,f.style,f),T.style={...H,...T.style}}return T}var Vc=["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 nr(f){if(typeof f!=="string"||f.includes("-"))return!1;else if(Vc.indexOf(f)>-1||/[A-Z]/u.test(f))return!0;return!1}function Nc(f,I,P,{latestValues:D},T,H=!1,L){let ge=(L??nr(f)?Ec:Rc)(I,D,T,f),xe=Dc(I,typeof f==="string",H),Fe=f!==sr.Fragment?{...xe,...ge,ref:P}:{},{children:Be}=I,De=sr.useMemo(()=>$e(Be)?Be.get():Be,[Be]);return sr.createElement(f,{...Fe,children:De})}var of=e(t(),1);function ox({scrapeMotionValuesFromProps:f,createRenderState:I},P,D,T){return{latestValues:tx(P,D,T,f),renderState:I()}}function tx(f,I,P,D){let T={},H=D(f,{});for(let De in H)T[De]=Vt(H[De]);let{initial:L,animate:Z}=f,ge=dt(f),xe=Ur(f);if(I&&xe&&!ge&&f.inherit!==!1){if(L===void 0)L=I.initial;if(Z===void 0)Z=I.animate}let Fe=P?P.initial===!1:!1;Fe=Fe||L===!1;let Be=Fe?Z:L;if(Be&&typeof Be!=="boolean"&&!Yo(Be)){let De=Array.isArray(Be)?Be:[Be];for(let Me=0;Me<De.length;Me++){let Ae=Dt(f,De[Me]);if(Ae){let{transitionEnd:Oe,transition:Re,...Ve}=Ae;for(let Ne in Ve){let He=Ve[Ne];if(Array.isArray(He)){let Le=Fe?He.length-1:0;He=He[Le]}if(He!==null)T[Ne]=He}for(let Ne in Oe)T[Ne]=Oe[Ne]}}}return T}var gn=(f)=>(I,P)=>{let D=of.useContext(mt),T=of.useContext(q),H=()=>ox(f,I,D,T);return P?H():te(H)};var Hc=gn({scrapeMotionValuesFromProps:Rt,createRenderState:ar});var Uc=gn({scrapeMotionValuesFromProps:$r,createRenderState:hn});var Wc=Symbol.for("motionComponentSymbol");var Ut=e(t(),1);function qc(f,I,P){let D=Ut.useRef(P);Ut.useInsertionEffect(()=>{D.current=P});let T=Ut.useRef(null);return Ut.useCallback((H)=>{if(H)f.onMount?.(H);if(I)H?I.mount(H):I.unmount();let L=D.current;if(typeof L==="function")if(H){let Z=L(H);if(typeof Z==="function")T.current=Z}else if(T.current)T.current(),T.current=null;else L(H);else if(L)L.current=H},[I])}var vo=e(t(),1);var Gc=e(t(),1),yn=Gc.createContext({});function pt(f){return f&&typeof f==="object"&&Object.prototype.hasOwnProperty.call(f,"current")}function zc(f,I,P,D,T,H){let{visualElement:L}=vo.useContext(mt),Z=vo.useContext(pn),ge=vo.useContext(q),xe=vo.useContext(re),{reducedMotion:Fe,skipAnimations:Be}=xe,De=vo.useRef(null),Me=vo.useRef(!1);if(D=D||Z.renderer,!De.current&&D){if(De.current=D(f,{visualState:I,parent:L,props:P,presenceContext:ge,blockInitialAnimation:ge?ge.initial===!1:!1,reducedMotionConfig:Fe,skipAnimations:Be,isSVG:H}),Me.current&&De.current)De.current.manuallyAnimateOnMount=!0}let Ae=De.current,Oe=vo.useContext(yn);if(Ae&&!Ae.projection&&T&&(Ae.type==="html"||Ae.type==="svg"))rx(De.current,P,T,Oe);let Re=vo.useRef(!1);vo.useInsertionEffect(()=>{if(Ae&&Re.current)Ae.update(P,ge)});let Ve=P[Rr],Ne=vo.useRef(Boolean(Ve)&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(Ve)&&window.MotionHasOptimisedAnimation?.(Ve));return K(()=>{if(Me.current=!0,!Ae)return;if(Re.current=!0,window.MotionIsMounted=!0,Ae.updateFeatures(),Ae.scheduleRenderMicrotask(),Ne.current&&Ae.animationState)Ae.animationState.animateChanges()}),vo.useEffect(()=>{if(!Ae)return;if(!Ne.current&&Ae.animationState)Ae.animationState.animateChanges();if(Ne.current)queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Ve)}),Ne.current=!1;Ae.enteringChildren=void 0}),Ae}function rx(f,I,P,D){let{layoutId:T,layout:H,drag:L,dragConstraints:Z,layoutScroll:ge,layoutRoot:xe,layoutAnchor:Fe,layoutCrossfade:Be}=I;f.projection=new P(f.latestValues,I["data-framer-portal-id"]?void 0:jc(f.parent)),f.projection.setOptions({layoutId:T,layout:H,alwaysMeasureLayout:Boolean(L)||Z&&pt(Z),visualElement:f,animationType:typeof H==="string"?H:"both",initialPromotionConfig:D,crossfade:Be,layoutScroll:ge,layoutRoot:xe,layoutAnchor:Fe})}function jc(f){if(!f)return;return f.options.allowProjection!==!1?f.projection:jc(f.parent)}function Sn(f,{forwardMotionProps:I=!1,type:P}={},D,T){D&&wc(D);let H=P?P==="svg":nr(f),L=H?Uc:Hc;function Z(xe,Fe){let Be,De={...fr.useContext(re),...xe,layoutId:ax(xe)},{isStatic:Me}=De,Ae=kc(xe),Oe=L(xe,Me);if(!Me&&typeof window<"u"){nx(De,D);let Re=sx(De);Be=Re.MeasureLayout,Ae.visualElement=zc(f,Oe,De,T,Re.ProjectionNode,H)}return Cn.jsxs(mt.Provider,{value:Ae,children:[Be&&Ae.visualElement?Cn.jsx(Be,{visualElement:Ae.visualElement,...De}):null,Nc(f,xe,qc(Oe,Ae.visualElement,Fe),Oe,Me,I,H)]})}Z.displayName=`motion.${typeof f==="string"?f:`create(${f.displayName??f.name??""})`}`;let ge=fr.forwardRef(Z);return ge[Wc]=f,ge}function ax({layoutId:f}){let I=fr.useContext(V).id;return I&&f!==void 0?I+"-"+f:f}function nx(f,I){let P=fr.useContext(pn).strict}function sx(f){let I=xn(),{drag:P,layout:D}=I;if(!P&&!D)return{};let T={...P,...D};return{MeasureLayout:P?.isEnabled(f)||D?.isEnabled(f)?T.MeasureLayout:void 0,ProjectionNode:T.ProjectionNode}}function Kc(f,I){if(typeof Proxy>"u")return Sn;let P=new Map,D=(H,L)=>Sn(H,L,f,I);return new Proxy((H,L)=>D(H,L),{get:(H,L)=>{if(L==="create")return D;if(!P.has(L))P.set(L,Sn(L,void 0,f,I));return P.get(L)}})}var Xc=e(t(),1);var _c=(f,I)=>I.isSVG??nr(f)?new cn(I):new fn(I,{allowProjection:f!==Xc.Fragment});class tf extends Io{constructor(f){super(f);f.animationState||(f.animationState=Ns(f))}updateAnimationControlsSubscription(){let{animate:f}=this.node.getProps();if(Yo(f))this.unmountControls=f.subscribe(this.node)}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:f}=this.node.getProps(),{animate:I}=this.node.prevProps||{};if(f!==I)this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var fx=0;class rf extends Io{constructor(){super(...arguments);this.id=fx++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:f,onExitComplete:I}=this.node.presenceContext,{isPresent:P}=this.node.prevPresenceContext||{};if(!this.node.animationState||f===P)return;if(f&&P===!1){if(this.isExitComplete){let{initial:T,custom:H}=this.node.getProps();if(typeof T==="string"||typeof T==="object"&&T!==null&&!Array.isArray(T)){let L=Po(this.node,T,H);if(L){let{transition:Z,transitionEnd:ge,...xe}=L;for(let Fe in xe)this.node.getValue(Fe)?.jump(xe[Fe])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let D=this.node.animationState.setActive("exit",!f);if(I&&!f)D.then(()=>{this.isExitComplete=!0,I(this.id)})}mount(){let{register:f,onExitComplete:I}=this.node.presenceContext||{};if(I)I(this.id);if(f)this.unmount=f(this.id)}unmount(){}}var Yc={animation:{Feature:tf},exit:{Feature:rf}};function $o(f){return{point:{x:f.pageX,y:f.pageY}}}var Zc=(f)=>(I)=>Mt(I)&&f(I,$o(I));function xt(f,I,P,D){return zo(f,I,Zc(P),D)}var bn=({current:f})=>f?f.ownerDocument.defaultView:null;var $c=(f,I)=>Math.abs(f-I);function Qc(f,I){let P=$c(f.x,I.x),D=$c(f.y,I.y);return Math.sqrt(P**2+D**2)}var Jc=new Set(["auto","scroll"]);class ea{constructor(f,I,{transformPagePoint:P,contextWindow:D=window,dragSnapToOrigin:T=!1,distanceThreshold:H=3,element:L}={}){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=(Me)=>{this.handleScroll(Me.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;if(this.lastRawMoveEventInfo)this.lastMoveEventInfo=Fn(this.lastRawMoveEventInfo,this.transformPagePoint);let Me=af(this.lastMoveEventInfo,this.history),Ae=this.startEvent!==null,Oe=Qc(Me.offset,{x:0,y:0})>=this.distanceThreshold;if(!Ae&&!Oe)return;let{point:Re}=Me,{timestamp:Ve}=so;this.history.push({...Re,timestamp:Ve});let{onStart:Ne,onMove:He}=this.handlers;if(!Ae)Ne&&Ne(this.lastMoveEvent,Me),this.startEvent=this.lastMoveEvent;He&&He(this.lastMoveEvent,Me)},this.handlePointerMove=(Me,Ae)=>{this.lastMoveEvent=Me,this.lastRawMoveEventInfo=Ae,this.lastMoveEventInfo=Fn(Ae,this.transformPagePoint),h.update(this.updatePoint,!0)},this.handlePointerUp=(Me,Ae)=>{this.end();let{onEnd:Oe,onSessionEnd:Re,resumeAnimation:Ve}=this.handlers;if(this.dragSnapToOrigin||!this.startEvent)Ve&&Ve();if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let Ne=af(Me.type==="pointercancel"?this.lastMoveEventInfo:Fn(Ae,this.transformPagePoint),this.history);if(this.startEvent&&Oe)Oe(Me,Ne);Re&&Re(Me,Ne)},!Mt(f))return;this.dragSnapToOrigin=T,this.handlers=I,this.transformPagePoint=P,this.distanceThreshold=H,this.contextWindow=D||window;let Z=$o(f),ge=Fn(Z,this.transformPagePoint),{point:xe}=ge,{timestamp:Fe}=so;this.history=[{...xe,timestamp:Fe}];let{onSessionStart:Be}=I;Be&&Be(f,af(ge,this.history));let De={passive:!0,capture:!0};if(this.removeListeners=Oo(xt(this.contextWindow,"pointermove",this.handlePointerMove,De),xt(this.contextWindow,"pointerup",this.handlePointerUp,De),xt(this.contextWindow,"pointercancel",this.handlePointerUp,De)),L)this.startScrollTracking(L)}startScrollTracking(f){let I=f.parentElement;while(I){let P=getComputedStyle(I);if(Jc.has(P.overflowX)||Jc.has(P.overflowY))this.scrollPositions.set(I,{x:I.scrollLeft,y:I.scrollTop});I=I.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(f){let I=this.scrollPositions.get(f);if(!I)return;let P=f===window,D=P?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop},T={x:D.x-I.x,y:D.y-I.y};if(T.x===0&&T.y===0)return;if(P){if(this.lastMoveEventInfo)this.lastMoveEventInfo.point.x+=T.x,this.lastMoveEventInfo.point.y+=T.y}else if(this.history.length>0)this.history[0].x-=T.x,this.history[0].y-=T.y;this.scrollPositions.set(f,D),h.update(this.updatePoint,!0)}updateHandlers(f){this.handlers=f}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wo(this.updatePoint)}}function Fn(f,I){return I?{point:I(f.point)}:f}function ed(f,I){return{x:f.x-I.x,y:f.y-I.y}}function af({point:f},I){return{point:f,delta:ed(f,od(I)),offset:ed(f,lx(I)),velocity:ix(I,0.1)}}function lx(f){return f[0]}function od(f){return f[f.length-1]}function ix(f,I){if(f.length<2)return{x:0,y:0};let P=f.length-1,D=null,T=od(f);while(P>=0){if(D=f[P],T.timestamp-D.timestamp>lo(I))break;P--}if(!D)return{x:0,y:0};if(D===f[0]&&f.length>2&&T.timestamp-D.timestamp>lo(I)*2)D=f[1];let H=xo(T.timestamp-D.timestamp);if(H===0)return{x:0,y:0};let L={x:(T.x-D.x)/H,y:(T.y-D.y)/H};if(L.x===1/0)L.x=0;if(L.y===1/0)L.y=0;return L}function sd(f,{min:I,max:P},D){if(I!==void 0&&f<I)f=D?_e(I,f,D.min):Math.max(f,I);else if(P!==void 0&&f>P)f=D?_e(P,f,D.max):Math.min(f,P);return f}function td(f,I,P){return{min:I!==void 0?f.min+I:void 0,max:P!==void 0?f.max+P-(f.max-f.min):void 0}}function fd(f,{top:I,left:P,bottom:D,right:T}){return{x:td(f.x,P,T),y:td(f.y,I,D)}}function rd(f,I){let P=I.min-f.min,D=I.max-f.max;if(I.max-I.min<f.max-f.min)[P,D]=[D,P];return{min:P,max:D}}function ld(f,I){return{x:rd(f.x,I.x),y:rd(f.y,I.y)}}function id(f,I){let P=0.5,D=io(f),T=io(I);if(T>D)P=Ho(I.min,I.max-D,f.min);else if(D>T)P=Ho(f.min,f.max-T,I.min);return uo(0,1,P)}function cd(f,I){let P={};if(I.min!==void 0)P.min=I.min-f.min;if(I.max!==void 0)P.max=I.max-f.min;return P}var vn=0.35;function dd(f=vn){if(f===!1)f=0;else if(f===!0)f=vn;return{x:ad(f,"left","right"),y:ad(f,"top","bottom")}}function ad(f,I,P){return{min:nd(f,I),max:nd(f,P)}}function nd(f,I){return typeof f==="number"?f:f[I]||0}var cx=new WeakMap;class nf{constructor(f){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eo(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=f}start(f,{snapToCursor:I=!1,distanceThreshold:P}={}){let{presenceContext:D}=this.visualElement;if(D&&D.isPresent===!1)return;let T=(Fe)=>{if(I)this.snapToCursor($o(Fe).point);this.stopAnimation()},H=(Fe,Be)=>{let{drag:De,dragPropagation:Me,onDragStart:Ae}=this.getProps();if(De&&!Me){if(this.openDragLock)this.openDragLock();if(this.openDragLock=ys(De),!this.openDragLock)return}if(this.latestPointerEvent=Fe,this.latestPanInfo=Be,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection)this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0;if(Do((Re)=>{let Ve=this.getAxisMotionValue(Re).get()||0;if(Co.test(Ve)){let{projection:Ne}=this.visualElement;if(Ne&&Ne.layout){let He=Ne.layout.layoutBox[Re];if(He)Ve=io(He)*(parseFloat(Ve)/100)}}this.originPoint[Re]=Ve}),Ae)h.update(()=>Ae(Fe,Be),!1,!0);$t(this.visualElement,"transform");let{animationState:Oe}=this.visualElement;Oe&&Oe.setActive("whileDrag",!0)},L=(Fe,Be)=>{this.latestPointerEvent=Fe,this.latestPanInfo=Be;let{dragPropagation:De,dragDirectionLock:Me,onDirectionLock:Ae,onDrag:Oe}=this.getProps();if(!De&&!this.openDragLock)return;let{offset:Re}=Be;if(Me&&this.currentDirection===null){if(this.currentDirection=ux(Re),this.currentDirection!==null)Ae&&Ae(this.currentDirection);return}if(this.updateAxis("x",Be.point,Re),this.updateAxis("y",Be.point,Re),this.visualElement.render(),Oe)h.update(()=>Oe(Fe,Be),!1,!0)},Z=(Fe,Be)=>{this.latestPointerEvent=Fe,this.latestPanInfo=Be,this.stop(Fe,Be),this.latestPointerEvent=null,this.latestPanInfo=null},ge=()=>{let{dragSnapToOrigin:Fe}=this.getProps();if(Fe||this.constraints)this.startAnimation({x:0,y:0})},{dragSnapToOrigin:xe}=this.getProps();this.panSession=new ea(f,{onSessionStart:T,onStart:H,onMove:L,onSessionEnd:Z,resumeAnimation:ge},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:xe,distanceThreshold:P,contextWindow:bn(this.visualElement),element:this.visualElement.current})}stop(f,I){let P=f||this.latestPointerEvent,D=I||this.latestPanInfo,T=this.isDragging;if(this.cancel(),!T||!D||!P)return;let{velocity:H}=D;this.startAnimation(H);let{onDragEnd:L}=this.getProps();if(L)h.postRender(()=>L(P,D))}cancel(){this.isDragging=!1;let{projection:f,animationState:I}=this.visualElement;if(f)f.isAnimationBlocked=!1;this.endPanSession();let{dragPropagation:P}=this.getProps();if(!P&&this.openDragLock)this.openDragLock(),this.openDragLock=null;I&&I.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(f,I,P){let{drag:D}=this.getProps();if(!P||!Bn(f,D,this.currentDirection))return;let T=this.getAxisMotionValue(f),H=this.originPoint[f]+P[f];if(this.constraints&&this.constraints[f])H=sd(H,this.constraints[f],this.elastic[f]);T.set(H)}resolveConstraints(){let{dragConstraints:f,dragElastic:I}=this.getProps(),P=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,D=this.constraints;if(f&&pt(f)){if(!this.constraints)this.constraints=this.resolveRefConstraints()}else if(f&&P)this.constraints=fd(P.layoutBox,f);else this.constraints=!1;if(this.elastic=dd(I),D!==this.constraints&&!pt(f)&&P&&this.constraints&&!this.hasMutatedConstraints)Do((T)=>{if(this.constraints!==!1&&this.getAxisMotionValue(T))this.constraints[T]=cd(P.layoutBox[T],this.constraints[T])})}resolveRefConstraints(){let{dragConstraints:f,onMeasureDragConstraints:I}=this.getProps();if(!f||!pt(f))return!1;let P=f.current;yo(P!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:D}=this.visualElement;if(!D||!D.layout)return!1;if(D.root)D.root.scroll=void 0,D.root.updateScroll();let T=Os(P,D.root,this.visualElement.getTransformPagePoint()),H=ld(D.layout.layoutBox,T);if(I){let L=I(As(H));if(this.hasMutatedConstraints=!!L,L)H=zr(L)}return H}startAnimation(f){let{drag:I,dragMomentum:P,dragElastic:D,dragTransition:T,dragSnapToOrigin:H,onDragTransitionEnd:L}=this.getProps(),Z=this.constraints||{},ge=Do((xe)=>{if(!Bn(xe,I,this.currentDirection))return;let Fe=Z&&Z[xe]||{};if(H===!0||H===xe)Fe={min:0,max:0};let Be=D?200:1e6,De=D?40:1e7,Me={type:"inertia",velocity:P?f[xe]:0,bounceStiffness:Be,bounceDamping:De,timeConstant:750,restDelta:1,restSpeed:10,...T,...Fe};return this.startAxisValueAnimation(xe,Me)});return Promise.all(ge).then(L)}startAxisValueAnimation(f,I){let P=this.getAxisMotionValue(f);return $t(this.visualElement,f),P.start(Pt(f,P,0,I,this.visualElement,!1))}stopAnimation(){Do((f)=>this.getAxisMotionValue(f).stop())}getAxisMotionValue(f){let I=`_drag${f.toUpperCase()}`,D=this.visualElement.getProps()[I];return D?D:this.visualElement.getValue(f,this.visualElement.latestValues[f]??0)}snapToCursor(f){Do((I)=>{let{drag:P}=this.getProps();if(!Bn(I,P,this.currentDirection))return;let{projection:D}=this.visualElement,T=this.getAxisMotionValue(I);if(D&&D.layout){let{min:H,max:L}=D.layout.layoutBox[I],Z=T.get()||0;T.set(f[I]-_e(H,L,0.5)+Z)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:f,dragConstraints:I}=this.getProps(),{projection:P}=this.visualElement;if(!pt(I)||!P||!this.constraints)return;this.stopAnimation();let D={x:0,y:0};Do((H)=>{let L=this.getAxisMotionValue(H);if(L&&this.constraints!==!1){let Z=L.get();D[H]=id({min:Z,max:Z},this.constraints[H])}});let{transformTemplate:T}=this.visualElement.getProps();this.visualElement.current.style.transform=T?T({},""):"none",P.root&&P.root.updateScroll(),P.updateLayout(),this.constraints=!1,this.resolveConstraints(),Do((H)=>{if(!Bn(H,f,null))return;let L=this.getAxisMotionValue(H),{min:Z,max:ge}=this.constraints[H];L.set(_e(Z,ge,D[H]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cx.set(this.visualElement,this);let f=this.visualElement.current,I=xt(f,"pointerdown",(ge)=>{let{drag:xe,dragListener:Fe=!0}=this.getProps(),Be=ge.target,De=Be!==f&&Fs(Be);if(xe&&Fe&&!De)this.start(ge)}),P,D=()=>{let{dragConstraints:ge}=this.getProps();if(pt(ge)&&ge.current){if(this.constraints=this.resolveRefConstraints(),!P)P=dx(f,ge.current,()=>this.scalePositionWithinConstraints())}},{projection:T}=this.visualElement,H=T.addEventListener("measure",D);if(T&&!T.layout)T.root&&T.root.updateScroll(),T.updateLayout();h.read(D);let L=zo(window,"resize",()=>this.scalePositionWithinConstraints()),Z=T.addEventListener("didUpdate",({delta:ge,hasLayoutChanged:xe})=>{if(this.isDragging&&xe)Do((Fe)=>{let Be=this.getAxisMotionValue(Fe);if(!Be)return;this.originPoint[Fe]+=ge[Fe].translate,Be.set(Be.get()+ge[Fe].translate)}),this.visualElement.render()});return()=>{L(),I(),H(),Z&&Z(),P&&P()}}getProps(){let f=this.visualElement.getProps(),{drag:I=!1,dragDirectionLock:P=!1,dragPropagation:D=!1,dragConstraints:T=!1,dragElastic:H=vn,dragMomentum:L=!0}=f;return{...f,drag:I,dragDirectionLock:P,dragPropagation:D,dragConstraints:T,dragElastic:H,dragMomentum:L}}}function ud(f){let I=!0;return()=>{if(I){I=!1;return}f()}}function dx(f,I,P){let D=Ja(f,ud(P)),T=Ja(I,ud(P));return()=>{D(),T()}}function Bn(f,I,P){return(I===!0||I===f)&&(P===null||P===f)}function ux(f,I=10){let P=null;if(Math.abs(f.y)>I)P="y";else if(Math.abs(f.x)>I)P="x";return P}class sf extends Io{constructor(f){super(f);this.removeGroupControls=to,this.removeListeners=to,this.controls=new nf(f)}mount(){let{dragControls:f}=this.node.getProps();if(f)this.removeGroupControls=f.subscribe(this.controls);this.removeListeners=this.controls.addListeners()||to}update(){let{dragControls:f}=this.node.getProps(),{dragControls:I}=this.node.prevProps||{};if(f!==I){if(this.removeGroupControls(),f)this.removeGroupControls=f.subscribe(this.controls)}}unmount(){if(this.removeGroupControls(),this.removeListeners(),!this.controls.isDragging)this.controls.endPanSession()}}var ff=(f)=>(I,P)=>{if(f)h.update(()=>f(I,P),!1,!0)};class lf extends Io{constructor(){super(...arguments);this.removePointerDownListener=to}onPointerDown(f){this.session=new ea(f,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bn(this.node)})}createPanHandlers(){let{onPanSessionStart:f,onPanStart:I,onPan:P,onPanEnd:D}=this.node.getProps();return{onSessionStart:ff(f),onStart:ff(I),onMove:ff(P),onEnd:(T,H)=>{if(delete this.session,D)h.postRender(()=>D(T,H))}}}mount(){this.removePointerDownListener=xt(this.node.current,"pointerdown",(f)=>this.onPointerDown(f))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var md=e(r(),1);var oa=e(t(),1);var cf=!1;class pd extends oa.Component{componentDidMount(){let{visualElement:f,layoutGroup:I,switchLayoutGroup:P,layoutId:D}=this.props,{projection:T}=f;if(T){if(I.group)I.group.add(T);if(P&&P.register&&D)P.register(T);if(cf)T.root.didUpdate();T.addEventListener("animationComplete",()=>{this.safeToRemove()}),T.setOptions({...T.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})}Nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(f){let{layoutDependency:I,visualElement:P,drag:D,isPresent:T}=this.props,{projection:H}=P;if(!H)return null;if(H.isPresent=T,f.layoutDependency!==I)H.setOptions({...H.options,layoutDependency:I});if(cf=!0,D||f.layoutDependency!==I||I===void 0||f.isPresent!==T)H.willUpdate();else this.safeToRemove();if(f.isPresent!==T){if(T)H.promote();else if(!H.relegate())h.postRender(()=>{let L=H.getStack();if(!L||!L.members.length)this.safeToRemove()})}return null}componentDidUpdate(){let{visualElement:f,layoutAnchor:I}=this.props,{projection:P}=f;if(P)P.options.layoutAnchor=I,P.root.didUpdate(),Tt.postRender(()=>{if(!P.currentAnimation&&P.isLead())this.safeToRemove()})}componentWillUnmount(){let{visualElement:f,layoutGroup:I,switchLayoutGroup:P}=this.props,{projection:D}=f;if(cf=!0,D){if(D.scheduleCheckAfterUnmount(),I&&I.group)I.group.remove(D);if(P&&P.deregister)P.deregister(D)}}safeToRemove(){let{safeToRemove:f}=this.props;f&&f()}render(){return null}}function wn(f){let[I,P]=he(),D=oa.useContext(V);return md.jsx(pd,{...f,layoutGroup:D,switchLayoutGroup:oa.useContext(yn),isPresent:I,safeToRemove:P})}var xd={pan:{Feature:lf},drag:{Feature:sf,ProjectionNode:Qr,MeasureLayout:wn}};function Id(f,I,P){let{props:D}=f;if(f.animationState&&D.whileHover)f.animationState.setActive("whileHover",P==="Start");let T="onHover"+P,H=D[T];if(H)h.postRender(()=>H(I,$o(I)))}class df extends Io{mount(){let{current:f}=this.node;if(!f)return;this.unmount=Cs(f,(I,P)=>(Id(this.node,P,"Start"),(D)=>Id(this.node,D,"End")))}unmount(){}}class uf extends Io{constructor(){super(...arguments);this.isActive=!1}onFocus(){let f=!1;try{f=this.node.current.matches(":focus-visible")}catch(I){f=!0}if(!f||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!0),this.isActive=!0}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!1),this.isActive=!1}mount(){this.unmount=Oo(zo(this.node.current,"focus",()=>this.onFocus()),zo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hd(f,I,P){let{props:D}=f;if(f.current instanceof HTMLButtonElement&&f.current.disabled)return;if(f.animationState&&D.whileTap)f.animationState.setActive("whileTap",P==="Start");let T="onTap"+(P==="End"?"":P),H=D[T];if(H)h.postRender(()=>H(I,$o(I)))}class mf extends Io{mount(){let{current:f}=this.node;if(!f)return;let{globalTapTarget:I,propagate:P}=this.node.props;this.unmount=Bs(f,(D,T)=>(hd(this.node,T,"Start"),(H,{success:L})=>hd(this.node,H,L?"End":"Cancel")),{useGlobalTarget:I,stopPropagation:P?.tap===!1})}unmount(){}}var xf=new WeakMap,pf=new WeakMap,mx=(f)=>{let I=xf.get(f.target);I&&I(f)},px=(f)=>{f.forEach(mx)};function xx({root:f,...I}){let P=f||document;if(!pf.has(P))pf.set(P,{});let D=pf.get(P),T=JSON.stringify(I);if(!D[T])D[T]=new IntersectionObserver(px,{root:f,...I});return D[T]}function gd(f,I,P){let D=xx(I);return xf.set(f,P),D.observe(f),()=>{xf.delete(f),D.unobserve(f)}}var Ix={some:0,all:1};class If extends Io{constructor(){super(...arguments);this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:f={}}=this.node.getProps(),{root:I,margin:P,amount:D="some",once:T}=f,H={root:I?I.current:void 0,rootMargin:P,threshold:typeof D==="number"?D:Ix[D]},L=(Z)=>{let{isIntersecting:ge}=Z;if(this.isInView===ge)return;if(this.isInView=ge,T&&!ge&&this.hasEnteredView)return;else if(ge)this.hasEnteredView=!0;if(this.node.animationState)this.node.animationState.setActive("whileInView",ge);let{onViewportEnter:xe,onViewportLeave:Fe}=this.node.getProps(),Be=ge?xe:Fe;Be&&Be(Z)};this.stopObserver=gd(this.node.current,H,L)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:f,prevProps:I}=this.node;if(["amount","margin","root"].some(hx(f,I)))this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function hx({viewport:f={}},{viewport:I={}}={}){return(P)=>f[P]!==I[P]}var yd={inView:{Feature:If},tap:{Feature:mf},focus:{Feature:uf},hover:{Feature:df}};var Cd={layout:{ProjectionNode:Qr,MeasureLayout:wn}};var Sd={...Yc,...yd,...xd,...Cd};var hf=Kc(Sd,_c);var S=hf;
|
|
2
|
+
export{r,k,le,v,M,g,w,i,c,J,oe,a,E,m,F,ce,d,y,B,X,Ce,ne,ue,Te,de,O,A,ie,N,W,pe,u,R,fe,_,l,ye,j,z,C,be,n,Q,p,G,s,o,ee,U,me,ve,ae,we,ke,b,Pe,Se,se,V,te,K,q,h,Y,re,he,S};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e,x}from"/chunk-691pqsj6.js";var t=x(function(O,v){v.exports=globalThis.__esm.react});var C=e(t(),1);var w=e(t(),1);var p=e(t(),1);function I(n){let o=p.useRef(n);return p.useLayoutEffect(()=>{o.current=n},[n]),o}function ge(n){return`${location.protocol==="https:"?"wss":"ws"}://${location.host}${n}`}var c=new Set,l=new Set,h=!1,r=null,d=!1,b=1000,A=30000,g=0;function q(){let n=Math.min(b*2**g,A);g++,setTimeout(k,n)}function k(){if(r||d)return;d=!0;let n=new WebSocket(ge("/api/workspaces/ws"));n.onopen=()=>{if(r=n,d=!1,g=0,a(),h)for(let o of l)o();h=!0},n.onmessage=(o)=>{try{let i=JSON.parse(o.data);for(let s of c)s(i)}catch{}},n.onclose=()=>{if(r=null,d=!1,c.size>0)q()},n.onerror=()=>{n.close()}}function xe(n){return l.add(n),()=>{l.delete(n)}}function P(n){let o=I(n);w.useEffect(()=>{let i=(s)=>o.current(s);return c.add(i),k(),()=>{if(c.delete(i),c.size===0&&r)r.close(),r=null}},[o])}var u=null;function a(){if(r?.readyState!==WebSocket.OPEN)return;r.send(JSON.stringify({type:"navigation:presence",workspaceId:u,focused:document.visibilityState==="visible"&&document.hasFocus()}))}function Ee(n,o){w.useEffect(()=>(u=n,a(),window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{u=null,a(),window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}),[n]),P((i)=>{if(i.type!=="navigation:request"||i.workspaceId!==n)return;let s=r;try{if(u!==n)throw Error("The browser switched workspaces.");o(i.href),s?.send(JSON.stringify({type:"navigation:result",requestId:i.requestId,ok:!0}))}catch(m){s?.send(JSON.stringify({type:"navigation:result",requestId:i.requestId,error:m instanceof Error?m.message:"Navigation failed"}))}})}async function E(n,o){let i=await n.text();return Error(i||o)}async function f(n,o,i="Request failed"){let s=await fetch(n,o);if(!s.ok)throw await E(s,i);return s.json()}async function D(n,o,i="Request failed"){let s=await fetch(n,o);if(!s.ok)throw await E(s,i)}function T(n,o){return{method:n,headers:{"Content-Type":"application/json"},body:o===void 0?void 0:JSON.stringify(o)}}var W={cloudDemo:!1,experiments:[],demoInstallUrl:"https://moi.computer"},R=W,y=new Set;function N(n){return y.add(n),()=>{y.delete(n)}}async function S(){try{R=await f("/api/config");for(let n of y)n()}catch{}}async function _e(){await S(),xe(()=>{S()})}function L(){return C.useSyncExternalStore(N,()=>R)}
|
|
2
|
+
export{t,ge,f,D,T,I,xe,P,Ee,_e,L};
|
package/dist/index.html
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
-
<link rel="stylesheet" crossorigin href="/chunk-
|
|
39
|
+
<link rel="stylesheet" crossorigin href="/chunk-7a5nm4k9.css"><script type="module" crossorigin src="/chunk-691pqsj6.js"></script></head>
|
|
40
40
|
<body>
|
|
41
41
|
<div id="root"></div>
|
|
42
42
|
|
package/lib/app-icons.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type AppletSegment = 'widgets' | 'views'
|
|
2
|
+
export type AppletSelector = AppletSegment | `${AppletSegment}/${string}`
|
|
3
|
+
|
|
4
|
+
export type ParsedAppletSelector = {
|
|
5
|
+
segment: AppletSegment
|
|
6
|
+
id?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const APPLET_SELECTOR_RE = /^(widgets|views)(?:\/([a-z0-9][a-z0-9_-]*))?$/
|
|
10
|
+
|
|
11
|
+
export function parseAppletSelector(value: string): ParsedAppletSelector | null {
|
|
12
|
+
const match = value.match(APPLET_SELECTOR_RE)
|
|
13
|
+
if (!match) return null
|
|
14
|
+
return { segment: match[1] as AppletSegment, ...(match[2] ? { id: match[2] } : {}) }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function appletSelectorMatches(
|
|
18
|
+
selector: AppletSelector,
|
|
19
|
+
segment: AppletSegment,
|
|
20
|
+
id: string
|
|
21
|
+
): boolean {
|
|
22
|
+
const [selectedSegment, selectedId] = selector.split('/')
|
|
23
|
+
return selectedSegment === segment && (!selectedId || selectedId === id)
|
|
24
|
+
}
|
package/lib/chat-title.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { attachmentLabel, splitAttachments, stripAttachmentsLoose } from './moi-attachments'
|
|
1
2
|
const MAX_CHAT_TITLE_LENGTH = 64
|
|
2
3
|
|
|
3
4
|
export function formatChatTitle(text: string, filenames: readonly string[] = []): string {
|
|
4
|
-
const
|
|
5
|
+
const split = splitAttachments(text)
|
|
6
|
+
const attachmentLabels = split.attachments.map(attachmentLabel)
|
|
7
|
+
const source =
|
|
8
|
+
stripAttachmentsLoose(split.text).trim() ||
|
|
9
|
+
(attachmentLabels.length ? attachmentLabels : filenames).filter(Boolean).join(', ')
|
|
5
10
|
return source.replace(/\s+/gu, ' ').trim().slice(0, MAX_CHAT_TITLE_LENGTH).trimEnd()
|
|
6
11
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { LayoutGridItem, WidgetInfo } from './types'
|
|
2
|
+
|
|
3
|
+
export type DefaultWidgetDefinition = WidgetInfo & {
|
|
4
|
+
defaultPosition: Omit<LayoutGridItem, 'i'>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_VIEWS_WIDGET = {
|
|
8
|
+
id: '_moi_views',
|
|
9
|
+
config: { colSpan: 4, rowSpan: 1 },
|
|
10
|
+
defaultPosition: { x: 0, y: 0 }
|
|
11
|
+
} as const satisfies DefaultWidgetDefinition
|
|
12
|
+
|
|
13
|
+
export const DEFAULT_WIDGETS = [
|
|
14
|
+
DEFAULT_VIEWS_WIDGET
|
|
15
|
+
] as const satisfies readonly DefaultWidgetDefinition[]
|
|
16
|
+
|
|
17
|
+
export type DefaultWidgetId = (typeof DEFAULT_WIDGETS)[number]['id']
|
|
18
|
+
|
|
19
|
+
const DEFAULT_WIDGET_IDS = new Set<string>(DEFAULT_WIDGETS.map(widget => widget.id))
|
|
20
|
+
|
|
21
|
+
export function isDefaultWidget(id: string): id is DefaultWidgetId {
|
|
22
|
+
return DEFAULT_WIDGET_IDS.has(id)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Registry order seeds defaults and the hidden panel; saved positions control visible order.
|
|
26
|
+
export function withDefaultWidgets(widgets: readonly WidgetInfo[]): WidgetInfo[] {
|
|
27
|
+
return [...DEFAULT_WIDGETS, ...widgets]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function createDefaultWidgetGrid(): LayoutGridItem[] {
|
|
31
|
+
return DEFAULT_WIDGETS.map(widget => ({ i: widget.id, ...widget.defaultPosition }))
|
|
32
|
+
}
|