@onequery/cli 0.1.43-win32-x64 → 0.1.44-darwin-arm64
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/package.json +3 -3
- package/vendor/{x86_64-pc-windows-msvc/onequery/onequery.exe → aarch64-apple-darwin/onequery/onequery} +0 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/CompositeItem-D3nXGtvr.js → aarch64-apple-darwin/runtime/web/assets/CompositeItem-BczSyMtT.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/CompositeList-FRTEqUDK.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/DialogTitle-XJoEl7im.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/Separator-vw4jPN_6.js → aarch64-apple-darwin/runtime/web/assets/Separator-CHfSrIVw.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/_authenticated-BM2yiz99.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/_org_slug-BfXJF28s.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/audit-ClpgHu9B.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/avatar-B8g7WJsq.js → aarch64-apple-darwin/runtime/web/assets/avatar-BJ8wGO2c.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/budget-D6Ev_SML.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/callback-CJcspPuI.js → aarch64-apple-darwin/runtime/web/assets/callback-B6XJzLSF.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/checkbox-BRqndHHY.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/connect-database-BRm1cHow.js → aarch64-apple-darwin/runtime/web/assets/connect-database-JaPJNCsD.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/create-org-D1xCoAP-.js → aarch64-apple-darwin/runtime/web/assets/create-org-BbAFZCln.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/data-source-connection-form-DPfvAEve.js → aarch64-apple-darwin/runtime/web/assets/data-source-connection-form-pf2b-ERK.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/device-CUOuLzJr.js → aarch64-apple-darwin/runtime/web/assets/device-XQc0RI9Z.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/dropdown-menu-Bb-uhONR.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/getDisabledMountTransitionStyles-Co-5TcgR.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/getPseudoElementBounds-BefWKytd.js +12 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/home-BUn6Mfan.js → aarch64-apple-darwin/runtime/web/assets/home-CA1ev4te.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/index-B4tzcC1c.js +10 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/integrations-KI8qBfl_.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/invite._invitationId-BtGsgWJR.js → aarch64-apple-darwin/runtime/web/assets/invite._invitationId-BPdIb9rb.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/routes-Bfxhd-MC.js → aarch64-apple-darwin/runtime/web/assets/routes-BUGLO-p-.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/select--f8ikhXw.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/separator-CWltZvB_.js → aarch64-apple-darwin/runtime/web/assets/separator-C6uGWs7e.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/signin-Bb-ElhcI.js → aarch64-apple-darwin/runtime/web/assets/signin-DZOz5SqL.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/team-lu76z2PF.js → aarch64-apple-darwin/runtime/web/assets/team-BC8PBk76.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/textarea-eJnGRrvE.js → aarch64-apple-darwin/runtime/web/assets/textarea-DeFlZYve.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/theme-toggle-SKykt1po.js → aarch64-apple-darwin/runtime/web/assets/theme-toggle-7vhlmsbU.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/use-optimistic-mutation-F9aL7LPX.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/useBaseQuery-DXS4_Zkx.js → aarch64-apple-darwin/runtime/web/assets/useBaseQuery-O7HCqjpX.js} +1 -1
- package/vendor/{x86_64-pc-windows-msvc/runtime/web/assets/useCompositeItem-BsMHgRi0.js → aarch64-apple-darwin/runtime/web/assets/useCompositeItem-C3Tz1oAb.js} +1 -1
- package/vendor/aarch64-apple-darwin/runtime/web/assets/useQuery-Cbo-5C23.js +1 -0
- package/vendor/aarch64-apple-darwin/runtime/web/assets/useSuspenseQuery-GImltoGU.js +1 -0
- package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/index.html +2 -2
- package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/server/onequery-server.mjs +2702 -2363
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/CompositeList-CX7HHxYw.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/DialogTitle-CzRmdOOz.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/_authenticated-DE-fRDAy.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/_org_slug-8Eun-zo1.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/audit-ChUF-UD4.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/budget-DA47wojH.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/checkbox-DYtEYWlC.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/dropdown-menu-CrGReNWD.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/getDisabledMountTransitionStyles-BYKRz4ha.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/getPseudoElementBounds-InhM-dWf.js +0 -12
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/index-ClzxEm7R.js +0 -10
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/integrations-MfPuDele.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/select-BRK_cJtj.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/use-optimistic-mutation-Dd5ntQWa.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/useQuery-B9mB-acs.js +0 -1
- package/vendor/x86_64-pc-windows-msvc/runtime/web/assets/useSuspenseQuery-Bq3OtiRW.js +0 -1
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260327065242_curious_nightmare.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260403103652_slippery_hellfire_club.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260403112219_gigantic_namora.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420071232_previous_justin_hammer.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420093157_spooky_cassandra_nova.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420101631_even_ogun.sql +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260327065242_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260403103652_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260403112219_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420071232_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420093157_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420101631_snapshot.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/_journal.json +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/initdb.wasm +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/pglite.data +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/pglite.wasm +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/sql-parser/sql_parser_wasm_bg.wasm +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconArrowRight-DsOD7mDl.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconCheck-Gc24xPT2.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconChevronDown-B-39MA7-.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconCoins-C7Nn0L6R.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconHistory-BqAd-xl2.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconLoader2-B3B6M8nQ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconPlus-C3-kRhGX.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/IconX-BQkA009b.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/alert-CgZYtErJ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/api-base-url-DIb6qukm.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/api-client-B2Cc7TWF.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/api-paths-DM-NAvAZ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/app-routes-CnJncMlZ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/auth-bootstrap-query-B7dkGOfQ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/auth-client-DF1BsKzX.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/badge-CwG2ykXV.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/card-BWqhQk-T.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/compiler-runtime-DCc3R3Xn.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/createReactComponent-_L2mp4Ui.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/dist-D0YU0n1N.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/empty-nwzd6339.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/format-date-Ctrh7my1.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/index-BBPJeil4.css +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/input-CG_cIxvO.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/jsx-runtime-DG_AJzB_.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/label-DDLGZnWP.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/link-Cgvqhh5w.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/matchContext-CDajBC0L.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/organization-permissions-BQQ5PJbI.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/organization-query-keys-DwLucsD_.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/query-timing-LGzitMXx.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/queryOptions-BHw87wTZ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/removable-BfDesq3B.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/schemas-n4sxh6jF.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/settings-DbZya6GZ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/src-DCIPwIx0.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/table-Bzsu823v.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/useBaseUiId-BLFGpnYJ.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/useControlled-B8q0aJoo.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/useRender-B2c9_UYd.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/useRouterState-DpT8luFk.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/useValueChanged-C3CBkPge.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/utils-C8DGLIgm.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/xstate-react.esm-U3P0kbzA.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/assets/zod-Ch0Zejov.js +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/favicon.ico +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/amplitude/step1_settings_sidebar.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/amplitude/step2_projects.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/amplitude/step3_project_keys.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/amplitude/step4_api_keys.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/bigquery/step1_service_accounts.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/bigquery/step2_bigquery_roles.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/bigquery/step3_add_key_menu.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/bigquery/step4_create_json_key.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/ga4/step1_service_accounts.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/ga4/step2_create_json_key.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/ga4/step3_add_user_viewer.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/ga4/step4_property_details.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/github-token-guide/step1_signin.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/github-token-guide/step4_token_created_sanitized.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/mixpanel/step1_service_accounts.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/mixpanel/step2_create_service_account.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/mixpanel/step3_credentials.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/mixpanel/step4_project_settings.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/postgresql/step1_create_user.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/postgresql/step2_connection.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/posthog/step1_project_settings.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/posthog/step2_personal_api_keys.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/posthog/step3_create_key_modal.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/rds/step1_connect.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/rds/step2_create_user.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/rds/step3_grant.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/rds/step4_info.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/sentry/step1_personal_tokens.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/sentry/step2_create_token_permissions.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/sentry/step3_organization_slug.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/images/sentry/step4_project_slug.png +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/linear.svg +0 -0
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/web/onequery.svg +0 -0
package/vendor/aarch64-apple-darwin/runtime/web/assets/getDisabledMountTransitionStyles-Co-5TcgR.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,t as n}from"./jsx-runtime-DG_AJzB_.js";import{a as r}from"./link-Cgvqhh5w.js";import{a as i,i as a}from"./useRouterState-DpT8luFk.js";import{A as o,B as s,C as c,D as l,E as u,F as d,H as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,a as C,f as w,j as T,k as E,m as D,p as O,s as k,u as A,w as j,x as M,y as N,z as ee}from"./createReactComponent-_L2mp4Ui.js";import{d as P,f as te,n as ne,o as re,v as F}from"./useBaseUiId-BLFGpnYJ.js";var I=e(t()),ie=[];function L(e){I.useEffect(e,ie)}var R=0,ae=class e{static create(){return new e}currentId=R;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=R,t()},e)}isStarted(){return this.currentId!==R}clear=()=>{this.currentId!==R&&(clearTimeout(this.currentId),this.currentId=R)};disposeEffect=()=>this.clear};function oe(){let e=c(ae.create).current;return L(e.disposeEffect),e}function z(e){let t=c(B,e).current;return t.next=e,M(t.effect),t}function B(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var V=typeof navigator<`u`,H=pe(),se=G(),ce=me(),le=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),ue=H.platform===`MacIntel`&&H.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(H.platform);V&&/firefox/i.test(ce);var U=V&&/apple/i.test(navigator.vendor);V&&/Edg/i.test(ce);var de=V&&/android/i.test(se)||/android/i.test(ce),W=V&&se.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,fe=ce.includes(`jsdom/`);function pe(){if(!V)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function me(){if(!V)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function G(){if(!V)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var he=`data-base-ui-focusable`,ge=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,_e=`ArrowLeft`,ve=`ArrowRight`,ye=`ArrowUp`,be=`ArrowDown`;function xe(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Se(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ee(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function K(e){return`composedPath`in e?e.composedPath()[0]:e.target}function q(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ce(e){return e.matches(`html,body`)}function J(e){return e?.ownerDocument||document}function we(e){return d(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Te(e){return e?e.getAttribute(`role`)===`combobox`&&we(e):!1}function Ee(e){if(!e||fe)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function De(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Oe(e,t,n=!0){return e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Oe(e,t.id,n)])}function ke(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ae(e){e.preventDefault(),e.stopPropagation()}function je(e){return`nativeEvent`in e}function Me(e){return e.mozInputSource===0&&e.isTrusted?!0:de&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ne(e){return fe?!1:!de&&e.width===0&&e.height===0||de&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pe(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Fe(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Ie=[`top`,`right`,`bottom`,`left`],Le=Math.min,Y=Math.max,Re=Math.round,ze=Math.floor,X=e=>({x:e,y:e}),Be={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ve(e,t,n){return Y(e,Le(t,n))}function He(e,t){return typeof e==`function`?e(t):e}function Z(e){return e.split(`-`)[0]}function Ue(e){return e.split(`-`)[1]}function We(e){return e===`x`?`y`:`x`}function Ge(e){return e===`y`?`height`:`width`}function Q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ke(e){return We(Q(e))}function qe(e,t,n){n===void 0&&(n=!1);let r=Ue(e),i=Ke(e),a=Ge(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=nt(o)),[o,nt(o)]}function Je(e){let t=nt(e);return[Ye(e),t,Ye(t)]}function Ye(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Xe=[`left`,`right`],Ze=[`right`,`left`],Qe=[`top`,`bottom`],$e=[`bottom`,`top`];function et(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ze:Xe:t?Xe:Ze;case`left`:case`right`:return t?Qe:$e;default:return[]}}function tt(e,t,n,r){let i=Ue(e),a=et(Z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ye)))),a}function nt(e){let t=Z(e);return Be[t]+e.slice(t.length)}function rt(e){return{top:0,right:0,bottom:0,left:0,...e}}function it(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:rt(e)}function at(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var ot=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`].join(`,`),st=typeof Element>`u`,ct=st?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,lt=!st&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},ut=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):ut(e.parentNode))},dt=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},ft=function(e,t,n){if(ut(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ot));return t&&ct.call(e,ot)&&r.unshift(e),r=r.filter(n),r},pt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!ut(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=pt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{ct.call(a,ot)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!ut(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=pt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},mt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},ht=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||dt(e))&&!mt(e)?0:e.tabIndex},gt=function(e,t){var n=ht(e);return n<0&&t&&!mt(e)?0:n},_t=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},vt=function(e){return e.tagName===`INPUT`},yt=function(e){return vt(e)&&e.type===`hidden`},bt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},xt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},St=function(e){if(!e.name)return!0;var t=e.form||lt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=xt(r,e.form);return!i||i===e},Ct=function(e){return vt(e)&&e.type===`radio`},wt=function(e){return Ct(e)&&!St(e)},Tt=function(e){var t=e&<(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=lt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Et=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Dt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=ct.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(ct.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=lt(e);if(o&&!o.shadowRoot&&r(o)===!0)return Et(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Tt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Et(e);return!1},Ot=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return ct.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},kt=function(e,t){return!(t.disabled||yt(t)||Dt(t,e)||bt(t)||Ot(t))},At=function(e,t){return!(wt(t)||ht(t)<0||!kt(e,t))},jt=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Mt=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=gt(a,i),s=i?Mt(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(_t).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Nt=function(e,t){return t||={},Mt(t.getShadowRoot?pt([e],t.includeContainer,{filter:At.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:jt}):ft(e,t.includeContainer,At.bind(null,t)))},Pt=function(e,t){return t||={},t.getShadowRoot?pt([e],t.includeContainer,{filter:kt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ft(e,t.includeContainer,kt.bind(null,t))},Ft=function(e,t){if(t||={},!e)throw Error(`No node provided`);return ct.call(e,ot)===!1?!1:At(t,e)},It=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function Lt(e,t){let n=Nt(e,It()),r=n.length;if(r===0)return;let i=xe(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Rt(e){return Lt(J(e).body,1)||e}function zt(e){return Lt(J(e).body,-1)||e}function Bt(e,t){if(!e)return null;let n=Nt(J(e).body,It()),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Vt(e){return Bt(e,1)}function Ht(e){return Bt(e,-1)}function Ut(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Se(n,r)}function Wt(e){Nt(e,It()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Gt(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Kt(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var qt=class{nodesRef={current:[]};events=Kt();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Jt=n(),Yt=I.createContext(null),Xt=I.createContext(null),Zt=()=>I.useContext(Yt)?.id||null,Qt=e=>{let t=I.useContext(Xt);return e??t};function $t(e){let t=F(),n=Qt(e),r=Zt();return M(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function en(e){let{children:t,id:n}=e,r=Zt();return(0,Jt.jsx)(Yt.Provider,{value:I.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function tn(e){let{children:t,externalTree:n}=e,r=c(()=>n??new qt).current;return(0,Jt.jsx)(Xt.Provider,{value:r,children:t})}function nn(e){return`data-base-ui-${e}`}var rn={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},an={...rn,position:`fixed`,top:0,left:0},on={...rn,position:`absolute`},sn=null;globalThis.requestAnimationFrame;var cn=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},ln=class e{static create(){return new e}static request(e){return cn.request(e)}static cancel(e){return cn.cancel(e)}currentId=sn;request(e){this.cancel(),this.currentId=cn.request(()=>{this.currentId=sn,e()})}cancel=()=>{this.currentId!==sn&&(cn.cancel(this.currentId),this.currentId=sn)};disposeEffect=()=>this.cancel};function un(){let e=c(ln.create).current;return L(e.disposeEffect),e}function dn(e){return e?.ownerDocument||document}var fn=I.forwardRef(function(e,t){let[n,r]=I.useState();M(()=>{U&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Jt.jsx)(`span`,{...e,ref:t,style:an,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),pn=e(r()),mn=I.createContext(null),hn=()=>I.useContext(mn),gn=nn(`portal`);function _n(e={}){let{ref:t,container:n,componentProps:r=w,elementProps:i,elementState:a}=e,o=F(),s=hn()?.portalNode,[c,l]=I.useState(null),[u,d]=I.useState(null),f=b(e=>{e!==null&&d(e)}),p=I.useRef(null);M(()=>{if(n===null){p.current&&(p.current=null,d(null),l(null));return}if(o==null)return;let e=(n&&(m(n)?n:n.current))??s??document.body;if(e==null){p.current&&(p.current=null,d(null),l(null));return}p.current!==e&&(p.current=e,d(null),l(e))},[n,s,o]);let h=C(`div`,r,{ref:[t,f],state:a,props:[{id:o,[gn]:``},i]});return{portalNode:u,portalSubtree:c&&h?pn.createPortal(h,c):null}}var vn=I.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,...s}=e,{portalNode:c,portalSubtree:l}=_n({container:r,ref:t,componentProps:e,elementProps:s}),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(null),[m,h]=I.useState(null),g=m?.modal,_=m?.open,v=typeof o==`boolean`?o:!!m&&!m.modal&&m.open&&!!c;I.useEffect(()=>{if(!c||g)return;function e(e){c&&e.relatedTarget&&Ut(e)&&(e.type===`focusin`?Gt:Wt)(c)}return c.addEventListener(`focusin`,e,!0),c.addEventListener(`focusout`,e,!0),()=>{c.removeEventListener(`focusin`,e,!0),c.removeEventListener(`focusout`,e,!0)}},[c,g]),I.useEffect(()=>{!c||_||Gt(c)},[_,c]);let y=I.useMemo(()=>({beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:c,setFocusManagerState:h}),[c]);return(0,Jt.jsxs)(I.Fragment,{children:[l,(0,Jt.jsxs)(mn.Provider,{value:y,children:[v&&c&&(0,Jt.jsx)(fn,{"data-type":`outside`,ref:u,onFocus:e=>{Ut(e,c)?f.current?.focus():zt(m?m.domReference:null)?.focus()}}),v&&c&&(0,Jt.jsx)(`span`,{"aria-owns":c.id,style:A}),c&&pn.createPortal(n,c),v&&c&&(0,Jt.jsx)(fn,{"data-type":`outside`,ref:d,onFocus:e=>{Ut(e,c)?p.current?.focus():(Rt(m?m.domReference:null)?.focus(),m?.closeOnFocusOut&&m?.onOpenChange(!1,ne(`focus-out`,e.nativeEvent)))}})]})]})});function yn(e){return e==null?e:`current`in e?e.current:e}function bn(e,t,n){let{reference:r,floating:i}=e,a=Q(t),o=Ke(t),s=Ge(o),c=Z(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ue(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function xn(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=He(t,e),p=it(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=at(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=at(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Sn=50,Cn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:xn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bn(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Sn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=bn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},wn=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=He(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Z(r),_=Q(o),v=Z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[nt(o)]:Je(o)),x=p!==`none`;!d&&x&&b.push(...tt(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=qe(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Q(t))||T.every(e=>Q(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Q(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Tn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function En(e){return Ie.some(t=>e[t]>=0)}var Dn=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=He(e,t);switch(i){case`referenceHidden`:{let e=Tn(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:En(e)}}}case`escaped`:{let e=Tn(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:En(e)}}}default:return{}}}}},On=new Set([`left`,`top`]);async function kn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Z(n),s=Ue(n),c=Q(n)===`y`,l=On.has(o)?-1:1,u=a&&c?-1:1,d=He(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var An=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await kn(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},jn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=He(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Q(Z(i)),p=We(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Ve(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Ve(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Mn=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=He(e,t),u={x:n,y:r},d=Q(i),f=We(d),p=u[f],m=u[d],h=He(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=On.has(Z(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Nn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=He(e,t),u=await o.detectOverflow(t,l),d=Z(i),f=Ue(i),p=Q(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Le(h-u[g],v),x=Le(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Y(u.left,0),t=Y(u.right,0),n=Y(u.top,0),r=Y(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Y(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Y(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Pn(e){let t=j(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=d(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Re(n)!==a||Re(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Fn(e){return v(e)?e:e.contextElement}function In(e){let t=Fn(e);if(!d(t))return X(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Pn(t),o=(a?Re(n.width):n.width)/r,s=(a?Re(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ln=X(0);function Rn(e){let t=h(e);return!f()||!t.visualViewport?Ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==h(e)?!1:t}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Fn(e),o=X(1);t&&(r?v(r)&&(o=In(r)):o=In(e));let s=zn(a,n,r)?Rn(a):X(0),c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=h(a),t=r&&v(r)?h(r):r,n=e,i=l(n);for(;i&&r&&t!==n;){let e=In(i),t=i.getBoundingClientRect(),r=j(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=a,u+=o,n=h(i),i=l(n)}}return at({width:d,height:f,x:c,y:u})}function Vn(e,t){let n=E(e).scrollLeft;return t?t.left+n:Bn(u(e)).left+n}function Hn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Vn(e,n),y:n.top+t.scrollTop}}function Un(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=u(r),s=t?S(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=X(1),f=X(0),p=d(r);if((p||!p&&!a)&&((_(r)!==`body`||y(o))&&(c=E(r)),p)){let e=Bn(r);l=In(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let m=o&&!p&&!a?Hn(o,c):X(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-c.scrollTop*l.y+f.y+m.y}}function Wn(e){return Array.from(e.getClientRects())}function Gn(e){let t=u(e),n=E(e),r=e.ownerDocument.body,i=Y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Vn(e),s=-n.scrollTop;return j(r).direction===`rtl`&&(o+=Y(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Kn=25;function qn(e,t){let n=h(e),r=u(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=f();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Vn(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Kn&&(a-=o)}else l<=Kn&&(a+=l);return{width:a,height:o,x:s,y:c}}function Jn(e,t){let n=Bn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=d(e)?In(e):X(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Yn(e,t,n){let r;if(t===`viewport`)r=qn(e,n);else if(t===`document`)r=Gn(u(e));else if(v(t))r=Jn(t,n);else{let n=Rn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return at(r)}function Xn(e,t){let n=T(e);return n===t||!v(n)||p(n)?!1:j(n).position===`fixed`||Xn(n,t)}function Zn(e,t){let n=t.get(e);if(n)return n;let r=o(e,[],!1).filter(e=>v(e)&&_(e)!==`body`),i=null,a=j(e).position===`fixed`,s=a?T(e):e;for(;v(s)&&!p(s);){let t=j(s),n=g(s);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||y(s)&&!n&&Xn(e,s))?r=r.filter(e=>e!==s):i=t,s=T(s)}return t.set(e,r),r}function Qn(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?S(t)?[]:Zn(t,this._c):[].concat(n),r],o=Yn(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Yn(t,a[e],i);s=Y(n.top,s),c=Le(n.right,c),l=Le(n.bottom,l),u=Y(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function $n(e){let{width:t,height:n}=Pn(e);return{width:t,height:n}}function er(e,t,n){let r=d(t),i=u(t),a=n===`fixed`,o=Bn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=X(0);function l(){c.x=Vn(i)}if(r||!r&&!a)if((_(t)!==`body`||y(i))&&(s=E(t)),r){let e=Bn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let f=i&&!r&&!a?Hn(i,s):X(0);return{x:o.left+s.scrollLeft-c.x-f.x,y:o.top+s.scrollTop-c.y-f.y,width:o.width,height:o.height}}function tr(e){return j(e).position===`static`}function nr(e,t){if(!d(e)||j(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return u(e)===n&&(n=n.ownerDocument.body),n}function rr(e,t){let n=h(e);if(S(e))return n;if(!d(e)){let t=T(e);for(;t&&!p(t);){if(v(t)&&!tr(t))return t;t=T(t)}return n}let r=nr(e,t);for(;r&&s(r)&&tr(r);)r=nr(r,t);return r&&p(r)&&tr(r)&&!g(r)?n:r||x(e)||n}var ir=async function(e){let t=this.getOffsetParent||rr,n=this.getDimensions,r=await n(e.floating);return{reference:er(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ar(e){return j(e).direction===`rtl`}var or={convertOffsetParentRelativeRectToViewportRelativeRect:Un,getDocumentElement:u,getClippingRect:Qn,getOffsetParent:rr,getElementRects:ir,getClientRects:Wn,getDimensions:$n,getScale:In,isElement:v,isRTL:ar};function sr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cr(e,t){let n=null,r,i=u(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ze(d),h=ze(i.clientWidth-(u+f)),g=ze(i.clientHeight-(d+p)),_=ze(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Y(0,Le(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!sr(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function lr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver==`function`,layoutShift:c=typeof IntersectionObserver==`function`,animationFrame:l=!1}=r,u=Fn(e),d=i||a?[...u?o(u):[],...t?o(t):[]]:[];d.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let f=u&&c?cr(u,n):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;(e=m)==null||e.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let h,g=l?Bn(e):null;l&&_();function _(){let t=Bn(e);g&&!sr(g,t)&&n(),g=t,h=requestAnimationFrame(_)}return n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),f?.(),(e=m)==null||e.disconnect(),m=null,l&&cancelAnimationFrame(h)}}var ur=An,dr=jn,fr=wn,pr=Nn,mr=Dn,hr=Mn,gr=(e,t,n)=>{let r=new Map,i={platform:or,...n},a={...i.platform,_c:r};return Cn(e,t,{...i,platform:a})},_r=typeof document<`u`?I.useLayoutEffect:function(){};function vr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!vr(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function yr(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function br(e,t){let n=yr(e);return Math.round(t*n)/n}function xr(e){let t=I.useRef(e);return _r(()=>{t.current=e}),t}function Sr(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=I.useState(r);vr(f,r)||p(r);let[m,h]=I.useState(null),[g,_]=I.useState(null),v=I.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=I.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=I.useRef(null),C=I.useRef(null),w=I.useRef(u),T=c!=null,E=xr(c),D=xr(i),O=xr(l),k=I.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),gr(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!vr(w.current,t)&&(w.current=t,pn.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);_r(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=I.useRef(!1);_r(()=>(A.current=!0,()=>{A.current=!1}),[]),_r(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=I.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=I.useMemo(()=>({reference:b,floating:x}),[b,x]),N=I.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=br(M.floating,u.x),r=br(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...yr(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Cr=(e,t)=>{let n=ur(e);return{name:n.name,fn:n.fn,options:[e,t]}},wr=(e,t)=>{let n=dr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tr=(e,t)=>({fn:hr(e).fn,options:[e,t]}),Er=(e,t)=>{let n=fr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dr=(e,t)=>{let n=pr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Or=(e,t)=>{let n=mr(e);return{name:n.name,fn:n.fn,options:[e,t]}},kr={intentional:`onClick`,sloppy:`onPointerDown`};function Ar(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function jr(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`referenceElement`),s=n.useState(`domReferenceElement`),{onOpenChange:c,dataRef:l}=n.context,{enabled:u=!0,escapeKey:m=!0,outsidePress:h=!0,outsidePressEvent:g=`sloppy`,referencePress:_=!1,referencePressEvent:y=`sloppy`,ancestorScroll:x=!1,bubbles:S,externalTree:C}=t,w=Qt(C),E=b(typeof h==`function`?h:()=>!1),D=typeof h==`function`?E:h,O=I.useRef(!1),{escapeKey:k,outsidePress:A}=Ar(S),M=I.useRef(null),N=oe(),ee=oe(),F=b(()=>{ee.clear(),l.current.insideReactTree=!1}),ie=I.useRef(!1),L=I.useRef(``),R=b(e=>{L.current=e.pointerType}),z=b(()=>{let e=L.current,t=e===`pen`||!e?`mouse`:e,n=typeof g==`function`?g():g;return typeof n==`string`?n:n[t]}),B=b(e=>{if(!r||!u||!m||e.key!==`Escape`||ie.current)return;let t=l.current.floatingContext?.nodeId,i=w?Oe(w.nodesRef.current,t):[];if(!k&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let a=ne(re,je(e)?e.nativeEvent:e);n.setOpen(!1,a),!k&&!a.isPropagationAllowed&&e.stopPropagation()}),V=b(e=>{let t=z();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}),H=b(()=>{l.current.insideReactTree=!0,ee.start(0,F)}),se=b((e,t=!1)=>{if(V(e)){F();return}if(l.current.insideReactTree){F();return}if(z()===`intentional`&&t||typeof D==`function`&&!D(e))return;let r=K(e),i=`[${nn(`inert`)}]`,a=J(n.select(`floatingElement`)).querySelectorAll(i),o=n.context.triggerElements;if(r&&(o.hasElement(r)||o.hasMatchingElement(e=>Se(e,r))))return;let s=v(r)?r:null;for(;s&&!p(s);){let e=T(s);if(p(e)||!v(e))break;s=e}if(a.length&&v(r)&&!Ce(r)&&!Se(r,n.select(`floatingElement`))&&Array.from(a).every(e=>!Se(s,e)))return;if(d(r)&&!(`touches`in e)){let t=p(r),n=j(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}let c=l.current.floatingContext?.nodeId,u=w&&Oe(w.nodesRef.current,c).some(t=>q(e,t.context?.elements.floating));if(q(e,n.select(`floatingElement`))||q(e,n.select(`domReferenceElement`))||u)return;let f=w?Oe(w.nodesRef.current,c):[];if(f.length>0){let e=!0;if(f.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,ne(te,e)),F()}),ce=b(e=>{z()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!u||q(e,n.select(`floatingElement`))||q(e,n.select(`domReferenceElement`))||se(e)}),le=b(e=>{if(z()!==`sloppy`||!n.select(`open`)||!u||q(e,n.select(`floatingElement`))||q(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(M.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}),ue=b(e=>{let t=K(e);function n(){le(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}),U=b(e=>{let t=O.current;if(O.current=!1,N.clear(),e.type===`mousedown`&&M.current&&!M.current.dismissOnMouseDown)return;let n=K(e);function r(){e.type===`pointerdown`?ce(e):se(e,t),n?.removeEventListener(e.type,r)}n?.addEventListener(e.type,r)}),de=b(e=>{if(z()!==`sloppy`||!M.current||q(e,n.select(`floatingElement`))||q(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-M.current.startX),i=Math.abs(t.clientY-M.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(M.current.dismissOnTouchEnd=!0),a>10&&(se(e),N.clear(),M.current=null)}),W=b(e=>{let t=K(e);function n(){de(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}),fe=b(e=>{z()!==`sloppy`||!M.current||q(e,n.select(`floatingElement`))||q(e,n.select(`domReferenceElement`))||(M.current.dismissOnTouchEnd&&se(e),N.clear(),M.current=null)}),pe=b(e=>{let t=K(e);function n(){fe(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)});I.useEffect(()=>{if(!r||!u)return;l.current.__escapeKeyBubbles=k,l.current.__outsidePressBubbles=A;let e=new ae;function t(e){n.setOpen(!1,ne(P,e))}function c(){e.clear(),ie.current=!0}function d(){e.start(f()?5:0,()=>{ie.current=!1})}let p=J(i);p.addEventListener(`pointerdown`,R,!0),m&&(p.addEventListener(`keydown`,B),p.addEventListener(`compositionstart`,c),p.addEventListener(`compositionend`,d)),D&&(p.addEventListener(`click`,U,!0),p.addEventListener(`pointerdown`,U,!0),p.addEventListener(`touchstart`,ue,!0),p.addEventListener(`touchmove`,W,!0),p.addEventListener(`touchend`,pe,!0),p.addEventListener(`mousedown`,U,!0));let h=[];return x&&(v(s)&&(h=o(s)),v(i)&&(h=h.concat(o(i))),!v(a)&&a&&a.contextElement&&(h=h.concat(o(a.contextElement)))),h=h.filter(e=>e!==p.defaultView?.visualViewport),h.forEach(e=>{e.addEventListener(`scroll`,t,{passive:!0})}),()=>{p.removeEventListener(`pointerdown`,R,!0),m&&(p.removeEventListener(`keydown`,B),p.removeEventListener(`compositionstart`,c),p.removeEventListener(`compositionend`,d)),D&&(p.removeEventListener(`click`,U,!0),p.removeEventListener(`pointerdown`,U,!0),p.removeEventListener(`touchstart`,ue,!0),p.removeEventListener(`touchmove`,W,!0),p.removeEventListener(`touchend`,pe,!0),p.removeEventListener(`mousedown`,U,!0)),h.forEach(e=>{e.removeEventListener(`scroll`,t)}),e.clear(),O.current=!1}},[l,i,a,s,m,D,r,c,x,u,k,A,B,se,U,ce,ue,W,pe,R,n]),I.useEffect(F,[D,F]);let me=I.useMemo(()=>({onKeyDown:B,..._&&{[kr[y]]:e=>{n.setOpen(!1,ne(`trigger-press`,e.nativeEvent))},...y!==`intentional`&&{onClick(e){n.setOpen(!1,ne(`trigger-press`,e.nativeEvent))}}}}),[B,n,_,y]),G=b(e=>{let t=K(e.nativeEvent);!Se(n.select(`floatingElement`),t)||e.button!==0||(O.current=!0)}),he=b(e=>{!r||!u||e.button!==0||(O.current=!0)}),ge=I.useMemo(()=>({onKeyDown:B,onPointerDown:G,onMouseDown:G,onMouseUp:G,onClickCapture:H,onMouseDownCapture(e){H(),he(e)},onPointerDownCapture(e){H(),he(e)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[B,G,H,he]);return I.useMemo(()=>u?{reference:me,floating:ge,trigger:me}:{},[u,me,ge])}var Mr=Symbol(`NOT_FOUND`);function Nr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Pr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Fr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Ir=e=>Array.isArray(e)?e:[e];function Lr(e){let t=Array.isArray(e[0])?e[0]:e;return Fr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Rr(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function zr(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Mr},put(e,n){t={key:e,value:n}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Br(e,t){let n=[];function r(e){let r=n.findIndex(n=>t(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return Mr}function i(t,i){r(t)===Mr&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var Vr=(e,t)=>e===t;function Hr(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function Ur(e,t){let{equalityCheck:n=Vr,maxSize:r=1,resultEqualityCheck:i}=typeof t==`object`?t:{equalityCheck:t},a=Hr(n),o=0,s=r<=1?zr(a):Br(r,a);function c(){let t=s.get(arguments);if(t===Mr){if(t=e.apply(null,arguments),o++,i){let e=s.getEntries().find(e=>i(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var Wr=class{constructor(e){this.value=e}deref(){return this.value}},Gr=typeof WeakRef<`u`?WeakRef:Wr,Kr=0,qr=1;function Jr(){return{s:Kr,v:void 0,o:null,p:null}}function Yr(e,t={}){let n=Jr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Jr(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Jr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===qr)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Gr(c):c}return s.s=qr,s.v=c,c}return o.clearCache=()=>{n=Jr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Xr(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Nr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Yr,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Ir(c),p=Ir(u),m=Lr(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Rr(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var Zr=Xr(Yr),Qr=Object.assign((e,t=Zr)=>{Pr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Qr});Xr({memoize:Ur,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});var $=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(N(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},$r=i(),ei=a(),ti=D(19)?ri:ii;function ni(e,t,n,r,i){return ti(e,t,n,r,i)}function ri(e,t,n,r,i){let a=I.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,$r.useSyncExternalStore)(e.subscribe,a,a)}function ii(e,t,n,r,i){return(0,ei.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ai=class e{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){e.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||e.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){let t={...this.state};e.prototype.setState.call(this,t)}},oi=class extends ai{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}controlledValues=new Map;useSyncedValue(e,t){I.useDebugValue(e),M(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;M(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;M(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t,n){I.useDebugValue(e);let r=this,i=t!==void 0;this.controlledValues.has(e)||(this.controlledValues.set(e,i),!i&&!Object.is(this.state[e],n)&&super.setState({...this.state,[e]:n})),M(()=>{i&&!Object.is(r.state[e],t)&&super.setState({...r.state,[e]:t})},[r,e,t,n,i])}set(e,t){this.controlledValues.get(e)!==!0&&super.set(e,t)}update(e){let t={...e};for(let e in t)if(Object.hasOwn(t,e)&&this.controlledValues.get(e)===!0){delete t[e];continue}super.update(t)}setState(e){let t={...e};for(let e in t)if(Object.hasOwn(t,e)&&this.controlledValues.get(e)===!0){delete t[e];continue}super.setState({...this.state,...t})}select=(e,t,n,r)=>{let i=this.selectors[e];return i(this.state,t,n,r)};useState=(e,t,n,r)=>{I.useDebugValue(e);let i=this.selectors[e];return ni(this,i,t,n,r)};useContextCallback(e,t){I.useDebugValue(e);let n=b(t??O);this.context[e]=n}useStateSetter(e){let t=I.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},si={open:$(e=>e.open),domReferenceElement:$(e=>e.domReferenceElement),referenceElement:$(e=>e.positionReference??e.referenceElement),floatingElement:$(e=>e.floatingElement),floatingId:$(e=>e.floatingId)},ci=class extends oi{constructor(e){let{nested:t,noEmit:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Kt(),nested:t,noEmit:n,triggerElements:i},si)}setOpen=(e,t)=>{if((!e||!this.state.open||Fe(t.event))&&(this.context.dataRef.current.openEvent=e?t.event:void 0),!this.context.noEmit){let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)}this.context.onOpenChange?.(e,t)}};function li(e,t=!1,n=!1){let[r,i]=I.useState(e&&t?`idle`:void 0),[a,o]=I.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),M(()=>{if(!e&&a&&r!==`ending`&&n){let e=ln.request(()=>{i(`ending`)});return()=>{ln.cancel(e)}}},[e,a,r,n]),M(()=>{if(!e||t)return;let n=ln.request(()=>{i(void 0)});return()=>{ln.cancel(n)}},[t,e]),M(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=ln.request(()=>{i(`idle`)});return()=>{ln.cancel(n)}},[t,e,a,i,r]),I.useMemo(()=>({mounted:a,setMounted:o,transitionStatus:r}),[a,r])}var ui=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),di={[ui.startingStyle]:``},fi={[ui.endingStyle]:``},pi={transitionStatus(e){return e===`starting`?di:e===`ending`?fi:null}};function mi(e,t=!1,n=!0){let r=un();return b((i,a=null)=>{r.cancel();function o(){pn.flushSync(i)}let s=yn(e);if(s==null)return;let c=s;if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{function e(){let e=ui.startingStyle;if(!c.hasAttribute(e)){r.request(i);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),i())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function i(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||o()}).catch(()=>{let e=c.getAnimations();if(n){if(a?.aborted)return;o()}else e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&i()})}if(t){e();return}r.request(i)}})}function hi(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=b(i),o=mi(r,n,!1);I.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function gi(e,t){let n=I.useRef(null),r=I.useRef(null);return I.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function _i(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=gi(e,n),o=b(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return M(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function vi(e){let t=e.useState(`open`);M(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function yi(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=li(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=b(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return hi({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var bi=class{constructor(){this.elements=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elements.delete(n),this.elements.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elements.delete(t),this.idMap.delete(e))}hasElement(e){return this.elements.has(e)}hasMatchingElement(e){for(let t of this.elements)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}};function xi(){return new ci({open:!1,floatingElement:null,referenceElement:null,triggerElements:new bi,floatingId:``,nested:!1,noEmit:!1,onOpenChange:void 0})}function Si(){return{open:!1,mounted:!1,transitionStatus:`idle`,floatingRootContext:xi(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:w,inactiveTriggerProps:w,popupProps:w}}var Ci={open:$(e=>e.open),mounted:$(e=>e.mounted),transitionStatus:$(e=>e.transitionStatus),floatingRootContext:$(e=>e.floatingRootContext),preventUnmountingOnClose:$(e=>e.preventUnmountingOnClose),payload:$(e=>e.payload),activeTriggerId:$(e=>e.activeTriggerId),activeTriggerElement:$(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:$((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:$((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:$((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:$((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:$(e=>e.popupProps),popupElement:$(e=>e.popupElement),positionerElement:$(e=>e.positionerElement)};function wi(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=F(),a=Zt()!=null,o=c(()=>new ci({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new bi,floatingId:i,nested:a,noEmit:e.noEmit||!1})).current;return M(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=v(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o.context.noEmit=e.noEmit||!1,o}function Ti(e={}){let{nodeId:t,externalTree:n}=e,r=wi(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=I.useState(null),c=I.useRef(null),l=Qt(n);M(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=Sr({...e,elements:{...a,...o&&{reference:o}}}),d=I.useCallback(e=>{let t=v(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=I.useState(null),[m,h]=I.useState(null);i.useSyncedValue(`referenceElement`,f),i.useSyncedValue(`domReferenceElement`,v(f)?f:null),i.useSyncedValue(`floatingElement`,m);let g=I.useCallback(e=>{(v(e)||e===null)&&(c.current=e,p(e)),(v(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!v(e))&&u.refs.setReference(e)},[u.refs,p]),_=I.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=I.useMemo(()=>({...u.refs,setReference:g,setFloating:_,setPositionReference:d,domReference:c}),[u.refs,g,_,d]),b=I.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=I.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return M(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),I.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Ei(e){let{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,a=F(),o=Zt()!=null,s=t.useState(`open`),l=t.useState(`activeTriggerElement`),u=t.useState(r?`popupElement`:`positionerElement`),d=t.context.triggerElements,f=c(()=>new ci({open:s,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:i,floatingId:a,nested:o,noEmit:n})).current;return M(()=>{let e={open:s,floatingId:a,referenceElement:l,floatingElement:u};v(l)&&(e.domReferenceElement=l),f.state.positionReference===f.state.referenceElement&&(e.positionReference=l),f.update(e)},[s,a,l,u,f]),f.context.onOpenChange=i,f.context.nested=o,f.context.noEmit=n,f}function Di(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=I.useCallback(t=>Oi(t,e,`reference`),t),o=I.useCallback(t=>Oi(t,e,`floating`),n),s=I.useCallback(t=>Oi(t,e,`item`),r),c=I.useCallback(t=>Oi(t,e,`trigger`),i);return I.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function Oi(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[he]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;o<t.length;o+=1){let s,c=t[o]?.[n];s=typeof c==`function`?e?c(e):null:c,s&&ki(a,s,i,r)}return ki(a,e,i,r),a}function ki(e,t,n,r){for(let i in t){let a=t[i];n&&(i===`active`||i===`selected`)||(i.startsWith(`on`)?(r.has(i)||r.set(i,[]),typeof a==`function`&&(r.get(i)?.push(a),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Ai=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=ui.startingStyle]=`startingStyle`,e[e.endingStyle=ui.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e}({}),ji=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Mi={[ji.popupOpen]:``},Ni={[ji.popupOpen]:``,[ji.pressed]:``},Pi={[Ai.open]:``},Fi={[Ai.closed]:``},Ii={[Ai.anchorHidden]:``},Li={open(e){return e?Mi:null}},Ri={open(e){return e?Ni:null}},zi={open(e){return e?Pi:Fi},anchorHidden(e){return e?Ii:null}},Bi=I.createContext(void 0);function Vi(){return I.useContext(Bi)?.direction??`ltr`}var Hi=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=He(e,t)||{};if(l==null)return{};let f=it(u),p={x:n,y:r},m=Ke(i),h=Ge(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Ve(k,j,A),N=!c.arrow&&Ue(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,ee=N?j<k?j-k:j-A:0;return{[m]:p[m]+ee,data:{[m]:M,centerOffset:j-M-ee,...N&&{alignmentOffset:ee}},reset:N}}}),Ui=(e,t)=>({...Hi(e),options:[e,t]}),Wi={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Or().fn(e)).data?.referenceHidden||a}}}},Gi={sideX:`left`,sideY:`top`},Ki={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=h(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Gi};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=dn(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Z(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let g=f===`left`?`right`:Gi.sideX,_=f===`top`?`bottom`:Gi.sideY;return{x:p,y:m,data:{sideX:g,sideY:_}}}};function qi(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Ji(e,t,n){let{rects:r,placement:i}=e;return{side:qi(t,Z(i),n),align:Ue(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Yi(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:x}=e,[S,C]=I.useState(null);!m&&S!==null&&C(null);let w=h.side||`flip`,T=h.align||`flip`,E=h.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=b(D),k=D?O:t,A=z(t),j=Vi()===`rtl`,N=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":j?`left`:`right`,"inline-start":j?`right`:`left`}[r],ee=a===`center`?N:`${N}-${a}`,P=c,te=r===`bottom`?1:0,ne=r===`top`?1:0,re=r===`right`?1:0,F=r===`left`?1:0;typeof P==`number`?P={top:P+te,right:P+F,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+F,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ie={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},L=I.useRef(null),R=z(i),ae=z(o),oe=[Cr(e=>{let t=Ji(e,r,j),n=typeof R.current==`function`?R.current(t):R.current,i=typeof ae.current==`function`?ae.current(t):ae.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,j,r])],B=T===`none`&&w!==`shift`,V=!B&&(l||g||w===`shift`),H=w===`none`?null:Er({...ie,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!g&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),se=B?null:wr(e=>{let t=dn(e.elements.floating).documentElement;return{...ie,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:V,limiter:l||g?void 0:Tr(e=>{if(!L.current)return{};let{width:t,height:n}=L.current.getBoundingClientRect(),r=Q(Z(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ie,l,g,P,T]);w===`shift`||T===`shift`||a===`center`?oe.push(se,H):oe.push(H,se),oe.push(Dr({...ie,apply({elements:{floating:e},rects:{reference:t},availableWidth:n,availableHeight:r}){Object.entries({"--available-width":`${n}px`,"--available-height":`${r}px`,"--anchor-width":`${t.width}px`,"--anchor-height":`${t.height}px`}).forEach(([t,n])=>{e.style.setProperty(t,n)})}}),Ui(()=>({element:L.current||document.createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Z(a),l=Q(c),u=L.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Ji(e,r,j)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,V&&l===`y`&&b?S:x),{}}},Wi,v),M(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[m,p]);let ce=I.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:le,elements:ue,x:U,y:de,middlewareData:W,update:fe,placement:pe,context:me,isPositioned:G,floatingStyles:he}=Ti({rootContext:p,placement:ee,middleware:oe,strategy:n,whileElementsMounted:f?void 0:(...e)=>lr(...e,ce),nodeId:_,externalTree:x}),{sideX:ge,sideY:_e}=W.adaptiveOrigin||Gi,ve=G?n:`fixed`,ye=I.useMemo(()=>v?{position:ve,[ge]:U,[_e]:de}:{position:ve,...he},[v,ve,ge,U,_e,de,he]),be=I.useRef(null);M(()=>{if(!m)return;let e=A.current,t=typeof e==`function`?e():e,n=(Xi(t)?t.current:t)||null;n!==be.current&&(le.setPositionReference(n),be.current=n)},[m,le,k,A]),I.useEffect(()=>{if(!m)return;let e=A.current;typeof e!=`function`&&Xi(e)&&e.current!==be.current&&(le.setPositionReference(e.current),be.current=e.current)},[m,le,k,A]),I.useEffect(()=>{if(f&&m&&ue.domReference&&ue.floating)return lr(ue.domReference,ue.floating,fe,ce)},[f,m,ue,fe,ce]);let xe=Z(pe),Se=qi(r,xe,j),K=Ue(pe)||`center`,q=!!W.hide?.referenceHidden;M(()=>{y&&m&&G&&C(xe)},[y,m,G,xe]);let Ce=I.useMemo(()=>({position:`absolute`,top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),J=W.arrow?.centerOffset!==0;return I.useMemo(()=>({positionerStyles:ye,arrowStyles:Ce,arrowRef:L,arrowUncentered:J,side:Se,align:K,physicalSide:xe,anchorHidden:q,refs:le,context:me,isPositioned:G,update:fe}),[ye,Ce,L,J,Se,K,xe,q,le,me,G,fe])}function Xi(e){return e!=null&&`current`in e}function Zi(e){return e===`starting`?k:w}export{ze as $,hn as A,$t as B,ai as C,le as Ct,yn as D,jr as E,oe as Et,an as F,zt as G,Qt as H,on as I,It as J,Vt as K,nn as L,dn as M,ln as N,vn as O,un as P,Nt as Q,en as R,oi as S,U as St,$ as T,ae as Tt,qt as U,Zt as V,Rt as W,Pt as X,Ut as Y,Ft as Z,_i as _,ve as _t,Ai as a,ke as at,pi as b,ue as bt,Li as c,Se as ct,wi as d,K as dt,Fe as et,Si as f,Te as ft,yi as g,_e as gt,vi as h,be as ht,Vi as i,Ae as it,fn as j,_n as k,Di as l,J as lt,bi as m,Ee as mt,Yi as n,Me as nt,zi as o,Oe as ot,Ci as p,we as pt,Ht as q,Ki as r,Ne as rt,Ri as s,xe as st,Zi as t,Pe as tt,Ei as u,De as ut,gi as v,ye as vt,ni as w,z as wt,li as x,W as xt,hi as y,ge as yt,tn as z};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{i as e,n as t,t as n}from"./jsx-runtime-DG_AJzB_.js";import{F as r,M as i,O as a,R as o,S as s,d as c,f as l,h as u,m as d,p as f,w as p,x as m}from"./createReactComponent-_L2mp4Ui.js";import{A as h,Ct as g,D as _,Et as v,F as y,G as b,H as ee,J as x,L as S,M as C,N as w,P as te,Q as ne,Tt as re,V as ie,W as ae,X as T,Y as oe,Z as E,_t as D,at as se,bt as O,ct as k,dt as ce,et as A,ft as le,gt as j,ht as M,it as N,j as P,lt as F,nt as ue,ot as I,pt as L,rt as de,st as fe,tt as R,ut as pe,vt as z,wt as B}from"./getDisabledMountTransitionStyles-Co-5TcgR.js";import{C as me,D as he,E as ge,O as _e,S as V,T as H,b as ve,w as ye,x as U}from"./CompositeList-FRTEqUDK.js";import{g as W,n as be,s as xe,u as Se}from"./useBaseUiId-BLFGpnYJ.js";var Ce=0;function we(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Ce);let a=()=>e?.focus({preventScroll:n});i?a():Ce=requestAnimationFrame(a)}var G={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function K(e){return e===`inert`?G.inert:e===`aria-hidden`?G[`aria-hidden`]:G.none}var q=new WeakSet,J={},Te=0,Ee=e=>e&&(e.host||Ee(e.parentNode)),De=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ee(t);return e.contains(n)?n:null}).filter(e=>e!=null);function Oe(e,t,n,r){let i=`data-base-ui-inert`,o=r?`inert`:n?`aria-hidden`:null,s=De(t,e),c=new Set,l=new Set(s),u=[];J[i]||(J[i]=new WeakMap);let d=J[i];s.forEach(f),p(t),c.clear();function f(e){!e||c.has(e)||(c.add(e),e.parentNode&&f(e.parentNode))}function p(e){!e||l.has(e)||[].forEach.call(e.children,e=>{if(a(e)!==`script`)if(c.has(e))p(e);else{let t=o?e.getAttribute(o):null,n=t!==null&&t!==`false`,r=K(o),a=(r.get(e)||0)+1,s=(d.get(e)||0)+1;r.set(e,a),d.set(e,s),u.push(e),a===1&&n&&q.add(e),s===1&&e.setAttribute(i,``),!n&&o&&e.setAttribute(o,o===`inert`?``:`true`)}})}return Te+=1,()=>{u.forEach(e=>{let t=K(o),n=(t.get(e)||0)-1,r=(d.get(e)||0)-1;t.set(e,n),d.set(e,r),n||(!q.has(e)&&o&&e.removeAttribute(o),q.delete(e)),r||e.removeAttribute(i)}),--Te,Te||(G.inert=new WeakMap,G[`aria-hidden`]=new WeakMap,G.none=new WeakMap,q=new WeakSet,J={})}}function ke(e,t=!1,n=!1){let r=F(e[0]).body;return Oe(e.concat(Array.from(r.querySelectorAll(`[aria-live]`))),r,t,n)}var Y=e(t()),Ae=n();function je(e,t){let n=i(e.target);return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var X=20,Z=[];function Me(){Z=Z.filter(e=>e.isConnected)}function Ne(e){Me(),e&&a(e)!==`body`&&(Z.push(e),Z.length>X&&(Z=Z.slice(-X)))}function Pe(){return Me(),Z[Z.length-1]}function Fe(e){if(!e)return null;let t=x();return E(e,t)?e:ne(e,t)[0]||e}function Ie(e){return!e||!e.isConnected?!1:typeof e.checkVisibility==`function`?e.checkVisibility():p(e).display!==`none`}function Le(e,t){if(!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=x(),r=T(e,n).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return E(e,n)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),i=e.getAttribute(`tabindex`);t.current.includes(`floating`)||r.length===0?i!==`0`&&e.setAttribute(`tabindex`,`0`):(i!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Q(e){let{context:t,children:n,disabled:i=!1,order:a=[`content`],initialFocus:o=!0,returnFocus:c=!0,restoreFocus:l=!1,modal:d=!0,closeOnFocusOut:f=!0,openInteractionType:p=``,getInsideElements:g=()=>[],nextFocusableElement:C,previousFocusableElement:w,beforeContentFocusGuardRef:re,externalTree:ie}=e,T=`rootStore`in t?t.rootStore:t,E=T.useState(`open`),D=T.useState(`domReferenceElement`),O=T.useState(`floatingElement`),{events:A,dataRef:j}=T.context,M=s(()=>j.current.floatingContext?.nodeId),L=s(g),R=o===!1,z=le(D)&&R,me=B(a),he=B(o),ge=B(c),_e=B(p),V=ee(ie),H=h(),ve=Y.useRef(null),ye=Y.useRef(null),U=Y.useRef(!1),W=Y.useRef(!1),Se=Y.useRef(!1),Ce=Y.useRef(-1),G=Y.useRef(``),K=Y.useRef(``),q=Y.useRef(null),J=Y.useRef(null),Te=u(q,re,H?.beforeInsideRef),Ee=u(J,H?.afterInsideRef),De=v(),Oe=v(),X=te(),Z=H!=null,Q=pe(O),$=s((e=Q)=>e?ne(e,x()):[]),Re=s(e=>{let t=$(e);return me.current.map(()=>t).filter(Boolean).flat()});Y.useEffect(()=>{if(i||!d)return;function e(e){e.key===`Tab`&&k(Q,fe(F(Q)))&&$().length===0&&!z&&N(e)}let t=F(Q);return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[i,D,Q,d,me,z,$,Re]),Y.useEffect(()=>{if(i||!O)return;function e(e){let t=ce(e),n=$().indexOf(t);n!==-1&&(Ce.current=n)}return O.addEventListener(`focusin`,e),()=>{O.removeEventListener(`focusin`,e)}},[i,O,$]),Y.useEffect(()=>{if(i||!E)return;let e=F(Q);function t(){Se.current=!1}function n(e){let t=ce(e);Se.current=!(k(O,t)||k(D,t)||k(H?.portalNode,t)),K.current=e.pointerType||`keyboard`}function r(){K.current=`keyboard`}return e.addEventListener(`pointerdown`,n,!0),e.addEventListener(`pointerup`,t,!0),e.addEventListener(`pointercancel`,t,!0),e.addEventListener(`keydown`,r,!0),()=>{e.removeEventListener(`pointerdown`,n,!0),e.removeEventListener(`pointerup`,t,!0),e.removeEventListener(`pointercancel`,t,!0),e.removeEventListener(`keydown`,r,!0)}},[i,O,D,Q,E,H]),Y.useEffect(()=>{if(i||!f)return;function e(){W.current=!0,Oe.start(0,()=>{W.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget,i=ce(e);queueMicrotask(()=>{let a=M(),o=T.context.triggerElements,s=t?.hasAttribute(S(`focus-guard`))&&[q.current,J.current,H?.beforeInsideRef.current,H?.afterInsideRef.current,H?.beforeOutsideRef.current,H?.afterOutsideRef.current,_(w),_(C)].includes(t),c=!(k(D,t)||k(O,t)||k(t,O)||k(H?.portalNode,t)||t!=null&&o.hasElement(t)||o.hasMatchingElement(e=>k(e,t))||s||V&&(I(V.nodesRef.current,a).find(e=>k(e.context?.elements.floating,t)||k(e.context?.elements.domReference,t))||se(V.nodesRef.current,a).find(e=>[e.context?.elements.floating,pe(e.context?.elements.floating)].includes(t)||e.context?.elements.domReference===t)));if(n===D&&Q&&Le(Q,me),l&&n!==D&&!Ie(i)&&fe(F(Q))===F(Q).body){if(r(Q)&&(Q.focus(),l===`popup`)){X.request(()=>{Q.focus()});return}let e=Ce.current,t=$(),n=t[e]||t[t.length-1]||Q;r(n)&&n.focus()}if(j.current.insideReactTree){j.current.insideReactTree=!1;return}(z||!d)&&t&&c&&!W.current&&(z||t!==Pe())&&(U.current=!0,T.setOpen(!1,be(xe,e)))})}function n(){Se.current||(j.current.insideReactTree=!0,De.start(0,()=>{j.current.insideReactTree=!1}))}let a=r(D)?D:null,o=[];if(!(!O&&!a))return a&&(a.addEventListener(`focusout`,t),a.addEventListener(`pointerdown`,e),o.push(()=>{a.removeEventListener(`focusout`,t),a.removeEventListener(`pointerdown`,e)})),O&&(O.addEventListener(`focusout`,t),H&&(O.addEventListener(`focusout`,n,!0),o.push(()=>{O.removeEventListener(`focusout`,n,!0)})),o.push(()=>{O.removeEventListener(`focusout`,t)})),()=>{o.forEach(e=>{e()})}},[i,D,O,Q,d,V,H,T,f,l,$,z,M,me,j,De,Oe,X,C,w]),Y.useEffect(()=>{if(i||!O||!E)return;let e=Array.from(H?.portalNode?.querySelectorAll(`[${S(`portal`)}]`)||[]),t=ke([O,(V?se(V.nodesRef.current,M()):[]).find(e=>le(e.context?.elements.domReference||null))?.context?.elements.domReference,...e,...L(),ve.current,ye.current,q.current,J.current,H?.beforeOutsideRef.current,H?.afterOutsideRef.current,_(w),_(C),z?D:null].filter(e=>e!=null),d||z);return()=>{t()}},[E,i,D,O,d,me,H,z,V,M,L,C,w]),m(()=>{if(!E||i||!r(Q))return;let e=fe(F(Q));queueMicrotask(()=>{let t=Re(Q),n=he.current,r=typeof n==`function`?n(_e.current||``):n;if(r===void 0||r===!1)return;let i;i=r===!0||r===null?t[0]||Q:_(r),i=i||t[0]||Q,!k(Q,e)&&we(i,{preventScroll:i===Q})})},[i,E,Q,R,Re,he,_e]),m(()=>{if(i||!Q)return;let e=F(Q);Ne(fe(e));function t(e){if(e.open||(G.current=je(e.nativeEvent,K.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(U.current=!0),e.reason===`outside-press`)if(e.nested)U.current=!1;else if(ue(e.nativeEvent)||de(e.nativeEvent))U.current=!1;else{let e=!1;document.createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?U.current=!1:U.current=!0}}A.on(`openchange`,t);let n=e.createElement(`span`);n.setAttribute(`tabindex`,`-1`),n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,y),Z&&D&&D.insertAdjacentElement(`afterend`,n);function a(){let e=ge.current,t=typeof e==`function`?e(G.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=D||Pe();return e&&e.isConnected?e:n}let r=D||Pe()||n;return _(t)||r}return()=>{A.off(`openchange`,t);let i=fe(e),o=k(O,i)||V&&I(V.nodesRef.current,M(),!1).some(e=>k(e.context?.elements.floating,i)),s=a();queueMicrotask(()=>{let t=Fe(s),a=typeof ge.current!=`boolean`;ge.current&&!U.current&&r(t)&&(!(!a&&t!==i&&i!==e.body)||o)&&t.focus({preventScroll:!0}),n.remove()})}},[i,O,Q,ge,j,A,V,Z,D,M]),Y.useEffect(()=>{queueMicrotask(()=>{U.current=!1})},[i]),Y.useEffect(()=>{if(i||!E)return;function e(e){ce(e)?.closest(`[data-base-ui-click-trigger]`)&&(W.current=!0)}let t=F(Q);return t.addEventListener(`pointerdown`,e,!0),()=>{t.removeEventListener(`pointerdown`,e,!0)}},[i,E,Q]),m(()=>{if(!i&&H)return H.setFocusManagerState({modal:d,closeOnFocusOut:f,open:E,onOpenChange:T.setOpen,domReference:D}),()=>{H.setFocusManagerState(null)}},[i,H,d,E,T,f,D]),m(()=>{if(!(i||!Q))return Le(Q,me),()=>{queueMicrotask(Me)}},[i,Q,me]);let ze=!i&&(d?!z:!0)&&(Z||d);return(0,Ae.jsxs)(Y.Fragment,{children:[ze&&(0,Ae.jsx)(P,{"data-type":`inside`,ref:Te,onFocus:e=>{if(d){let e=Re();we(e[e.length-1])}else H?.portalNode&&(U.current=!1,oe(e,H.portalNode)?ae(D)?.focus():_(w??H.beforeOutsideRef)?.focus())}}),n,ze&&(0,Ae.jsx)(P,{"data-type":`inside`,ref:Ee,onFocus:e=>{d?we(Re()[0]):H?.portalNode&&(f&&(U.current=!0),oe(e,H.portalNode)?b(D)?.focus():_(C??H.afterOutsideRef)?.focus())}})]})}function $(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:u=0}=t,d=Y.useRef(void 0),f=te(),p=v(),m=Y.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,l=n.select(`open`);if(e.button!==0||a===`click`||R(t,!0)&&s)return;let m=r.current.openEvent,h=m?.type,g=n.select(`domReferenceElement`)!==e.currentTarget,_=l&&g||!(l&&o&&(!(m&&c)||h===`click`||h===`mousedown`));if(L(i.target)){let e=be(W,i,i.target);_&&t===`touch`&&u>0?p.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(_,e);return}let v=e.currentTarget;f.request(()=>{let e=be(W,i,v);_&&t===`touch`&&u>0?p.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(_,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(R(t,!0)&&s)return;let i=n.select(`open`),l=r.current.openEvent,f=n.select(`domReferenceElement`)!==e.currentTarget,m=i&&f||!(i&&o&&(!(l&&c)||A(l))),h=be(W,e.nativeEvent,e.currentTarget);m&&t===`touch`&&u>0?p.start(u,()=>{n.setOpen(!0,h)}):n.setOpen(m,h)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,u]);return Y.useMemo(()=>i?{reference:m}:l,[i,m])}var Re=`Escape`;function ze(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Be(e,t){return ze(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Ve(e,t,n){return ze(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function He(e,t,n){return ze(t,n?e===j:e===D,e===M)}function Ue(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Re:ze(t,n?e===D:e===j,e===z)}function We(e,t){let n=`rootStore`in e?e.rootStore:e,i=n.useState(`open`),a=n.useState(`floatingElement`),o=n.useState(`domReferenceElement`),c=n.context.dataRef,{listRef:l,activeIndex:u,onNavigate:d=()=>{},enabled:f=!0,selectedIndex:p=null,allowEscape:h=!1,loopFocus:g=!1,nested:_=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b=`auto`,focusItemOnHover:x=!0,openOnArrowKeyDown:S=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:te,cols:ne=1,scrollItemIntoView:re=!0,itemSizes:ae,dense:T=!1,id:oe,resetOnPointerLeave:E=!0,externalTree:D}=t,se=B(pe(a)),O=ie(),A=ee(D);m(()=>{c.current.orientation=w},[c,w]);let j=le(o),M=Y.useRef(b),P=Y.useRef(p??-1),I=Y.useRef(null),L=Y.useRef(!0),R=s(e=>{d(P.current===-1?null:P.current,e)}),z=Y.useRef(R),W=Y.useRef(!!a),Ce=Y.useRef(i),G=Y.useRef(!1),K=Y.useRef(!1),q=B(C),J=B(i),Te=B(re),Ee=B(p),De=B(E),Oe=s(()=>{function e(e){y?A?.events.emit(`virtualfocus`,e):we(e,{sync:G.current,preventScroll:!0})}let t=l.current[P.current],n=K.current;t&&e(t),(G.current?e=>e():requestAnimationFrame)(()=>{let r=l.current[P.current]||t;if(!r)return;t||e(r);let i=Te.current;i&&Ae&&(n||!L.current)&&r.scrollIntoView?.(typeof i==`boolean`?{block:`nearest`,inline:`nearest`}:i)})});m(()=>{f&&(i&&a?(P.current=p??-1,M.current&&p!=null&&(K.current=!0,R())):W.current&&(P.current=-1,z.current()))},[f,i,a,p,R]),m(()=>{if(f){if(!i){G.current=!1;return}if(a)if(u==null){if(G.current=!1,Ee.current!=null)return;if(W.current&&(P.current=-1,Oe()),(!Ce.current||!W.current)&&M.current&&(I.current!=null||M.current===!0&&I.current==null)){let e=0,t=()=>{l.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(P.current=I.current==null||Ve(I.current,w,v)||_?ge(l):H(l),I.current=null,R())};t()}}else he(l,u)||(P.current=u,Oe(),K.current=!1)}},[f,i,a,u,Ee,_,l,w,v,R,Oe,q]),m(()=>{if(!f||a||!A||y||!W.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===O)?.context?.elements.floating,n=fe(F(a)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[f,a,A,O,y]),m(()=>{z.current=R,Ce.current=i,W.current=!!a}),m(()=>{i||(I.current=null,M.current=b)},[i,b]);let ke=u!=null,Ae=Y.useMemo(()=>{function e(e){if(!J.current)return;let t=l.current.indexOf(e.currentTarget);t!==-1&&P.current!==t&&(P.current=t,R(e))}return{onFocus(t){G.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(t){G.current=!0,K.current=!1,x&&e(t)},onPointerLeave(e){if(!J.current||!L.current||e.pointerType===`touch`)return;G.current=!0;let t=e.relatedTarget;!x||l.current.includes(t)||De.current&&(P.current=-1,R(e),y||se.current?.focus({preventScroll:!0}))}}},[J,se,x,l,R,De,y]),je=Y.useCallback(()=>te??A?.nodesRef.current.find(e=>e.id===O)?.context?.dataRef?.current.orientation,[O,A,te]),X=s(e=>{if(L.current=!1,G.current=!0,e.which===229||!J.current&&e.currentTarget===se.current)return;if(_&&Ue(e.key,w,v,ne)){Be(e.key,je())||N(e),n.setOpen(!1,be(Se,e.nativeEvent)),r(o)&&(y?A?.events.emit(`virtualfocus`,o):o.focus());return}let t=P.current,a=ge(l,C),s=H(l,C);if(j||(e.key===`Home`&&(N(e),P.current=a,R(e)),e.key===`End`&&(N(e),P.current=s,R(e))),ne>1){let t=ae||Array.from({length:l.current.length},()=>({width:1,height:1})),n=ve(t,ne,T),r=n.findIndex(e=>e!=null&&!_e(l,e,C)),i=n.reduce((e,t,n)=>t!=null&&!_e(l,t,C)?n:e,-1),o=n[ye({current:n.map(e=>e==null?null:l.current[e])},{event:e,orientation:w,loopFocus:g,rtl:v,cols:ne,disabledIndices:me([...(typeof C==`function`?null:C)||l.current.map((e,t)=>_e(l,t,C)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:V(P.current>s?a:P.current,t,n,ne,e.key===`ArrowDown`?`bl`:e.key===(v?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(o!=null&&(P.current=o,R(e)),w===`both`)return}if(Be(e.key,w)){if(N(e),i&&!y&&fe(e.currentTarget.ownerDocument)===e.currentTarget){P.current=Ve(e.key,w,v)?a:s,R(e);return}Ve(e.key,w,v)?g?t>=s?h&&t!==l.current.length?P.current=-1:(G.current=!1,P.current=a):P.current=U(l,{startingIndex:t,disabledIndices:C}):P.current=Math.min(s,U(l,{startingIndex:t,disabledIndices:C})):g?t<=a?h&&t!==-1?P.current=l.current.length:(G.current=!1,P.current=s):P.current=U(l,{startingIndex:t,decrement:!0,disabledIndices:C}):P.current=Math.max(a,U(l,{startingIndex:t,decrement:!0,disabledIndices:C})),he(l,P.current)&&(P.current=-1),R(e)}}),Z=Y.useMemo(()=>y&&i&&ke&&{"aria-activedescendant":`${oe}-${u}`},[y,i,ke,oe,u]),Me=Y.useMemo(()=>({"aria-orientation":w===`both`?void 0:w,...j?{}:Z,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&i&&!y){let t=ce(e.nativeEvent);if(t&&!k(se.current,t))return;N(e),n.setOpen(!1,be(xe,e.nativeEvent)),r(o)&&o.focus();return}X(e)},onPointerMove(){L.current=!0}}),[Z,X,se,w,j,n,i,y,o]),Ne=Y.useMemo(()=>{function e(e){b===`auto`&&ue(e.nativeEvent)&&(M.current=!y)}function t(e){M.current=b,b===`auto`&&de(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);L.current=!1;let r=e.key.startsWith(`Arrow`),i=He(e.key,je(),v),a=Be(e.key,w),o=(_?i:a)||e.key===`Enter`||e.key.trim()===``;if(y&&t)return X(e);if(!(!t&&!S&&r)){if(o){let t=Be(e.key,je());I.current=_&&t?null:e.key}if(_){i&&(N(e),t?(P.current=ge(l,q.current),R(e)):n.setOpen(!0,be(Se,e.nativeEvent,e.currentTarget)));return}a&&(Ee.current!=null&&(P.current=Ee.current),N(e),!t&&S?n.setOpen(!0,be(Se,e.nativeEvent,e.currentTarget)):X(e),t&&R(e))}},onFocus(e){n.select(`open`)&&!y&&(P.current=-1,R(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[X,q,b,l,_,R,n,S,w,je,v,Ee,y]),Pe=Y.useMemo(()=>({...Z,...Ne}),[Z,Ne]);return Y.useMemo(()=>f?{reference:Pe,floating:Me,item:Ae,trigger:Ne}:{},[f,Pe,Me,Ne,Ae])}function Ge(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.context.dataRef,{listRef:a,activeIndex:o,onMatch:l,onTypingChange:u,enabled:d=!0,findMatch:f=null,resetMs:p=750,ignoreKeys:h=c,selectedIndex:g=null}=t,_=v(),y=Y.useRef(``),b=Y.useRef(g??o??-1),ee=Y.useRef(null);m(()=>{r&&(_.clear(),ee.current=null,y.current=``)},[r,_]),m(()=>{r&&y.current===``&&(b.current=g??o??-1)},[r,g,o]);let x=s(e=>{e?i.current.typing||(i.current.typing=e,u?.(e)):i.current.typing&&(i.current.typing=e,u?.(e))}),S=s(e=>{function t(e,t,n){let r=f?f(t,n):t.find(e=>e?.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())===0);return r?e.indexOf(r):-1}let n=a.current;if(y.current.length>0&&y.current[0]!==` `&&(t(n,n,y.current)===-1?x(!1):e.key===` `&&N(e)),n==null||h.includes(e.key)||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;r&&e.key!==` `&&(N(e),x(!0)),n.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&y.current===e.key&&(y.current=``,b.current=ee.current),y.current+=e.key,_.start(p,()=>{y.current=``,b.current=ee.current,x(!1)});let i=b.current,o=t(n,[...n.slice((i||0)+1),...n.slice(0,(i||0)+1)],y.current);o===-1?e.key!==` `&&(y.current=``,x(!1)):(l?.(o),ee.current=o)}),C=Y.useMemo(()=>({onKeyDown:S}),[S]),w=Y.useMemo(()=>({onKeyDown:S,onKeyUp(e){e.key===` `&&x(!1)}}),[S,x]);return Y.useMemo(()=>d?{reference:C,floating:w}:{},[d,C,w])}function Ke(e){return d(19)?e:e?`true`:void 0}var qe=Y.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n?.getBoundingClientRect();i=`polygon(
|
|
2
|
+
0% 0%,
|
|
3
|
+
100% 0%,
|
|
4
|
+
100% 100%,
|
|
5
|
+
0% 100%,
|
|
6
|
+
0% 0%,
|
|
7
|
+
${e.left}px ${e.top}px,
|
|
8
|
+
${e.left}px ${e.bottom}px,
|
|
9
|
+
${e.right}px ${e.bottom}px,
|
|
10
|
+
${e.right}px ${e.top}px,
|
|
11
|
+
${e.left}px ${e.top}px
|
|
12
|
+
)`}return(0,Ae.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Je={},Ye={},Xe=``;function Ze(e){if(typeof document>`u`)return!1;let t=C(e);return i(t).innerWidth-t.documentElement.clientWidth>0}function Qe(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=C(e).documentElement,n={scrollbarGutter:t.style.scrollbarGutter,overflowY:t.style.overflowY};t.style.scrollbarGutter=`stable`,t.style.overflowY=`scroll`;let r=t.offsetWidth;t.style.overflowY=`hidden`;let i=t.offsetWidth;return Object.assign(t.style,n),r===i}function $e(e){let t=C(e),n=t.documentElement,r=t.body,i=o(n)?n:r,a=i.style.overflow;return i.style.overflow=`hidden`,()=>{i.style.overflow=a}}function et(e){let t=C(e),n=t.documentElement,r=t.body,a=i(n),s=0,c=0,l=!1,u=w.create();if(g&&(a.visualViewport?.scale??1)!==1)return()=>{};function d(){let t=a.getComputedStyle(n),i=a.getComputedStyle(r),u=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;s=n.scrollTop,c=n.scrollLeft,Je={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Xe=n.style.scrollBehavior,Ye={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let d=n.scrollHeight>n.clientHeight,f=n.scrollWidth>n.clientWidth,p=t.overflowY===`scroll`||i.overflowY===`scroll`,m=t.overflowX===`scroll`||i.overflowX===`scroll`,h=Math.max(0,a.innerWidth-r.clientWidth),g=Math.max(0,a.innerHeight-r.clientHeight),_=parseFloat(i.marginTop)+parseFloat(i.marginBottom),v=parseFloat(i.marginLeft)+parseFloat(i.marginRight),y=o(n)?n:r;if(l=Qe(e),l){n.style.scrollbarGutter=u,y.style.overflowY=`hidden`,y.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:u,overflowY:`hidden`,overflowX:`hidden`}),(d||p)&&(n.style.overflowY=`scroll`),(f||m)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:_||g?`calc(100dvh - ${_+g}px)`:`100dvh`,width:v||h?`calc(100vw - ${v+h}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=s,r.scrollLeft=c,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function f(){Object.assign(n.style,Je),Object.assign(r.style,Ye),l||(n.scrollTop=s,n.scrollLeft=c,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Xe)}function p(){f(),u.request(d)}return d(),a.addEventListener(`resize`,p),()=>{u.cancel(),f(),typeof a.removeEventListener==`function`&&a.removeEventListener(`resize`,p)}}var tt=new class{lockCount=0;restore=null;timeoutLock=re.create();timeoutUnlock=re.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=C(e).documentElement,n=i(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=f;return}this.restore=O||!Ze(e)?$e(e):et(e)}};function nt(e=!0,t=null){m(()=>{if(e)return tt.acquire(t)},[e,t])}function rt(e){let t=Y.useRef(``),n=Y.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Y.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n&&e(n,n.pointerType),e(n,t.current),t.current=``},[e]),onPointerDown:n}}function it(e){let[t,n]=Y.useState(null),r=s((t,r)=>{e||n(r||(O?`touch`:``))}),i=Y.useCallback(()=>{n(null)},[]),{onClick:a,onPointerDown:o}=rt(r);return Y.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:a,onPointerDown:o}}),[t,i,a,o])}function at(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}export{Ke as a,$ as c,qe as i,Q as l,it as n,Ge as o,nt as r,We as s,at as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-DG_AJzB_.js";import{t}from"./compiler-runtime-DCc3R3Xn.js";import{a as n}from"./api-base-url-DIb6qukm.js";import{t as r}from"./useSuspenseQuery-
|
|
1
|
+
import{t as e}from"./jsx-runtime-DG_AJzB_.js";import{t}from"./compiler-runtime-DCc3R3Xn.js";import{a as n}from"./api-base-url-DIb6qukm.js";import{t as r}from"./useSuspenseQuery-GImltoGU.js";import{m as i}from"./index-B4tzcC1c.js";import{a,n as o,o as s,r as c,t as l}from"./card-BWqhQk-T.js";var u=t(),d=e(),f=n(`/_authenticated/$org_slug/home`);function p(){let e=(0,u.c)(9),{organizationId:t}=f.useRouteContext(),n;e[0]===t?n=e[1]:(n=i(t),e[0]=t,e[1]=n);let{data:p}=r(n),m;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsxs)(`div`,{className:`mb-8`,children:[(0,d.jsx)(`h1`,{className:`text-3xl font-bold`,children:`Welcome to OneQuery`}),(0,d.jsx)(`p`,{className:`text-muted-foreground mt-2`,children:`Your workspace is ready to connect data sources and explore usage.`})]}),e[2]=m):m=e[2];let h;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Data Sources`}),(0,d.jsx)(c,{children:`Manage the systems OneQuery can query on your behalf`})]}),e[3]=h):h=e[3];let g;e[4]===p.dataSourcesCount?g=e[5]:(g=(0,d.jsx)(`p`,{className:`text-2xl font-bold`,children:p.dataSourcesCount}),e[4]=p.dataSourcesCount,e[5]=g);let _;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Active data sources`}),e[6]=_):_=e[6];let v;return e[7]===g?v=e[8]:(v=(0,d.jsxs)(`div`,{className:`p-8`,children:[m,(0,d.jsx)(`div`,{className:`grid gap-4 md:grid-cols-1`,children:(0,d.jsxs)(l,{children:[h,(0,d.jsxs)(o,{children:[g,_]})]})})]}),e[7]=g,e[8]=v),v}var m=p;export{m as component};
|