@jetcrab/pi-desk 1.1.18-dev → 1.1.21
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/docs/plugins.md +82 -2
- package/next.config.ts +1 -0
- package/package.json +4 -3
- package/src/app/page.tsx +6 -1
- package/src/app/project-preview/page.tsx +10 -0
- package/src/client/l1_entry/pages/l1-home-page.tsx +30 -0
- package/src/client/l1_entry/pages/l1-project-preview-page.tsx +33 -0
- package/src/client/l1_entry/providers/l1-app-providers.tsx +18 -15
- package/src/client/l1_entry/providers/l1-app-runtime-provider.tsx +2 -2
- package/src/client/l2_biz/auth/l2-login-biz.ts +3 -0
- package/src/client/l2_biz/auth/l2-login.tsx +2 -3
- package/src/client/l2_biz/plugin-host/l2-plugin-capability-details.tsx +6 -1
- package/src/client/l2_biz/plugin-host/l2-plugin-contribution-host.tsx +71 -10
- package/src/client/l2_biz/plugin-host/l2-plugin-management-controls.tsx +9 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-session-header-layout.ts +18 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-session-header.tsx +247 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-widgets.tsx +50 -0
- package/src/client/l2_biz/plugin-host/views/l2-plugin-session-header-action.tsx +112 -0
- package/src/client/l2_biz/project-preview/hooks/l2-use-project-picker.ts +76 -0
- package/src/client/l2_biz/project-preview/hooks/l2-use-project-preview.ts +214 -0
- package/src/client/l2_biz/project-preview/l2-project-preview-biz.ts +49 -4
- package/src/client/l2_biz/project-preview/l2-project-preview-dialog.tsx +42 -450
- package/src/client/l2_biz/project-preview/l2-project-preview-page.tsx +61 -0
- package/src/client/l2_biz/project-preview/l2-project-preview.tsx +342 -0
- package/src/client/l2_biz/project-preview/runtime/l2-project-history-runtime.ts +9 -3
- package/src/client/l2_biz/project-preview/views/l2-project-picker.tsx +168 -0
- package/src/client/l2_biz/settings/hooks/l2-use-model-settings.ts +34 -31
- package/src/client/l2_biz/settings/views/l2-model-replacement-preview.tsx +7 -1
- package/src/client/l2_biz/workbench/file-workspace/l2-file-workspace-runtime.ts +1 -1
- package/src/client/l2_biz/workbench/file-workspace/l2-project-preview-biz.ts +4 -3
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-reload.ts +42 -0
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-viewport.ts +28 -21
- package/src/client/l2_biz/workbench/l2-work-session-columns.module.css +32 -0
- package/src/client/l2_biz/workbench/l2-work-session-columns.tsx +55 -16
- package/src/client/l2_biz/workbench/l2-work-session-sidebar.tsx +38 -9
- package/src/client/l2_biz/workbench/l2-workbench-chat-composer.tsx +12 -1
- package/src/client/l2_biz/workbench/l2-workbench-chat.ts +45 -0
- package/src/client/l2_biz/workbench/l2-workbench-initialization-notice.tsx +8 -3
- package/src/client/l2_biz/workbench/l2-workbench-plugin-slots.ts +13 -0
- package/src/client/l2_biz/workbench/l2-workbench.tsx +19 -2
- package/src/client/l3_modules/conversation/l3-conversation-markdown.tsx +10 -1
- package/src/client/l3_modules/conversation/l3-conversation-viewport.tsx +12 -6
- package/src/client/l3_modules/project-files/l3-markdown-preview.module.css +1 -1
- package/src/client/l3_modules/project-files/l3-markdown-preview.tsx +10 -1
- package/src/client/l3_modules/project-files/l3-project-document-git.ts +4 -3
- package/src/client/l3_modules/project-files/l3-project-document-view.tsx +6 -1
- package/src/client/l3_modules/project-files/l3-project-file-browser.tsx +171 -229
- package/src/client/l3_modules/project-files/l3-project-file-runtime.ts +133 -70
- package/src/client/l3_modules/project-files/l3-project-reader.ts +26 -37
- package/src/client/l3_modules/project-files/views/l3-project-search-controls.tsx +201 -0
- package/src/client/l3_modules/project-files/views/l3-project-search-results.tsx +333 -0
- package/src/client/l4_foundation/lib/l4-client-id.tsx +11 -0
- package/src/client/l4_foundation/plugin-host/l4-plugin-host-runtime.ts +316 -35
- package/src/client/l4_foundation/ui/code/l4-code-preview.tsx +47 -3
- package/src/client/l4_foundation/ui/markdown/l4-markdown-remark.ts +89 -0
- package/src/client/l4_foundation/ui/markdown/l4-markdown.module.css +58 -0
- package/src/client/l4_foundation/ui/markdown/l4-markdown.tsx +108 -0
- package/src/common/l2_biz/auth/l2-auth-return-to.ts +41 -0
- package/src/common/l2_biz/model-settings/l2-model-settings-contract.ts +5 -1
- package/src/common/l2_biz/plugin/l2-plugin-management-messages.ts +4 -0
- package/src/common/l2_biz/project-preview/l2-project-history-messages.ts +28 -0
- package/src/common/l2_biz/project-preview/l2-project-preview-navigation.ts +5 -0
- package/src/common/l2_biz/settings/l2-settings-messages.ts +4 -3
- package/src/common/l2_biz/work-session/l2-work-session-file-contract.ts +4 -3
- package/src/common/l2_biz/workbench/l2-workbench-locale-messages.ts +8 -0
- package/src/common/l3_modules/project-files/l3-project-files-contract.ts +2 -3
- package/src/common/l3_modules/project-files/l3-project-files-locale-messages.ts +56 -10
- package/src/common/l4_foundation/file/l4-project-file-contract.ts +51 -1
- package/src/common/l4_foundation/locale/l4-host-error-messages.ts +11 -0
- package/src/common/l4_foundation/locale/l4-locale-messages.ts +16 -0
- package/src/instrumentation.ts +0 -2
- package/src/server/l1_entry/api/l1-project-read-routes.ts +6 -4
- package/src/server/l1_entry/api/l1-project-route.ts +9 -8
- package/src/server/l1_entry/api/l1-work-session-file-error.ts +23 -0
- package/src/server/l1_entry/node/l1-server.ts +8 -4
- package/src/server/l2_biz/plugin-management/l2-plugin-management.ts +0 -3
- package/src/server/l2_biz/work-session/l2-work-session-chat-runtime.ts +30 -58
- package/src/server/l2_biz/work-session/l2-work-session-manage.ts +0 -4
- package/src/server/l4_foundation/file/l4-project-file-index.ts +276 -0
- package/src/server/l4_foundation/file/l4-project-search.ts +399 -0
- package/src/server/l4_foundation/file/l4-ripgrep-search.ts +192 -0
- package/src/server/l4_foundation/file/l4-work-session-project-file.ts +8 -332
- package/src/server/l4_foundation/model-settings/l4-model-settings-store.ts +29 -20
- package/src/server/l4_foundation/model-settings/l4-model-settings-types.ts +1 -1
- package/src/server/l4_foundation/pi/l4-pi-chat-worker.ts +22 -5
- package/src/server/l4_foundation/pi/l4-pi-package-maintenance.ts +0 -6
- package/src/server/l4_foundation/pi/l4-pi-plugin-capability-probe.ts +1 -3
- package/src/server/l4_foundation/pi/l4-pi-plugin-owner-runtime.ts +133 -13
- package/src/server/l4_foundation/pi/l4-pi-plugin-probe.ts +1 -3
- package/src/server/l4_foundation/pi/l4-pi-runner-process.ts +2 -2
- package/src/server/l4_foundation/pi/l4-pi-session-initialization.ts +9 -0
- package/src/server/l4_foundation/process/l4-process-tree.js +23 -4
- package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
- package/temp/build/pi-desk/release/.next/app-path-routes-manifest.json +3 -2
- package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/prerender-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +1 -2
- package/temp/build/pi-desk/release/.next/required-server-files.js +4 -3
- package/temp/build/pi-desk/release/.next/required-server-files.json +4 -3
- package/temp/build/pi-desk/release/.next/routes-manifest.json +6 -0
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth/login/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth/logout/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/capability-modes/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/capability-modes/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/context/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/images/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/messages/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-check/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-catalog/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/preview/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directories/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-entries/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-ignores/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-ignores/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/models/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/session-user-messages/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/sessions/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/search/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/settings-get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/settings-replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/apply/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/batch/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/browser-resources/[resourceGroup]/[...resourcePath]/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/enabled-set/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/host-runtime/[runtimeVersion]/[...resourcePath]/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/reload/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/update/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/get/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/list/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/reveal/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/search/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git/get/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-branches/list/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-changes/list/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-diff/get/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-heads/get/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-log/list/route.js +2 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-model-default/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-model-default/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skills/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/task-center/images/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/task-center/messages/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-git-branch/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-git-branch/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-tree/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-tree-entry/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/branch/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/rename/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/sort/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/favicon.ico/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/page.js +72 -72
- package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/project-preview/page.js +1 -0
- package/temp/build/pi-desk/release/.next/server/app/project-preview/page_client-reference-manifest.js +1 -0
- package/temp/build/pi-desk/release/.next/server/app-paths-manifest.json +3 -2
- package/temp/build/pi-desk/release/.next/server/chunks/10912.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/20460.js +15 -0
- package/temp/build/pi-desk/release/.next/server/chunks/23054.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/25406.js +10 -10
- package/temp/build/pi-desk/release/.next/server/chunks/35985.js +3 -17
- package/temp/build/pi-desk/release/.next/server/chunks/36361.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/48180.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/50520.js +2 -4
- package/temp/build/pi-desk/release/.next/server/chunks/56830.js +235 -0
- package/temp/build/pi-desk/release/.next/server/chunks/6917.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/70780.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/74528.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/78262.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/79686.js +62 -0
- package/temp/build/pi-desk/release/.next/server/chunks/80780.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/81363.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/82499.js +4 -4
- package/temp/build/pi-desk/release/.next/server/chunks/92386.js +8 -8
- package/temp/build/pi-desk/release/.next/server/instrumentation.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
- package/temp/build/pi-desk/release/.next/server/server-reference-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/static/8Yd33M0zPi4tbRn4xCaRY/_buildManifest.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/11937-1d0a9822f2c7995b.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/14825-5579aed34a631ad7.js +62 -0
- package/temp/build/pi-desk/release/.next/static/chunks/15302-9c807afc6c60de0c.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/19991.8aa2e4b6df15fad6.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/22092-6d1bfbefa825ec03.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/37313-d5970e2d0c270d22.js +238 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{49516-cc4dcd84d64ab4fe.js → 51474-8dc714cb76b2e60a.js} +2 -2
- package/temp/build/pi-desk/release/.next/static/chunks/57235-03ba1044f22b6c84.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/79267-7d21d7cdbd7cfca1.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/82371-f7ba4a07a5dbcf34.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/9038-03144ed96d613f75.js +15 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{error-0296a3b20cd1bf00.js → error-216b14b5da089ed3.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-20718f1503910291.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-0d3d4827802108e5.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{not-found-2aab8b33ebbf3257.js → not-found-720cdf6a606b821a.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-6ebc1c877f6025dd.js +158 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/project-preview/page-d70ee4e9409b970a.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-b60891a214e0925d.js +1 -0
- package/temp/build/pi-desk/release/.next/static/css/1e780a4936aa6ba3.css +1 -0
- package/temp/build/pi-desk/release/.next/static/css/6dbae2922f88ca31.css +1 -0
- package/temp/build/pi-desk/release/.next/static/css/f646ca6c07245c4c.css +1 -0
- package/temp/build/pi-desk/release/.next/trace-build +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/33658.js +0 -296
- package/temp/build/pi-desk/release/.next/server/chunks/8584.js +0 -2
- package/temp/build/pi-desk/release/.next/static/chunks/31087-ba426d09d6f68bfd.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/3814-35cfab0ce3aa7c41.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/39654-b5fedd762ea0312e.js +0 -238
- package/temp/build/pi-desk/release/.next/static/chunks/70669.07f3670bfb7d6dd2.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/74220-795a2e7185bd66cb.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/75130-d2ca74894aff8085.js +0 -13
- package/temp/build/pi-desk/release/.next/static/chunks/78923-17a9c337b29dcecd.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/81881-f11dbe7dc0d04ed9.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/96995-8f8313ea2ac3abd7.js +0 -62
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-c0e1c5cef8620cf8.js +0 -3
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-84892b06243891f0.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-a984139e99586041.js +0 -158
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-40a782fc8a3535b9.js +0 -1
- package/temp/build/pi-desk/release/.next/static/css/6427d02b6edf406f.css +0 -1
- package/temp/build/pi-desk/release/.next/static/css/79e06f05df9edff0.css +0 -1
- package/temp/build/pi-desk/release/.next/static/n2LrXQgq8UkbH_AzhR3fw/_buildManifest.js +0 -1
- /package/temp/build/pi-desk/release/.next/static/{n2LrXQgq8UkbH_AzhR3fw → 8Yd33M0zPi4tbRn4xCaRY}/_ssgManifest.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[
|
|
2
|
-
`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=i.DB.exec(t));)if(r.index===i.DB.lastIndex&&i.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),R=(0,o.K)(function(t){return t.replace(i.DB,"")},"removeDirectives"),P=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function L(t,e){return t?A[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function D(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(L,"interpolateToCurve"),(0,o.K)(D,"formatUrl");var O=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let e=0;e<n;e++)if(!(o=o[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);o[i](...e)},"runFunc");function $(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function I(t){let e,r=0;return t.forEach(t=>{r+=$(t,e),e=t}),F(t,r/2)}function j(t){return 1===t.length?t[0]:I(t)}(0,o.K)($,"distance"),(0,o.K)(I,"traverseEdge"),(0,o.K)(j,"calcLabelPosition");var N=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),F=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=$(e,r);if(0===t)return r;if(t<n)n-=t;else{let i=n/t;if(i<=0)return r;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:N((1-i)*r.x+i*e.x,5),y:N((1-i)*r.y+i*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),K=(0,o.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=F(e,25),i=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(e[0].x+n.x)/2,s.y=-Math.cos(o)*i+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function z(t,e,r){let n=structuredClone(r);a.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let i=F(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2),l}function B(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(z,"calcTerminalLabelPosition"),(0,o.K)(B,"getStylesFromArray");var U=0,V=(0,o.K)(()=>(U++,"id-"+Math.random().toString(36).substr(2,12)+"-"+U),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,o.K)(H,"makeRandomHex");var W=(0,o.K)(t=>H(t.length),"random"),Y=(0,o.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,o.K)(function(t,e){let r=e.text.replace(i.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),X=u((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),i.Y2.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((t,i)=>{let s=Q(`${t} `,r),l=Q(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:i}=G(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");i+1===n.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),G=u((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((t,s)=>{let l=`${o}${t}`;if(Q(l,n)>=e){let t=i.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Z(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,o.K)(Z,"calculateTextHeight"),(0,o.K)(Q,"calculateTextWidth");var J=u((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(i.Y2.lineBreakRegex),u=[],c=(0,l.Ltv)("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let h=c.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let i=Y();i.text=n||S;let s=q(h,i).style("font-size",o).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}u.push(r)}h.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},te=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tr(t){return"str"in t}(0,o.K)(tr,"isDetailedError");var tn=(0,o.K)((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let t=0;t<r.length;t++)i=function t(e,r,n,i){if((0,h.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(i.has(r))return function(t){if((0,h.s)(t))return t;if(Array.isArray(t)||(0,d.i)(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(i.get(r));if(i.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)r[t]=r[t]??void 0}let a=[...Object.keys(r),...f(r)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let u=r[l],c=e[l];if((0,w.N)(u)&&(u={...u}),(0,w.N)(c)&&(c={...c}),(0,p.P)(u)&&(u=b(u)),Array.isArray(u))if(Array.isArray(c)){let t=[],e=Reflect.ownKeys(c);for(let r=0;r<e.length;r++){let n=e[r];t[n]=c[n]}c=t}else{var o;if(k(o=c)&&(0,_.X)(o)){let t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[]}let h=n(c,u,l,e,r,i);void 0!==h?e[l]=h:Array.isArray(u)||k(c)&&k(u)&&(g(c)||g(u)||(0,M.i)(c)||(0,M.i)(u))?e[l]=t(c,u,n,i):null==c&&g(u)?e[l]=t({},u,n,i):null==c&&(0,M.i)(u)?e[l]=b(u):(void 0===c||void 0!==u)&&(e[l]=u)}return e}(i,r[t],n,new Map);return i}(t,...e,c)}({},t,e)}(0,o.K)(ta,"cleanAndMerge");var to={assignWithDepth:i.hH,wrapLabel:X,calculateTextHeight:Z,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:E,detectDirective:C,isSubstringInArray:P,interpolateToCurve:L,calcLabelPosition:j,calcCardinalityPosition:K,calcTerminalLabelPosition:z,formatUrl:D,getStylesFromArray:B,generateId:V,random:W,runFunc:O,entityDecode:te,insertTitle:tn,isLabelCoordinateInPath:th,parseFontSize:ti,InitIDGenerator:tt},ts=(0,o.K)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tl=(0,o.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tu=(0,o.K)((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function tc(t){return t??null}function th(t,e){let r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return i.includes(r.toString())||i.includes(n.toString())}(0,o.K)(tc,"handleUndefinedAttr"),(0,o.K)(th,"isLabelCoordinateInPath")},4795:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]])},5733:(t,e,r)=>{"use strict";r.d(e,{WB:()=>l,_8:()=>c,hI:()=>u});var n=r(10813);function i(t,e,r,n){return{left:t,top:e,right:r,bottom:n,x:t,y:e,width:r-t,height:n-e}}function a(t){let e,r=[],n=1/0,a=1/0,o=-1/0,s=-1/0;for(let i of Array.from(t).sort((t,e)=>t.top-e.top)){if(n=Math.min(n,i.left),a=Math.min(a,i.top),o=Math.max(o,i.right),s=Math.max(s,i.bottom),!e||i.top-e.top>e.height/2)r.push({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:i.width,height:i.height});else{let t=r[r.length-1];t.left=Math.min(t.left,i.left),t.right=Math.max(t.right,i.right),t.bottom=Math.max(t.bottom,i.bottom),t.width=t.right-t.left,t.height=t.bottom-t.top}e=i}return{lines:r,fallback:i(n,a,o,s)}}function o(t,e,r){return t.findIndex(t=>e>t.left-2&&e<t.right+2&&r>t.top-2&&r<t.bottom+2)}function s(t){return i(t.left,t.top,t.right,t.bottom)}function l(t,e){function r(r){e||u(t,r.currentTarget,r.clientX,r.clientY)}return{onFocus(){t.current=void 0},onMouseEnter:r,onMouseMove:r}}function u(t,e,r,n){let i=function(t,e,r){let{lines:n}=a(t.getClientRects());if(n.length<2)return;let i=o(n,e,r);return{x:e,y:r,lineIndex:-1===i?void 0:i,element:t}}(e,r,n);return t.current=i,i}function c(t){return{name:"inline",async fn(e){let r=e.elements.reference;if("function"!=typeof r?.getClientRects)return{};let l="contextElement"in r&&r.contextElement?r.contextElement:(0,n.vq)(r)?r:void 0,u=t.current,c=u?.element===r||u?.element===l?u:void 0,h=function(t,e,r){let{lines:n,fallback:l}=a(t.getClientRects());if(n.length<2)return null;let u=r?.x,c=r?.y,h=e[0];if(r?.lineIndex!=null&&n[r.lineIndex])return s(n[r.lineIndex]);if(null!=u&&null!=c){let t=o(n,u,c);if(-1!==t)return s(n[t])}if(2===n.length&&n[0].left>n[1].right&&null!=u&&null!=c)return l;if("t"===h||"b"===h){let t=n[0],e=n[n.length-1],r="t"===h?t:e;return i(r.left,t.top,r.right,e.bottom)}let d="l"===h,f=n[0].left,p=n[0].right,g=d?1/0:-1/0,m=n[0],y=n[0];for(let t of n){f=Math.min(f,t.left),p=Math.max(p,t.right);let e=d?t.left:t.right;d&&e<g||!d&&e>g?(g=e,m=t,y=t):e===g&&(y=t)}return i(f,m.top,p,y.bottom)}(r,e.placement,c);if(!h||"function"!=typeof e.platform.getElementRects)return{};let d=await e.platform.getElementRects({reference:{contextElement:l,getBoundingClientRect:()=>h},floating:e.elements.floating,strategy:e.strategy});return e.rects.reference.x===d.reference.x&&e.rects.reference.y===d.reference.y&&e.rects.reference.width===d.reference.width&&e.rects.reference.height===d.reference.height?{}:{reset:{rects:d}}}}}},6609:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},7010:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7632:(t,e,r)=>{"use strict";r.d(e,{Nq:()=>o,RI:()=>u,Wg:()=>i,hq:()=>a});var n=r(39410),i=(0,n.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},o={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function s(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,n.K)(s,"calculateDeltaAndAngle");var l=(0,n.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),u=(0,n.K)(t=>({x:(0,n.K)(function(e,r,n){let i=0,o=l(n[0]).x<l(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=s(n[0],n[1]);i=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=s(n[n.length-1],n[n.length-2]);i=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let u=Math.abs(l(e).x-l(n[n.length-1]).x),c=Math.abs(l(e).y-l(n[n.length-1]).y),h=Math.abs(l(e).x-l(n[0]).x),d=Math.abs(l(e).y-l(n[0]).y),f=a[t.arrowTypeStart],p=a[t.arrowTypeEnd];if(u<p&&u>0&&c<p){let t=p+1-u;t*="right"===o?-1:1,i-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="right"===o?-1:1,i+=t}return l(e).x+i},"x"),y:(0,n.K)(function(e,r,n){let i=0,o=l(n[0]).y<l(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=s(n[0],n[1]);i=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=s(n[n.length-1],n[n.length-2]);i=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let u=Math.abs(l(e).y-l(n[n.length-1]).y),c=Math.abs(l(e).x-l(n[n.length-1]).x),h=Math.abs(l(e).y-l(n[0]).y),d=Math.abs(l(e).x-l(n[0]).x),f=a[t.arrowTypeStart],p=a[t.arrowTypeEnd];if(u<p&&u>0&&c<p){let t=p+1-u;t*="up"===o?-1:1,i-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="up"===o?-1:1,i+=t}return l(e).y+i},"y")}),"getLineFunctionsWithOffset")},8356:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("clock-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]])},8581:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(54967);function i(t){return{checked:e=>t.indeterminate?{}:e?{"data-checked":""}:{"data-unchecked":""},...n.dc}}},8675:(t,e,r)=>{"use strict";r.d(e,{V:()=>i,r:()=>n});let n=600,i=300},8934:(t,e,r)=>{"use strict";r.d(e,{r:()=>o,w:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(49));return t}},9922:(t,e,r)=>{"use strict";let n,i,a;r.d(e,{PY1:()=>a$});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...o,"pathRotation"]),l=(t,e,r)=>r>e?e:r<t?t:r,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},c={...u,transform:t=>l(0,1,t)},h={...u,default:1},d=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(t,e)=>r=>!!("string"==typeof r&&p.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),m=(t,e,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(f);return{[t]:parseFloat(i),[e]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},y={...u,transform:t=>Math.round(l(0,255,t))},v={test:g("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+y.transform(t)+", "+y.transform(e)+", "+y.transform(r)+", "+d(c.transform(n))+")"},x={test:g("#"),parse:function(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:v.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),w=b("deg"),k=b("%"),_=b("px"),M=b("vh"),S=b("vw"),A={...k,parse:t=>k.parse(t)/100,transform:t=>k.transform(100*t)},T={test:g("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+k.transform(d(e))+", "+k.transform(d(r))+", "+d(c.transform(n))+")"},E={test:t=>v.test(t)||x.test(t)||T.test(t),parse:t=>v.test(t)?v.parse(t):T.test(t)?T.parse(t):x.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):T.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",P="color",L=/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 D(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=e.replace(L,t=>(E.test(t)?(n.color.push(a),i.push(P),r.push(E.parse(t))):t.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(t)):(n.number.push(a),i.push(R),r.push(parseFloat(t))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function O({split:t,types:e}){let r=t.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],void 0!==n[a]){let t=e[a];t===R?i+=d(n[a]):t===P?i+=E.transform(n[a]):i+=n[a]}return i}}let $={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(C)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return O(D(t))},getAnimatableNone:function(t){let e=D(t);return O(e)(e.values.map((t,r)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[r])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function j(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=r.match(f)||[];if(!n)return t;let i=r.replace(n,""),a=+!!I.has(e);return n!==r&&(a*=100),e+"("+a+i+")"}let N=/\b([a-z-]*)\(.*?\)/gu,F={...$,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(j).join(" "):t}},K={...$,getAnimatableNone:t=>{let e=$.parse(t);return $.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},B={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:w,pathRotation:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:c,originX:A,originY:A,originZ:_,zIndex:z,fillOpacity:c,strokeOpacity:c,numOctaves:z},U={...B,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:F,WebkitFilter:F,mask:K,WebkitMask:K},V=t=>U[t],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({x:H(),y:H()}),Y=()=>({min:0,max:0}),q=()=>({x:Y(),y:Y()}),X=t=>!!(t&&t.getVelocity),G=new Set(["width","height","top","left","right","bottom",...o]),Z=t=>e=>e.test(t),Q=[u,_,k,w,S,M,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));r(21966);let tt=()=>{},te=()=>{},tr=t=>e=>"string"==typeof e&&e.startsWith(t),tn=tr("--"),ti=tr("var(--"),ta=t=>!!ti(t)&&to.test(t.split("/*")[0].trim()),to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ts(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,tc=t=>td(tu(Math.atan2(t[1],t[0]))),th={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},td=t=>((t%=360)<0&&(t+=360),t),tf=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tp,scale:t=>(tf(t)+tp(t))/2,rotateX:t=>td(tu(Math.atan2(t[6],t[5]))),rotateY:t=>td(tu(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tm(t){return+!!t.includes("scale")}function ty(t,e){let r,n;if(!t||"none"===t)return tm(e);let i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=tg,n=i;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=th,n=e}if(!n)return tm(e);let a=r[e],o=n[1].split(",").map(tv);return"function"==typeof a?a(o):o[a]}function tv(t){return parseFloat(t.trim())}let tx=t=>t===u||t===_,tb=new Set(["x","y","z"]),tw=o.filter(t=>!tb.has(t)),tk={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ty(e,"x"),y:(t,{transform:e})=>ty(e,"y")};tk.translateX=tk.x,tk.translateY=tk.y;let t_=t=>t,tM={},tS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tA(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=tS.reduce((t,e)=>(t[e]=function(t){let e=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(e){a.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,i=!1,o=!1)=>{let s=o&&n?e:r;return i&&a.add(t),s.add(t),t},cancel:t=>{r.delete(t),a.delete(t)},process:t=>{if(o=t,n){i=!0;return}n=!0;let a=e;e=r,r=a,e.forEach(s),e.clear(),n=!1,i&&(i=!1,l.process(t))}};return l}(a),t),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=o,g=()=>{let a=tM.useManualTiming,o=a?i.timestamp:performance.now();r=!1,a||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(g))};return{schedule:tS.reduce((e,a)=>{let s=o[a];return e[a]=(e,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||t(g)),s.schedule(e,a,o)),e},{}),cancel:t=>{for(let e=0;e<tS.length;e++)o[tS[e]].cancel(t)},state:i,steps:o}}let{schedule:tT,cancel:tE,state:tC,steps:tR}=tA("u">typeof requestAnimationFrame?requestAnimationFrame:t_,!0),tP=new Set,tL=!1,tD=!1,tO=!1;function t$(){if(tD){let t=Array.from(tP).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),r=new Map;e.forEach(t=>{let e,n=(e=[],tw.forEach(r=>{let n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),e);n.length&&(r.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(([e,r])=>{t.getValue(e)?.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tD=!1,tL=!1,tP.forEach(t=>t.complete(tO)),tP.clear()}function tI(){tP.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tD=!0)})}class tj{constructor(t,e,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tP.add(this),tL||(tL=!0,tT.read(tI),tT.resolveKeyframes(t$))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:n}=this;if(null===t[0]){let i=n?.get(),a=t[t.length-1];if(void 0!==i)t[0]=i;else if(r&&e){let n=r.readValue(e,a);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=a),n&&void 0===i&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tP.delete(this)}cancel(){"scheduled"===this.state&&(tP.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tN=new Set([F,K]);function tF(t,e){let r=V(t);return tN.has(r)||(r=$),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let tK=new Set(["auto","none","0"]);class tz extends tj{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let r=0;r<t.length;r++){let n=t[r];if("string"==typeof n&&ta(n=n.trim())){let i=function t(e,r,n=1){te(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,a]=function(t){let e=tl.exec(t);if(!e)return[,];let[,r,n,i]=e;return[`--${r??n}`,i]}(e);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ta(a)?t(a,r,n+1):a}(n,e.current);void 0!==i&&(t[r]=i),r===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!G.has(r)||2!==t.length)return;let[n,i]=t,a=J(n),o=J(i);if(ts(n)!==ts(i)&&tk[r]){this.needsMeasurement=!0;return}if(a!==o)if(tx(a)&&tx(o))for(let e=0;e<t.length;e++){let r=t[e];"string"==typeof r&&(t[e]=parseFloat(r))}else tk[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&r.push(e);r.length&&function(t,e,r){let n,i=0;for(;i<t.length&&!n;){let e=t[i];"string"==typeof e&&!tK.has(e)&&D(e).values.length&&(n=t[i]),i++}if(n&&r)for(let i of e)t[i]=tF(r,n)}(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tk[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(r,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=tk[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tB=t=>1e3*t;function tU(t,e){-1===t.indexOf(e)&&t.push(e)}function tV(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}class tH{constructor(){this.subscriptions=[]}add(t){return tU(this.subscriptions,t),()=>tV(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tW(t,e,r){e.startsWith("--")?t.style.setProperty(e,r):t.style[e]=r}function tY(t){let e;return()=>(void 0===e&&(e=t()),e)}let tq={};function tX(t,e){let r=tY(t);return()=>tq[e]??r()}let tG=tX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tZ=t=>null!==t;function tQ(t,{repeat:e,repeatType:r="loop"},n,i=1){let a=t.filter(tZ),o=i<0||e&&"loop"!==r&&e%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}class tJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t0=t=>Array.isArray(t)&&"number"==typeof t[0],t1=tX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t2=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let e=0;e<i;e++)n+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t5=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t5([0,.65,.55,1]),circOut:t5([.55,0,1,.45]),backIn:t5([.31,.01,.66,-.59]),backOut:t5([.33,1.53,.69,.99])};function t6(t){return"function"==typeof t&&"applyToOptions"in t}class t4 extends tJ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,te(t.type);const l=function({type:t,...e}){return t6(t)&&t1()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[e]:r};l&&(c.offset=l);let h=function t(e,r){if(e)return"function"==typeof e?t1()?t2(e,r):"ease-out":t0(e)?t5(e):Array.isArray(e)?e.map(e=>t(e,r)||t3.easeOut):t3[e]}(s,i);Array.isArray(h)&&(c.easing=h);let d={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(c,d)}(e,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let t=tQ(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tW(e,r,t),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tB(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tG())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),r&&(this.animation.rangeEnd=r),t_):n(this)}}let t9=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:t8}=tA(queueMicrotask,!1);function t7(){n=void 0}let et={now:()=>(void 0===n&&et.set(tC.isProcessing||tM.useManualTiming?tC.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t7)}},ee=(t,e)=>e?1e3/e*t:0,er;class en{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=et.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=et.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tH);let r=this.events[t].add(e);return"change"===t?()=>{r(),tT.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return er&&er.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=et.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ee(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(t,e){return new en(t,e)}let ea=[...Q,E,$],eo=new WeakMap;function es(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eu];function eh(t){return es(t.animate)||ec.some(e=>el(t[e]))}function ed(t){return!!(eh(t)||t.variants)}var ef=r(85784);function ep(t){let e=[{},{}];return t?.values.forEach((t,r)=>{e[0][r]=t.get(),e[1][r]=t.getVelocity()}),e}function eg(t,e,r,n){if("function"==typeof e){let[i,a]=ep(n);e=e(void 0!==r?r:t.custom,i,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,a]=ep(n);e=e(void 0!==r?r:t.custom,i,a)}return e}var em=r(37847);let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ev={};class ex{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=et.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tT.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=eh(e),this.isVariantNode=ed(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&X(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(em.r.current||(0,ef.Uu)(),this.shouldReduceMotion=em.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tE(this.notifyUpdate),tE(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let r;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t9.has(t)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:a,duration:o}=e.accelerate,s=new t4({element:this.current,name:t,keyframes:n,times:i,ease:a,duration:tB(o)}),l=r(s);this.valueSubscriptions.set(t,()=>{l(),s.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tT.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),r&&r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ev){let e=ev[t];if(!e)continue;let{isEnabled:r,Feature:n}=e;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ey.length;e++){let r=ey[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=t["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(t,e,r){for(let n in e){let i=e[n],a=r[n];if(X(i))t.addValue(n,i);else if(X(a))t.addValue(n,ei(i,{owner:t}));else if(a!==i)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(n);t.addValue(n,ei(void 0!==e?e:i,{owner:t}))}}for(let n in r)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let r=this.values.get(t);e!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==e&&(r=ei(null===e?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){let r=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!ea.find(Z(n))&&$.test(e)&&(r=tF(t,e))}this.setBaseTarget(t,X(r)?r.get():r)}return X(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=eg(this.props,r,this.presenceContext?.custom);n&&(e=n[t])}if(r&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||X(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t8.render(this.render)}}class eb extends ex{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let r=t.style;return r?r[e]:void 0}removeValueFromRenderState(t,{vars:e,style:r}){delete e[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ew(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ek=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eM=o.length;function eS(t,e,r){let{style:n,vars:i,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let r=e[t];if(s.has(t)){l=!0;continue}if(tn(t)){i[t]=r;continue}{let e=ek(r,B[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||r?n.transform=function(t,e,r){let n="",i=!0;for(let a=0;a<eM;a++){let s=o[a],l=t[s];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!s.startsWith("scale");else{let t=parseFloat(l);u=s.startsWith("scale")?1===t:0===t}if(!u||r){let t=ek(l,B[s]);if(!u){i=!1;let e=e_[s]||s;n+=`${e}(${t}) `}r&&(e[s]=t)}}let a=t.pathRotation;return a&&(i=!1,n+=`rotate(${ek(a,B.pathRotation)}) `),n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}(e,t.transform,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:r=0}=a;n.transformOrigin=`${t} ${e} ${r}`}}let eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eT={offset:"strokeDashoffset",array:"strokeDasharray"},eE=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eC(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(eS(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;for(let t of eE)void 0!==h[t]&&(d[t]=h[t],delete h[t]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==i&&function(t,e,r=1,n=0,i=!0){t.pathLength=1;let a=i?eA:eT;t[a.offset]=`${-n}`,t[a.array]=`${e} ${r}`}(h,i,a,o,!1)}let eR=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"]),eP=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:r},n,i){let a,o=t.style;for(a in e)o[a]=e[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}let eD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e$={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!_.test(t))return t;else t=parseFloat(t);let r=eO(t,e.target.x),n=eO(t,e.target.y);return`${r}% ${n}%`}},eI=(t,e,r)=>t+(e-t)*r,ej={borderRadius:{...e$,applyTo:[...eD]},borderTopLeftRadius:e$,borderTopRightRadius:e$,borderBottomLeftRadius:e$,borderBottomRightRadius:e$,boxShadow:{correct:(t,{treeScale:e,projectionDelta:r})=>{let n=$.parse(t);if(n.length>5)return t;let i=$.createTransformer(t),a=+("number"!=typeof n[0]),o=r.x.scale*e.x,s=r.y.scale*e.y;n[0+a]/=o,n[1+a]/=s;let l=eI(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function eN(t,{layout:e,layoutId:r}){return s.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!ej[t]||"opacity"===t)}function eF(t,e,r){let n=t.style,i=e?.style,a={};if(!n)return a;for(let e in n)(X(n[e])||i&&X(i[e])||eN(e,t)||r?.getValue(e)?.liveStyle!==void 0)&&(a[e]=n[e]);return a}function eK(t,e,r){let n=eF(t,e,r);for(let r in t)(X(t[r])||X(e[r]))&&(n[-1!==o.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}class ez extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=V(e);return t&&t.default||0}if(eE.includes(e)){let r=getComputedStyle(t)[e];if("string"==typeof r&&r)return r.trim()}return e=eR.has(e)?e:ew(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return eK(t,e,r)}build(t,e,r){eC(t,e,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,e,r,n){for(let r in eL(t,e,void 0,n),e.attrs)t.setAttribute(eR.has(r)?r:ew(r),e.attrs[r])}mount(t){this.isSVGTag=eP(t.tagName),super.mount(t)}}function eB({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function eU(t){return void 0===t||1===t}function eV({scale:t,scaleX:e,scaleY:r}){return!eU(t)||!eU(e)||!eU(r)}function eH(t){return eV(t)||eW(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eW(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function eY(t,e,r,n,i){return void 0!==i&&(t=n+i*(t-n)),n+r*(t-n)+e}function eq(t,e=0,r=1,n,i){t.min=eY(t.min,e,r,n,i),t.max=eY(t.max,e,r,n,i)}function eX(t,{x:e,y:r}){eq(t.x,e.translate,e.scale,e.originPoint),eq(t.y,r.translate,r.scale,r.originPoint)}function eG(t,e){t.min+=e,t.max+=e}function eZ(t,e,r,n,i=.5){let a=eI(t.min,t.max,i);eq(t,e,r,a,n)}function eQ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eJ(t,e,r){let n=r??t;eZ(t.x,eQ(e.x,n.x),e.scaleX,e.scale,e.originX),eZ(t.y,eQ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eB(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e1 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}mount(t){te(t.style),super.mount(t)}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tm(e):((t,e)=>{let{transform:r="none"}=getComputedStyle(t);return ty(r,e)})(t,e);{let r=window.getComputedStyle(t),n=(tn(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,r){eS(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return eF(t,e,r)}}var e2=r(69266);let e5=["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 e3(t){if("string"!=typeof t||t.includes("-"));else if(e5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e6=r(7962),e4=r(82544);let e9=(0,e2.createContext)({strict:!1});var e8=r(55263);let e7=(0,e2.createContext)({});function rt(t){return Array.isArray(t)?t.join(" "):t}let re=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rr(t,e,r){for(let n in e)X(e[n])||eN(n,r)||(t[n]=e[n])}let rn=()=>({...re(),attrs:{}}),ri=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 ra(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ri.has(t)}function ro(t){return X(t)?t.get():t}var rs=r(35182),rl=r(83864);let ru=t=>(e,r)=>{let n=(0,e2.useContext)(e7),i=(0,e2.useContext)(rs.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,i){return{latestValues:function(t,e,r,n){let i={},a=n(t,{});for(let t in a)i[t]=ro(a[t]);let{initial:o,animate:s}=t,l=eh(t),u=ed(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===s&&(s=e.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===o)?s:o;if(h&&"boolean"!=typeof h&&!es(h)){let e=Array.isArray(h)?h:[h];for(let r=0;r<e.length;r++){let n=eg(t,e[r]);if(n){let{transitionEnd:t,transition:e,...r}=n;for(let t in r){let e=r[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let e in t)i[e]=t[e]}}}return i}(r,n,i,t),renderState:e()}})(t,e,n,i);return r?a():(0,rl.M)(a)},rc=ru({scrapeMotionValuesFromProps:eF,createRenderState:re}),rh=ru({scrapeMotionValuesFromProps:eK,createRenderState:rn}),rd={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"]},rf=!1;function rp(){return!function(){if(rf)return;let t={};for(let e in rd)t[e]={isEnabled:t=>rd[e].some(e=>!!t[e])};ev=t,rf=!0}(),ev}let rg=Symbol.for("motionComponentSymbol"),rm="data-"+ew("framerAppearId"),ry=(0,e2.createContext)({});function rv(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var rx=r(59863);function rb(t,{forwardMotionProps:e=!1,type:r}={},n,i){n&&function(t){let e=rp();for(let r in t)e[r]={...e[r],...t[r]};ev=e}(n);let a=r?"svg"===r:e3(t),o=a?rh:rc;function s(r,n){var s;let l,u,c,h={...(0,e2.useContext)(e8.Q),...r,layoutId:function({layoutId:t}){let e=(0,e2.useContext)(e4.L).id;return e&&void 0!==t?e+"-"+t:t}(r)},{isStatic:d,isValidProp:f}=h,p=function(t){let{initial:e,animate:r}=function(t,e){if(eh(t)){let{initial:e,animate:r}=t;return{initial:!1===e||el(e)?e:void 0,animate:el(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,e2.useContext)(e7));return(0,e2.useMemo)(()=>({initial:e,animate:r}),[rt(e),rt(r)])}(r),g=o(r,d);if(!d&&"u">typeof window){(0,e2.useContext)(e9).strict;let e=function(t){let{drag:e,layout:r}=rp();if(!e&&!r)return{};let n={...e,...r};return{MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);l=e.MeasureLayout,p.visualElement=function(t,e,r,n,i,a){let{visualElement:o}=(0,e2.useContext)(e7),s=(0,e2.useContext)(e9),l=(0,e2.useContext)(rs.t),u=(0,e2.useContext)(e8.Q),c=u.reducedMotion,h=u.skipAnimations,d=(0,e2.useRef)(null),f=(0,e2.useRef)(!1);n=n||s.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:h,isSVG:a}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let p=d.current,g=(0,e2.useContext)(ry);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(t,e,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&rv(s),visualElement:t,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(d.current,r,i,g);let m=(0,e2.useRef)(!1);(0,e2.useInsertionEffect)(()=>{p&&m.current&&p.update(r,l)});let y=r[rm],v=(0,e2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,rx.E)(()=>{f.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,e2.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(t,g,h,i,e.ProjectionNode,a)}return(0,e6.jsxs)(e7.Provider,{value:p,children:[l&&p.visualElement?(0,e6.jsx)(l,{visualElement:p.visualElement,...h}):null,function(t,e,r,{latestValues:n},i,a=!1,o,s){let l=(o??e3(t)?function(t,e,r,n){let i=(0,e2.useMemo)(()=>{let r=rn();return eC(r,e,eP(n),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};rr(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e){let r,n,i={},a=(r=t.style||{},rr(n={},r,t),Object.assign(n,function({transformTemplate:t},e){return(0,e2.useMemo)(()=>{let r=re();return eS(r,e,t),Object.assign({},r.vars,r.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=a,i})(e,n,i,t),u=function(t,e,r,n){let i={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&!X(t[a])&&((a.startsWith("on")?!ra(a):n?.(a)??!ra(a))||!0===r&&ra(a)||!e&&!ra(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}(e,"string"==typeof t,a,s),c=t!==e2.Fragment?{...u,...l,ref:r}:{},{children:h}=e,d=(0,e2.useMemo)(()=>X(h)?h.get():h,[h]);return(0,e2.createElement)(t,{...c,children:d})}(t,r,(s=p.visualElement,u=(0,e2.useRef)(n),(0,e2.useInsertionEffect)(()=>{u.current=n}),c=(0,e2.useRef)(null),(0,e2.useCallback)(t=>{t&&g.onMount?.(t),s&&(t?s.mount(t):s.unmount());let e=u.current;if("function"==typeof e)if(t){let r=e(t);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[s])),g,d,e,a,f)]})}s.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e2.forwardRef)(s);return l[rg]=t,l}class rw{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rk(t,e,r){let n=t.getProps();return eg(n,e,void 0!==r?r:n.custom,t)}function r_(t,e){if(t?.inherit&&e){let{inherit:r,...n}=t;return{...e,...n}}return t}function rM(t,e){let r=t?.[e]??t?.default??t;return r!==t?r_(r,t):r}let rS=t=>Array.isArray(t);function rA(t,e){let r=t.getValue("willChange");if(X(r)&&r.add)return r.add(e);if(!r&&tM.WillChange){let r=new tM.WillChange("auto");t.addValue("willChange",r),r.add(e)}}let rT=(...t)=>t.reduce((t,e)=>r=>e(t(r)));function rE(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function rC(t,e){return r=>r>0?e:t}let rR=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},rP=[x,v,T];function rL(t){let e=rP.find(e=>e.test(t));if(tt(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===T&&(r=function({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,r/=100;let i=0,a=0,o=0;if(e/=100){let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;i=rE(s,n,t+1/3),a=rE(s,n,t),o=rE(s,n,t-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let rD=(t,e)=>{let r=rL(t),n=rL(e);if(!r||!n)return rC(t,e);let i={...r};return t=>(i.red=rR(r.red,n.red,t),i.green=rR(r.green,n.green,t),i.blue=rR(r.blue,n.blue,t),i.alpha=eI(r.alpha,n.alpha,t),v.transform(i))},rO=new Set(["none","hidden"]);function r$(t,e){return r=>eI(t,e,r)}function rI(t){return"number"==typeof t?r$:"string"==typeof t?ta(t)?rC:E.test(t)?rD:rF:Array.isArray(t)?rj:"object"==typeof t?E.test(t)?rD:rN:rC}function rj(t,e){let r=[...t],n=r.length,i=t.map((t,r)=>rI(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=i[e](t);return r}}function rN(t,e){let r={...t,...e},n={};for(let i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=rI(t[i])(t[i],e[i]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let rF=(t,e)=>{let r=$.createTransformer(e),n=D(t),i=D(e);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return tt(`Complex values '${t}' and '${e}' 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.`),rC(t,e);if(rO.has(t)&&!i.values.length||rO.has(e)&&!n.values.length)return rO.has(t)?r=>r<=0?t:e:r=>r>=1?e:t;return rT(rj(function(t,e){let r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let a=e.types[i],o=t.indexes[a][n[a]],s=t.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function rK(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?eI(t,e,r):rI(t)(t,e)}let rz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tT.update(e,t),stop:()=>tE(e),now:()=>tC.isProcessing?tC.timestamp:et.now()}};function rB(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}let rU=.01,rV=2,rH=.005,rW=.5;function rY(t,e){return t*Math.sqrt(1-e*e)}let rq=["duration","bounce"],rX=["stiffness","damping","mass"];function rG(t,e){return e.some(e=>void 0!==t[e])}function rZ(t=.3,e=.3){let r,n,i,a,o,s,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:c,restDelta:h}=u,d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:y,duration:v,velocity:x,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!rG(t,rX)&&rG(t,rq))if(e.velocity=0,t.visualDuration){let r=2*Math.PI/(1.2*t.visualDuration),n=r*r,i=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:i}}else{let r=function({duration:t=800,bounce:e=.3,velocity:r=0,mass:n=1}){let i,a;tt(tB(10));let o=1-e;o=l(.05,1,o),t=l(.01,10,t/1e3),o<1?(i=e=>{let n=e*o,i=n*t;return .001-(n-r)/rY(e,o)*Math.exp(-i)},a=e=>{let n=e*o*t,a=Math.pow(o,2)*Math.pow(e,2)*t,s=Math.exp(-n),l=rY(Math.pow(e,2),o);return(n*r+r-a)*s*(-i(e)+.001>0?-1:1)/l}):(i=e=>-.001+Math.exp(-e*t)*((e-r)*t+1),a=e=>t*t*(r-e)*Math.exp(-e*t));let s=function(t,e,r){let n=r;for(let r=1;r<12;r++)n-=t(n)/e(n);return n}(i,a,5/t);if(t=tB(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(s,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...r,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=x||0,k=m/(2*Math.sqrt(g*y)),_=f-d,M=Math.sqrt(g/y)/1e3,S=5>Math.abs(_);if(c||(c=S?rU:rV),h||(h=S?rH:rW),k<1)i=rY(M,k),a=(w+k*M*_)/i,r=t=>f-Math.exp(-k*M*t)*(a*Math.sin(i*t)+_*Math.cos(i*t)),o=k*M*a+_*i,s=k*M*_-a*i,n=t=>Math.exp(-k*M*t)*(o*Math.sin(i*t)+s*Math.cos(i*t));else if(1===k){r=t=>f-Math.exp(-M*t)*(_+(w+M*_)*t);let t=w+M*_;n=e=>Math.exp(-M*e)*(M*t*e-w)}else{let t=M*Math.sqrt(k*k-1);r=e=>{let r=Math.exp(-k*M*e),n=Math.min(t*e,300);return f-r*((w+k*M*_)*Math.sinh(n)+t*_*Math.cosh(n))/t};let e=(w+k*M*_)/t,i=k*M*e-_*t,a=k*M*_-e*t;n=e=>{let r=Math.exp(-k*M*e),n=Math.min(t*e,300);return r*(i*Math.sinh(n)+a*Math.cosh(n))}}let A={calculatedDuration:b&&v||null,velocity:t=>tB(n(t)),next:t=>{if(!b&&k<1){let e=Math.exp(-k*M*t),r=Math.sin(i*t),n=Math.cos(i*t),l=f-e*(a*r+_*n);return p.done=Math.abs(tB(e*(o*r+s*n)))<=c&&Math.abs(f-l)<=h,p.value=p.done?f:l,p}let e=r(t);return b?p.done=t>=v:p.done=Math.abs(tB(n(t)))<=c&&Math.abs(f-e)<=h,p.value=p.done?f:e,p},toString:()=>{let t=Math.min(rB(A),2e4),e=t2(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function rQ(t,e,r){let n=Math.max(e-5,0);return ee(r-t(n),e-n)}function rJ({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let h,d,f=t[0],p={done:!1,value:f},g=r*e,m=f+g,y=void 0===o?m:o(m);y!==m&&(g=y-f);let v=t=>-g*Math.exp(-t/n),x=t=>y+v(t),b=t=>{let e=v(t),r=x(t);p.done=Math.abs(e)<=u,p.value=p.done?y:r},w=t=>{let e;if(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l){var r;h=t,d=rZ({keyframes:[p.value,(r=p.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:rQ(x,t,p.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,b(t),w(t)),void 0!==h&&t>=h)?d.next(t-h):(e||b(t),p)}}}rZ.applyToOptions=t=>{let e=function(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(rB(n),2e4);return{type:"keyframes",ease:t=>n.next(i*t).value/e,duration:i/1e3}}(t,100,rZ);return t.ease=e.ease,t.duration=tB(e.duration),t.type="keyframes",t};let r0=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function r1(t,e,r,n){return t===e&&r===n?t_:i=>0===i||1===i?i:r0(function(t,e,r,n,i){let a,o,s=0;do(a=r0(o=e+(r-e)/2,n,i)-t)>0?r=o:e=o;while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,t,r),e,n)}let r2=r1(.42,0,1,1),r5=r1(0,0,.58,1),r3=r1(.42,0,.58,1),r6=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,r4=t=>e=>1-t(1-e),r9=r1(.33,1.53,.69,.99),r8=r4(r9),r7=r6(r8),nt=t=>t>=1?1:(t*=2)<1?.5*r8(t):.5*(2-Math.pow(2,-10*(t-1))),ne=t=>1-Math.sin(Math.acos(t)),nr=r4(ne),nn=r6(ne),ni={linear:t_,easeIn:r2,easeInOut:r3,easeOut:r5,circIn:ne,circInOut:nn,circOut:nr,backIn:r8,backInOut:r7,backOut:r9,anticipate:nt},na=t=>{if(t0(t)){te(t.length);let[e,r,n,i]=t;return r1(e,r,n,i)}return"string"==typeof t?(te(ni[t],`Invalid easing type '${t}'`),ni[t]):t},no=(t,e,r)=>{let n=e-t;return n?(r-t)/n:1};function ns({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(na):na(n),s={done:!1,value:e[0]},u=function(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let a=t.length;if(te(e.length),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,r){let n=[],i=r||tM.mix||rK,a=t.length-1;for(let r=0;r<a;r++){let a=i(t[r],t[r+1]);e&&(a=rT(Array.isArray(e)?e[r]||t_:e,a)),n.push(a)}return n}(e,n,i),u=s.length,c=r=>{if(o&&r<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(r<t[n+1]);n++);let i=no(t[n],t[n+1],r);return s[n](i)};return r?e=>c(l(t[0],t[a-1],e)):c}((i=r&&r.length===e.length?r:(!function(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=no(0,e,n);t.push(eI(r,1,i))}}(a=[0],e.length-1),a),i.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||r3).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=u(e),s.done=e>=t,s)}}let nl={decay:rJ,inertia:rJ,tween:ns,keyframes:ns,spring:rZ};function nu(t){"string"==typeof t.type&&(t.type=nl[t.type])}let nc=t=>t/100;class nh extends tJ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nu(t);let{type:e=ns,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:o}=t,s=e||ns;s!==ns&&"number"!=typeof o[0]&&(this.mixKeyframes=rT(nc,rK(o[0],o[1])),o=[0,100]);let l=s({...t,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...t,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=rB(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let r,{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:c=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,i)/s,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(w=o)),b=l(0,1,r)*s}x?(this.delayState.value=h[0],r=this.delayState):r=w.next(b),a&&!x&&(r.value=a(r.value));let{done:k}=r;x||null===u||(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return _&&g!==rJ&&(r.value=tQ(h,this.options,y,this.speed)),m&&m(r.value),_&&this.finish(),r}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tB(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return rQ(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(et.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=rz,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=e??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nd={anticipate:nt,backInOut:r7,circInOut:nn};class nf extends t4{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nd&&(t.ease=nd[t.ease])}(t),nu(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nh({...a,autoplay:!1}),s=Math.max(10,et.now()-this.startTime),u=l(0,10,s-10),c=o.sample(s).value,{name:h}=this.options;i&&h&&tW(i,h,c),e.setWithVelocity(o.sample(Math.max(0,s-u)).value,c,u),o.stop()}}let np=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&($.test(t)||"0"===t)&&!t.startsWith("url("));function ng(t){t.duration=0,t.type="keyframes"}let nm=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ny=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nv=tY(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nx extends tJ{constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const h={autoplay:t,delay:e,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tj;this.keyframeResolver=new d(o,(t,e,r)=>this.onKeyframesResolved(t,e,h,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,r,n){let i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=et.now();let h=!0;!function(t,e,r,n){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],o=np(i,e),s=np(a,e);return tt(`You are trying to animate ${e} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`),!!o&&!!s&&(function(t){let e=t[0];if(1===t.length)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}(t)||("spring"===r||t6(r))&&n)}(t,a,o,s)&&(h=!1,(tM.instantAnimations||!l)&&c?.(tQ(t,r,e)),t[0]=t[t.length-1],ng(r),r.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...r,keyframes:t},f=h&&!u&&function(t){let{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=e.owner.getProps();return nv()&&r&&(t9.has(r)||ny.has(r)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nm.test(t[e]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(d),p=d.motionValue?.owner?.current;if(f)try{i=new nf({...d,element:p})}catch{i=new nh(d)}else i=new nh(d);i.finished.then(()=>{this.notifyFinished()}).catch(t_),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tO=!0,tI(),t$(),tO=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nb={type:"spring",stiffness:500,damping:25,restSpeed:10},nw={type:"keyframes",duration:.8},nk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nM=(t,e,r,n={},i,a)=>o=>{let l=rM(n,t)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=tB(u);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:i};!function(t){for(let e in t)if(!n_.has(e))return!0;return!1}(l)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?nw:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nb:nk)(t,h)),h.duration&&(h.duration=tB(h.duration)),h.repeatDelay&&(h.repeatDelay=tB(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(ng(h),0===h.delay&&(d=!0)),(tM.instantAnimations||tM.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ng(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!a&&void 0!==e.get()){let t=tQ(h.keyframes,l);if(void 0!==t)return void tT.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new nh(h):new nx(h)};function nS(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=e,l=t.getDefaultTransition();a=a?r_(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);let h=[],d=i&&t.animationState&&t.animationState.getState()[i],f=a?.path;for(let e in f&&f.animateVisualElement(t,s,a,r,h),s){let n=t.getValue(e,t.latestValues[e]??null),i=s[e];if(void 0===i||d&&function({protectedKeys:t,needsAnimating:e},r){let n=t.hasOwnProperty(r)&&!0!==e[r];return e[r]=!1,n}(d,e))continue;let o={delay:r,...rM(a||{},e)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){tT.update(()=>n.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let r=t.props[rm];if(r){let t=window.MotionHandoffAnimation(r,e,tT);null!==t&&(o.startTime=t,f=!0)}}rA(t,e);let p=u??t.shouldReduceMotion;n.start(nM(e,n,i,p&&G.has(e)?{type:!1}:o,t,f));let g=n.animation;g&&h.push(g)}if(o){let e=()=>tT.update(()=>{o&&function(t,e){let{transitionEnd:r={},transition:n={},...i}=rk(t,e)||{};for(let e in i={...i,...r}){var a;let r=rS(a=i[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,ei(r))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function nA(t,e,r,n=0,i=1){let a=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function nT(t,e,r={}){let n=rk(t,e,"exit"===r.type?t.presenceContext?.custom:void 0),{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(nS(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(t,e,r=0,n=0,i=0,a=1,o){let s=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),s.push(nT(l,e,{...o,delay:r+("function"==typeof n?0:n)+nA(t.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(s)}(t,e,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([a(),o(r.delay)]);{let[t,e]="beforeChildren"===s?[a,o]:[o,a];return t().then(()=>e())}}let nE=ec.length;function nC(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}let nR=[...eu].reverse(),nP=eu.length;function nL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nD(){return{animate:nL(!0),whileInView:nL(),whileHover:nL(),whileTap:nL(),whileDrag:nL(),whileFocus:nL(),exit:nL()}}class nO extends rw{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:r})=>(function(t,e,r={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nT(t,e,r)));else if("string"==typeof e)n=nT(t,e,r);else{let i="function"==typeof e?rk(t,e,r.custom):e;n=Promise.all(nS(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,r))),r=nD(),n=!0,i=!1,a=e=>(r,n)=>{let i=rk(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(i){let{transition:t,transitionEnd:e,...n}=i;r={...r,...n,...e}}return r};function o(o){let{props:s}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(r.initial=e.props.initial),r}let r={};for(let t=0;t<nE;t++){let n=ec[t],i=e.props[n];(el(i)||!1===i)&&(r[n]=i)}return r}(t.parent)||{},u=[],c=new Set,h={},d=1/0;for(let e=0;e<nP;e++){var f,p;let g=nR[e],m=r[g],y=void 0!==s[g]?s[g]:l[g],v=el(y),x=g===o?m.isActive:null;!1===x&&(d=e);let b=y===l[g]&&y!==s[g]&&v;if(b&&(n||i)&&t.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...h},!m.isActive&&null===x||!y&&!m.prevProp||es(y)||"boolean"==typeof y)continue;if("exit"===g&&m.isActive&&!0!==x){m.prevResolvedValues&&(h={...h,...m.prevResolvedValues});continue}let w=(f=m.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!nC(p,f)),k=w||g===o&&m.isActive&&!b&&v||e>d&&v,_=!1,M=Array.isArray(y)?y:[y],S=M.reduce(a(g),{});!1===x&&(S={});let{prevResolvedValues:A={}}=m,T={...A,...S},E=e=>{k=!0,c.has(e)&&(_=!0,c.delete(e)),m.needsAnimating[e]=!0;let r=t.getValue(e);r&&(r.liveStyle=!1)};for(let t in T){let e=S[t],r=A[t];if(!h.hasOwnProperty(t))(rS(e)&&rS(r)?!nC(e,r)||w:e!==r)?null!=e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):m.protectedKeys[t]=!0}m.prevProp=y,m.prevResolvedValues=S,m.isActive&&(h={...h,...S}),(n||i)&&t.blockInitialAnimation&&(k=!1);let C=b&&w,R=!C||_;k&&R&&u.push(...M.map(e=>{let r={type:g};if("string"==typeof e&&(n||i)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,i=rk(n,e);if(n.enteringChildren&&i){let{delayChildren:e}=i.transition||{};r.delay=nA(n.enteringChildren,t,e)}}return{animation:e,options:r}}))}if(c.size){let e={};if("boolean"!=typeof s.initial){let r=rk(t,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(e.transition=r.transition)}c.forEach(r=>{let n=t.getBaseTarget(r),i=t.getValue(r);i&&(i.liveStyle=!0),e[r]=n??null}),u.push({animation:e})}let g=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,i=!1,g?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(r[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),r[e].isActive=n;let i=o(e);for(let t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(r){e=r(t)},getState:()=>r,reset:()=>{r=nD(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();es(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let n$=0;class nI extends rw{constructor(){super(...arguments),this.id=n$++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&!1===r){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let r=rk(this.node,t,e);if(r){let{transition:t,transitionEnd:e,...n}=r;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nj={x:!1,y:!1};function nN(t){return[t("x"),t("y")]}function nF(t){return t.max-t.min}function nK(t,e,r,n=.5){t.origin=n,t.originPoint=eI(e.min,e.max,t.origin),t.scale=nF(r)/nF(e),t.translate=eI(r.min,r.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nz(t,e,r,n){nK(t.x,e.x,r.x,n?n.originX:void 0),nK(t.y,e.y,r.y,n?n.originY:void 0)}function nB(t,e,r,n=0){t.min=(n?eI(r.min,r.max,n):r.min)+e.min,t.max=t.min+nF(e)}function nU(t,e,r,n=0){let i=n?eI(r.min,r.max,n):r.min;t.min=e.min-i,t.max=t.min+nF(e)}function nV(t,e,r,n){nU(t.x,e.x,r.x,n?.x),nU(t.y,e.y,r.y,n?.y)}let nH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nW=new Set(["INPUT","SELECT","TEXTAREA"]);function nY(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}var nq=r(43079);function nX(t){return(0,nq.G)(t)&&"ownerSVGElement"in t}function nG(t,e,r){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}let nZ=new WeakMap,nQ=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:nX(n)&&"getBBox"in n?n.getBBox()[e]:n[r],nJ=nQ("inline","width","offsetWidth"),n0=nQ("block","height","offsetHeight");function n1({target:t,borderBoxSize:e}){nZ.get(t)?.forEach(r=>{r(t,{get width(){return nJ(t,e)},get height(){return n0(t,e)}})})}function n2(t){t.forEach(n1)}let n5=new Set;function n3(t,e){let r;return"function"==typeof t?(n5.add(t),a||(a=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n5.forEach(e=>e(t))},window.addEventListener("resize",a)),()=>{n5.delete(t),n5.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n2)),(r=nG(t)).forEach(t=>{let r=nZ.get(t);r||(r=new Set,nZ.set(t,r)),r.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let r=nZ.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let n6=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n4(t){return{point:{x:t.pageX,y:t.pageY}}}function n9(t,e,r,n){return nY(t,e,t=>n6(t)&&r(t,n4(t)),n)}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e),it=new Set(["auto","scroll"]);class ie{constructor(t,e,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ir(this.lastRawMoveEventInfo,this.transformPagePoint));let r=ia(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(t=r.offset,e={x:0,y:0},Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=tC;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ir(e,this.transformPagePoint),tT.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ia("pointercancel"===t.type?this.lastMoveEventInfo:ir(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,a),n&&n(t,a)},!n6(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const s=ir(n4(t),this.transformPagePoint),{point:l}=s,{timestamp:u}=tC;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,ia(s,this.history));const h={passive:!0,capture:!0};this.removeListeners=rT(n9(this.contextWindow,"pointermove",this.handlePointerMove,h),n9(this.contextWindow,"pointerup",this.handlePointerUp,h),n9(this.contextWindow,"pointercancel",this.handlePointerUp,h)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(it.has(t.overflowX)||it.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){let e=this.scrollPositions.get(t);if(!e)return;let r=t===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-e.x,y:n.y-e.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),tT.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tE(this.updatePoint)}}function ir(t,e){return e?{point:e(t.point)}:t}function ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ia({point:t},e){return{point:t,delta:ii(t,io(e)),offset:ii(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,r=null,n=io(t);for(;e>=0&&(r=t[e],!(n.timestamp-r.timestamp>tB(.1)));)e--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&n.timestamp-r.timestamp>2*tB(.1)&&(r=t[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e)}}function io(t){return t[t.length-1]}function is(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function il(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function iu(t,e,r){return{min:ic(t,e),max:ic(t,r)}}function ic(t,e){return"number"==typeof t?t:t[e]||0}let ih=new WeakMap;class id{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=t=>{e&&this.snapToCursor(n4(t).point),this.stopAnimation()},a=(t,e)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nj[t])return null;else return nj[t]=!0,()=>{nj[t]=!1};return nj.x||nj.y?null:(nj.x=nj.y=!0,()=>{nj.x=nj.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nN(t=>{let e=this.getAxisMotionValue(t).get()||0;if(k.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[t];n&&(e=nF(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),i&&tT.update(()=>i(t,e),!1,!0),rA(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),a&&tT.update(()=>a(t,e),!1,!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ie(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:n8(this.visualElement),element:this.visualElement.current})}stop(t,e){let r=t||this.latestPointerEvent,n=e||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&tT.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,r){let{drag:n}=this.getProps();if(!r||!ig(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:r},n){return void 0!==e&&t<e?t=n?eI(e,t,n.min):Math.max(t,e):void 0!==r&&t>r&&(t=n?eI(r,t,n.max):Math.min(t,r)),t}(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&rv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(t,{top:e,left:r,bottom:n,right:i}){return{x:is(t.x,r,i),y:is(t.y,e,n)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iu(t,"left","right"),y:iu(t,"top","bottom")}}(e),n!==this.constraints&&!rv(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nN(t=>{var e,n;let i;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],n=this.constraints[t],i={},void 0!==n.min&&(i.min=n.min-e.min),void 0!==n.max&&(i.max=n.max-e.min),i))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!rv(e))return!1;let n=e.current;te();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(t,e,r){let n=e0(t,r),{scroll:i}=e;return i&&(eG(n.x,i.offset.x),eG(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),o=(t=i.layout.layoutBox,{x:il(t.x,a.x),y:il(t.y,a.y)});if(r){let t=r(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eB(t))}return o}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(nN(o=>{if(!ig(o,e,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return rA(this.visualElement,t),r.start(nM(t,r,0,e,this.visualElement,!1))}stopAnimation(){nN(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nN(e=>{let{drag:r}=this.getProps();if(!ig(e,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(e);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[e],o=i.get()||0;i.set(t[e]-eI(r,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!rv(e)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nN(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var r,i;let a,o,s,u=e.get();n[t]=(r={min:u,max:u},i=this.constraints[t],a=.5,o=nF(r),(s=nF(i))>o?a=no(i.min,i.max-o,r.min):o>s&&(a=no(r.min,r.max-s,i.min)),l(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nN(e=>{if(!ig(e,t,null))return;let r=this.getAxisMotionValue(e),{min:i,max:a}=this.constraints[e];r.set(eI(i,a,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;ih.set(this.visualElement,this);let e=this.visualElement.current,r=n9(e,"pointerdown",t=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=t.target,a=i!==e&&(nW.has(i.tagName)||!0===i.isContentEditable);r&&n&&!a&&this.start(t)}),n=()=>{var r,n,i;let a,o,{dragConstraints:s}=this.getProps();rv(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),t||(r=e,n=s.current,a=n3(r,ip(i=()=>this.scalePositionWithinConstraints())),o=n3(n,ip(i)),t=()=>{a(),o()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tT.read(n);let o=nY(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nN(e=>{let r=this.getAxisMotionValue(e);r&&(this.originPoint[e]+=t[e].translate,r.set(r.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function ip(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ig(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}class im extends rw{constructor(t){super(t),this.removeGroupControls=t_,this.removeListeners=t_,this.controls=new id(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t_}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iy=t=>(e,r)=>{t&&tT.update(()=>t(e,r),!1,!0)};class iv extends rw{constructor(){super(...arguments),this.removePointerDownListener=t_}onPointerDown(t){this.session=new ie(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:iy(t),onStart:iy(e),onMove:iy(r),onEnd:(t,e)=>{delete this.session,n&&tT.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ix={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ib=r(77065);let iw=!1;class ik extends e2.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;i&&(e.group&&e.group.add(i),r&&r.register&&n&&r.register(i),iw&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ix.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==e&&a.setOptions({...a.options,layoutDependency:e}),iw=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||tT.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=e,r.root.didUpdate(),t8.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:n}=t;iw=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i_(t){let[e,r]=(0,ib.xQ)(),n=(0,e2.useContext)(e4.L);return(0,e6.jsx)(ik,{...t,layoutGroup:n,switchLayoutGroup:(0,e2.useContext)(ry),isPresent:e,safeToRemove:r})}let iM=eD.length,iS=t=>"string"==typeof t?parseFloat(t):t,iA=t=>"number"==typeof t||_.test(t);function iT(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iE=iR(0,.5,nr),iC=iR(.5,.95,t_);function iR(t,e,r){return n=>n<t?0:n>e?1:r(no(t,e,n))}function iP(t,e){t.min=e.min,t.max=e.max}function iL(t,e){iP(t.x,e.x),iP(t.y,e.y)}function iD(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iO(t,e,r,n,i){return t-=e,t=n+1/r*(t-n),void 0!==i&&(t=n+1/i*(t-n)),t}function i$(t,e,[r,n,i],a,o){!function(t,e=0,r=1,n=.5,i,a=t,o=t){if(k.test(e)&&(e=parseFloat(e),e=eI(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let s=eI(a.min,a.max,n);t===a&&(s-=e),t.min=iO(t.min,e,r,s,i),t.max=iO(t.max,e,r,s,i)}(t,e[r],e[n],e[i],e.scale,a,o)}let iI=["x","scaleX","originX"],ij=["y","scaleY","originY"];function iN(t,e,r,n){i$(t.x,e,iI,r?r.x:void 0,n?n.x:void 0),i$(t.y,e,ij,r?r.y:void 0,n?n.y:void 0)}function iF(t){return 0===t.translate&&1===t.scale}function iK(t){return iF(t.x)&&iF(t.y)}function iz(t,e){return t.min===e.min&&t.max===e.max}function iB(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iU(t,e){return iB(t.x,e.x)&&iB(t.y,e.y)}function iV(t){return nF(t.x)/nF(t.y)}function iH(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iW{constructor(){this.members=[]}add(t){tU(this.members,t);for(let e=this.members.length-1;e>=0;e--){let r=this.members[e];if(r===t||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(tV(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(tV(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=t.options;(void 0===n||n!==i)&&(t.resumeFrom=r,e&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iY=(t,e)=>t.depth-e.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(t){tU(this.children,t),this.isDirty=!0}remove(t){tV(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iY),this.isDirty=!1,this.children.forEach(t)}}let iX=["","X","Y","Z"],iG=0;function iZ(t,e,r,n){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function iQ({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(t={},r=e?.()){this.id=iG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i1),this.nodes.forEach(at),this.nodes.forEach(ae),this.nodes.forEach(i2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new iq)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tH),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let r=this.eventHandlers.get(t);r&&r.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nX(e)&&!(nX(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),t){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;tT.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,a;n=t,this.root.updateBlockedByResize=!0,r&&r(),e=et.now(),a=({timestamp:t})=>{let r=t-e;r>=250&&(tE(a),i())},tT.setup(a,!0),r=()=>tE(a),ix.hasAnimatedSinceResize&&(ix.hasAnimatedSinceResize=!1,this.nodes.forEach(i7))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||as,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iU(this.targetLayout,n),u=!e&&r;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...rM(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||i7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ar),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:r}=e.options;if(!r)return;let n=r.props[rm];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tT,!(t||r))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:r}=this.options;if(void 0===e&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(i6),this.nodes.forEach(i3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i9),this.nodes.forEach(i8),this.nodes.forEach(iJ),this.nodes.forEach(i0)):this.nodes.forEach(i4),this.clearAllSnapshots();let t=et.now();tC.delta=l(0,1e3/60,t-tC.timestamp),tC.timestamp=t,tC.isProcessing=!0,tR.update.process(tC),tR.preRender.process(tC),tR.render.process(tC),tC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(an)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tT.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tT.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nF(this.snapshot.measuredBox.x)||nF(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iK(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eH(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let r=this.measurePageBox(),n=this.removeElementScroll(r);return t&&(n=this.removeTransform(n)),ac((e=n).x),ac(e.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ad))){let{scroll:t}=this.root;t&&(eG(e.x,t.offset.x),eG(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(iL(e,t),this.scroll?.wasRoot)return e;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&iL(e,t),eG(e.x,i.offset.x),eG(e.y,i.offset.y))}return e}applyTransform(t,e=!1,r){let n=r||q();iL(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eG(n.x,-r.scroll.offset.x),eG(n.y,-r.scroll.offset.y)),eH(r.latestValues)&&eJ(n,r.latestValues,r.layout?.layoutBox)}return eH(this.latestValues)&&eJ(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=q();iL(e,t);for(let t=0;t<this.path.length;t++){let r,n=this.path[t];eH(n.latestValues)&&(n.instance&&(eV(n.latestValues)&&n.updateSnapshot(),iL(r=q(),n.measurePageBox())),iN(e,n.latestValues,n.snapshot?.layoutBox,r))}return eH(this.latestValues)&&iN(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==e;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=tC.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nB(o.x,s.x,l.x,u?.x),nB(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iL(this.target,this.layout.layoutBox),eX(this.target,this.targetDelta)):iL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eV(this.parent.latestValues)||eW(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,r){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),nV(this.relativeTargetOrigin,e,r,this.options.layoutAnchor||void 0),iL(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tC.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;iL(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(t,e,r,n=!1){let i,a,o=r.length;if(o){e.x=e.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eG(t.x,-i.scroll.offset.x),eG(t.y,-i.scroll.offset.y)),a&&(e.x*=a.x.scale,e.y*=a.y.scale,eX(t,a)),n&&eH(i.latestValues)&&eJ(t,i.latestValues,i.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:s}=t;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iD(this.prevProjectionDelta.x,this.projectionDelta.x),iD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nz(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&iH(this.projectionDelta.x,this.prevProjectionDelta.x)&&iH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=W(),this.projectionDelta=W(),this.projectionDeltaWithTransform=W()}setAnimationOrigin(t,e=!1,r){let n,i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=W();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=q(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(u&&!h&&!0===this.options.crossfade&&!this.path.some(ao));this.animationProgress=0;let f=r?.interpolateProjection(t);this.mixTargetDelta=e=>{let r=e/1e3,i=f?.(r);if(i?(s.x.translate=i.x,s.x.scale=eI(t.x.scale,1,r),s.x.origin=t.x.origin,s.x.originPoint=t.x.originPoint,s.y.translate=i.y,s.y.scale=eI(t.y.scale,1,r),s.y.origin=t.y.origin,s.y.originPoint=t.y.originPoint):(ai(s.x,t.x,r),ai(s.y,t.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,g,m,y,v;nV(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,y=l,v=r,aa(g.x,m.x,y.x,v),aa(g.y,m.y,y.y,v),n&&(c=this.relativeTarget,p=n,iz(c.x,p.x)&&iz(c.y,p.y))&&(this.isProjectionDirty=!1),n||(n=q()),iL(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,r,n,i,a){i?(t.opacity=eI(0,r.opacity??1,iE(n)),t.opacityExit=eI(e.opacity??1,0,iC(n))):a&&(t.opacity=eI(e.opacity??1,r.opacity??1,n));for(let i=0;i<iM;i++){let a=eD[i],o=iT(e,a),s=iT(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||iA(o)===iA(s)?(t[a]=Math.max(eI(iS(o),iS(s),n),0),(k.test(s)||k.test(o))&&(t[a]+="%")):t[a]=s)}(e.rotate||r.rotate)&&(t.rotate=eI(e.rotate||0,r.rotate||0,n))}(o,a,this.latestValues,r,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tE(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tT.update(()=>{var e,r,n;let i;ix.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ei(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,r=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=X(e)?e:ei(e)).start(nM("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:r,layout:n,latestValues:i}=t;if(e&&r&&n){if(this!==t&&this.layout&&n&&ah(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||q();let e=nF(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let n=nF(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+n}iL(e,r),eJ(e,i),nz(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iW),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(e=!0),!e)return;let n={};r.z&&iZ("z",t,n,this.animationValues);for(let e=0;e<iX.length;e++)iZ(`rotate${iX[e]}`,t,n,this.animationValues),iZ(`skew${iX[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ro(e?.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ro(e?.pointerEvents)||""),this.hasProjected&&!eH(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(t,e,r){let n="",i=t.x.translate/e.x,a=t.y.translate/e.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:t,rotate:e,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=r;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),i&&(n+=`rotate(${i}deg) `),a&&(n+=`rotateX(${a}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),t.transform=a;let{x:o,y:s}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?t.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,ej){if(void 0===i[e])continue;let{correct:r,applyTo:o,isCSSVariable:s}=ej[e],l="none"===a?i[e]:r(i[e],n);if(o){let e=o.length;for(let r=0;r<e;r++)t[o[r]]=l}else s?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ro(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(i3),this.root.sharedNodes.clear()}}}function iJ(t){t.updateLayout()}function i0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=t.layout,{animationType:i}=t.options,a=e.source!==t.layout.source;if("size"===i)nN(t=>{let n=a?e.measuredBox[t]:e.layoutBox[t],i=nF(n);n.min=r[t].min,n.max=n.min+i});else if("x"===i||"y"===i){let t="x"===i?"y":"x";iP(a?e.measuredBox[t]:e.layoutBox[t],r[t])}else ah(i,e.layoutBox,r)&&nN(n=>{let i=a?e.measuredBox[n]:e.layoutBox[n],o=nF(r[n]);i.max=i.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=W();nz(o,r,e.layoutBox);let s=W();a?nz(s,t.applyTransform(n,!0),e.measuredBox):nz(s,r,e.layoutBox);let l=!iK(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let o=t.options.layoutAnchor||void 0,s=q();nV(s,e.layoutBox,i.layoutBox,o);let l=q();nV(l,r,a.layoutBox,o),iU(s,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=s,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function i5(t){t.clearSnapshot()}function i3(t){t.clearMeasurements()}function i6(t){t.isLayoutDirty=!0,t.updateLayout()}function i4(t){t.isLayoutDirty=!1}function i9(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function i8(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function i7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function at(t){t.resolveTargetDelta()}function ae(t){t.calcProjection()}function ar(t){t.resetSkewAndRotation()}function an(t){t.removeLeadSnapshot()}function ai(t,e,r){t.translate=eI(e.translate,0,r),t.scale=eI(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function aa(t,e,r,n){t.min=eI(e.min,r.min,n),t.max=eI(e.max,r.max,n)}function ao(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let as={duration:.45,ease:[.4,0,.1,1]},al=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),au=al("applewebkit/")&&!al("chrome/")?Math.round:t_;function ac(t){t.min=au(t.min),t.max=au(t.max)}function ah(t,e,r){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iV(e)-iV(r)))}function ad(t){return t!==t.root&&t.scroll?.wasRoot}let af=iQ({attachResizeListener:(t,e)=>nY(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ap={current:void 0},ag=iQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ap.current){let t=new af({});t.mount(window),t.setOptions({layoutScroll:!0}),ap.current=t}return ap.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function am(t,e){let r=nG(t),n=new AbortController;return[r,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ay(t,e,r){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&tT.postRender(()=>i(e,n4(e)))}class av extends rw{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,r={}){let[n,i,a]=am(t,r);return n.forEach(t=>{let r,n=!1,a=!1,o=e=>{r&&(r(e),r=void 0),t.removeEventListener("pointerleave",l)},s=t=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){a=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nj.x||nj.y)return;a=!1;let o=e(t,n);"function"==typeof o&&(r=o,t.addEventListener("pointerleave",l,i))},i),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}(t,(t,e)=>(ay(this.node,e,"Start"),t=>ay(this.node,t,"End"))))}unmount(){}}class ax extends rw{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rT(nY(this.node.current,"focus",()=>this.onFocus()),nY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ab=r(41426);let aw=(t,e)=>!!e&&(t===e||aw(t,e.parentElement)),ak=new WeakSet;function a_(t){return e=>{"Enter"===e.key&&t(e)}}function aM(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function aS(t){return n6(t)&&!(nj.x||nj.y)}let aA=new WeakSet;function aT(t,e,r){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&tT.postRender(()=>i(e,n4(e)))}class aE extends rw{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:r}=this.node.props;this.unmount=function(t,e,r={}){let[n,i,a]=am(t,r),o=t=>{let n=t.currentTarget;if(!aS(t)||aA.has(t))return;ak.add(n),r.stopPropagation&&aA.add(t);let a=e(n,t),o={...i,capture:!0},s=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),ak.has(n)&&ak.delete(n),aS(t)&&"function"==typeof a&&a(t,{success:e})},l=t=>{s(t,n===window||n===document||r.useGlobalTarget||aw(n,t.target))},u=t=>{s(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{((r.useGlobalTarget?window:t).addEventListener("pointerdown",o,i),(0,ab.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let r=t.currentTarget;if(!r)return;let n=a_(()=>{if(ak.has(r))return;aM(r,"down");let t=a_(()=>{aM(r,"up")});r.addEventListener("keyup",t,e),r.addEventListener("blur",()=>aM(r,"cancel"),e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)})(t,i)),nH.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(aT(this.node,e,"Start"),(t,{success:e})=>aT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:r?.tap===!1})}unmount(){}}let aC=new WeakMap,aR=new WeakMap,aP=t=>{let e=aC.get(t.target);e&&e(t)},aL=t=>{t.forEach(aP)},aD={some:0,all:1};class aO extends rw{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:aD[a]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=e?r:n;i&&i(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let r=t||document;aR.has(r)||aR.set(r,{});let n=aR.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(aL,{root:t,...e})),n[i]}(s),aC.set(t,l),e.observe(t),()=>{aC.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let a$=function(t,e){if("u"<typeof Proxy)return rb;let r=new Map,n=(r,n)=>rb(r,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,rb(a,void 0,t,e)),r.get(a))})}({animation:{Feature:nO},exit:{Feature:nI},inView:{Feature:aO},tap:{Feature:aE},focus:{Feature:ax},hover:{Feature:av},pan:{Feature:iv},drag:{Feature:im,ProjectionNode:ag,MeasureLayout:i_},layout:{ProjectionNode:ag,MeasureLayout:i_}},(t,e)=>e.isSVG??e3(t)?new ez(e):new e1(e,{allowProjection:t!==e2.Fragment}))},10263:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},11039:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},11953:(t,e,r)=>{"use strict";r.d(e,{p:()=>d});var n=r(69266),i=r(12566),a=r(8934),o=r(85933),s=r(43745),l=r(69611),u=r(82909),c=r(20660),h=r(63962);let d=n.forwardRef(function(t,e){let{className:r,render:n,style:d,...f}=t,p=(0,i.r)(),{side:g,align:m}=(0,a.r)(),y=p.useState("open"),v=p.useState("instantType"),x=p.useState("transitionStatus"),b=p.useState("popupProps"),w=p.useState("floatingRootContext"),k=p.useState("closeDelay");return(0,s.v)({open:y,ref:p.context.popupRef,onComplete(){y&&p.context.onOpenChangeComplete?.(!0)}}),(0,c.a)(w,{closeDelay:k}),(0,l.o)("div",t,{state:{open:y,side:g,align:m,instant:v,transitionStatus:x},ref:[e,p.context.popupRef,p.useStateSetter("popupElement")],props:[h.Ls,b,(0,u.d)(x),f],stateAttributesMapping:o.LM})})},12019:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},12318:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(47552),i=r(62623);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")},12437:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof b||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return f;if("string"==typeof e){var a=e.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;p[s]=e,i=s}return!n&&i&&(f=i),i||!n&&f},v=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},x={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return x},f.isValid=function(){return this.$d.toString()!==u},f.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return v(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<v(t)},f.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var u=this,c=!!x.u(o)||o,h=x.p(t),d=function(t,e){var r=x.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return c?r:r.endOf("day")},f=function(t,e){return x.w(u.toDate()[t].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},p=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return c?d(1,0):d(31,11);case a:return c?d(1,g):d(0,g+1);case i:var v=this.$locale().weekStart||0,b=(p<v?p+7:p)-v;return d(c?m-b:m+(6-b),g);case"day":case l:return f(y+"Hours",0);case n:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case e:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,o){var u,c=x.p(i),h="set"+(this.$u?"UTC":""),d=((u={}).day=h+"Date",u[l]=h+"Date",u[a]=h+"Month",u[s]=h+"FullYear",u[n]=h+"Hours",u[r]=h+"Minutes",u[e]=h+"Seconds",u[t]=h+"Milliseconds",u)[c],f="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var p=this.clone().set(l,1);p.$d[d](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[x.p(t)]()},f.add=function(t,o){var l,u=this;t=Number(t);var c=x.p(o),h=function(e){var r=v(u);return x.w(r.date(r.date()+Math.round(e*t)),u)};if(c===a)return this.set(a,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return h(1);if(c===i)return h(7);var d=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[c]||1,f=this.$d.getTime()+t*d;return x.w(f,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=r.meridiem,f=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},p=function(t){return x.s(a%12||12,t,"0")},g=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,l,2);case"ddd":return f(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(t,l,u){var c,h=this,d=x.p(l),f=v(t),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return x.m(h,f)};switch(d){case s:c=m()/12;break;case a:c=m();break;case o:c=m()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return u?c:x.a(c)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},f.clone=function(){return x.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),w=b.prototype;return v.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,b,v),t.$i=!0),v},v.locale=y,v.isDayjs=m,v.unix=function(t){return v(1e3*t)},v.en=p[f],v.Ls=p,v.p={},v}()},12566:(t,e,r)=>{"use strict";r.d(e,{O:()=>a,r:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(t){let e=i.useContext(a);if(void 0===e&&!t)throw Error((0,n.A)(50));return e}},12720:(t,e,r)=>{"use strict";r.d(e,{M:()=>x});var n=r(69266),i=r(33914),a=r(66758),o=r(66538),s=r(9542),l=r(69611),u=r(79621),c=r(23754),h=r(78914),d=r(26564),f=r(65205),p=r(67048),g=r(89121),m=r(53402),y=r(27944),v=r(6561);let x=n.forwardRef(function(t,e){let{className:r,disabled:x=!1,render:b,value:w,id:k,nativeButton:_=!0,style:M,...S}=t,{value:A,getTabPanelIdByValue:T,onValueChange:E,orientation:C,tabActivationDirection:R}=(0,f.z)(),{activateOnFocus:P,registerTabResizeObserverElement:L,tabsListElement:D}=(0,g.b)(),{highlightedIndex:O,onHighlightedIndexChange:$}=(0,d.G)(),I=(0,s.e)(k),j=n.useMemo(()=>({disabled:x,id:I,value:w}),[x,I,w]),{compositeProps:N,compositeRef:F,index:K}=(0,h.k)({metadata:j}),z=w===A,B=n.useRef(!1),U=n.useRef(null),V=(0,o.K)(t=>{U.current?.(),U.current=t?L(t):null});(0,a.g)(()=>{if(B.current){B.current=!1;return}if(z&&K>-1&&O!==K){if(null!=D){let t=(0,v.RS)((0,i.R)(D));if(t&&(0,v.gR)(D,t))return}x||$(K)}},[z,K,O,$,x,D]);let{getButtonProps:H,buttonRef:W}=(0,u.s)({disabled:x,native:_,focusableWhenDisabled:!0}),Y=T(w),q=n.useRef(!1),X=n.useRef(!1);function G(t){E(w,(0,m.d)(y.dv,t.nativeEvent,void 0,{activationDirection:"none"}))}return(0,l.o)("button",t,{state:{disabled:x,active:z,orientation:C,tabActivationDirection:R},ref:[e,W,F,V],props:[N,{role:"tab","aria-controls":Y,"aria-selected":z,id:I,onClick:function(t){z||x||G(t)},onFocus:function(t){z||x||P&&(!q.current||X.current)&&G(t)},onPointerDown:function(t){if(z||x)return;q.current=!0,X.current=0===t.button;let e=(0,i.R)(t.currentTarget);function r(){q.current=!1,X.current=!1,e.removeEventListener("pointerup",r),e.removeEventListener("pointercancel",r)}e.addEventListener("pointerup",r),e.addEventListener("pointercancel",r)},[c.h]:z?"":void 0,onKeyDownCapture(){B.current=!0}},S,H],stateAttributesMapping:p.h})})},13050:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(17854);let i=(t,e)=>(0,n.A)(t,"l",-e)},13344:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},14203:(t,e,r)=>{"use strict";r.d(e,{D:()=>l});var n=r(69266),i=r(12566),a=r(25330),o=r(81490),s=r(7962);let l=n.forwardRef(function(t,e){let{keepMounted:r=!1,...n}=t;return(0,i.r)().useState("mounted")||r?(0,s.jsx)(a.U.Provider,{value:r,children:(0,s.jsx)(o.F,{ref:e,...n})}):null})},14510:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]])},15104:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]])},15351:(t,e,r)=>{"use strict";r.d(e,{a:()=>c});var n=r(69266),i=r(74388),a=r(66538),o=r(96910),s=r(25905),l=r(69611),u=r(7962);let c=n.memo(n.forwardRef(function(t,e){let{render:r,className:c,value:h,defaultValue:d,onValueChange:f,disabled:p=!1,style:g,"aria-labelledby":m,...y}=t,[v,x]=n.useState(void 0),[b,w]=(0,i.q)({controlled:h,default:d,name:"MenuRadioGroup"}),k=(0,a.K)((t,e)=>{f?.(t,e),e.isCanceled||w(t)}),_=(0,l.o)("div",t,{state:{disabled:p},ref:e,props:{role:"group","aria-labelledby":m??v,"aria-disabled":p||void 0,...y}}),M=n.useMemo(()=>({value:b,setValue:k,disabled:p}),[b,k,p]);return(0,u.jsx)(s.c.Provider,{value:x,children:(0,u.jsx)(o.h.Provider,{value:M,children:_})})}))},15450:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},15948:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},17005:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(96411).createAsyncLocalStorage)()},17247:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},17339:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},17854:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47552),i=r(47057);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},17864:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]])},18903:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},23380:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(17854);let i=(t,e)=>(0,n.A)(t,"l",e)},23457:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},23754:(t,e,r)=>{"use strict";r.d(e,{h:()=>n});let n="data-composite-item-active"},24022:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-top",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]])},24722:(t,e,r)=>{"use strict";r.d(e,{i:()=>i});var n=r(35329);function i(t){return(0,n.i)(t)}},25033:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17005)},25330:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,l:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(48));return t}},25905:(t,e,r)=>{"use strict";r.d(e,{T:()=>o,c:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(31));return t}},26232:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},26575:(t,e,r)=>{"use strict";r.d(e,{p:()=>p});var n=r(69266),i=r(66758),a=r(12566),o=r(8934),s=r(52333),l=r(95522),u=r(25330),c=r(73146),h=r(60601),d=r(5733),f=r(7962);let p=n.forwardRef(function(t,e){let{render:r,className:n,anchor:p,positionMethod:g="absolute",side:m="bottom",align:y="center",sideOffset:v=0,alignOffset:x=0,collisionBoundary:b="clipping-ancestors",collisionPadding:w=5,arrowPadding:k=5,sticky:_=!1,disableAnchorTracking:M=!1,collisionAvoidance:S=c.Pe,style:A,...T}=t,E=(0,a.r)(),C=(0,u.l)(),R=(0,s.fI)(),P=E.useState("open"),L=E.useState("mounted"),D=E.useState("floatingRootContext"),O=E.useState("instantType"),$=E.useState("transitionStatus"),I=E.useState("adaptiveOrigin"),j=E.context.inlineRectCoordsRef,N=(0,l.s)({anchor:p,floatingRootContext:D,positionMethod:g,mounted:L,side:m,sideOffset:v,align:y,alignOffset:x,arrowPadding:k,collisionBoundary:b,collisionPadding:w,sticky:_,disableAnchorTracking:M,keepMounted:C,nodeId:R,collisionAvoidance:S,adaptiveOrigin:I,inline:(0,d._8)(j)}),F=N.update;(0,i.g)(()=>{P&&L&&F()},[P,L,F]);let K={open:P,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:O},z=(0,h.i)(t,K,{styles:N.positionerStyles,transitionStatus:$,props:T,refs:[e,E.useStateSetter("positionerElement")],hidden:!L,inert:!P});return(0,f.jsx)(o.w.Provider,{value:N,children:(0,f.jsx)(s.$c,{id:R,children:z})})})},26690:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},30973:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(80417),i=r(69266),a=r(53949),o=r(12566),s=r(85933),l=r(69611),u=r(9542),c=r(1424),h=r(63962),d=r(5733),f=r(8675),p=r(65905),g=r(17499),m=r(79718);let y=(0,a.nk)(function(t,e){let{render:r,className:a,delay:y,closeDelay:v,id:x,payload:b,handle:w,style:k,..._}=t,M=(0,o.r)(!0),S=(0,c.f)(w)??M;if(!S)throw Error((0,n.A)(89));let A=(0,u.e)(x),T=S.useState("isTriggerActive",A),E=S.useState("isOpenedByTrigger",A),C=S.useState("floatingRootContext"),R=S.context.inlineRectCoordsRef,P=i.useRef(null),L=y??f.r,D=v??f.V,{registerTrigger:O,isMountedByThisTrigger:$}=(0,h.L_)(A,P,S,{payload:b,closeDelay:D}),I=(0,p.j)(C,{mouseOnly:!0,move:!1,handleClose:(0,g.i)(),delay:()=>({open:L,close:D}),triggerElementRef:P,isActiveTrigger:T,isClosing:()=>"ending"===S.select("transitionStatus")}),j=(0,m.i)(C,{delay:L}),N=S.useState("triggerProps",$),F=(0,d.WB)(R,E);return(0,l.o)("a",t,{state:{open:E},ref:[e,O,P],props:[I,j.reference,N,F,{id:A},_],stateAttributesMapping:s.qV})})},31026:(t,e,r)=>{"use strict";r.d(e,{p:()=>p});var n=r(69266),i=r(74388),a=r(66758),o=r(66538),s=r(69611),l=r(63717),u=r(65205),c=r(67048),h=r(53402),d=r(27944),f=r(7962);let p=n.forwardRef(function(t,e){let{className:r,defaultValue:p=0,onValueChange:y,orientation:v="horizontal",render:x,value:b,style:w,...k}=t,_=void 0!==t.defaultValue,M=n.useRef([]),[S,A]=n.useState(()=>new Map),[T,E]=(0,i.q)({controlled:b,default:p,name:"Tabs",state:"value"}),C=void 0!==b,[R,P]=n.useState(()=>new Map),L=n.useRef(void 0),D=n.useCallback(t=>g(R,t),[R]),[O,$]=n.useState(()=>({previousValue:T,tabActivationDirection:"none"})),{previousValue:I,tabActivationDirection:j}=O,N=j,F=!1;I!==T&&(N=m(I,T,v,R),F=null!=I&&null!=T&&null==D(T));let K=F?I:T,z=I!==K||j!==N;(0,a.g)(()=>{z&&$({previousValue:K,tabActivationDirection:N})},[K,z,N]);let B=(0,o.K)((t,e)=>{e.activationDirection=m(T,t,v,R),y?.(t,e),e.isCanceled||E(t)}),U=(0,o.K)((t,e)=>{y?.(t,(0,h.d)(e,void 0,void 0,{activationDirection:"none"}))}),V=(0,o.K)((t,e)=>(A(r=>{let n=new Map(r);return n.set(t,e),n}),()=>{A(r=>{if(r.get(t)!==e)return r;let n=new Map(r);return n.delete(t),n})})),H=n.useCallback(t=>S.get(t),[S]),W=n.useCallback(t=>{for(let e of R.values())if(t===e.value)return e.id},[R]),Y=n.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:W,getTabPanelIdByValue:H,onValueChange:B,orientation:v,registerMountedTabPanel:V,setTabMap:P,tabActivationDirection:N,value:T}),[D,W,H,B,v,V,P,N,T]),q=n.useMemo(()=>{for(let t of R.values())if(t.value===T)return t},[R,T]),X=n.useMemo(()=>{for(let t of R.values())if(!t.disabled)return t.value},[R]),G=n.useRef(!_),Z=n.useRef(p),Q=n.useRef(_),J=n.useRef(!1);(0,a.g)(()=>{if(C)return;function t(t,e){E(t),$({previousValue:t,tabActivationDirection:"none"}),U(t,e),G.current=!1}if(0===R.size){J.current&&null!==T&&!L.current?.isConnected&&t(null,d.c);return}J.current=!0,L.current=R.keys().next().value;let e=q?.disabled,r=null==q&&null!==T;if(e||T!==Z.current||(Q.current=!1),Q.current&&e&&T===Z.current)return;let n=G.current;if(e||r){let r=X??null;if(T===r){G.current=!1;return}let i=d.c;n?i=d.Vh:e&&(i=d.r9),t(r,i);return}n&&null!=q&&(U(T,d.Vh),G.current=!1)},[X,C,U,q,E,R,T]);let tt={orientation:v,tabActivationDirection:N},te=(0,s.o)("div",t,{state:tt,ref:e,props:k,stateAttributesMapping:c.h});return(0,f.jsx)(u.G.Provider,{value:Y,children:(0,f.jsx)(l.u,{elementsRef:M,children:te})})});function g(t,e){for(let[r,n]of t.entries())if(e===n.value)return r;return null}function m(t,e,r,n){if(null==t||null==e)return"none";let[i,a,o]="horizontal"===r?["left","left","right"]:["top","up","down"],s=g(n,t),l=g(n,e);if(null==s||null==l)return s!==l&&("number"==typeof t||"string"==typeof t)&&typeof t==typeof e?e>t?o:a:"none";let u=s.getBoundingClientRect()[i],c=l.getBoundingClientRect()[i];return c<u?a:c>u?o:"none"}},31052:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},31175:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]])},31210:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},31217:(t,e,r)=>{"use strict";r.d(e,{$$:()=>g,Es:()=>f,KG:()=>y,Ks:()=>T,Ll:()=>s,Re:()=>M,Sw:()=>a,TW:()=>d,WQ:()=>_,YG:()=>w,YN:()=>m,ZC:()=>x,_q:()=>p,ag:()=>C,e_:()=>A,jn:()=>i,kx:()=>S,l6:()=>o,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>h,zk:()=>l});var n=r(69266);function i(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,n.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}let a="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(t){let e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object global]"===e}function s(t){return"nodeType"in t}function l(t){var e,r;return t?o(t)?t:s(t)&&null!=(e=null==(r=t.ownerDocument)?void 0:r.defaultView)?e:window:window}function u(t){let{Document:e}=l(t);return t instanceof e}function c(t){return!o(t)&&t instanceof l(t).HTMLElement}function h(t){return t instanceof l(t).SVGElement}function d(t){return t?o(t)?t.document:s(t)?u(t)?t:c(t)||h(t)?t.ownerDocument:document:document:document}let f=a?n.useLayoutEffect:n.useEffect;function p(t){let e=(0,n.useRef)(t);return f(()=>{e.current=t}),(0,n.useCallback)(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return null==e.current?void 0:e.current(...r)},[])}function g(){let t=(0,n.useRef)(null);return[(0,n.useCallback)((e,r)=>{t.current=setInterval(e,r)},[]),(0,n.useCallback)(()=>{null!==t.current&&(clearInterval(t.current),t.current=null)},[])]}function m(t,e){void 0===e&&(e=[t]);let r=(0,n.useRef)(t);return f(()=>{r.current!==t&&(r.current=t)},e),r}function y(t,e){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let e=t(r.current);return r.current=e,e},[...e])}function v(t){let e=p(t),r=(0,n.useRef)(null),i=(0,n.useCallback)(t=>{t!==r.current&&(null==e||e(t,r.current)),r.current=t},[]);return[r,i]}function x(t){let e=(0,n.useRef)();return(0,n.useEffect)(()=>{e.current=t},[t]),e.current}let b={};function w(t,e){return(0,n.useMemo)(()=>{if(e)return e;let r=null==b[t]?0:b[t]+1;return b[t]=r,t+"-"+r},[t,e])}function k(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((e,r)=>{for(let[n,i]of Object.entries(r)){let r=e[n];null!=r&&(e[n]=r+t*i)}return e},{...e})}}let _=k(1),M=k(-1);function S(t){if(!t)return!1;let{KeyboardEvent:e}=l(t.target);return e&&t instanceof e}function A(t){if(function(t){if(!t)return!1;let{TouchEvent:e}=l(t.target);return e&&t instanceof e}(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:r}=t.touches[0];return{x:e,y:r}}else if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:r}=t.changedTouches[0];return{x:e,y:r}}}return"clientX"in t&&"clientY"in t?{x:t.clientX,y:t.clientY}:null}let T=Object.freeze({Translate:{toString(t){if(!t)return;let{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;let{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[T.Translate.toString(t),T.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:n}=t;return e+" "+r+"ms "+n}}}),E="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function C(t){return t.matches(E)?t:t.querySelector(E)}},31848:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},33349:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(60008);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},33353:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-pen-line",[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]])},33705:(t,e,r)=>{"use strict";r.d(e,{W:()=>o,p:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(14));return t}},34506:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},35182:(t,e,r)=>{"use strict";r.d(e,{t:()=>n});let n=(0,r(69266).createContext)(null)},35329:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},35592:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},36919:(t,e,r)=>{"use strict";r.d(e,{I:()=>o});var n=r(37847),i=r(85784),a=r(69266);function o(){n.r.current||(0,i.Uu)();let[t]=(0,a.useState)(n.O.current);return t}},37847:(t,e,r)=>{"use strict";r.d(e,{O:()=>n,r:()=>i});let n={current:null},i={current:!1}},37918:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-bottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]])},39341:(t,e,r)=>{"use strict";r.d(e,{a:()=>o});var n,i=r(97591);let a=((n={}).checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.highlighted="data-highlighted",n),o={checked:t=>t?{[a.checked]:""}:{[a.unchecked]:""},...i.G}},39410:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},39569:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},40155:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},40678:(t,e,r)=>{"use strict";r.d(e,{c:()=>j});var n=r(80417),i=r(69266),a=r(34517),o=r(33914),s=r(53949),l=r(66538),u=r(66758),c=r(48356),h=r(52333),d=r(65905),f=r(17499),p=r(69738),g=r(79718),m=r(24082),y=r(6561),v=r(79833),x=r(85933),b=r(69611),w=r(79621),k=r(41775),_=r(78914);function M(t){let{render:e,className:r,style:n,state:i=c.t0,props:a=c.Ml,refs:o=c.Ml,metadata:s,stateAttributesMapping:l,tag:u="div",...h}=t,{compositeProps:d,compositeRef:f}=(0,_.k)({metadata:s});return(0,b.o)(u,t,{state:i,ref:[f,...o],props:[d,...a,h],stateAttributesMapping:l})}var S=r(26564),A=r(28991),T=r(1424),E=r(63962),C=r(54005),R=r(9542),P=r(27944),L=r(92622),D=r(73146),O=r(69609),$=r(52686),I=r(7962);let j=(0,s.nk)(function(t,e){let r,{render:s,className:_,style:j,disabled:N=!1,nativeButton:F=!0,id:K,openOnHover:z,delay:B=100,closeDelay:U=0,handle:V,payload:H,...W}=t,Y=(0,v.Y)(!0),q=(0,T.f)(V)??Y?.store;if(!q)throw Error((0,n.A)(85));let X=(0,R.e)(K),G=q.useState("isTriggerActive",X),Z=q.useState("floatingRootContext"),Q=q.useState("isOpenedByTrigger",X),J=q.useState("triggerPopupId",X),tt=i.useRef(null),te=(r=(0,L.t)(!0),i.useMemo(()=>r?{type:"menubar",context:r}:{type:void 0},[r])),tr=(0,S.G)(!0),tn=(0,h.cq)(),ti=i.useMemo(()=>tn??new m.k,[tn]),ta=(0,h.fI)(ti),to=(0,h.R1)(),{registerTrigger:ts,isMountedByThisTrigger:tl}=(0,E.L_)(X,tt,q,{payload:H,closeDelay:U,parent:te,floatingTreeRoot:ti,floatingNodeId:ta,floatingParentNodeId:to,keyboardEventRelay:tr?.relayKeyboardEvent}),tu="menubar"===te.type,tc=q.useState("disabled"),th=N||tc||tu&&te.context.disabled,{getButtonProps:td,buttonRef:tf}=(0,w.s)({disabled:th,native:F});i.useEffect(()=>{Q||void 0!==te.type||(q.context.allowMouseUpTriggerRef.current=!1)},[q,Q,te.type]);let tp=i.useRef(null),tg=(0,a.Z)(),tm=(0,l.K)(t=>{if(!tp.current)return;tg.clear(),q.context.allowMouseUpTriggerRef.current=!1;let e=t.target;(0,y.gR)(tp.current,e)||(0,y.gR)(q.select("positionerElement"),e)||e===tp.current||null!=e&&(0,A.Q)(e)===q.select("rootId")||(0,k.U)(t,tp.current)||ti.events.emit("close",{domEvent:t,reason:P.LO})});i.useEffect(()=>{Q&&q.select("lastOpenChangeReason")===P.N7&&(0,o.R)(tp.current).addEventListener("mouseup",tm,{once:!0})},[Q,tm,q]);let ty=tu&&te.context.hasSubmenuOpen,tv=z??ty,tx=(0,d.j)(Z,{enabled:tv&&!th&&(!tu||ty&&!tl),handleClose:(0,f.i)({blockPointerEvents:!tu}),mouseOnly:!0,move:!1,restMs:void 0===te.type?B:void 0,delay:{close:U},triggerElementRef:tt,externalTree:ti,isActiveTrigger:G,isClosing:()=>"ending"===q.select("transitionStatus")}),tb=function(t,e){let r=(0,a.Z)(),[n,o]=i.useState(!1);return(0,u.g)(()=>{t&&e===P.N7?(o(!0),r.start(D.X3,()=>{o(!1)})):t||(r.clear(),o(!1))},[t,e,r]),n}(Q,q.select("lastOpenChangeReason")),tw=(0,p.k)(Z,{enabled:!th,event:Q&&tu?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===te.type&&tb}),tk=(0,g.i)(Z,{enabled:!th&&ty}),t_=function(t){let{enabled:e=!0,mouseDownAction:r,open:n}=t,a=i.useRef(!1);return i.useMemo(()=>e?{onMouseDown:t=>{("open"===r&&!n||"close"===r&&n)&&(a.current=!0,(0,o.R)(t.currentTarget).addEventListener("click",()=>{a.current=!1},{once:!0}))},onClick:t=>{a.current&&(a.current=!1,t.preventBaseUIHandler())}}:c.t0,[e,r,n])}({open:Q,enabled:tu,mouseDownAction:"open"}),tM=i.useMemo(()=>(0,$.v6)(tk.reference,tw.reference),[tk.reference,tw.reference]),tS=q.useState("triggerProps",tl),{preFocusGuardRef:tA,handlePreFocusGuardFocus:tT,handleFocusTargetFocus:tE}=(0,C.a)(q,tt),tC={disabled:th,open:Q},tR=[tp,e,tf,ts,tt],tP=[tM,tx??c.t0,tS,{"aria-haspopup":"menu","aria-controls":J,id:X,onMouseDown:t=>{q.select("open")||(tg.start(200,()=>{q.context.allowMouseUpTriggerRef.current=!0}),(0,o.R)(t.currentTarget).addEventListener("mouseup",tm,{once:!0}))}},tu?{role:"menuitem"}:{},t_,W,td],tL=(0,b.o)("button",t,{enabled:!tu,stateAttributesMapping:x.jL,state:tC,ref:tR,props:tP});return tu?(0,I.jsx)(M,{tag:"button",render:s,className:_,style:j,state:tC,refs:tR,props:tP,stateAttributesMapping:x.jL}):Q?(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(O.U,{ref:tA,onFocus:tT},`${X}-pre-focus-guard`),(0,I.jsx)(i.Fragment,{children:tL},X),(0,I.jsx)(O.U,{ref:q.context.triggerFocusTargetRef,onFocus:tE},`${X}-post-focus-guard`)]}):(0,I.jsx)(i.Fragment,{children:tL},X)})},40942:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]])},41144:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});let n=r(7962),i=r(69266),a=r(85279);function o(t){return{default:t&&"default"in t?t.default:t}}r(71762);let s={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},l=function(t){let e={...s,...t},r=(0,i.lazy)(()=>e.loader().then(o)),l=e.loading;function u(t){let o=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!e.ssr||!!e.loading,u=s?i.Suspense:i.Fragment,c=e.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...t})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...t})});return(0,n.jsx)(u,{...s?{fallback:o}:{},children:c})}return u.displayName="LoadableComponent",u}},41426:(t,e,r)=>{"use strict";r.d(e,{s:()=>i});var n=r(43079);function i(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},41513:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},41934:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},43016:(t,e,r)=>{"use strict";r.d(e,{R:()=>g});var n=r(69266),i=r(18652),a=r(66758),o=r(9542),s=r(97591),l=r(43745),u=r(47623),c=r(69611),h=r(54545),d=r(67048),f=r(65205);let p={...d.h,...s.G},g=n.forwardRef(function(t,e){let{className:r,value:s,render:d,keepMounted:g=!1,style:m,...y}=t,{value:v,getTabIdByPanelValue:x,orientation:b,tabActivationDirection:w,registerMountedTabPanel:k}=(0,f.z)(),_=(0,o.e)(),{ref:M,index:S}=(0,h.q)(),A=s===v,{mounted:T,transitionStatus:E,setMounted:C}=(0,u.$)(A),R=!T,P=x(s),L=n.useRef(null),D=(0,c.o)("div",t,{state:{hidden:R,orientation:b,tabActivationDirection:w,transitionStatus:E},ref:[e,M,L],props:[{"aria-labelledby":P,hidden:R,id:_,role:"tabpanel",tabIndex:A?0:-1,inert:(0,i.Y)(!A),"data-index":S},y],stateAttributesMapping:p});return((0,l.v)({open:A,ref:L,onComplete(){A||C(!1)}}),(0,a.g)(()=>{if(null!=_&&(!R||g))return k(s,_)},[R,g,s,_,k]),g||T)?D:null})},43079:(t,e,r)=>{"use strict";r.d(e,{G:()=>n});let n=t=>"object"==typeof t&&null!==t},43209:(t,e,r)=>{"use strict";r.d(e,{Mp:()=>tW,vL:()=>g,uN:()=>tp,cA:()=>tw,AN:()=>tx,IG:()=>t_,fp:()=>B,y$:()=>U,Sj:()=>q,Vy:()=>K,sl:()=>G,fF:()=>tG,PM:()=>tX,zM:()=>tQ,MS:()=>D,FR:()=>O});var n,i,a,o,s,l,u,c,h,d,f,p,g,m,y,v,x,b,w,k=r(69266),_=r(44911),M=r(31217);let S={display:"none"};function A(t){let{id:e,value:r}=t;return k.createElement("div",{id:e,style:S},r)}function T(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;return k.createElement("div",{id:e,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let E=(0,k.createContext)(null),C={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},R={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was moved over droppable area "+r.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was dropped over droppable area "+r.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function P(t){var e;let r,{announcements:n=R,container:i,hiddenTextDescribedById:a,screenReaderInstructions:o=C}=t,{announce:s,announcement:l}=function(){let[t,e]=(0,k.useState)("");return{announce:(0,k.useCallback)(t=>{null!=t&&e(t)},[]),announcement:t}}(),u=(0,M.YG)("DndLiveRegion"),[c,h]=(0,k.useState)(!1);if((0,k.useEffect)(()=>{h(!0)},[]),e=(0,k.useMemo)(()=>({onDragStart(t){let{active:e}=t;s(n.onDragStart({active:e}))},onDragMove(t){let{active:e,over:r}=t;n.onDragMove&&s(n.onDragMove({active:e,over:r}))},onDragOver(t){let{active:e,over:r}=t;s(n.onDragOver({active:e,over:r}))},onDragEnd(t){let{active:e,over:r}=t;s(n.onDragEnd({active:e,over:r}))},onDragCancel(t){let{active:e,over:r}=t;s(n.onDragCancel({active:e,over:r}))}}),[s,n]),r=(0,k.useContext)(E),(0,k.useEffect)(()=>{if(!r)throw Error("useDndMonitor must be used within a children of <DndContext>");return r(e)},[e,r]),!c)return null;let d=k.createElement(k.Fragment,null,k.createElement(A,{id:a,value:o.draggable}),k.createElement(T,{id:u,announcement:l}));return i?(0,_.createPortal)(d,i):d}function L(){}function D(t,e){return(0,k.useMemo)(()=>({sensor:t,options:null!=e?e:{}}),[t,e])}function O(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,k.useMemo)(()=>[...e].filter(t=>null!=t),[...e])}(n=d||(d={})).DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable";let $=Object.freeze({x:0,y:0});function I(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function j(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return r-n}function N(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return n-r}function F(t){let{left:e,top:r,height:n,width:i}=t;return[{x:e,y:r},{x:e+i,y:r},{x:e,y:r+n},{x:e+i,y:r+n}]}function K(t,e){if(!t||0===t.length)return null;let[r]=t;return e?r[e]:r}function z(t,e,r){return void 0===e&&(e=t.left),void 0===r&&(r=t.top),{x:e+.5*t.width,y:r+.5*t.height}}let B=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=z(e,e.left,e.top),a=[];for(let t of n){let{id:e}=t,n=r.get(e);if(n){let r=I(z(n),i);a.push({id:e,data:{droppableContainer:t,value:r}})}}return a.sort(j)},U=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=F(e),a=[];for(let t of n){let{id:e}=t,n=r.get(e);if(n){let r=F(n),o=Number((i.reduce((t,e,n)=>t+I(r[n],e),0)/4).toFixed(4));a.push({id:e,data:{droppableContainer:t,value:o}})}}return a.sort(j)},V=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=[];for(let t of n){let{id:n}=t,a=r.get(n);if(a){let r=function(t,e){let r=Math.max(e.top,t.top),n=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),a=Math.min(e.top+e.height,t.top+t.height);if(n<i&&r<a){let o=e.width*e.height,s=t.width*t.height,l=(i-n)*(a-r);return Number((l/(o+s-l)).toFixed(4))}return 0}(a,e);r>0&&i.push({id:n,data:{droppableContainer:t,value:r}})}}return i.sort(N)};function H(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:$}let W=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((t,e)=>({...t,top:t.top+ +e.y,bottom:t.bottom+ +e.y,left:t.left+ +e.x,right:t.right+ +e.x}),{...t})},Y={ignoreTransform:!1};function q(t,e){void 0===e&&(e=Y);let r=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:e,transformOrigin:n}=(0,M.zk)(t).getComputedStyle(t);e&&(r=function(t,e,r){let n=function(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}(e);if(!n)return t;let{scaleX:i,scaleY:a,x:o,y:s}=n,l=t.left-o-(1-i)*parseFloat(r),u=t.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?t.width/i:t.width,h=a?t.height/a:t.height;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l}}(r,e,n))}let{top:n,left:i,width:a,height:o,bottom:s,right:l}=r;return{top:n,left:i,width:a,height:o,bottom:s,right:l}}function X(t){return q(t,{ignoreTransform:!0})}function G(t,e){let r=[];return t?function n(i){var a,o;let s;if(null!=e&&r.length>=e||!i)return r;if((0,M.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,M.sb)(i)||(0,M.xZ)(i)||r.includes(i))return r;let l=(0,M.zk)(t).getComputedStyle(i);return(i!==t&&(void 0===(a=l)&&(a=(0,M.zk)(i).getComputedStyle(i)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(t=>{let e=a[t];return"string"==typeof e&&s.test(e)}))&&r.push(i),void 0===(o=l)&&(o=(0,M.zk)(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(t):r}function Z(t){let[e]=G(t,1);return null!=e?e:null}function Q(t){return M.Sw&&t?(0,M.l6)(t)?t:(0,M.Ll)(t)?(0,M.wz)(t)||t===(0,M.TW)(t).scrollingElement?window:(0,M.sb)(t)?t:null:null:null}function J(t){return(0,M.l6)(t)?t.scrollX:t.scrollLeft}function tt(t){return(0,M.l6)(t)?t.scrollY:t.scrollTop}function te(t){return{x:J(t),y:tt(t)}}function tr(t){return!!M.Sw&&!!t&&t===document.scrollingElement}function tn(t){let e={x:0,y:0},r=tr(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},n={x:t.scrollWidth-r.width,y:t.scrollHeight-r.height},i=t.scrollTop<=e.y,a=t.scrollLeft<=e.x;return{isTop:i,isLeft:a,isBottom:t.scrollTop>=n.y,isRight:t.scrollLeft>=n.x,maxScroll:n,minScroll:e}}(i=f||(f={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let ti={x:.2,y:.2};function ta(t){return t.reduce((t,e)=>(0,M.WQ)(t,te(e)),$)}let to=[["x",["left","right"],function(t){return t.reduce((t,e)=>t+J(e),0)}],["y",["top","bottom"],function(t){return t.reduce((t,e)=>t+tt(e),0)}]];class ts{constructor(t,e){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=G(e),n=ta(r);for(const[e,i,a]of(this.rect={...t},this.width=t.width,this.height=t.height,to))for(const t of i)Object.defineProperty(this,t,{get:()=>{let i=a(r),o=n[e]-i;return this.rect[t]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class tl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var e;return null==(e=this.target)?void 0:e.removeEventListener(...t)})},this.target=t}add(t,e,r){var n;null==(n=this.target)||n.addEventListener(t,e,r),this.listeners.push([t,e,r])}}function tu(t,e){let r=Math.abs(t.x),n=Math.abs(t.y);return"number"==typeof e?Math.sqrt(r**2+n**2)>e:"x"in e&&"y"in e?r>e.x&&n>e.y:"x"in e?r>e.x:"y"in e&&n>e.y}function tc(t){t.preventDefault()}function th(t){t.stopPropagation()}(a=p||(p={})).Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange",(o=g||(g={})).Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab";let td={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},tf=(t,e)=>{let{currentCoordinates:r}=e;switch(t.code){case g.Right:return{...r,x:r.x+25};case g.Left:return{...r,x:r.x-25};case g.Down:return{...r,y:r.y+25};case g.Up:return{...r,y:r.y-25}}};class tp{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:e}}=t;this.props=t,this.listeners=new tl((0,M.TW)(e)),this.windowListeners=new tl((0,M.zk)(e)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(p.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:e}=this.props,r=t.node.current;r&&function(t,e){if(void 0===e&&(e=q),!t)return;let{top:r,left:n,bottom:i,right:a}=e(t);Z(t)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}(r),e($)}handleKeyDown(t){if((0,M.kx)(t)){let{active:e,context:r,options:n}=this.props,{keyboardCodes:i=td,coordinateGetter:a=tf,scrollBehavior:o="smooth"}=n,{code:s}=t;if(i.end.includes(s))return void this.handleEnd(t);if(i.cancel.includes(s))return void this.handleCancel(t);let{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:$;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(t,{active:e,context:r.current,currentCoordinates:u});if(c){let e=(0,M.Re)(c,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=t.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:h,minScroll:d}=tn(r),f=function(t){if(t===document.scrollingElement){let{innerWidth:t,innerHeight:e}=window;return{top:0,left:0,right:t,bottom:e,width:t,height:e}}let{top:e,left:r,right:n,bottom:i}=t.getBoundingClientRect();return{top:e,left:r,right:n,bottom:i,width:t.clientWidth,height:t.clientHeight}}(r),p={x:Math.min(i===g.Right?f.right-f.width/2:f.right,Math.max(i===g.Right?f.left:f.left+f.width/2,c.x)),y:Math.min(i===g.Down?f.bottom-f.height/2:f.bottom,Math.max(i===g.Down?f.top:f.top+f.height/2,c.y))},m=i===g.Right&&!s||i===g.Left&&!l,y=i===g.Down&&!u||i===g.Up&&!a;if(m&&p.x!==c.x){let t=r.scrollLeft+e.x,a=i===g.Right&&t<=h.x||i===g.Left&&t>=d.x;if(a&&!e.y)return void r.scrollTo({left:t,behavior:o});a?n.x=r.scrollLeft-t:n.x=i===g.Right?r.scrollLeft-h.x:r.scrollLeft-d.x,n.x&&r.scrollBy({left:-n.x,behavior:o});break}if(y&&p.y!==c.y){let t=r.scrollTop+e.y,a=i===g.Down&&t<=h.y||i===g.Up&&t>=d.y;if(a&&!e.x)return void r.scrollTo({top:t,behavior:o});a?n.y=r.scrollTop-t:n.y=i===g.Down?r.scrollTop-h.y:r.scrollTop-d.y,n.y&&r.scrollBy({top:-n.y,behavior:o});break}}this.handleMove(t,(0,M.WQ)((0,M.Re)(c,this.referenceCoordinates),n))}}}handleMove(t,e){let{onMove:r}=this.props;t.preventDefault(),r(e)}handleEnd(t){let{onEnd:e}=this.props;t.preventDefault(),this.detach(),e()}handleCancel(t){let{onCancel:e}=this.props;t.preventDefault(),this.detach(),e()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function tg(t){return!!(t&&"distance"in t)}function tm(t){return!!(t&&"delay"in t)}tp.activators=[{eventName:"onKeyDown",handler:(t,e,r)=>{let{keyboardCodes:n=td,onActivation:i}=e,{active:a}=r,{code:o}=t.nativeEvent;if(n.start.includes(o)){let e=a.activatorNode.current;return(!e||t.target===e)&&(t.preventDefault(),null==i||i({event:t.nativeEvent}),!0)}return!1}}];class ty{constructor(t,e,r){var n;void 0===r&&(r=function(t){let{EventTarget:e}=(0,M.zk)(t);return t instanceof e?t:(0,M.TW)(t)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=e;const{event:i}=t,{target:a}=i;this.props=t,this.events=e,this.document=(0,M.TW)(a),this.documentListeners=new tl(this.document),this.listeners=new tl(r),this.windowListeners=new tl((0,M.zk)(a)),this.initialCoordinates=null!=(n=(0,M.e_)(i))?n:$,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:e,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.DragStart,tc),this.windowListeners.add(p.VisibilityChange,this.handleCancel),this.windowListeners.add(p.ContextMenu,tc),this.documentListeners.add(p.Keydown,this.handleKeydown),e){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tm(e)){this.timeoutId=setTimeout(this.handleStart,e.delay),this.handlePending(e);return}if(tg(e))return void this.handlePending(e)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,e){let{active:r,onPending:n}=this.props;n(r,t,this.initialCoordinates,e)}handleStart(){let{initialCoordinates:t}=this,{onStart:e}=this.props;t&&(this.activated=!0,this.documentListeners.add(p.Click,th,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(p.SelectionChange,this.removeTextSelection),e(t))}handleMove(t){var e;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!n)return;let s=null!=(e=(0,M.e_)(t))?e:$,l=(0,M.Re)(n,s);if(!r&&o){if(tg(o)){if(null!=o.tolerance&&tu(l,o.tolerance))return this.handleCancel();if(tu(l,o.distance))return this.handleStart()}return tm(o)&&tu(l,o.tolerance)?this.handleCancel():void this.handlePending(o,l)}t.cancelable&&t.preventDefault(),a(s)}handleEnd(){let{onAbort:t,onEnd:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleCancel(){let{onAbort:t,onCancel:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleKeydown(t){t.code===g.Esc&&this.handleCancel()}removeTextSelection(){var t;null==(t=this.document.getSelection())||t.removeAllRanges()}}let tv={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tx extends ty{constructor(t){const{event:e}=t;super(t,tv,(0,M.TW)(e.target))}}tx.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let tb={move:{name:"mousemove"},end:{name:"mouseup"}};(s=m||(m={}))[s.RightClick=2]="RightClick";class tw extends ty{constructor(t){super(t,tb,(0,M.TW)(t.event.target))}}tw.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return r.button!==m.RightClick&&(null==n||n({event:r}),!0)}}];let tk={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class t_ extends ty{constructor(t){super(t,tk)}static setup(){return window.addEventListener(tk.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tk.move.name,t)};function t(){}}}t_.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],(l=y||(y={}))[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect",(u=v||(v={}))[u.TreeOrder=0]="TreeOrder",u[u.ReversedTreeOrder=1]="ReversedTreeOrder";let tM={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(c=x||(x={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(b||(b={})).Optimized="optimized";let tS=new Map;function tA(t,e){return(0,M.KG)(r=>t?r||("function"==typeof e?e(t):t):null,[e,t])}function tT(t){let{callback:e,disabled:r}=t,n=(0,M._q)(e),i=(0,k.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:t}=window;return new t(n)},[r]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function tE(t){return new ts(q(t),t)}function tC(t,e,r){void 0===e&&(e=tE);let[n,i]=(0,k.useState)(null);function a(){i(n=>{if(!t)return null;if(!1===t.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let a=e(t);return JSON.stringify(n)===JSON.stringify(a)?n:a})}let o=function(t){let{callback:e,disabled:r}=t,n=(0,M._q)(e),i=(0,k.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:t}=window;return new t(n)},[n,r]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(e){if(t)for(let r of e){let{type:e,target:n}=r;if("childList"===e&&n instanceof HTMLElement&&n.contains(t)){a();break}}}}),s=tT({callback:a});return(0,M.Es)(()=>{a(),t?(null==s||s.observe(t),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==o||o.disconnect())},[t]),n}let tR=[];function tP(t,e){void 0===e&&(e=[]);let r=(0,k.useRef)(null);return(0,k.useEffect)(()=>{r.current=null},e),(0,k.useEffect)(()=>{let e=t!==$;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)},[t]),r.current?(0,M.Re)(t,r.current):$}function tL(t){return(0,k.useMemo)(()=>{let e,r;return t?(e=t.innerWidth,{top:0,left:0,right:e,bottom:r=t.innerHeight,width:e,height:r}):null},[t])}let tD=[],tO=[{sensor:tx,options:{}},{sensor:tp,options:{}}],t$={current:{}},tI={draggable:{measure:X},droppable:{measure:X,strategy:x.WhileDragging,frequency:b.Optimized},dragOverlay:{measure:q}};class tj extends Map{get(t){var e;return null!=t&&null!=(e=super.get(t))?e:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:e}=t;return!e})}getNodeFor(t){var e,r;return null!=(e=null==(r=this.get(t))?void 0:r.node.current)?e:void 0}}let tN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tj,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:L},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tI,measureDroppableContainers:L,windowRect:null,measuringScheduled:!1},tF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:L,draggableNodes:new Map,over:null,measureDroppableContainers:L},tK=(0,k.createContext)(tF),tz=(0,k.createContext)(tN);function tB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tj}}}function tU(t,e){switch(e.type){case d.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case d.DragMove:if(null==t.draggable.active)return t;return{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:r}=e,{id:n}=r,i=new tj(t.droppable.containers);return i.set(n,r),{...t,droppable:{...t.droppable,containers:i}}}case d.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=e,a=t.droppable.containers.get(r);if(!a||n!==a.key)return t;let o=new tj(t.droppable.containers);return o.set(r,{...a,disabled:i}),{...t,droppable:{...t.droppable,containers:o}}}case d.UnregisterDroppable:{let{id:r,key:n}=e,i=t.droppable.containers.get(r);if(!i||n!==i.key)return t;let a=new tj(t.droppable.containers);return a.delete(r),{...t,droppable:{...t.droppable,containers:a}}}default:return t}}function tV(t){let{disabled:e}=t,{active:r,activatorEvent:n,draggableNodes:i}=(0,k.useContext)(tK),a=(0,M.ZC)(n),o=(0,M.ZC)(null==r?void 0:r.id);return(0,k.useEffect)(()=>{if(!e&&!n&&a&&null!=o){if(!(0,M.kx)(a)||document.activeElement===a.target)return;let t=i.get(o);if(!t)return;let{activatorNode:e,node:r}=t;(e.current||r.current)&&requestAnimationFrame(()=>{for(let t of[e.current,r.current]){if(!t)continue;let e=(0,M.ag)(t);if(e){e.focus();break}}})}},[n,e,i,o,a]),null}let tH=(0,k.createContext)({...$,scaleX:1,scaleY:1});(h=w||(w={}))[h.Uninitialized=0]="Uninitialized",h[h.Initializing=1]="Initializing",h[h.Initialized=2]="Initialized";let tW=(0,k.memo)(function(t){var e,r,n,i,a,o,s,l;let u,c,h,p,g,m,b,S,{id:A,accessibility:T,autoScroll:C=!0,children:R,sensors:L=tO,collisionDetection:D=V,measuring:O,modifiers:I,...j}=t,[N,F]=(0,k.useReducer)(tU,void 0,tB),[z,B]=function(){let[t]=(0,k.useState)(()=>new Set),e=(0,k.useCallback)(e=>(t.add(e),()=>t.delete(e)),[t]);return[(0,k.useCallback)(e=>{let{type:r,event:n}=e;t.forEach(t=>{var e;return null==(e=t[r])?void 0:e.call(t,n)})},[t]),e]}(),[U,Y]=(0,k.useState)(w.Uninitialized),X=U===w.Initialized,{draggable:{active:J,nodes:tt,translate:to},droppable:{containers:tl}}=N,tu=null!=J?tt.get(J):null,tc=(0,k.useRef)({initial:null,translated:null}),th=(0,k.useMemo)(()=>{var t;return null!=J?{id:J,data:null!=(t=null==tu?void 0:tu.data)?t:t$,rect:tc}:null},[J,tu]),td=(0,k.useRef)(null),[tf,tp]=(0,k.useState)(null),[tg,tm]=(0,k.useState)(null),ty=(0,M.YN)(j,Object.values(j)),tv=(0,M.YG)("DndDescribedBy",A),tx=(0,k.useMemo)(()=>tl.getEnabled(),[tl]),tb=(0,k.useMemo)(()=>({draggable:{...tI.draggable,...null==O?void 0:O.draggable},droppable:{...tI.droppable,...null==O?void 0:O.droppable},dragOverlay:{...tI.dragOverlay,...null==O?void 0:O.dragOverlay}}),[null==O?void 0:O.draggable,null==O?void 0:O.droppable,null==O?void 0:O.dragOverlay]),{droppableRects:tw,measureDroppableContainers:tk,measuringScheduled:t_}=function(t,e){let{dragging:r,dependencies:n,config:i}=e,[a,o]=(0,k.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,k.useRef)(t),h=function(){switch(u){case x.Always:return!1;case x.BeforeDragging:return r;default:return!r}}(),d=(0,M.YN)(h),f=(0,k.useCallback)(function(t){void 0===t&&(t=[]),d.current||o(e=>null===e?t:e.concat(t.filter(t=>!e.includes(t))))},[d]),p=(0,k.useRef)(null),g=(0,M.KG)(e=>{if(h&&!r)return tS;if(!e||e===tS||c.current!==t||null!=a){let e=new Map;for(let r of t){if(!r)continue;if(a&&a.length>0&&!a.includes(r.id)&&r.rect.current){e.set(r.id,r.rect.current);continue}let t=r.node.current,n=t?new ts(l(t),t):null;r.rect.current=n,n&&e.set(r.id,n)}return e}return e},[t,a,r,h,l]);return(0,k.useEffect)(()=>{c.current=t},[t]),(0,k.useEffect)(()=>{h||f()},[r,h]),(0,k.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,k.useEffect)(()=>{h||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{f(),p.current=null},s))},[s,h,f,...n]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=a}}(tx,{dragging:X,dependencies:[to.x,to.y],config:tb.droppable}),tE=(g=(p=null!=J?tt.get(J):void 0)?p.node.current:null,(0,M.KG)(t=>{var e;return null==J?null:null!=(e=null!=g?g:t)?e:null},[g,J])),tj=(0,k.useMemo)(()=>tg?(0,M.e_)(tg):null,[tg]),tN=(u=(null==tf?void 0:tf.autoScrollEnabled)===!1,c="object"==typeof C?!1===C.enabled:!1===C,h=X&&!u&&!c,"object"==typeof C?{...C,enabled:h}:{enabled:h}),tF=tA(tE,tb.draggable.measure);!function(t){let{activeNode:e,measure:r,initialRect:n,config:i=!0}=t,a=(0,k.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;(0,M.Es)(()=>{if(!o&&!s||!e){a.current=!1;return}if(a.current||!n)return;let t=null==e?void 0:e.node.current;if(!t||!1===t.isConnected)return;let i=H(r(t),n);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let e=Z(t);e&&e.scrollBy({top:i.y,left:i.x})}},[e,o,s,n,r])}({activeNode:null!=J?tt.get(J):null,config:tN.layoutShiftCompensation,initialRect:tF,measure:tb.draggable.measure});let tW=tC(tE,tb.draggable.measure,tF),tY=tC(tE?tE.parentElement:null),tq=(0,k.useRef)({activatorEvent:null,active:null,activeNode:tE,collisionRect:null,collisions:null,droppableRects:tw,draggableNodes:tt,draggingNode:null,draggingNodeRect:null,droppableContainers:tl,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),tX=tl.getNodeFor(null==(e=tq.current.over)?void 0:e.id),tG=function(t){let{measure:e}=t,[r,n]=(0,k.useState)(null),i=tT({callback:(0,k.useCallback)(t=>{for(let{target:r}of t)if((0,M.sb)(r)){n(t=>{let n=e(r);return t?{...t,width:n.width,height:n.height}:n});break}},[e])}),a=(0,k.useCallback)(t=>{let r=function(t){if(!t)return null;if(t.children.length>1)return t;let e=t.children[0];return(0,M.sb)(e)?e:t}(t);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?e(r):null)},[e,i]),[o,s]=(0,M.lk)(a);return(0,k.useMemo)(()=>({nodeRef:o,rect:r,setRef:s}),[r,o,s])}({measure:tb.dragOverlay.measure}),tZ=null!=(r=tG.nodeRef.current)?r:tE,tQ=X?null!=(n=tG.rect)?n:tW:null,tJ=!!(tG.nodeRef.current&&tG.rect),t0=(m=tA(a=tJ?null:tW),H(a,m)),t1=tL(tZ?(0,M.zk)(tZ):null),t2=(o=X?null!=tX?tX:tE:null,b=(0,k.useRef)(o),S=(0,M.KG)(t=>o?t&&t!==tR&&o&&b.current&&o.parentNode===b.current.parentNode?t:G(o):tR,[o]),(0,k.useEffect)(()=>{b.current=o},[o]),S),t5=function(t,e){void 0===e&&(e=q);let[r]=t,n=tL(r?(0,M.zk)(r):null),[i,a]=(0,k.useState)(tD);function o(){a(()=>t.length?t.map(t=>tr(t)?n:new ts(e(t),t)):tD)}let s=tT({callback:o});return(0,M.Es)(()=>{null==s||s.disconnect(),o(),t.forEach(t=>null==s?void 0:s.observe(t))},[t]),i}(t2),t3=function(t,e){let{transform:r,...n}=e;return null!=t&&t.length?t.reduce((t,e)=>e({transform:t,...n}),r):r}(I,{transform:{x:to.x-t0.x,y:to.y-t0.y,scaleX:1,scaleY:1},activatorEvent:tg,active:th,activeNodeRect:tW,containerNodeRect:tY,draggingNodeRect:tQ,over:tq.current.over,overlayNodeRect:tG.rect,scrollableAncestors:t2,scrollableAncestorRects:t5,windowRect:t1}),t6=tj?(0,M.WQ)(tj,to):null,t4=function(t){let[e,r]=(0,k.useState)(null),n=(0,k.useRef)(t),i=(0,k.useCallback)(t=>{let e=Q(t.target);e&&r(t=>t?(t.set(e,te(e)),new Map(t)):null)},[]);return(0,k.useEffect)(()=>{let e=n.current;if(t!==e){a(e);let o=t.map(t=>{let e=Q(t);return e?(e.addEventListener("scroll",i,{passive:!0}),[e,te(e)]):null}).filter(t=>null!=t);r(o.length?new Map(o):null),n.current=t}return()=>{a(t),a(e)};function a(t){t.forEach(t=>{let e=Q(t);null==e||e.removeEventListener("scroll",i)})}},[i,t]),(0,k.useMemo)(()=>t.length?e?Array.from(e.values()).reduce((t,e)=>(0,M.WQ)(t,e),$):ta(t):$,[t,e])}(t2),t9=tP(t4),t8=tP(t4,[tW]),t7=(0,M.WQ)(t3,t9),et=tQ?W(tQ,t3):null,ee=th&&et?D({active:th,collisionRect:et,droppableRects:tw,droppableContainers:tx,pointerCoordinates:t6}):null,er=K(ee,"id"),[en,ei]=(0,k.useState)(null),ea=(s=tJ?t3:(0,M.WQ)(t3,t8),l=null!=(i=null==en?void 0:en.rect)?i:null,{...s,scaleX:l&&tW?l.width/tW.width:1,scaleY:l&&tW?l.height/tW.height:1}),eo=(0,k.useRef)(null),es=(0,k.useCallback)((t,e)=>{let{sensor:r,options:n}=e;if(null==td.current)return;let i=tt.get(td.current);if(!i)return;let a=t.nativeEvent,o=new r({active:td.current,activeNode:i,event:a,options:n,context:tq,onAbort(t){if(!tt.get(t))return;let{onDragAbort:e}=ty.current,r={id:t};null==e||e(r),z({type:"onDragAbort",event:r})},onPending(t,e,r,n){if(!tt.get(t))return;let{onDragPending:i}=ty.current,a={id:t,constraint:e,initialCoordinates:r,offset:n};null==i||i(a),z({type:"onDragPending",event:a})},onStart(t){let e=td.current;if(null==e)return;let r=tt.get(e);if(!r)return;let{onDragStart:n}=ty.current,i={activatorEvent:a,active:{id:e,data:r.data,rect:tc}};(0,_.unstable_batchedUpdates)(()=>{null==n||n(i),Y(w.Initializing),F({type:d.DragStart,initialCoordinates:t,active:e}),z({type:"onDragStart",event:i}),tp(eo.current),tm(a)})},onMove(t){F({type:d.DragMove,coordinates:t})},onEnd:s(d.DragEnd),onCancel:s(d.DragCancel)});function s(t){return async function(){let{active:e,collisions:r,over:n,scrollAdjustedTranslate:i}=tq.current,o=null;if(e&&i){let{cancelDrop:s}=ty.current;o={activatorEvent:a,active:e,collisions:r,delta:i,over:n},t===d.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(t=d.DragCancel)}td.current=null,(0,_.unstable_batchedUpdates)(()=>{F({type:t}),Y(w.Uninitialized),ei(null),tp(null),tm(null),eo.current=null;let e=t===d.DragEnd?"onDragEnd":"onDragCancel";if(o){let t=ty.current[e];null==t||t(o),z({type:e,event:o})}})}}eo.current=o},[tt]),el=(0,k.useCallback)((t,e)=>(r,n)=>{let i=r.nativeEvent,a=tt.get(n);null!==td.current||!a||i.dndKit||i.defaultPrevented||!0===t(r,e.options,{active:a})&&(i.dndKit={capturedBy:e.sensor},td.current=n,es(r,e))},[tt,es]),eu=(0,k.useMemo)(()=>L.reduce((t,e)=>{let{sensor:r}=e;return[...t,...r.activators.map(t=>({eventName:t.eventName,handler:el(t.handler,e)}))]},[]),[L,el]);(0,k.useEffect)(()=>{if(!M.Sw)return;let t=L.map(t=>{let{sensor:e}=t;return null==e.setup?void 0:e.setup()});return()=>{for(let e of t)null==e||e()}},L.map(t=>{let{sensor:e}=t;return e})),(0,M.Es)(()=>{tW&&U===w.Initializing&&Y(w.Initialized)},[tW,U]),(0,k.useEffect)(()=>{let{onDragMove:t}=ty.current,{active:e,activatorEvent:r,collisions:n,over:i}=tq.current;if(!e||!r)return;let a={active:e,activatorEvent:r,collisions:n,delta:{x:t7.x,y:t7.y},over:i};(0,_.unstable_batchedUpdates)(()=>{null==t||t(a),z({type:"onDragMove",event:a})})},[t7.x,t7.y]),(0,k.useEffect)(()=>{let{active:t,activatorEvent:e,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=tq.current;if(!t||null==td.current||!e||!i)return;let{onDragOver:a}=ty.current,o=n.get(er),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:t,activatorEvent:e,collisions:r,delta:{x:i.x,y:i.y},over:s};(0,_.unstable_batchedUpdates)(()=>{ei(s),null==a||a(l),z({type:"onDragOver",event:l})})},[er]),(0,M.Es)(()=>{tq.current={activatorEvent:tg,active:th,activeNode:tE,collisionRect:et,collisions:ee,droppableRects:tw,draggableNodes:tt,draggingNode:tZ,draggingNodeRect:tQ,droppableContainers:tl,over:en,scrollableAncestors:t2,scrollAdjustedTranslate:t7},tc.current={initial:tQ,translated:et}},[th,tE,ee,et,tt,tZ,tQ,tw,tl,en,t2,t7]),function(t){let{acceleration:e,activator:r=y.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=v.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:h,threshold:d}=t,p=function(t){let{delta:e,disabled:r}=t,n=(0,M.ZC)(e);return(0,M.KG)(t=>{if(r||!n||!t)return tM;let i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[f.Backward]:t.x[f.Backward]||-1===i.x,[f.Forward]:t.x[f.Forward]||1===i.x},y:{[f.Backward]:t.y[f.Backward]||-1===i.y,[f.Forward]:t.y[f.Forward]||1===i.y}}},[r,e,n])}({delta:h,disabled:!a}),[g,m]=(0,M.$$)(),x=(0,k.useRef)({x:0,y:0}),b=(0,k.useRef)({x:0,y:0}),w=(0,k.useMemo)(()=>{switch(r){case y.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case y.DraggableRect:return i}},[r,i,l]),_=(0,k.useRef)(null),S=(0,k.useCallback)(()=>{let t=_.current;if(!t)return;let e=x.current.x*b.current.x,r=x.current.y*b.current.y;t.scrollBy(e,r)},[]),A=(0,k.useMemo)(()=>s===v.TreeOrder?[...u].reverse():u,[s,u]);(0,k.useEffect)(()=>{if(!a||!u.length||!w)return void m();for(let t of A){if((null==n?void 0:n(t))===!1)continue;let r=c[u.indexOf(t)];if(!r)continue;let{direction:i,speed:a}=function(t,e,r,n,i){let{top:a,left:o,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===i&&(i=ti);let{isTop:u,isBottom:c,isLeft:h,isRight:d}=tn(t),p={x:0,y:0},g={x:0,y:0},m={height:e.height*i.y,width:e.width*i.x};return!u&&a<=e.top+m.height?(p.y=f.Backward,g.y=n*Math.abs((e.top+m.height-a)/m.height)):!c&&l>=e.bottom-m.height&&(p.y=f.Forward,g.y=n*Math.abs((e.bottom-m.height-l)/m.height)),!d&&s>=e.right-m.width?(p.x=f.Forward,g.x=n*Math.abs((e.right-m.width-s)/m.width)):!h&&o<=e.left+m.width&&(p.x=f.Backward,g.x=n*Math.abs((e.left+m.width-o)/m.width)),{direction:p,speed:g}}(t,r,w,e,d);for(let t of["x","y"])p[t][i[t]]||(a[t]=0,i[t]=0);if(a.x>0||a.y>0){m(),_.current=t,g(S,o),x.current=a,b.current=i;return}}x.current={x:0,y:0},b.current={x:0,y:0},m()},[e,S,n,m,a,o,JSON.stringify(w),JSON.stringify(p),g,u,A,c,JSON.stringify(d)])}({...tN,delta:to,draggingRect:et,pointerCoordinates:t6,scrollableAncestors:t2,scrollableAncestorRects:t5});let ec=(0,k.useMemo)(()=>({active:th,activeNode:tE,activeNodeRect:tW,activatorEvent:tg,collisions:ee,containerNodeRect:tY,dragOverlay:tG,draggableNodes:tt,droppableContainers:tl,droppableRects:tw,over:en,measureDroppableContainers:tk,scrollableAncestors:t2,scrollableAncestorRects:t5,measuringConfiguration:tb,measuringScheduled:t_,windowRect:t1}),[th,tE,tW,tg,ee,tY,tG,tt,tl,tw,en,tk,t2,t5,tb,t_,t1]),eh=(0,k.useMemo)(()=>({activatorEvent:tg,activators:eu,active:th,activeNodeRect:tW,ariaDescribedById:{draggable:tv},dispatch:F,draggableNodes:tt,over:en,measureDroppableContainers:tk}),[tg,eu,th,tW,F,tv,tt,en,tk]);return k.createElement(E.Provider,{value:B},k.createElement(tK.Provider,{value:eh},k.createElement(tz.Provider,{value:ec},k.createElement(tH.Provider,{value:ea},R)),k.createElement(tV,{disabled:(null==T?void 0:T.restoreFocus)===!1})),k.createElement(P,{...T,hiddenTextDescribedById:tv}))}),tY=(0,k.createContext)(null),tq="button";function tX(t){let{id:e,data:r,disabled:n=!1,attributes:i}=t,a=(0,M.YG)("Draggable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:h,over:d}=(0,k.useContext)(tK),{role:f=tq,roleDescription:p="draggable",tabIndex:g=0}=null!=i?i:{},m=(null==l?void 0:l.id)===e,y=(0,k.useContext)(m?tH:tY),[v,x]=(0,M.lk)(),[b,w]=(0,M.lk)(),_=(0,k.useMemo)(()=>o.reduce((t,r)=>{let{eventName:n,handler:i}=r;return t[n]=t=>{i(t,e)},t},{}),[o,e]),S=(0,M.YN)(r);return(0,M.Es)(()=>(h.set(e,{id:e,key:a,node:v,activatorNode:b,data:S}),()=>{let t=h.get(e);t&&t.key===a&&h.delete(e)}),[h,e]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,k.useMemo)(()=>({role:f,tabIndex:g,"aria-disabled":n,"aria-pressed":!!m&&f===tq||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[n,f,g,m,p,c.draggable]),isDragging:m,listeners:n?void 0:_,node:v,over:d,setNodeRef:x,setActivatorNodeRef:w,transform:y}}function tG(){return(0,k.useContext)(tz)}let tZ={timeout:25};function tQ(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t,a=(0,M.YG)("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,k.useContext)(tK),c=(0,k.useRef)({disabled:r}),h=(0,k.useRef)(!1),f=(0,k.useRef)(null),p=(0,k.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:y}={...tZ,...i},v=(0,M.YN)(null!=m?m:n),x=tT({callback:(0,k.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),p.current=null},y)},[y]),disabled:g||!o}),b=(0,k.useCallback)((t,e)=>{x&&(e&&(x.unobserve(e),h.current=!1),t&&x.observe(t))},[x]),[w,_]=(0,M.lk)(b),S=(0,M.YN)(e);return(0,k.useEffect)(()=>{x&&w.current&&(x.disconnect(),h.current=!1,x.observe(w.current))},[w,x]),(0,k.useEffect)(()=>(s({type:d.RegisterDroppable,element:{id:n,key:a,disabled:r,node:w,rect:f,data:S}}),()=>s({type:d.UnregisterDroppable,key:a,id:n})),[n]),(0,k.useEffect)(()=>{r!==c.current.disabled&&(s({type:d.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===n,node:w,over:l,setNodeRef:_}}},43326:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},43428:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47552),i=r(47057);let a=t=>!((t=>{let{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)})(t)>=.5)},44549:(t,e,r)=>{"use strict";r.d(e,{WY:()=>S,dn:()=>M,pC:()=>k,Gc:()=>x});var n=r(89316),i=r(47508),a=r(39410);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),u=Object.freeze({...s,...l}),c=Object.freeze({...u,body:"",hidden:!1});function h(t,e){let r,n,i=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(n=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=n),r);for(let r in c)r in l?r in t&&!(r in i)&&(i[r]=l[r]):r in e?i[r]=e[r]:r in t&&(i[r]=t[r]);return i}function d(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function o(t){a=h(n[t]||i[t],a)}return o(e),r.forEach(o),h(t,a)}let f=Object.freeze({...Object.freeze({width:null,height:null}),...l}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(p);if(null===n||!n.length)return t;let i=[],a=n.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");o=!o}}let y=/\sid="(\S+)"/g,v=new Map;var x={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},b=new Map,w=new Map,k=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)b.set(e.name,e.icons);else throw i.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),_=(0,a.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let t=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:t};return e&&!o(a)?null:a}let a=i[0],s=a.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:a};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let a=b.get(n);if(!a){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:n},b.set(n,a)}catch(t){throw i.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let n,i,a;if(t.icons[e])return d(t,e,[]);let o=(r=[e],n=t.icons,i=t.aliases||Object.create(null),a=Object.create(null),(r||Object.keys(n).concat(Object.keys(i))).forEach(function t(e){if(n[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=i[e]&&i[e].parent,n=r&&t(r);n&&(a[e]=[r].concat(n))}return a[e]}),a)[e];return o?d(t,e,o):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),M=(0,a.K)(async t=>{try{return await _(t),!0}catch{return!1}},"isIconAvailable"),S=(0,a.K)(async(t,e,r)=>{var a;let o,s,l,c,h,d,p,g,b,w,k,M,S,A;try{o=await _(t,e?.fallbackPrefix)}catch(t){i.R.error(t),o=x}let T=(a=o,c={...u,...a},h={...f,...e},d={left:c.left,top:c.top,width:c.width,height:c.height},p=c.body,[c,h].forEach(t=>{var e,r,n,i;let a,o,s=[],l=t.hFlip,u=t.vFlip,c=t.rotate;switch(l?u?c+=2:(s.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),s.push("scale(-1 1)"),d.top=d.left=0):u&&(s.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),s.push("scale(1 -1)"),d.top=d.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:s.unshift("rotate(90 "+(a=d.height/2+d.top).toString()+" "+a.toString()+")");break;case 2:s.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(a=d.width/2+d.left).toString()+" "+a.toString()+")")}c%2==1&&(d.left!==d.top&&(a=d.left,d.left=d.top,d.top=a),d.width!==d.height&&(a=d.width,d.width=d.height,d.height=a)),s.length&&(e=p,r='<g transform="'+s.join(" ")+'">',n=(o=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("</"+e);if(-1===i||-1===a)break;let o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(e)).defs,i=r+o.content+"</g>",p=n?"<defs>"+n+"</defs>"+i:i)}),g=h.width,b=h.height,w=d.width,k=d.height,null===g?s=m(l=null===b?"1em":"auto"===b?k:b,w/k):(s="auto"===g?w:g,l=null===b?m(s,k/w):"auto"===b?k:b),M={},(S=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(M[t]=e.toString())})("width",s),S("height",l),M.viewBox=(A=[d.left,d.top,w,k]).join(" "),{attributes:M,viewBox:A,body:p}),E=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{var r;let i,a=(r=(r=e).replace(/[0-9]+$/,"")||"a",i=v.get(r)||0,v.set(r,i+1),i?`${r}${i}`:r),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(T.body),{...T.attributes,...r});return(0,n.jZ)(E,(0,n.zj)())},"getIconSVG")},44980:(t,e,r)=>{"use strict";r.d(e,{p:()=>s});var n=r(69266),i=r(67089),a=r(69611),o=r(54751);let s=n.forwardRef(function(t,e){let{render:r,className:n,style:s,...l}=t,u=(0,i.b)();return(0,a.o)("span",t,{state:u,ref:e,stateAttributesMapping:o.P,props:l})})},45087:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var n=r(69266);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function a(t,e){let r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&r.every(r=>{let n=t[r],o=e[r];return"function"==typeof n?`${n}`==`${o}`:i(n)&&i(o)?a(n,o):n===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function s(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return Math.abs(t)}function d(t){return Math.sign(t)}function f(t){return y(t).map(Number)}function p(t){return t[g(t)]}function g(t){return Math.max(0,t.length-1)}function m(t,e=0){return Array.from(Array(t),(t,r)=>e+r)}function y(t){return Object.keys(t)}function v(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function x(){let t=[],e={add:function(r,n,i,a={passive:!0}){let o;return"addEventListener"in r?(r.addEventListener(n,i,a),o=()=>r.removeEventListener(n,i,a)):(r.addListener(i),o=()=>r.removeListener(i)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function b(t=0,e=0){let r=h(t-e);function n(r){return r<t||r>e}return{length:r,max:e,min:t,constrain:function(r){return n(r)?r<t?t:e:r},reachedAny:n,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return r?t-r*Math.ceil((t-e)/r):t}}}function w(t){let e=t;function r(t){return s(t)?t:t.get()}return{get:function(){return e},set:function(t){e=r(t)},add:function(t){e+=r(t)},subtract:function(t){e-=r(t)}}}function k(t,e){let r="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},n=e.style,i=null,a=!1;return{clear:function(){!a&&(n.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(a)return;let o=Math.round(100*t.direction(e))/100;o!==i&&(n.transform=r(o),i=o)},toggleActive:function(t){a=!t}}}let _={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function M(t,e,r){let n,i,a,o,S,A,T,E,C=t.ownerDocument,R=C.defaultView,P=function(t){function e(t,e){return function t(e,r){return[e,r].reduce((e,r)=>(y(r).forEach(n=>{let i=e[n],a=r[n],o=c(i)&&c(a);e[n]=o?t(i,a):a}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(r){let n=r.breakpoints||{},i=y(n).filter(e=>t.matchMedia(e).matches).map(t=>n[t]).reduce((t,r)=>e(t,r),{});return e(r,i)},optionsMediaQueries:function(e){return e.map(t=>y(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(R),L=(E=[],{init:function(t,e){return(E=e.filter(({options:t})=>!1!==P.optionsAtMedia(t).active)).forEach(e=>e.init(t,P)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){E=E.filter(t=>t.destroy())}}),D=x(),O=(i={},a={init:function(t){n=t},emit:function(t){return(i[t]||[]).forEach(e=>e(n,t)),a},off:function(t,e){return i[t]=(i[t]||[]).filter(t=>t!==e),a},on:function(t,e){return i[t]=(i[t]||[]).concat([e]),a},clear:function(){i={}}}),{mergeOptions:$,optionsAtMedia:I,optionsMediaQueries:j}=P,{on:N,off:F,emit:K}=O,z=!1,B=$(_,M.globalOptions),U=$(B),V=[];function H(e,r){z||(U=I(B=$(B,e)),V=r||V,function(){let{container:e,slides:r}=U;A=(l(e)?t.querySelector(e):e)||t.children[0];let n=l(r)?A.querySelectorAll(r):r;T=[].slice.call(n||A.children)}(),o=function e(r){let n=function(t,e,r,n,i,a,o){var c,_;let M,S,A,T,E,C,R,P,L,D,O,$,I,j,{align:N,axis:F,direction:K,startIndex:z,loop:B,duration:U,dragFree:V,dragThreshold:H,inViewThreshold:W,slidesToScroll:Y,skipSnaps:q,containScroll:X,watchResize:G,watchSlides:Z,watchDrag:Q,watchFocus:J}=a,tt={measure:function(t){let{offsetTop:e,offsetLeft:r,offsetWidth:n,offsetHeight:i}=t;return{top:e,right:r+n,bottom:e+i,left:r,width:n,height:i}}},te=tt.measure(e),tr=r.map(tt.measure),tn=(S="rtl"===K,T=(A="y"===F)||!S?1:-1,E=A?"top":S?"right":"left",C=A?"bottom":S?"left":"right",{scroll:A?"y":"x",cross:A?"x":"y",startEdge:E,endEdge:C,measureSize:function(t){let{height:e,width:r}=t;return A?e:r},direction:function(t){return t*T}}),ti=tn.measureSize(te),ta={measure:function(t){return t/100*ti}},to=(c=N,_=ti,M={start:function(){return 0},center:function(t){return(_-t)/2},end:function(t){return _-t}},{measure:function(t,e){return l(c)?M[c](t):c(_,t,e)}}),ts=!B&&!!X,{slideSizes:tl,slideSizesWithGaps:tu,startGap:tc,endGap:th}=function(t,e,r,n,i,a){let{measureSize:o,startEdge:s,endEdge:l}=t,u=r[0]&&i,c=function(){if(!u)return 0;let t=r[0];return h(e[s]-t[s])}(),d=u?parseFloat(a.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,f=r.map(o),m=r.map((t,e,r)=>{let n=e===g(r);return e?n?f[e]+d:r[e+1][s]-t[s]:f[e]+c}).map(h);return{slideSizes:f,slideSizesWithGaps:m,startGap:c,endGap:d}}(tn,te,tr,r,B||!!X,i),td=function(t,e,r,n,i,a,o,l){let{startEdge:u,endEdge:c,direction:d}=t,m=s(r);return{groupSlides:function(t){return m?f(t).filter(t=>t%r==0).map(e=>t.slice(e,e+r)):t.length?f(t).reduce((r,s,f)=>{let m=p(r)||0,y=s===g(t),v=i[u]-a[m][u],x=i[u]-a[s][c],b=n||0!==m?0:d(o),w=h(x-(!n&&y?d(l):0)-(v+b));return f&&w>e+2&&r.push(s),y&&r.push(t.length),r},[]).map((e,r,n)=>{let i=Math.max(n[r-1]||0);return t.slice(i,e)}):[]}}}(tn,ti,Y,B,te,tr,tc,th),{snaps:tf,snapsAligned:tp}=function(t,e,r,n,i){let{startEdge:a,endEdge:o}=t,{groupSlides:s}=i,l=s(n).map(t=>p(t)[o]-t[0][a]).map(h).map(e.measure),u=n.map(t=>r[a]-t[a]).map(t=>-h(t)),c=s(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:c}}(tn,to,te,tr,td),tg=-p(tf)+p(tu),{snapsContained:tm,scrollContainLimit:ty}=function(t,e,r,n){let i,a,o=b(-e+t,0),s=r.map((t,e)=>{let{min:n,max:i}=o,a=o.constrain(t),s=e===g(r);return e?s||function(t,e){return 1>=h(t-e)}(n,a)?n:function(t,e){return 1>=h(t-e)}(i,a)?i:a:i}).map(t=>parseFloat(t.toFixed(3))),l=(i=s[0],a=p(s),b(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===n)return s;let{min:r,max:i}=l;return s.slice(r,i)}(),scrollContainLimit:l}}(ti,tg,tp,X),tv=ts?tm:tp,{limit:tx}=(R=tv[0],{limit:b(B?R-tg:p(tv),R)}),tb=function t(e,r,n){let{constrain:i}=b(0,e),a=e+1,o=s(r);function s(t){return n?h((a+t)%a):i(t)}function l(){return t(e,o,n)}let u={get:function(){return o},set:function(t){return o=s(t),u},add:function(t){return l().set(o+t)},clone:l};return u}(g(tv),z,B),tw=tb.clone(),tk=f(r),t_=function(t,e,r,n){let i=x(),a=1e3/60,o=null,s=0,l=0;function u(t){if(!l)return;o||(o=t,r(),r());let i=t-o;for(o=t,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=e.requestAnimationFrame(u))}function c(){e.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,()=>(({dragHandler:t,scrollBody:e,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(t.pointerDown()),e.seek()})(tj),t=>(({scrollBody:t,translate:e,location:r,offsetLocation:n,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:h}},d)=>{let f=t.settled(),p=!c.shouldConstrain(),g=h?f:f&&p,m=g&&!s.pointerDown();m&&l.stop();let y=r.get()*d+i.get()*(1-d);n.set(y),h&&(a.loop(t.direction()),o.loop()),e.to(n.get()),m&&u.emit("settle"),g||u.emit("scroll")})(tj,t)),tM=tv[tb.get()],tS=w(tM),tA=w(tM),tT=w(tM),tE=w(tM),tC=function(t,e,r,n,i){let a=0,o=0,s=i,l=.68,u=t.get(),c=0;function f(t){return s=t,g}function p(t){return l=t,g}let g={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){let e=n.get()-t.get(),i=0;return s?(r.set(t),a+=e/s,a*=l,u+=a,t.add(a),i=u-c):(a=0,r.set(n),t.set(n),i=e),o=d(i),c=u,g},settled:function(){return .001>h(n.get()-e.get())},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return f(i)},useFriction:p,useDuration:f};return g}(tS,tT,tA,tE,U),tR=function(t,e,r,n,i){let{reachedAny:a,removeOffset:o,constrain:s}=n;function l(t){return t.concat().sort((t,e)=>h(t)-h(e))[0]}function u(e,n){let i=[e,e+r,e-r];if(!t)return e;if(!n)return l(i);let a=i.filter(t=>d(t)===n);return a.length?l(a):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:d}=function(r){let n=t?o(r):s(r),{index:i}=e.map((t,e)=>({diff:u(t-n,0),index:e})).sort((t,e)=>h(t.diff)-h(e.diff))[0];return{index:i,distance:n}}(l),f=!t&&a(l);if(!n||f)return{index:c,distance:r};let p=r+u(e[c]-d,0);return{index:c,distance:p}},byIndex:function(t,r){let n=u(e[t]-i.get(),r);return{index:t,distance:n}},shortcut:u}}(B,tv,tg,tx,tE),tP=function(t,e,r,n,i,a,o){function s(i){let s=i.distance,l=i.index!==e.get();a.add(s),s&&(n.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(r.set(e.get()),e.set(i.index),o.emit("select"))}return{distance:function(t,e){s(i.byDistance(t,e))},index:function(t,r){let n=e.clone().set(t);s(i.byIndex(n.get(),r))}}}(t_,tb,tw,tC,tR,tE,o),tL=function(t){let{max:e,length:r}=t;return{get:function(t){return r?-((t-e)/r):0}}}(tx),tD=x(),tO=(L={},D=null,O=null,$=!1,{init:function(){P=new IntersectionObserver(t=>{$||(t.forEach(t=>{L[r.indexOf(t.target)]=t}),D=null,O=null,o.emit("slidesInView"))},{root:e.parentElement,threshold:W}),r.forEach(t=>P.observe(t))},destroy:function(){P&&P.disconnect(),$=!0},get:function(t=!0){if(t&&D)return D;if(!t&&O)return O;let e=y(L).reduce((e,r)=>{let n=parseInt(r),{isIntersecting:i}=L[n];return(t&&i||!t&&!i)&&e.push(n),e},[]);return t&&(D=e),t||(O=e),e}}),{slideRegistry:t$}=function(t,e,r,n,i,a){let o,{groupSlides:s}=i,{min:l,max:u}=n;return{slideRegistry:(o=s(a),1===r.length?[a]:t&&"keepSnaps"!==e?o.slice(l,u).map((t,e,r)=>{let n=e===g(r);return e?n?m(g(a)-p(r)[0]+1,p(r)[0]):t:m(p(r[0])+1)}):o)}}(ts,X,tv,ty,td,tk),tI=function(t,e,r,n,i,a,o,l){let c={passive:!0,capture:!0},h=0;function d(t){"Tab"===t.code&&(h=new Date().getTime())}return{init:function(f){l&&(a.add(document,"keydown",d,!1),e.forEach((e,d)=>{a.add(e,"focus",e=>{(u(l)||l(f,e))&&function(e){if(new Date().getTime()-h>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let a=r.findIndex(t=>t.includes(e));s(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}(d)},c)}))}}}(t,r,t$,tP,tC,tD,o,J),tj={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:te,slideRects:tr,animation:t_,axis:tn,dragHandler:function(t,e,r,n,i,a,o,s,l,c,f,p,g,m,y,w,k,_){let{cross:M,direction:S}=t,A=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=x(),C=x(),R=b(50,225).constrain(m.measure(20)),P={mouse:300,touch:400},L={mouse:500,touch:600},D=y?43:25,O=!1,$=0,I=0,j=!1,N=!1,F=!1,K=!1;function z(t){if(!v(t,n)&&t.touches.length>=2)return B(t);let e=a.readPoint(t),r=a.readPoint(t,M),o=h(e-$),l=h(r-I);if(!N&&!K&&(!t.cancelable||!(N=o>l)))return B(t);let u=a.pointerMove(t);o>w&&(F=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(S(u)),t.preventDefault()}function B(t){var e;let r,n,i=f.byDistance(0,!1).index!==p.get(),o=a.pointerUp(t)*(y?L:P)[K?"mouse":"touch"],s=(e=S(o),r=p.add(-1*d(e)),n=f.byDistance(e,!y).distance,y||h(e)<R?n:k&&i?.5*n:f.byIndex(r.get(),0).distance),u=function(t,e){var r,n;if(0===t||0===e||h(t)<=h(e))return 0;let i=(r=h(t),n=h(e),h(r-n));return h(i/t)}(o,s);N=!1,j=!1,C.clear(),c.useDuration(D-10*u).useFriction(.68+u/50),l.distance(s,!y),K=!1,g.emit("pointerUp")}function U(t){F&&(t.stopPropagation(),t.preventDefault(),F=!1)}return{init:function(t){_&&E.add(e,"dragstart",t=>t.preventDefault(),T).add(e,"touchmove",()=>void 0,T).add(e,"touchend",()=>void 0).add(e,"touchstart",s).add(e,"mousedown",s).add(e,"touchcancel",B).add(e,"contextmenu",B).add(e,"click",U,!0);function s(s){(u(_)||_(t,s))&&function(t){let s,l=v(t,n);if((K=l,F=y&&l&&!t.buttons&&O,O=h(i.get()-o.get())>=2,!l||0===t.button)&&(s=t.target.nodeName||"",!A.includes(s))){let n;j=!0,a.pointerDown(t),c.useFriction(0).useDuration(0),i.set(o),n=K?r:e,C.add(n,"touchmove",z,T).add(n,"touchend",B).add(n,"mousemove",z,T).add(n,"mouseup",B),$=a.readPoint(t),I=a.readPoint(t,M),g.emit("pointerDown")}}(s)}},destroy:function(){E.clear(),C.clear()},pointerDown:function(){return j}}}(tn,t,n,i,tE,function(t,e){let r,n;function i(t){return t.timeStamp}function a(r,n){let i=n||t.scroll,a=`client${"x"===i?"X":"Y"}`;return(v(r,e)?r:r.touches[0])[a]}return{pointerDown:function(t){return r=t,n=t,a(t)},pointerMove:function(t){let e=a(t)-a(n),o=i(t)-i(r)>170;return n=t,o&&(r=t),e},pointerUp:function(t){if(!r||!n)return 0;let e=a(n)-a(r),o=i(t)-i(r),s=i(t)-i(n)>170,l=e/o;return o&&!s&&h(l)>.1?l:0},readPoint:a}}(tn,i),tS,t_,tP,tC,tR,tb,o,ta,V,H,q,Q),eventStore:tD,percentOfView:ta,index:tb,indexPrevious:tw,limit:tx,location:tS,offsetLocation:tT,previousLocation:tA,options:a,resizeHandler:function(t,e,r,n,i,a,o){let s,l,c=[t].concat(n),d=[],f=!1;function p(t){return i.measureSize(o.measure(t))}return{init:function(i){a&&(l=p(t),d=n.map(p),s=new ResizeObserver(r=>{(u(a)||a(i,r))&&function(r){for(let a of r){if(f)return;let r=a.target===t,o=n.indexOf(a.target),s=r?l:d[o];if(h(p(r?t:n[o])-s)>=.5){i.reInit(),e.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{c.forEach(t=>s.observe(t))}))},destroy:function(){f=!0,s&&s.disconnect()}}}(e,o,i,r,tn,G,tt),scrollBody:tC,scrollBounds:function(t,e,r,n,i){let a=i.measure(10),o=i.measure(50),s=b(.1,.99),l=!1;function u(){return!l&&!!t.reachedAny(r.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",c=h(t[l]-e.get()),d=r.get()-e.get(),f=s.constrain(c/o);r.subtract(d*f),!i&&h(d)<a&&(r.set(t.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}(tx,tT,tE,tC,ta),scrollLooper:function(t,e,r,n){let{reachedMin:i,reachedMax:a}=b(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?a(r.get()):-1===e&&i(r.get())))return;let o=-1*e*t;n.forEach(t=>t.add(o))}}}(tg,tx,tT,[tS,tT,tA,tE]),scrollProgress:tL,scrollSnapList:tv.map(tL.get),scrollSnaps:tv,scrollTarget:tR,scrollTo:tP,slideLooper:function(t,e,r,n,i,a,o,s,l){let u=f(i),c=f(i).reverse(),h=g(p(c,o[0]),r,!1).concat(g(p(u,e-o[0]-1),-r,!0));function d(t,e){return t.reduce((t,e)=>t-i[e],e)}function p(t,e){return t.reduce((t,r)=>d(t,e)>0?t.concat([r]):t,[])}function g(i,o,u){let c=a.map((t,r)=>({start:t-n[r]+.5+o,end:t+e-.5+o}));return i.map(e=>{let n=u?0:-r,i=u?r:0,a=c[e][u?"end":"start"];return{index:e,loopPoint:a,slideLocation:w(-1),translate:k(t,l[e]),target:()=>s.get()>a?n:i}})}return{canLoop:function(){return h.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){h.forEach(t=>t.translate.clear())},loop:function(){h.forEach(t=>{let{target:e,translate:r,slideLocation:n}=t,i=e();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:h}}(tn,ti,tg,tl,tu,tf,tv,tT,r),slideFocus:tI,slidesHandler:(j=!1,{init:function(t){Z&&(I=new MutationObserver(e=>{!j&&(u(Z)||Z(t,e))&&function(e){for(let r of e)if("childList"===r.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){I&&I.disconnect(),j=!0}}),slidesInView:tO,slideIndexes:tk,slideRegistry:t$,slidesToScroll:td,target:tE,translate:k(tn,e)};return tj}(t,A,T,C,R,r,O);return r.loop&&!n.slideLooper.canLoop()?e(Object.assign({},r,{loop:!1})):n}(U),j([B,...V.map(({options:t})=>t)]).forEach(t=>D.add(t,"change",W)),U.active&&(o.translate.to(o.location.get()),o.animation.init(),o.slidesInView.init(),o.slideFocus.init(G),o.eventHandler.init(G),o.resizeHandler.init(G),o.slidesHandler.init(G),o.options.loop&&o.slideLooper.loop(),A.offsetParent&&T.length&&o.dragHandler.init(G),S=L.init(G,V)))}function W(t,e){let r=X();Y(),H($({startIndex:r},t),e),O.emit("reInit")}function Y(){o.dragHandler.destroy(),o.eventStore.clear(),o.translate.clear(),o.slideLooper.clear(),o.resizeHandler.destroy(),o.slidesHandler.destroy(),o.slidesInView.destroy(),o.animation.destroy(),L.destroy(),D.clear()}function q(t,e,r){U.active&&!z&&(o.scrollBody.useBaseFriction().useDuration(!0===e?0:U.duration),o.scrollTo.index(t,r||0))}function X(){return o.index.get()}let G={canScrollNext:function(){return o.index.add(1).get()!==X()},canScrollPrev:function(){return o.index.add(-1).get()!==X()},containerNode:function(){return A},internalEngine:function(){return o},destroy:function(){z||(z=!0,D.clear(),Y(),O.emit("destroy"),O.clear())},off:F,on:N,emit:K,plugins:function(){return S},previousScrollSnap:function(){return o.indexPrevious.get()},reInit:W,rootNode:function(){return t},scrollNext:function(t){q(o.index.add(1).get(),t,-1)},scrollPrev:function(t){q(o.index.add(-1).get(),t,1)},scrollProgress:function(){return o.scrollProgress.get(o.offsetLocation.get())},scrollSnapList:function(){return o.scrollSnapList},scrollTo:q,selectedScrollSnap:X,slideNodes:function(){return T},slidesInView:function(){return o.slidesInView.get()},slidesNotInView:function(){return o.slidesInView.get(!1)}};return H(e,r),setTimeout(()=>O.emit("init"),0),G}function S(t={},e=[]){let r=(0,n.useRef)(t),i=(0,n.useRef)(e),[s,l]=(0,n.useState)(),[u,c]=(0,n.useState)(),h=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{a(r.current,t)||(r.current=t,h())},[t,h]),(0,n.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let r=o(t),n=o(e);return r.every((t,e)=>a(t,n[e]))}(i.current,e)&&(i.current=e,h())},[e,h]),(0,n.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&u){M.globalOptions=S.globalOptions;let t=M(u,r.current,i.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[c,s]}M.globalOptions=void 0,S.globalOptions=void 0},45811:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},47057:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(12318),i=r(62623);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,u=l?1:17,c=l?8:4,h=s?0:-1,d=l?255:15;return n.A.set({r:(i>>c*(h+3)&d)*u,g:(i>>c*(h+2)&d)*u,b:(i>>c*(h+1)&d)*u,a:s?(i&d)*u/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}};var o=r(47552);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,i,a,l,u,c]=r;return n.A.set({h:s._hue2deg(i),s:o.A.channel.clamp.s(parseFloat(a)),l:o.A.channel.clamp.l(parseFloat(l)),a:u?o.A.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${i})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(u.re);if(!r)return;let[,i,a,s,l,c,h,d,f]=r;return n.A.set({r:o.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(c):parseFloat(c)),a:d?o.A.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(i)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},c={format:{keyword:l,hex:a,rgb:u,rgba:u,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||u.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):u.stringify(t)}},47150:(t,e,r)=>{"use strict";r.d(e,{r:()=>s});var n=r(69266),i=r(69611),a=r(25905),o=r(7962);let s=n.forwardRef(function(t,e){let{render:r,className:s,style:l,...u}=t,[c,h]=n.useState(void 0),d=(0,i.o)("div",t,{ref:e,props:{role:"group","aria-labelledby":c,...u}});return(0,o.jsx)(a.c.Provider,{value:h,children:d})})},47252:(t,e,r)=>{"use strict";r.d(e,{p:()=>u});var n=r(69266),i=r(56906),a=r(69611),o=r(39341),s=r(47623),l=r(43745);let u=n.forwardRef(function(t,e){let{render:r,className:u,style:c,keepMounted:h=!1,...d}=t,f=(0,i.w)(),p=n.useRef(null),{transitionStatus:g,mounted:m,setMounted:y}=(0,s.$)(f.checked);(0,l.v)({open:f.checked,ref:p,onComplete(){f.checked||y(!1)}});let v={checked:f.checked,disabled:f.disabled,highlighted:f.highlighted,transitionStatus:g};return(0,a.o)("span",t,{state:v,stateAttributesMapping:o.a,ref:[e,p],props:{"aria-hidden":!0,...d},enabled:h||m})})},47508:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(39410),i=r(12437),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},47552:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},47744:(t,e,r)=>{"use strict";r.d(e,{j:()=>k});var n=r(69266),i=r(53949),a=r(66758),o=r(36158),s=r(52333),l=r(12566),u=r(53402),c=r(27944),h=r(44596),d=r(15494),f=r(14738),p=r(63962),g=r(5733),m=r(8675);let y={...d.ol,instantType:t=>t.instantType,adaptiveOrigin:t=>t.adaptiveOrigin,closeDelay:t=>t.closeDelay};class v extends h.H{constructor(t,e,r){const i=new f.Z;super(function(t,e,r,n=!1){let i={...(0,d.rJ)(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:m.V,...t};return i.floatingRootContext=(0,d.OB)(e,r,n),i}(t,i,e,r),function(t){return{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t,inlineRectCoordsRef:{current:void 0}}}(i),y)}setOpen=(t,e)=>{let{inlineRectCoordsRef:r}=this.context;(0,p.DU)(this,t,e,{onBeforeDispatch(){let n=e.event;t&&e.reason===c.N7&&e.trigger&&"clientX"in n&&"clientY"in n&&r.current?.element!==e.trigger&&(0,g.hI)(r,e.trigger,n.clientX,n.clientY)}})}}var x=r(7962);function b(t){let{open:e,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:o,actionsRef:s,handle:h,triggerId:d,defaultTriggerId:f=null,children:g}=t,m=(0,p.xp)((t,n)=>new v({open:r,openProp:e,activeTriggerId:f,triggerIdProp:d},t,n));m.useControlledProp("openProp",e),m.useControlledProp("triggerIdProp",d),m.useContextCallback("onOpenChange",i),m.useContextCallback("onOpenChangeComplete",o);let y=m.useState("open"),b=m.useState("activeTriggerId"),k=m.useState("mounted"),_=m.useState("payload");(0,p.tr)(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:M}=(0,p.l$)(y,m,()=>{m.context.inlineRectCoordsRef.current=void 0});(0,a.g)(()=>{y&&null==b&&m.set("payload",void 0)},[m,b,y]),n.useImperativeHandle(s,()=>({unmount:M,close:()=>m.setOpen(!1,(0,u.d)(c.zJ))}),[M,m]);let S=y||k;return(0,x.jsxs)(l.O.Provider,{value:m,children:[h&&(0,x.jsx)(p.Ae,{handle:h,store:m}),S&&(0,x.jsx)(w,{store:m}),"function"==typeof g?g({payload:_}):g]})}function w({store:t}){let e=t.useState("floatingRootContext"),r=(0,o.s)(e);return(0,p.i6)(t,{activeTriggerProps:r.reference,inactiveTriggerProps:r.trigger,popupProps:r.floating}),null}let k=(0,i.G1)(function(t){return(0,l.r)(!0)?(0,x.jsx)(b,{...t}):(0,x.jsx)(s.P6,{children:(0,x.jsx)(b,{...t})})})},48318:(t,e,r)=>{"use strict";r.d(e,{D:()=>N});var n=r(56227),i=r(24987);function a(t,e){let r=function(t,e){switch(t.nodeType){case 1:return function(t,e){let r=t.namespaceURI,a=r===i.t.svg?n.s:n.h,s=r===i.t.html?t.tagName.toLowerCase():t.tagName,l=r===i.t.html&&"template"===s?t.content:t,u=t.getAttributeNames(),c={},h=-1;for(;++h<u.length;)c[u[h]]=t.getAttribute(u[h])||"";return a(s,c,o(l,e))}(t,e);case 3:return{type:"text",value:t.nodeValue||""};case 8:return{type:"comment",value:t.nodeValue||""};case 9:case 11:return function(t,e){return{type:"root",children:o(t,e)}}(t,e);case 10:return{type:"doctype"};default:return}}(t,e);return r&&e.afterTransform&&e.afterTransform(t,r),r}function o(t,e){let r=t.childNodes,n=[],i=-1;for(;++i<r.length;){let t=a(r[i],e);void 0!==t&&n.push(t)}return n}let s=new DOMParser;var l=r(64587);let u=function(t,e,r){let n=(0,l.C)(r);if(!t||!t.type||!t.children)throw Error("Expected parent node");if("number"==typeof e){if(e<0||e===1/0)throw Error("Expected positive finite number as index")}else if((e=t.children.indexOf(e))<0)throw Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]},c=function(t){if(null==t)return d;if("string"==typeof t){var e;return e=t,h(function(t){return t.tagName===e})}if("object"==typeof t){var r=t;let e=[],n=-1;for(;++n<r.length;)e[n]=c(r[n]);return h(function(...t){let r=-1;for(;++r<e.length;)if(e[r].apply(this,t))return!0;return!1})}if("function"==typeof t)return h(t);throw Error("Expected function, string, or array as `test`")};function h(t){return function(e,r,n){var i;return!!(null!==(i=e)&&"object"==typeof i&&"type"in i&&"tagName"in i&&t.call(this,e,"number"==typeof r?r:void 0,n||void 0))}}function d(t){return!!(t&&"object"==typeof t&&"type"in t&&"element"===t.type&&"tagName"in t&&"string"==typeof t.tagName)}let f=/\n/g,p=/[\t ]+/g,g=c("br"),m=c(function(t){return"td"===t.tagName||"th"===t.tagName}),y=c("p"),v=c("tr"),x=c(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(t){return!!(t.properties||{}).hidden},function(t){return"dialog"===t.tagName&&!(t.properties||{}).open}]),b=c(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function w(t,e){let r,n=String(t.value),i=[],a=[],o=0;for(;o<=n.length;){f.lastIndex=o;let t=f.exec(n),r=t&&"index"in t?t.index:n.length;i.push(function(t,e,r){let n,i=[],a=0;for(;a<t.length;){p.lastIndex=a;let r=p.exec(t);n=r?r.index:t.length,a||n||!r||e||i.push(""),a!==n&&i.push(t.slice(a,n)),a=r?n+r[0].length:n}return a===n||r||i.push(""),i.join(" ")}(n.slice(o,r).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||e.breakBefore,r!==n.length||e.breakAfter)),o=r+1}let s=-1;for(;++s<i.length;)8203===i[s].charCodeAt(i[s].length-1)||s<i.length-1&&8203===i[s+1].charCodeAt(0)?(a.push(i[s]),r=void 0):i[s]?("number"==typeof r&&a.push(r),a.push(i[s]),r=0):(0===s||s===i.length-1)&&a.push(0);return a}function k(t,e){if("element"===t.type){let r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}var _=r(17971),M=r(72034);let S={},A=[];function T(t){let e=t||S;return function(t,r){(0,M.VG)(t,"element",function(t,n){var i,o,l;let c,h,d=Array.isArray(t.properties.className)?t.properties.className:A,f=d.includes("language-math"),p=d.includes("math-display"),S=d.includes("math-inline"),T=p;if(!f&&!p&&!S)return;let E=n[n.length-1],C=t;if("code"===t.tagName&&f&&E&&"element"===E.type&&"pre"===E.tagName&&(C=E,E=n[n.length-2],T=!0),!E)return;let R=function(t,e){let r,n="children"in t?t.children:[],i=b(t),a=k(t,{whitespace:(e||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];("text"===t.type||"comment"===t.type)&&o.push(...w(t,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<n.length;)o.push(...function t(e,r,n){return"element"===e.type?function(e,r,n){let i,a,o=k(e,n),s=e.children||[],l=-1,c=[];if(x(e))return c;for(g(e)||v(e)&&u(r,e,v)?a="\n":y(e)?(i=2,a=2):b(e)&&(i=1,a=1);++l<s.length;)c=c.concat(t(s[l],e,{whitespace:o,breakBefore:l?void 0:i,breakAfter:l<s.length-1?g(s[l+1]):a}));return m(e)&&u(r,e,m)&&c.push(" "),i&&c.unshift(i),a&&c.push(a),c}(e,r,n):"text"===e.type?"normal"===n.whitespace?w(e,n):[String(e.value)]:[]}(n[s],t,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<n.length-1?g(n[s+1]):i}));let l=[];for(s=-1;++s<o.length;){let t=o[s];"number"==typeof t?void 0!==r&&t>r&&(r=t):t&&(void 0!==r&&r>-1&&l.push("\n".repeat(r)||" "),r=-1,l.push(t))}return l.join("")}(C,{whitespace:"pre"});try{h=_.default.renderToString(R,{...e,displayMode:T,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,t],cause:a,place:t.position,ruleId:i,source:"rehype-katex"});try{h=_.default.renderToString(R,{...e,displayMode:T,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:R}]}]}}"string"==typeof h&&(h=(i=h,o={fragment:!0},a(o?.fragment?(l=i,(c=document.createElement("template")).innerHTML=l,c.content):s.parseFromString(i,"text/html"),{})||{type:"root",children:[]}).children);let P=E.children.indexOf(C);return E.children.splice(P,1,...h),M._Z})}}var E=r(94703),C=r(13332),R=r(66623),P=r(1052);let L={tokenize:function(t,e,r){let n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(e){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),function e(n){return 36===n?(t.consume(n),o++,e):o<2?r(n):(t.exit("mathFlowFenceSequence"),(0,R.N)(t,s,"whitespace")(n))}(e)};function s(e){return null===e||(0,P.HP)(e)?l(e):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),function e(n){return null===n||(0,P.HP)(n)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),l(n)):36===n?r(n):(t.consume(n),e)}(e))}function l(r){return(t.exit("mathFlowFence"),n.interrupt)?e(r):t.attempt(D,u,d)(r)}function u(e){return t.attempt({tokenize:f,partial:!0},d,c)(e)}function c(e){return(a?(0,R.N)(t,h,"linePrefix",a+1):h)(e)}function h(e){return null===e?d(e):(0,P.HP)(e)?t.attempt(D,u,d)(e):(t.enter("mathFlowValue"),function e(r){return null===r||(0,P.HP)(r)?(t.exit("mathFlowValue"),h(r)):(t.consume(r),e)}(e))}function d(r){return t.exit("mathFlow"),e(r)}function f(t,e,r){let i=0;return(0,R.N)(t,function(e){return t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),function e(n){return 36===n?(i++,t.consume(n),e):i<o?r(n):(t.exit("mathFlowFenceSequence"),(0,R.N)(t,a,"whitespace")(n))}(e)},"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(n){return null===n||(0,P.HP)(n)?(t.exit("mathFlowFence"),e(n)):r(n)}}},concrete:!0,name:"mathFlow"},D={tokenize:function(t,e,r){let n=this;return function(r){return null===r?e(r):(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),i)};function i(t){return n.parser.lazy[n.now().line]?r(t):e(t)}},partial:!0};function O(t){let e,r,n=t.length-4,i=3;if(("lineEnding"===t[3][1].type||"space"===t[i][1].type)&&("lineEnding"===t[n][1].type||"space"===t[n][1].type)){for(e=i;++e<n;)if("mathTextData"===t[e][1].type){t[n][1].type="mathTextPadding",t[i][1].type="mathTextPadding",i+=2,n-=2;break}}for(e=i-1,n++;++e<=n;)void 0===r?e!==n&&"lineEnding"!==t[e][1].type&&(r=e):(e===n||"lineEnding"===t[e][1].type)&&(t[r][1].type="mathTextData",e!==r+2&&(t[r][1].end=t[e-1][1].end,t.splice(r+2,e-r-2),n-=e-r-2,e=r+2),r=void 0);return t}function $(t){return 36!==t||"characterEscape"===this.events[this.events.length-1][1].type}let I={};function j(t){let e,r=t||I,n=this.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push({flow:{36:L},text:{36:(null==(e=(r||{}).singleDollarTextMath)&&(e=!0),{tokenize:function(t,r,n){let i,a,o=0;return function(r){return t.enter("mathText"),t.enter("mathTextSequence"),function r(i){return 36===i?(t.consume(i),o++,r):o<2&&!e?n(i):(t.exit("mathTextSequence"),s(i))}(r)};function s(e){return null===e?n(e):36===e?(a=t.enter("mathTextSequence"),i=0,function e(n){return 36===n?(t.consume(n),i++,e):i===o?(t.exit("mathTextSequence"),t.exit("mathText"),r(n)):(a.type="mathTextData",l(n))}(e)):32===e?(t.enter("space"),t.consume(e),t.exit("space"),s):(0,P.HP)(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),s):(t.enter("mathTextData"),l(e))}function l(e){return null===e||32===e||36===e||(0,P.HP)(e)?(t.exit("mathTextData"),s(e)):(t.consume(e),l)}},resolve:O,previous:$,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(t){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},t)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(t){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},t),this.buffer()}},exit:{mathFlow:function(t){let e=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r=this.stack[this.stack.length-1];(0,E.ok)("math"===r.type),this.exit(t),r.value=e;let n=r.data.hChildren[0];(0,E.ok)("element"===n.type),(0,E.ok)("code"===n.tagName),n.children.push({type:"text",value:e}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let t=this.resume(),e=this.stack[this.stack.length-1];(0,E.ok)("math"===e.type),e.meta=t},mathFlowValue:t,mathText:function(t){let e=this.resume(),r=this.stack[this.stack.length-1];(0,E.ok)("inlineMath"===r.type),this.exit(t),r.value=e,r.data.hChildren.push({type:"text",value:e})},mathTextData:t}};function t(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}}()),o.push(function(t){let e=(t||{}).singleDollarTextMath;return null==e&&(e=!0),r.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(t,e,r,n){let i=t.value||"",a=r.createTracker(n),o="$".repeat(Math.max((0,C.D)(i,"$")+1,2)),s=r.enter("mathFlow"),l=a.move(o);if(t.meta){let e=r.enter("mathFlowMeta");l+=a.move(r.safe(t.meta,{after:"\n",before:l,encode:["$"],...a.current()})),e()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:r}};function r(t,r,n){let i=t.value||"",a=1;for(!e&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<n.unsafe.length;){let t,e=n.unsafe[s];if(!e.atBreak)continue;let r=n.compilePattern(e);for(;t=r.exec(i);){let e=t.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(t.index+1)}}return o+i+o}}(r))}var N=function(t={}){var e,r;return{name:"katex",type:"math",remarkPlugin:[j,{singleDollarTextMath:null!=(e=t.singleDollarTextMath)&&e}],rehypePlugin:[T,{errorColor:null!=(r=t.errorColor)?r:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},48495:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>c,GX:()=>u,KX:()=>l,WW:()=>o,ue:()=>a});var n=r(89316),i=r(39410),a=(0,i.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,i.K)(t=>{let e=s([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),s=(0,i.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),l=(0,i.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),u=(0,i.K)(t=>{let{stylesArray:e}=o(t),r=[],n=[],i=[],a=[];return e.forEach(t=>{let e=t[0];l(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),c=(0,i.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,n.D7)(),{nodeBorder:a,mainBkg:s}=r,{stylesMap:l}=o(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),h=(0,i.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},48742:(t,e,r)=>{"use strict";r.d(e,{P:()=>c});var n=r(69266),i=r(33705),a=r(69611),o=r(8581),s=r(43745),l=r(47623),u=r(97591);let c=n.forwardRef(function(t,e){let{render:r,className:c,style:h,keepMounted:d=!1,...f}=t,p=(0,i.W)(),g=p.checked||p.indeterminate,{mounted:m,transitionStatus:y,setMounted:v}=(0,l.$)(g),x=n.useRef(null),b={...p,transitionStatus:y};(0,s.v)({open:g,ref:x,onComplete(){g||v(!1)}});let w={...(0,o.G)(p),...u.G},k=(0,a.o)("span",t,{ref:[e,x],state:b,stateAttributesMapping:w,props:f});return d||m?k:null})},49343:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(89316),i=r(39410),a=r(86594),o=(0,i.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,a.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},50163:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},52871:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},54346:(t,e,r)=>{"use strict";r.d(e,{JR:()=>_,_G:()=>c,be:()=>o,gB:()=>f,gl:()=>b});var n=r(69266),i=r(43209),a=r(31217);function o(t,e,r){let n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function s(t){return null!==t&&t>=0}let l=t=>{let{rects:e,activeIndex:r,overIndex:n,index:i}=t,a=o(e,n,r),s=e[i],l=a[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},u={scaleX:1,scaleY:1},c=t=>{var e,r,n,i;let a,o,s,{activeIndex:l,activeNodeRect:c,index:h,rects:d,overIndex:f}=t,p=null!=(e=d[l])?e:c;if(!p)return null;if(h===l){let t=d[f];return t?{x:0,y:l<f?t.top+t.height-(p.top+p.height):t.top-p.top,...u}:null}let g=(r=d,n=h,i=l,a=r[n],o=r[n-1],s=r[n+1],a?i<n?o?a.top-(o.top+o.height):s?s.top-(a.top+a.height):0:s?s.top-(a.top+a.height):o?a.top-(o.top+o.height):0:0);return h>l&&h<=f?{x:0,y:-p.height-g,...u}:h<l&&h>=f?{x:0,y:p.height+g,...u}:{x:0,y:0,...u}},h="Sortable",d=n.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function f(t){let{children:e,id:r,items:o,strategy:s=l,disabled:u=!1}=t,{active:c,dragOverlay:f,droppableRects:p,over:g,measureDroppableContainers:m}=(0,i.fF)(),y=(0,a.YG)(h,r),v=null!==f.rect,x=(0,n.useMemo)(()=>o.map(t=>"object"==typeof t&&"id"in t?t.id:t),[o]),b=null!=c,w=c?x.indexOf(c.id):-1,k=g?x.indexOf(g.id):-1,_=(0,n.useRef)(x),M=!function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}(x,_.current),S=-1!==k&&-1===w||M,A="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,a.Es)(()=>{M&&b&&m(x)},[M,x,b,m]),(0,n.useEffect)(()=>{_.current=x},[x]);let T=(0,n.useMemo)(()=>({activeIndex:w,containerId:y,disabled:A,disableTransforms:S,items:x,overIndex:k,useDragOverlay:v,sortedRects:x.reduce((t,e,r)=>{let n=p.get(e);return n&&(t[r]=n),t},Array(x.length)),strategy:s}),[w,y,A.draggable,A.droppable,S,x,k,p,v,s]);return n.createElement(d.Provider,{value:T},e)}let p=t=>{let{id:e,items:r,activeIndex:n,overIndex:i}=t;return o(r,n,i).indexOf(e)},g=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=t;return!!u&&!!n&&(s===a||i!==o)&&(!!r||o!==i&&e===l)},m={duration:200,easing:"ease"},y="transform",v=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function b(t){var e,r,o,l;let{animateLayoutChanges:u=g,attributes:c,disabled:h,data:f,getNewIndex:b=p,id:w,strategy:k,resizeObserverConfig:_,transition:M=m}=t,{items:S,containerId:A,activeIndex:T,disabled:E,disableTransforms:C,sortedRects:R,overIndex:P,useDragOverlay:L,strategy:D}=(0,n.useContext)(d),O=(e=h,r=E,"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(o=null==e?void 0:e.draggable)?o:r.draggable,droppable:null!=(l=null==e?void 0:e.droppable)?l:r.droppable}),$=S.indexOf(w),I=(0,n.useMemo)(()=>({sortable:{containerId:A,index:$,items:S},...f}),[A,f,$,S]),j=(0,n.useMemo)(()=>S.slice(S.indexOf(w)),[S,w]),{rect:N,node:F,isOver:K,setNodeRef:z}=(0,i.zM)({id:w,data:I,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:j,..._}}),{active:B,activatorEvent:U,activeNodeRect:V,attributes:H,setNodeRef:W,listeners:Y,isDragging:q,over:X,setActivatorNodeRef:G,transform:Z}=(0,i.PM)({id:w,data:I,attributes:{...x,...c},disabled:O.draggable}),Q=(0,a.jn)(z,W),J=!!B,tt=J&&!C&&s(T)&&s(P),te=!L&&q,tr=te&&tt?Z:null,tn=tt?null!=tr?tr:(null!=k?k:D)({rects:R,activeNodeRect:V,activeIndex:T,overIndex:P,index:$}):null,ti=s(T)&&s(P)?b({id:w,items:S,activeIndex:T,overIndex:P}):$,ta=null==B?void 0:B.id,to=(0,n.useRef)({activeId:ta,items:S,newIndex:ti,containerId:A}),ts=S!==to.current.items,tl=u({active:B,containerId:A,isDragging:q,isSorting:J,id:w,index:$,items:S,newIndex:to.current.newIndex,previousItems:to.current.items,previousContainerId:to.current.containerId,transition:M,wasDragging:null!=to.current.activeId}),tu=function(t){let{disabled:e,index:r,node:o,rect:s}=t,[l,u]=(0,n.useState)(null),c=(0,n.useRef)(r);return(0,a.Es)(()=>{if(!e&&r!==c.current&&o.current){let t=s.current;if(t){let e=(0,i.Sj)(o.current,{ignoreTransform:!0}),r={x:t.left-e.left,y:t.top-e.top,scaleX:t.width/e.width,scaleY:t.height/e.height};(r.x||r.y)&&u(r)}}r!==c.current&&(c.current=r)},[e,r,o,s]),(0,n.useEffect)(()=>{l&&u(null)},[l]),l}({disabled:!tl,index:$,node:F,rect:N});return(0,n.useEffect)(()=>{J&&to.current.newIndex!==ti&&(to.current.newIndex=ti),A!==to.current.containerId&&(to.current.containerId=A),S!==to.current.items&&(to.current.items=S)},[J,ti,A,S]),(0,n.useEffect)(()=>{if(ta===to.current.activeId)return;if(null!=ta&&null==to.current.activeId){to.current.activeId=ta;return}let t=setTimeout(()=>{to.current.activeId=ta},50);return()=>clearTimeout(t)},[ta]),{active:B,activeIndex:T,attributes:H,data:I,rect:N,index:$,newIndex:ti,items:S,isOver:K,isSorting:J,isDragging:q,listeners:Y,node:F,overIndex:P,over:X,setNodeRef:Q,setActivatorNodeRef:G,setDroppableNodeRef:z,setDraggableNodeRef:W,transform:null!=tu?tu:tn,transition:tu||ts&&to.current.newIndex===$?v:(!te||(0,a.kx)(U))&&M&&(J||tl)?a.Ks.Transition.toString({...M,property:y}):void 0}}function w(t){if(!t)return!1;let e=t.data.current;return!!e&&"sortable"in e&&"object"==typeof e.sortable&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable}let k=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],_=(t,e)=>{let{context:{active:r,collisionRect:n,droppableRects:o,droppableContainers:s,over:l,scrollableAncestors:u}}=e;if(k.includes(t.code)){if(t.preventDefault(),!r||!n)return;let e=[];s.getEnabled().forEach(r=>{if(!r||null!=r&&r.disabled)return;let a=o.get(r.id);if(a)switch(t.code){case i.vL.Down:n.top<a.top&&e.push(r);break;case i.vL.Up:n.top>a.top&&e.push(r);break;case i.vL.Left:n.left>a.left&&e.push(r);break;case i.vL.Right:n.left<a.left&&e.push(r)}});let d=(0,i.y$)({active:r,collisionRect:n,droppableRects:o,droppableContainers:e,pointerCoordinates:null}),f=(0,i.Vy)(d,"id");if(f===(null==l?void 0:l.id)&&d.length>1&&(f=d[1].id),null!=f){let t=s.get(r.id),e=s.get(f),l=e?o.get(e.id):null,d=null==e?void 0:e.node.current;if(d&&l&&t&&e){var c,h;let r=(0,i.sl)(d).some((t,e)=>u[e]!==t),o=M(t,e),s=(c=t,h=e,!!w(c)&&!!w(h)&&!!M(c,h)&&c.data.current.sortable.index<h.data.current.sortable.index),f=r||!o?{x:0,y:0}:{x:s?n.width-l.width:0,y:s?n.height-l.height:0},p={x:l.left,y:l.top};return f.x&&f.y?p:(0,a.Re)(p,f)}}}};function M(t,e){return!!w(t)&&!!w(e)&&t.data.current.sortable.containerId===e.data.current.sortable.containerId}},54359:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},54751:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});let n={...r(54967).dc,checked:t=>t?{"data-checked":""}:{"data-unchecked":""}}},55263:(t,e,r)=>{"use strict";r.d(e,{Q:()=>n});let n=(0,r(69266).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},55289:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},55531:(t,e,r)=>{"use strict";r.d(e,{XX:()=>d,q7:()=>f,sO:()=>h});var n=r(71627),i=r(50789),a=r(4196),o=r(89316),s=r(47508),l=r(39410),u={common:o.Y2,getConfig:o.zj,insertCluster:i.U,insertEdge:n.Jo,insertEdgeLabel:n.jP,insertMarkers:n.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:s.R,positionEdgeLabel:n.T_},c={},h=(0,l.K)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,l.K)(()=>{h([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([r.e(17817),r.e(41487),r.e(3376),r.e(4837)]).then(r.bind(r,4837)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([r.e(76705),r.e(17817),r.e(41487),r.e(86093)]).then(r.bind(r,38178)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([r.e(57634),r.e(24725)]).then(r.bind(r,24725)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,l.K)(async(t,e,r)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let n=c[t.layoutAlgorithm],i=await n.loader(),{theme:a,themeVariables:o}=t.config,{useGradient:s,gradientStart:l,gradientStop:h}=o,d=e.attr("id");if(e.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),s){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(t,e,u,{algorithm:n.algorithm},r)},"render"),f=(0,l.K)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return s.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},56906:(t,e,r)=>{"use strict";r.d(e,{l:()=>a,w:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(35));return t}},58048:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});let n=r(54276)._(r(41144));function i(t,e){let r={};"function"==typeof t&&(r.loader=t);let i={...r,...e};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},58619:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},59095:(t,e,r)=>{"use strict";r.d(e,{j:()=>_});var n=r(69266),i=r(66538),a=r(66758),o=r(48356),s=r(63717),l=r(87047),u=r(82956),c=r(1712),h=r(86947),d=r(23754),f=r(6561);let p=[];var g=r(26564),m=r(69611),y=r(73881),v=r(7962);function x(t){let{render:e,className:r,style:x,refs:b=o.Ml,props:w=o.Ml,state:k=o.t0,stateAttributesMapping:_,highlightedIndex:M,onHighlightedIndexChange:S,orientation:A,grid:T,loopFocus:E,onLoop:C,enableHomeAndEndKeys:R,onMapChange:P,stopEventPropagation:L=!0,rootRef:D,disabledIndices:O,modifierKeys:$,highlightItemOnHover:I=!1,tag:j="div",...N}=t,{props:F,highlightedIndex:K,onHighlightedIndexChange:z,elementsRef:B,onMapChange:U,relayKeyboardEvent:V}=function(t){let{loopFocus:e=!0,orientation:r="both",grid:o,onLoop:s,direction:g,highlightedIndex:m,onHighlightedIndexChange:y,rootRef:v,enableHomeAndEndKeys:x=!1,stopEventPropagation:b,disabledIndices:w,modifierKeys:k=p}=t,[_,M]=n.useState(0),S=null!=o,A=n.useRef(null),T=(0,u.a)(A,v),E=n.useRef([]),C=n.useRef(!1),R=m??_,P=(0,i.K)((t,e=!1)=>{if((y??M)(t),e){let e=E.current[t];(0,c.$v)(A.current,e,g,r)}}),L=(0,i.K)(t=>{if(0===t.size||C.current)return;C.current=!0;let e=Array.from(t.keys()),n=e.find(t=>t?.hasAttribute(d.h))??null,i=n?t.get(n)?.index??-1:-1;if(-1!==i)P(i);else if((0,h.FP)(e,R,w)){let t=(0,h.BF)(e,{disabledIndices:w});(0,h.du)(e,t)||P(t)}(0,c.$v)(A.current,n,g,r)});(0,a.g)(()=>{if(null==w||null!=m||!C.current)return;let t=E.current;if((0,h.FP)(t,R,w)){let e=(0,h.BF)(t,{disabledIndices:w});(0,h.du)(t,e)||P(e)}},[w,m,R,E,P]);let D=(0,i.K)((t,e,r)=>s?s(t,e,r,E):r),O=(0,i.K)(t=>{let n=t.key===c.yZ||t.key===c.Kp;if(!c.jF.has(t.key)||!x&&n||function(t,e){for(let r of c.rT)if(!e.includes(r)&&t.getModifierState(r))return!0;return!1}(t,k)||!A.current)return;let i="rtl"===g,a=i?c.eR:c.RJ,u=i?c.RJ:c.eR,d="vertical"===r?c.Jd:a,p="vertical"===r?c.il:u,m=(0,f.EW)(t.nativeEvent);if(null!=m&&(0,c.Qi)(m)&&!(0,l.F)(m)){let e=m.selectionStart,r=m.selectionEnd,n=m.value;if(null==e||t.shiftKey||e!==r||t.key!==p&&e<n.length||t.key!==d&&e>0)return}let y=R,v=(0,h.Zb)(E,w),_=(0,h.vB)(E,w);null!=o&&(y=o({disabledIndices:w,elementsRef:E,event:t,highlightedIndex:R,loopFocus:e,maxIndex:_,minIndex:v,onLoop:D,orientation:r,rtl:i}));let M="vertical"!==r&&t.key===a||"horizontal"!==r&&t.key===c.Jd,T="vertical"!==r&&t.key===u||"horizontal"!==r&&t.key===c.il;x&&(t.key===c.yZ?y=v:t.key===c.Kp&&(y=_)),y===R&&(M||T)&&(e&&y===_&&M?(y=v,s&&(y=s(t,R,y,E))):e&&y===v&&T?(y=_,s&&(y=s(t,R,y,E))):y=(0,h.BF)(E.current,{startingIndex:y,decrement:T,disabledIndices:w})),y===R||(0,h.du)(E.current,y)||(b&&t.stopPropagation(),(S||n||M||T)&&t.preventDefault(),P(y,!0),queueMicrotask(()=>{E.current[y]?.focus()}))});return{props:{ref:T,onFocus(t){let e=A.current,r=(0,f.EW)(t.nativeEvent);e&&null!=r&&(0,c.Qi)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:O},highlightedIndex:R,onHighlightedIndexChange:P,elementsRef:E,onMapChange:L,relayKeyboardEvent:O}}({grid:T,loopFocus:E,onLoop:C,orientation:A,highlightedIndex:M,onHighlightedIndexChange:S,rootRef:D,stopEventPropagation:L,enableHomeAndEndKeys:R,direction:(0,y.j)(),disabledIndices:O,modifierKeys:$}),H=(0,m.o)(j,t,{state:k,ref:b,props:[F,...w,N],stateAttributesMapping:_}),W=n.useMemo(()=>({highlightedIndex:K,onHighlightedIndexChange:z,highlightItemOnHover:I,relayKeyboardEvent:V}),[K,z,I,V]);return(0,v.jsx)(g.H.Provider,{value:W,children:(0,v.jsx)(s.u,{elementsRef:B,onMapChange:t=>{P?.(t),U(t)},children:H})})}var b=r(67048),w=r(65205),k=r(89121);let _=n.forwardRef(function(t,e){let{activateOnFocus:r=!1,className:s,loopFocus:l=!0,render:u,style:c,...h}=t,{orientation:d,setTabMap:f,tabActivationDirection:p}=(0,w.z)(),[g,m]=n.useState(0),[y,_]=n.useState(null),M=n.useRef(new Set),S=n.useRef(new Set),A=n.useRef(null);(0,a.g)(()=>{if("u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{M.current.forEach(t=>{t()})});return A.current=t,y&&t.observe(y),S.current.forEach(e=>{t.observe(e)}),()=>{t.disconnect(),A.current=null}},[y]);let T=(0,i.K)(t=>(M.current.add(t),()=>{M.current.delete(t)})),E=(0,i.K)(t=>(S.current.add(t),A.current?.observe(t),()=>{S.current.delete(t),A.current?.unobserve(t)})),C=n.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:T,registerTabResizeObserverElement:E,tabsListElement:y}),[r,T,E,y]);return(0,v.jsx)(k.O.Provider,{value:C,children:(0,v.jsx)(x,{render:u,className:s,style:c,state:{orientation:d,tabActivationDirection:p},refs:[e,_],props:[{"aria-orientation":"vertical"===d?"vertical":void 0,role:"tablist"},h],stateAttributesMapping:b.h,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:l,orientation:d,onHighlightedIndexChange:m,onMapChange:f,disabledIndices:o.Ml})})})},59252:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},59275:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},59863:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(69266);let i="u">typeof window?n.useLayoutEffect:n.useEffect},60008:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},60794:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]])},61108:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},61600:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var n=r(69266),i=r(35182);function a(){let t=(0,n.useContext)(i.t);return t?t.custom:void 0}},61989:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},62079:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],u=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>u);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:u,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=u))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),u],[Math.round(n.x),u]])}u+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),c++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>X});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),u=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+u],[...e]],[[t[0]+l,t[1]-u],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,u=t-l*n,c=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=c-a+2*Math.random()*a,s=h+u+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,u=t[0],c=t[1];u[0]>c[0]&&(u=t[1],c=t[0]);let h=Math.atan((c[1]-u[1])/(c[0]-u[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[u[0]+a*Math.cos(h)+l*Math.cos(h),u[1]+a*Math.sin(h)+l*Math.sin(h)],c=[u[0]+o*Math.cos(h)+l*Math.cos(h),u[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),u=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],c=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[u[0]+s*Math.cos(l+Math.PI/4),u[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],c[0],c[1],r))}}),n}}let d={};class f{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let p={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=p[a.text],n=a.text}else 1===a.type?o=p[n]:(i++,o=p[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof p[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:c}of t){switch(u){case"M":e.push({key:"M",data:[...c]}),[n,i]=c,[a,o]=c;break;case"C":e.push({key:"C",data:[...c]}),n=c[4],i=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[n,i]=c;break;case"H":n=c[0],e.push({key:"L",data:[n,i]});break;case"V":i=c[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...c]}),s=c[0],l=c[1],n=c[2],i=c[3];break}case"T":{let[t,a]=c,o=0,u=0;"Q"===r||"T"===r?(o=n+(n-s),u=i+(i-l)):(o=n,u=i);let h=n+2*(o-n)/3,d=i+2*(u-i)/3,f=t+2*(o-t)/3,p=a+2*(u-a)/3;e.push({key:"C",data:[h,d,f,p,t,a]}),s=o,l=u,n=t,i=a;break}case"Q":{let[t,r,a,o]=c,u=n+2*(t-n)/3,h=i+2*(r-i)/3,d=a+2*(t-a)/3,f=o+2*(r-o)/3;e.push({key:"C",data:[u,h,d,f,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],o=c[3],s=c[4],l=c[5],u=c[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,u,l,u]}),n=l,i=u):(n!==l||i!==u)&&((function t(e,r,n,i,a,o,s,l,u,c){let h=Math.PI*s/180,d=[],f=0,p=0,g=0,m=0;if(c)[f,p,g,m]=c;else{[e,r]=v(e,r,-h),[n,i]=v(n,i,-h);let t=(e-n)/2,s=(r-i)/2,c=t*t/(a*a)+s*s/(o*o);c>1&&(a*=c=Math.sqrt(c),o*=c);let d=a*a,y=o*o,x=(l===u?-1:1)*Math.sqrt(Math.abs((d*y-d*s*s-y*t*t)/(d*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,f=Math.asin(parseFloat(((r-m)/o).toFixed(9))),p=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(f=Math.PI-f),n<g&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),u&&f>p&&(f-=2*Math.PI),!u&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>120*Math.PI/180){let e=p,r=n,l=i;d=t(n=g+a*Math.cos(p=u&&p>f?f+120*Math.PI/180*1:f+-(120*Math.PI/180*1)),i=m+o*Math.sin(p),r,l,a,o,s,0,u,[p,e,g,m])}y=p-f;let x=Math.cos(f),b=Math.cos(p),w=Math.tan(y/4),k=4/3*a*w,_=4/3*o*w,M=[e,r],S=[e+k*Math.sin(f),r-_*x],A=[n+k*Math.sin(p),i-_*b],T=[n,i];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],c)return[S,A,T].concat(d);{d=[S,A,T].concat(d);let t=[];for(let e=0;e<d.length;e+=3){let r=v(d[e][0],d[e][1],h),n=v(d[e+1][0],d[e+1][1],h),i=v(d[e+2][0],d[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,u,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=u);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=u}return e}function v(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return L(t,e)},randOffsetWithRange:function(t,e,r){return P(t,e,r)},ellipse:function(t,e,r,n,i){let a=_(r,n,i);return M(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return D(t,e,r,n,i,!0)}};function b(t,e,r,n,i){return{type:"path",ops:D(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...D(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...D(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?b(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function k(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=$(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:$(r[0],1.5*(1+.22*e.roughness),C(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=$(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:$(a,1.5*(1+.22*e.roughness),C(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function _(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=L(a*s,r),o+=L(o*s,r),{increment:i,rx:a,ry:o}}function M(t,e,r,n){let[i,a]=j(n.increment,t,e,n.rx,n.ry,1,n.increment*P(.1,P(.4,1,r),r),r),o=I(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=j(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=I(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function S(t,e,r,n,i,a,o,s,l){let u=Math.abs(r/2),c=Math.abs(n/2);u+=L(.01*u,l),c+=L(.01*c,l);let h=i,d=a;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);let f=Math.min(2*Math.PI/l.curveStepCount/2,(d-h)/2),p=N(f,t,e,u,c,h,d,1,l);if(!l.disableMultiStroke){let r=N(f,t,e,u,c,h,d,1.5,l);p.push(...r)}return o&&(s?p.push(...D(t,e,t+u*Math.cos(h),e+c*Math.sin(h),l),...D(t,e,t+u*Math.cos(d),e+c*Math.sin(d),l)):p.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+u*Math.cos(h),e+c*Math.sin(h)]})),{type:"path",ops:p}}function A(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...D(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,u]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],u=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let f=0;f<h;f++)0===f?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:L(u[0],s)),o[1]+(d?0:L(u[0],s))]}),c=d?[i,a]:[i+L(u[f],s),a+L(u[f],s)],l.push({op:"bcurveTo",data:[t+L(u[f],s),e+L(u[f],s),r+L(u[f],s),n+L(u[f],s),c[0],c[1]]});return l}(t,r,i,s,l,u,a,e)),a=[l,u];break}case"Z":n.push(...D(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+L(t,e),n[0][1]+L(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+L(t,e),n[a][1]+L(t,e)]})}}return{type:"fillPath",ops:r}}function E(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new s(e));break;case"cross-hatch":d[r]||(d[r]=new l(e));break;case"dots":d[r]||(d[r]=new u(e));break;case"dashed":d[r]||(d[r]=new c(e));break;case"zigzag-line":d[r]||(d[r]=new h(e));break;default:d[r="hachure"]||(d[r]=new a(e))}return d[r]})(e,x).fillPolygons(t,e)}function C(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function R(t){return t.randomizer||(t.randomizer=new f(t.seed||0)),t.randomizer.next()}function P(t,e,r,n=1){return r.roughness*n*(R(r)*(e-t)+t)}function L(t,e,r=1){return P(-t,t,e,r)}function D(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=O(t,e,r,n,i,!0,!1);if(o)return s;let l=O(t,e,r,n,i,!0,!0);return s.concat(l)}function O(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=i.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let h=c/2,d=.2+.2*R(i),f=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;f=L(f,i,u),p=L(p,i,u);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:L(h,i,u)),e+(m?0:L(h,i,u))]}):g.push({op:"move",data:[t+(m?0:L(c,i,u)),e+(m?0:L(c,i,u))]})),o?g.push({op:"bcurveTo",data:[f+t+(r-t)*d+L(h,i,u),p+e+(n-e)*d+L(h,i,u),f+t+2*(r-t)*d+L(h,i,u),p+e+2*(n-e)*d+L(h,i,u),r+(m?0:L(h,i,u)),n+(m?0:L(h,i,u))]}):g.push({op:"bcurveTo",data:[f+t+(r-t)*d+L(c,i,u),p+e+(n-e)*d+L(c,i,u),f+t+2*(r-t)*d+L(c,i,u),p+e+2*(n-e)*d+L(c,i,u),r+(m?0:L(c,i,u)),n+(m?0:L(c,i,u))]}),g}function $(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+L(e,r),t[0][1]+L(e,r)]),n.push([t[0][0]+L(e,r),t[0][1]+L(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+L(e,r),t[i][1]+L(e,r)]),i===t.length-1&&n.push([t[i][0]+L(e,r),t[i][1]+L(e,r)]);return I(n,null,r)}function I(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+L(t,r),e[1]+L(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function j(t,e,r,n,i,a,o,s){let l=[],u=[];if(0===s.roughness){t/=4,u.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),u.push(t)}u.push([e+ +n,r+0*i]),u.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let c=L(.5,s)-Math.PI/2;u.push([L(a,s)+e+.9*n*Math.cos(c-t),L(a,s)+r+.9*i*Math.sin(c-t)]);let h=2*Math.PI+c-.01;for(let o=c;o<h;o+=t){let t=[L(a,s)+e+n*Math.cos(o),L(a,s)+r+i*Math.sin(o)];l.push(t),u.push(t)}u.push([L(a,s)+e+n*Math.cos(c+2*Math.PI+.5*o),L(a,s)+r+i*Math.sin(c+2*Math.PI+.5*o)]),u.push([L(a,s)+e+.98*n*Math.cos(c+o),L(a,s)+r+.98*i*Math.sin(c+o)]),u.push([L(a,s)+e+.9*n*Math.cos(c+.5*o),L(a,s)+r+.9*i*Math.sin(c+.5*o)])}return[u,l]}function N(t,e,r,n,i,a,o,s,l){let u=a+L(.1,l),c=[];c.push([L(s,l)+e+.9*n*Math.cos(u-t),L(s,l)+r+.9*i*Math.sin(u-t)]);for(let a=u;a<=o;a+=t)c.push([L(s,l)+e+n*Math.cos(a),L(s,l)+r+i*Math.sin(a)]);return c.push([e+n*Math.cos(o),r+i*Math.sin(o)]),c.push([e+n*Math.cos(o),r+i*Math.sin(o)]),I(c,null,l)}function F(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function K(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function z(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function B(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,u=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=K(e,r);if(0===n)return K(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return K(t,z(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,u=n)}return Math.sqrt(l)>n?(B(t,e,u+1,n,a),B(t,u,r,n,a)):(a.length||a.push(o),a.push(s)),a}function U(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,u,c,h,d,f=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],u=3*o[0]-2*a[0]-l[0],u*=u,c=3*o[1]-2*a[1]-l[1],c*=c,h=3*s[0]-2*l[0]-a[0],h*=h,d=3*s[1]-2*l[1]-a[1],d*=d,u<h&&(u=h),c<d&&(c=d),u+c<n){let t=e[r+0];f.length?Math.sqrt(K(f[f.length-1],t))>1&&f.push(t):f.push(t),f.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=z(i,a,.5),u=z(a,o,.5),c=z(o,s,.5),h=z(l,u,.5),d=z(u,c,.5),p=z(h,d,.5);t([i,l,h,p],0,n,f),t([p,d,c,s],0,n,f)}return f}(t,3*r,e,n);return r&&r>0?B(n,0,n.length,r):n}let V="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[b(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let u=this._o(i),c=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,u);if(u.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===u.fillStyle?c.push(T([i],u)):c.push(E([i],u))}return u.stroke!==V&&c.push(h),this._d("rectangle",c,u)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=_(r,n,a),l=M(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=M(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(E([l.estimatedPoints],a));return a.stroke!==V&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),u=[],c=S(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",u.push(s)}else u.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=L(.01*s,o),l+=L(.01*l,o);let u=i,c=a;for(;u<0;)u+=2*Math.PI,c+=2*Math.PI;c-u>2*Math.PI&&(u=0,c=2*Math.PI);let h=(c-u)/o.curveStepCount,d=[];for(let r=u;r<=c;r+=h)d.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return d.push([t+s*Math.cos(c),e+l*Math.sin(c)]),d.push([t,e]),E([d],o)}(t,e,r,n,i,a,l));return l.stroke!==V&&u.push(c),this._d("arc",u,l)}curve(t,e){let r=this._o(e),n=[],i=k(t,r);if(r.fill&&r.fill!==V)if("solid"===r.fillStyle){let e=k(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...U(F([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...U(F(n),10,(1+r.roughness)/2));e.length&&n.push(E([e],r))}return r.stroke!==V&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push(E([t],r))),r.stroke!==V&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==V,a=r.stroke!==V,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...U(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let u=[];for(let t of n){let r=B(t,0,t.length,e);r.length&&u.push(r)}return u}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push(E(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:V};break;case"fillPath":e={d:this.opsToPath(t),stroke:V,strokeWidth:0,fill:r.fill||V};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||V,strokeWidth:r,fill:V}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class W{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class q{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(Y,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(Y,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var X={canvas:(t,e)=>new W(t,e),svg:(t,e)=>new q(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},62623:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(47552);let i={};for(let t=0;t<=255;t++)i[t]=n.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},63273:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},63434:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},64572:(t,e,r)=>{"use strict";r.d(e,{q:()=>s});var n=r(69266);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let s=(t={})=>{let[e,r]=(0,n.useState)(!1),[i,s]=(0,n.useState)(!1!==t.initial),[u,h]=(0,n.useState)(!1),d=(0,n.useRef)(null);d.current=t;let f=(0,n.useCallback)(()=>{if(!o)return!1;let t=window.getSelection();if(!t||!t.rangeCount)return!1;let e=t.getRangeAt(0);return e.commonAncestorContainer.contains(w.current)||w.current?.contains(e.commonAncestorContainer)},[]),p=(0,n.useCallback)(t=>{m.isAtBottom=t,s(t)},[]),g=(0,n.useCallback)(t=>{m.escapedFromLock=t,r(t)},[]),m=(0,n.useMemo)(()=>{let r;return{escapedFromLock:e,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(scrollTop){if(w.current){let{scrollBehavior:t}=getComputedStyle(w.current);"auto"!==t&&(w.current.style.scrollBehavior="auto"),w.current.scrollTop=scrollTop,m.ignoreScrollToTop=w.current.scrollTop,"auto"!==t&&(w.current.style.scrollBehavior=t)}},get targetScrollTop(){if(!w.current||!k.current)return 0;return w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!k.current)return 0;let{targetScrollTop:e}=this;if(!t.targetScrollTop)return e;if(r?.targetScrollTop===e)return r.calculatedScrollTop;let n=Math.max(Math.min(t.targetScrollTop(e,{scrollElement:w.current,contentElement:k.current}),e),0);return r={targetScrollTop:e,calculatedScrollTop:n},requestAnimationFrame(()=>{r=void 0}),n},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,n.useCallback)((t={})=>{let e;"string"==typeof t&&(t={animation:t}),t.preserveScrollPosition||p(!0);let r=Date.now()+(Number(t.wait)||0),n=c(d.current,t.animation),{ignoreEscapes:i=!1}=t,o=m.calculatedTargetScrollTop;t.duration instanceof Promise?t.duration.finally(()=>{e=Date.now()}):e=r+(t.duration??0);let s=async()=>{let t=new Promise(requestAnimationFrame).then(()=>{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:l}=m,u=performance.now(),h=(u-(m.lastTick??u))/a;if(m.animation||(m.animation={behavior:n,promise:t,ignoreEscapes:i}),m.animation.behavior===n&&(m.lastTick=u),f()||r>Date.now())return s();if(l<Math.min(o,m.calculatedTargetScrollTop)){if(m.animation?.behavior===n){if("instant"===n)return m.scrollTop=m.calculatedTargetScrollTop,s();m.velocity=(n.damping*m.velocity+n.stiffness*m.scrollDifference)/n.mass,m.accumulated+=m.velocity*h,m.scrollTop+=m.accumulated,m.scrollTop!==l&&(m.accumulated=0)}return s()}return e>Date.now()?(o=m.calculatedTargetScrollTop,s()):(m.animation=void 0,m.scrollTop<m.calculatedTargetScrollTop)?y({animation:c(d.current,d.current.resize),ignoreEscapes:i,duration:Math.max(0,e-Date.now())||void 0}):m.isAtBottom});return t.then(t=>(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),t))};return(!0!==t.wait&&(m.animation=void 0),m.animation?.behavior===n)?m.animation.promise:s()},[p,f,m]),v=(0,n.useCallback)(()=>{g(!0),p(!1)},[g,p]),x=(0,n.useCallback)(({target:t})=>{if(t!==w.current)return;let{scrollTop:e,ignoreScrollToTop:r}=m,{lastScrollTop:n=e}=m;m.lastScrollTop=e,m.ignoreScrollToTop=void 0,r&&r>e&&(n=r),h(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||e===r)return;if(f()){g(!0),p(!1);return}let t=e>n,i=e<n;if(m.animation?.ignoreEscapes){m.scrollTop=n;return}i&&(g(!0),p(!1)),t&&g(!1),!m.escapedFromLock&&m.isNearBottom&&p(!0)},1)},[g,p,f,m]),b=(0,n.useCallback)(({target:t,deltaY:e})=>{let r=t;for(;!["scroll","auto"].includes(getComputedStyle(r).overflow);){if(!r.parentElement)return;r=r.parentElement}r===w.current&&e<0&&w.current.scrollHeight>w.current.clientHeight&&!m.animation?.ignoreEscapes&&(g(!0),p(!1))},[g,p,m]),w=l(t=>{w.current?.removeEventListener("scroll",x),w.current?.removeEventListener("wheel",b),t?.addEventListener("scroll",x,{passive:!0}),t?.addEventListener("wheel",b,{passive:!0})},[]),k=l(t=>{let e;m.resizeObserver?.disconnect(),m.resizeObserver=void 0,t&&(m.resizeObserver=new ResizeObserver(([t])=>{let{height:r}=t.contentRect,n=r-(e??r);if(m.resizeDifference=n,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),h(m.isNearBottom),n>=0){let t=c(d.current,e?d.current.resize:d.current.initial);y({animation:t,wait:!0,preserveScrollPosition:!0,duration:"instant"===t?void 0:350})}else m.isNearBottom&&(g(!1),p(!0));e=r,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===n&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(t))},[]);return{contentRef:k,scrollRef:w,scrollToBottom:y,stopScroll:v,isAtBottom:i||u,isNearBottom:u,escapedFromLock:e,state:m}};function l(t,e){let r=(0,n.useCallback)(e=>(r.current=e,t(e)),e);return r}let u=new Map;function c(...t){let e={...i},r=!1;for(let n of t){if("instant"===n){r=!0;continue}"object"==typeof n&&(r=!1,e.damping=n.damping??e.damping,e.stiffness=n.stiffness??e.stiffness,e.mass=n.mass??e.mass)}let n=JSON.stringify(e);return u.has(n)||u.set(n,Object.freeze(e)),r?"instant":u.get(n)}},64696:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]])},65205:(t,e,r)=>{"use strict";r.d(e,{G:()=>a,z:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(64));return t}},66722:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},67011:(t,e,r)=>{"use strict";r.d(e,{B:()=>l,z:()=>s});var n=r(69266),i=r(64572);let a=(0,n.createContext)(null),o="u">typeof window?n.useLayoutEffect:n.useEffect;function s({instance:t,children:e,resize:r,initial:l,mass:u,damping:c,stiffness:h,targetScrollTop:d,contextRef:f,...p}){let g=(0,n.useRef)(null),m=n.useCallback((t,e)=>{let r=S?.targetScrollTop??d;return r?.(t,e)??t},[d]),y=(0,i.q)({mass:u,damping:c,stiffness:h,resize:r,initial:l,targetScrollTop:m}),{scrollRef:v,contentRef:x,scrollToBottom:b,stopScroll:w,isAtBottom:k,escapedFromLock:_,state:M}=t??y,S=(0,n.useMemo)(()=>({scrollToBottom:b,stopScroll:w,scrollRef:v,isAtBottom:k,escapedFromLock:_,contentRef:x,state:M,get targetScrollTop(){return g.current},set targetScrollTop(targetScrollTop){g.current=targetScrollTop}}),[b,k,x,v,w,_,M]);return(0,n.useImperativeHandle)(f,()=>S,[S]),o(()=>{v.current&&"visible"===getComputedStyle(v.current).overflow&&(v.current.style.overflow="auto")},[]),n.createElement(a.Provider,{value:S},n.createElement("div",{...p},"function"==typeof e?e(S):e))}function l(){let t=(0,n.useContext)(a);if(!t)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return t}(s||(s={})).Content=function({children:t,scrollClassName:e,...r}){let i=l();return n.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:e},n.createElement("div",{...r,ref:i.contentRef},"function"==typeof t?t(i):t))}},67048:(t,e,r)=>{"use strict";r.d(e,{h:()=>n});let n={tabActivationDirection:t=>({"data-activation-direction":t})}},67089:(t,e,r)=>{"use strict";r.d(e,{b:()=>o,u:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(63));return t}},67799:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>p,ML:()=>M,NA:()=>h,OG:()=>i,Qb:()=>m,R_:()=>s,Uw:()=>d,VP:()=>l,XZ:()=>b,ZR:()=>x,_u:()=>k,cT:()=>f,i1:()=>w,iq:()=>g,kj:()=>a,pj:()=>c,q:()=>y,ri:()=>_,vC:()=>u,x6:()=>v});let n="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",u="[object Date]",c="[object Map]",h="[object Set]",d="[object Array]",f="[object ArrayBuffer]",p="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",v="[object Uint16Array]",x="[object Uint32Array]",b="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",_="[object Float32Array]",M="[object Float64Array]"},68083:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=i(t.trim());do e=(r=i(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=r;if(!a)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var u=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return u;if("http:"===l||"https:"===l){if(!URL.canParse(u))return n.BLANK_URL;var c=new URL(u);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return u};var n=r(89618);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}},69202:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47057),i=r(93525);let a=(t,e)=>{let r=n.A.parse(t),a={};for(let t in e)e[t]&&(a[t]=r[t]+e[t]);return(0,i.A)(t,a)}},70943:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},71216:(t,e,r)=>{"use strict";r.d(e,{O:()=>o,X:()=>s});var n=r(4196),i=r(89316),a=r(39410),o=(0,a.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function s(t,e){let r=t.getElementsByTagName("img");if(!r||0===r.length)return;let o=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",o){let e=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=i.UI.fontSize]=(0,n.I5)(e),a=5*r+"px";t.style.minWidth=a,t.style.maxWidth=a}else t.style.width="100%";e(t)}(0,a.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,a.K)(s,"configureLabelImages")},71627:(t,e,r)=>{"use strict";r.d(e,{IU:()=>w,Jo:()=>O,T_:()=>S,UQ:()=>b,g0:()=>to,jP:()=>_,lP:()=>x});var n=r(50789),i=r(48495),a=r(7632),o=r(71216),s=r(94725),l=r(4196),u=r(89316),c=r(47508),h=r(39410),d=r(86594),f=r(62079),p=(0,h.K)((t,e,r,n,i,a=!1,o)=>{e.arrowTypeStart&&y(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&y(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),g={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,h.K)((t,e,r,n,i,a,o=!1,s)=>{let l=g[r],u=l&&m.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,d=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${d}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(d);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${d})`)},"addEdgeMarker"),v=(0,h.K)(t=>"string"==typeof t?t:(0,u.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),x=new Map,b=new Map,w=(0,h.K)(()=>{x.clear(),b.clear()},"clear"),k=(0,h.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),_=(0,h.K)(async(t,e)=>{let r,o=(0,u.D7)(),l=(0,u.E)(o),{labelStyles:h}=(0,i.GX)(e);e.labelStyle=h;let f=t.insert("g").attr("class","edgeLabel"),p=f.insert("g").attr("class","label").attr("data-id",e.id),g="markdown"===e.labelType,m=await (0,s.G)(t,e.label,{style:k(e.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},o);p.node().appendChild(m),c.R.info("abc82",e,e.labelType);let y=m.getBBox(),v=y;if(l){let t=m.children[0],e=(0,d.Ltv)(m);v=y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}else{let t=(0,d.Ltv)(m).select("text").node();t&&"function"==typeof t.getBBox&&(v=t.getBBox())}if(p.attr("transform",(0,a.Wg)(v,l)),x.set(e.id,f),e.width=y.width,e.height=y.height,e.startLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelLeft,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).startLeft=i,M(r,e.startLabelLeft)}if(e.startLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelRight,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).startRight=i,M(r,e.startLabelRight)}if(e.endLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(i,e.endLabelLeft,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).endLeft=i,M(r,e.endLabelLeft)}if(e.endLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(i,e.endLabelRight,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).endRight=i,M(r,e.endLabelRight)}return m},"insertEdgeLabel");function M(t,e){(0,u.E)((0,u.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,h.K)(M,"setTerminalWidth");var S=(0,h.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,x.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=(0,u.D7)(),{subGraphTitleTotalMargin:i}=(0,o.O)(n);if(t.label){let n=x.get(t.id),a=t.x,o=t.y;if(r){let n=l._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(a=n.x,o=n.y)}n.attr("transform",`translate(${a}, ${o+i/2})`)}if(t.startLabelLeft){let e=b.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=b.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=b.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=b.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),A=(0,h.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),T=(0,h.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),E=(0,h.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51474],{1503:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]])},2171:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(47552),i=r(12318),a=r(47057),o=r(93525);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=i.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return a.A.stringify(l)}},3635:(t,e,r)=>{"use strict";r.d(e,{default:()=>i.a});var n=r(58048),i=r.n(n)},4090:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]])},4196:(t,e,r)=>{"use strict";r.d(e,{pe:()=>S,PX:()=>J,ru:()=>Z,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>ts,$C:()=>V,rY:()=>tu,sM:()=>B,KL:()=>tc,Ib:()=>L,dq:()=>tr,I5:()=>ti,yT:()=>W,vU:()=>R,_K:()=>to,bH:()=>X});var n,i=r(89316),a=r(47508),o=r(39410),s=r(68083),l=r(86594);function u(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);let o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(u.Cache||Map),r}function c(){}u.Cache=Map;var h=r(59275),d=r(35329);function f(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var p=r(26232);function g(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var m=r(60008),y=r(67799);function v(t,e,r,n=new Map,i){let a=i?.(t,e,r,n);if(void 0!==a)return a;if((0,h.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=v(t[a],a,r,n,i);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[a,o]of(n.set(t,e),t))e.set(a,v(o,a,r,n,i));return e}if(t instanceof Set){let e=new Set;for(let a of(n.set(t,e),t))e.add(v(a,void 0,r,n,i));return e}if((0,p.P)(t))return t.subarray();if((0,d.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=v(t[a],a,r,n,i);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,x(e,t,r,n,i),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if("object"==typeof t&&function(t){switch((0,m.b)(t)){case y.R_:case y.Uw:case y.cT:case y.iq:case y.$V:case y.vC:case y.ri:case y.ML:case y.XZ:case y.i1:case y._u:case y.pj:case y.kj:case y.GX:case y.Av:case y.NA:case y.OG:case y.VP:case y.Qb:case y.q:case y.x6:case y.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),x(e,t,r,n,i),e}return t}function x(t,e,r=t,n,i){let a=[...Object.keys(e),...f(e)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(t,s);(null==l||l.writable)&&(t[s]=v(e[s],s,r,n,i))}}function b(t){var e;return e=(e,r,n,i)=>{let a;if(void 0!==a)return a;if("object"==typeof t){if("[object Object]"===(0,m.b)(t)&&"function"!=typeof t.constructor){let e={};return i.set(t,e),x(e,t,n,i),e}switch(Object.prototype.toString.call(t)){case y.kj:case y.OG:case y.$V:{let e=new t.constructor(t?.valueOf());return x(e,t),e}case y.R_:{let e={};return x(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},v(t,void 0,t,new Map,e)}var w=r(33349);function k(t){return"object"==typeof t&&null!==t}var _=r(74598),M=r(24722),S="",A={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},T=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,E=(0,o.K)(function(t,e){let r=C(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,i.$i)(t),n=(0,i.hH)(n,[...t])}else n=r.args;if(!n)return;let a=(0,i.Ch)(t,e),o="config";return void 0!==n[o]&&("flowchart-v2"===a&&(a="flowchart"),n[a]=n[o],delete n[o]),n},"detectInit"),C=(0,o.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${T.source})(?=[}][%]{2}).*
|
|
2
|
+
`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=i.DB.exec(t));)if(r.index===i.DB.lastIndex&&i.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),R=(0,o.K)(function(t){return t.replace(i.DB,"")},"removeDirectives"),P=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function L(t,e){return t?A[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function D(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(L,"interpolateToCurve"),(0,o.K)(D,"formatUrl");var O=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let e=0;e<n;e++)if(!(o=o[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);o[i](...e)},"runFunc");function $(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function I(t){let e,r=0;return t.forEach(t=>{r+=$(t,e),e=t}),F(t,r/2)}function j(t){return 1===t.length?t[0]:I(t)}(0,o.K)($,"distance"),(0,o.K)(I,"traverseEdge"),(0,o.K)(j,"calcLabelPosition");var N=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),F=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=$(e,r);if(0===t)return r;if(t<n)n-=t;else{let i=n/t;if(i<=0)return r;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:N((1-i)*r.x+i*e.x,5),y:N((1-i)*r.y+i*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),K=(0,o.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=F(e,25),i=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(e[0].x+n.x)/2,s.y=-Math.cos(o)*i+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function z(t,e,r){let n=structuredClone(r);a.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let i=F(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2),l}function B(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(z,"calcTerminalLabelPosition"),(0,o.K)(B,"getStylesFromArray");var U=0,V=(0,o.K)(()=>(U++,"id-"+Math.random().toString(36).substr(2,12)+"-"+U),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,o.K)(H,"makeRandomHex");var W=(0,o.K)(t=>H(t.length),"random"),Y=(0,o.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,o.K)(function(t,e){let r=e.text.replace(i.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),X=u((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),i.Y2.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((t,i)=>{let s=Q(`${t} `,r),l=Q(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:i}=G(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");i+1===n.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),G=u((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((t,s)=>{let l=`${o}${t}`;if(Q(l,n)>=e){let t=i.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Z(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,o.K)(Z,"calculateTextHeight"),(0,o.K)(Q,"calculateTextWidth");var J=u((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(i.Y2.lineBreakRegex),u=[],c=(0,l.Ltv)("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let h=c.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let i=Y();i.text=n||S;let s=q(h,i).style("font-size",o).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}u.push(r)}h.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},te=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tr(t){return"str"in t}(0,o.K)(tr,"isDetailedError");var tn=(0,o.K)((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let t=0;t<r.length;t++)i=function t(e,r,n,i){if((0,h.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(i.has(r))return function(t){if((0,h.s)(t))return t;if(Array.isArray(t)||(0,d.i)(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(i.get(r));if(i.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)r[t]=r[t]??void 0}let a=[...Object.keys(r),...f(r)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let u=r[l],c=e[l];if((0,w.N)(u)&&(u={...u}),(0,w.N)(c)&&(c={...c}),(0,p.P)(u)&&(u=b(u)),Array.isArray(u))if(Array.isArray(c)){let t=[],e=Reflect.ownKeys(c);for(let r=0;r<e.length;r++){let n=e[r];t[n]=c[n]}c=t}else{var o;if(k(o=c)&&(0,_.X)(o)){let t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[]}let h=n(c,u,l,e,r,i);void 0!==h?e[l]=h:Array.isArray(u)||k(c)&&k(u)&&(g(c)||g(u)||(0,M.i)(c)||(0,M.i)(u))?e[l]=t(c,u,n,i):null==c&&g(u)?e[l]=t({},u,n,i):null==c&&(0,M.i)(u)?e[l]=b(u):(void 0===c||void 0!==u)&&(e[l]=u)}return e}(i,r[t],n,new Map);return i}(t,...e,c)}({},t,e)}(0,o.K)(ta,"cleanAndMerge");var to={assignWithDepth:i.hH,wrapLabel:X,calculateTextHeight:Z,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:E,detectDirective:C,isSubstringInArray:P,interpolateToCurve:L,calcLabelPosition:j,calcCardinalityPosition:K,calcTerminalLabelPosition:z,formatUrl:D,getStylesFromArray:B,generateId:V,random:W,runFunc:O,entityDecode:te,insertTitle:tn,isLabelCoordinateInPath:th,parseFontSize:ti,InitIDGenerator:tt},ts=(0,o.K)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tl=(0,o.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tu=(0,o.K)((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function tc(t){return t??null}function th(t,e){let r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return i.includes(r.toString())||i.includes(n.toString())}(0,o.K)(tc,"handleUndefinedAttr"),(0,o.K)(th,"isLabelCoordinateInPath")},4795:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]])},5733:(t,e,r)=>{"use strict";r.d(e,{WB:()=>l,_8:()=>c,hI:()=>u});var n=r(10813);function i(t,e,r,n){return{left:t,top:e,right:r,bottom:n,x:t,y:e,width:r-t,height:n-e}}function a(t){let e,r=[],n=1/0,a=1/0,o=-1/0,s=-1/0;for(let i of Array.from(t).sort((t,e)=>t.top-e.top)){if(n=Math.min(n,i.left),a=Math.min(a,i.top),o=Math.max(o,i.right),s=Math.max(s,i.bottom),!e||i.top-e.top>e.height/2)r.push({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:i.width,height:i.height});else{let t=r[r.length-1];t.left=Math.min(t.left,i.left),t.right=Math.max(t.right,i.right),t.bottom=Math.max(t.bottom,i.bottom),t.width=t.right-t.left,t.height=t.bottom-t.top}e=i}return{lines:r,fallback:i(n,a,o,s)}}function o(t,e,r){return t.findIndex(t=>e>t.left-2&&e<t.right+2&&r>t.top-2&&r<t.bottom+2)}function s(t){return i(t.left,t.top,t.right,t.bottom)}function l(t,e){function r(r){e||u(t,r.currentTarget,r.clientX,r.clientY)}return{onFocus(){t.current=void 0},onMouseEnter:r,onMouseMove:r}}function u(t,e,r,n){let i=function(t,e,r){let{lines:n}=a(t.getClientRects());if(n.length<2)return;let i=o(n,e,r);return{x:e,y:r,lineIndex:-1===i?void 0:i,element:t}}(e,r,n);return t.current=i,i}function c(t){return{name:"inline",async fn(e){let r=e.elements.reference;if("function"!=typeof r?.getClientRects)return{};let l="contextElement"in r&&r.contextElement?r.contextElement:(0,n.vq)(r)?r:void 0,u=t.current,c=u?.element===r||u?.element===l?u:void 0,h=function(t,e,r){let{lines:n,fallback:l}=a(t.getClientRects());if(n.length<2)return null;let u=r?.x,c=r?.y,h=e[0];if(r?.lineIndex!=null&&n[r.lineIndex])return s(n[r.lineIndex]);if(null!=u&&null!=c){let t=o(n,u,c);if(-1!==t)return s(n[t])}if(2===n.length&&n[0].left>n[1].right&&null!=u&&null!=c)return l;if("t"===h||"b"===h){let t=n[0],e=n[n.length-1],r="t"===h?t:e;return i(r.left,t.top,r.right,e.bottom)}let d="l"===h,f=n[0].left,p=n[0].right,g=d?1/0:-1/0,m=n[0],y=n[0];for(let t of n){f=Math.min(f,t.left),p=Math.max(p,t.right);let e=d?t.left:t.right;d&&e<g||!d&&e>g?(g=e,m=t,y=t):e===g&&(y=t)}return i(f,m.top,p,y.bottom)}(r,e.placement,c);if(!h||"function"!=typeof e.platform.getElementRects)return{};let d=await e.platform.getElementRects({reference:{contextElement:l,getBoundingClientRect:()=>h},floating:e.elements.floating,strategy:e.strategy});return e.rects.reference.x===d.reference.x&&e.rects.reference.y===d.reference.y&&e.rects.reference.width===d.reference.width&&e.rects.reference.height===d.reference.height?{}:{reset:{rects:d}}}}}},6609:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},7010:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7632:(t,e,r)=>{"use strict";r.d(e,{Nq:()=>o,RI:()=>u,Wg:()=>i,hq:()=>a});var n=r(39410),i=(0,n.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},o={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function s(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,n.K)(s,"calculateDeltaAndAngle");var l=(0,n.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),u=(0,n.K)(t=>({x:(0,n.K)(function(e,r,n){let i=0,o=l(n[0]).x<l(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=s(n[0],n[1]);i=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=s(n[n.length-1],n[n.length-2]);i=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let u=Math.abs(l(e).x-l(n[n.length-1]).x),c=Math.abs(l(e).y-l(n[n.length-1]).y),h=Math.abs(l(e).x-l(n[0]).x),d=Math.abs(l(e).y-l(n[0]).y),f=a[t.arrowTypeStart],p=a[t.arrowTypeEnd];if(u<p&&u>0&&c<p){let t=p+1-u;t*="right"===o?-1:1,i-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="right"===o?-1:1,i+=t}return l(e).x+i},"x"),y:(0,n.K)(function(e,r,n){let i=0,o=l(n[0]).y<l(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=s(n[0],n[1]);i=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=s(n[n.length-1],n[n.length-2]);i=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let u=Math.abs(l(e).y-l(n[n.length-1]).y),c=Math.abs(l(e).x-l(n[n.length-1]).x),h=Math.abs(l(e).y-l(n[0]).y),d=Math.abs(l(e).x-l(n[0]).x),f=a[t.arrowTypeStart],p=a[t.arrowTypeEnd];if(u<p&&u>0&&c<p){let t=p+1-u;t*="up"===o?-1:1,i-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="up"===o?-1:1,i+=t}return l(e).y+i},"y")}),"getLineFunctionsWithOffset")},8356:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("clock-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]])},8581:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(54967);function i(t){return{checked:e=>t.indeterminate?{}:e?{"data-checked":""}:{"data-unchecked":""},...n.dc}}},8675:(t,e,r)=>{"use strict";r.d(e,{V:()=>i,r:()=>n});let n=600,i=300},8934:(t,e,r)=>{"use strict";r.d(e,{r:()=>o,w:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(49));return t}},9922:(t,e,r)=>{"use strict";let n,i,a;r.d(e,{PY1:()=>a$});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...o,"pathRotation"]),l=(t,e,r)=>r>e?e:r<t?t:r,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},c={...u,transform:t=>l(0,1,t)},h={...u,default:1},d=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(t,e)=>r=>!!("string"==typeof r&&p.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),m=(t,e,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(f);return{[t]:parseFloat(i),[e]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},y={...u,transform:t=>Math.round(l(0,255,t))},v={test:g("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+y.transform(t)+", "+y.transform(e)+", "+y.transform(r)+", "+d(c.transform(n))+")"},x={test:g("#"),parse:function(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:v.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),w=b("deg"),k=b("%"),_=b("px"),M=b("vh"),S=b("vw"),A={...k,parse:t=>k.parse(t)/100,transform:t=>k.transform(100*t)},T={test:g("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+k.transform(d(e))+", "+k.transform(d(r))+", "+d(c.transform(n))+")"},E={test:t=>v.test(t)||x.test(t)||T.test(t),parse:t=>v.test(t)?v.parse(t):T.test(t)?T.parse(t):x.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):T.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",P="color",L=/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 D(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=e.replace(L,t=>(E.test(t)?(n.color.push(a),i.push(P),r.push(E.parse(t))):t.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(t)):(n.number.push(a),i.push(R),r.push(parseFloat(t))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function O({split:t,types:e}){let r=t.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],void 0!==n[a]){let t=e[a];t===R?i+=d(n[a]):t===P?i+=E.transform(n[a]):i+=n[a]}return i}}let $={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(C)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return O(D(t))},getAnimatableNone:function(t){let e=D(t);return O(e)(e.values.map((t,r)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[r])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function j(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=r.match(f)||[];if(!n)return t;let i=r.replace(n,""),a=+!!I.has(e);return n!==r&&(a*=100),e+"("+a+i+")"}let N=/\b([a-z-]*)\(.*?\)/gu,F={...$,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(j).join(" "):t}},K={...$,getAnimatableNone:t=>{let e=$.parse(t);return $.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},B={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:w,pathRotation:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:c,originX:A,originY:A,originZ:_,zIndex:z,fillOpacity:c,strokeOpacity:c,numOctaves:z},U={...B,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:F,WebkitFilter:F,mask:K,WebkitMask:K},V=t=>U[t],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({x:H(),y:H()}),Y=()=>({min:0,max:0}),q=()=>({x:Y(),y:Y()}),X=t=>!!(t&&t.getVelocity),G=new Set(["width","height","top","left","right","bottom",...o]),Z=t=>e=>e.test(t),Q=[u,_,k,w,S,M,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));r(21966);let tt=()=>{},te=()=>{},tr=t=>e=>"string"==typeof e&&e.startsWith(t),tn=tr("--"),ti=tr("var(--"),ta=t=>!!ti(t)&&to.test(t.split("/*")[0].trim()),to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ts(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,tc=t=>td(tu(Math.atan2(t[1],t[0]))),th={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},td=t=>((t%=360)<0&&(t+=360),t),tf=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tp,scale:t=>(tf(t)+tp(t))/2,rotateX:t=>td(tu(Math.atan2(t[6],t[5]))),rotateY:t=>td(tu(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tm(t){return+!!t.includes("scale")}function ty(t,e){let r,n;if(!t||"none"===t)return tm(e);let i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=tg,n=i;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=th,n=e}if(!n)return tm(e);let a=r[e],o=n[1].split(",").map(tv);return"function"==typeof a?a(o):o[a]}function tv(t){return parseFloat(t.trim())}let tx=t=>t===u||t===_,tb=new Set(["x","y","z"]),tw=o.filter(t=>!tb.has(t)),tk={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ty(e,"x"),y:(t,{transform:e})=>ty(e,"y")};tk.translateX=tk.x,tk.translateY=tk.y;let t_=t=>t,tM={},tS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tA(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=tS.reduce((t,e)=>(t[e]=function(t){let e=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(e){a.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,i=!1,o=!1)=>{let s=o&&n?e:r;return i&&a.add(t),s.add(t),t},cancel:t=>{r.delete(t),a.delete(t)},process:t=>{if(o=t,n){i=!0;return}n=!0;let a=e;e=r,r=a,e.forEach(s),e.clear(),n=!1,i&&(i=!1,l.process(t))}};return l}(a),t),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=o,g=()=>{let a=tM.useManualTiming,o=a?i.timestamp:performance.now();r=!1,a||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(g))};return{schedule:tS.reduce((e,a)=>{let s=o[a];return e[a]=(e,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||t(g)),s.schedule(e,a,o)),e},{}),cancel:t=>{for(let e=0;e<tS.length;e++)o[tS[e]].cancel(t)},state:i,steps:o}}let{schedule:tT,cancel:tE,state:tC,steps:tR}=tA("u">typeof requestAnimationFrame?requestAnimationFrame:t_,!0),tP=new Set,tL=!1,tD=!1,tO=!1;function t$(){if(tD){let t=Array.from(tP).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),r=new Map;e.forEach(t=>{let e,n=(e=[],tw.forEach(r=>{let n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),e);n.length&&(r.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(([e,r])=>{t.getValue(e)?.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tD=!1,tL=!1,tP.forEach(t=>t.complete(tO)),tP.clear()}function tI(){tP.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tD=!0)})}class tj{constructor(t,e,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tP.add(this),tL||(tL=!0,tT.read(tI),tT.resolveKeyframes(t$))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:n}=this;if(null===t[0]){let i=n?.get(),a=t[t.length-1];if(void 0!==i)t[0]=i;else if(r&&e){let n=r.readValue(e,a);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=a),n&&void 0===i&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tP.delete(this)}cancel(){"scheduled"===this.state&&(tP.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tN=new Set([F,K]);function tF(t,e){let r=V(t);return tN.has(r)||(r=$),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let tK=new Set(["auto","none","0"]);class tz extends tj{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let r=0;r<t.length;r++){let n=t[r];if("string"==typeof n&&ta(n=n.trim())){let i=function t(e,r,n=1){te(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,a]=function(t){let e=tl.exec(t);if(!e)return[,];let[,r,n,i]=e;return[`--${r??n}`,i]}(e);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ta(a)?t(a,r,n+1):a}(n,e.current);void 0!==i&&(t[r]=i),r===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!G.has(r)||2!==t.length)return;let[n,i]=t,a=J(n),o=J(i);if(ts(n)!==ts(i)&&tk[r]){this.needsMeasurement=!0;return}if(a!==o)if(tx(a)&&tx(o))for(let e=0;e<t.length;e++){let r=t[e];"string"==typeof r&&(t[e]=parseFloat(r))}else tk[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&r.push(e);r.length&&function(t,e,r){let n,i=0;for(;i<t.length&&!n;){let e=t[i];"string"==typeof e&&!tK.has(e)&&D(e).values.length&&(n=t[i]),i++}if(n&&r)for(let i of e)t[i]=tF(r,n)}(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tk[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(r,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=tk[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tB=t=>1e3*t;function tU(t,e){-1===t.indexOf(e)&&t.push(e)}function tV(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}class tH{constructor(){this.subscriptions=[]}add(t){return tU(this.subscriptions,t),()=>tV(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tW(t,e,r){e.startsWith("--")?t.style.setProperty(e,r):t.style[e]=r}function tY(t){let e;return()=>(void 0===e&&(e=t()),e)}let tq={};function tX(t,e){let r=tY(t);return()=>tq[e]??r()}let tG=tX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tZ=t=>null!==t;function tQ(t,{repeat:e,repeatType:r="loop"},n,i=1){let a=t.filter(tZ),o=i<0||e&&"loop"!==r&&e%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}class tJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t0=t=>Array.isArray(t)&&"number"==typeof t[0],t1=tX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t2=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let e=0;e<i;e++)n+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t5=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t5([0,.65,.55,1]),circOut:t5([.55,0,1,.45]),backIn:t5([.31,.01,.66,-.59]),backOut:t5([.33,1.53,.69,.99])};function t6(t){return"function"==typeof t&&"applyToOptions"in t}class t4 extends tJ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,te(t.type);const l=function({type:t,...e}){return t6(t)&&t1()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[e]:r};l&&(c.offset=l);let h=function t(e,r){if(e)return"function"==typeof e?t1()?t2(e,r):"ease-out":t0(e)?t5(e):Array.isArray(e)?e.map(e=>t(e,r)||t3.easeOut):t3[e]}(s,i);Array.isArray(h)&&(c.easing=h);let d={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(c,d)}(e,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let t=tQ(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tW(e,r,t),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tB(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tG())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),r&&(this.animation.rangeEnd=r),t_):n(this)}}let t9=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:t8}=tA(queueMicrotask,!1);function t7(){n=void 0}let et={now:()=>(void 0===n&&et.set(tC.isProcessing||tM.useManualTiming?tC.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t7)}},ee=(t,e)=>e?1e3/e*t:0,er;class en{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=et.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=et.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tH);let r=this.events[t].add(e);return"change"===t?()=>{r(),tT.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return er&&er.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=et.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ee(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(t,e){return new en(t,e)}let ea=[...Q,E,$],eo=new WeakMap;function es(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eu];function eh(t){return es(t.animate)||ec.some(e=>el(t[e]))}function ed(t){return!!(eh(t)||t.variants)}var ef=r(85784);function ep(t){let e=[{},{}];return t?.values.forEach((t,r)=>{e[0][r]=t.get(),e[1][r]=t.getVelocity()}),e}function eg(t,e,r,n){if("function"==typeof e){let[i,a]=ep(n);e=e(void 0!==r?r:t.custom,i,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,a]=ep(n);e=e(void 0!==r?r:t.custom,i,a)}return e}var em=r(37847);let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ev={};class ex{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=et.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tT.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=eh(e),this.isVariantNode=ed(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&X(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(em.r.current||(0,ef.Uu)(),this.shouldReduceMotion=em.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tE(this.notifyUpdate),tE(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let r;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t9.has(t)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:a,duration:o}=e.accelerate,s=new t4({element:this.current,name:t,keyframes:n,times:i,ease:a,duration:tB(o)}),l=r(s);this.valueSubscriptions.set(t,()=>{l(),s.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tT.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),r&&r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ev){let e=ev[t];if(!e)continue;let{isEnabled:r,Feature:n}=e;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ey.length;e++){let r=ey[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=t["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(t,e,r){for(let n in e){let i=e[n],a=r[n];if(X(i))t.addValue(n,i);else if(X(a))t.addValue(n,ei(i,{owner:t}));else if(a!==i)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(n);t.addValue(n,ei(void 0!==e?e:i,{owner:t}))}}for(let n in r)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let r=this.values.get(t);e!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==e&&(r=ei(null===e?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){let r=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!ea.find(Z(n))&&$.test(e)&&(r=tF(t,e))}this.setBaseTarget(t,X(r)?r.get():r)}return X(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=eg(this.props,r,this.presenceContext?.custom);n&&(e=n[t])}if(r&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||X(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t8.render(this.render)}}class eb extends ex{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let r=t.style;return r?r[e]:void 0}removeValueFromRenderState(t,{vars:e,style:r}){delete e[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ew(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ek=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eM=o.length;function eS(t,e,r){let{style:n,vars:i,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let r=e[t];if(s.has(t)){l=!0;continue}if(tn(t)){i[t]=r;continue}{let e=ek(r,B[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||r?n.transform=function(t,e,r){let n="",i=!0;for(let a=0;a<eM;a++){let s=o[a],l=t[s];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!s.startsWith("scale");else{let t=parseFloat(l);u=s.startsWith("scale")?1===t:0===t}if(!u||r){let t=ek(l,B[s]);if(!u){i=!1;let e=e_[s]||s;n+=`${e}(${t}) `}r&&(e[s]=t)}}let a=t.pathRotation;return a&&(i=!1,n+=`rotate(${ek(a,B.pathRotation)}) `),n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}(e,t.transform,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:r=0}=a;n.transformOrigin=`${t} ${e} ${r}`}}let eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eT={offset:"strokeDashoffset",array:"strokeDasharray"},eE=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eC(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(eS(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;for(let t of eE)void 0!==h[t]&&(d[t]=h[t],delete h[t]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==i&&function(t,e,r=1,n=0,i=!0){t.pathLength=1;let a=i?eA:eT;t[a.offset]=`${-n}`,t[a.array]=`${e} ${r}`}(h,i,a,o,!1)}let eR=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"]),eP=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:r},n,i){let a,o=t.style;for(a in e)o[a]=e[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}let eD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e$={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!_.test(t))return t;else t=parseFloat(t);let r=eO(t,e.target.x),n=eO(t,e.target.y);return`${r}% ${n}%`}},eI=(t,e,r)=>t+(e-t)*r,ej={borderRadius:{...e$,applyTo:[...eD]},borderTopLeftRadius:e$,borderTopRightRadius:e$,borderBottomLeftRadius:e$,borderBottomRightRadius:e$,boxShadow:{correct:(t,{treeScale:e,projectionDelta:r})=>{let n=$.parse(t);if(n.length>5)return t;let i=$.createTransformer(t),a=+("number"!=typeof n[0]),o=r.x.scale*e.x,s=r.y.scale*e.y;n[0+a]/=o,n[1+a]/=s;let l=eI(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function eN(t,{layout:e,layoutId:r}){return s.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!ej[t]||"opacity"===t)}function eF(t,e,r){let n=t.style,i=e?.style,a={};if(!n)return a;for(let e in n)(X(n[e])||i&&X(i[e])||eN(e,t)||r?.getValue(e)?.liveStyle!==void 0)&&(a[e]=n[e]);return a}function eK(t,e,r){let n=eF(t,e,r);for(let r in t)(X(t[r])||X(e[r]))&&(n[-1!==o.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}class ez extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=V(e);return t&&t.default||0}if(eE.includes(e)){let r=getComputedStyle(t)[e];if("string"==typeof r&&r)return r.trim()}return e=eR.has(e)?e:ew(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return eK(t,e,r)}build(t,e,r){eC(t,e,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,e,r,n){for(let r in eL(t,e,void 0,n),e.attrs)t.setAttribute(eR.has(r)?r:ew(r),e.attrs[r])}mount(t){this.isSVGTag=eP(t.tagName),super.mount(t)}}function eB({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function eU(t){return void 0===t||1===t}function eV({scale:t,scaleX:e,scaleY:r}){return!eU(t)||!eU(e)||!eU(r)}function eH(t){return eV(t)||eW(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eW(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function eY(t,e,r,n,i){return void 0!==i&&(t=n+i*(t-n)),n+r*(t-n)+e}function eq(t,e=0,r=1,n,i){t.min=eY(t.min,e,r,n,i),t.max=eY(t.max,e,r,n,i)}function eX(t,{x:e,y:r}){eq(t.x,e.translate,e.scale,e.originPoint),eq(t.y,r.translate,r.scale,r.originPoint)}function eG(t,e){t.min+=e,t.max+=e}function eZ(t,e,r,n,i=.5){let a=eI(t.min,t.max,i);eq(t,e,r,a,n)}function eQ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eJ(t,e,r){let n=r??t;eZ(t.x,eQ(e.x,n.x),e.scaleX,e.scale,e.originX),eZ(t.y,eQ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eB(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e1 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}mount(t){te(t.style),super.mount(t)}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tm(e):((t,e)=>{let{transform:r="none"}=getComputedStyle(t);return ty(r,e)})(t,e);{let r=window.getComputedStyle(t),n=(tn(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,r){eS(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return eF(t,e,r)}}var e2=r(69266);let e5=["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 e3(t){if("string"!=typeof t||t.includes("-"));else if(e5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e6=r(7962),e4=r(82544);let e9=(0,e2.createContext)({strict:!1});var e8=r(55263);let e7=(0,e2.createContext)({});function rt(t){return Array.isArray(t)?t.join(" "):t}let re=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rr(t,e,r){for(let n in e)X(e[n])||eN(n,r)||(t[n]=e[n])}let rn=()=>({...re(),attrs:{}}),ri=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 ra(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ri.has(t)}function ro(t){return X(t)?t.get():t}var rs=r(35182),rl=r(83864);let ru=t=>(e,r)=>{let n=(0,e2.useContext)(e7),i=(0,e2.useContext)(rs.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,i){return{latestValues:function(t,e,r,n){let i={},a=n(t,{});for(let t in a)i[t]=ro(a[t]);let{initial:o,animate:s}=t,l=eh(t),u=ed(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===s&&(s=e.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===o)?s:o;if(h&&"boolean"!=typeof h&&!es(h)){let e=Array.isArray(h)?h:[h];for(let r=0;r<e.length;r++){let n=eg(t,e[r]);if(n){let{transitionEnd:t,transition:e,...r}=n;for(let t in r){let e=r[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let e in t)i[e]=t[e]}}}return i}(r,n,i,t),renderState:e()}})(t,e,n,i);return r?a():(0,rl.M)(a)},rc=ru({scrapeMotionValuesFromProps:eF,createRenderState:re}),rh=ru({scrapeMotionValuesFromProps:eK,createRenderState:rn}),rd={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"]},rf=!1;function rp(){return!function(){if(rf)return;let t={};for(let e in rd)t[e]={isEnabled:t=>rd[e].some(e=>!!t[e])};ev=t,rf=!0}(),ev}let rg=Symbol.for("motionComponentSymbol"),rm="data-"+ew("framerAppearId"),ry=(0,e2.createContext)({});function rv(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var rx=r(59863);function rb(t,{forwardMotionProps:e=!1,type:r}={},n,i){n&&function(t){let e=rp();for(let r in t)e[r]={...e[r],...t[r]};ev=e}(n);let a=r?"svg"===r:e3(t),o=a?rh:rc;function s(r,n){var s;let l,u,c,h={...(0,e2.useContext)(e8.Q),...r,layoutId:function({layoutId:t}){let e=(0,e2.useContext)(e4.L).id;return e&&void 0!==t?e+"-"+t:t}(r)},{isStatic:d,isValidProp:f}=h,p=function(t){let{initial:e,animate:r}=function(t,e){if(eh(t)){let{initial:e,animate:r}=t;return{initial:!1===e||el(e)?e:void 0,animate:el(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,e2.useContext)(e7));return(0,e2.useMemo)(()=>({initial:e,animate:r}),[rt(e),rt(r)])}(r),g=o(r,d);if(!d&&"u">typeof window){(0,e2.useContext)(e9).strict;let e=function(t){let{drag:e,layout:r}=rp();if(!e&&!r)return{};let n={...e,...r};return{MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);l=e.MeasureLayout,p.visualElement=function(t,e,r,n,i,a){let{visualElement:o}=(0,e2.useContext)(e7),s=(0,e2.useContext)(e9),l=(0,e2.useContext)(rs.t),u=(0,e2.useContext)(e8.Q),c=u.reducedMotion,h=u.skipAnimations,d=(0,e2.useRef)(null),f=(0,e2.useRef)(!1);n=n||s.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:h,isSVG:a}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let p=d.current,g=(0,e2.useContext)(ry);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(t,e,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&rv(s),visualElement:t,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(d.current,r,i,g);let m=(0,e2.useRef)(!1);(0,e2.useInsertionEffect)(()=>{p&&m.current&&p.update(r,l)});let y=r[rm],v=(0,e2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,rx.E)(()=>{f.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,e2.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(t,g,h,i,e.ProjectionNode,a)}return(0,e6.jsxs)(e7.Provider,{value:p,children:[l&&p.visualElement?(0,e6.jsx)(l,{visualElement:p.visualElement,...h}):null,function(t,e,r,{latestValues:n},i,a=!1,o,s){let l=(o??e3(t)?function(t,e,r,n){let i=(0,e2.useMemo)(()=>{let r=rn();return eC(r,e,eP(n),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};rr(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e){let r,n,i={},a=(r=t.style||{},rr(n={},r,t),Object.assign(n,function({transformTemplate:t},e){return(0,e2.useMemo)(()=>{let r=re();return eS(r,e,t),Object.assign({},r.vars,r.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=a,i})(e,n,i,t),u=function(t,e,r,n){let i={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&!X(t[a])&&((a.startsWith("on")?!ra(a):n?.(a)??!ra(a))||!0===r&&ra(a)||!e&&!ra(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}(e,"string"==typeof t,a,s),c=t!==e2.Fragment?{...u,...l,ref:r}:{},{children:h}=e,d=(0,e2.useMemo)(()=>X(h)?h.get():h,[h]);return(0,e2.createElement)(t,{...c,children:d})}(t,r,(s=p.visualElement,u=(0,e2.useRef)(n),(0,e2.useInsertionEffect)(()=>{u.current=n}),c=(0,e2.useRef)(null),(0,e2.useCallback)(t=>{t&&g.onMount?.(t),s&&(t?s.mount(t):s.unmount());let e=u.current;if("function"==typeof e)if(t){let r=e(t);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[s])),g,d,e,a,f)]})}s.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e2.forwardRef)(s);return l[rg]=t,l}class rw{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rk(t,e,r){let n=t.getProps();return eg(n,e,void 0!==r?r:n.custom,t)}function r_(t,e){if(t?.inherit&&e){let{inherit:r,...n}=t;return{...e,...n}}return t}function rM(t,e){let r=t?.[e]??t?.default??t;return r!==t?r_(r,t):r}let rS=t=>Array.isArray(t);function rA(t,e){let r=t.getValue("willChange");if(X(r)&&r.add)return r.add(e);if(!r&&tM.WillChange){let r=new tM.WillChange("auto");t.addValue("willChange",r),r.add(e)}}let rT=(...t)=>t.reduce((t,e)=>r=>e(t(r)));function rE(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function rC(t,e){return r=>r>0?e:t}let rR=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},rP=[x,v,T];function rL(t){let e=rP.find(e=>e.test(t));if(tt(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===T&&(r=function({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,r/=100;let i=0,a=0,o=0;if(e/=100){let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;i=rE(s,n,t+1/3),a=rE(s,n,t),o=rE(s,n,t-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let rD=(t,e)=>{let r=rL(t),n=rL(e);if(!r||!n)return rC(t,e);let i={...r};return t=>(i.red=rR(r.red,n.red,t),i.green=rR(r.green,n.green,t),i.blue=rR(r.blue,n.blue,t),i.alpha=eI(r.alpha,n.alpha,t),v.transform(i))},rO=new Set(["none","hidden"]);function r$(t,e){return r=>eI(t,e,r)}function rI(t){return"number"==typeof t?r$:"string"==typeof t?ta(t)?rC:E.test(t)?rD:rF:Array.isArray(t)?rj:"object"==typeof t?E.test(t)?rD:rN:rC}function rj(t,e){let r=[...t],n=r.length,i=t.map((t,r)=>rI(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=i[e](t);return r}}function rN(t,e){let r={...t,...e},n={};for(let i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=rI(t[i])(t[i],e[i]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let rF=(t,e)=>{let r=$.createTransformer(e),n=D(t),i=D(e);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return tt(`Complex values '${t}' and '${e}' 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.`),rC(t,e);if(rO.has(t)&&!i.values.length||rO.has(e)&&!n.values.length)return rO.has(t)?r=>r<=0?t:e:r=>r>=1?e:t;return rT(rj(function(t,e){let r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let a=e.types[i],o=t.indexes[a][n[a]],s=t.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function rK(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?eI(t,e,r):rI(t)(t,e)}let rz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tT.update(e,t),stop:()=>tE(e),now:()=>tC.isProcessing?tC.timestamp:et.now()}};function rB(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}let rU=.01,rV=2,rH=.005,rW=.5;function rY(t,e){return t*Math.sqrt(1-e*e)}let rq=["duration","bounce"],rX=["stiffness","damping","mass"];function rG(t,e){return e.some(e=>void 0!==t[e])}function rZ(t=.3,e=.3){let r,n,i,a,o,s,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:c,restDelta:h}=u,d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:y,duration:v,velocity:x,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!rG(t,rX)&&rG(t,rq))if(e.velocity=0,t.visualDuration){let r=2*Math.PI/(1.2*t.visualDuration),n=r*r,i=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:i}}else{let r=function({duration:t=800,bounce:e=.3,velocity:r=0,mass:n=1}){let i,a;tt(tB(10));let o=1-e;o=l(.05,1,o),t=l(.01,10,t/1e3),o<1?(i=e=>{let n=e*o,i=n*t;return .001-(n-r)/rY(e,o)*Math.exp(-i)},a=e=>{let n=e*o*t,a=Math.pow(o,2)*Math.pow(e,2)*t,s=Math.exp(-n),l=rY(Math.pow(e,2),o);return(n*r+r-a)*s*(-i(e)+.001>0?-1:1)/l}):(i=e=>-.001+Math.exp(-e*t)*((e-r)*t+1),a=e=>t*t*(r-e)*Math.exp(-e*t));let s=function(t,e,r){let n=r;for(let r=1;r<12;r++)n-=t(n)/e(n);return n}(i,a,5/t);if(t=tB(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(s,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...r,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=x||0,k=m/(2*Math.sqrt(g*y)),_=f-d,M=Math.sqrt(g/y)/1e3,S=5>Math.abs(_);if(c||(c=S?rU:rV),h||(h=S?rH:rW),k<1)i=rY(M,k),a=(w+k*M*_)/i,r=t=>f-Math.exp(-k*M*t)*(a*Math.sin(i*t)+_*Math.cos(i*t)),o=k*M*a+_*i,s=k*M*_-a*i,n=t=>Math.exp(-k*M*t)*(o*Math.sin(i*t)+s*Math.cos(i*t));else if(1===k){r=t=>f-Math.exp(-M*t)*(_+(w+M*_)*t);let t=w+M*_;n=e=>Math.exp(-M*e)*(M*t*e-w)}else{let t=M*Math.sqrt(k*k-1);r=e=>{let r=Math.exp(-k*M*e),n=Math.min(t*e,300);return f-r*((w+k*M*_)*Math.sinh(n)+t*_*Math.cosh(n))/t};let e=(w+k*M*_)/t,i=k*M*e-_*t,a=k*M*_-e*t;n=e=>{let r=Math.exp(-k*M*e),n=Math.min(t*e,300);return r*(i*Math.sinh(n)+a*Math.cosh(n))}}let A={calculatedDuration:b&&v||null,velocity:t=>tB(n(t)),next:t=>{if(!b&&k<1){let e=Math.exp(-k*M*t),r=Math.sin(i*t),n=Math.cos(i*t),l=f-e*(a*r+_*n);return p.done=Math.abs(tB(e*(o*r+s*n)))<=c&&Math.abs(f-l)<=h,p.value=p.done?f:l,p}let e=r(t);return b?p.done=t>=v:p.done=Math.abs(tB(n(t)))<=c&&Math.abs(f-e)<=h,p.value=p.done?f:e,p},toString:()=>{let t=Math.min(rB(A),2e4),e=t2(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function rQ(t,e,r){let n=Math.max(e-5,0);return ee(r-t(n),e-n)}function rJ({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let h,d,f=t[0],p={done:!1,value:f},g=r*e,m=f+g,y=void 0===o?m:o(m);y!==m&&(g=y-f);let v=t=>-g*Math.exp(-t/n),x=t=>y+v(t),b=t=>{let e=v(t),r=x(t);p.done=Math.abs(e)<=u,p.value=p.done?y:r},w=t=>{let e;if(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l){var r;h=t,d=rZ({keyframes:[p.value,(r=p.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:rQ(x,t,p.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,b(t),w(t)),void 0!==h&&t>=h)?d.next(t-h):(e||b(t),p)}}}rZ.applyToOptions=t=>{let e=function(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(rB(n),2e4);return{type:"keyframes",ease:t=>n.next(i*t).value/e,duration:i/1e3}}(t,100,rZ);return t.ease=e.ease,t.duration=tB(e.duration),t.type="keyframes",t};let r0=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function r1(t,e,r,n){return t===e&&r===n?t_:i=>0===i||1===i?i:r0(function(t,e,r,n,i){let a,o,s=0;do(a=r0(o=e+(r-e)/2,n,i)-t)>0?r=o:e=o;while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,t,r),e,n)}let r2=r1(.42,0,1,1),r5=r1(0,0,.58,1),r3=r1(.42,0,.58,1),r6=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,r4=t=>e=>1-t(1-e),r9=r1(.33,1.53,.69,.99),r8=r4(r9),r7=r6(r8),nt=t=>t>=1?1:(t*=2)<1?.5*r8(t):.5*(2-Math.pow(2,-10*(t-1))),ne=t=>1-Math.sin(Math.acos(t)),nr=r4(ne),nn=r6(ne),ni={linear:t_,easeIn:r2,easeInOut:r3,easeOut:r5,circIn:ne,circInOut:nn,circOut:nr,backIn:r8,backInOut:r7,backOut:r9,anticipate:nt},na=t=>{if(t0(t)){te(t.length);let[e,r,n,i]=t;return r1(e,r,n,i)}return"string"==typeof t?(te(ni[t],`Invalid easing type '${t}'`),ni[t]):t},no=(t,e,r)=>{let n=e-t;return n?(r-t)/n:1};function ns({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(na):na(n),s={done:!1,value:e[0]},u=function(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let a=t.length;if(te(e.length),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,r){let n=[],i=r||tM.mix||rK,a=t.length-1;for(let r=0;r<a;r++){let a=i(t[r],t[r+1]);e&&(a=rT(Array.isArray(e)?e[r]||t_:e,a)),n.push(a)}return n}(e,n,i),u=s.length,c=r=>{if(o&&r<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(r<t[n+1]);n++);let i=no(t[n],t[n+1],r);return s[n](i)};return r?e=>c(l(t[0],t[a-1],e)):c}((i=r&&r.length===e.length?r:(!function(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=no(0,e,n);t.push(eI(r,1,i))}}(a=[0],e.length-1),a),i.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||r3).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=u(e),s.done=e>=t,s)}}let nl={decay:rJ,inertia:rJ,tween:ns,keyframes:ns,spring:rZ};function nu(t){"string"==typeof t.type&&(t.type=nl[t.type])}let nc=t=>t/100;class nh extends tJ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nu(t);let{type:e=ns,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:o}=t,s=e||ns;s!==ns&&"number"!=typeof o[0]&&(this.mixKeyframes=rT(nc,rK(o[0],o[1])),o=[0,100]);let l=s({...t,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...t,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=rB(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let r,{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:c=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,i)/s,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(w=o)),b=l(0,1,r)*s}x?(this.delayState.value=h[0],r=this.delayState):r=w.next(b),a&&!x&&(r.value=a(r.value));let{done:k}=r;x||null===u||(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return _&&g!==rJ&&(r.value=tQ(h,this.options,y,this.speed)),m&&m(r.value),_&&this.finish(),r}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tB(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return rQ(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(et.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=rz,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=e??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nd={anticipate:nt,backInOut:r7,circInOut:nn};class nf extends t4{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nd&&(t.ease=nd[t.ease])}(t),nu(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nh({...a,autoplay:!1}),s=Math.max(10,et.now()-this.startTime),u=l(0,10,s-10),c=o.sample(s).value,{name:h}=this.options;i&&h&&tW(i,h,c),e.setWithVelocity(o.sample(Math.max(0,s-u)).value,c,u),o.stop()}}let np=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&($.test(t)||"0"===t)&&!t.startsWith("url("));function ng(t){t.duration=0,t.type="keyframes"}let nm=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ny=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nv=tY(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nx extends tJ{constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const h={autoplay:t,delay:e,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tj;this.keyframeResolver=new d(o,(t,e,r)=>this.onKeyframesResolved(t,e,h,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,r,n){let i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=et.now();let h=!0;!function(t,e,r,n){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],o=np(i,e),s=np(a,e);return tt(`You are trying to animate ${e} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`),!!o&&!!s&&(function(t){let e=t[0];if(1===t.length)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}(t)||("spring"===r||t6(r))&&n)}(t,a,o,s)&&(h=!1,(tM.instantAnimations||!l)&&c?.(tQ(t,r,e)),t[0]=t[t.length-1],ng(r),r.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...r,keyframes:t},f=h&&!u&&function(t){let{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=e.owner.getProps();return nv()&&r&&(t9.has(r)||ny.has(r)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nm.test(t[e]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(d),p=d.motionValue?.owner?.current;if(f)try{i=new nf({...d,element:p})}catch{i=new nh(d)}else i=new nh(d);i.finished.then(()=>{this.notifyFinished()}).catch(t_),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tO=!0,tI(),t$(),tO=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nb={type:"spring",stiffness:500,damping:25,restSpeed:10},nw={type:"keyframes",duration:.8},nk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nM=(t,e,r,n={},i,a)=>o=>{let l=rM(n,t)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=tB(u);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:i};!function(t){for(let e in t)if(!n_.has(e))return!0;return!1}(l)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?nw:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nb:nk)(t,h)),h.duration&&(h.duration=tB(h.duration)),h.repeatDelay&&(h.repeatDelay=tB(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(ng(h),0===h.delay&&(d=!0)),(tM.instantAnimations||tM.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ng(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!a&&void 0!==e.get()){let t=tQ(h.keyframes,l);if(void 0!==t)return void tT.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new nh(h):new nx(h)};function nS(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=e,l=t.getDefaultTransition();a=a?r_(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);let h=[],d=i&&t.animationState&&t.animationState.getState()[i],f=a?.path;for(let e in f&&f.animateVisualElement(t,s,a,r,h),s){let n=t.getValue(e,t.latestValues[e]??null),i=s[e];if(void 0===i||d&&function({protectedKeys:t,needsAnimating:e},r){let n=t.hasOwnProperty(r)&&!0!==e[r];return e[r]=!1,n}(d,e))continue;let o={delay:r,...rM(a||{},e)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){tT.update(()=>n.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let r=t.props[rm];if(r){let t=window.MotionHandoffAnimation(r,e,tT);null!==t&&(o.startTime=t,f=!0)}}rA(t,e);let p=u??t.shouldReduceMotion;n.start(nM(e,n,i,p&&G.has(e)?{type:!1}:o,t,f));let g=n.animation;g&&h.push(g)}if(o){let e=()=>tT.update(()=>{o&&function(t,e){let{transitionEnd:r={},transition:n={},...i}=rk(t,e)||{};for(let e in i={...i,...r}){var a;let r=rS(a=i[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,ei(r))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function nA(t,e,r,n=0,i=1){let a=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function nT(t,e,r={}){let n=rk(t,e,"exit"===r.type?t.presenceContext?.custom:void 0),{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(nS(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(t,e,r=0,n=0,i=0,a=1,o){let s=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),s.push(nT(l,e,{...o,delay:r+("function"==typeof n?0:n)+nA(t.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(s)}(t,e,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([a(),o(r.delay)]);{let[t,e]="beforeChildren"===s?[a,o]:[o,a];return t().then(()=>e())}}let nE=ec.length;function nC(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}let nR=[...eu].reverse(),nP=eu.length;function nL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nD(){return{animate:nL(!0),whileInView:nL(),whileHover:nL(),whileTap:nL(),whileDrag:nL(),whileFocus:nL(),exit:nL()}}class nO extends rw{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:r})=>(function(t,e,r={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nT(t,e,r)));else if("string"==typeof e)n=nT(t,e,r);else{let i="function"==typeof e?rk(t,e,r.custom):e;n=Promise.all(nS(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,r))),r=nD(),n=!0,i=!1,a=e=>(r,n)=>{let i=rk(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(i){let{transition:t,transitionEnd:e,...n}=i;r={...r,...n,...e}}return r};function o(o){let{props:s}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(r.initial=e.props.initial),r}let r={};for(let t=0;t<nE;t++){let n=ec[t],i=e.props[n];(el(i)||!1===i)&&(r[n]=i)}return r}(t.parent)||{},u=[],c=new Set,h={},d=1/0;for(let e=0;e<nP;e++){var f,p;let g=nR[e],m=r[g],y=void 0!==s[g]?s[g]:l[g],v=el(y),x=g===o?m.isActive:null;!1===x&&(d=e);let b=y===l[g]&&y!==s[g]&&v;if(b&&(n||i)&&t.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...h},!m.isActive&&null===x||!y&&!m.prevProp||es(y)||"boolean"==typeof y)continue;if("exit"===g&&m.isActive&&!0!==x){m.prevResolvedValues&&(h={...h,...m.prevResolvedValues});continue}let w=(f=m.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!nC(p,f)),k=w||g===o&&m.isActive&&!b&&v||e>d&&v,_=!1,M=Array.isArray(y)?y:[y],S=M.reduce(a(g),{});!1===x&&(S={});let{prevResolvedValues:A={}}=m,T={...A,...S},E=e=>{k=!0,c.has(e)&&(_=!0,c.delete(e)),m.needsAnimating[e]=!0;let r=t.getValue(e);r&&(r.liveStyle=!1)};for(let t in T){let e=S[t],r=A[t];if(!h.hasOwnProperty(t))(rS(e)&&rS(r)?!nC(e,r)||w:e!==r)?null!=e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):m.protectedKeys[t]=!0}m.prevProp=y,m.prevResolvedValues=S,m.isActive&&(h={...h,...S}),(n||i)&&t.blockInitialAnimation&&(k=!1);let C=b&&w,R=!C||_;k&&R&&u.push(...M.map(e=>{let r={type:g};if("string"==typeof e&&(n||i)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,i=rk(n,e);if(n.enteringChildren&&i){let{delayChildren:e}=i.transition||{};r.delay=nA(n.enteringChildren,t,e)}}return{animation:e,options:r}}))}if(c.size){let e={};if("boolean"!=typeof s.initial){let r=rk(t,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(e.transition=r.transition)}c.forEach(r=>{let n=t.getBaseTarget(r),i=t.getValue(r);i&&(i.liveStyle=!0),e[r]=n??null}),u.push({animation:e})}let g=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,i=!1,g?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(r[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),r[e].isActive=n;let i=o(e);for(let t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(r){e=r(t)},getState:()=>r,reset:()=>{r=nD(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();es(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let n$=0;class nI extends rw{constructor(){super(...arguments),this.id=n$++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&!1===r){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let r=rk(this.node,t,e);if(r){let{transition:t,transitionEnd:e,...n}=r;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nj={x:!1,y:!1};function nN(t){return[t("x"),t("y")]}function nF(t){return t.max-t.min}function nK(t,e,r,n=.5){t.origin=n,t.originPoint=eI(e.min,e.max,t.origin),t.scale=nF(r)/nF(e),t.translate=eI(r.min,r.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nz(t,e,r,n){nK(t.x,e.x,r.x,n?n.originX:void 0),nK(t.y,e.y,r.y,n?n.originY:void 0)}function nB(t,e,r,n=0){t.min=(n?eI(r.min,r.max,n):r.min)+e.min,t.max=t.min+nF(e)}function nU(t,e,r,n=0){let i=n?eI(r.min,r.max,n):r.min;t.min=e.min-i,t.max=t.min+nF(e)}function nV(t,e,r,n){nU(t.x,e.x,r.x,n?.x),nU(t.y,e.y,r.y,n?.y)}let nH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nW=new Set(["INPUT","SELECT","TEXTAREA"]);function nY(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}var nq=r(43079);function nX(t){return(0,nq.G)(t)&&"ownerSVGElement"in t}function nG(t,e,r){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}let nZ=new WeakMap,nQ=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:nX(n)&&"getBBox"in n?n.getBBox()[e]:n[r],nJ=nQ("inline","width","offsetWidth"),n0=nQ("block","height","offsetHeight");function n1({target:t,borderBoxSize:e}){nZ.get(t)?.forEach(r=>{r(t,{get width(){return nJ(t,e)},get height(){return n0(t,e)}})})}function n2(t){t.forEach(n1)}let n5=new Set;function n3(t,e){let r;return"function"==typeof t?(n5.add(t),a||(a=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n5.forEach(e=>e(t))},window.addEventListener("resize",a)),()=>{n5.delete(t),n5.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n2)),(r=nG(t)).forEach(t=>{let r=nZ.get(t);r||(r=new Set,nZ.set(t,r)),r.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let r=nZ.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let n6=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n4(t){return{point:{x:t.pageX,y:t.pageY}}}function n9(t,e,r,n){return nY(t,e,t=>n6(t)&&r(t,n4(t)),n)}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e),it=new Set(["auto","scroll"]);class ie{constructor(t,e,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ir(this.lastRawMoveEventInfo,this.transformPagePoint));let r=ia(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(t=r.offset,e={x:0,y:0},Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=tC;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ir(e,this.transformPagePoint),tT.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ia("pointercancel"===t.type?this.lastMoveEventInfo:ir(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,a),n&&n(t,a)},!n6(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const s=ir(n4(t),this.transformPagePoint),{point:l}=s,{timestamp:u}=tC;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,ia(s,this.history));const h={passive:!0,capture:!0};this.removeListeners=rT(n9(this.contextWindow,"pointermove",this.handlePointerMove,h),n9(this.contextWindow,"pointerup",this.handlePointerUp,h),n9(this.contextWindow,"pointercancel",this.handlePointerUp,h)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(it.has(t.overflowX)||it.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){let e=this.scrollPositions.get(t);if(!e)return;let r=t===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-e.x,y:n.y-e.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),tT.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tE(this.updatePoint)}}function ir(t,e){return e?{point:e(t.point)}:t}function ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ia({point:t},e){return{point:t,delta:ii(t,io(e)),offset:ii(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,r=null,n=io(t);for(;e>=0&&(r=t[e],!(n.timestamp-r.timestamp>tB(.1)));)e--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&n.timestamp-r.timestamp>2*tB(.1)&&(r=t[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e)}}function io(t){return t[t.length-1]}function is(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function il(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function iu(t,e,r){return{min:ic(t,e),max:ic(t,r)}}function ic(t,e){return"number"==typeof t?t:t[e]||0}let ih=new WeakMap;class id{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=t=>{e&&this.snapToCursor(n4(t).point),this.stopAnimation()},a=(t,e)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nj[t])return null;else return nj[t]=!0,()=>{nj[t]=!1};return nj.x||nj.y?null:(nj.x=nj.y=!0,()=>{nj.x=nj.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nN(t=>{let e=this.getAxisMotionValue(t).get()||0;if(k.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[t];n&&(e=nF(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),i&&tT.update(()=>i(t,e),!1,!0),rA(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),a&&tT.update(()=>a(t,e),!1,!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ie(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:n8(this.visualElement),element:this.visualElement.current})}stop(t,e){let r=t||this.latestPointerEvent,n=e||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&tT.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,r){let{drag:n}=this.getProps();if(!r||!ig(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:r},n){return void 0!==e&&t<e?t=n?eI(e,t,n.min):Math.max(t,e):void 0!==r&&t>r&&(t=n?eI(r,t,n.max):Math.min(t,r)),t}(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&rv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(t,{top:e,left:r,bottom:n,right:i}){return{x:is(t.x,r,i),y:is(t.y,e,n)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iu(t,"left","right"),y:iu(t,"top","bottom")}}(e),n!==this.constraints&&!rv(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nN(t=>{var e,n;let i;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],n=this.constraints[t],i={},void 0!==n.min&&(i.min=n.min-e.min),void 0!==n.max&&(i.max=n.max-e.min),i))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!rv(e))return!1;let n=e.current;te();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(t,e,r){let n=e0(t,r),{scroll:i}=e;return i&&(eG(n.x,i.offset.x),eG(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),o=(t=i.layout.layoutBox,{x:il(t.x,a.x),y:il(t.y,a.y)});if(r){let t=r(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eB(t))}return o}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(nN(o=>{if(!ig(o,e,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return rA(this.visualElement,t),r.start(nM(t,r,0,e,this.visualElement,!1))}stopAnimation(){nN(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nN(e=>{let{drag:r}=this.getProps();if(!ig(e,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(e);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[e],o=i.get()||0;i.set(t[e]-eI(r,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!rv(e)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nN(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var r,i;let a,o,s,u=e.get();n[t]=(r={min:u,max:u},i=this.constraints[t],a=.5,o=nF(r),(s=nF(i))>o?a=no(i.min,i.max-o,r.min):o>s&&(a=no(r.min,r.max-s,i.min)),l(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nN(e=>{if(!ig(e,t,null))return;let r=this.getAxisMotionValue(e),{min:i,max:a}=this.constraints[e];r.set(eI(i,a,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;ih.set(this.visualElement,this);let e=this.visualElement.current,r=n9(e,"pointerdown",t=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=t.target,a=i!==e&&(nW.has(i.tagName)||!0===i.isContentEditable);r&&n&&!a&&this.start(t)}),n=()=>{var r,n,i;let a,o,{dragConstraints:s}=this.getProps();rv(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),t||(r=e,n=s.current,a=n3(r,ip(i=()=>this.scalePositionWithinConstraints())),o=n3(n,ip(i)),t=()=>{a(),o()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tT.read(n);let o=nY(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nN(e=>{let r=this.getAxisMotionValue(e);r&&(this.originPoint[e]+=t[e].translate,r.set(r.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function ip(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ig(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}class im extends rw{constructor(t){super(t),this.removeGroupControls=t_,this.removeListeners=t_,this.controls=new id(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t_}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iy=t=>(e,r)=>{t&&tT.update(()=>t(e,r),!1,!0)};class iv extends rw{constructor(){super(...arguments),this.removePointerDownListener=t_}onPointerDown(t){this.session=new ie(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:iy(t),onStart:iy(e),onMove:iy(r),onEnd:(t,e)=>{delete this.session,n&&tT.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ix={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ib=r(77065);let iw=!1;class ik extends e2.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;i&&(e.group&&e.group.add(i),r&&r.register&&n&&r.register(i),iw&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ix.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==e&&a.setOptions({...a.options,layoutDependency:e}),iw=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||tT.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=e,r.root.didUpdate(),t8.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:n}=t;iw=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i_(t){let[e,r]=(0,ib.xQ)(),n=(0,e2.useContext)(e4.L);return(0,e6.jsx)(ik,{...t,layoutGroup:n,switchLayoutGroup:(0,e2.useContext)(ry),isPresent:e,safeToRemove:r})}let iM=eD.length,iS=t=>"string"==typeof t?parseFloat(t):t,iA=t=>"number"==typeof t||_.test(t);function iT(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iE=iR(0,.5,nr),iC=iR(.5,.95,t_);function iR(t,e,r){return n=>n<t?0:n>e?1:r(no(t,e,n))}function iP(t,e){t.min=e.min,t.max=e.max}function iL(t,e){iP(t.x,e.x),iP(t.y,e.y)}function iD(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iO(t,e,r,n,i){return t-=e,t=n+1/r*(t-n),void 0!==i&&(t=n+1/i*(t-n)),t}function i$(t,e,[r,n,i],a,o){!function(t,e=0,r=1,n=.5,i,a=t,o=t){if(k.test(e)&&(e=parseFloat(e),e=eI(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let s=eI(a.min,a.max,n);t===a&&(s-=e),t.min=iO(t.min,e,r,s,i),t.max=iO(t.max,e,r,s,i)}(t,e[r],e[n],e[i],e.scale,a,o)}let iI=["x","scaleX","originX"],ij=["y","scaleY","originY"];function iN(t,e,r,n){i$(t.x,e,iI,r?r.x:void 0,n?n.x:void 0),i$(t.y,e,ij,r?r.y:void 0,n?n.y:void 0)}function iF(t){return 0===t.translate&&1===t.scale}function iK(t){return iF(t.x)&&iF(t.y)}function iz(t,e){return t.min===e.min&&t.max===e.max}function iB(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iU(t,e){return iB(t.x,e.x)&&iB(t.y,e.y)}function iV(t){return nF(t.x)/nF(t.y)}function iH(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iW{constructor(){this.members=[]}add(t){tU(this.members,t);for(let e=this.members.length-1;e>=0;e--){let r=this.members[e];if(r===t||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(tV(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(tV(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=t.options;(void 0===n||n!==i)&&(t.resumeFrom=r,e&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iY=(t,e)=>t.depth-e.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(t){tU(this.children,t),this.isDirty=!0}remove(t){tV(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iY),this.isDirty=!1,this.children.forEach(t)}}let iX=["","X","Y","Z"],iG=0;function iZ(t,e,r,n){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function iQ({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(t={},r=e?.()){this.id=iG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i1),this.nodes.forEach(at),this.nodes.forEach(ae),this.nodes.forEach(i2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new iq)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tH),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let r=this.eventHandlers.get(t);r&&r.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nX(e)&&!(nX(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),t){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;tT.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,a;n=t,this.root.updateBlockedByResize=!0,r&&r(),e=et.now(),a=({timestamp:t})=>{let r=t-e;r>=250&&(tE(a),i())},tT.setup(a,!0),r=()=>tE(a),ix.hasAnimatedSinceResize&&(ix.hasAnimatedSinceResize=!1,this.nodes.forEach(i7))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||as,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iU(this.targetLayout,n),u=!e&&r;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...rM(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||i7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ar),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:r}=e.options;if(!r)return;let n=r.props[rm];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tT,!(t||r))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:r}=this.options;if(void 0===e&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(i6),this.nodes.forEach(i3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i9),this.nodes.forEach(i8),this.nodes.forEach(iJ),this.nodes.forEach(i0)):this.nodes.forEach(i4),this.clearAllSnapshots();let t=et.now();tC.delta=l(0,1e3/60,t-tC.timestamp),tC.timestamp=t,tC.isProcessing=!0,tR.update.process(tC),tR.preRender.process(tC),tR.render.process(tC),tC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(an)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tT.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tT.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nF(this.snapshot.measuredBox.x)||nF(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iK(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eH(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let r=this.measurePageBox(),n=this.removeElementScroll(r);return t&&(n=this.removeTransform(n)),ac((e=n).x),ac(e.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ad))){let{scroll:t}=this.root;t&&(eG(e.x,t.offset.x),eG(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(iL(e,t),this.scroll?.wasRoot)return e;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&iL(e,t),eG(e.x,i.offset.x),eG(e.y,i.offset.y))}return e}applyTransform(t,e=!1,r){let n=r||q();iL(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eG(n.x,-r.scroll.offset.x),eG(n.y,-r.scroll.offset.y)),eH(r.latestValues)&&eJ(n,r.latestValues,r.layout?.layoutBox)}return eH(this.latestValues)&&eJ(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=q();iL(e,t);for(let t=0;t<this.path.length;t++){let r,n=this.path[t];eH(n.latestValues)&&(n.instance&&(eV(n.latestValues)&&n.updateSnapshot(),iL(r=q(),n.measurePageBox())),iN(e,n.latestValues,n.snapshot?.layoutBox,r))}return eH(this.latestValues)&&iN(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==e;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=tC.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nB(o.x,s.x,l.x,u?.x),nB(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iL(this.target,this.layout.layoutBox),eX(this.target,this.targetDelta)):iL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eV(this.parent.latestValues)||eW(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,r){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),nV(this.relativeTargetOrigin,e,r,this.options.layoutAnchor||void 0),iL(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tC.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;iL(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(t,e,r,n=!1){let i,a,o=r.length;if(o){e.x=e.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eG(t.x,-i.scroll.offset.x),eG(t.y,-i.scroll.offset.y)),a&&(e.x*=a.x.scale,e.y*=a.y.scale,eX(t,a)),n&&eH(i.latestValues)&&eJ(t,i.latestValues,i.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:s}=t;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iD(this.prevProjectionDelta.x,this.projectionDelta.x),iD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nz(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&iH(this.projectionDelta.x,this.prevProjectionDelta.x)&&iH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=W(),this.projectionDelta=W(),this.projectionDeltaWithTransform=W()}setAnimationOrigin(t,e=!1,r){let n,i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=W();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=q(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(u&&!h&&!0===this.options.crossfade&&!this.path.some(ao));this.animationProgress=0;let f=r?.interpolateProjection(t);this.mixTargetDelta=e=>{let r=e/1e3,i=f?.(r);if(i?(s.x.translate=i.x,s.x.scale=eI(t.x.scale,1,r),s.x.origin=t.x.origin,s.x.originPoint=t.x.originPoint,s.y.translate=i.y,s.y.scale=eI(t.y.scale,1,r),s.y.origin=t.y.origin,s.y.originPoint=t.y.originPoint):(ai(s.x,t.x,r),ai(s.y,t.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,g,m,y,v;nV(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,y=l,v=r,aa(g.x,m.x,y.x,v),aa(g.y,m.y,y.y,v),n&&(c=this.relativeTarget,p=n,iz(c.x,p.x)&&iz(c.y,p.y))&&(this.isProjectionDirty=!1),n||(n=q()),iL(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,r,n,i,a){i?(t.opacity=eI(0,r.opacity??1,iE(n)),t.opacityExit=eI(e.opacity??1,0,iC(n))):a&&(t.opacity=eI(e.opacity??1,r.opacity??1,n));for(let i=0;i<iM;i++){let a=eD[i],o=iT(e,a),s=iT(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||iA(o)===iA(s)?(t[a]=Math.max(eI(iS(o),iS(s),n),0),(k.test(s)||k.test(o))&&(t[a]+="%")):t[a]=s)}(e.rotate||r.rotate)&&(t.rotate=eI(e.rotate||0,r.rotate||0,n))}(o,a,this.latestValues,r,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tE(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tT.update(()=>{var e,r,n;let i;ix.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ei(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,r=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=X(e)?e:ei(e)).start(nM("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:r,layout:n,latestValues:i}=t;if(e&&r&&n){if(this!==t&&this.layout&&n&&ah(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||q();let e=nF(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let n=nF(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+n}iL(e,r),eJ(e,i),nz(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iW),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(e=!0),!e)return;let n={};r.z&&iZ("z",t,n,this.animationValues);for(let e=0;e<iX.length;e++)iZ(`rotate${iX[e]}`,t,n,this.animationValues),iZ(`skew${iX[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ro(e?.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ro(e?.pointerEvents)||""),this.hasProjected&&!eH(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(t,e,r){let n="",i=t.x.translate/e.x,a=t.y.translate/e.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:t,rotate:e,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=r;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),i&&(n+=`rotate(${i}deg) `),a&&(n+=`rotateX(${a}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),t.transform=a;let{x:o,y:s}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?t.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,ej){if(void 0===i[e])continue;let{correct:r,applyTo:o,isCSSVariable:s}=ej[e],l="none"===a?i[e]:r(i[e],n);if(o){let e=o.length;for(let r=0;r<e;r++)t[o[r]]=l}else s?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ro(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(i3),this.root.sharedNodes.clear()}}}function iJ(t){t.updateLayout()}function i0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=t.layout,{animationType:i}=t.options,a=e.source!==t.layout.source;if("size"===i)nN(t=>{let n=a?e.measuredBox[t]:e.layoutBox[t],i=nF(n);n.min=r[t].min,n.max=n.min+i});else if("x"===i||"y"===i){let t="x"===i?"y":"x";iP(a?e.measuredBox[t]:e.layoutBox[t],r[t])}else ah(i,e.layoutBox,r)&&nN(n=>{let i=a?e.measuredBox[n]:e.layoutBox[n],o=nF(r[n]);i.max=i.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=W();nz(o,r,e.layoutBox);let s=W();a?nz(s,t.applyTransform(n,!0),e.measuredBox):nz(s,r,e.layoutBox);let l=!iK(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let o=t.options.layoutAnchor||void 0,s=q();nV(s,e.layoutBox,i.layoutBox,o);let l=q();nV(l,r,a.layoutBox,o),iU(s,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=s,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function i5(t){t.clearSnapshot()}function i3(t){t.clearMeasurements()}function i6(t){t.isLayoutDirty=!0,t.updateLayout()}function i4(t){t.isLayoutDirty=!1}function i9(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function i8(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function i7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function at(t){t.resolveTargetDelta()}function ae(t){t.calcProjection()}function ar(t){t.resetSkewAndRotation()}function an(t){t.removeLeadSnapshot()}function ai(t,e,r){t.translate=eI(e.translate,0,r),t.scale=eI(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function aa(t,e,r,n){t.min=eI(e.min,r.min,n),t.max=eI(e.max,r.max,n)}function ao(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let as={duration:.45,ease:[.4,0,.1,1]},al=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),au=al("applewebkit/")&&!al("chrome/")?Math.round:t_;function ac(t){t.min=au(t.min),t.max=au(t.max)}function ah(t,e,r){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iV(e)-iV(r)))}function ad(t){return t!==t.root&&t.scroll?.wasRoot}let af=iQ({attachResizeListener:(t,e)=>nY(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ap={current:void 0},ag=iQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ap.current){let t=new af({});t.mount(window),t.setOptions({layoutScroll:!0}),ap.current=t}return ap.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function am(t,e){let r=nG(t),n=new AbortController;return[r,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ay(t,e,r){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&tT.postRender(()=>i(e,n4(e)))}class av extends rw{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,r={}){let[n,i,a]=am(t,r);return n.forEach(t=>{let r,n=!1,a=!1,o=e=>{r&&(r(e),r=void 0),t.removeEventListener("pointerleave",l)},s=t=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){a=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nj.x||nj.y)return;a=!1;let o=e(t,n);"function"==typeof o&&(r=o,t.addEventListener("pointerleave",l,i))},i),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}(t,(t,e)=>(ay(this.node,e,"Start"),t=>ay(this.node,t,"End"))))}unmount(){}}class ax extends rw{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rT(nY(this.node.current,"focus",()=>this.onFocus()),nY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ab=r(41426);let aw=(t,e)=>!!e&&(t===e||aw(t,e.parentElement)),ak=new WeakSet;function a_(t){return e=>{"Enter"===e.key&&t(e)}}function aM(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function aS(t){return n6(t)&&!(nj.x||nj.y)}let aA=new WeakSet;function aT(t,e,r){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&tT.postRender(()=>i(e,n4(e)))}class aE extends rw{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:r}=this.node.props;this.unmount=function(t,e,r={}){let[n,i,a]=am(t,r),o=t=>{let n=t.currentTarget;if(!aS(t)||aA.has(t))return;ak.add(n),r.stopPropagation&&aA.add(t);let a=e(n,t),o={...i,capture:!0},s=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),ak.has(n)&&ak.delete(n),aS(t)&&"function"==typeof a&&a(t,{success:e})},l=t=>{s(t,n===window||n===document||r.useGlobalTarget||aw(n,t.target))},u=t=>{s(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{((r.useGlobalTarget?window:t).addEventListener("pointerdown",o,i),(0,ab.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let r=t.currentTarget;if(!r)return;let n=a_(()=>{if(ak.has(r))return;aM(r,"down");let t=a_(()=>{aM(r,"up")});r.addEventListener("keyup",t,e),r.addEventListener("blur",()=>aM(r,"cancel"),e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)})(t,i)),nH.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(aT(this.node,e,"Start"),(t,{success:e})=>aT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:r?.tap===!1})}unmount(){}}let aC=new WeakMap,aR=new WeakMap,aP=t=>{let e=aC.get(t.target);e&&e(t)},aL=t=>{t.forEach(aP)},aD={some:0,all:1};class aO extends rw{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:aD[a]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=e?r:n;i&&i(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let r=t||document;aR.has(r)||aR.set(r,{});let n=aR.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(aL,{root:t,...e})),n[i]}(s),aC.set(t,l),e.observe(t),()=>{aC.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let a$=function(t,e){if("u"<typeof Proxy)return rb;let r=new Map,n=(r,n)=>rb(r,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,rb(a,void 0,t,e)),r.get(a))})}({animation:{Feature:nO},exit:{Feature:nI},inView:{Feature:aO},tap:{Feature:aE},focus:{Feature:ax},hover:{Feature:av},pan:{Feature:iv},drag:{Feature:im,ProjectionNode:ag,MeasureLayout:i_},layout:{ProjectionNode:ag,MeasureLayout:i_}},(t,e)=>e.isSVG??e3(t)?new ez(e):new e1(e,{allowProjection:t!==e2.Fragment}))},10263:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},11039:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},11953:(t,e,r)=>{"use strict";r.d(e,{p:()=>d});var n=r(69266),i=r(12566),a=r(8934),o=r(85933),s=r(43745),l=r(69611),u=r(82909),c=r(20660),h=r(63962);let d=n.forwardRef(function(t,e){let{className:r,render:n,style:d,...f}=t,p=(0,i.r)(),{side:g,align:m}=(0,a.r)(),y=p.useState("open"),v=p.useState("instantType"),x=p.useState("transitionStatus"),b=p.useState("popupProps"),w=p.useState("floatingRootContext"),k=p.useState("closeDelay");return(0,s.v)({open:y,ref:p.context.popupRef,onComplete(){y&&p.context.onOpenChangeComplete?.(!0)}}),(0,c.a)(w,{closeDelay:k}),(0,l.o)("div",t,{state:{open:y,side:g,align:m,instant:v,transitionStatus:x},ref:[e,p.context.popupRef,p.useStateSetter("popupElement")],props:[h.Ls,b,(0,u.d)(x),f],stateAttributesMapping:o.LM})})},12019:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},12318:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(47552),i=r(62623);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")},12437:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof b||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return f;if("string"==typeof e){var a=e.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;p[s]=e,i=s}return!n&&i&&(f=i),i||!n&&f},v=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},x={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return x},f.isValid=function(){return this.$d.toString()!==u},f.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return v(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<v(t)},f.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var u=this,c=!!x.u(o)||o,h=x.p(t),d=function(t,e){var r=x.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return c?r:r.endOf("day")},f=function(t,e){return x.w(u.toDate()[t].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},p=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return c?d(1,0):d(31,11);case a:return c?d(1,g):d(0,g+1);case i:var v=this.$locale().weekStart||0,b=(p<v?p+7:p)-v;return d(c?m-b:m+(6-b),g);case"day":case l:return f(y+"Hours",0);case n:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case e:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,o){var u,c=x.p(i),h="set"+(this.$u?"UTC":""),d=((u={}).day=h+"Date",u[l]=h+"Date",u[a]=h+"Month",u[s]=h+"FullYear",u[n]=h+"Hours",u[r]=h+"Minutes",u[e]=h+"Seconds",u[t]=h+"Milliseconds",u)[c],f="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var p=this.clone().set(l,1);p.$d[d](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[x.p(t)]()},f.add=function(t,o){var l,u=this;t=Number(t);var c=x.p(o),h=function(e){var r=v(u);return x.w(r.date(r.date()+Math.round(e*t)),u)};if(c===a)return this.set(a,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return h(1);if(c===i)return h(7);var d=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[c]||1,f=this.$d.getTime()+t*d;return x.w(f,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=r.meridiem,f=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},p=function(t){return x.s(a%12||12,t,"0")},g=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,l,2);case"ddd":return f(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(t,l,u){var c,h=this,d=x.p(l),f=v(t),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return x.m(h,f)};switch(d){case s:c=m()/12;break;case a:c=m();break;case o:c=m()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return u?c:x.a(c)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},f.clone=function(){return x.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),w=b.prototype;return v.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,b,v),t.$i=!0),v},v.locale=y,v.isDayjs=m,v.unix=function(t){return v(1e3*t)},v.en=p[f],v.Ls=p,v.p={},v}()},12566:(t,e,r)=>{"use strict";r.d(e,{O:()=>a,r:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(t){let e=i.useContext(a);if(void 0===e&&!t)throw Error((0,n.A)(50));return e}},12720:(t,e,r)=>{"use strict";r.d(e,{M:()=>x});var n=r(69266),i=r(33914),a=r(66758),o=r(66538),s=r(9542),l=r(69611),u=r(79621),c=r(23754),h=r(78914),d=r(26564),f=r(65205),p=r(67048),g=r(89121),m=r(53402),y=r(27944),v=r(6561);let x=n.forwardRef(function(t,e){let{className:r,disabled:x=!1,render:b,value:w,id:k,nativeButton:_=!0,style:M,...S}=t,{value:A,getTabPanelIdByValue:T,onValueChange:E,orientation:C,tabActivationDirection:R}=(0,f.z)(),{activateOnFocus:P,registerTabResizeObserverElement:L,tabsListElement:D}=(0,g.b)(),{highlightedIndex:O,onHighlightedIndexChange:$}=(0,d.G)(),I=(0,s.e)(k),j=n.useMemo(()=>({disabled:x,id:I,value:w}),[x,I,w]),{compositeProps:N,compositeRef:F,index:K}=(0,h.k)({metadata:j}),z=w===A,B=n.useRef(!1),U=n.useRef(null),V=(0,o.K)(t=>{U.current?.(),U.current=t?L(t):null});(0,a.g)(()=>{if(B.current){B.current=!1;return}if(z&&K>-1&&O!==K){if(null!=D){let t=(0,v.RS)((0,i.R)(D));if(t&&(0,v.gR)(D,t))return}x||$(K)}},[z,K,O,$,x,D]);let{getButtonProps:H,buttonRef:W}=(0,u.s)({disabled:x,native:_,focusableWhenDisabled:!0}),Y=T(w),q=n.useRef(!1),X=n.useRef(!1);function G(t){E(w,(0,m.d)(y.dv,t.nativeEvent,void 0,{activationDirection:"none"}))}return(0,l.o)("button",t,{state:{disabled:x,active:z,orientation:C,tabActivationDirection:R},ref:[e,W,F,V],props:[N,{role:"tab","aria-controls":Y,"aria-selected":z,id:I,onClick:function(t){z||x||G(t)},onFocus:function(t){z||x||P&&(!q.current||X.current)&&G(t)},onPointerDown:function(t){if(z||x)return;q.current=!0,X.current=0===t.button;let e=(0,i.R)(t.currentTarget);function r(){q.current=!1,X.current=!1,e.removeEventListener("pointerup",r),e.removeEventListener("pointercancel",r)}e.addEventListener("pointerup",r),e.addEventListener("pointercancel",r)},[c.h]:z?"":void 0,onKeyDownCapture(){B.current=!0}},S,H],stateAttributesMapping:p.h})})},13050:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(17854);let i=(t,e)=>(0,n.A)(t,"l",-e)},13344:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},14203:(t,e,r)=>{"use strict";r.d(e,{D:()=>l});var n=r(69266),i=r(12566),a=r(25330),o=r(81490),s=r(7962);let l=n.forwardRef(function(t,e){let{keepMounted:r=!1,...n}=t;return(0,i.r)().useState("mounted")||r?(0,s.jsx)(a.U.Provider,{value:r,children:(0,s.jsx)(o.F,{ref:e,...n})}):null})},15104:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]])},15351:(t,e,r)=>{"use strict";r.d(e,{a:()=>c});var n=r(69266),i=r(74388),a=r(66538),o=r(96910),s=r(25905),l=r(69611),u=r(7962);let c=n.memo(n.forwardRef(function(t,e){let{render:r,className:c,value:h,defaultValue:d,onValueChange:f,disabled:p=!1,style:g,"aria-labelledby":m,...y}=t,[v,x]=n.useState(void 0),[b,w]=(0,i.q)({controlled:h,default:d,name:"MenuRadioGroup"}),k=(0,a.K)((t,e)=>{f?.(t,e),e.isCanceled||w(t)}),_=(0,l.o)("div",t,{state:{disabled:p},ref:e,props:{role:"group","aria-labelledby":m??v,"aria-disabled":p||void 0,...y}}),M=n.useMemo(()=>({value:b,setValue:k,disabled:p}),[b,k,p]);return(0,u.jsx)(s.c.Provider,{value:x,children:(0,u.jsx)(o.h.Provider,{value:M,children:_})})}))},15450:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},15948:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},17005:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(96411).createAsyncLocalStorage)()},17247:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},17339:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},17854:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47552),i=r(47057);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},17864:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]])},18903:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},23380:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(17854);let i=(t,e)=>(0,n.A)(t,"l",e)},23457:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},23754:(t,e,r)=>{"use strict";r.d(e,{h:()=>n});let n="data-composite-item-active"},24022:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-top",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]])},24722:(t,e,r)=>{"use strict";r.d(e,{i:()=>i});var n=r(35329);function i(t){return(0,n.i)(t)}},25033:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17005)},25330:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,l:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(48));return t}},25905:(t,e,r)=>{"use strict";r.d(e,{T:()=>o,c:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(31));return t}},26232:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},26575:(t,e,r)=>{"use strict";r.d(e,{p:()=>p});var n=r(69266),i=r(66758),a=r(12566),o=r(8934),s=r(52333),l=r(95522),u=r(25330),c=r(73146),h=r(60601),d=r(5733),f=r(7962);let p=n.forwardRef(function(t,e){let{render:r,className:n,anchor:p,positionMethod:g="absolute",side:m="bottom",align:y="center",sideOffset:v=0,alignOffset:x=0,collisionBoundary:b="clipping-ancestors",collisionPadding:w=5,arrowPadding:k=5,sticky:_=!1,disableAnchorTracking:M=!1,collisionAvoidance:S=c.Pe,style:A,...T}=t,E=(0,a.r)(),C=(0,u.l)(),R=(0,s.fI)(),P=E.useState("open"),L=E.useState("mounted"),D=E.useState("floatingRootContext"),O=E.useState("instantType"),$=E.useState("transitionStatus"),I=E.useState("adaptiveOrigin"),j=E.context.inlineRectCoordsRef,N=(0,l.s)({anchor:p,floatingRootContext:D,positionMethod:g,mounted:L,side:m,sideOffset:v,align:y,alignOffset:x,arrowPadding:k,collisionBoundary:b,collisionPadding:w,sticky:_,disableAnchorTracking:M,keepMounted:C,nodeId:R,collisionAvoidance:S,adaptiveOrigin:I,inline:(0,d._8)(j)}),F=N.update;(0,i.g)(()=>{P&&L&&F()},[P,L,F]);let K={open:P,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:O},z=(0,h.i)(t,K,{styles:N.positionerStyles,transitionStatus:$,props:T,refs:[e,E.useStateSetter("positionerElement")],hidden:!L,inert:!P});return(0,f.jsx)(o.w.Provider,{value:N,children:(0,f.jsx)(s.$c,{id:R,children:z})})})},26690:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},30973:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(80417),i=r(69266),a=r(53949),o=r(12566),s=r(85933),l=r(69611),u=r(9542),c=r(1424),h=r(63962),d=r(5733),f=r(8675),p=r(65905),g=r(17499),m=r(79718);let y=(0,a.nk)(function(t,e){let{render:r,className:a,delay:y,closeDelay:v,id:x,payload:b,handle:w,style:k,..._}=t,M=(0,o.r)(!0),S=(0,c.f)(w)??M;if(!S)throw Error((0,n.A)(89));let A=(0,u.e)(x),T=S.useState("isTriggerActive",A),E=S.useState("isOpenedByTrigger",A),C=S.useState("floatingRootContext"),R=S.context.inlineRectCoordsRef,P=i.useRef(null),L=y??f.r,D=v??f.V,{registerTrigger:O,isMountedByThisTrigger:$}=(0,h.L_)(A,P,S,{payload:b,closeDelay:D}),I=(0,p.j)(C,{mouseOnly:!0,move:!1,handleClose:(0,g.i)(),delay:()=>({open:L,close:D}),triggerElementRef:P,isActiveTrigger:T,isClosing:()=>"ending"===S.select("transitionStatus")}),j=(0,m.i)(C,{delay:L}),N=S.useState("triggerProps",$),F=(0,d.WB)(R,E);return(0,l.o)("a",t,{state:{open:E},ref:[e,O,P],props:[I,j.reference,N,F,{id:A},_],stateAttributesMapping:s.qV})})},31026:(t,e,r)=>{"use strict";r.d(e,{p:()=>p});var n=r(69266),i=r(74388),a=r(66758),o=r(66538),s=r(69611),l=r(63717),u=r(65205),c=r(67048),h=r(53402),d=r(27944),f=r(7962);let p=n.forwardRef(function(t,e){let{className:r,defaultValue:p=0,onValueChange:y,orientation:v="horizontal",render:x,value:b,style:w,...k}=t,_=void 0!==t.defaultValue,M=n.useRef([]),[S,A]=n.useState(()=>new Map),[T,E]=(0,i.q)({controlled:b,default:p,name:"Tabs",state:"value"}),C=void 0!==b,[R,P]=n.useState(()=>new Map),L=n.useRef(void 0),D=n.useCallback(t=>g(R,t),[R]),[O,$]=n.useState(()=>({previousValue:T,tabActivationDirection:"none"})),{previousValue:I,tabActivationDirection:j}=O,N=j,F=!1;I!==T&&(N=m(I,T,v,R),F=null!=I&&null!=T&&null==D(T));let K=F?I:T,z=I!==K||j!==N;(0,a.g)(()=>{z&&$({previousValue:K,tabActivationDirection:N})},[K,z,N]);let B=(0,o.K)((t,e)=>{e.activationDirection=m(T,t,v,R),y?.(t,e),e.isCanceled||E(t)}),U=(0,o.K)((t,e)=>{y?.(t,(0,h.d)(e,void 0,void 0,{activationDirection:"none"}))}),V=(0,o.K)((t,e)=>(A(r=>{let n=new Map(r);return n.set(t,e),n}),()=>{A(r=>{if(r.get(t)!==e)return r;let n=new Map(r);return n.delete(t),n})})),H=n.useCallback(t=>S.get(t),[S]),W=n.useCallback(t=>{for(let e of R.values())if(t===e.value)return e.id},[R]),Y=n.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:W,getTabPanelIdByValue:H,onValueChange:B,orientation:v,registerMountedTabPanel:V,setTabMap:P,tabActivationDirection:N,value:T}),[D,W,H,B,v,V,P,N,T]),q=n.useMemo(()=>{for(let t of R.values())if(t.value===T)return t},[R,T]),X=n.useMemo(()=>{for(let t of R.values())if(!t.disabled)return t.value},[R]),G=n.useRef(!_),Z=n.useRef(p),Q=n.useRef(_),J=n.useRef(!1);(0,a.g)(()=>{if(C)return;function t(t,e){E(t),$({previousValue:t,tabActivationDirection:"none"}),U(t,e),G.current=!1}if(0===R.size){J.current&&null!==T&&!L.current?.isConnected&&t(null,d.c);return}J.current=!0,L.current=R.keys().next().value;let e=q?.disabled,r=null==q&&null!==T;if(e||T!==Z.current||(Q.current=!1),Q.current&&e&&T===Z.current)return;let n=G.current;if(e||r){let r=X??null;if(T===r){G.current=!1;return}let i=d.c;n?i=d.Vh:e&&(i=d.r9),t(r,i);return}n&&null!=q&&(U(T,d.Vh),G.current=!1)},[X,C,U,q,E,R,T]);let tt={orientation:v,tabActivationDirection:N},te=(0,s.o)("div",t,{state:tt,ref:e,props:k,stateAttributesMapping:c.h});return(0,f.jsx)(u.G.Provider,{value:Y,children:(0,f.jsx)(l.u,{elementsRef:M,children:te})})});function g(t,e){for(let[r,n]of t.entries())if(e===n.value)return r;return null}function m(t,e,r,n){if(null==t||null==e)return"none";let[i,a,o]="horizontal"===r?["left","left","right"]:["top","up","down"],s=g(n,t),l=g(n,e);if(null==s||null==l)return s!==l&&("number"==typeof t||"string"==typeof t)&&typeof t==typeof e?e>t?o:a:"none";let u=s.getBoundingClientRect()[i],c=l.getBoundingClientRect()[i];return c<u?a:c>u?o:"none"}},31052:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},31175:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]])},31210:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},31217:(t,e,r)=>{"use strict";r.d(e,{$$:()=>g,Es:()=>f,KG:()=>y,Ks:()=>T,Ll:()=>s,Re:()=>M,Sw:()=>a,TW:()=>d,WQ:()=>_,YG:()=>w,YN:()=>m,ZC:()=>x,_q:()=>p,ag:()=>C,e_:()=>A,jn:()=>i,kx:()=>S,l6:()=>o,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>h,zk:()=>l});var n=r(69266);function i(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,n.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}let a="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(t){let e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object global]"===e}function s(t){return"nodeType"in t}function l(t){var e,r;return t?o(t)?t:s(t)&&null!=(e=null==(r=t.ownerDocument)?void 0:r.defaultView)?e:window:window}function u(t){let{Document:e}=l(t);return t instanceof e}function c(t){return!o(t)&&t instanceof l(t).HTMLElement}function h(t){return t instanceof l(t).SVGElement}function d(t){return t?o(t)?t.document:s(t)?u(t)?t:c(t)||h(t)?t.ownerDocument:document:document:document}let f=a?n.useLayoutEffect:n.useEffect;function p(t){let e=(0,n.useRef)(t);return f(()=>{e.current=t}),(0,n.useCallback)(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return null==e.current?void 0:e.current(...r)},[])}function g(){let t=(0,n.useRef)(null);return[(0,n.useCallback)((e,r)=>{t.current=setInterval(e,r)},[]),(0,n.useCallback)(()=>{null!==t.current&&(clearInterval(t.current),t.current=null)},[])]}function m(t,e){void 0===e&&(e=[t]);let r=(0,n.useRef)(t);return f(()=>{r.current!==t&&(r.current=t)},e),r}function y(t,e){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let e=t(r.current);return r.current=e,e},[...e])}function v(t){let e=p(t),r=(0,n.useRef)(null),i=(0,n.useCallback)(t=>{t!==r.current&&(null==e||e(t,r.current)),r.current=t},[]);return[r,i]}function x(t){let e=(0,n.useRef)();return(0,n.useEffect)(()=>{e.current=t},[t]),e.current}let b={};function w(t,e){return(0,n.useMemo)(()=>{if(e)return e;let r=null==b[t]?0:b[t]+1;return b[t]=r,t+"-"+r},[t,e])}function k(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((e,r)=>{for(let[n,i]of Object.entries(r)){let r=e[n];null!=r&&(e[n]=r+t*i)}return e},{...e})}}let _=k(1),M=k(-1);function S(t){if(!t)return!1;let{KeyboardEvent:e}=l(t.target);return e&&t instanceof e}function A(t){if(function(t){if(!t)return!1;let{TouchEvent:e}=l(t.target);return e&&t instanceof e}(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:r}=t.touches[0];return{x:e,y:r}}else if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:r}=t.changedTouches[0];return{x:e,y:r}}}return"clientX"in t&&"clientY"in t?{x:t.clientX,y:t.clientY}:null}let T=Object.freeze({Translate:{toString(t){if(!t)return;let{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;let{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[T.Translate.toString(t),T.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:n}=t;return e+" "+r+"ms "+n}}}),E="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function C(t){return t.matches(E)?t:t.querySelector(E)}},31848:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},33349:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(60008);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},33353:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-pen-line",[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]])},33705:(t,e,r)=>{"use strict";r.d(e,{W:()=>o,p:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(14));return t}},34506:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},35182:(t,e,r)=>{"use strict";r.d(e,{t:()=>n});let n=(0,r(69266).createContext)(null)},35329:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},35592:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},36919:(t,e,r)=>{"use strict";r.d(e,{I:()=>o});var n=r(37847),i=r(85784),a=r(69266);function o(){n.r.current||(0,i.Uu)();let[t]=(0,a.useState)(n.O.current);return t}},37847:(t,e,r)=>{"use strict";r.d(e,{O:()=>n,r:()=>i});let n={current:null},i={current:!1}},37918:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-bottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]])},39341:(t,e,r)=>{"use strict";r.d(e,{a:()=>o});var n,i=r(97591);let a=((n={}).checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.highlighted="data-highlighted",n),o={checked:t=>t?{[a.checked]:""}:{[a.unchecked]:""},...i.G}},39410:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},39569:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},40155:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},40678:(t,e,r)=>{"use strict";r.d(e,{c:()=>j});var n=r(80417),i=r(69266),a=r(34517),o=r(33914),s=r(53949),l=r(66538),u=r(66758),c=r(48356),h=r(52333),d=r(65905),f=r(17499),p=r(69738),g=r(79718),m=r(24082),y=r(6561),v=r(79833),x=r(85933),b=r(69611),w=r(79621),k=r(41775),_=r(78914);function M(t){let{render:e,className:r,style:n,state:i=c.t0,props:a=c.Ml,refs:o=c.Ml,metadata:s,stateAttributesMapping:l,tag:u="div",...h}=t,{compositeProps:d,compositeRef:f}=(0,_.k)({metadata:s});return(0,b.o)(u,t,{state:i,ref:[f,...o],props:[d,...a,h],stateAttributesMapping:l})}var S=r(26564),A=r(28991),T=r(1424),E=r(63962),C=r(54005),R=r(9542),P=r(27944),L=r(92622),D=r(73146),O=r(69609),$=r(52686),I=r(7962);let j=(0,s.nk)(function(t,e){let r,{render:s,className:_,style:j,disabled:N=!1,nativeButton:F=!0,id:K,openOnHover:z,delay:B=100,closeDelay:U=0,handle:V,payload:H,...W}=t,Y=(0,v.Y)(!0),q=(0,T.f)(V)??Y?.store;if(!q)throw Error((0,n.A)(85));let X=(0,R.e)(K),G=q.useState("isTriggerActive",X),Z=q.useState("floatingRootContext"),Q=q.useState("isOpenedByTrigger",X),J=q.useState("triggerPopupId",X),tt=i.useRef(null),te=(r=(0,L.t)(!0),i.useMemo(()=>r?{type:"menubar",context:r}:{type:void 0},[r])),tr=(0,S.G)(!0),tn=(0,h.cq)(),ti=i.useMemo(()=>tn??new m.k,[tn]),ta=(0,h.fI)(ti),to=(0,h.R1)(),{registerTrigger:ts,isMountedByThisTrigger:tl}=(0,E.L_)(X,tt,q,{payload:H,closeDelay:U,parent:te,floatingTreeRoot:ti,floatingNodeId:ta,floatingParentNodeId:to,keyboardEventRelay:tr?.relayKeyboardEvent}),tu="menubar"===te.type,tc=q.useState("disabled"),th=N||tc||tu&&te.context.disabled,{getButtonProps:td,buttonRef:tf}=(0,w.s)({disabled:th,native:F});i.useEffect(()=>{Q||void 0!==te.type||(q.context.allowMouseUpTriggerRef.current=!1)},[q,Q,te.type]);let tp=i.useRef(null),tg=(0,a.Z)(),tm=(0,l.K)(t=>{if(!tp.current)return;tg.clear(),q.context.allowMouseUpTriggerRef.current=!1;let e=t.target;(0,y.gR)(tp.current,e)||(0,y.gR)(q.select("positionerElement"),e)||e===tp.current||null!=e&&(0,A.Q)(e)===q.select("rootId")||(0,k.U)(t,tp.current)||ti.events.emit("close",{domEvent:t,reason:P.LO})});i.useEffect(()=>{Q&&q.select("lastOpenChangeReason")===P.N7&&(0,o.R)(tp.current).addEventListener("mouseup",tm,{once:!0})},[Q,tm,q]);let ty=tu&&te.context.hasSubmenuOpen,tv=z??ty,tx=(0,d.j)(Z,{enabled:tv&&!th&&(!tu||ty&&!tl),handleClose:(0,f.i)({blockPointerEvents:!tu}),mouseOnly:!0,move:!1,restMs:void 0===te.type?B:void 0,delay:{close:U},triggerElementRef:tt,externalTree:ti,isActiveTrigger:G,isClosing:()=>"ending"===q.select("transitionStatus")}),tb=function(t,e){let r=(0,a.Z)(),[n,o]=i.useState(!1);return(0,u.g)(()=>{t&&e===P.N7?(o(!0),r.start(D.X3,()=>{o(!1)})):t||(r.clear(),o(!1))},[t,e,r]),n}(Q,q.select("lastOpenChangeReason")),tw=(0,p.k)(Z,{enabled:!th,event:Q&&tu?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===te.type&&tb}),tk=(0,g.i)(Z,{enabled:!th&&ty}),t_=function(t){let{enabled:e=!0,mouseDownAction:r,open:n}=t,a=i.useRef(!1);return i.useMemo(()=>e?{onMouseDown:t=>{("open"===r&&!n||"close"===r&&n)&&(a.current=!0,(0,o.R)(t.currentTarget).addEventListener("click",()=>{a.current=!1},{once:!0}))},onClick:t=>{a.current&&(a.current=!1,t.preventBaseUIHandler())}}:c.t0,[e,r,n])}({open:Q,enabled:tu,mouseDownAction:"open"}),tM=i.useMemo(()=>(0,$.v6)(tk.reference,tw.reference),[tk.reference,tw.reference]),tS=q.useState("triggerProps",tl),{preFocusGuardRef:tA,handlePreFocusGuardFocus:tT,handleFocusTargetFocus:tE}=(0,C.a)(q,tt),tC={disabled:th,open:Q},tR=[tp,e,tf,ts,tt],tP=[tM,tx??c.t0,tS,{"aria-haspopup":"menu","aria-controls":J,id:X,onMouseDown:t=>{q.select("open")||(tg.start(200,()=>{q.context.allowMouseUpTriggerRef.current=!0}),(0,o.R)(t.currentTarget).addEventListener("mouseup",tm,{once:!0}))}},tu?{role:"menuitem"}:{},t_,W,td],tL=(0,b.o)("button",t,{enabled:!tu,stateAttributesMapping:x.jL,state:tC,ref:tR,props:tP});return tu?(0,I.jsx)(M,{tag:"button",render:s,className:_,style:j,state:tC,refs:tR,props:tP,stateAttributesMapping:x.jL}):Q?(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(O.U,{ref:tA,onFocus:tT},`${X}-pre-focus-guard`),(0,I.jsx)(i.Fragment,{children:tL},X),(0,I.jsx)(O.U,{ref:q.context.triggerFocusTargetRef,onFocus:tE},`${X}-post-focus-guard`)]}):(0,I.jsx)(i.Fragment,{children:tL},X)})},40942:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]])},41144:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});let n=r(7962),i=r(69266),a=r(85279);function o(t){return{default:t&&"default"in t?t.default:t}}r(71762);let s={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},l=function(t){let e={...s,...t},r=(0,i.lazy)(()=>e.loader().then(o)),l=e.loading;function u(t){let o=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!e.ssr||!!e.loading,u=s?i.Suspense:i.Fragment,c=e.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...t})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...t})});return(0,n.jsx)(u,{...s?{fallback:o}:{},children:c})}return u.displayName="LoadableComponent",u}},41426:(t,e,r)=>{"use strict";r.d(e,{s:()=>i});var n=r(43079);function i(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},41513:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},41934:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},43016:(t,e,r)=>{"use strict";r.d(e,{R:()=>g});var n=r(69266),i=r(18652),a=r(66758),o=r(9542),s=r(97591),l=r(43745),u=r(47623),c=r(69611),h=r(54545),d=r(67048),f=r(65205);let p={...d.h,...s.G},g=n.forwardRef(function(t,e){let{className:r,value:s,render:d,keepMounted:g=!1,style:m,...y}=t,{value:v,getTabIdByPanelValue:x,orientation:b,tabActivationDirection:w,registerMountedTabPanel:k}=(0,f.z)(),_=(0,o.e)(),{ref:M,index:S}=(0,h.q)(),A=s===v,{mounted:T,transitionStatus:E,setMounted:C}=(0,u.$)(A),R=!T,P=x(s),L=n.useRef(null),D=(0,c.o)("div",t,{state:{hidden:R,orientation:b,tabActivationDirection:w,transitionStatus:E},ref:[e,M,L],props:[{"aria-labelledby":P,hidden:R,id:_,role:"tabpanel",tabIndex:A?0:-1,inert:(0,i.Y)(!A),"data-index":S},y],stateAttributesMapping:p});return((0,l.v)({open:A,ref:L,onComplete(){A||C(!1)}}),(0,a.g)(()=>{if(null!=_&&(!R||g))return k(s,_)},[R,g,s,_,k]),g||T)?D:null})},43079:(t,e,r)=>{"use strict";r.d(e,{G:()=>n});let n=t=>"object"==typeof t&&null!==t},43209:(t,e,r)=>{"use strict";r.d(e,{Mp:()=>tW,vL:()=>g,uN:()=>tp,cA:()=>tw,AN:()=>tx,IG:()=>t_,fp:()=>B,y$:()=>U,Sj:()=>q,Vy:()=>K,sl:()=>G,fF:()=>tG,PM:()=>tX,zM:()=>tQ,MS:()=>D,FR:()=>O});var n,i,a,o,s,l,u,c,h,d,f,p,g,m,y,v,x,b,w,k=r(69266),_=r(44911),M=r(31217);let S={display:"none"};function A(t){let{id:e,value:r}=t;return k.createElement("div",{id:e,style:S},r)}function T(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;return k.createElement("div",{id:e,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let E=(0,k.createContext)(null),C={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},R={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was moved over droppable area "+r.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was dropped over droppable area "+r.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function P(t){var e;let r,{announcements:n=R,container:i,hiddenTextDescribedById:a,screenReaderInstructions:o=C}=t,{announce:s,announcement:l}=function(){let[t,e]=(0,k.useState)("");return{announce:(0,k.useCallback)(t=>{null!=t&&e(t)},[]),announcement:t}}(),u=(0,M.YG)("DndLiveRegion"),[c,h]=(0,k.useState)(!1);if((0,k.useEffect)(()=>{h(!0)},[]),e=(0,k.useMemo)(()=>({onDragStart(t){let{active:e}=t;s(n.onDragStart({active:e}))},onDragMove(t){let{active:e,over:r}=t;n.onDragMove&&s(n.onDragMove({active:e,over:r}))},onDragOver(t){let{active:e,over:r}=t;s(n.onDragOver({active:e,over:r}))},onDragEnd(t){let{active:e,over:r}=t;s(n.onDragEnd({active:e,over:r}))},onDragCancel(t){let{active:e,over:r}=t;s(n.onDragCancel({active:e,over:r}))}}),[s,n]),r=(0,k.useContext)(E),(0,k.useEffect)(()=>{if(!r)throw Error("useDndMonitor must be used within a children of <DndContext>");return r(e)},[e,r]),!c)return null;let d=k.createElement(k.Fragment,null,k.createElement(A,{id:a,value:o.draggable}),k.createElement(T,{id:u,announcement:l}));return i?(0,_.createPortal)(d,i):d}function L(){}function D(t,e){return(0,k.useMemo)(()=>({sensor:t,options:null!=e?e:{}}),[t,e])}function O(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,k.useMemo)(()=>[...e].filter(t=>null!=t),[...e])}(n=d||(d={})).DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable";let $=Object.freeze({x:0,y:0});function I(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function j(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return r-n}function N(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return n-r}function F(t){let{left:e,top:r,height:n,width:i}=t;return[{x:e,y:r},{x:e+i,y:r},{x:e,y:r+n},{x:e+i,y:r+n}]}function K(t,e){if(!t||0===t.length)return null;let[r]=t;return e?r[e]:r}function z(t,e,r){return void 0===e&&(e=t.left),void 0===r&&(r=t.top),{x:e+.5*t.width,y:r+.5*t.height}}let B=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=z(e,e.left,e.top),a=[];for(let t of n){let{id:e}=t,n=r.get(e);if(n){let r=I(z(n),i);a.push({id:e,data:{droppableContainer:t,value:r}})}}return a.sort(j)},U=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=F(e),a=[];for(let t of n){let{id:e}=t,n=r.get(e);if(n){let r=F(n),o=Number((i.reduce((t,e,n)=>t+I(r[n],e),0)/4).toFixed(4));a.push({id:e,data:{droppableContainer:t,value:o}})}}return a.sort(j)},V=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,i=[];for(let t of n){let{id:n}=t,a=r.get(n);if(a){let r=function(t,e){let r=Math.max(e.top,t.top),n=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),a=Math.min(e.top+e.height,t.top+t.height);if(n<i&&r<a){let o=e.width*e.height,s=t.width*t.height,l=(i-n)*(a-r);return Number((l/(o+s-l)).toFixed(4))}return 0}(a,e);r>0&&i.push({id:n,data:{droppableContainer:t,value:r}})}}return i.sort(N)};function H(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:$}let W=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((t,e)=>({...t,top:t.top+ +e.y,bottom:t.bottom+ +e.y,left:t.left+ +e.x,right:t.right+ +e.x}),{...t})},Y={ignoreTransform:!1};function q(t,e){void 0===e&&(e=Y);let r=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:e,transformOrigin:n}=(0,M.zk)(t).getComputedStyle(t);e&&(r=function(t,e,r){let n=function(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}(e);if(!n)return t;let{scaleX:i,scaleY:a,x:o,y:s}=n,l=t.left-o-(1-i)*parseFloat(r),u=t.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?t.width/i:t.width,h=a?t.height/a:t.height;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l}}(r,e,n))}let{top:n,left:i,width:a,height:o,bottom:s,right:l}=r;return{top:n,left:i,width:a,height:o,bottom:s,right:l}}function X(t){return q(t,{ignoreTransform:!0})}function G(t,e){let r=[];return t?function n(i){var a,o;let s;if(null!=e&&r.length>=e||!i)return r;if((0,M.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,M.sb)(i)||(0,M.xZ)(i)||r.includes(i))return r;let l=(0,M.zk)(t).getComputedStyle(i);return(i!==t&&(void 0===(a=l)&&(a=(0,M.zk)(i).getComputedStyle(i)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(t=>{let e=a[t];return"string"==typeof e&&s.test(e)}))&&r.push(i),void 0===(o=l)&&(o=(0,M.zk)(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(t):r}function Z(t){let[e]=G(t,1);return null!=e?e:null}function Q(t){return M.Sw&&t?(0,M.l6)(t)?t:(0,M.Ll)(t)?(0,M.wz)(t)||t===(0,M.TW)(t).scrollingElement?window:(0,M.sb)(t)?t:null:null:null}function J(t){return(0,M.l6)(t)?t.scrollX:t.scrollLeft}function tt(t){return(0,M.l6)(t)?t.scrollY:t.scrollTop}function te(t){return{x:J(t),y:tt(t)}}function tr(t){return!!M.Sw&&!!t&&t===document.scrollingElement}function tn(t){let e={x:0,y:0},r=tr(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},n={x:t.scrollWidth-r.width,y:t.scrollHeight-r.height},i=t.scrollTop<=e.y,a=t.scrollLeft<=e.x;return{isTop:i,isLeft:a,isBottom:t.scrollTop>=n.y,isRight:t.scrollLeft>=n.x,maxScroll:n,minScroll:e}}(i=f||(f={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let ti={x:.2,y:.2};function ta(t){return t.reduce((t,e)=>(0,M.WQ)(t,te(e)),$)}let to=[["x",["left","right"],function(t){return t.reduce((t,e)=>t+J(e),0)}],["y",["top","bottom"],function(t){return t.reduce((t,e)=>t+tt(e),0)}]];class ts{constructor(t,e){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=G(e),n=ta(r);for(const[e,i,a]of(this.rect={...t},this.width=t.width,this.height=t.height,to))for(const t of i)Object.defineProperty(this,t,{get:()=>{let i=a(r),o=n[e]-i;return this.rect[t]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class tl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var e;return null==(e=this.target)?void 0:e.removeEventListener(...t)})},this.target=t}add(t,e,r){var n;null==(n=this.target)||n.addEventListener(t,e,r),this.listeners.push([t,e,r])}}function tu(t,e){let r=Math.abs(t.x),n=Math.abs(t.y);return"number"==typeof e?Math.sqrt(r**2+n**2)>e:"x"in e&&"y"in e?r>e.x&&n>e.y:"x"in e?r>e.x:"y"in e&&n>e.y}function tc(t){t.preventDefault()}function th(t){t.stopPropagation()}(a=p||(p={})).Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange",(o=g||(g={})).Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab";let td={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},tf=(t,e)=>{let{currentCoordinates:r}=e;switch(t.code){case g.Right:return{...r,x:r.x+25};case g.Left:return{...r,x:r.x-25};case g.Down:return{...r,y:r.y+25};case g.Up:return{...r,y:r.y-25}}};class tp{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:e}}=t;this.props=t,this.listeners=new tl((0,M.TW)(e)),this.windowListeners=new tl((0,M.zk)(e)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(p.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:e}=this.props,r=t.node.current;r&&function(t,e){if(void 0===e&&(e=q),!t)return;let{top:r,left:n,bottom:i,right:a}=e(t);Z(t)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}(r),e($)}handleKeyDown(t){if((0,M.kx)(t)){let{active:e,context:r,options:n}=this.props,{keyboardCodes:i=td,coordinateGetter:a=tf,scrollBehavior:o="smooth"}=n,{code:s}=t;if(i.end.includes(s))return void this.handleEnd(t);if(i.cancel.includes(s))return void this.handleCancel(t);let{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:$;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(t,{active:e,context:r.current,currentCoordinates:u});if(c){let e=(0,M.Re)(c,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=t.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:h,minScroll:d}=tn(r),f=function(t){if(t===document.scrollingElement){let{innerWidth:t,innerHeight:e}=window;return{top:0,left:0,right:t,bottom:e,width:t,height:e}}let{top:e,left:r,right:n,bottom:i}=t.getBoundingClientRect();return{top:e,left:r,right:n,bottom:i,width:t.clientWidth,height:t.clientHeight}}(r),p={x:Math.min(i===g.Right?f.right-f.width/2:f.right,Math.max(i===g.Right?f.left:f.left+f.width/2,c.x)),y:Math.min(i===g.Down?f.bottom-f.height/2:f.bottom,Math.max(i===g.Down?f.top:f.top+f.height/2,c.y))},m=i===g.Right&&!s||i===g.Left&&!l,y=i===g.Down&&!u||i===g.Up&&!a;if(m&&p.x!==c.x){let t=r.scrollLeft+e.x,a=i===g.Right&&t<=h.x||i===g.Left&&t>=d.x;if(a&&!e.y)return void r.scrollTo({left:t,behavior:o});a?n.x=r.scrollLeft-t:n.x=i===g.Right?r.scrollLeft-h.x:r.scrollLeft-d.x,n.x&&r.scrollBy({left:-n.x,behavior:o});break}if(y&&p.y!==c.y){let t=r.scrollTop+e.y,a=i===g.Down&&t<=h.y||i===g.Up&&t>=d.y;if(a&&!e.x)return void r.scrollTo({top:t,behavior:o});a?n.y=r.scrollTop-t:n.y=i===g.Down?r.scrollTop-h.y:r.scrollTop-d.y,n.y&&r.scrollBy({top:-n.y,behavior:o});break}}this.handleMove(t,(0,M.WQ)((0,M.Re)(c,this.referenceCoordinates),n))}}}handleMove(t,e){let{onMove:r}=this.props;t.preventDefault(),r(e)}handleEnd(t){let{onEnd:e}=this.props;t.preventDefault(),this.detach(),e()}handleCancel(t){let{onCancel:e}=this.props;t.preventDefault(),this.detach(),e()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function tg(t){return!!(t&&"distance"in t)}function tm(t){return!!(t&&"delay"in t)}tp.activators=[{eventName:"onKeyDown",handler:(t,e,r)=>{let{keyboardCodes:n=td,onActivation:i}=e,{active:a}=r,{code:o}=t.nativeEvent;if(n.start.includes(o)){let e=a.activatorNode.current;return(!e||t.target===e)&&(t.preventDefault(),null==i||i({event:t.nativeEvent}),!0)}return!1}}];class ty{constructor(t,e,r){var n;void 0===r&&(r=function(t){let{EventTarget:e}=(0,M.zk)(t);return t instanceof e?t:(0,M.TW)(t)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=e;const{event:i}=t,{target:a}=i;this.props=t,this.events=e,this.document=(0,M.TW)(a),this.documentListeners=new tl(this.document),this.listeners=new tl(r),this.windowListeners=new tl((0,M.zk)(a)),this.initialCoordinates=null!=(n=(0,M.e_)(i))?n:$,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:e,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.DragStart,tc),this.windowListeners.add(p.VisibilityChange,this.handleCancel),this.windowListeners.add(p.ContextMenu,tc),this.documentListeners.add(p.Keydown,this.handleKeydown),e){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tm(e)){this.timeoutId=setTimeout(this.handleStart,e.delay),this.handlePending(e);return}if(tg(e))return void this.handlePending(e)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,e){let{active:r,onPending:n}=this.props;n(r,t,this.initialCoordinates,e)}handleStart(){let{initialCoordinates:t}=this,{onStart:e}=this.props;t&&(this.activated=!0,this.documentListeners.add(p.Click,th,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(p.SelectionChange,this.removeTextSelection),e(t))}handleMove(t){var e;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!n)return;let s=null!=(e=(0,M.e_)(t))?e:$,l=(0,M.Re)(n,s);if(!r&&o){if(tg(o)){if(null!=o.tolerance&&tu(l,o.tolerance))return this.handleCancel();if(tu(l,o.distance))return this.handleStart()}return tm(o)&&tu(l,o.tolerance)?this.handleCancel():void this.handlePending(o,l)}t.cancelable&&t.preventDefault(),a(s)}handleEnd(){let{onAbort:t,onEnd:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleCancel(){let{onAbort:t,onCancel:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleKeydown(t){t.code===g.Esc&&this.handleCancel()}removeTextSelection(){var t;null==(t=this.document.getSelection())||t.removeAllRanges()}}let tv={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tx extends ty{constructor(t){const{event:e}=t;super(t,tv,(0,M.TW)(e.target))}}tx.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let tb={move:{name:"mousemove"},end:{name:"mouseup"}};(s=m||(m={}))[s.RightClick=2]="RightClick";class tw extends ty{constructor(t){super(t,tb,(0,M.TW)(t.event.target))}}tw.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return r.button!==m.RightClick&&(null==n||n({event:r}),!0)}}];let tk={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class t_ extends ty{constructor(t){super(t,tk)}static setup(){return window.addEventListener(tk.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tk.move.name,t)};function t(){}}}t_.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],(l=y||(y={}))[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect",(u=v||(v={}))[u.TreeOrder=0]="TreeOrder",u[u.ReversedTreeOrder=1]="ReversedTreeOrder";let tM={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(c=x||(x={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(b||(b={})).Optimized="optimized";let tS=new Map;function tA(t,e){return(0,M.KG)(r=>t?r||("function"==typeof e?e(t):t):null,[e,t])}function tT(t){let{callback:e,disabled:r}=t,n=(0,M._q)(e),i=(0,k.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:t}=window;return new t(n)},[r]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function tE(t){return new ts(q(t),t)}function tC(t,e,r){void 0===e&&(e=tE);let[n,i]=(0,k.useState)(null);function a(){i(n=>{if(!t)return null;if(!1===t.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let a=e(t);return JSON.stringify(n)===JSON.stringify(a)?n:a})}let o=function(t){let{callback:e,disabled:r}=t,n=(0,M._q)(e),i=(0,k.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:t}=window;return new t(n)},[n,r]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(e){if(t)for(let r of e){let{type:e,target:n}=r;if("childList"===e&&n instanceof HTMLElement&&n.contains(t)){a();break}}}}),s=tT({callback:a});return(0,M.Es)(()=>{a(),t?(null==s||s.observe(t),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==o||o.disconnect())},[t]),n}let tR=[];function tP(t,e){void 0===e&&(e=[]);let r=(0,k.useRef)(null);return(0,k.useEffect)(()=>{r.current=null},e),(0,k.useEffect)(()=>{let e=t!==$;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)},[t]),r.current?(0,M.Re)(t,r.current):$}function tL(t){return(0,k.useMemo)(()=>{let e,r;return t?(e=t.innerWidth,{top:0,left:0,right:e,bottom:r=t.innerHeight,width:e,height:r}):null},[t])}let tD=[],tO=[{sensor:tx,options:{}},{sensor:tp,options:{}}],t$={current:{}},tI={draggable:{measure:X},droppable:{measure:X,strategy:x.WhileDragging,frequency:b.Optimized},dragOverlay:{measure:q}};class tj extends Map{get(t){var e;return null!=t&&null!=(e=super.get(t))?e:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:e}=t;return!e})}getNodeFor(t){var e,r;return null!=(e=null==(r=this.get(t))?void 0:r.node.current)?e:void 0}}let tN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tj,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:L},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tI,measureDroppableContainers:L,windowRect:null,measuringScheduled:!1},tF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:L,draggableNodes:new Map,over:null,measureDroppableContainers:L},tK=(0,k.createContext)(tF),tz=(0,k.createContext)(tN);function tB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tj}}}function tU(t,e){switch(e.type){case d.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case d.DragMove:if(null==t.draggable.active)return t;return{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:r}=e,{id:n}=r,i=new tj(t.droppable.containers);return i.set(n,r),{...t,droppable:{...t.droppable,containers:i}}}case d.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=e,a=t.droppable.containers.get(r);if(!a||n!==a.key)return t;let o=new tj(t.droppable.containers);return o.set(r,{...a,disabled:i}),{...t,droppable:{...t.droppable,containers:o}}}case d.UnregisterDroppable:{let{id:r,key:n}=e,i=t.droppable.containers.get(r);if(!i||n!==i.key)return t;let a=new tj(t.droppable.containers);return a.delete(r),{...t,droppable:{...t.droppable,containers:a}}}default:return t}}function tV(t){let{disabled:e}=t,{active:r,activatorEvent:n,draggableNodes:i}=(0,k.useContext)(tK),a=(0,M.ZC)(n),o=(0,M.ZC)(null==r?void 0:r.id);return(0,k.useEffect)(()=>{if(!e&&!n&&a&&null!=o){if(!(0,M.kx)(a)||document.activeElement===a.target)return;let t=i.get(o);if(!t)return;let{activatorNode:e,node:r}=t;(e.current||r.current)&&requestAnimationFrame(()=>{for(let t of[e.current,r.current]){if(!t)continue;let e=(0,M.ag)(t);if(e){e.focus();break}}})}},[n,e,i,o,a]),null}let tH=(0,k.createContext)({...$,scaleX:1,scaleY:1});(h=w||(w={}))[h.Uninitialized=0]="Uninitialized",h[h.Initializing=1]="Initializing",h[h.Initialized=2]="Initialized";let tW=(0,k.memo)(function(t){var e,r,n,i,a,o,s,l;let u,c,h,p,g,m,b,S,{id:A,accessibility:T,autoScroll:C=!0,children:R,sensors:L=tO,collisionDetection:D=V,measuring:O,modifiers:I,...j}=t,[N,F]=(0,k.useReducer)(tU,void 0,tB),[z,B]=function(){let[t]=(0,k.useState)(()=>new Set),e=(0,k.useCallback)(e=>(t.add(e),()=>t.delete(e)),[t]);return[(0,k.useCallback)(e=>{let{type:r,event:n}=e;t.forEach(t=>{var e;return null==(e=t[r])?void 0:e.call(t,n)})},[t]),e]}(),[U,Y]=(0,k.useState)(w.Uninitialized),X=U===w.Initialized,{draggable:{active:J,nodes:tt,translate:to},droppable:{containers:tl}}=N,tu=null!=J?tt.get(J):null,tc=(0,k.useRef)({initial:null,translated:null}),th=(0,k.useMemo)(()=>{var t;return null!=J?{id:J,data:null!=(t=null==tu?void 0:tu.data)?t:t$,rect:tc}:null},[J,tu]),td=(0,k.useRef)(null),[tf,tp]=(0,k.useState)(null),[tg,tm]=(0,k.useState)(null),ty=(0,M.YN)(j,Object.values(j)),tv=(0,M.YG)("DndDescribedBy",A),tx=(0,k.useMemo)(()=>tl.getEnabled(),[tl]),tb=(0,k.useMemo)(()=>({draggable:{...tI.draggable,...null==O?void 0:O.draggable},droppable:{...tI.droppable,...null==O?void 0:O.droppable},dragOverlay:{...tI.dragOverlay,...null==O?void 0:O.dragOverlay}}),[null==O?void 0:O.draggable,null==O?void 0:O.droppable,null==O?void 0:O.dragOverlay]),{droppableRects:tw,measureDroppableContainers:tk,measuringScheduled:t_}=function(t,e){let{dragging:r,dependencies:n,config:i}=e,[a,o]=(0,k.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,k.useRef)(t),h=function(){switch(u){case x.Always:return!1;case x.BeforeDragging:return r;default:return!r}}(),d=(0,M.YN)(h),f=(0,k.useCallback)(function(t){void 0===t&&(t=[]),d.current||o(e=>null===e?t:e.concat(t.filter(t=>!e.includes(t))))},[d]),p=(0,k.useRef)(null),g=(0,M.KG)(e=>{if(h&&!r)return tS;if(!e||e===tS||c.current!==t||null!=a){let e=new Map;for(let r of t){if(!r)continue;if(a&&a.length>0&&!a.includes(r.id)&&r.rect.current){e.set(r.id,r.rect.current);continue}let t=r.node.current,n=t?new ts(l(t),t):null;r.rect.current=n,n&&e.set(r.id,n)}return e}return e},[t,a,r,h,l]);return(0,k.useEffect)(()=>{c.current=t},[t]),(0,k.useEffect)(()=>{h||f()},[r,h]),(0,k.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,k.useEffect)(()=>{h||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{f(),p.current=null},s))},[s,h,f,...n]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=a}}(tx,{dragging:X,dependencies:[to.x,to.y],config:tb.droppable}),tE=(g=(p=null!=J?tt.get(J):void 0)?p.node.current:null,(0,M.KG)(t=>{var e;return null==J?null:null!=(e=null!=g?g:t)?e:null},[g,J])),tj=(0,k.useMemo)(()=>tg?(0,M.e_)(tg):null,[tg]),tN=(u=(null==tf?void 0:tf.autoScrollEnabled)===!1,c="object"==typeof C?!1===C.enabled:!1===C,h=X&&!u&&!c,"object"==typeof C?{...C,enabled:h}:{enabled:h}),tF=tA(tE,tb.draggable.measure);!function(t){let{activeNode:e,measure:r,initialRect:n,config:i=!0}=t,a=(0,k.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;(0,M.Es)(()=>{if(!o&&!s||!e){a.current=!1;return}if(a.current||!n)return;let t=null==e?void 0:e.node.current;if(!t||!1===t.isConnected)return;let i=H(r(t),n);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let e=Z(t);e&&e.scrollBy({top:i.y,left:i.x})}},[e,o,s,n,r])}({activeNode:null!=J?tt.get(J):null,config:tN.layoutShiftCompensation,initialRect:tF,measure:tb.draggable.measure});let tW=tC(tE,tb.draggable.measure,tF),tY=tC(tE?tE.parentElement:null),tq=(0,k.useRef)({activatorEvent:null,active:null,activeNode:tE,collisionRect:null,collisions:null,droppableRects:tw,draggableNodes:tt,draggingNode:null,draggingNodeRect:null,droppableContainers:tl,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),tX=tl.getNodeFor(null==(e=tq.current.over)?void 0:e.id),tG=function(t){let{measure:e}=t,[r,n]=(0,k.useState)(null),i=tT({callback:(0,k.useCallback)(t=>{for(let{target:r}of t)if((0,M.sb)(r)){n(t=>{let n=e(r);return t?{...t,width:n.width,height:n.height}:n});break}},[e])}),a=(0,k.useCallback)(t=>{let r=function(t){if(!t)return null;if(t.children.length>1)return t;let e=t.children[0];return(0,M.sb)(e)?e:t}(t);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?e(r):null)},[e,i]),[o,s]=(0,M.lk)(a);return(0,k.useMemo)(()=>({nodeRef:o,rect:r,setRef:s}),[r,o,s])}({measure:tb.dragOverlay.measure}),tZ=null!=(r=tG.nodeRef.current)?r:tE,tQ=X?null!=(n=tG.rect)?n:tW:null,tJ=!!(tG.nodeRef.current&&tG.rect),t0=(m=tA(a=tJ?null:tW),H(a,m)),t1=tL(tZ?(0,M.zk)(tZ):null),t2=(o=X?null!=tX?tX:tE:null,b=(0,k.useRef)(o),S=(0,M.KG)(t=>o?t&&t!==tR&&o&&b.current&&o.parentNode===b.current.parentNode?t:G(o):tR,[o]),(0,k.useEffect)(()=>{b.current=o},[o]),S),t5=function(t,e){void 0===e&&(e=q);let[r]=t,n=tL(r?(0,M.zk)(r):null),[i,a]=(0,k.useState)(tD);function o(){a(()=>t.length?t.map(t=>tr(t)?n:new ts(e(t),t)):tD)}let s=tT({callback:o});return(0,M.Es)(()=>{null==s||s.disconnect(),o(),t.forEach(t=>null==s?void 0:s.observe(t))},[t]),i}(t2),t3=function(t,e){let{transform:r,...n}=e;return null!=t&&t.length?t.reduce((t,e)=>e({transform:t,...n}),r):r}(I,{transform:{x:to.x-t0.x,y:to.y-t0.y,scaleX:1,scaleY:1},activatorEvent:tg,active:th,activeNodeRect:tW,containerNodeRect:tY,draggingNodeRect:tQ,over:tq.current.over,overlayNodeRect:tG.rect,scrollableAncestors:t2,scrollableAncestorRects:t5,windowRect:t1}),t6=tj?(0,M.WQ)(tj,to):null,t4=function(t){let[e,r]=(0,k.useState)(null),n=(0,k.useRef)(t),i=(0,k.useCallback)(t=>{let e=Q(t.target);e&&r(t=>t?(t.set(e,te(e)),new Map(t)):null)},[]);return(0,k.useEffect)(()=>{let e=n.current;if(t!==e){a(e);let o=t.map(t=>{let e=Q(t);return e?(e.addEventListener("scroll",i,{passive:!0}),[e,te(e)]):null}).filter(t=>null!=t);r(o.length?new Map(o):null),n.current=t}return()=>{a(t),a(e)};function a(t){t.forEach(t=>{let e=Q(t);null==e||e.removeEventListener("scroll",i)})}},[i,t]),(0,k.useMemo)(()=>t.length?e?Array.from(e.values()).reduce((t,e)=>(0,M.WQ)(t,e),$):ta(t):$,[t,e])}(t2),t9=tP(t4),t8=tP(t4,[tW]),t7=(0,M.WQ)(t3,t9),et=tQ?W(tQ,t3):null,ee=th&&et?D({active:th,collisionRect:et,droppableRects:tw,droppableContainers:tx,pointerCoordinates:t6}):null,er=K(ee,"id"),[en,ei]=(0,k.useState)(null),ea=(s=tJ?t3:(0,M.WQ)(t3,t8),l=null!=(i=null==en?void 0:en.rect)?i:null,{...s,scaleX:l&&tW?l.width/tW.width:1,scaleY:l&&tW?l.height/tW.height:1}),eo=(0,k.useRef)(null),es=(0,k.useCallback)((t,e)=>{let{sensor:r,options:n}=e;if(null==td.current)return;let i=tt.get(td.current);if(!i)return;let a=t.nativeEvent,o=new r({active:td.current,activeNode:i,event:a,options:n,context:tq,onAbort(t){if(!tt.get(t))return;let{onDragAbort:e}=ty.current,r={id:t};null==e||e(r),z({type:"onDragAbort",event:r})},onPending(t,e,r,n){if(!tt.get(t))return;let{onDragPending:i}=ty.current,a={id:t,constraint:e,initialCoordinates:r,offset:n};null==i||i(a),z({type:"onDragPending",event:a})},onStart(t){let e=td.current;if(null==e)return;let r=tt.get(e);if(!r)return;let{onDragStart:n}=ty.current,i={activatorEvent:a,active:{id:e,data:r.data,rect:tc}};(0,_.unstable_batchedUpdates)(()=>{null==n||n(i),Y(w.Initializing),F({type:d.DragStart,initialCoordinates:t,active:e}),z({type:"onDragStart",event:i}),tp(eo.current),tm(a)})},onMove(t){F({type:d.DragMove,coordinates:t})},onEnd:s(d.DragEnd),onCancel:s(d.DragCancel)});function s(t){return async function(){let{active:e,collisions:r,over:n,scrollAdjustedTranslate:i}=tq.current,o=null;if(e&&i){let{cancelDrop:s}=ty.current;o={activatorEvent:a,active:e,collisions:r,delta:i,over:n},t===d.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(t=d.DragCancel)}td.current=null,(0,_.unstable_batchedUpdates)(()=>{F({type:t}),Y(w.Uninitialized),ei(null),tp(null),tm(null),eo.current=null;let e=t===d.DragEnd?"onDragEnd":"onDragCancel";if(o){let t=ty.current[e];null==t||t(o),z({type:e,event:o})}})}}eo.current=o},[tt]),el=(0,k.useCallback)((t,e)=>(r,n)=>{let i=r.nativeEvent,a=tt.get(n);null!==td.current||!a||i.dndKit||i.defaultPrevented||!0===t(r,e.options,{active:a})&&(i.dndKit={capturedBy:e.sensor},td.current=n,es(r,e))},[tt,es]),eu=(0,k.useMemo)(()=>L.reduce((t,e)=>{let{sensor:r}=e;return[...t,...r.activators.map(t=>({eventName:t.eventName,handler:el(t.handler,e)}))]},[]),[L,el]);(0,k.useEffect)(()=>{if(!M.Sw)return;let t=L.map(t=>{let{sensor:e}=t;return null==e.setup?void 0:e.setup()});return()=>{for(let e of t)null==e||e()}},L.map(t=>{let{sensor:e}=t;return e})),(0,M.Es)(()=>{tW&&U===w.Initializing&&Y(w.Initialized)},[tW,U]),(0,k.useEffect)(()=>{let{onDragMove:t}=ty.current,{active:e,activatorEvent:r,collisions:n,over:i}=tq.current;if(!e||!r)return;let a={active:e,activatorEvent:r,collisions:n,delta:{x:t7.x,y:t7.y},over:i};(0,_.unstable_batchedUpdates)(()=>{null==t||t(a),z({type:"onDragMove",event:a})})},[t7.x,t7.y]),(0,k.useEffect)(()=>{let{active:t,activatorEvent:e,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=tq.current;if(!t||null==td.current||!e||!i)return;let{onDragOver:a}=ty.current,o=n.get(er),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:t,activatorEvent:e,collisions:r,delta:{x:i.x,y:i.y},over:s};(0,_.unstable_batchedUpdates)(()=>{ei(s),null==a||a(l),z({type:"onDragOver",event:l})})},[er]),(0,M.Es)(()=>{tq.current={activatorEvent:tg,active:th,activeNode:tE,collisionRect:et,collisions:ee,droppableRects:tw,draggableNodes:tt,draggingNode:tZ,draggingNodeRect:tQ,droppableContainers:tl,over:en,scrollableAncestors:t2,scrollAdjustedTranslate:t7},tc.current={initial:tQ,translated:et}},[th,tE,ee,et,tt,tZ,tQ,tw,tl,en,t2,t7]),function(t){let{acceleration:e,activator:r=y.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=v.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:h,threshold:d}=t,p=function(t){let{delta:e,disabled:r}=t,n=(0,M.ZC)(e);return(0,M.KG)(t=>{if(r||!n||!t)return tM;let i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[f.Backward]:t.x[f.Backward]||-1===i.x,[f.Forward]:t.x[f.Forward]||1===i.x},y:{[f.Backward]:t.y[f.Backward]||-1===i.y,[f.Forward]:t.y[f.Forward]||1===i.y}}},[r,e,n])}({delta:h,disabled:!a}),[g,m]=(0,M.$$)(),x=(0,k.useRef)({x:0,y:0}),b=(0,k.useRef)({x:0,y:0}),w=(0,k.useMemo)(()=>{switch(r){case y.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case y.DraggableRect:return i}},[r,i,l]),_=(0,k.useRef)(null),S=(0,k.useCallback)(()=>{let t=_.current;if(!t)return;let e=x.current.x*b.current.x,r=x.current.y*b.current.y;t.scrollBy(e,r)},[]),A=(0,k.useMemo)(()=>s===v.TreeOrder?[...u].reverse():u,[s,u]);(0,k.useEffect)(()=>{if(!a||!u.length||!w)return void m();for(let t of A){if((null==n?void 0:n(t))===!1)continue;let r=c[u.indexOf(t)];if(!r)continue;let{direction:i,speed:a}=function(t,e,r,n,i){let{top:a,left:o,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===i&&(i=ti);let{isTop:u,isBottom:c,isLeft:h,isRight:d}=tn(t),p={x:0,y:0},g={x:0,y:0},m={height:e.height*i.y,width:e.width*i.x};return!u&&a<=e.top+m.height?(p.y=f.Backward,g.y=n*Math.abs((e.top+m.height-a)/m.height)):!c&&l>=e.bottom-m.height&&(p.y=f.Forward,g.y=n*Math.abs((e.bottom-m.height-l)/m.height)),!d&&s>=e.right-m.width?(p.x=f.Forward,g.x=n*Math.abs((e.right-m.width-s)/m.width)):!h&&o<=e.left+m.width&&(p.x=f.Backward,g.x=n*Math.abs((e.left+m.width-o)/m.width)),{direction:p,speed:g}}(t,r,w,e,d);for(let t of["x","y"])p[t][i[t]]||(a[t]=0,i[t]=0);if(a.x>0||a.y>0){m(),_.current=t,g(S,o),x.current=a,b.current=i;return}}x.current={x:0,y:0},b.current={x:0,y:0},m()},[e,S,n,m,a,o,JSON.stringify(w),JSON.stringify(p),g,u,A,c,JSON.stringify(d)])}({...tN,delta:to,draggingRect:et,pointerCoordinates:t6,scrollableAncestors:t2,scrollableAncestorRects:t5});let ec=(0,k.useMemo)(()=>({active:th,activeNode:tE,activeNodeRect:tW,activatorEvent:tg,collisions:ee,containerNodeRect:tY,dragOverlay:tG,draggableNodes:tt,droppableContainers:tl,droppableRects:tw,over:en,measureDroppableContainers:tk,scrollableAncestors:t2,scrollableAncestorRects:t5,measuringConfiguration:tb,measuringScheduled:t_,windowRect:t1}),[th,tE,tW,tg,ee,tY,tG,tt,tl,tw,en,tk,t2,t5,tb,t_,t1]),eh=(0,k.useMemo)(()=>({activatorEvent:tg,activators:eu,active:th,activeNodeRect:tW,ariaDescribedById:{draggable:tv},dispatch:F,draggableNodes:tt,over:en,measureDroppableContainers:tk}),[tg,eu,th,tW,F,tv,tt,en,tk]);return k.createElement(E.Provider,{value:B},k.createElement(tK.Provider,{value:eh},k.createElement(tz.Provider,{value:ec},k.createElement(tH.Provider,{value:ea},R)),k.createElement(tV,{disabled:(null==T?void 0:T.restoreFocus)===!1})),k.createElement(P,{...T,hiddenTextDescribedById:tv}))}),tY=(0,k.createContext)(null),tq="button";function tX(t){let{id:e,data:r,disabled:n=!1,attributes:i}=t,a=(0,M.YG)("Draggable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:h,over:d}=(0,k.useContext)(tK),{role:f=tq,roleDescription:p="draggable",tabIndex:g=0}=null!=i?i:{},m=(null==l?void 0:l.id)===e,y=(0,k.useContext)(m?tH:tY),[v,x]=(0,M.lk)(),[b,w]=(0,M.lk)(),_=(0,k.useMemo)(()=>o.reduce((t,r)=>{let{eventName:n,handler:i}=r;return t[n]=t=>{i(t,e)},t},{}),[o,e]),S=(0,M.YN)(r);return(0,M.Es)(()=>(h.set(e,{id:e,key:a,node:v,activatorNode:b,data:S}),()=>{let t=h.get(e);t&&t.key===a&&h.delete(e)}),[h,e]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,k.useMemo)(()=>({role:f,tabIndex:g,"aria-disabled":n,"aria-pressed":!!m&&f===tq||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[n,f,g,m,p,c.draggable]),isDragging:m,listeners:n?void 0:_,node:v,over:d,setNodeRef:x,setActivatorNodeRef:w,transform:y}}function tG(){return(0,k.useContext)(tz)}let tZ={timeout:25};function tQ(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t,a=(0,M.YG)("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,k.useContext)(tK),c=(0,k.useRef)({disabled:r}),h=(0,k.useRef)(!1),f=(0,k.useRef)(null),p=(0,k.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:y}={...tZ,...i},v=(0,M.YN)(null!=m?m:n),x=tT({callback:(0,k.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),p.current=null},y)},[y]),disabled:g||!o}),b=(0,k.useCallback)((t,e)=>{x&&(e&&(x.unobserve(e),h.current=!1),t&&x.observe(t))},[x]),[w,_]=(0,M.lk)(b),S=(0,M.YN)(e);return(0,k.useEffect)(()=>{x&&w.current&&(x.disconnect(),h.current=!1,x.observe(w.current))},[w,x]),(0,k.useEffect)(()=>(s({type:d.RegisterDroppable,element:{id:n,key:a,disabled:r,node:w,rect:f,data:S}}),()=>s({type:d.UnregisterDroppable,key:a,id:n})),[n]),(0,k.useEffect)(()=>{r!==c.current.disabled&&(s({type:d.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===n,node:w,over:l,setNodeRef:_}}},43326:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},43428:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47552),i=r(47057);let a=t=>!((t=>{let{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)})(t)>=.5)},44549:(t,e,r)=>{"use strict";r.d(e,{WY:()=>S,dn:()=>M,pC:()=>k,Gc:()=>x});var n=r(89316),i=r(47508),a=r(39410);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),u=Object.freeze({...s,...l}),c=Object.freeze({...u,body:"",hidden:!1});function h(t,e){let r,n,i=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(n=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=n),r);for(let r in c)r in l?r in t&&!(r in i)&&(i[r]=l[r]):r in e?i[r]=e[r]:r in t&&(i[r]=t[r]);return i}function d(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function o(t){a=h(n[t]||i[t],a)}return o(e),r.forEach(o),h(t,a)}let f=Object.freeze({...Object.freeze({width:null,height:null}),...l}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(p);if(null===n||!n.length)return t;let i=[],a=n.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");o=!o}}let y=/\sid="(\S+)"/g,v=new Map;var x={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},b=new Map,w=new Map,k=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)b.set(e.name,e.icons);else throw i.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),_=(0,a.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let t=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:t};return e&&!o(a)?null:a}let a=i[0],s=a.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:a};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let a=b.get(n);if(!a){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:n},b.set(n,a)}catch(t){throw i.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let n,i,a;if(t.icons[e])return d(t,e,[]);let o=(r=[e],n=t.icons,i=t.aliases||Object.create(null),a=Object.create(null),(r||Object.keys(n).concat(Object.keys(i))).forEach(function t(e){if(n[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=i[e]&&i[e].parent,n=r&&t(r);n&&(a[e]=[r].concat(n))}return a[e]}),a)[e];return o?d(t,e,o):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),M=(0,a.K)(async t=>{try{return await _(t),!0}catch{return!1}},"isIconAvailable"),S=(0,a.K)(async(t,e,r)=>{var a;let o,s,l,c,h,d,p,g,b,w,k,M,S,A;try{o=await _(t,e?.fallbackPrefix)}catch(t){i.R.error(t),o=x}let T=(a=o,c={...u,...a},h={...f,...e},d={left:c.left,top:c.top,width:c.width,height:c.height},p=c.body,[c,h].forEach(t=>{var e,r,n,i;let a,o,s=[],l=t.hFlip,u=t.vFlip,c=t.rotate;switch(l?u?c+=2:(s.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),s.push("scale(-1 1)"),d.top=d.left=0):u&&(s.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),s.push("scale(1 -1)"),d.top=d.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:s.unshift("rotate(90 "+(a=d.height/2+d.top).toString()+" "+a.toString()+")");break;case 2:s.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(a=d.width/2+d.left).toString()+" "+a.toString()+")")}c%2==1&&(d.left!==d.top&&(a=d.left,d.left=d.top,d.top=a),d.width!==d.height&&(a=d.width,d.width=d.height,d.height=a)),s.length&&(e=p,r='<g transform="'+s.join(" ")+'">',n=(o=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("</"+e);if(-1===i||-1===a)break;let o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(e)).defs,i=r+o.content+"</g>",p=n?"<defs>"+n+"</defs>"+i:i)}),g=h.width,b=h.height,w=d.width,k=d.height,null===g?s=m(l=null===b?"1em":"auto"===b?k:b,w/k):(s="auto"===g?w:g,l=null===b?m(s,k/w):"auto"===b?k:b),M={},(S=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(M[t]=e.toString())})("width",s),S("height",l),M.viewBox=(A=[d.left,d.top,w,k]).join(" "),{attributes:M,viewBox:A,body:p}),E=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{var r;let i,a=(r=(r=e).replace(/[0-9]+$/,"")||"a",i=v.get(r)||0,v.set(r,i+1),i?`${r}${i}`:r),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(T.body),{...T.attributes,...r});return(0,n.jZ)(E,(0,n.zj)())},"getIconSVG")},44980:(t,e,r)=>{"use strict";r.d(e,{p:()=>s});var n=r(69266),i=r(67089),a=r(69611),o=r(54751);let s=n.forwardRef(function(t,e){let{render:r,className:n,style:s,...l}=t,u=(0,i.b)();return(0,a.o)("span",t,{state:u,ref:e,stateAttributesMapping:o.P,props:l})})},45087:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var n=r(69266);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function a(t,e){let r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&r.every(r=>{let n=t[r],o=e[r];return"function"==typeof n?`${n}`==`${o}`:i(n)&&i(o)?a(n,o):n===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function s(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return Math.abs(t)}function d(t){return Math.sign(t)}function f(t){return y(t).map(Number)}function p(t){return t[g(t)]}function g(t){return Math.max(0,t.length-1)}function m(t,e=0){return Array.from(Array(t),(t,r)=>e+r)}function y(t){return Object.keys(t)}function v(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function x(){let t=[],e={add:function(r,n,i,a={passive:!0}){let o;return"addEventListener"in r?(r.addEventListener(n,i,a),o=()=>r.removeEventListener(n,i,a)):(r.addListener(i),o=()=>r.removeListener(i)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function b(t=0,e=0){let r=h(t-e);function n(r){return r<t||r>e}return{length:r,max:e,min:t,constrain:function(r){return n(r)?r<t?t:e:r},reachedAny:n,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return r?t-r*Math.ceil((t-e)/r):t}}}function w(t){let e=t;function r(t){return s(t)?t:t.get()}return{get:function(){return e},set:function(t){e=r(t)},add:function(t){e+=r(t)},subtract:function(t){e-=r(t)}}}function k(t,e){let r="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},n=e.style,i=null,a=!1;return{clear:function(){!a&&(n.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(a)return;let o=Math.round(100*t.direction(e))/100;o!==i&&(n.transform=r(o),i=o)},toggleActive:function(t){a=!t}}}let _={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function M(t,e,r){let n,i,a,o,S,A,T,E,C=t.ownerDocument,R=C.defaultView,P=function(t){function e(t,e){return function t(e,r){return[e,r].reduce((e,r)=>(y(r).forEach(n=>{let i=e[n],a=r[n],o=c(i)&&c(a);e[n]=o?t(i,a):a}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(r){let n=r.breakpoints||{},i=y(n).filter(e=>t.matchMedia(e).matches).map(t=>n[t]).reduce((t,r)=>e(t,r),{});return e(r,i)},optionsMediaQueries:function(e){return e.map(t=>y(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(R),L=(E=[],{init:function(t,e){return(E=e.filter(({options:t})=>!1!==P.optionsAtMedia(t).active)).forEach(e=>e.init(t,P)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){E=E.filter(t=>t.destroy())}}),D=x(),O=(i={},a={init:function(t){n=t},emit:function(t){return(i[t]||[]).forEach(e=>e(n,t)),a},off:function(t,e){return i[t]=(i[t]||[]).filter(t=>t!==e),a},on:function(t,e){return i[t]=(i[t]||[]).concat([e]),a},clear:function(){i={}}}),{mergeOptions:$,optionsAtMedia:I,optionsMediaQueries:j}=P,{on:N,off:F,emit:K}=O,z=!1,B=$(_,M.globalOptions),U=$(B),V=[];function H(e,r){z||(U=I(B=$(B,e)),V=r||V,function(){let{container:e,slides:r}=U;A=(l(e)?t.querySelector(e):e)||t.children[0];let n=l(r)?A.querySelectorAll(r):r;T=[].slice.call(n||A.children)}(),o=function e(r){let n=function(t,e,r,n,i,a,o){var c,_;let M,S,A,T,E,C,R,P,L,D,O,$,I,j,{align:N,axis:F,direction:K,startIndex:z,loop:B,duration:U,dragFree:V,dragThreshold:H,inViewThreshold:W,slidesToScroll:Y,skipSnaps:q,containScroll:X,watchResize:G,watchSlides:Z,watchDrag:Q,watchFocus:J}=a,tt={measure:function(t){let{offsetTop:e,offsetLeft:r,offsetWidth:n,offsetHeight:i}=t;return{top:e,right:r+n,bottom:e+i,left:r,width:n,height:i}}},te=tt.measure(e),tr=r.map(tt.measure),tn=(S="rtl"===K,T=(A="y"===F)||!S?1:-1,E=A?"top":S?"right":"left",C=A?"bottom":S?"left":"right",{scroll:A?"y":"x",cross:A?"x":"y",startEdge:E,endEdge:C,measureSize:function(t){let{height:e,width:r}=t;return A?e:r},direction:function(t){return t*T}}),ti=tn.measureSize(te),ta={measure:function(t){return t/100*ti}},to=(c=N,_=ti,M={start:function(){return 0},center:function(t){return(_-t)/2},end:function(t){return _-t}},{measure:function(t,e){return l(c)?M[c](t):c(_,t,e)}}),ts=!B&&!!X,{slideSizes:tl,slideSizesWithGaps:tu,startGap:tc,endGap:th}=function(t,e,r,n,i,a){let{measureSize:o,startEdge:s,endEdge:l}=t,u=r[0]&&i,c=function(){if(!u)return 0;let t=r[0];return h(e[s]-t[s])}(),d=u?parseFloat(a.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,f=r.map(o),m=r.map((t,e,r)=>{let n=e===g(r);return e?n?f[e]+d:r[e+1][s]-t[s]:f[e]+c}).map(h);return{slideSizes:f,slideSizesWithGaps:m,startGap:c,endGap:d}}(tn,te,tr,r,B||!!X,i),td=function(t,e,r,n,i,a,o,l){let{startEdge:u,endEdge:c,direction:d}=t,m=s(r);return{groupSlides:function(t){return m?f(t).filter(t=>t%r==0).map(e=>t.slice(e,e+r)):t.length?f(t).reduce((r,s,f)=>{let m=p(r)||0,y=s===g(t),v=i[u]-a[m][u],x=i[u]-a[s][c],b=n||0!==m?0:d(o),w=h(x-(!n&&y?d(l):0)-(v+b));return f&&w>e+2&&r.push(s),y&&r.push(t.length),r},[]).map((e,r,n)=>{let i=Math.max(n[r-1]||0);return t.slice(i,e)}):[]}}}(tn,ti,Y,B,te,tr,tc,th),{snaps:tf,snapsAligned:tp}=function(t,e,r,n,i){let{startEdge:a,endEdge:o}=t,{groupSlides:s}=i,l=s(n).map(t=>p(t)[o]-t[0][a]).map(h).map(e.measure),u=n.map(t=>r[a]-t[a]).map(t=>-h(t)),c=s(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:c}}(tn,to,te,tr,td),tg=-p(tf)+p(tu),{snapsContained:tm,scrollContainLimit:ty}=function(t,e,r,n){let i,a,o=b(-e+t,0),s=r.map((t,e)=>{let{min:n,max:i}=o,a=o.constrain(t),s=e===g(r);return e?s||function(t,e){return 1>=h(t-e)}(n,a)?n:function(t,e){return 1>=h(t-e)}(i,a)?i:a:i}).map(t=>parseFloat(t.toFixed(3))),l=(i=s[0],a=p(s),b(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===n)return s;let{min:r,max:i}=l;return s.slice(r,i)}(),scrollContainLimit:l}}(ti,tg,tp,X),tv=ts?tm:tp,{limit:tx}=(R=tv[0],{limit:b(B?R-tg:p(tv),R)}),tb=function t(e,r,n){let{constrain:i}=b(0,e),a=e+1,o=s(r);function s(t){return n?h((a+t)%a):i(t)}function l(){return t(e,o,n)}let u={get:function(){return o},set:function(t){return o=s(t),u},add:function(t){return l().set(o+t)},clone:l};return u}(g(tv),z,B),tw=tb.clone(),tk=f(r),t_=function(t,e,r,n){let i=x(),a=1e3/60,o=null,s=0,l=0;function u(t){if(!l)return;o||(o=t,r(),r());let i=t-o;for(o=t,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=e.requestAnimationFrame(u))}function c(){e.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,()=>(({dragHandler:t,scrollBody:e,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(t.pointerDown()),e.seek()})(tj),t=>(({scrollBody:t,translate:e,location:r,offsetLocation:n,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:h}},d)=>{let f=t.settled(),p=!c.shouldConstrain(),g=h?f:f&&p,m=g&&!s.pointerDown();m&&l.stop();let y=r.get()*d+i.get()*(1-d);n.set(y),h&&(a.loop(t.direction()),o.loop()),e.to(n.get()),m&&u.emit("settle"),g||u.emit("scroll")})(tj,t)),tM=tv[tb.get()],tS=w(tM),tA=w(tM),tT=w(tM),tE=w(tM),tC=function(t,e,r,n,i){let a=0,o=0,s=i,l=.68,u=t.get(),c=0;function f(t){return s=t,g}function p(t){return l=t,g}let g={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){let e=n.get()-t.get(),i=0;return s?(r.set(t),a+=e/s,a*=l,u+=a,t.add(a),i=u-c):(a=0,r.set(n),t.set(n),i=e),o=d(i),c=u,g},settled:function(){return .001>h(n.get()-e.get())},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return f(i)},useFriction:p,useDuration:f};return g}(tS,tT,tA,tE,U),tR=function(t,e,r,n,i){let{reachedAny:a,removeOffset:o,constrain:s}=n;function l(t){return t.concat().sort((t,e)=>h(t)-h(e))[0]}function u(e,n){let i=[e,e+r,e-r];if(!t)return e;if(!n)return l(i);let a=i.filter(t=>d(t)===n);return a.length?l(a):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:d}=function(r){let n=t?o(r):s(r),{index:i}=e.map((t,e)=>({diff:u(t-n,0),index:e})).sort((t,e)=>h(t.diff)-h(e.diff))[0];return{index:i,distance:n}}(l),f=!t&&a(l);if(!n||f)return{index:c,distance:r};let p=r+u(e[c]-d,0);return{index:c,distance:p}},byIndex:function(t,r){let n=u(e[t]-i.get(),r);return{index:t,distance:n}},shortcut:u}}(B,tv,tg,tx,tE),tP=function(t,e,r,n,i,a,o){function s(i){let s=i.distance,l=i.index!==e.get();a.add(s),s&&(n.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(r.set(e.get()),e.set(i.index),o.emit("select"))}return{distance:function(t,e){s(i.byDistance(t,e))},index:function(t,r){let n=e.clone().set(t);s(i.byIndex(n.get(),r))}}}(t_,tb,tw,tC,tR,tE,o),tL=function(t){let{max:e,length:r}=t;return{get:function(t){return r?-((t-e)/r):0}}}(tx),tD=x(),tO=(L={},D=null,O=null,$=!1,{init:function(){P=new IntersectionObserver(t=>{$||(t.forEach(t=>{L[r.indexOf(t.target)]=t}),D=null,O=null,o.emit("slidesInView"))},{root:e.parentElement,threshold:W}),r.forEach(t=>P.observe(t))},destroy:function(){P&&P.disconnect(),$=!0},get:function(t=!0){if(t&&D)return D;if(!t&&O)return O;let e=y(L).reduce((e,r)=>{let n=parseInt(r),{isIntersecting:i}=L[n];return(t&&i||!t&&!i)&&e.push(n),e},[]);return t&&(D=e),t||(O=e),e}}),{slideRegistry:t$}=function(t,e,r,n,i,a){let o,{groupSlides:s}=i,{min:l,max:u}=n;return{slideRegistry:(o=s(a),1===r.length?[a]:t&&"keepSnaps"!==e?o.slice(l,u).map((t,e,r)=>{let n=e===g(r);return e?n?m(g(a)-p(r)[0]+1,p(r)[0]):t:m(p(r[0])+1)}):o)}}(ts,X,tv,ty,td,tk),tI=function(t,e,r,n,i,a,o,l){let c={passive:!0,capture:!0},h=0;function d(t){"Tab"===t.code&&(h=new Date().getTime())}return{init:function(f){l&&(a.add(document,"keydown",d,!1),e.forEach((e,d)=>{a.add(e,"focus",e=>{(u(l)||l(f,e))&&function(e){if(new Date().getTime()-h>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let a=r.findIndex(t=>t.includes(e));s(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}(d)},c)}))}}}(t,r,t$,tP,tC,tD,o,J),tj={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:te,slideRects:tr,animation:t_,axis:tn,dragHandler:function(t,e,r,n,i,a,o,s,l,c,f,p,g,m,y,w,k,_){let{cross:M,direction:S}=t,A=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=x(),C=x(),R=b(50,225).constrain(m.measure(20)),P={mouse:300,touch:400},L={mouse:500,touch:600},D=y?43:25,O=!1,$=0,I=0,j=!1,N=!1,F=!1,K=!1;function z(t){if(!v(t,n)&&t.touches.length>=2)return B(t);let e=a.readPoint(t),r=a.readPoint(t,M),o=h(e-$),l=h(r-I);if(!N&&!K&&(!t.cancelable||!(N=o>l)))return B(t);let u=a.pointerMove(t);o>w&&(F=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(S(u)),t.preventDefault()}function B(t){var e;let r,n,i=f.byDistance(0,!1).index!==p.get(),o=a.pointerUp(t)*(y?L:P)[K?"mouse":"touch"],s=(e=S(o),r=p.add(-1*d(e)),n=f.byDistance(e,!y).distance,y||h(e)<R?n:k&&i?.5*n:f.byIndex(r.get(),0).distance),u=function(t,e){var r,n;if(0===t||0===e||h(t)<=h(e))return 0;let i=(r=h(t),n=h(e),h(r-n));return h(i/t)}(o,s);N=!1,j=!1,C.clear(),c.useDuration(D-10*u).useFriction(.68+u/50),l.distance(s,!y),K=!1,g.emit("pointerUp")}function U(t){F&&(t.stopPropagation(),t.preventDefault(),F=!1)}return{init:function(t){_&&E.add(e,"dragstart",t=>t.preventDefault(),T).add(e,"touchmove",()=>void 0,T).add(e,"touchend",()=>void 0).add(e,"touchstart",s).add(e,"mousedown",s).add(e,"touchcancel",B).add(e,"contextmenu",B).add(e,"click",U,!0);function s(s){(u(_)||_(t,s))&&function(t){let s,l=v(t,n);if((K=l,F=y&&l&&!t.buttons&&O,O=h(i.get()-o.get())>=2,!l||0===t.button)&&(s=t.target.nodeName||"",!A.includes(s))){let n;j=!0,a.pointerDown(t),c.useFriction(0).useDuration(0),i.set(o),n=K?r:e,C.add(n,"touchmove",z,T).add(n,"touchend",B).add(n,"mousemove",z,T).add(n,"mouseup",B),$=a.readPoint(t),I=a.readPoint(t,M),g.emit("pointerDown")}}(s)}},destroy:function(){E.clear(),C.clear()},pointerDown:function(){return j}}}(tn,t,n,i,tE,function(t,e){let r,n;function i(t){return t.timeStamp}function a(r,n){let i=n||t.scroll,a=`client${"x"===i?"X":"Y"}`;return(v(r,e)?r:r.touches[0])[a]}return{pointerDown:function(t){return r=t,n=t,a(t)},pointerMove:function(t){let e=a(t)-a(n),o=i(t)-i(r)>170;return n=t,o&&(r=t),e},pointerUp:function(t){if(!r||!n)return 0;let e=a(n)-a(r),o=i(t)-i(r),s=i(t)-i(n)>170,l=e/o;return o&&!s&&h(l)>.1?l:0},readPoint:a}}(tn,i),tS,t_,tP,tC,tR,tb,o,ta,V,H,q,Q),eventStore:tD,percentOfView:ta,index:tb,indexPrevious:tw,limit:tx,location:tS,offsetLocation:tT,previousLocation:tA,options:a,resizeHandler:function(t,e,r,n,i,a,o){let s,l,c=[t].concat(n),d=[],f=!1;function p(t){return i.measureSize(o.measure(t))}return{init:function(i){a&&(l=p(t),d=n.map(p),s=new ResizeObserver(r=>{(u(a)||a(i,r))&&function(r){for(let a of r){if(f)return;let r=a.target===t,o=n.indexOf(a.target),s=r?l:d[o];if(h(p(r?t:n[o])-s)>=.5){i.reInit(),e.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{c.forEach(t=>s.observe(t))}))},destroy:function(){f=!0,s&&s.disconnect()}}}(e,o,i,r,tn,G,tt),scrollBody:tC,scrollBounds:function(t,e,r,n,i){let a=i.measure(10),o=i.measure(50),s=b(.1,.99),l=!1;function u(){return!l&&!!t.reachedAny(r.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",c=h(t[l]-e.get()),d=r.get()-e.get(),f=s.constrain(c/o);r.subtract(d*f),!i&&h(d)<a&&(r.set(t.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}(tx,tT,tE,tC,ta),scrollLooper:function(t,e,r,n){let{reachedMin:i,reachedMax:a}=b(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?a(r.get()):-1===e&&i(r.get())))return;let o=-1*e*t;n.forEach(t=>t.add(o))}}}(tg,tx,tT,[tS,tT,tA,tE]),scrollProgress:tL,scrollSnapList:tv.map(tL.get),scrollSnaps:tv,scrollTarget:tR,scrollTo:tP,slideLooper:function(t,e,r,n,i,a,o,s,l){let u=f(i),c=f(i).reverse(),h=g(p(c,o[0]),r,!1).concat(g(p(u,e-o[0]-1),-r,!0));function d(t,e){return t.reduce((t,e)=>t-i[e],e)}function p(t,e){return t.reduce((t,r)=>d(t,e)>0?t.concat([r]):t,[])}function g(i,o,u){let c=a.map((t,r)=>({start:t-n[r]+.5+o,end:t+e-.5+o}));return i.map(e=>{let n=u?0:-r,i=u?r:0,a=c[e][u?"end":"start"];return{index:e,loopPoint:a,slideLocation:w(-1),translate:k(t,l[e]),target:()=>s.get()>a?n:i}})}return{canLoop:function(){return h.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){h.forEach(t=>t.translate.clear())},loop:function(){h.forEach(t=>{let{target:e,translate:r,slideLocation:n}=t,i=e();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:h}}(tn,ti,tg,tl,tu,tf,tv,tT,r),slideFocus:tI,slidesHandler:(j=!1,{init:function(t){Z&&(I=new MutationObserver(e=>{!j&&(u(Z)||Z(t,e))&&function(e){for(let r of e)if("childList"===r.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){I&&I.disconnect(),j=!0}}),slidesInView:tO,slideIndexes:tk,slideRegistry:t$,slidesToScroll:td,target:tE,translate:k(tn,e)};return tj}(t,A,T,C,R,r,O);return r.loop&&!n.slideLooper.canLoop()?e(Object.assign({},r,{loop:!1})):n}(U),j([B,...V.map(({options:t})=>t)]).forEach(t=>D.add(t,"change",W)),U.active&&(o.translate.to(o.location.get()),o.animation.init(),o.slidesInView.init(),o.slideFocus.init(G),o.eventHandler.init(G),o.resizeHandler.init(G),o.slidesHandler.init(G),o.options.loop&&o.slideLooper.loop(),A.offsetParent&&T.length&&o.dragHandler.init(G),S=L.init(G,V)))}function W(t,e){let r=X();Y(),H($({startIndex:r},t),e),O.emit("reInit")}function Y(){o.dragHandler.destroy(),o.eventStore.clear(),o.translate.clear(),o.slideLooper.clear(),o.resizeHandler.destroy(),o.slidesHandler.destroy(),o.slidesInView.destroy(),o.animation.destroy(),L.destroy(),D.clear()}function q(t,e,r){U.active&&!z&&(o.scrollBody.useBaseFriction().useDuration(!0===e?0:U.duration),o.scrollTo.index(t,r||0))}function X(){return o.index.get()}let G={canScrollNext:function(){return o.index.add(1).get()!==X()},canScrollPrev:function(){return o.index.add(-1).get()!==X()},containerNode:function(){return A},internalEngine:function(){return o},destroy:function(){z||(z=!0,D.clear(),Y(),O.emit("destroy"),O.clear())},off:F,on:N,emit:K,plugins:function(){return S},previousScrollSnap:function(){return o.indexPrevious.get()},reInit:W,rootNode:function(){return t},scrollNext:function(t){q(o.index.add(1).get(),t,-1)},scrollPrev:function(t){q(o.index.add(-1).get(),t,1)},scrollProgress:function(){return o.scrollProgress.get(o.offsetLocation.get())},scrollSnapList:function(){return o.scrollSnapList},scrollTo:q,selectedScrollSnap:X,slideNodes:function(){return T},slidesInView:function(){return o.slidesInView.get()},slidesNotInView:function(){return o.slidesInView.get(!1)}};return H(e,r),setTimeout(()=>O.emit("init"),0),G}function S(t={},e=[]){let r=(0,n.useRef)(t),i=(0,n.useRef)(e),[s,l]=(0,n.useState)(),[u,c]=(0,n.useState)(),h=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{a(r.current,t)||(r.current=t,h())},[t,h]),(0,n.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let r=o(t),n=o(e);return r.every((t,e)=>a(t,n[e]))}(i.current,e)&&(i.current=e,h())},[e,h]),(0,n.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&u){M.globalOptions=S.globalOptions;let t=M(u,r.current,i.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[c,s]}M.globalOptions=void 0,S.globalOptions=void 0},45811:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},47057:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(12318),i=r(62623);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,u=l?1:17,c=l?8:4,h=s?0:-1,d=l?255:15;return n.A.set({r:(i>>c*(h+3)&d)*u,g:(i>>c*(h+2)&d)*u,b:(i>>c*(h+1)&d)*u,a:s?(i&d)*u/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}};var o=r(47552);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,i,a,l,u,c]=r;return n.A.set({h:s._hue2deg(i),s:o.A.channel.clamp.s(parseFloat(a)),l:o.A.channel.clamp.l(parseFloat(l)),a:u?o.A.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${i})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(u.re);if(!r)return;let[,i,a,s,l,c,h,d,f]=r;return n.A.set({r:o.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(c):parseFloat(c)),a:d?o.A.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(i)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},c={format:{keyword:l,hex:a,rgb:u,rgba:u,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||u.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):u.stringify(t)}},47150:(t,e,r)=>{"use strict";r.d(e,{r:()=>s});var n=r(69266),i=r(69611),a=r(25905),o=r(7962);let s=n.forwardRef(function(t,e){let{render:r,className:s,style:l,...u}=t,[c,h]=n.useState(void 0),d=(0,i.o)("div",t,{ref:e,props:{role:"group","aria-labelledby":c,...u}});return(0,o.jsx)(a.c.Provider,{value:h,children:d})})},47252:(t,e,r)=>{"use strict";r.d(e,{p:()=>u});var n=r(69266),i=r(56906),a=r(69611),o=r(39341),s=r(47623),l=r(43745);let u=n.forwardRef(function(t,e){let{render:r,className:u,style:c,keepMounted:h=!1,...d}=t,f=(0,i.w)(),p=n.useRef(null),{transitionStatus:g,mounted:m,setMounted:y}=(0,s.$)(f.checked);(0,l.v)({open:f.checked,ref:p,onComplete(){f.checked||y(!1)}});let v={checked:f.checked,disabled:f.disabled,highlighted:f.highlighted,transitionStatus:g};return(0,a.o)("span",t,{state:v,stateAttributesMapping:o.a,ref:[e,p],props:{"aria-hidden":!0,...d},enabled:h||m})})},47508:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(39410),i=r(12437),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},47552:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},47744:(t,e,r)=>{"use strict";r.d(e,{j:()=>k});var n=r(69266),i=r(53949),a=r(66758),o=r(36158),s=r(52333),l=r(12566),u=r(53402),c=r(27944),h=r(44596),d=r(15494),f=r(14738),p=r(63962),g=r(5733),m=r(8675);let y={...d.ol,instantType:t=>t.instantType,adaptiveOrigin:t=>t.adaptiveOrigin,closeDelay:t=>t.closeDelay};class v extends h.H{constructor(t,e,r){const i=new f.Z;super(function(t,e,r,n=!1){let i={...(0,d.rJ)(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:m.V,...t};return i.floatingRootContext=(0,d.OB)(e,r,n),i}(t,i,e,r),function(t){return{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t,inlineRectCoordsRef:{current:void 0}}}(i),y)}setOpen=(t,e)=>{let{inlineRectCoordsRef:r}=this.context;(0,p.DU)(this,t,e,{onBeforeDispatch(){let n=e.event;t&&e.reason===c.N7&&e.trigger&&"clientX"in n&&"clientY"in n&&r.current?.element!==e.trigger&&(0,g.hI)(r,e.trigger,n.clientX,n.clientY)}})}}var x=r(7962);function b(t){let{open:e,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:o,actionsRef:s,handle:h,triggerId:d,defaultTriggerId:f=null,children:g}=t,m=(0,p.xp)((t,n)=>new v({open:r,openProp:e,activeTriggerId:f,triggerIdProp:d},t,n));m.useControlledProp("openProp",e),m.useControlledProp("triggerIdProp",d),m.useContextCallback("onOpenChange",i),m.useContextCallback("onOpenChangeComplete",o);let y=m.useState("open"),b=m.useState("activeTriggerId"),k=m.useState("mounted"),_=m.useState("payload");(0,p.tr)(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:M}=(0,p.l$)(y,m,()=>{m.context.inlineRectCoordsRef.current=void 0});(0,a.g)(()=>{y&&null==b&&m.set("payload",void 0)},[m,b,y]),n.useImperativeHandle(s,()=>({unmount:M,close:()=>m.setOpen(!1,(0,u.d)(c.zJ))}),[M,m]);let S=y||k;return(0,x.jsxs)(l.O.Provider,{value:m,children:[h&&(0,x.jsx)(p.Ae,{handle:h,store:m}),S&&(0,x.jsx)(w,{store:m}),"function"==typeof g?g({payload:_}):g]})}function w({store:t}){let e=t.useState("floatingRootContext"),r=(0,o.s)(e);return(0,p.i6)(t,{activeTriggerProps:r.reference,inactiveTriggerProps:r.trigger,popupProps:r.floating}),null}let k=(0,i.G1)(function(t){return(0,l.r)(!0)?(0,x.jsx)(b,{...t}):(0,x.jsx)(s.P6,{children:(0,x.jsx)(b,{...t})})})},48318:(t,e,r)=>{"use strict";r.d(e,{D:()=>N});var n=r(56227),i=r(24987);function a(t,e){let r=function(t,e){switch(t.nodeType){case 1:return function(t,e){let r=t.namespaceURI,a=r===i.t.svg?n.s:n.h,s=r===i.t.html?t.tagName.toLowerCase():t.tagName,l=r===i.t.html&&"template"===s?t.content:t,u=t.getAttributeNames(),c={},h=-1;for(;++h<u.length;)c[u[h]]=t.getAttribute(u[h])||"";return a(s,c,o(l,e))}(t,e);case 3:return{type:"text",value:t.nodeValue||""};case 8:return{type:"comment",value:t.nodeValue||""};case 9:case 11:return function(t,e){return{type:"root",children:o(t,e)}}(t,e);case 10:return{type:"doctype"};default:return}}(t,e);return r&&e.afterTransform&&e.afterTransform(t,r),r}function o(t,e){let r=t.childNodes,n=[],i=-1;for(;++i<r.length;){let t=a(r[i],e);void 0!==t&&n.push(t)}return n}let s=new DOMParser;var l=r(64587);let u=function(t,e,r){let n=(0,l.C)(r);if(!t||!t.type||!t.children)throw Error("Expected parent node");if("number"==typeof e){if(e<0||e===1/0)throw Error("Expected positive finite number as index")}else if((e=t.children.indexOf(e))<0)throw Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]},c=function(t){if(null==t)return d;if("string"==typeof t){var e;return e=t,h(function(t){return t.tagName===e})}if("object"==typeof t){var r=t;let e=[],n=-1;for(;++n<r.length;)e[n]=c(r[n]);return h(function(...t){let r=-1;for(;++r<e.length;)if(e[r].apply(this,t))return!0;return!1})}if("function"==typeof t)return h(t);throw Error("Expected function, string, or array as `test`")};function h(t){return function(e,r,n){var i;return!!(null!==(i=e)&&"object"==typeof i&&"type"in i&&"tagName"in i&&t.call(this,e,"number"==typeof r?r:void 0,n||void 0))}}function d(t){return!!(t&&"object"==typeof t&&"type"in t&&"element"===t.type&&"tagName"in t&&"string"==typeof t.tagName)}let f=/\n/g,p=/[\t ]+/g,g=c("br"),m=c(function(t){return"td"===t.tagName||"th"===t.tagName}),y=c("p"),v=c("tr"),x=c(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(t){return!!(t.properties||{}).hidden},function(t){return"dialog"===t.tagName&&!(t.properties||{}).open}]),b=c(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function w(t,e){let r,n=String(t.value),i=[],a=[],o=0;for(;o<=n.length;){f.lastIndex=o;let t=f.exec(n),r=t&&"index"in t?t.index:n.length;i.push(function(t,e,r){let n,i=[],a=0;for(;a<t.length;){p.lastIndex=a;let r=p.exec(t);n=r?r.index:t.length,a||n||!r||e||i.push(""),a!==n&&i.push(t.slice(a,n)),a=r?n+r[0].length:n}return a===n||r||i.push(""),i.join(" ")}(n.slice(o,r).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||e.breakBefore,r!==n.length||e.breakAfter)),o=r+1}let s=-1;for(;++s<i.length;)8203===i[s].charCodeAt(i[s].length-1)||s<i.length-1&&8203===i[s+1].charCodeAt(0)?(a.push(i[s]),r=void 0):i[s]?("number"==typeof r&&a.push(r),a.push(i[s]),r=0):(0===s||s===i.length-1)&&a.push(0);return a}function k(t,e){if("element"===t.type){let r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}var _=r(17971),M=r(72034);let S={},A=[];function T(t){let e=t||S;return function(t,r){(0,M.VG)(t,"element",function(t,n){var i,o,l;let c,h,d=Array.isArray(t.properties.className)?t.properties.className:A,f=d.includes("language-math"),p=d.includes("math-display"),S=d.includes("math-inline"),T=p;if(!f&&!p&&!S)return;let E=n[n.length-1],C=t;if("code"===t.tagName&&f&&E&&"element"===E.type&&"pre"===E.tagName&&(C=E,E=n[n.length-2],T=!0),!E)return;let R=function(t,e){let r,n="children"in t?t.children:[],i=b(t),a=k(t,{whitespace:(e||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];("text"===t.type||"comment"===t.type)&&o.push(...w(t,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<n.length;)o.push(...function t(e,r,n){return"element"===e.type?function(e,r,n){let i,a,o=k(e,n),s=e.children||[],l=-1,c=[];if(x(e))return c;for(g(e)||v(e)&&u(r,e,v)?a="\n":y(e)?(i=2,a=2):b(e)&&(i=1,a=1);++l<s.length;)c=c.concat(t(s[l],e,{whitespace:o,breakBefore:l?void 0:i,breakAfter:l<s.length-1?g(s[l+1]):a}));return m(e)&&u(r,e,m)&&c.push(" "),i&&c.unshift(i),a&&c.push(a),c}(e,r,n):"text"===e.type?"normal"===n.whitespace?w(e,n):[String(e.value)]:[]}(n[s],t,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<n.length-1?g(n[s+1]):i}));let l=[];for(s=-1;++s<o.length;){let t=o[s];"number"==typeof t?void 0!==r&&t>r&&(r=t):t&&(void 0!==r&&r>-1&&l.push("\n".repeat(r)||" "),r=-1,l.push(t))}return l.join("")}(C,{whitespace:"pre"});try{h=_.default.renderToString(R,{...e,displayMode:T,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,t],cause:a,place:t.position,ruleId:i,source:"rehype-katex"});try{h=_.default.renderToString(R,{...e,displayMode:T,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:R}]}]}}"string"==typeof h&&(h=(i=h,o={fragment:!0},a(o?.fragment?(l=i,(c=document.createElement("template")).innerHTML=l,c.content):s.parseFromString(i,"text/html"),{})||{type:"root",children:[]}).children);let P=E.children.indexOf(C);return E.children.splice(P,1,...h),M._Z})}}var E=r(94703),C=r(13332),R=r(66623),P=r(1052);let L={tokenize:function(t,e,r){let n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(e){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),function e(n){return 36===n?(t.consume(n),o++,e):o<2?r(n):(t.exit("mathFlowFenceSequence"),(0,R.N)(t,s,"whitespace")(n))}(e)};function s(e){return null===e||(0,P.HP)(e)?l(e):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),function e(n){return null===n||(0,P.HP)(n)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),l(n)):36===n?r(n):(t.consume(n),e)}(e))}function l(r){return(t.exit("mathFlowFence"),n.interrupt)?e(r):t.attempt(D,u,d)(r)}function u(e){return t.attempt({tokenize:f,partial:!0},d,c)(e)}function c(e){return(a?(0,R.N)(t,h,"linePrefix",a+1):h)(e)}function h(e){return null===e?d(e):(0,P.HP)(e)?t.attempt(D,u,d)(e):(t.enter("mathFlowValue"),function e(r){return null===r||(0,P.HP)(r)?(t.exit("mathFlowValue"),h(r)):(t.consume(r),e)}(e))}function d(r){return t.exit("mathFlow"),e(r)}function f(t,e,r){let i=0;return(0,R.N)(t,function(e){return t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),function e(n){return 36===n?(i++,t.consume(n),e):i<o?r(n):(t.exit("mathFlowFenceSequence"),(0,R.N)(t,a,"whitespace")(n))}(e)},"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(n){return null===n||(0,P.HP)(n)?(t.exit("mathFlowFence"),e(n)):r(n)}}},concrete:!0,name:"mathFlow"},D={tokenize:function(t,e,r){let n=this;return function(r){return null===r?e(r):(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),i)};function i(t){return n.parser.lazy[n.now().line]?r(t):e(t)}},partial:!0};function O(t){let e,r,n=t.length-4,i=3;if(("lineEnding"===t[3][1].type||"space"===t[i][1].type)&&("lineEnding"===t[n][1].type||"space"===t[n][1].type)){for(e=i;++e<n;)if("mathTextData"===t[e][1].type){t[n][1].type="mathTextPadding",t[i][1].type="mathTextPadding",i+=2,n-=2;break}}for(e=i-1,n++;++e<=n;)void 0===r?e!==n&&"lineEnding"!==t[e][1].type&&(r=e):(e===n||"lineEnding"===t[e][1].type)&&(t[r][1].type="mathTextData",e!==r+2&&(t[r][1].end=t[e-1][1].end,t.splice(r+2,e-r-2),n-=e-r-2,e=r+2),r=void 0);return t}function $(t){return 36!==t||"characterEscape"===this.events[this.events.length-1][1].type}let I={};function j(t){let e,r=t||I,n=this.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push({flow:{36:L},text:{36:(null==(e=(r||{}).singleDollarTextMath)&&(e=!0),{tokenize:function(t,r,n){let i,a,o=0;return function(r){return t.enter("mathText"),t.enter("mathTextSequence"),function r(i){return 36===i?(t.consume(i),o++,r):o<2&&!e?n(i):(t.exit("mathTextSequence"),s(i))}(r)};function s(e){return null===e?n(e):36===e?(a=t.enter("mathTextSequence"),i=0,function e(n){return 36===n?(t.consume(n),i++,e):i===o?(t.exit("mathTextSequence"),t.exit("mathText"),r(n)):(a.type="mathTextData",l(n))}(e)):32===e?(t.enter("space"),t.consume(e),t.exit("space"),s):(0,P.HP)(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),s):(t.enter("mathTextData"),l(e))}function l(e){return null===e||32===e||36===e||(0,P.HP)(e)?(t.exit("mathTextData"),s(e)):(t.consume(e),l)}},resolve:O,previous:$,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(t){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},t)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(t){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},t),this.buffer()}},exit:{mathFlow:function(t){let e=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r=this.stack[this.stack.length-1];(0,E.ok)("math"===r.type),this.exit(t),r.value=e;let n=r.data.hChildren[0];(0,E.ok)("element"===n.type),(0,E.ok)("code"===n.tagName),n.children.push({type:"text",value:e}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let t=this.resume(),e=this.stack[this.stack.length-1];(0,E.ok)("math"===e.type),e.meta=t},mathFlowValue:t,mathText:function(t){let e=this.resume(),r=this.stack[this.stack.length-1];(0,E.ok)("inlineMath"===r.type),this.exit(t),r.value=e,r.data.hChildren.push({type:"text",value:e})},mathTextData:t}};function t(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}}()),o.push(function(t){let e=(t||{}).singleDollarTextMath;return null==e&&(e=!0),r.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(t,e,r,n){let i=t.value||"",a=r.createTracker(n),o="$".repeat(Math.max((0,C.D)(i,"$")+1,2)),s=r.enter("mathFlow"),l=a.move(o);if(t.meta){let e=r.enter("mathFlowMeta");l+=a.move(r.safe(t.meta,{after:"\n",before:l,encode:["$"],...a.current()})),e()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:r}};function r(t,r,n){let i=t.value||"",a=1;for(!e&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<n.unsafe.length;){let t,e=n.unsafe[s];if(!e.atBreak)continue;let r=n.compilePattern(e);for(;t=r.exec(i);){let e=t.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(t.index+1)}}return o+i+o}}(r))}var N=function(t={}){var e,r;return{name:"katex",type:"math",remarkPlugin:[j,{singleDollarTextMath:null!=(e=t.singleDollarTextMath)&&e}],rehypePlugin:[T,{errorColor:null!=(r=t.errorColor)?r:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},48495:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>c,GX:()=>u,KX:()=>l,WW:()=>o,ue:()=>a});var n=r(89316),i=r(39410),a=(0,i.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,i.K)(t=>{let e=s([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),s=(0,i.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),l=(0,i.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),u=(0,i.K)(t=>{let{stylesArray:e}=o(t),r=[],n=[],i=[],a=[];return e.forEach(t=>{let e=t[0];l(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),c=(0,i.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,n.D7)(),{nodeBorder:a,mainBkg:s}=r,{stylesMap:l}=o(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),h=(0,i.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},48742:(t,e,r)=>{"use strict";r.d(e,{P:()=>c});var n=r(69266),i=r(33705),a=r(69611),o=r(8581),s=r(43745),l=r(47623),u=r(97591);let c=n.forwardRef(function(t,e){let{render:r,className:c,style:h,keepMounted:d=!1,...f}=t,p=(0,i.W)(),g=p.checked||p.indeterminate,{mounted:m,transitionStatus:y,setMounted:v}=(0,l.$)(g),x=n.useRef(null),b={...p,transitionStatus:y};(0,s.v)({open:g,ref:x,onComplete(){g||v(!1)}});let w={...(0,o.G)(p),...u.G},k=(0,a.o)("span",t,{ref:[e,x],state:b,stateAttributesMapping:w,props:f});return d||m?k:null})},49343:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(89316),i=r(39410),a=r(86594),o=(0,i.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,a.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},50163:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},52871:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},54346:(t,e,r)=>{"use strict";r.d(e,{JR:()=>_,_G:()=>c,be:()=>o,gB:()=>f,gl:()=>b});var n=r(69266),i=r(43209),a=r(31217);function o(t,e,r){let n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function s(t){return null!==t&&t>=0}let l=t=>{let{rects:e,activeIndex:r,overIndex:n,index:i}=t,a=o(e,n,r),s=e[i],l=a[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},u={scaleX:1,scaleY:1},c=t=>{var e,r,n,i;let a,o,s,{activeIndex:l,activeNodeRect:c,index:h,rects:d,overIndex:f}=t,p=null!=(e=d[l])?e:c;if(!p)return null;if(h===l){let t=d[f];return t?{x:0,y:l<f?t.top+t.height-(p.top+p.height):t.top-p.top,...u}:null}let g=(r=d,n=h,i=l,a=r[n],o=r[n-1],s=r[n+1],a?i<n?o?a.top-(o.top+o.height):s?s.top-(a.top+a.height):0:s?s.top-(a.top+a.height):o?a.top-(o.top+o.height):0:0);return h>l&&h<=f?{x:0,y:-p.height-g,...u}:h<l&&h>=f?{x:0,y:p.height+g,...u}:{x:0,y:0,...u}},h="Sortable",d=n.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function f(t){let{children:e,id:r,items:o,strategy:s=l,disabled:u=!1}=t,{active:c,dragOverlay:f,droppableRects:p,over:g,measureDroppableContainers:m}=(0,i.fF)(),y=(0,a.YG)(h,r),v=null!==f.rect,x=(0,n.useMemo)(()=>o.map(t=>"object"==typeof t&&"id"in t?t.id:t),[o]),b=null!=c,w=c?x.indexOf(c.id):-1,k=g?x.indexOf(g.id):-1,_=(0,n.useRef)(x),M=!function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}(x,_.current),S=-1!==k&&-1===w||M,A="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,a.Es)(()=>{M&&b&&m(x)},[M,x,b,m]),(0,n.useEffect)(()=>{_.current=x},[x]);let T=(0,n.useMemo)(()=>({activeIndex:w,containerId:y,disabled:A,disableTransforms:S,items:x,overIndex:k,useDragOverlay:v,sortedRects:x.reduce((t,e,r)=>{let n=p.get(e);return n&&(t[r]=n),t},Array(x.length)),strategy:s}),[w,y,A.draggable,A.droppable,S,x,k,p,v,s]);return n.createElement(d.Provider,{value:T},e)}let p=t=>{let{id:e,items:r,activeIndex:n,overIndex:i}=t;return o(r,n,i).indexOf(e)},g=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=t;return!!u&&!!n&&(s===a||i!==o)&&(!!r||o!==i&&e===l)},m={duration:200,easing:"ease"},y="transform",v=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function b(t){var e,r,o,l;let{animateLayoutChanges:u=g,attributes:c,disabled:h,data:f,getNewIndex:b=p,id:w,strategy:k,resizeObserverConfig:_,transition:M=m}=t,{items:S,containerId:A,activeIndex:T,disabled:E,disableTransforms:C,sortedRects:R,overIndex:P,useDragOverlay:L,strategy:D}=(0,n.useContext)(d),O=(e=h,r=E,"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(o=null==e?void 0:e.draggable)?o:r.draggable,droppable:null!=(l=null==e?void 0:e.droppable)?l:r.droppable}),$=S.indexOf(w),I=(0,n.useMemo)(()=>({sortable:{containerId:A,index:$,items:S},...f}),[A,f,$,S]),j=(0,n.useMemo)(()=>S.slice(S.indexOf(w)),[S,w]),{rect:N,node:F,isOver:K,setNodeRef:z}=(0,i.zM)({id:w,data:I,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:j,..._}}),{active:B,activatorEvent:U,activeNodeRect:V,attributes:H,setNodeRef:W,listeners:Y,isDragging:q,over:X,setActivatorNodeRef:G,transform:Z}=(0,i.PM)({id:w,data:I,attributes:{...x,...c},disabled:O.draggable}),Q=(0,a.jn)(z,W),J=!!B,tt=J&&!C&&s(T)&&s(P),te=!L&&q,tr=te&&tt?Z:null,tn=tt?null!=tr?tr:(null!=k?k:D)({rects:R,activeNodeRect:V,activeIndex:T,overIndex:P,index:$}):null,ti=s(T)&&s(P)?b({id:w,items:S,activeIndex:T,overIndex:P}):$,ta=null==B?void 0:B.id,to=(0,n.useRef)({activeId:ta,items:S,newIndex:ti,containerId:A}),ts=S!==to.current.items,tl=u({active:B,containerId:A,isDragging:q,isSorting:J,id:w,index:$,items:S,newIndex:to.current.newIndex,previousItems:to.current.items,previousContainerId:to.current.containerId,transition:M,wasDragging:null!=to.current.activeId}),tu=function(t){let{disabled:e,index:r,node:o,rect:s}=t,[l,u]=(0,n.useState)(null),c=(0,n.useRef)(r);return(0,a.Es)(()=>{if(!e&&r!==c.current&&o.current){let t=s.current;if(t){let e=(0,i.Sj)(o.current,{ignoreTransform:!0}),r={x:t.left-e.left,y:t.top-e.top,scaleX:t.width/e.width,scaleY:t.height/e.height};(r.x||r.y)&&u(r)}}r!==c.current&&(c.current=r)},[e,r,o,s]),(0,n.useEffect)(()=>{l&&u(null)},[l]),l}({disabled:!tl,index:$,node:F,rect:N});return(0,n.useEffect)(()=>{J&&to.current.newIndex!==ti&&(to.current.newIndex=ti),A!==to.current.containerId&&(to.current.containerId=A),S!==to.current.items&&(to.current.items=S)},[J,ti,A,S]),(0,n.useEffect)(()=>{if(ta===to.current.activeId)return;if(null!=ta&&null==to.current.activeId){to.current.activeId=ta;return}let t=setTimeout(()=>{to.current.activeId=ta},50);return()=>clearTimeout(t)},[ta]),{active:B,activeIndex:T,attributes:H,data:I,rect:N,index:$,newIndex:ti,items:S,isOver:K,isSorting:J,isDragging:q,listeners:Y,node:F,overIndex:P,over:X,setNodeRef:Q,setActivatorNodeRef:G,setDroppableNodeRef:z,setDraggableNodeRef:W,transform:null!=tu?tu:tn,transition:tu||ts&&to.current.newIndex===$?v:(!te||(0,a.kx)(U))&&M&&(J||tl)?a.Ks.Transition.toString({...M,property:y}):void 0}}function w(t){if(!t)return!1;let e=t.data.current;return!!e&&"sortable"in e&&"object"==typeof e.sortable&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable}let k=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],_=(t,e)=>{let{context:{active:r,collisionRect:n,droppableRects:o,droppableContainers:s,over:l,scrollableAncestors:u}}=e;if(k.includes(t.code)){if(t.preventDefault(),!r||!n)return;let e=[];s.getEnabled().forEach(r=>{if(!r||null!=r&&r.disabled)return;let a=o.get(r.id);if(a)switch(t.code){case i.vL.Down:n.top<a.top&&e.push(r);break;case i.vL.Up:n.top>a.top&&e.push(r);break;case i.vL.Left:n.left>a.left&&e.push(r);break;case i.vL.Right:n.left<a.left&&e.push(r)}});let d=(0,i.y$)({active:r,collisionRect:n,droppableRects:o,droppableContainers:e,pointerCoordinates:null}),f=(0,i.Vy)(d,"id");if(f===(null==l?void 0:l.id)&&d.length>1&&(f=d[1].id),null!=f){let t=s.get(r.id),e=s.get(f),l=e?o.get(e.id):null,d=null==e?void 0:e.node.current;if(d&&l&&t&&e){var c,h;let r=(0,i.sl)(d).some((t,e)=>u[e]!==t),o=M(t,e),s=(c=t,h=e,!!w(c)&&!!w(h)&&!!M(c,h)&&c.data.current.sortable.index<h.data.current.sortable.index),f=r||!o?{x:0,y:0}:{x:s?n.width-l.width:0,y:s?n.height-l.height:0},p={x:l.left,y:l.top};return f.x&&f.y?p:(0,a.Re)(p,f)}}}};function M(t,e){return!!w(t)&&!!w(e)&&t.data.current.sortable.containerId===e.data.current.sortable.containerId}},54359:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},54751:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});let n={...r(54967).dc,checked:t=>t?{"data-checked":""}:{"data-unchecked":""}}},55263:(t,e,r)=>{"use strict";r.d(e,{Q:()=>n});let n=(0,r(69266).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},55289:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},55531:(t,e,r)=>{"use strict";r.d(e,{XX:()=>d,q7:()=>f,sO:()=>h});var n=r(71627),i=r(50789),a=r(4196),o=r(89316),s=r(47508),l=r(39410),u={common:o.Y2,getConfig:o.zj,insertCluster:i.U,insertEdge:n.Jo,insertEdgeLabel:n.jP,insertMarkers:n.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:s.R,positionEdgeLabel:n.T_},c={},h=(0,l.K)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,l.K)(()=>{h([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([r.e(17817),r.e(41487),r.e(3376),r.e(4837)]).then(r.bind(r,4837)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([r.e(76705),r.e(17817),r.e(41487),r.e(86093)]).then(r.bind(r,38178)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([r.e(57634),r.e(24725)]).then(r.bind(r,24725)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,l.K)(async(t,e,r)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let n=c[t.layoutAlgorithm],i=await n.loader(),{theme:a,themeVariables:o}=t.config,{useGradient:s,gradientStart:l,gradientStop:h}=o,d=e.attr("id");if(e.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),s){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(t,e,u,{algorithm:n.algorithm},r)},"render"),f=(0,l.K)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return s.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},56906:(t,e,r)=>{"use strict";r.d(e,{l:()=>a,w:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(35));return t}},58048:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});let n=r(54276)._(r(41144));function i(t,e){let r={};"function"==typeof t&&(r.loader=t);let i={...r,...e};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},58619:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},59095:(t,e,r)=>{"use strict";r.d(e,{j:()=>_});var n=r(69266),i=r(66538),a=r(66758),o=r(48356),s=r(63717),l=r(87047),u=r(82956),c=r(1712),h=r(86947),d=r(23754),f=r(6561);let p=[];var g=r(26564),m=r(69611),y=r(73881),v=r(7962);function x(t){let{render:e,className:r,style:x,refs:b=o.Ml,props:w=o.Ml,state:k=o.t0,stateAttributesMapping:_,highlightedIndex:M,onHighlightedIndexChange:S,orientation:A,grid:T,loopFocus:E,onLoop:C,enableHomeAndEndKeys:R,onMapChange:P,stopEventPropagation:L=!0,rootRef:D,disabledIndices:O,modifierKeys:$,highlightItemOnHover:I=!1,tag:j="div",...N}=t,{props:F,highlightedIndex:K,onHighlightedIndexChange:z,elementsRef:B,onMapChange:U,relayKeyboardEvent:V}=function(t){let{loopFocus:e=!0,orientation:r="both",grid:o,onLoop:s,direction:g,highlightedIndex:m,onHighlightedIndexChange:y,rootRef:v,enableHomeAndEndKeys:x=!1,stopEventPropagation:b,disabledIndices:w,modifierKeys:k=p}=t,[_,M]=n.useState(0),S=null!=o,A=n.useRef(null),T=(0,u.a)(A,v),E=n.useRef([]),C=n.useRef(!1),R=m??_,P=(0,i.K)((t,e=!1)=>{if((y??M)(t),e){let e=E.current[t];(0,c.$v)(A.current,e,g,r)}}),L=(0,i.K)(t=>{if(0===t.size||C.current)return;C.current=!0;let e=Array.from(t.keys()),n=e.find(t=>t?.hasAttribute(d.h))??null,i=n?t.get(n)?.index??-1:-1;if(-1!==i)P(i);else if((0,h.FP)(e,R,w)){let t=(0,h.BF)(e,{disabledIndices:w});(0,h.du)(e,t)||P(t)}(0,c.$v)(A.current,n,g,r)});(0,a.g)(()=>{if(null==w||null!=m||!C.current)return;let t=E.current;if((0,h.FP)(t,R,w)){let e=(0,h.BF)(t,{disabledIndices:w});(0,h.du)(t,e)||P(e)}},[w,m,R,E,P]);let D=(0,i.K)((t,e,r)=>s?s(t,e,r,E):r),O=(0,i.K)(t=>{let n=t.key===c.yZ||t.key===c.Kp;if(!c.jF.has(t.key)||!x&&n||function(t,e){for(let r of c.rT)if(!e.includes(r)&&t.getModifierState(r))return!0;return!1}(t,k)||!A.current)return;let i="rtl"===g,a=i?c.eR:c.RJ,u=i?c.RJ:c.eR,d="vertical"===r?c.Jd:a,p="vertical"===r?c.il:u,m=(0,f.EW)(t.nativeEvent);if(null!=m&&(0,c.Qi)(m)&&!(0,l.F)(m)){let e=m.selectionStart,r=m.selectionEnd,n=m.value;if(null==e||t.shiftKey||e!==r||t.key!==p&&e<n.length||t.key!==d&&e>0)return}let y=R,v=(0,h.Zb)(E,w),_=(0,h.vB)(E,w);null!=o&&(y=o({disabledIndices:w,elementsRef:E,event:t,highlightedIndex:R,loopFocus:e,maxIndex:_,minIndex:v,onLoop:D,orientation:r,rtl:i}));let M="vertical"!==r&&t.key===a||"horizontal"!==r&&t.key===c.Jd,T="vertical"!==r&&t.key===u||"horizontal"!==r&&t.key===c.il;x&&(t.key===c.yZ?y=v:t.key===c.Kp&&(y=_)),y===R&&(M||T)&&(e&&y===_&&M?(y=v,s&&(y=s(t,R,y,E))):e&&y===v&&T?(y=_,s&&(y=s(t,R,y,E))):y=(0,h.BF)(E.current,{startingIndex:y,decrement:T,disabledIndices:w})),y===R||(0,h.du)(E.current,y)||(b&&t.stopPropagation(),(S||n||M||T)&&t.preventDefault(),P(y,!0),queueMicrotask(()=>{E.current[y]?.focus()}))});return{props:{ref:T,onFocus(t){let e=A.current,r=(0,f.EW)(t.nativeEvent);e&&null!=r&&(0,c.Qi)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:O},highlightedIndex:R,onHighlightedIndexChange:P,elementsRef:E,onMapChange:L,relayKeyboardEvent:O}}({grid:T,loopFocus:E,onLoop:C,orientation:A,highlightedIndex:M,onHighlightedIndexChange:S,rootRef:D,stopEventPropagation:L,enableHomeAndEndKeys:R,direction:(0,y.j)(),disabledIndices:O,modifierKeys:$}),H=(0,m.o)(j,t,{state:k,ref:b,props:[F,...w,N],stateAttributesMapping:_}),W=n.useMemo(()=>({highlightedIndex:K,onHighlightedIndexChange:z,highlightItemOnHover:I,relayKeyboardEvent:V}),[K,z,I,V]);return(0,v.jsx)(g.H.Provider,{value:W,children:(0,v.jsx)(s.u,{elementsRef:B,onMapChange:t=>{P?.(t),U(t)},children:H})})}var b=r(67048),w=r(65205),k=r(89121);let _=n.forwardRef(function(t,e){let{activateOnFocus:r=!1,className:s,loopFocus:l=!0,render:u,style:c,...h}=t,{orientation:d,setTabMap:f,tabActivationDirection:p}=(0,w.z)(),[g,m]=n.useState(0),[y,_]=n.useState(null),M=n.useRef(new Set),S=n.useRef(new Set),A=n.useRef(null);(0,a.g)(()=>{if("u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{M.current.forEach(t=>{t()})});return A.current=t,y&&t.observe(y),S.current.forEach(e=>{t.observe(e)}),()=>{t.disconnect(),A.current=null}},[y]);let T=(0,i.K)(t=>(M.current.add(t),()=>{M.current.delete(t)})),E=(0,i.K)(t=>(S.current.add(t),A.current?.observe(t),()=>{S.current.delete(t),A.current?.unobserve(t)})),C=n.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:T,registerTabResizeObserverElement:E,tabsListElement:y}),[r,T,E,y]);return(0,v.jsx)(k.O.Provider,{value:C,children:(0,v.jsx)(x,{render:u,className:s,style:c,state:{orientation:d,tabActivationDirection:p},refs:[e,_],props:[{"aria-orientation":"vertical"===d?"vertical":void 0,role:"tablist"},h],stateAttributesMapping:b.h,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:l,orientation:d,onHighlightedIndexChange:m,onMapChange:f,disabledIndices:o.Ml})})})},59252:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},59275:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},59863:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(69266);let i="u">typeof window?n.useLayoutEffect:n.useEffect},60008:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},60794:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]])},61108:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},61600:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var n=r(69266),i=r(35182);function a(){let t=(0,n.useContext)(i.t);return t?t.custom:void 0}},61989:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},62079:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],u=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>u);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:u,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=u))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),u],[Math.round(n.x),u]])}u+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),c++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>X});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),u=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+u],[...e]],[[t[0]+l,t[1]-u],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,u=t-l*n,c=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=c-a+2*Math.random()*a,s=h+u+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,u=t[0],c=t[1];u[0]>c[0]&&(u=t[1],c=t[0]);let h=Math.atan((c[1]-u[1])/(c[0]-u[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[u[0]+a*Math.cos(h)+l*Math.cos(h),u[1]+a*Math.sin(h)+l*Math.sin(h)],c=[u[0]+o*Math.cos(h)+l*Math.cos(h),u[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),u=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],c=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[u[0]+s*Math.cos(l+Math.PI/4),u[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],c[0],c[1],r))}}),n}}let d={};class f{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let p={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=p[a.text],n=a.text}else 1===a.type?o=p[n]:(i++,o=p[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof p[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:c}of t){switch(u){case"M":e.push({key:"M",data:[...c]}),[n,i]=c,[a,o]=c;break;case"C":e.push({key:"C",data:[...c]}),n=c[4],i=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[n,i]=c;break;case"H":n=c[0],e.push({key:"L",data:[n,i]});break;case"V":i=c[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...c]}),s=c[0],l=c[1],n=c[2],i=c[3];break}case"T":{let[t,a]=c,o=0,u=0;"Q"===r||"T"===r?(o=n+(n-s),u=i+(i-l)):(o=n,u=i);let h=n+2*(o-n)/3,d=i+2*(u-i)/3,f=t+2*(o-t)/3,p=a+2*(u-a)/3;e.push({key:"C",data:[h,d,f,p,t,a]}),s=o,l=u,n=t,i=a;break}case"Q":{let[t,r,a,o]=c,u=n+2*(t-n)/3,h=i+2*(r-i)/3,d=a+2*(t-a)/3,f=o+2*(r-o)/3;e.push({key:"C",data:[u,h,d,f,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],o=c[3],s=c[4],l=c[5],u=c[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,u,l,u]}),n=l,i=u):(n!==l||i!==u)&&((function t(e,r,n,i,a,o,s,l,u,c){let h=Math.PI*s/180,d=[],f=0,p=0,g=0,m=0;if(c)[f,p,g,m]=c;else{[e,r]=v(e,r,-h),[n,i]=v(n,i,-h);let t=(e-n)/2,s=(r-i)/2,c=t*t/(a*a)+s*s/(o*o);c>1&&(a*=c=Math.sqrt(c),o*=c);let d=a*a,y=o*o,x=(l===u?-1:1)*Math.sqrt(Math.abs((d*y-d*s*s-y*t*t)/(d*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,f=Math.asin(parseFloat(((r-m)/o).toFixed(9))),p=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(f=Math.PI-f),n<g&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),u&&f>p&&(f-=2*Math.PI),!u&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>120*Math.PI/180){let e=p,r=n,l=i;d=t(n=g+a*Math.cos(p=u&&p>f?f+120*Math.PI/180*1:f+-(120*Math.PI/180*1)),i=m+o*Math.sin(p),r,l,a,o,s,0,u,[p,e,g,m])}y=p-f;let x=Math.cos(f),b=Math.cos(p),w=Math.tan(y/4),k=4/3*a*w,_=4/3*o*w,M=[e,r],S=[e+k*Math.sin(f),r-_*x],A=[n+k*Math.sin(p),i-_*b],T=[n,i];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],c)return[S,A,T].concat(d);{d=[S,A,T].concat(d);let t=[];for(let e=0;e<d.length;e+=3){let r=v(d[e][0],d[e][1],h),n=v(d[e+1][0],d[e+1][1],h),i=v(d[e+2][0],d[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,u,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=u);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=u}return e}function v(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return L(t,e)},randOffsetWithRange:function(t,e,r){return P(t,e,r)},ellipse:function(t,e,r,n,i){let a=_(r,n,i);return M(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return D(t,e,r,n,i,!0)}};function b(t,e,r,n,i){return{type:"path",ops:D(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...D(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...D(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?b(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function k(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=$(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:$(r[0],1.5*(1+.22*e.roughness),C(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=$(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:$(a,1.5*(1+.22*e.roughness),C(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function _(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=L(a*s,r),o+=L(o*s,r),{increment:i,rx:a,ry:o}}function M(t,e,r,n){let[i,a]=j(n.increment,t,e,n.rx,n.ry,1,n.increment*P(.1,P(.4,1,r),r),r),o=I(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=j(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=I(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function S(t,e,r,n,i,a,o,s,l){let u=Math.abs(r/2),c=Math.abs(n/2);u+=L(.01*u,l),c+=L(.01*c,l);let h=i,d=a;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);let f=Math.min(2*Math.PI/l.curveStepCount/2,(d-h)/2),p=N(f,t,e,u,c,h,d,1,l);if(!l.disableMultiStroke){let r=N(f,t,e,u,c,h,d,1.5,l);p.push(...r)}return o&&(s?p.push(...D(t,e,t+u*Math.cos(h),e+c*Math.sin(h),l),...D(t,e,t+u*Math.cos(d),e+c*Math.sin(d),l)):p.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+u*Math.cos(h),e+c*Math.sin(h)]})),{type:"path",ops:p}}function A(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...D(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,u]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],u=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let f=0;f<h;f++)0===f?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:L(u[0],s)),o[1]+(d?0:L(u[0],s))]}),c=d?[i,a]:[i+L(u[f],s),a+L(u[f],s)],l.push({op:"bcurveTo",data:[t+L(u[f],s),e+L(u[f],s),r+L(u[f],s),n+L(u[f],s),c[0],c[1]]});return l}(t,r,i,s,l,u,a,e)),a=[l,u];break}case"Z":n.push(...D(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+L(t,e),n[0][1]+L(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+L(t,e),n[a][1]+L(t,e)]})}}return{type:"fillPath",ops:r}}function E(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new s(e));break;case"cross-hatch":d[r]||(d[r]=new l(e));break;case"dots":d[r]||(d[r]=new u(e));break;case"dashed":d[r]||(d[r]=new c(e));break;case"zigzag-line":d[r]||(d[r]=new h(e));break;default:d[r="hachure"]||(d[r]=new a(e))}return d[r]})(e,x).fillPolygons(t,e)}function C(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function R(t){return t.randomizer||(t.randomizer=new f(t.seed||0)),t.randomizer.next()}function P(t,e,r,n=1){return r.roughness*n*(R(r)*(e-t)+t)}function L(t,e,r=1){return P(-t,t,e,r)}function D(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=O(t,e,r,n,i,!0,!1);if(o)return s;let l=O(t,e,r,n,i,!0,!0);return s.concat(l)}function O(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=i.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let h=c/2,d=.2+.2*R(i),f=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;f=L(f,i,u),p=L(p,i,u);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:L(h,i,u)),e+(m?0:L(h,i,u))]}):g.push({op:"move",data:[t+(m?0:L(c,i,u)),e+(m?0:L(c,i,u))]})),o?g.push({op:"bcurveTo",data:[f+t+(r-t)*d+L(h,i,u),p+e+(n-e)*d+L(h,i,u),f+t+2*(r-t)*d+L(h,i,u),p+e+2*(n-e)*d+L(h,i,u),r+(m?0:L(h,i,u)),n+(m?0:L(h,i,u))]}):g.push({op:"bcurveTo",data:[f+t+(r-t)*d+L(c,i,u),p+e+(n-e)*d+L(c,i,u),f+t+2*(r-t)*d+L(c,i,u),p+e+2*(n-e)*d+L(c,i,u),r+(m?0:L(c,i,u)),n+(m?0:L(c,i,u))]}),g}function $(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+L(e,r),t[0][1]+L(e,r)]),n.push([t[0][0]+L(e,r),t[0][1]+L(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+L(e,r),t[i][1]+L(e,r)]),i===t.length-1&&n.push([t[i][0]+L(e,r),t[i][1]+L(e,r)]);return I(n,null,r)}function I(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+L(t,r),e[1]+L(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function j(t,e,r,n,i,a,o,s){let l=[],u=[];if(0===s.roughness){t/=4,u.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),u.push(t)}u.push([e+ +n,r+0*i]),u.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let c=L(.5,s)-Math.PI/2;u.push([L(a,s)+e+.9*n*Math.cos(c-t),L(a,s)+r+.9*i*Math.sin(c-t)]);let h=2*Math.PI+c-.01;for(let o=c;o<h;o+=t){let t=[L(a,s)+e+n*Math.cos(o),L(a,s)+r+i*Math.sin(o)];l.push(t),u.push(t)}u.push([L(a,s)+e+n*Math.cos(c+2*Math.PI+.5*o),L(a,s)+r+i*Math.sin(c+2*Math.PI+.5*o)]),u.push([L(a,s)+e+.98*n*Math.cos(c+o),L(a,s)+r+.98*i*Math.sin(c+o)]),u.push([L(a,s)+e+.9*n*Math.cos(c+.5*o),L(a,s)+r+.9*i*Math.sin(c+.5*o)])}return[u,l]}function N(t,e,r,n,i,a,o,s,l){let u=a+L(.1,l),c=[];c.push([L(s,l)+e+.9*n*Math.cos(u-t),L(s,l)+r+.9*i*Math.sin(u-t)]);for(let a=u;a<=o;a+=t)c.push([L(s,l)+e+n*Math.cos(a),L(s,l)+r+i*Math.sin(a)]);return c.push([e+n*Math.cos(o),r+i*Math.sin(o)]),c.push([e+n*Math.cos(o),r+i*Math.sin(o)]),I(c,null,l)}function F(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function K(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function z(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function B(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,u=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=K(e,r);if(0===n)return K(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return K(t,z(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,u=n)}return Math.sqrt(l)>n?(B(t,e,u+1,n,a),B(t,u,r,n,a)):(a.length||a.push(o),a.push(s)),a}function U(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,u,c,h,d,f=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],u=3*o[0]-2*a[0]-l[0],u*=u,c=3*o[1]-2*a[1]-l[1],c*=c,h=3*s[0]-2*l[0]-a[0],h*=h,d=3*s[1]-2*l[1]-a[1],d*=d,u<h&&(u=h),c<d&&(c=d),u+c<n){let t=e[r+0];f.length?Math.sqrt(K(f[f.length-1],t))>1&&f.push(t):f.push(t),f.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=z(i,a,.5),u=z(a,o,.5),c=z(o,s,.5),h=z(l,u,.5),d=z(u,c,.5),p=z(h,d,.5);t([i,l,h,p],0,n,f),t([p,d,c,s],0,n,f)}return f}(t,3*r,e,n);return r&&r>0?B(n,0,n.length,r):n}let V="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[b(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let u=this._o(i),c=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,u);if(u.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===u.fillStyle?c.push(T([i],u)):c.push(E([i],u))}return u.stroke!==V&&c.push(h),this._d("rectangle",c,u)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=_(r,n,a),l=M(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=M(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(E([l.estimatedPoints],a));return a.stroke!==V&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),u=[],c=S(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",u.push(s)}else u.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=L(.01*s,o),l+=L(.01*l,o);let u=i,c=a;for(;u<0;)u+=2*Math.PI,c+=2*Math.PI;c-u>2*Math.PI&&(u=0,c=2*Math.PI);let h=(c-u)/o.curveStepCount,d=[];for(let r=u;r<=c;r+=h)d.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return d.push([t+s*Math.cos(c),e+l*Math.sin(c)]),d.push([t,e]),E([d],o)}(t,e,r,n,i,a,l));return l.stroke!==V&&u.push(c),this._d("arc",u,l)}curve(t,e){let r=this._o(e),n=[],i=k(t,r);if(r.fill&&r.fill!==V)if("solid"===r.fillStyle){let e=k(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...U(F([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...U(F(n),10,(1+r.roughness)/2));e.length&&n.push(E([e],r))}return r.stroke!==V&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push(E([t],r))),r.stroke!==V&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==V,a=r.stroke!==V,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...U(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let u=[];for(let t of n){let r=B(t,0,t.length,e);r.length&&u.push(r)}return u}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push(E(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:V};break;case"fillPath":e={d:this.opsToPath(t),stroke:V,strokeWidth:0,fill:r.fill||V};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||V,strokeWidth:r,fill:V}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class W{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class q{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(Y,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(Y,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var X={canvas:(t,e)=>new W(t,e),svg:(t,e)=>new q(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},62623:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(47552);let i={};for(let t=0;t<=255;t++)i[t]=n.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},63273:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},63434:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},64572:(t,e,r)=>{"use strict";r.d(e,{q:()=>s});var n=r(69266);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let s=(t={})=>{let[e,r]=(0,n.useState)(!1),[i,s]=(0,n.useState)(!1!==t.initial),[u,h]=(0,n.useState)(!1),d=(0,n.useRef)(null);d.current=t;let f=(0,n.useCallback)(()=>{if(!o)return!1;let t=window.getSelection();if(!t||!t.rangeCount)return!1;let e=t.getRangeAt(0);return e.commonAncestorContainer.contains(w.current)||w.current?.contains(e.commonAncestorContainer)},[]),p=(0,n.useCallback)(t=>{m.isAtBottom=t,s(t)},[]),g=(0,n.useCallback)(t=>{m.escapedFromLock=t,r(t)},[]),m=(0,n.useMemo)(()=>{let r;return{escapedFromLock:e,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(scrollTop){if(w.current){let{scrollBehavior:t}=getComputedStyle(w.current);"auto"!==t&&(w.current.style.scrollBehavior="auto"),w.current.scrollTop=scrollTop,m.ignoreScrollToTop=w.current.scrollTop,"auto"!==t&&(w.current.style.scrollBehavior=t)}},get targetScrollTop(){if(!w.current||!k.current)return 0;return w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!k.current)return 0;let{targetScrollTop:e}=this;if(!t.targetScrollTop)return e;if(r?.targetScrollTop===e)return r.calculatedScrollTop;let n=Math.max(Math.min(t.targetScrollTop(e,{scrollElement:w.current,contentElement:k.current}),e),0);return r={targetScrollTop:e,calculatedScrollTop:n},requestAnimationFrame(()=>{r=void 0}),n},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,n.useCallback)((t={})=>{let e;"string"==typeof t&&(t={animation:t}),t.preserveScrollPosition||p(!0);let r=Date.now()+(Number(t.wait)||0),n=c(d.current,t.animation),{ignoreEscapes:i=!1}=t,o=m.calculatedTargetScrollTop;t.duration instanceof Promise?t.duration.finally(()=>{e=Date.now()}):e=r+(t.duration??0);let s=async()=>{let t=new Promise(requestAnimationFrame).then(()=>{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:l}=m,u=performance.now(),h=(u-(m.lastTick??u))/a;if(m.animation||(m.animation={behavior:n,promise:t,ignoreEscapes:i}),m.animation.behavior===n&&(m.lastTick=u),f()||r>Date.now())return s();if(l<Math.min(o,m.calculatedTargetScrollTop)){if(m.animation?.behavior===n){if("instant"===n)return m.scrollTop=m.calculatedTargetScrollTop,s();m.velocity=(n.damping*m.velocity+n.stiffness*m.scrollDifference)/n.mass,m.accumulated+=m.velocity*h,m.scrollTop+=m.accumulated,m.scrollTop!==l&&(m.accumulated=0)}return s()}return e>Date.now()?(o=m.calculatedTargetScrollTop,s()):(m.animation=void 0,m.scrollTop<m.calculatedTargetScrollTop)?y({animation:c(d.current,d.current.resize),ignoreEscapes:i,duration:Math.max(0,e-Date.now())||void 0}):m.isAtBottom});return t.then(t=>(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),t))};return(!0!==t.wait&&(m.animation=void 0),m.animation?.behavior===n)?m.animation.promise:s()},[p,f,m]),v=(0,n.useCallback)(()=>{g(!0),p(!1)},[g,p]),x=(0,n.useCallback)(({target:t})=>{if(t!==w.current)return;let{scrollTop:e,ignoreScrollToTop:r}=m,{lastScrollTop:n=e}=m;m.lastScrollTop=e,m.ignoreScrollToTop=void 0,r&&r>e&&(n=r),h(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||e===r)return;if(f()){g(!0),p(!1);return}let t=e>n,i=e<n;if(m.animation?.ignoreEscapes){m.scrollTop=n;return}i&&(g(!0),p(!1)),t&&g(!1),!m.escapedFromLock&&m.isNearBottom&&p(!0)},1)},[g,p,f,m]),b=(0,n.useCallback)(({target:t,deltaY:e})=>{let r=t;for(;!["scroll","auto"].includes(getComputedStyle(r).overflow);){if(!r.parentElement)return;r=r.parentElement}r===w.current&&e<0&&w.current.scrollHeight>w.current.clientHeight&&!m.animation?.ignoreEscapes&&(g(!0),p(!1))},[g,p,m]),w=l(t=>{w.current?.removeEventListener("scroll",x),w.current?.removeEventListener("wheel",b),t?.addEventListener("scroll",x,{passive:!0}),t?.addEventListener("wheel",b,{passive:!0})},[]),k=l(t=>{let e;m.resizeObserver?.disconnect(),m.resizeObserver=void 0,t&&(m.resizeObserver=new ResizeObserver(([t])=>{let{height:r}=t.contentRect,n=r-(e??r);if(m.resizeDifference=n,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),h(m.isNearBottom),n>=0){let t=c(d.current,e?d.current.resize:d.current.initial);y({animation:t,wait:!0,preserveScrollPosition:!0,duration:"instant"===t?void 0:350})}else m.isNearBottom&&(g(!1),p(!0));e=r,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===n&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(t))},[]);return{contentRef:k,scrollRef:w,scrollToBottom:y,stopScroll:v,isAtBottom:i||u,isNearBottom:u,escapedFromLock:e,state:m}};function l(t,e){let r=(0,n.useCallback)(e=>(r.current=e,t(e)),e);return r}let u=new Map;function c(...t){let e={...i},r=!1;for(let n of t){if("instant"===n){r=!0;continue}"object"==typeof n&&(r=!1,e.damping=n.damping??e.damping,e.stiffness=n.stiffness??e.stiffness,e.mass=n.mass??e.mass)}let n=JSON.stringify(e);return u.has(n)||u.set(n,Object.freeze(e)),r?"instant":u.get(n)}},64696:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]])},65205:(t,e,r)=>{"use strict";r.d(e,{G:()=>a,z:()=>o});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(64));return t}},66722:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},67011:(t,e,r)=>{"use strict";r.d(e,{B:()=>l,z:()=>s});var n=r(69266),i=r(64572);let a=(0,n.createContext)(null),o="u">typeof window?n.useLayoutEffect:n.useEffect;function s({instance:t,children:e,resize:r,initial:l,mass:u,damping:c,stiffness:h,targetScrollTop:d,contextRef:f,...p}){let g=(0,n.useRef)(null),m=n.useCallback((t,e)=>{let r=S?.targetScrollTop??d;return r?.(t,e)??t},[d]),y=(0,i.q)({mass:u,damping:c,stiffness:h,resize:r,initial:l,targetScrollTop:m}),{scrollRef:v,contentRef:x,scrollToBottom:b,stopScroll:w,isAtBottom:k,escapedFromLock:_,state:M}=t??y,S=(0,n.useMemo)(()=>({scrollToBottom:b,stopScroll:w,scrollRef:v,isAtBottom:k,escapedFromLock:_,contentRef:x,state:M,get targetScrollTop(){return g.current},set targetScrollTop(targetScrollTop){g.current=targetScrollTop}}),[b,k,x,v,w,_,M]);return(0,n.useImperativeHandle)(f,()=>S,[S]),o(()=>{v.current&&"visible"===getComputedStyle(v.current).overflow&&(v.current.style.overflow="auto")},[]),n.createElement(a.Provider,{value:S},n.createElement("div",{...p},"function"==typeof e?e(S):e))}function l(){let t=(0,n.useContext)(a);if(!t)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return t}(s||(s={})).Content=function({children:t,scrollClassName:e,...r}){let i=l();return n.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:e},n.createElement("div",{...r,ref:i.contentRef},"function"==typeof t?t(i):t))}},67048:(t,e,r)=>{"use strict";r.d(e,{h:()=>n});let n={tabActivationDirection:t=>({"data-activation-direction":t})}},67089:(t,e,r)=>{"use strict";r.d(e,{b:()=>o,u:()=>a});var n=r(80417),i=r(69266);let a=i.createContext(void 0);function o(){let t=i.useContext(a);if(void 0===t)throw Error((0,n.A)(63));return t}},67799:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>p,ML:()=>M,NA:()=>h,OG:()=>i,Qb:()=>m,R_:()=>s,Uw:()=>d,VP:()=>l,XZ:()=>b,ZR:()=>x,_u:()=>k,cT:()=>f,i1:()=>w,iq:()=>g,kj:()=>a,pj:()=>c,q:()=>y,ri:()=>_,vC:()=>u,x6:()=>v});let n="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",u="[object Date]",c="[object Map]",h="[object Set]",d="[object Array]",f="[object ArrayBuffer]",p="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",v="[object Uint16Array]",x="[object Uint32Array]",b="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",_="[object Float32Array]",M="[object Float64Array]"},68083:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=i(t.trim());do e=(r=i(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=r;if(!a)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var u=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return u;if("http:"===l||"https:"===l){if(!URL.canParse(u))return n.BLANK_URL;var c=new URL(u);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return u};var n=r(89618);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}},69202:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(47057),i=r(93525);let a=(t,e)=>{let r=n.A.parse(t),a={};for(let t in e)e[t]&&(a[t]=r[t]+e[t]);return(0,i.A)(t,a)}},70943:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(50735).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},71216:(t,e,r)=>{"use strict";r.d(e,{O:()=>o,X:()=>s});var n=r(4196),i=r(89316),a=r(39410),o=(0,a.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function s(t,e){let r=t.getElementsByTagName("img");if(!r||0===r.length)return;let o=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",o){let e=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=i.UI.fontSize]=(0,n.I5)(e),a=5*r+"px";t.style.minWidth=a,t.style.maxWidth=a}else t.style.width="100%";e(t)}(0,a.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,a.K)(s,"configureLabelImages")},71627:(t,e,r)=>{"use strict";r.d(e,{IU:()=>w,Jo:()=>O,T_:()=>S,UQ:()=>b,g0:()=>to,jP:()=>_,lP:()=>x});var n=r(50789),i=r(48495),a=r(7632),o=r(71216),s=r(94725),l=r(4196),u=r(89316),c=r(47508),h=r(39410),d=r(86594),f=r(62079),p=(0,h.K)((t,e,r,n,i,a=!1,o)=>{e.arrowTypeStart&&y(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&y(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),g={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,h.K)((t,e,r,n,i,a,o=!1,s)=>{let l=g[r],u=l&&m.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,d=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${d}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(d);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${d})`)},"addEdgeMarker"),v=(0,h.K)(t=>"string"==typeof t?t:(0,u.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),x=new Map,b=new Map,w=(0,h.K)(()=>{x.clear(),b.clear()},"clear"),k=(0,h.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),_=(0,h.K)(async(t,e)=>{let r,o=(0,u.D7)(),l=(0,u.E)(o),{labelStyles:h}=(0,i.GX)(e);e.labelStyle=h;let f=t.insert("g").attr("class","edgeLabel"),p=f.insert("g").attr("class","label").attr("data-id",e.id),g="markdown"===e.labelType,m=await (0,s.G)(t,e.label,{style:k(e.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},o);p.node().appendChild(m),c.R.info("abc82",e,e.labelType);let y=m.getBBox(),v=y;if(l){let t=m.children[0],e=(0,d.Ltv)(m);v=y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}else{let t=(0,d.Ltv)(m).select("text").node();t&&"function"==typeof t.getBBox&&(v=t.getBBox())}if(p.attr("transform",(0,a.Wg)(v,l)),x.set(e.id,f),e.width=y.width,e.height=y.height,e.startLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelLeft,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).startLeft=i,M(r,e.startLabelLeft)}if(e.startLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelRight,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).startRight=i,M(r,e.startLabelRight)}if(e.endLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(i,e.endLabelLeft,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).endLeft=i,M(r,e.endLabelLeft)}if(e.endLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,n.DA)(i,e.endLabelRight,k(e.labelStyle)||"",!1,!1);r=s;let u=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}o.attr("transform",(0,a.Wg)(u,l)),b.get(e.id)||b.set(e.id,{}),b.get(e.id).endRight=i,M(r,e.endLabelRight)}return m},"insertEdgeLabel");function M(t,e){(0,u.E)((0,u.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,h.K)(M,"setTerminalWidth");var S=(0,h.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,x.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=(0,u.D7)(),{subGraphTitleTotalMargin:i}=(0,o.O)(n);if(t.label){let n=x.get(t.id),a=t.x,o=t.y;if(r){let n=l._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(a=n.x,o=n.y)}n.attr("transform",`translate(${a}, ${o+i/2})`)}if(t.startLabelLeft){let e=b.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=b.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=b.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=b.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),A=(0,h.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),T=(0,h.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),E=(0,h.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|
|
3
3
|
outsidePoint: ${JSON.stringify(e)}
|
|
4
4
|
insidePoint : ${JSON.stringify(r)}
|
|
5
5
|
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,l=t.height/2,u=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*o>Math.abs(n-e.x)*l){let t=r.y<e.y?e.y-l-i:i-l-e.y;s=h*t/u;let n={x:r.x<e.x?r.x+s:r.x-h+s,y:r.y<e.y?r.y+u-t:r.y-u+t};return 0===s&&(n.x=e.x,n.y=e.y),0===h&&(n.x=e.x),0===u&&(n.y=e.y),c.R.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${h}, r ${s}`,n),n}{let t=u*(s=r.x<e.x?e.x-o-n:n-o-e.x)/h,i=r.x<e.x?r.x+h-s:r.x-h+s,a=r.y<e.y?r.y+t:r.y-t;return c.R.debug(`sides calc abc89, Q ${u}, q ${t}, R ${h}, r ${s}`,{_x:i,_y:a}),0===s&&(i=e.x,a=e.y),0===h&&(i=e.x),0===u&&(a=e.y),{x:i,y:a}}},"intersection"),C=(0,h.K)((t,e)=>{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),T(e,t)||i)c.R.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let a=E(e,n,t);c.R.debug("abc88 inside",t,n,a),c.R.debug("abc88 intersection",a,e);let o=!1;r.forEach(t=>{o=o||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.R.warn("abc88 no intersect",a,r):r.push(a),i=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function R(t){let e=[],r=[];for(let n=1;n<t.length-1;n++){let i=t[n-1],a=t[n],o=t[n+1];i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5?(e.push(a),r.push(n)):i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,h.K)(R,"extractCornerPoints");var P=(0,h.K)(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=r/Math.sqrt(n*n+i*i);return{x:e.x-a*n,y:e.y-a*i}},"findAdjacentPoint"),L=(0,h.K)(function(t){let{cornerPointPositions:e}=R(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let e=t[n-1],i=t[n+1],a=t[n],o=P(e,a,5),s=P(i,a,5),l=s.x-o.x,u=s.y-o.y;r.push(o);let h=2*Math.sqrt(2),d={x:a.x,y:a.y};Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10?(c.R.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),d=a.x===o.x?{x:l<0?o.x-5+h:o.x+5-h,y:u<0?o.y-h:o.y+h}:{x:l<0?o.x-h:o.x+h,y:u<0?o.y-5+h:o.y+5-h}):c.R.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),r.push(d,s)}else r.push(t[n]);return r},"fixCorners"),D=(0,h.K)((t,e,r)=>{let n=Array(Math.floor((t-e-r)/4)).fill("2 2").join(" ");return`0 ${e} ${n} ${r}`},"generateDashArray"),O=(0,h.K)(function(t,e,r,n,o,s,h,g=!1){let m,y;if(!h)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:x,layout:b}=(0,u.D7)(),w=e.points,k=!1,_=[];for(let t in e.cssCompiledStyles)(0,i.KX)(t)||_.push(e.cssCompiledStyles[t]);if("swimlane"===b){if(s.intersect&&o.intersect&&Array.isArray(w)&&w.length>=2)if(2===w.length)w=[o.intersect(w[0]),s.intersect(w[1])];else{let t=w.slice(1,-1),e=t[0],r=t[t.length-1],n=.5>Math.abs(w[w.length-1].x-r.x)&&.5>Math.abs(w[w.length-1].y-r.y),i=o.intersect(e),a=n?r:s.intersect(r),l=.5>Math.abs(a.x-r.x)&&.5>Math.abs(a.y-r.y);w=[....5>Math.abs(i.x-e.x)&&.5>Math.abs(i.y-e.y)?[]:[i],...t,...l?[]:[a]]}w=A(e,w)}else s.intersect&&o.intersect&&!g&&((w=w.slice(1,e.points.length-1)).unshift(o.intersect(w[0])),w.push(s.intersect(w[w.length-1])));let M=btoa(JSON.stringify(w));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),w=C(e.points,r.get(e.toCluster).node),k=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(w,null,2)),w=C(w.reverse(),r.get(e.fromCluster).node).reverse(),k=!0);let S=w.filter(t=>!Number.isNaN(t.y)),T=v(e.curve);"rounded"!==T&&(S=L(S));let E=d.lUB;switch(T){case"linear":case"rounded":E=d.lUB;break;case"basis":default:E=d.qrM;break;case"cardinal":E=d.y8u;break;case"bumpX":E=d.Wi0;break;case"bumpY":E=d.PGM;break;case"catmullRom":E=d.oDi;break;case"monotoneX":E=d.nVG;break;case"monotoneY":E=d.uxU;break;case"natural":E=d.Xf2;break;case"step":E=d.GZz;break;case"stepAfter":E=d.UPb;break;case"stepBefore":E=d.dyv}let{x:R,y:P}=(0,a.RI)(e),O=(0,d.n8j)().x(R).y(P).curve(E);switch(e.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(e.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let I="rounded"===T?$(j(S,e),5):O(S),N=Array.isArray(e.style)?e.style:[e.style],F=N.find(t=>t?.startsWith("stroke:")),K="";e.animate&&(K="edge-animation-fast"),e.animation&&(K="edge-animation-"+e.animation);let z=!1;if("handDrawn"===e.look){let r=f.A.svg(t);Object.assign([],S);let n=r.path(I,{roughness:.3,seed:x});m+=" transition";let i=(y=(0,d.Ltv)(n).select("path").attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(K?" "+K:"")).attr("style",N?N.reduce((t,e)=>t+";"+e,""):"")).attr("d");y.attr("d",i),t.node().appendChild(y.node())}else{let r=_.join(";"),n=N?N.reduce((t,e)=>t+e+";",""):"",i=(r?r+";"+n+";":n)+";"+(N?N.reduce((t,e)=>t+";"+e,""):"");y=t.append("path").attr("d",I).attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(K?" "+K:"")).attr("style",i),F=i.match(/stroke:([^;]+)/)?.[1],z=!0===e.animate||!!e.animation||r.includes("animation");let o=y.node(),s="function"==typeof o.getTotalLength?o.getTotalLength():0,l=a.Nq[e.arrowTypeStart]||0,u=a.Nq[e.arrowTypeEnd]||0;if("neo"===e.look&&!z){let t="dotted"===e.pattern||"dashed"===e.pattern?D(s,l,u):`0 ${l} ${s-l-u} ${u}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;y.attr("style",r+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",e.id),y.attr("data-points",M),y.attr("data-look",(0,l.KL)(e.look)),e.showPoints&&S.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let B="";((0,u.D7)().flowchart.arrowMarkerAbsolute||(0,u.D7)().state.arrowMarkerAbsolute)&&(B=(B=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let U=!z&&e?.look==="neo";p(y,e,B,h,n,U,F);let V=Math.floor(w.length/2),H=w[V];l._K.isLabelCoordinateInPath(H,y.attr("d"))||(k=!0);let W={};return k&&(W.updatedPath=w),W.originalPath=e.points,W},"insertEdge");function $(t,e){if(t.length<2)return"";let r="",n=t.length;for(let i=0;i<n;i++){let a=t[i],o=t[i-1],s=t[i+1];if(0===i)r+=`M${a.x},${a.y}`;else if(i===n-1)r+=`L${a.x},${a.y}`;else{let t=a.x-o.x,n=a.y-o.y,i=s.x-a.x,l=s.y-a.y,u=Math.hypot(t,n),c=Math.hypot(i,l);if(u<1e-5||c<1e-5){r+=`L${a.x},${a.y}`;continue}let h=t/u,d=n/u,f=i/c,p=l/c,g=Math.acos(Math.max(-1,Math.min(1,h*f+d*p)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${a.x},${a.y}`;continue}let m=Math.min(e/Math.sin(g/2),u/2,c/2),y=a.x-h*m,v=a.y-d*m,x=a.x+f*m,b=a.y+p*m;r+=`L${y},${v}Q${a.x},${a.y} ${x},${b}`}}return r}function I(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function j(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&a.hq[e.arrowTypeStart]){let n=a.hq[e.arrowTypeStart],i=t[0],{angle:o}=I(i,t[1]),s=n*Math.cos(o),l=n*Math.sin(o);r[0].x=i.x+s,r[0].y=i.y+l}let n=t.length;if(n>=2&&a.hq[e.arrowTypeEnd]){let i=a.hq[e.arrowTypeEnd],o=t[n-1],{angle:s}=I(t[n-2],o),l=i*Math.cos(s),u=i*Math.sin(s);r[n-1].x=o.x-l,r[n-1].y=o.y-u}return r}(0,h.K)($,"generateRoundedPath"),(0,h.K)(I,"calculateDeltaAndAngle"),(0,h.K)(j,"applyMarkerOffsetsToPoints");var N=(0,h.K)((t,e,r,n)=>{e.forEach(e=>{ta[e](t,r,n)})},"insertMarkers"),F=(0,h.K)((t,e,r)=>{c.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),K=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),z=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),B=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),U=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),V=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),H=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),W=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Y=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),q=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,u.zj)(),{transitionColor:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${i}`)},"barbNeo"),X=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),G=(0,h.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Z=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Q=(0,h.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),J=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,u.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${i}`)},"only_one_neo"),tt=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,u.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),te=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,u.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${i}`)},"one_or_more_neo"),tr=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,u.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),tn=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|