railwatch 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/app/frontend/components/app-content.tsx +26 -0
- data/app/frontend/components/app-logo-icon.tsx +23 -0
- data/app/frontend/components/app-logo.tsx +14 -0
- data/app/frontend/components/app-shell.tsx +38 -0
- data/app/frontend/components/app-sidebar-header.tsx +54 -0
- data/app/frontend/components/app-sidebar.tsx +94 -0
- data/app/frontend/components/app-wordmark.tsx +29 -0
- data/app/frontend/components/breadcrumbs.tsx +46 -0
- data/app/frontend/components/icon.tsx +16 -0
- data/app/frontend/components/input-error.tsx +18 -0
- data/app/frontend/components/nav-footer.tsx +46 -0
- data/app/frontend/components/nav-main.tsx +41 -0
- data/app/frontend/components/nav-user.tsx +50 -0
- data/app/frontend/components/railwatch/chart-hover.tsx +34 -0
- data/app/frontend/components/railwatch/chart-panel.tsx +170 -0
- data/app/frontend/components/railwatch/code.tsx +28 -0
- data/app/frontend/components/railwatch/command-palette.tsx +132 -0
- data/app/frontend/components/railwatch/copy-block.tsx +52 -0
- data/app/frontend/components/railwatch/copy-id.tsx +49 -0
- data/app/frontend/components/railwatch/cursor-load-more.tsx +39 -0
- data/app/frontend/components/railwatch/data-table.tsx +195 -0
- data/app/frontend/components/railwatch/digit-roll.tsx +312 -0
- data/app/frontend/components/railwatch/empty-state.tsx +159 -0
- data/app/frontend/components/railwatch/env-nav.tsx +130 -0
- data/app/frontend/components/railwatch/env-switcher.tsx +145 -0
- data/app/frontend/components/railwatch/filter-bar.tsx +153 -0
- data/app/frontend/components/railwatch/flamegraph.tsx +324 -0
- data/app/frontend/components/railwatch/frames.tsx +295 -0
- data/app/frontend/components/railwatch/json-viewer.tsx +159 -0
- data/app/frontend/components/railwatch/live-dot.tsx +78 -0
- data/app/frontend/components/railwatch/live-toggle.tsx +76 -0
- data/app/frontend/components/railwatch/metric-chart.tsx +112 -0
- data/app/frontend/components/railwatch/mobile-page-switcher.tsx +89 -0
- data/app/frontend/components/railwatch/onboarding.tsx +91 -0
- data/app/frontend/components/railwatch/origin-identity.tsx +84 -0
- data/app/frontend/components/railwatch/page-header.tsx +42 -0
- data/app/frontend/components/railwatch/percentile-picker.tsx +18 -0
- data/app/frontend/components/railwatch/relative-time.tsx +18 -0
- data/app/frontend/components/railwatch/saved-views.tsx +232 -0
- data/app/frontend/components/railwatch/segmented.tsx +64 -0
- data/app/frontend/components/railwatch/series-chart.tsx +400 -0
- data/app/frontend/components/railwatch/shortcuts-dialog.tsx +89 -0
- data/app/frontend/components/railwatch/signal-toast.tsx +121 -0
- data/app/frontend/components/railwatch/sort-header.tsx +37 -0
- data/app/frontend/components/railwatch/source-link.tsx +57 -0
- data/app/frontend/components/railwatch/sparkline-cell.tsx +14 -0
- data/app/frontend/components/railwatch/sql-block.tsx +116 -0
- data/app/frontend/components/railwatch/stat.tsx +173 -0
- data/app/frontend/components/railwatch/status-badge.tsx +79 -0
- data/app/frontend/components/railwatch/step-picker.tsx +57 -0
- data/app/frontend/components/railwatch/timeline.tsx +405 -0
- data/app/frontend/components/railwatch/utilisation-bar.tsx +44 -0
- data/app/frontend/components/railwatch/window-picker.tsx +147 -0
- data/app/frontend/components/ui/avatar.tsx +51 -0
- data/app/frontend/components/ui/badge.tsx +46 -0
- data/app/frontend/components/ui/breadcrumb.tsx +109 -0
- data/app/frontend/components/ui/button.tsx +60 -0
- data/app/frontend/components/ui/card.tsx +92 -0
- data/app/frontend/components/ui/chart.tsx +374 -0
- data/app/frontend/components/ui/checkbox.tsx +32 -0
- data/app/frontend/components/ui/collapsible.tsx +31 -0
- data/app/frontend/components/ui/command.tsx +182 -0
- data/app/frontend/components/ui/dialog.tsx +158 -0
- data/app/frontend/components/ui/dropdown-menu.tsx +255 -0
- data/app/frontend/components/ui/hover-card.tsx +42 -0
- data/app/frontend/components/ui/input.tsx +21 -0
- data/app/frontend/components/ui/label.tsx +24 -0
- data/app/frontend/components/ui/popover.tsx +87 -0
- data/app/frontend/components/ui/select.tsx +185 -0
- data/app/frontend/components/ui/separator.tsx +28 -0
- data/app/frontend/components/ui/sheet.tsx +137 -0
- data/app/frontend/components/ui/sidebar.tsx +726 -0
- data/app/frontend/components/ui/skeleton.tsx +13 -0
- data/app/frontend/components/ui/sonner.tsx +41 -0
- data/app/frontend/components/ui/table.tsx +114 -0
- data/app/frontend/components/ui/tabs.tsx +91 -0
- data/app/frontend/components/ui/textarea.tsx +18 -0
- data/app/frontend/components/ui/tooltip.tsx +61 -0
- data/app/frontend/components/user-info.tsx +32 -0
- data/app/frontend/components/user-menu-content.tsx +94 -0
- data/app/frontend/entrypoints/application.css +244 -0
- data/app/frontend/entrypoints/inertia.tsx +95 -0
- data/app/frontend/fonts/CommitMono-Bold.woff2 +0 -0
- data/app/frontend/fonts/CommitMono-Regular.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Black.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Bold.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Medium.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Regular.woff2 +0 -0
- data/app/frontend/hooks/use-appearance.tsx +67 -0
- data/app/frontend/hooks/use-clipboard.ts +32 -0
- data/app/frontend/hooks/use-flash.tsx +23 -0
- data/app/frontend/hooks/use-hotkeys.ts +63 -0
- data/app/frontend/hooks/use-initials.tsx +15 -0
- data/app/frontend/hooks/use-live.ts +179 -0
- data/app/frontend/hooks/use-mobile-navigation.ts +8 -0
- data/app/frontend/hooks/use-mobile.ts +21 -0
- data/app/frontend/hooks/use-percentile.ts +24 -0
- data/app/frontend/hooks/use-reduced-motion.ts +25 -0
- data/app/frontend/hooks/use-row-nav.ts +106 -0
- data/app/frontend/hooks/use-step.ts +27 -0
- data/app/frontend/hooks/use-ticker.ts +12 -0
- data/app/frontend/hooks/use-window.ts +58 -0
- data/app/frontend/layouts/app/app-sidebar-layout.tsx +107 -0
- data/app/frontend/layouts/app-layout.tsx +21 -0
- data/app/frontend/layouts/env-layout.tsx +53 -0
- data/app/frontend/layouts/persistent-layout.tsx +18 -0
- data/app/frontend/lib/cable.ts +10 -0
- data/app/frontend/lib/env-pages.ts +236 -0
- data/app/frontend/lib/execution-path.ts +55 -0
- data/app/frontend/lib/explain.ts +50 -0
- data/app/frontend/lib/filter.ts +25 -0
- data/app/frontend/lib/flamegraph.ts +155 -0
- data/app/frontend/lib/format.ts +71 -0
- data/app/frontend/lib/keyboard.ts +18 -0
- data/app/frontend/lib/source-link.ts +217 -0
- data/app/frontend/lib/utils.ts +6 -0
- data/app/frontend/pages/alerts/index.tsx +171 -0
- data/app/frontend/pages/broadcasts/index.tsx +171 -0
- data/app/frontend/pages/cache_events/index.tsx +127 -0
- data/app/frontend/pages/commands/index.tsx +143 -0
- data/app/frontend/pages/deploys/index.tsx +94 -0
- data/app/frontend/pages/deploys/show.tsx +309 -0
- data/app/frontend/pages/deprecations/index.tsx +176 -0
- data/app/frontend/pages/exceptions/index.tsx +271 -0
- data/app/frontend/pages/executions/show.tsx +821 -0
- data/app/frontend/pages/issues/index.tsx +399 -0
- data/app/frontend/pages/issues/show.tsx +1367 -0
- data/app/frontend/pages/jobs/index.tsx +381 -0
- data/app/frontend/pages/jobs/klass.tsx +215 -0
- data/app/frontend/pages/llm_calls/index.tsx +664 -0
- data/app/frontend/pages/logs/index.tsx +303 -0
- data/app/frontend/pages/mails/index.tsx +218 -0
- data/app/frontend/pages/notifications/index.tsx +161 -0
- data/app/frontend/pages/outgoing_requests/index.tsx +309 -0
- data/app/frontend/pages/overview/show.tsx +333 -0
- data/app/frontend/pages/people/index.tsx +102 -0
- data/app/frontend/pages/people/show.tsx +149 -0
- data/app/frontend/pages/processes/index.tsx +335 -0
- data/app/frontend/pages/profiles/index.tsx +110 -0
- data/app/frontend/pages/profiles/show.tsx +105 -0
- data/app/frontend/pages/queries/index.tsx +492 -0
- data/app/frontend/pages/queries/show.tsx +276 -0
- data/app/frontend/pages/releases/index.tsx +190 -0
- data/app/frontend/pages/releases/release-health.tsx +68 -0
- data/app/frontend/pages/releases/release-path.ts +25 -0
- data/app/frontend/pages/releases/show.tsx +262 -0
- data/app/frontend/pages/requests/index.tsx +235 -0
- data/app/frontend/pages/requests/route.tsx +159 -0
- data/app/frontend/pages/scheduled_tasks/index.tsx +220 -0
- data/app/frontend/pages/spans/index.tsx +229 -0
- data/app/frontend/pages/spans/show.tsx +220 -0
- data/app/frontend/pages/storage_ops/index.tsx +150 -0
- data/app/frontend/pages/tenants/index.tsx +236 -0
- data/app/frontend/pages/tenants/show.tsx +477 -0
- data/app/frontend/pages/tenants/tenant-path.ts +26 -0
- data/app/frontend/pages/thresholds/index.tsx +414 -0
- data/app/frontend/pages/traces/show.tsx +208 -0
- data/app/frontend/pages/transactions/index.tsx +220 -0
- data/app/frontend/pages/view_renders/index.tsx +241 -0
- data/app/frontend/pages/visits/index.tsx +321 -0
- data/app/frontend/public/icon.png +0 -0
- data/app/frontend/public/icon.svg +5 -0
- data/app/frontend/routes/index.d.ts +2136 -0
- data/app/frontend/routes/index.js +2112 -0
- data/app/frontend/types/globals.d.ts +9 -0
- data/app/frontend/types/index.ts +288 -0
- data/app/frontend/types/vite-env.d.ts +9 -0
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch.rb +8 -3
- data/public/railwatch/assets/app-layout-LvxN9xSS.js +41 -0
- data/public/railwatch/assets/application-Cc5v_Vk9.css +1 -0
- data/public/railwatch/assets/{arrow-up-CLQ-7heQ.js → arrow-up-DG01k9AL.js} +1 -1
- data/public/railwatch/assets/{braces-rSYydpLY.js → braces-C3w7pfxS.js} +1 -1
- data/public/railwatch/assets/{card-DPjFKfen.js → card-Dpwlr0uY.js} +1 -1
- data/public/railwatch/assets/{chart-DWh7l8yM.js → chart-DJHv3R7W.js} +1 -1
- data/public/railwatch/assets/{chart-hover-CfoZUY4J.js → chart-hover-CEH-DtXO.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CC49WTQL.js → chart-panel-CUdIzJvk.js} +1 -1
- data/public/railwatch/assets/code-BRZprwun.js +1 -0
- data/public/railwatch/assets/copy-id-CwhGGiwF.js +1 -0
- data/public/railwatch/assets/cursor-load-more-uF1_955Q.js +1 -0
- data/public/railwatch/assets/data-table-DYi-N0hm.js +1 -0
- data/public/railwatch/assets/env-layout-HdcOaPPX.js +1 -0
- data/public/railwatch/assets/{execution-path-FAuIzOXB.js → execution-path-CElXXFO_.js} +1 -1
- data/public/railwatch/assets/filter-bar-DEv0G_34.js +1 -0
- data/public/railwatch/assets/{flamegraph-EaGkP2NT.js → flamegraph-SKD9yxW9.js} +2 -2
- data/public/railwatch/assets/frames-CUpyJQDy.js +1 -0
- data/public/railwatch/assets/index-2W-ppwap.js +1 -0
- data/public/railwatch/assets/index-74ocuU5d.js +1 -0
- data/public/railwatch/assets/{index-C8Cggnbw.js → index-B8NA62Lz.js} +2 -2
- data/public/railwatch/assets/index-BBCEkLqp.js +1 -0
- data/public/railwatch/assets/index-BDcglJzX.js +1 -0
- data/public/railwatch/assets/index-B_KFb9LS.js +1 -0
- data/public/railwatch/assets/index-BqK_VKom.js +1 -0
- data/public/railwatch/assets/index-BxCXBHP2.js +1 -0
- data/public/railwatch/assets/index-C1jc1OoH.js +1 -0
- data/public/railwatch/assets/index-C7zREldp.js +1 -0
- data/public/railwatch/assets/index-CEetm4oC.js +1 -0
- data/public/railwatch/assets/index-CIaZkokF.js +1 -0
- data/public/railwatch/assets/index-CNH85TZp.js +1 -0
- data/public/railwatch/assets/index-Ce4SB5AB.js +1 -0
- data/public/railwatch/assets/index-CiRMSYMn.js +1 -0
- data/public/railwatch/assets/index-CjxXgOs-.js +1 -0
- data/public/railwatch/assets/index-ClL-PYEV.js +1 -0
- data/public/railwatch/assets/index-CteZ6fop.js +1 -0
- data/public/railwatch/assets/index-CvqfEExO.js +1 -0
- data/public/railwatch/assets/index-CxTLT-Qh.js +1 -0
- data/public/railwatch/assets/index-DJd3OUSd.js +1 -0
- data/public/railwatch/assets/index-DPD-rLp6.js +1 -0
- data/public/railwatch/assets/index-DYK_dps4.js +1 -0
- data/public/railwatch/assets/index-DrayARrI.js +1 -0
- data/public/railwatch/assets/index-HRXGir-0.js +1 -0
- data/public/railwatch/assets/index-UJOUALr_.js +1 -0
- data/public/railwatch/assets/index-d-3J7gQ5.js +1 -0
- data/public/railwatch/assets/index-oQrvBpOm.js +1 -0
- data/public/railwatch/assets/inertia-FoqYZAk8.js +97 -0
- data/public/railwatch/assets/json-viewer-CxqMojEm.js +1 -0
- data/public/railwatch/assets/klass-DEF-Vat5.js +1 -0
- data/public/railwatch/assets/origin-identity-Y6gvfQVR.js +1 -0
- data/public/railwatch/assets/{percentile-picker-CeQgllxD.js → percentile-picker-E2aUdLxx.js} +1 -1
- data/public/railwatch/assets/relative-time-DcJbkKlN.js +1 -0
- data/public/railwatch/assets/{release-health-uP-GF3_V.js → release-health-C8WSCDKD.js} +1 -1
- data/public/railwatch/assets/route-qO5vX1p-.js +1 -0
- data/public/railwatch/assets/{segmented-BeIe4uqk.js → segmented-BWee8uc9.js} +1 -1
- data/public/railwatch/assets/select-G7rNBzv0.js +1 -0
- data/public/railwatch/assets/series-chart-C5nXIUc5.js +1 -0
- data/public/railwatch/assets/show-BEWisLQw.js +1 -0
- data/public/railwatch/assets/show-BEa9PGu1.js +2 -0
- data/public/railwatch/assets/{show-YsNpqbcI.js → show-BiT_Aloc.js} +3 -3
- data/public/railwatch/assets/show-BpCO49d3.js +1 -0
- data/public/railwatch/assets/show-CH7yxt7R.js +1 -0
- data/public/railwatch/assets/show-CTO8Lvd2.js +1 -0
- data/public/railwatch/assets/show-DnYsDMUt.js +2 -0
- data/public/railwatch/assets/show-DyzHM527.js +1 -0
- data/public/railwatch/assets/show-Nfpxs8su.js +1 -0
- data/public/railwatch/assets/show-ddjUMo9G.js +1 -0
- data/public/railwatch/assets/show-ksjbSzDH.js +1 -0
- data/public/railwatch/assets/{sort-header-mEJUM3Av.js → sort-header-uOq5VlrB.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-Dwg7awwh.js → sparkline-cell-DgGij0cu.js} +1 -1
- data/public/railwatch/assets/stat-BTzNKTm2.js +1 -0
- data/public/railwatch/assets/status-badge-BDkOXa-C.js +1 -0
- data/public/railwatch/assets/{tenant-path-CQoP-BeF.js → tenant-path-DU0ezKSU.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-DNefo-ky.js → use-clipboard-DoENmlWY.js} +1 -1
- data/public/railwatch/assets/{use-live-DMTuhKfB.js → use-live-CE_fN5_6.js} +1 -1
- data/public/railwatch/manifest.json +612 -1591
- metadata +242 -117
- data/public/railwatch/assets/app-layout-Zc0v-hYh.js +0 -1
- data/public/railwatch/assets/app-wordmark-BA_60AVb.js +0 -1
- data/public/railwatch/assets/appearance-CcfP9tZ7.js +0 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +0 -1
- data/public/railwatch/assets/auth-layout-C05gEBIQ.js +0 -1
- data/public/railwatch/assets/badge-DRae8XwK.js +0 -1
- data/public/railwatch/assets/checkbox-DPkLUiwM.js +0 -1
- data/public/railwatch/assets/code-CLmYS6FU.js +0 -1
- data/public/railwatch/assets/copy-DaQMJWoT.js +0 -1
- data/public/railwatch/assets/copy-block-CGcXxp8J.js +0 -1
- data/public/railwatch/assets/copy-id-vBYHQwxg.js +0 -1
- data/public/railwatch/assets/cursor-load-more-Ddwxe5dZ.js +0 -1
- data/public/railwatch/assets/data-table-CzKTEE-O.js +0 -1
- data/public/railwatch/assets/edit-B1kmWkzd.js +0 -8
- data/public/railwatch/assets/edit-D9cx4pbG.js +0 -1
- data/public/railwatch/assets/edit-yv6j9p-V.js +0 -1
- data/public/railwatch/assets/empty-state-CW4wclK_.js +0 -1
- data/public/railwatch/assets/env-layout-Kz7wks1x.js +0 -1
- data/public/railwatch/assets/filter-bar-CJDjWFib.js +0 -1
- data/public/railwatch/assets/frames-zZuIaNH9.js +0 -1
- data/public/railwatch/assets/google-sign-in-button-2_zgbgVy.js +0 -1
- data/public/railwatch/assets/index-B49SWz7K.js +0 -1
- data/public/railwatch/assets/index-BHlY4wKe.js +0 -1
- data/public/railwatch/assets/index-BZpPtyFY.js +0 -1
- data/public/railwatch/assets/index-BeVK6jCL.js +0 -1
- data/public/railwatch/assets/index-BfbSo01U.js +0 -1
- data/public/railwatch/assets/index-BfgncAv6.js +0 -1
- data/public/railwatch/assets/index-BhNszK1k.js +0 -1
- data/public/railwatch/assets/index-Bu01uWvw.js +0 -1
- data/public/railwatch/assets/index-C1s_hK3p.js +0 -1
- data/public/railwatch/assets/index-CBip6V4z.js +0 -1
- data/public/railwatch/assets/index-CMJGss5R.js +0 -1
- data/public/railwatch/assets/index-CRo3yK20.js +0 -1
- data/public/railwatch/assets/index-CWB_p2J8.js +0 -1
- data/public/railwatch/assets/index-CWHpndGc.js +0 -1
- data/public/railwatch/assets/index-Ca_S4Sc3.js +0 -1
- data/public/railwatch/assets/index-CanPDDOa.js +0 -1
- data/public/railwatch/assets/index-Cie90Yat.js +0 -1
- data/public/railwatch/assets/index-CiepQ_pR.js +0 -1
- data/public/railwatch/assets/index-Cm1uCIGN.js +0 -1
- data/public/railwatch/assets/index-CzitnnSC.js +0 -1
- data/public/railwatch/assets/index-DEUfClv3.js +0 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +0 -1
- data/public/railwatch/assets/index-DK6y0YHp.js +0 -1
- data/public/railwatch/assets/index-DMNPpLH9.js +0 -1
- data/public/railwatch/assets/index-DZO1mSfX.js +0 -1
- data/public/railwatch/assets/index-Db5wj3M5.js +0 -1
- data/public/railwatch/assets/index-Dcy5WktB.js +0 -1
- data/public/railwatch/assets/index-DvG0-7Lx.js +0 -1
- data/public/railwatch/assets/index-Dvj1wuka.js +0 -1
- data/public/railwatch/assets/index-KyZX46qX.js +0 -1
- data/public/railwatch/assets/index-Ze-KP-sl.js +0 -1
- data/public/railwatch/assets/index-mhRbWLBM.js +0 -1
- data/public/railwatch/assets/index-x099JL5f.js +0 -1
- data/public/railwatch/assets/index-x28zb_nf.js +0 -1
- data/public/railwatch/assets/inertia-Cuyz2ZHO.js +0 -97
- data/public/railwatch/assets/input-error-hog6gGxg.js +0 -1
- data/public/railwatch/assets/json-viewer-DH2W9HXf.js +0 -1
- data/public/railwatch/assets/klass-DHbDelLk.js +0 -1
- data/public/railwatch/assets/label-DdCBgiUn.js +0 -1
- data/public/railwatch/assets/layout-Cueyl7c5.js +0 -1
- data/public/railwatch/assets/live-dot-BZgYTYdt.js +0 -41
- data/public/railwatch/assets/nav-BSSGObDZ.js +0 -1
- data/public/railwatch/assets/new-B8FSb8Bl.js +0 -1
- data/public/railwatch/assets/new-C39_v2Ll.js +0 -1
- data/public/railwatch/assets/new-DVOPwaC5.js +0 -1
- data/public/railwatch/assets/new-Dd40nvJR.js +0 -1
- data/public/railwatch/assets/new-SxnYe1SE.js +0 -1
- data/public/railwatch/assets/new-eP5vKD3Y.js +0 -1
- data/public/railwatch/assets/onboarding-CUpZl5KB.js +0 -1
- data/public/railwatch/assets/origin-identity-BYt2uiuo.js +0 -1
- data/public/railwatch/assets/relative-time-D5UbF4oO.js +0 -1
- data/public/railwatch/assets/route-DQAY8JEr.js +0 -1
- data/public/railwatch/assets/select-2R16457Z.js +0 -1
- data/public/railwatch/assets/separator-D5I0UCB5.js +0 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +0 -1
- data/public/railwatch/assets/show-2BkeNRUC.js +0 -2
- data/public/railwatch/assets/show-B0X1hRQH.js +0 -1
- data/public/railwatch/assets/show-BKUV5l5q.js +0 -1
- data/public/railwatch/assets/show-BQJD_CsF.js +0 -6
- data/public/railwatch/assets/show-BhmD6Sxp.js +0 -1
- data/public/railwatch/assets/show-C3KcnVo2.js +0 -1
- data/public/railwatch/assets/show-C95cHd06.js +0 -2
- data/public/railwatch/assets/show-CdB4uVQS.js +0 -1
- data/public/railwatch/assets/show-CoCqcVIp.js +0 -1
- data/public/railwatch/assets/show-D2LqjEsU.js +0 -1
- data/public/railwatch/assets/show-DNpnKyTh.js +0 -1
- data/public/railwatch/assets/show-DOlTxbig.js +0 -1
- data/public/railwatch/assets/show-DQCkttL8.js +0 -1
- data/public/railwatch/assets/show-DcxesipC.js +0 -1
- data/public/railwatch/assets/show-IGJoc_X0.js +0 -1
- data/public/railwatch/assets/show-qNV6H8SH.js +0 -2
- data/public/railwatch/assets/stat-ZtxGU8lE.js +0 -1
- data/public/railwatch/assets/status-badge-CH5P-Xkj.js +0 -1
- data/public/railwatch/assets/text-link-DHJ8BXx5.js +0 -1
- data/public/railwatch/assets/textarea-BeQtQyl5.js +0 -1
- data/public/railwatch/assets/timeline-CaKQVu48.js +0 -1
- data/public/railwatch/assets/transition-ksDpqhKJ.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as c,C as i}from"./inertia-Cuyz2ZHO.js";function p(o){const e=n.c(8);let s,t,r;e[0]!==o?({messages:s,className:r,...t}=o,e[0]=o,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);const a=r===void 0?"":r;let l;return e[4]!==a||e[5]!==s||e[6]!==t?(l=s?c.jsx("p",{...t,className:i("text-sm text-red-600 dark:text-red-400",a),children:s.join(", ")}):null,e[4]=a,e[5]=s,e[6]=t,e[7]=l):l=e[7],l}export{p as I};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,r as A,C as w,j as s}from"./inertia-Cuyz2ZHO.js";import{B as E}from"./app-wordmark-BA_60AVb.js";import{u as J,C as O}from"./use-clipboard-DNefo-ky.js";import{C as R}from"./index-BfbSo01U.js";import{C as B,a as D}from"./app-layout-Zc0v-hYh.js";function L(i){return i!==null&&typeof i=="object"}function P(i){return i===null?"text-muted-foreground":typeof i=="string"?"text-emerald-600 dark:text-emerald-400":typeof i=="number"?"text-amber-600 dark:text-amber-400":typeof i=="boolean"?"text-primary":""}function T(i){const e=$.c(5),{value:t}=i,r=t===null?"null":typeof t=="string"?`"${t}"`:String(t);let a;e[0]!==t?(a=P(t),e[0]=t,e[1]=a):a=e[1];let u;return e[2]!==a||e[3]!==r?(u=s.jsx("span",{className:a,children:r}),e[2]=a,e[3]=r,e[4]=u):u=e[4],u}function z(i){const e=$.c(42),{label:t,value:r,depth:a,collapsed:u}=i,[f,C]=A.useState(!u),y=`${a*12}px`;let m;e[0]!==y?(m={paddingLeft:y},e[0]=y,e[1]=m):m=e[1];const n=m;if(!L(r)){let c;e[2]!==t?(c=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[2]=t,e[3]=c):c=e[3];let l;e[4]!==r?(l=s.jsx(T,{value:r}),e[4]=r,e[5]=l):l=e[5];let o;return e[6]!==n||e[7]!==c||e[8]!==l?(o=s.jsxs("div",{style:n,children:[c,l]}),e[6]=n,e[7]=c,e[8]=l,e[9]=o):o=e[9],o}let p,d;if(e[10]!==u||e[11]!==a||e[12]!==n||e[13]!==t||e[14]!==f||e[15]!==r){d=Symbol.for("react.early_return_sentinel");e:{const c=Array.isArray(r)?r.map(q):Object.entries(r);let l;e[18]!==r?(l=Array.isArray(r)?["[","]"]:["{","}"],e[18]=r,e[19]=l):l=e[19];const[o,j]=l;if(c.length===0){let h;e[20]!==t?(h=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[20]=t,e[21]=h):h=e[21];let x;e[22]!==j||e[23]!==o?(x=s.jsxs("span",{className:"text-muted-foreground",children:[o,j]}),e[22]=j,e[23]=o,e[24]=x):x=e[24];let N;e[25]!==n||e[26]!==h||e[27]!==x?(N=s.jsxs("div",{style:n,children:[h,x]}),e[25]=n,e[26]=h,e[27]=x,e[28]=N):N=e[28],d=N;break e}let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>C(V),e[29]=_):_=e[29];let g;e[30]!==f?(g=f?s.jsx(B,{className:"text-muted-foreground size-3"}):s.jsx(D,{className:"text-muted-foreground size-3"}),e[30]=f,e[31]=g):g=e[31];let b;e[32]!==t?(b=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,":"]}),e[32]=t,e[33]=b):b=e[33];const S=!f&&`…${c.length}…${j}`;let v;e[34]!==o||e[35]!==S?(v=s.jsxs("span",{className:"text-muted-foreground",children:[o,S]}),e[34]=o,e[35]=S,e[36]=v):v=e[36];let k;e[37]!==n||e[38]!==v||e[39]!==g||e[40]!==b?(k=s.jsxs("button",{type:"button",onClick:_,className:"hover:bg-muted/60 inline-flex items-center gap-0.5 rounded",style:n,children:[g,b,v]}),e[37]=n,e[38]=v,e[39]=g,e[40]=b,e[41]=k):k=e[41],p=s.jsxs("div",{children:[k,f&&s.jsxs("div",{children:[c.map(h=>{const[x,N]=h;return s.jsx(z,{label:Array.isArray(r)?void 0:x,value:N,depth:a+1,collapsed:u},x)}),s.jsx("div",{className:"text-muted-foreground",style:n,children:j})]})]})}e[10]=u,e[11]=a,e[12]=n,e[13]=t,e[14]=f,e[15]=r,e[16]=p,e[17]=d}else p=e[16],d=e[17];return d!==Symbol.for("react.early_return_sentinel")?d:p}function V(i){return!i}function q(i,e){return[String(e),i]}function M(i){const e=$.c(17),{data:t,collapsed:r,className:a}=i,u=r===void 0?!1:r,[,f]=J(),[C,y]=A.useState(!1);let m;e[0]!==a?(m=w("bg-muted/60 relative rounded p-2 pr-8 font-mono text-xs",a),e[0]=a,e[1]=m):m=e[1];let n;e[2]!==f||e[3]!==t?(n=()=>{(async()=>await f(JSON.stringify(t,null,2))&&(y(!0),setTimeout(()=>y(!1),1200)))()},e[2]=f,e[3]=t,e[4]=n):n=e[4];let p;e[5]!==C?(p=C?s.jsx(R,{className:"size-3.5"}):s.jsx(O,{className:"size-3.5"}),e[5]=C,e[6]=p):p=e[6];let d;e[7]!==n||e[8]!==p?(d=s.jsx(E,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute top-1 right-1",onClick:n,children:p}),e[7]=n,e[8]=p,e[9]=d):d=e[9];const c=t;let l;e[10]!==u||e[11]!==c?(l=s.jsx(z,{value:c,depth:0,collapsed:u}),e[10]=u,e[11]=c,e[12]=l):l=e[12];let o;return e[13]!==m||e[14]!==d||e[15]!==l?(o=s.jsxs("div",{className:m,children:[d,l]}),e[13]=m,e[14]=d,e[15]=l,e[16]=o):o=e[16],o}export{M as J};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as pe,u as de,X as fe,j as s,e as ne,Y as he,K as be}from"./inertia-Cuyz2ZHO.js";import{V as xe,D as ye}from"./chart-panel-CC49WTQL.js";import{D as ve}from"./data-table-CzKTEE-O.js";import{F as ge}from"./filter-bar-CJDjWFib.js";import{O as ae}from"./origin-identity-BYt2uiuo.js";import{u as _e,P as je,E as ke}from"./env-layout-Kz7wks1x.js";import{S as G,a as we}from"./stat-ZtxGU8lE.js";import{S as Oe}from"./status-badge-CH5P-Xkj.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./tenant-path-CQoP-BeF.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";function at(t){const e=pe.c(104),{environment:re,window:r,range:n}=de().props,{window:ce,label:me}=_e(),i=re.application_id,l=re.id;let F;e[0]!==n?.from||e[1]!==n?.to||e[2]!==r?(F=r==="custom"?{from:n?.from,to:n?.to}:{window:r},e[0]=n?.from,e[1]=n?.to,e[2]=r,e[3]=F):F=e[3];const U=F,o=t.summary.current,c=t.summary.previous,m=ce==="custom"?"vs previous period":`vs previous ${me}`,ue=t.name;let u;e[4]!==i||e[5]!==l||e[6]!==r?(u=fe(i,l,{window:r}),e[4]=i,e[5]=l,e[6]=r,e[7]=u):u=e[7];let p;e[8]!==u?(p={title:"Jobs",href:u},e[8]=u,e[9]=p):p=e[9];let d;e[10]!==t.name?(d={title:t.name,href:"#"},e[10]=t.name,e[11]=d):d=e[11];let f;e[12]!==p||e[13]!==d?(f=[p,d],e[12]=p,e[13]=d,e[14]=f):f=e[14];let h;e[15]!==t.name?(h=s.jsx(je,{title:s.jsx("span",{className:"font-mono",children:t.name})}),e[15]=t.name,e[16]=h):h=e[16];let b;e[17]!==o.count?(b=Se(o.count),e[17]=o.count,e[18]=b):b=e[18];let x;e[19]!==b?(x=s.jsx(G,{label:"Attempts",value:b}),e[19]=b,e[20]=x):x=e[20];let y;e[21]!==o.count||e[22]!==o.errors?(y=qe(o.errors,o.count),e[21]=o.count,e[22]=o.errors,e[23]=y):y=e[23];const Z=o.errors?"destructive":"success",ee=o.count?o.errors/o.count*100:0,te=c.count?c.errors/c.count*100:0;let v;e[24]!==ee||e[25]!==te?(v={current:ee,previous:te,goodDirection:"down"},e[24]=ee,e[25]=te,e[26]=v):v=e[26];let g;e[27]!==m||e[28]!==Z||e[29]!==v||e[30]!==y?(g=s.jsx(G,{label:"Failed",value:y,tone:Z,delta:v,deltaCaption:m}),e[27]=m,e[28]=Z,e[29]=v,e[30]=y,e[31]=g):g=e[31];const oe=o.p50/1e3;let _;e[32]!==oe?(_=C(oe),e[32]=oe,e[33]=_):_=e[33];const se=o.p95/1e3;let N;e[34]!==se?(N=C(se),e[34]=se,e[35]=N):N=e[35];const ie=`p95 ${N}`;let j;e[36]!==c.p95||e[37]!==o.p95?(j={current:o.p95,previous:c.p95,goodDirection:"down"},e[36]=c.p95,e[37]=o.p95,e[38]=j):j=e[38];let k;e[39]!==m||e[40]!==_||e[41]!==ie||e[42]!==j?(k=s.jsx(G,{label:"p50 / p95",value:_,hint:ie,delta:j,deltaCaption:m}),e[39]=m,e[40]=_,e[41]=ie,e[42]=j,e[43]=k):k=e[43];const le=o.max/1e3;let w;e[44]!==le?(w=C(le),e[44]=le,e[45]=w):w=e[45];let O;e[46]!==w?(O=s.jsx(G,{label:"Max",value:w}),e[46]=w,e[47]=O):O=e[47];let S;e[48]!==g||e[49]!==k||e[50]!==O||e[51]!==x?(S=s.jsxs(we,{children:[x,g,k,O]}),e[48]=g,e[49]=k,e[50]=O,e[51]=x,e[52]=S):S=e[52];let q;e[53]!==t.deploys||e[54]!==t.series?(q=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(xe,{legend:"job",label:"Attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),s.jsx(ye,{label:"Duration",data:t.series,deploys:t.deploys})]}),e[53]=t.deploys,e[54]=t.series,e[55]=q):q=e[55];let W,L,R,$;e[56]===Symbol.for("react.memo_cache_sentinel")?(W={key:"user",label:"Origin user"},L={key:"tenant",label:"Origin tenant"},R={key:"queue",label:"Queue"},$={key:"job_id",label:"Job ID"},e[56]=W,e[57]=L,e[58]=R,e[59]=$):(W=e[56],L=e[57],R=e[58],$=e[59]);let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B=[W,L,R,$,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[60]=B):B=e[60];let D;e[61]!==i||e[62]!==l||e[63]!==t.group_hash||e[64]!==U?(D=a=>ne.visit(he(i,l,t.group_hash,{...U,q:a||void 0}),{preserveState:!0}),e[61]=i,e[62]=l,e[63]=t.group_hash,e[64]=U,e[65]=D):D=e[65];let P;e[66]!==t.q||e[67]!==D?(P=s.jsx(ge,{value:t.q,fields:B,onChange:D,placeholder:"Filter attempts by origin, queue, or outcome"}),e[66]=t.q,e[67]=D,e[68]=P):P=e[68];let E;e[69]!==i||e[70]!==l?(E=a=>ne.visit(be(i,l,a.execution_id)),e[69]=i,e[70]=l,e[71]=E):E=e[71];let K,Q,V,H;e[72]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",cell:Ce},Q={key:"st",header:"Outcome",cell:Ae},V={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:Me},H={key:"q",hideOnMobile:!0,header:"Queue",cell:Je},e[72]=K,e[73]=Q,e[74]=V,e[75]=H):(K=e[72],Q=e[73],V=e[74],H=e[75]);let I;e[76]!==i||e[77]!==l||e[78]!==n||e[79]!==r?(I={key:"user",hideOnMobile:!0,header:"Origin user",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"user",range:n,window:r})},e[76]=i,e[77]=l,e[78]=n,e[79]=r,e[80]=I):I=e[80];let J;e[81]!==i||e[82]!==l||e[83]!==n||e[84]!==r?(J={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"tenant",range:n,window:r})},e[81]=i,e[82]=l,e[83]=n,e[84]=r,e[85]=J):J=e[85];let T,X,Y;e[86]===Symbol.for("react.memo_cache_sentinel")?(T={key:"wait",hideOnMobile:!0,header:"Waited",align:"right",cell:Ie},X={key:"dur",header:"Duration",align:"right",cell:Ee},Y={key:"ex",header:"Exception",cell:Pe},e[86]=T,e[87]=X,e[88]=Y):(T=e[86],X=e[87],Y=e[88]);let M;e[89]!==I||e[90]!==J?(M=[K,Q,V,H,I,J,T,X,Y],e[89]=I,e[90]=J,e[91]=M):M=e[91];let A;e[92]!==t.attempts||e[93]!==E||e[94]!==M?(A=s.jsx(ve,{rows:t.attempts,rowKey:Fe,onRowClick:E,columns:M}),e[92]=t.attempts,e[93]=E,e[94]=M,e[95]=A):A=e[95];let z;return e[96]!==t.name||e[97]!==S||e[98]!==q||e[99]!==P||e[100]!==A||e[101]!==f||e[102]!==h?(z=s.jsxs(ke,{title:ue,crumbs:f,children:[h,S,q,P,A]}),e[96]=t.name,e[97]=S,e[98]=q,e[99]=P,e[100]=A,e[101]=f,e[102]=h,e[103]=z):z=e[103],z}function Pe(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ee(t){return C(t.duration)}function Ie(t){return C(t.queue_latency)}function Je(t){return t.queue}function Me(t){return t.attempt}function Ae(t){return s.jsx(Oe,{outcome:t.outcome})}function Ce(t){return s.jsx("span",{className:"text-xs",children:De(t.occurred_at)})}function Fe(t){return t.execution_id}export{at as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s,C as d,j as l,r as u}from"./inertia-Cuyz2ZHO.js";import{P as f}from"./index-CBip6V4z.js";function v(o){const e=s.c(10);let r,t,i;e[0]!==o?({className:r,type:i,...t}=o,e[0]=o,e[1]=r,e[2]=t,e[3]=i):(r=e[1],t=e[2],i=e[3]);let a;e[4]!==r?(a=d("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),e[4]=r,e[5]=a):a=e[5];let n;return e[6]!==t||e[7]!==a||e[8]!==i?(n=l.jsx("input",{type:i,"data-slot":"input",className:a,...t}),e[6]=t,e[7]=a,e[8]=i,e[9]=n):n=e[9],n}var c=Object.defineProperty,p=(o,e)=>c(o,"name",{value:e,configurable:!0}),b=u.forwardRef(p(function(e,r){return l.jsx(f.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"Label")),m=b;function w(o){const e=s.c(8);let r,t;e[0]!==o?({className:r,...t}=o,e[0]=o,e[1]=r,e[2]=t):(r=e[1],t=e[2]);let i;e[3]!==r?(i=d("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=l.jsx(m,{"data-slot":"label",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}export{v as I,w as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,j as l,u as h,L as u,C as p,a2 as g,aG as j,aH as N,aI as y,aF as w}from"./inertia-Cuyz2ZHO.js";import{B as P}from"./app-wordmark-BA_60AVb.js";import{S}from"./separator-D5I0UCB5.js";function H(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h3",{className:"mb-0.5 text-base font-medium",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("header",{children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}function b(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("div",{className:"mb-8 space-y-0.5",children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}const v=[{title:"Profile",href:g(),icon:null},{title:"Email",href:j(),icon:null},{title:"Password",href:N(),icon:null},{title:"Sessions",href:y(),icon:null},{title:"Appearance",href:w(),icon:null}];function L(o){const e=x.c(11),{children:n}=o,{url:i}=h();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx(b,{title:"Settings",description:"Manage your profile and account settings"}),e[0]=t):t=e[0];let s;e[1]!==i?(s=v.map((r,d)=>l.jsx(P,{size:"sm",variant:"ghost",asChild:!0,className:p("w-full justify-start",{"bg-muted":i===r.href}),children:l.jsxs(u,{href:r.href,children:[r.icon&&l.jsx(r.icon,{className:"h-4 w-4"}),r.title]})},`${r.href}-${d}`)),e[1]=i,e[2]=s):s=e[2];let a;e[3]!==s?(a=l.jsx("aside",{className:"w-full max-w-xl lg:w-48",children:l.jsx("nav",{className:"flex flex-col space-y-1 space-x-0",children:s})}),e[3]=s,e[4]=a):a=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(S,{className:"my-6 md:hidden"}),e[5]=f):f=e[5];let c;e[6]!==n?(c=l.jsx("div",{className:"flex-1 md:max-w-2xl",children:l.jsx("section",{className:"max-w-xl space-y-12",children:n})}),e[6]=n,e[7]=c):c=e[7];let m;return e[8]!==a||e[9]!==c?(m=l.jsxs("div",{className:"px-4 py-6",children:[t,l.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12",children:[a,f,c]})]}),e[8]=a,e[9]=c,e[10]=m):m=e[10],m}export{H,L as S};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{B as Un,r as f,a3 as Xn,j as P,W as Kt,c as z,C as Y,a5 as Yn}from"./inertia-Cuyz2ZHO.js";import{P as V,d as Kn}from"./index-CBip6V4z.js";import{u as de,a as Gn,B as Zn}from"./app-wordmark-BA_60AVb.js";import{b as ce,a as re,P as pt,c as Gt,u as qn,d as Qn}from"./index-BfbSo01U.js";const Jn=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ji=Un("bell",Jn);var er=Object.defineProperty,tr=(t,e)=>er(t,"name",{value:e,configurable:!0}),nr=Xn[" useId ".trim().toString()]||(()=>{}),rr=0;function _e(t){const[e,n]=f.useState(nr());return ce(()=>{t||n(r=>r??String(rr++))},[t]),t||(e?`radix-${e}`:"")}tr(_e,"useId");var or=Object.defineProperty,ir=(t,e)=>or(t,"name",{value:e,configurable:!0});function le(t){const e=f.useRef(t);return f.useEffect(()=>{e.current=t}),f.useMemo(()=>((...n)=>e.current?.(...n)),[])}ir(le,"useCallbackRef");var sr=Object.defineProperty,F=(t,e)=>sr(t,"name",{value:e,configurable:!0}),ot="dismissableLayer.update",ar="dismissableLayer.pointerDownOutside",cr="dismissableLayer.focusOutside",Tt,Zt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lr=f.forwardRef(F(function(e,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...m}=e,l=f.useContext(Zt),[d,g]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=f.useState({}),v=de(n,g),y=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=w?y.indexOf(w):-1,x=d?y.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,S=f.useRef(!1),R=Qt(O=>{s?.(O),c?.(O),O.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:l.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(O=>{if(!(O instanceof Node))return!1;const L=[...l.branches].some(_=>_.contains(O));return E&&!L},[l.branches,E])}),A=Jt(O=>{if(o&&S.current)return;const L=O.target;[...l.branches].some(j=>j.contains(L))||(a?.(O),c?.(O),O.defaultPrevented||u?.())},h),T=d?x===y.length-1:!1,N=le(O=>{O.key==="Escape"&&(i?.(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))});return f.useEffect(()=>{if(T)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,T,N]),f.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),it(),()=>{r&&(l.layersWithOutsidePointerEventsDisabled.delete(d),l.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Tt))}},[d,h,r,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),it())},[d,l]),f.useEffect(()=>{const O=F(()=>p({}),"handleUpdate");return document.addEventListener(ot,O),()=>document.removeEventListener(ot,O)},[]),P.jsx(V.div,{...m,ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,A.onFocusCapture),onBlurCapture:re(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function qt(){const t=f.useContext(Zt),[e,n]=f.useState(null);return f.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}F(qt,"useDismissableLayerSurface");var ur=F(()=>!0,"IS_TRUE");function Qt(t,e){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=ur}=e,a=le(t),c=f.useRef(!1),u=f.useRef(!1),m=f.useRef(new Map),l=f.useRef(()=>{});return f.useEffect(()=>{function d(){u.current=!1,o.current=!1,m.current.clear()}F(d,"resetOutsideInteraction");function g(){return Array.from(m.current.values()).some(Boolean)}F(g,"isOutsideInteractionIntercepted");function h(b){if(!u.current)return;const x=b.target;x instanceof Node&&[...i].some(E=>E.contains(x))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&l.current()},0)}F(h,"handleInteractionCapture");function p(b){u.current&&m.current.set(b.type,!1)}F(p,"handleInteractionBubble");const v=F(b=>{if(b.target&&!c.current){let x=function(){n.removeEventListener("click",l.current);const E=g();d(),E||mt(ar,a,C,{discrete:!0})};if(F(x,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",l.current),d(),c.current=!1;return}const C={originalEvent:b};u.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?x():(n.removeEventListener("click",l.current),l.current=x,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),d();c.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,h,!0),n.addEventListener(b,p);const w=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(w),n.removeEventListener("pointerdown",v),n.removeEventListener("click",l.current);for(const b of y)n.removeEventListener(b,h,!0),n.removeEventListener(b,p)}},[n,a,r,o,i,s]),{onPointerDownCapture:F(()=>c.current=!0,"onPointerDownCapture")}}F(Qt,"usePointerDownOutside");function Jt(t,e=globalThis?.document){const n=le(t),r=f.useRef(!1);return f.useEffect(()=>{const o=F(i=>{i.target&&!r.current&&mt(cr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:F(()=>r.current=!0,"onFocusCapture"),onBlurCapture:F(()=>r.current=!1,"onBlurCapture")}}F(Jt,"useFocusOutside");function it(){const t=new CustomEvent(ot);document.dispatchEvent(t)}F(it,"dispatchUpdate");function mt(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?Kn(o,i):o.dispatchEvent(i)}F(mt,"handleAndDispatchCustomEvent");var fr=Object.defineProperty,I=(t,e)=>fr(t,"name",{value:e,configurable:!0}),Ke="focusScope.autoFocusOnMount",Ge="focusScope.autoFocusOnUnmount",_t={bubbles:!1,cancelable:!0},dr=f.forwardRef(I(function(e,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[c,u]=f.useState(null),m=le(i),l=le(s),d=f.useRef(null),g=de(n,u),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let v=function(x){if(h.paused||!c)return;const C=x.target;c.contains(C)?d.current=C:q(d.current,{select:!0})},y=function(x){if(h.paused||!c)return;const C=x.relatedTarget;C!==null&&(c.contains(C)||q(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&q(c)};I(v,"handleFocusIn"),I(y,"handleFocusOut"),I(w,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",y);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),b.disconnect()}}},[o,c,h.paused]),f.useEffect(()=>{if(c){Lt.add(h);const v=document.activeElement;if(!c.contains(v)){const w=new CustomEvent(Ke,_t);c.addEventListener(Ke,m),c.dispatchEvent(w),w.defaultPrevented||(en(sn(ht(c)),{select:!0}),document.activeElement===v&&q(c))}return()=>{c.removeEventListener(Ke,m),setTimeout(()=>{const w=new CustomEvent(Ge,_t);c.addEventListener(Ge,l),c.dispatchEvent(w),w.defaultPrevented||q(v??document.body,{select:!0}),c.removeEventListener(Ge,l),Lt.remove(h)},0)}}},[c,m,l,h]);const p=f.useCallback(v=>{if(!r&&!o||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const b=v.currentTarget,[x,C]=tn(b);x&&C?!v.shiftKey&&w===C?(v.preventDefault(),r&&q(x,{select:!0})):v.shiftKey&&w===x&&(v.preventDefault(),r&&q(C,{select:!0})):w===b&&v.preventDefault()}},[r,o,h.paused]);return P.jsx(V.div,{tabIndex:-1,...a,ref:g,onKeyDown:p})},"FocusScope"));function en(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(q(r,{select:e}),document.activeElement!==n)return}I(en,"focusFirst");function tn(t){const e=ht(t),n=st(e,t),r=st(e.reverse(),t);return[n,r]}I(tn,"getTabbableEdges");function ht(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:I(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)e.push(n.currentNode);return e}I(ht,"getTabbableCandidates");function st(t,e){const n=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nn(r,{upTo:e})))return r}I(st,"findVisible");function nn(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}I(nn,"isHidden");function rn(t){return t instanceof HTMLInputElement&&"select"in t}I(rn,"isSelectableInput");function q(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&rn(t)&&e&&t.select()}}I(q,"focus");var Lt=on();function on(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=at(t,e),t.unshift(e)},remove(e){t=at(t,e),t[0]?.resume()}}}I(on,"createFocusScopesStack");function at(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}I(at,"arrayRemove");function sn(t){return t.filter(e=>e.tagName!=="A")}I(sn,"removeLinks");var pr=Object.defineProperty,mr=(t,e)=>pr(t,"name",{value:e,configurable:!0}),hr=f.forwardRef(mr(function(e,n){const{container:r,...o}=e,[i,s]=f.useState(!1);ce(()=>s(!0),[]);const a=r||i&&globalThis?.document?.body;return a?Kt.createPortal(P.jsx(V.div,{...o,ref:n}),a):null},"Portal")),gr=Object.defineProperty,gt=(t,e)=>gr(t,"name",{value:e,configurable:!0}),Se=0,pe=null;function vr(t){return vt(),t.children}gt(vr,"FocusGuards");function vt(){f.useEffect(()=>{pe||(pe={start:ct(),end:ct()});const{start:t,end:e}=pe;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),Se++,()=>{Se===1&&(pe?.start.remove(),pe?.end.remove(),pe=null),Se=Math.max(0,Se-1)}},[])}gt(vt,"useFocusGuards");function ct(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}gt(ct,"createFocusGuard");var X=function(){return X=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},X.apply(this,arguments)};function an(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function wr(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Le="right-scroll-bar-position",Ne="width-before-scroll-bar",yr="with-scroll-bars-hidden",br="--removed-body-scroll-bar-size";function Ze(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function xr(t,e){var n=f.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Cr=typeof window<"u"?f.useLayoutEffect:f.useEffect,Nt=new WeakMap;function Er(t,e){var n=xr(null,function(r){return t.forEach(function(o){return Ze(o,r)})});return Cr(function(){var r=Nt.get(n);if(r){var o=new Set(r),i=new Set(t),s=n.current;o.forEach(function(a){i.has(a)||Ze(a,null)}),i.forEach(function(a){o.has(a)||Ze(a,s)})}Nt.set(n,t)},[t]),n}function Pr(t){return t}function Sr(t,e){e===void 0&&(e=Pr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var s=e(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var m=s;s=[],m.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Or(t){t===void 0&&(t={});var e=Sr(null);return e.options=X({async:!0,ssr:!1},t),e}var cn=function(t){var e=t.sideCar,n=an(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,X({},n))};cn.isSideCarExport=!0;function Rr(t,e){return t.useMedium(e),cn}var ln=Or(),qe=function(){},$e=f.forwardRef(function(t,e){var n=f.useRef(null),r=f.useState({onScrollCapture:qe,onWheelCapture:qe,onTouchMoveCapture:qe}),o=r[0],i=r[1],s=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,m=t.enabled,l=t.shards,d=t.sideCar,g=t.noRelative,h=t.noIsolation,p=t.inert,v=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,b=t.gapMode,x=an(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,E=Er([n,e]),S=X(X({},x),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:ln,removeScrollBar:u,shards:l,noRelative:g,noIsolation:h,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?f.cloneElement(f.Children.only(a),X(X({},S),{ref:E})):f.createElement(w,X({},S,{className:c,ref:E}),a))});$e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$e.classNames={fullWidth:Ne,zeroRight:Le};var Dr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ar(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Dr();return e&&t.setAttribute("nonce",e),t}function Tr(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function _r(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Lr=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Ar())&&(Tr(e,n),_r(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Nr=function(){var t=Lr();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},un=function(){var t=Nr(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},kr={left:0,top:0,right:0,gap:0},Qe=function(t){return parseInt(t||"",10)||0},Mr=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Qe(n),Qe(r),Qe(o)]},Fr=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return kr;var e=Mr(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Ir=un(),ve="data-scroll-locked",jr=function(t,e,n,r){var o=t.left,i=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(yr,` {
|
|
3
|
-
overflow: hidden `).concat(r,`;
|
|
4
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(ve,`] {
|
|
7
|
-
overflow: hidden `).concat(r,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
-
padding-left: `.concat(o,`px;
|
|
11
|
-
padding-top: `).concat(i,`px;
|
|
12
|
-
padding-right: `).concat(s,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(Le,` {
|
|
20
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(Ne,` {
|
|
24
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(Le," .").concat(Le,` {
|
|
28
|
-
right: 0 `).concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Ne," .").concat(Ne,` {
|
|
32
|
-
margin-right: 0 `).concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(ve,`] {
|
|
36
|
-
`).concat(br,": ").concat(a,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},kt=function(){var t=parseInt(document.body.getAttribute(ve)||"0",10);return isFinite(t)?t:0},$r=function(){f.useEffect(function(){return document.body.setAttribute(ve,(kt()+1).toString()),function(){var t=kt()-1;t<=0?document.body.removeAttribute(ve):document.body.setAttribute(ve,t.toString())}},[])},Wr=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;$r();var i=f.useMemo(function(){return Fr(o)},[o]);return f.createElement(Ir,{styles:jr(i,!e,o,n?"":"!important")})},lt=!1;if(typeof window<"u")try{var Oe=Object.defineProperty({},"passive",{get:function(){return lt=!0,!0}});window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch{lt=!1}var me=lt?{passive:!1}:!1,Br=function(t){return t.tagName==="TEXTAREA"},fn=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Br(t)&&n[e]==="visible")},Hr=function(t){return fn(t,"overflowY")},zr=function(t){return fn(t,"overflowX")},Mt=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dn(t,r);if(o){var i=pn(t,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vr=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Ur=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},dn=function(t,e){return t==="v"?Hr(e):zr(e)},pn=function(t,e){return t==="v"?Vr(e):Ur(e)},Xr=function(t,e){return t==="h"&&e==="rtl"?-1:1},Yr=function(t,e,n,r,o){var i=Xr(t,window.getComputedStyle(e).direction),s=i*r,a=n.target,c=e.contains(a),u=!1,m=s>0,l=0,d=0;do{if(!a)break;var g=pn(t,a),h=g[0],p=g[1],v=g[2],y=p-v-i*h;(h||y)&&dn(t,a)&&(l+=y,d+=h);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(m&&Math.abs(l)<1||!m&&Math.abs(d)<1)&&(u=!0),u},Re=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ft=function(t){return[t.deltaX,t.deltaY]},It=function(t){return t&&"current"in t?t.current:t},Kr=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Gr=function(t){return`
|
|
39
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
41
|
-
`)},Zr=0,he=[];function qr(t){var e=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Zr++)[0],i=f.useState(un)[0],s=f.useRef(t);f.useEffect(function(){s.current=t},[t]),f.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var p=wr([t.lockRef.current],(t.shards||[]).map(It),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var a=f.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Re(p),w=n.current,b="deltaX"in p?p.deltaX:w[0]-y[0],x="deltaY"in p?p.deltaY:w[1]-y[1],C,E=p.target,S=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in p&&S==="h"&&E.type==="range")return!1;var R=window.getSelection(),A=R&&R.anchorNode,T=A?A===E||A.contains(E):!1;if(T)return!1;var N=Mt(S,E);if(!N)return!0;if(N?C=S:(C=S==="v"?"h":"v",N=Mt(S,E)),!N)return!1;if(!r.current&&"changedTouches"in p&&(b||x)&&(r.current=C),!C)return!0;var O=r.current||C;return Yr(O,v,p,O==="h"?b:x)},[]),c=f.useCallback(function(p){var v=p;if(!(!he.length||he[he.length-1]!==i)){var y="deltaY"in v?Ft(v):Re(v),w=e.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Kr(C.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var b=(s.current.shards||[]).map(It).filter(Boolean).filter(function(C){return C.contains(v.target)}),x=b.length>0?a(v,b[0]):!s.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),u=f.useCallback(function(p,v,y,w){var b={name:p,delta:v,target:y,should:w,shadowParent:Qr(y)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(x){return x!==b})},1)},[]),m=f.useCallback(function(p){n.current=Re(p),r.current=void 0},[]),l=f.useCallback(function(p){u(p.type,Ft(p),p.target,a(p,t.lockRef.current))},[]),d=f.useCallback(function(p){u(p.type,Re(p),p.target,a(p,t.lockRef.current))},[]);f.useEffect(function(){return he.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,me),document.addEventListener("touchmove",c,me),document.addEventListener("touchstart",m,me),function(){he=he.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,me),document.removeEventListener("touchmove",c,me),document.removeEventListener("touchstart",m,me)}},[]);var g=t.removeScrollBar,h=t.inert;return f.createElement(f.Fragment,null,h?f.createElement(i,{styles:Gr(o)}):null,g?f.createElement(Wr,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Qr(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Jr=Rr(ln,qr);var mn=f.forwardRef(function(t,e){return f.createElement($e,X({},t,{ref:e,sideCar:Jr}))});mn.classNames=$e.classNames;var eo=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ge=new WeakMap,De=new WeakMap,Ae={},Je=0,hn=function(t){return t&&(t.host||hn(t.parentNode))},to=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=hn(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},no=function(t,e,n,r){var o=to(e,Array.isArray(t)?t:[t]);Ae[n]||(Ae[n]=new WeakMap);var i=Ae[n],s=[],a=new Set,c=new Set(o),u=function(l){!l||a.has(l)||(a.add(l),u(l.parentNode))};o.forEach(u);var m=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(d){if(a.has(d))m(d);else try{var g=d.getAttribute(r),h=g!==null&&g!=="false",p=(ge.get(d)||0)+1,v=(i.get(d)||0)+1;ge.set(d,p),i.set(d,v),s.push(d),p===1&&h&&De.set(d,!0),v===1&&d.setAttribute(n,"true"),h||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return m(e),a.clear(),Je++,function(){s.forEach(function(l){var d=ge.get(l)-1,g=i.get(l)-1;ge.set(l,d),i.set(l,g),d||(De.has(l)||l.removeAttribute(r),De.delete(l)),g||l.removeAttribute(n)}),Je--,Je||(ge=new WeakMap,ge=new WeakMap,De=new WeakMap,Ae={})}},ro=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=eo(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),no(r,o,n,"aria-hidden")):function(){return null}},oo=Object.defineProperty,B=(t,e)=>oo(t,"name",{value:e,configurable:!0}),wt="Dialog",[gn,es]=Gt(wt),[io,U]=gn(wt),so=B(t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=t,a=f.useRef(null),c=f.useRef(null),[u,m]=qn({prop:r,defaultProp:o??!1,onChange:i,caller:wt}),[l,d]=f.useState(0),[g,h]=f.useState(0);return P.jsx(io,{scope:e,triggerRef:a,contentRef:c,contentId:_e(),titleId:_e(),descriptionId:_e(),titlePresent:l>0,descriptionPresent:g>0,setTitleCount:d,setDescriptionCount:h,open:u,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(p=>!p),[m]),modal:s,children:n})},"Dialog"),ao="DialogTrigger",co=f.forwardRef(B(function(e,n){const{__scopeDialog:r,...o}=e,i=U(ao,r),s=de(n,i.triggerRef);return P.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":We(i.open),...o,ref:s,onClick:re(e.onClick,i.onOpenToggle)})},"DialogTrigger")),vn="DialogPortal",[lo,wn]=gn(vn,{forceMount:void 0}),uo=B(t=>{const{__scopeDialog:e,forceMount:n,children:r,container:o}=t,i=U(vn,e);return P.jsx(lo,{scope:e,forceMount:n,children:f.Children.map(r,s=>P.jsx(pt,{present:n||i.open,children:P.jsx(hr,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),ut="DialogOverlay",fo=f.forwardRef(B(function(e,n){const r=wn(ut,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=U(ut,e.__scopeDialog);return s.modal?P.jsx(pt,{present:o||s.open,children:P.jsx(mo,{...i,ref:n})}):null},"DialogOverlay")),po=Gn("DialogOverlay.RemoveScroll"),mo=f.forwardRef(B(function(e,n){const{__scopeDialog:r,...o}=e,i=U(ut,r),s=qt(),a=de(n,s);return P.jsx(mn,{as:po,allowPinchZoom:!0,shards:[i.contentRef],children:P.jsx(V.div,{"data-state":We(i.open),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),xe="DialogContent",ho=f.forwardRef(B(function(e,n){const r=wn(xe,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=U(xe,e.__scopeDialog);return P.jsx(pt,{present:o||s.open,children:s.modal?P.jsx(go,{...i,ref:n}):P.jsx(vo,{...i,ref:n})})},"DialogContent")),go=f.forwardRef(B(function(e,n){const r=U(xe,e.__scopeDialog),o=f.useRef(null),i=de(n,r.contentRef,o);return f.useEffect(()=>{const s=o.current;if(s)return ro(s)},[]),P.jsx(yn,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:re(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:re(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:re(e.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),vo=f.forwardRef(B(function(e,n){const r=U(xe,e.__scopeDialog),o=f.useRef(!1),i=f.useRef(!1);return P.jsx(yn,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;r.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})},"DialogContentNonModal")),yn=f.forwardRef(B(function(e,n){const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,c=U(xe,r);return vt(),P.jsx(P.Fragment,{children:P.jsx(dr,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:P.jsx(lr,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":We(c.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},"DialogContentImpl")),wo="DialogTitle",yo=f.forwardRef(B(function(e,n){const{__scopeDialog:r,...o}=e,i=U(wo,r),{setTitleCount:s}=i;return ce(()=>(s(a=>a+1),()=>s(a=>a-1)),[s]),P.jsx(V.h2,{id:i.titleId,...o,ref:n})},"DialogTitle")),bo="DialogDescription",xo=f.forwardRef(B(function(e,n){const{__scopeDialog:r,...o}=e,i=U(bo,r),{setDescriptionCount:s}=i;return ce(()=>(s(a=>a+1),()=>s(a=>a-1)),[s]),P.jsx(V.p,{id:i.descriptionId,...o,ref:n})},"DialogDescription")),Co="DialogClose",yt=f.forwardRef(B(function(e,n){const{__scopeDialog:r,...o}=e,i=U(Co,r);return P.jsx(V.button,{type:"button",...o,ref:n,onClick:re(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function We(t){return t?"open":"closed"}B(We,"getState");const Eo=["top","right","bottom","left"],oe=Math.min,Q=Math.max,Me=Math.round,Te=Math.floor,J=t=>({x:t,y:t}),Po={left:"right",right:"left",bottom:"top",top:"bottom"};function bn(t,e,n){return Q(t,oe(e,n))}function te(t,e){return typeof t=="function"?t(e):t}function ie(t){return t.split("-")[0]}function ye(t){return t.split("-")[1]}function bt(t){return t==="x"?"y":"x"}function xt(t){return t==="y"?"height":"width"}function K(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Ct(t){return bt(K(t))}function So(t,e,n){n===void 0&&(n=!1);const r=ye(t),o=Ct(t),i=xt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Fe(s)),[s,Fe(s)]}function Oo(t){const e=Fe(t);return[ft(t),e,ft(e)]}function ft(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const jt=["left","right"],$t=["right","left"],Ro=["top","bottom"],Do=["bottom","top"];function Ao(t,e,n){switch(t){case"top":case"bottom":return n?e?$t:jt:e?jt:$t;case"left":case"right":return e?Ro:Do;default:return[]}}function To(t,e,n,r){const o=ye(t);let i=Ao(ie(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(ft)))),i}function Fe(t){const e=ie(t);return Po[e]+t.slice(e.length)}function _o(t){var e,n,r,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(o=t.left)!=null?o:0}}function xn(t){return typeof t!="number"?_o(t):{top:t,right:t,bottom:t,left:t}}function Ie(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:r,floating:o}=t;const i=K(e),s=Ct(e),a=xt(s),c=ie(e),u=i==="y",m=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:m,y:r.y-o.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-o.width,y:l};break;default:g={x:r.x,y:r.y}}const h=ye(e);return h&&(g[s]+=d*(h==="end"?1:-1)*(n&&u?-1:1)),g}async function Lo(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:l="floating",altBoundary:d=!1,padding:g=0}=te(e,t),h=xn(g),v=a[d?l==="floating"?"reference":"floating":l],y=Ie(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:m,strategy:c})),w=l==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(b))&&await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1},C=Ie(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:c}):w);return{top:(y.top-C.top+h.top)/x.y,bottom:(C.bottom-y.bottom+h.bottom)/x.y,left:(y.left-C.left+h.left)/x.x,right:(C.right-y.right+h.right)/x.x}}const No=50,ko=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Lo},c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:m,y:l}=Wt(u,r,c),d=r,g=0;const h={};for(let p=0;p<i.length;p++){const v=i[p];if(!v)continue;const{name:y,fn:w}=v,{x:b,y:x,data:C,reset:E}=await w({x:m,y:l,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});m=b??m,l=x??l,h[y]={...h[y],...C},E&&g<No&&(g++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):E.rects),{x:m,y:l}=Wt(u,d,c)),p=-1)}return{x:m,y:l,placement:d,strategy:o,middlewareData:h}},Mo=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:u,padding:m=0}=te(t,e)||{};if(u==null)return{};const l=xn(m),d={x:n,y:r},g=Ct(o),h=xt(g),p=await s.getDimensions(u),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[g]-d[g]-i.floating[h],C=d[g]-i.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=E?E[b]:0;(!S||!await(s.isElement==null?void 0:s.isElement(E)))&&(S=a.floating[b]||i.floating[h]);const R=x/2-C/2,A=S/2-p[h]/2-1,T=oe(l[y],A),N=oe(l[w],A),O=S-p[h]-N,L=S/2-p[h]/2+R,_=bn(T,L,O),j=!c.arrow&&ye(o)!=null&&L!==_&&i.reference[h]/2-(L<T?T:N)-p[h]/2<0,k=j?L<T?L-T:L-O:0;return{[g]:d[g]+k,data:{[g]:_,centerOffset:L-_-k,...j&&{alignmentOffset:k}},reset:j}}}),Fo=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:m=!0,crossAxis:l=!0,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...v}=te(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ie(o),w=K(a),b=ie(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=d||(b||!p?[Fe(a)]:Oo(a)),E=h!=="none";!d&&E&&C.push(...To(a,p,h,x));const S=[a,...C],R=await c.detectOverflow(e,v),A=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&A.push(R[y]),l){const _=So(o,s,x);A.push(R[_[0]],R[_[1]])}if(T=[...T,{placement:o,overflows:A}],!A.every(_=>_<=0)){var N,O;const _=(((N=i.flip)==null?void 0:N.index)||0)+1,j=S[_];if(j&&(!(l==="alignment"?w!==K(j):!1)||T.every(D=>K(D.placement)===w?D.overflows[0]>0:!0)))return{data:{index:_,overflows:T},reset:{placement:j}};let k=(O=T.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:O.placement;if(!k)switch(g){case"bestFit":{var L;const $=(L=T.filter(D=>{if(E){const M=K(D.placement);return M===w||M==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(M=>M>0).reduce((M,H)=>M+H,0)]).sort((D,M)=>D[1]-M[1])[0])==null?void 0:L[0];$&&(k=$);break}case"initialPlacement":k=a;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Bt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return Eo.some(e=>t[e]>=0)}const Io=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...i}=te(t,e);switch(o){case"referenceHidden":{const s=await r.detectOverflow(e,{...i,elementContext:"reference"}),a=Bt(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ht(a)}}}case"escaped":{const s=await r.detectOverflow(e,{...i,altBoundary:!0}),a=Bt(s,n.floating);return{data:{escapedOffsets:a,escaped:Ht(a)}}}default:return{}}}}},Cn=new Set(["left","top"]);async function jo(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ie(n),a=ye(n),c=K(n)==="y",u=Cn.has(s)?-1:1,m=i&&c?-1:1,l=te(e,t);let{mainAxis:d,crossAxis:g,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof h=="number"&&(g=a==="end"?h*-1:h),c?{x:g*m,y:d*u}:{x:d*u,y:g*m}}const $o=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=e,c=await jo(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Wo=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:w=>{let{x:b,y:x}=w;return{x:b,y:x}}},...u}=te(t,e),m={x:n,y:r},l=await i.detectOverflow(e,u),d=K(o),g=bt(d);let h=m[g],p=m[d];const v=(w,b)=>bn(b+l[w==="y"?"top":"left"],b,b-l[w==="y"?"bottom":"right"]);s&&(h=v(g,h)),a&&(p=v(d,p));const y=c.fn({...e,[g]:h,[d]:p});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:s,[d]:a}}}}}},Bo=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;const{x:o,y:i,placement:s,rects:a,middlewareData:c}=e,{offset:u=0,mainAxis:m=!0,crossAxis:l=!0}=te(t,e),d={x:o,y:i},g=K(s),h=bt(g);let p=d[h],v=d[g];const y=te(u,e),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(r=y.crossAxis)!=null?r:0};if(m){const C=h==="y"?"height":"width",E=a.reference[h]-a.floating[C]+w.mainAxis,S=a.reference[h]+a.reference[C]-w.mainAxis;p<E?p=E:p>S&&(p=S)}if(l){var b,x;const C=h==="y"?"width":"height",E=Cn.has(ie(s)),S=a.reference[g]-a.floating[C]+(E&&((b=c.offset)==null?void 0:b[g])||0)+(E?0:w.crossAxis),R=a.reference[g]+a.reference[C]+(E?0:((x=c.offset)==null?void 0:x[g])||0)-(E?w.crossAxis:0);v<S?v=S:v>R&&(v=R)}return{[h]:p,[g]:v}}}},Ho=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:i}=e,{apply:s=()=>{},...a}=te(t,e),c=await o.detectOverflow(e,a),u=ie(n),m=ye(n),l=K(n)==="y",{width:d,height:g}=r.floating;let h,p;u==="top"||u==="bottom"?(h=u,p=m===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,h=m==="end"?"top":"bottom");const v=g-c.top-c.bottom,y=d-c.left-c.right,w=oe(g-c[h],v),b=oe(d-c[p],y),x=e.middlewareData.shift,C=!x;let E=w,S=b;x!=null&&x.enabled.x&&(S=y),x!=null&&x.enabled.y&&(E=v),C&&!m&&(l?S=d-2*Q(c.left,c.right):E=g-2*Q(c.top,c.bottom)),await s({...e,availableWidth:S,availableHeight:E});const R=await o.getDimensions(i.floating);return d!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function Be(){return typeof window<"u"}function be(t){return En(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ne(t){var e;return(e=(En(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function En(t){return Be()?t instanceof Node||t instanceof W(t).Node:!1}function G(t){return Be()?t instanceof Element||t instanceof W(t).Element:!1}function se(t){return Be()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function zt(t){return!Be()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function He(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Z(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function zo(t){return/^(table|td|th)$/.test(be(t))}function ze(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Vo=/transform|translate|scale|rotate|perspective|filter/,Uo=/paint|layout|strict|content/,ae=t=>!!t&&t!=="none";let et;function Et(t){const e=G(t)?Z(t):t;return ae(e.transform)||ae(e.translate)||ae(e.scale)||ae(e.rotate)||ae(e.perspective)||!Pt()&&(ae(e.backdropFilter)||ae(e.filter))||Vo.test(e.willChange||"")||Uo.test(e.contain||"")}function Xo(t){let e=ue(t);for(;se(e)&&!Ce(e);){if(Et(e))return e;if(ze(e))return null;e=ue(e)}return null}function Pt(){return et==null&&(et=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),et}function Ce(t){return/^(html|body|#document)$/.test(be(t))}function Z(t){return W(t).getComputedStyle(t)}function Ve(t){return G(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ue(t){if(be(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zt(t)&&t.host||ne(t);return zt(e)?e.host:e}function Pn(t){const e=ue(t);return Ce(e)?(t.ownerDocument||t).body:se(e)&&He(e)?e:Pn(e)}function Ee(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Pn(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=W(o);if(i){const a=dt(s);return e.concat(s,s.visualViewport||[],He(o)?o:[],a&&n?Ee(a):[])}else return e.concat(o,Ee(o,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sn(t){const e=Z(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=se(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=Me(n)!==i||Me(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function St(t){return G(t)?t:t.contextElement}function we(t){const e=St(t);if(!se(e))return J(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Sn(e);let s=(i?Me(n.width):n.width)/r,a=(i?Me(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yo=J(0);function On(t){const e=W(t);return!Pt()||!e.visualViewport?Yo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ko(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===W(t)}function fe(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=St(t);let s=J(1);e&&(r?G(r)&&(s=we(r)):s=we(t));const a=Ko(i,n,r)?On(i):J(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,m=o.width/s.x,l=o.height/s.y;if(i&&r){const d=W(i),g=G(r)?W(r):r;let h=d,p=dt(h);for(;p&&g!==h;){const v=we(p),y=p.getBoundingClientRect(),w=Z(p),b=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*v.x,x=y.top+(p.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,u*=v.y,m*=v.x,l*=v.y,c+=b,u+=x,h=W(p),p=dt(h)}}return Ie({width:m,height:l,x:c,y:u})}function Ue(t,e){const n=Ve(t).scrollLeft;return e?e.left+n:fe(ne(t)).left+n}function Rn(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Ue(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function Go(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=ne(r),a=e?ze(e.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=J(1);const m=J(0),l=se(r);if((l||!i)&&((be(r)!=="body"||He(s))&&(c=Ve(r)),l)){const g=fe(r);u=we(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}const d=s&&!l&&!i?Rn(s,c):J(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+m.x+d.x,y:n.y*u.y-c.scrollTop*u.y+m.y+d.y}}function Zo(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function qo(t){const e=Ve(t),n=t.ownerDocument.body,r=Q(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Q(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-e.scrollLeft+Ue(t);const s=-e.scrollTop;return Z(n).direction==="rtl"&&(i+=Q(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}const Qo=25;function Jo(t,e,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=W(t),i=ne(t),s=o.visualViewport;let a=i.clientWidth,c=i.clientHeight,u=0,m=0;if(s){const d=!Pt()||e==="fixed";r?d||(u=-s.offsetLeft,m=-s.offsetTop):(a=s.width,c=s.height,d&&(u=s.offsetLeft,m=s.offsetTop))}if(Ue(i)<=0){const d=i.ownerDocument,g=d.body,h=getComputedStyle(g),p=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(i.clientWidth-g.clientWidth-p),y=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;y<=Qo&&(a-=y)}return{width:a,height:c,x:u,y:m}}function ei(t,e){const n=fe(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=we(t),s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function Vt(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=Jo(t,n,e);else if(e==="document")r=qo(ne(t));else if(G(e))r=ei(e,n);else{const o=On(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Ie(r)}function ti(t,e){const n=e.get(t);if(n)return n;let r=Ee(t,[],!1).filter(a=>G(a)&&be(a)!=="body"),o=null;const i=Z(t).position==="fixed";let s=i?ue(t):t;for(;G(s)&&!Ce(s);){const a=Z(s),c=Et(s),u=o?o.position:i?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?r=r.filter(l=>l!==s):o=a,s=ue(s)}return e.set(t,r),r}function ni(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?ze(e)?[]:ti(e,this._c):[].concat(n),r],a=Vt(e,s[0],o);let c=a.top,u=a.right,m=a.bottom,l=a.left;for(let d=1;d<s.length;d++){const g=Vt(e,s[d],o);c=Q(g.top,c),u=oe(g.right,u),m=oe(g.bottom,m),l=Q(g.left,l)}return{width:u-l,height:m-c,x:l,y:c}}function ri(t){const{width:e,height:n}=Sn(t);return{width:e,height:n}}function oi(t,e,n){const r=se(e),o=ne(e),i=n==="fixed",s=fe(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=J(0);if((r||!i)&&((be(e)!=="body"||He(o))&&(a=Ve(e)),r)){const d=fe(e,!0,i,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}!r&&o&&(c.x=Ue(o));const u=o&&!r&&!i?Rn(o,a):J(0),m=s.left+a.scrollLeft-c.x-u.x,l=s.top+a.scrollTop-c.y-u.y;return{x:m,y:l,width:s.width,height:s.height}}function tt(t){return Z(t).position==="static"}function Ut(t,e){if(!se(t)||Z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ne(t)===n&&(n=n.ownerDocument.body),n}function Dn(t,e){const n=W(t);if(ze(t))return n;if(!se(t)){let o=ue(t);for(;o&&!Ce(o);){if(G(o)&&!tt(o))return o;o=ue(o)}return n}let r=Ut(t,e);for(;r&&zo(r)&&tt(r);)r=Ut(r,e);return r&&Ce(r)&&tt(r)&&!Et(r)?n:r||Xo(t)||n}const ii=async function(t){const e=this.getOffsetParent||Dn,n=this.getDimensions,r=await n(t.floating);return{reference:oi(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function si(t){return Z(t).direction==="rtl"}const ai={convertOffsetParentRelativeRectToViewportRelativeRect:Go,getDocumentElement:ne,getClippingRect:ni,getOffsetParent:Dn,getElementRects:ii,getClientRects:Zo,getDimensions:ri,getScale:we,isElement:G,isRTL:si};function An(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ci(t,e,n){let r=null,o;const i=ne(t);function s(){var m;clearTimeout(o),(m=r)==null||m.disconnect(),r=null}function a(m,l){m===void 0&&(m=!1),l===void 0&&(l=1),s();const d=t.getBoundingClientRect(),{left:g,top:h,width:p,height:v}=d;if(m||e(),!p||!v)return;const y=Te(h),w=Te(i.clientWidth-(g+p)),b=Te(i.clientHeight-(h+v)),x=Te(g),E={rootMargin:-y+"px "+-w+"px "+-b+"px "+-x+"px",threshold:Q(0,oe(1,l))||1};let S=!0;function R(A){const T=A[0].intersectionRatio;if(!An(d,t.getBoundingClientRect()))return a();if(T!==l){if(!S)return a();T?a(!1,T):o=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(R,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(R,E)}r.observe(t)}const c=W(t),u=()=>a(n);return c.addEventListener("resize",u),a(!0),()=>{c.removeEventListener("resize",u),s()}}function li(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=St(t),m=o||i?[...u?Ee(u):[],...e?Ee(e):[]]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n),i&&y.addEventListener("resize",n)});const l=u&&a?ci(u,n,i):null;let d=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(e)})),n()}),u&&!c&&g.observe(u),e&&g.observe(e));let h,p=c?fe(t):null;c&&v();function v(){const y=fe(t);p&&!An(p,y)&&n(),p=y,h=requestAnimationFrame(v)}return n(),()=>{var y;m.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),l?.(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(h)}}const ui=$o,fi=Wo,di=Fo,pi=Ho,mi=Io,Xt=Mo,hi=Bo,gi=(t,e,n)=>{const r=new Map,o=n??{},i={...ai,...o.platform,_c:r};return ko(t,e,{...o,platform:i})};var vi=typeof document<"u",wi=function(){},ke=vi?f.useLayoutEffect:wi;function je(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!je(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!je(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Tn(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Yt(t,e){const n=Tn(t);return Math.round(e*n)/n}function nt(t){const e=f.useRef(t);return ke(()=>{e.current=t}),e}function yi(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=t,[m,l]=f.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,g]=f.useState(r);je(d,r)||g(r);const[h,p]=f.useState(null),[v,y]=f.useState(null),w=f.useCallback(D=>{D!==E.current&&(E.current=D,p(D))},[]),b=f.useCallback(D=>{D!==S.current&&(S.current=D,y(D))},[]),x=i||h,C=s||v,E=f.useRef(null),S=f.useRef(null),R=f.useRef(m),A=c!=null,T=nt(c),N=nt(o),O=nt(u),L=f.useCallback(()=>{if(!E.current||!S.current)return;const D={placement:e,strategy:n,middleware:d};N.current&&(D.platform=N.current),gi(E.current,S.current,D).then(M=>{const H={...M,isPositioned:O.current!==!1};_.current&&!je(R.current,H)&&(R.current=H,Kt.flushSync(()=>{l(H)}))})},[d,e,n,N,O]);ke(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,l(D=>({...D,isPositioned:!1})))},[u]);const _=f.useRef(!1);ke(()=>(_.current=!0,()=>{_.current=!1}),[]),ke(()=>{if(x&&(E.current=x),C&&(S.current=C),x&&C){if(T.current)return T.current(x,C,L);L()}},[x,C,L,T,A]);const j=f.useMemo(()=>({reference:E,floating:S,setReference:w,setFloating:b}),[w,b]),k=f.useMemo(()=>({reference:x,floating:C}),[x,C]),$=f.useMemo(()=>{const D={position:n,left:0,top:0};if(!k.floating)return D;const M=Yt(k.floating,m.x),H=Yt(k.floating,m.y);return a?{...D,transform:"translate("+M+"px, "+H+"px)",...Tn(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:H}},[n,a,k.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:L,refs:j,elements:k,floatingStyles:$}),[m,L,j,k,$])}const bi=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Xt({element:r.current,padding:o}).fn(n):{}:r?Xt({element:r,padding:o}).fn(n):{}}}},xi=(t,e)=>{const n=ui(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ci=(t,e)=>{const n=fi(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ei=(t,e)=>({fn:hi(t).fn,options:[t,e]}),Pi=(t,e)=>{const n=di(t);return{name:n.name,fn:n.fn,options:[t,e]}},Si=(t,e)=>{const n=pi(t);return{name:n.name,fn:n.fn,options:[t,e]}},Oi=(t,e)=>{const n=mi(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ri=(t,e)=>{const n=bi(t);return{name:n.name,fn:n.fn,options:[t,e]}};var Di=Object.defineProperty,Ai=(t,e)=>Di(t,"name",{value:e,configurable:!0}),Ti=f.forwardRef(Ai(function(e,n){const{children:r,width:o=10,height:i=5,...s}=e;return P.jsx(V.svg,{...s,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:P.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),_i=Ti,Li=Object.defineProperty,ee=(t,e)=>Li(t,"name",{value:e,configurable:!0}),_n="Popper",[Ln,ts]=Gt(_n),[Ni,Nn]=Ln(_n),ki=ee(t=>{const{__scopePopper:e,children:n}=t,[r,o]=f.useState(null),[i,s]=f.useState(void 0);return P.jsx(Ni,{scope:e,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})},"Popper"),Mi="PopperAnchor",Fi=f.forwardRef(ee(function(e,n){const{__scopePopper:r,virtualRef:o,...i}=e,s=Nn(Mi,r),a=f.useRef(null),c=s.onAnchorChange,u=f.useCallback(p=>{a.current=p,p&&c(p)},[c]),m=de(n,u),l=f.useRef(null);f.useEffect(()=>{if(!o)return;const p=l.current;l.current=o.current,p!==l.current&&c(l.current)});const d=s.placementState&&Xe(s.placementState),g=d?.[0],h=d?.[1];return o?null:P.jsx(V.div,{"data-radix-popper-side":g,"data-radix-popper-align":h,...i,ref:m})},"PopperAnchor")),kn="PopperContent",[Ii,ji]=Ln(kn),$i=f.forwardRef(ee(function(e,n){const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:m=[],collisionPadding:l=0,sticky:d="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:p,...v}=e,y=Nn(kn,r),[w,b]=f.useState(null),x=de(n,b),[C,E]=f.useState(null),S=Qn(C),R=S?.width??0,A=S?.height??0,T=o+(s!=="center"?"-"+s:""),N=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},O=Array.isArray(m)?m:[m],L=O.length>0,_={padding:N,boundary:O.filter(Mn),altBoundary:L},{refs:j,floatingStyles:k,placement:$,isPositioned:D,middlewareData:M}=yi({strategy:"fixed",placement:T,whileElementsMounted:ee((...Ye)=>li(...Ye,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[xi({mainAxis:i+A,alignmentAxis:a}),u&&Ci({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ei():void 0,..._}),u&&Pi({..._}),Si({..._,apply:ee(({elements:Ye,rects:At,availableWidth:Bn,availableHeight:Hn})=>{const{width:zn,height:Vn}=At.reference,Pe=Ye.floating.style;Pe.setProperty("--radix-popper-available-width",`${Bn}px`),Pe.setProperty("--radix-popper-available-height",`${Hn}px`),Pe.setProperty("--radix-popper-anchor-width",`${zn}px`),Pe.setProperty("--radix-popper-anchor-height",`${Vn}px`)},"apply")}),C&&Ri({element:C,padding:c}),zi({arrowWidth:R,arrowHeight:A}),g&&Oi({strategy:"referenceHidden",..._,boundary:L?_.boundary:void 0})]}),H=y.setPlacementState;ce(()=>(H($),()=>{H(void 0)}),[$,H]);const[Ot,Rt]=Xe($),Dt=le(p);ce(()=>{D&&Dt?.()},[D,Dt]);const Fn=M.arrow?.x,In=M.arrow?.y,jn=M.arrow?.centerOffset!==0,[$n,Wn]=f.useState();return ce(()=>{w&&Wn(window.getComputedStyle(w).zIndex)},[w]),P.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:D?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$n,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Ii,{scope:r,placedSide:Ot,placedAlign:Rt,onArrowChange:E,arrowX:Fn,arrowY:In,shouldHideArrow:jn,children:P.jsx(V.div,{"data-side":Ot,"data-align":Rt,...v,ref:x,style:{...v.style,animation:D?v.style?.animation:"none"}})})})},"PopperContent")),Wi="PopperArrow",Bi={top:"bottom",right:"left",bottom:"top",left:"right"},Hi=f.forwardRef(ee(function(e,n){const{__scopePopper:r,...o}=e,i=ji(Wi,r),s=Bi[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(_i,{...o,ref:n,style:{...o.style,display:"block"}})})},"PopperArrow"));function Mn(t){return t!==null}ee(Mn,"isNotNull");var zi=ee(t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,s=o.arrow?.centerOffset!==0,a=s?0:t.arrowWidth,c=s?0:t.arrowHeight,[u,m]=Xe(n),l={start:"0%",center:"50%",end:"100%"}[m],d=(o.arrow?.x??0)+a/2,g=(o.arrow?.y??0)+c/2;let h="",p="";return u==="bottom"?(h=s?l:`${d}px`,p=`${-c}px`):u==="top"?(h=s?l:`${d}px`,p=`${r.floating.height+c}px`):u==="right"?(h=`${-c}px`,p=s?l:`${g}px`):u==="left"&&(h=`${r.floating.width+c}px`,p=s?l:`${g}px`),{data:{x:h,y:p}}}}),"transformOrigin");function Xe(t){const[e,n="center"]=t.split("-");return[e,n]}ee(Xe,"getSideAndAlignFromPlacement");var ns=ki,rs=Fi,os=$i,is=Hi;function ss(t){const e=z.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=P.jsx(so,{"data-slot":"dialog",...n}),e[2]=n,e[3]=r):r=e[3],r}function as(t){const e=z.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=P.jsx(co,{"data-slot":"dialog-trigger",...n}),e[2]=n,e[3]=r):r=e[3],r}function Vi(t){const e=z.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=P.jsx(uo,{"data-slot":"dialog-portal",...n}),e[2]=n,e[3]=r):r=e[3],r}function cs(t){const e=z.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=P.jsx(yt,{"data-slot":"dialog-close",...n}),e[2]=n,e[3]=r):r=e[3],r}function Ui(t){const e=z.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=Y("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=P.jsx(fo,{"data-slot":"dialog-overlay",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function ls(t){const e=z.c(15);let n,r,o,i;e[0]!==t?({className:r,children:n,showCloseButton:i,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const s=i===void 0?!0:i;let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=P.jsx(Ui,{}),e[5]=a):a=e[5];let c;e[6]!==r?(c=Y("bg-background data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",r),e[6]=r,e[7]=c):c=e[7];let u;e[8]!==s?(u=s&&P.jsxs(yt,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[P.jsx(Yn,{}),P.jsx("span",{className:"sr-only",children:"Close"})]}),e[8]=s,e[9]=u):u=e[9];let m;return e[10]!==n||e[11]!==o||e[12]!==c||e[13]!==u?(m=P.jsxs(Vi,{"data-slot":"dialog-portal",children:[a,P.jsxs(ho,{"data-slot":"dialog-content",className:c,...o,children:[n,u]})]}),e[10]=n,e[11]=o,e[12]=c,e[13]=u,e[14]=m):m=e[14],m}function us(t){const e=z.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=Y("flex flex-col gap-2 text-center sm:text-left",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=P.jsx("div",{"data-slot":"dialog-header",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function fs(t){const e=z.c(14);let n,r,o,i;e[0]!==t?({className:r,showCloseButton:i,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const s=i===void 0?!1:i;let a;e[5]!==r?(a=Y("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",r),e[5]=r,e[6]=a):a=e[6];let c;e[7]!==s?(c=s&&P.jsx(yt,{asChild:!0,children:P.jsx(Zn,{variant:"outline",children:"Close"})}),e[7]=s,e[8]=c):c=e[8];let u;return e[9]!==n||e[10]!==o||e[11]!==a||e[12]!==c?(u=P.jsxs("div",{"data-slot":"dialog-footer",className:a,...o,children:[n,c]}),e[9]=n,e[10]=o,e[11]=a,e[12]=c,e[13]=u):u=e[13],u}function ds(t){const e=z.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=Y("text-lg leading-none font-semibold",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=P.jsx(yo,{"data-slot":"dialog-title",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function ps(t){const e=z.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=Y("text-muted-foreground text-sm",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=P.jsx(xo,{"data-slot":"dialog-description",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function Xi(t){const e=z.c(5),n=3e4,[,r]=f.useState(0);let o;e[0]!==n||e[1]!==r?(o=()=>{const s=window.setInterval(()=>r(Yi),n);return()=>window.clearInterval(s)},e[0]=n,e[1]=r,e[2]=o):o=e[2];let i;e[3]!==n?(i=[n],e[3]=n,e[4]=i):i=e[4],f.useEffect(o,i)}function Yi(t){return t+1}function Ki(t,e){return t===null?!1:Date.now()-new Date(t).getTime()<e}const rt="bg-neutral-400/15";function ms(t){const e=z.c(30),{lastSeenAt:n,thresholdMs:r,erroring:o,className:i}=t,s=r===void 0?6e4:r,a=o===void 0?!1:o;Xi();const c=Ki(n,s),u=n===null?"none":a?"stop":c?"clear":"caution";let m;e[0]!==i?(m=Y("border-foreground/30 bg-background/60 inline-flex w-2.5 shrink-0 flex-col items-center justify-between rounded-full border px-px py-[3px]",i),e[0]=i,e[1]=m):m=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={height:24},e[2]=l):l=e[2];let d;e[3]!==u?(d=u==="stop"&&P.jsx("span",{className:"bg-danger absolute inline-flex h-full w-full animate-ping rounded-full opacity-75"}),e[3]=u,e[4]=d):d=e[4];const g=u==="stop"?"bg-danger":rt;let h;e[5]!==g?(h=Y("relative inline-flex size-1.5 rounded-full transition-colors duration-300",g),e[5]=g,e[6]=h):h=e[6];let p;e[7]!==h?(p=P.jsx("span",{className:h}),e[7]=h,e[8]=p):p=e[8];let v;e[9]!==d||e[10]!==p?(v=P.jsxs("span",{className:"relative inline-flex size-1.5",children:[d,p]}),e[9]=d,e[10]=p,e[11]=v):v=e[11];const y=u==="caution"?"bg-warning":rt;let w;e[12]!==y?(w=Y("inline-flex size-1.5 rounded-full transition-colors duration-300",y),e[12]=y,e[13]=w):w=e[13];let b;e[14]!==w?(b=P.jsx("span",{className:w}),e[14]=w,e[15]=b):b=e[15];let x;e[16]!==u?(x=u==="clear"&&P.jsx("span",{className:"bg-live absolute inline-flex h-full w-full animate-ping rounded-full opacity-75"}),e[16]=u,e[17]=x):x=e[17];const C=u==="clear"?"bg-live":rt;let E;e[18]!==C?(E=Y("relative inline-flex size-1.5 rounded-full transition-colors duration-300",C),e[18]=C,e[19]=E):E=e[19];let S;e[20]!==E?(S=P.jsx("span",{className:E}),e[20]=E,e[21]=S):S=e[21];let R;e[22]!==x||e[23]!==S?(R=P.jsxs("span",{className:"relative inline-flex size-1.5",children:[x,S]}),e[22]=x,e[23]=S,e[24]=R):R=e[24];let A;return e[25]!==b||e[26]!==R||e[27]!==m||e[28]!==v?(A=P.jsxs("span",{className:m,style:l,children:[v,b,R]}),e[25]=b,e[26]=R,e[27]=m,e[28]=v,e[29]=A):A=e[29],A}export{rs as A,Ji as B,os as C,ds as D,dr as F,ms as L,hr as P,ns as R,ps as a,ls as b,ss as c,ts as d,lr as e,vt as f,mn as g,ro as h,le as i,so as j,yo as k,xo as l,ho as m,uo as n,yt as o,fo as p,is as q,us as r,fs as s,Xi as t,_e as u,as as v,cs as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,j as e,L as m,N as f,O as j,P as p,x as g,Q as b,M as w}from"./inertia-Cuyz2ZHO.js";import{A as v,B as x}from"./app-wordmark-BA_60AVb.js";function _(s){const t=u.c(9);let c,l,r,a,i,n,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx("polygon",{fill:"#FDC11A",points:"98.29 127.2 98.28 354.44 174.85 289.77 174.85 191.88 98.29 127.2"}),l=e.jsx("path",{fill:"currentColor",d:"M289.69,346.4c45.62-11.54,71.84-36.71,71.84-82.33v-45.1c0-67.65-55.58-91.77-145.26-91.77h-117.99v354.49c23.07,2.1,53.49,2.1,76.56,0v-127.43h38.28c29.89,40.9,54.54,86.53,73.94,127.43,22.55,2.1,57.68,2.1,80.23,0-20.45-43.52-46.15-92.29-77.61-135.3ZM204.97,276.38l-30.12,13.39v-97.9l28.53,12.68,81.6,36.27-80,35.56Z"}),r=e.jsx("path",{fill:"currentColor",d:"M641.3,363.7c-35.13,2.62-115.89,3.15-160.99.53v13.11c0,37.23,21.5,44.05,66.6,44.05,30.94,0,52.96-2.62,82.33-8.39,2.1,17.83,2.1,43,0,60.83-36.71,6.29-66.07,9.44-100.68,9.44-75.51,0-123.23-22.55-123.23-89.15v-104.88c0-69.74,50.34-90.19,120.08-90.19s115.89,29.36,115.89,104.35v60.3ZM567.89,300.25c0-35.66-20.45-39.85-43.52-39.85s-44.05,4.19-44.05,39.85v20.45l40.38-2.62h47.2v-17.83Z"}),a=e.jsx("path",{fill:"currentColor",d:"M936.53,404.08c0,58.21-38.8,79.18-89.67,79.18-43,0-74.46-11.01-84.43-44.05h-3.15l-4.72,38.81c-17.31,2.1-49.29,2.1-66.6,0V100.98c17.83-2.62,56.63-2.62,74.99,0v98.06l-3.67,44.57h3.15c9.96-33.03,41.43-44.57,84.43-44.57,50.86,0,89.67,20.98,89.67,79.18v125.85ZM861.54,311.79c0-43-18.88-48.77-45.62-48.77-32.51,0-43.52,7.87-52.97,37.23v81.28c9.44,29.37,20.45,37.23,52.97,37.23,26.74,0,45.62-5.77,45.62-48.24v-58.73Z"}),i=e.jsx("path",{fill:"currentColor",d:"M1159.39,439.21h-3.15c-9.44,33.04-41.43,44.05-84.95,44.05-50.87,0-88.62-19.93-88.62-77.61v-198.75c18.35-2.62,57.16-2.62,74.99,0v164.14c0,41.95,19.4,48.24,45.1,48.24,32.51,0,44.57-8.91,52.96-37.23v-175.15c18.35-2.62,57.16-2.62,74.99,0v271.64c-17.3,2.62-49.29,2.62-66.6,0l-4.72-39.33Z"}),n=e.jsx("path",{fill:"currentColor",d:"M1288.38,100.98c17.83-2.62,56.63-2.62,74.99,0v375.99c-18.35,2.62-57.16,2.62-74.99,0V100.98Z"}),o=e.jsx("path",{fill:"currentColor",d:"M1522.26,356.88l-26.22,3.67v116.41c-18.35,2.62-57.16,2.62-74.99,0V100.98c17.83-2.62,56.63-2.62,74.99,0v195.6l29.36-4.19,66.07-89.15c17.3-2.62,63.45-2.62,80.76,0l-88.1,120.09,91.77,153.65c-17.3,2.62-63.97,2.62-81.8,0l-71.84-120.09Z"}),t[0]=c,t[1]=l,t[2]=r,t[3]=a,t[4]=i,t[5]=n,t[6]=o):(c=t[0],l=t[1],r=t[2],a=t[3],i=t[4],n=t[5],o=t[6]);let h;return t[7]!==s?(h=e.jsxs("svg",{viewBox:"98 99 1578 385",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Rebulk",...s,children:[c,l,r,a,i,n,o]}),t[7]=s,t[8]=h):h=t[8],h}function M(){const s=u.c(10);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx("div",{className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto"})}),s[0]=t):t=s[0];let c,l;s[1]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx(m,{href:f(),className:"hover:text-foreground",children:"Docs"}),l=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[1]=c,s[2]=l):(c=s[1],l=s[2]);let r,a;s[3]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:j("legal","terms"),className:"hover:text-foreground",children:"Terms"}),a=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[3]=r,s[4]=a):(r=s[3],a=s[4]);let i,n;s[5]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(m,{href:j("legal","privacy"),className:"hover:text-foreground",children:"Privacy"}),n=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[5]=i,s[6]=n):(i=s[5],n=s[6]);let o,h;s[7]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs("span",{className:"flex items-baseline gap-1.5",children:["Built by",e.jsx("a",{href:"https://rebulk.com",className:"text-foreground/80 hover:text-foreground transition-colors",children:e.jsx(_,{className:"h-3 w-auto"})})]}),h=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[7]=o,s[8]=h):(o=s[7],h=s[8]);let d;return s[9]===Symbol.for("react.memo_cache_sentinel")?(d=e.jsxs("footer",{className:"mx-auto flex w-full max-w-5xl flex-col gap-3 border-t px-6 py-8 text-sm sm:flex-row sm:items-center sm:justify-between",children:[t,e.jsxs("p",{className:"text-muted-foreground flex flex-wrap items-center gap-x-2 gap-y-1",children:[c,l,r,a,i,n,o,h,"© ",new Date().getFullYear()]})]}),s[9]=d):d=s[9],d}function C(s){const t=u.c(4),{signedIn:c}=s;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=p(),t[0]=l):l=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:l,className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto sm:h-5"})}),t[1]=r):r=t[1];let a;return t[2]!==c?(a=e.jsxs("header",{className:"mx-auto flex w-full max-w-5xl items-center justify-between px-6 py-6",children:[r,c?e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:g(),children:"Dashboard"})})]}):e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:b(),children:"Sign in"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:w(),children:"Get started"})})]})]}),t[2]=c,t[3]=a):a=t[3],a}export{C as M,_ as R,M as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as y,u as b,M as v,j as e,H as N,F as _,O as f,Q as I}from"./inertia-Cuyz2ZHO.js";import{G as C}from"./google-sign-in-button-2_zgbgVy.js";import{I as o}from"./input-error-hog6gGxg.js";import{T as h}from"./text-link-DHJ8BXx5.js";import{B as P}from"./app-wordmark-BA_60AVb.js";import{C as F}from"./checkbox-DPkLUiwM.js";import{L as i,I as c}from"./label-DdCBgiUn.js";import{S as k,A as S}from"./auth-layout-C05gEBIQ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./copy-DaQMJWoT.js";import"./empty-state-CW4wclK_.js";function Q(j){const s=y.c(10),{invitation:a}=j,{google_oauth:p}=b().props,x=a?`Join ${a.account}`:"Create an account",u=a?`${a.inviter} invited you. Pick a name and password to get started.`:"Enter your details below to create your account";let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(N,{title:"Register"}),s[0]=n):n=s[0];let l,m;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=v(),m=["password","password_confirmation"],s[1]=l,s[2]=m):(l=s[1],m=s[2]);let t;s[3]!==p||s[4]!==a?(t=e.jsx(_,{method:"post",action:l,resetOnSuccess:m,disableWhileProcessing:!0,className:"flex flex-col gap-6",children:w=>{const{processing:g,errors:r}=w;return e.jsxs(e.Fragment,{children:[a&&e.jsx("input",{type:"hidden",name:"invitation_token",value:a.token}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"name",children:"Name"}),e.jsx(c,{id:"name",type:"text",name:"name",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",disabled:g,placeholder:"Full name"}),e.jsx(o,{messages:r.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"email",children:"Email address"}),e.jsx(c,{id:"email",type:"email",name:"email",required:!0,tabIndex:2,autoComplete:"email",placeholder:"email@example.com",defaultValue:a?.email,readOnly:!!a}),e.jsx(o,{messages:r.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password",children:"Password"}),e.jsx(c,{id:"password",type:"password",name:"password",required:!0,tabIndex:3,autoComplete:"new-password",placeholder:"Password"}),e.jsx(o,{messages:r.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(c,{id:"password_confirmation",type:"password",name:"password_confirmation",required:!0,tabIndex:4,autoComplete:"new-password",placeholder:"Confirm password"}),e.jsx(o,{messages:r.password_confirmation})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(F,{id:"terms",name:"terms",required:!0,tabIndex:5,className:"mt-0.5"}),e.jsxs(i,{htmlFor:"terms",className:"text-muted-foreground text-sm leading-snug font-normal",children:["I agree to the"," ",e.jsx(h,{href:f("legal","terms"),target:"_blank",children:"Terms of Service"})," ","and"," ",e.jsx(h,{href:f("legal","privacy"),target:"_blank",children:"Privacy Policy"})]})]}),e.jsx(o,{messages:r.terms})]}),e.jsxs(P,{type:"submit",className:"mt-2 w-full",tabIndex:6,children:[g&&e.jsx(k,{}),"Create account"]})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx(C,{label:"Continue with Google"}),e.jsx("p",{className:"text-muted-foreground -mt-3 text-center text-xs",children:"Continuing with Google also accepts the Terms and Privacy Policy."})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Already have an account?"," ",e.jsx(h,{href:I(),tabIndex:7,children:"Log in"})]})]})}}),s[3]=p,s[4]=a,s[5]=t):t=s[5];let d;return s[6]!==x||s[7]!==u||s[8]!==t?(d=e.jsxs(S,{title:x,description:u,children:[n,t]}),s[6]=x,s[7]=u,s[8]=t,s[9]=d):d=s[9],d}export{Q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,g as x,j as t,D as h,H as j,F as g}from"./inertia-Cuyz2ZHO.js";import{I as b}from"./input-error-hog6gGxg.js";import{B as v}from"./app-wordmark-BA_60AVb.js";import{b as _,c as C,a as N,C as w}from"./card-DPjFKfen.js";import{L as E,I as F}from"./label-DdCBgiUn.js";import{A as y}from"./app-layout-Zc0v-hYh.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";function D(a){const e=u.c(21),f=a.application.name;let i;e[0]!==a.application.id?(i=x(a.application.id),e[0]=a.application.id,e[1]=i):i=e[1];let n;e[2]!==a.application.name||e[3]!==i?(n={title:f,href:i},e[2]=a.application.name,e[3]=i,e[4]=n):n=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={title:"New environment",href:"#"},e[5]=c):c=e[5];let s;e[6]!==n?(s=[n,c],e[6]=n,e[7]=s):s=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(j,{title:"Add environment"}),e[8]=d):d=e[8];let r;e[9]!==a.application.name?(r=t.jsx(_,{children:t.jsxs(C,{children:["Add environment to ",a.application.name]})}),e[9]=a.application.name,e[10]=r):r=e[10];let o;e[11]!==a.application.id?(o=h(a.application.id),e[11]=a.application.id,e[12]=o):o=e[12];let l;e[13]!==o?(l=t.jsx(N,{children:t.jsx(g,{method:"post",action:o,className:"space-y-4",children:A})}),e[13]=o,e[14]=l):l=e[14];let m;e[15]!==r||e[16]!==l?(m=t.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:t.jsxs(w,{children:[r,l]})}),e[15]=r,e[16]=l,e[17]=m):m=e[17];let p;return e[18]!==s||e[19]!==m?(p=t.jsxs(y,{breadcrumbs:s,children:[d,m]}),e[18]=s,e[19]=m,e[20]=p):p=e[20],p}function A(a){const{errors:e,processing:f}=a;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx(E,{htmlFor:"name",children:"Name"}),t.jsx(F,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"staging",pattern:"[a-z0-9_-]+"}),t.jsx(b,{messages:e.name}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Lowercase letters, numbers, dashes. Each environment gets its own token and database."})]}),t.jsx(v,{disabled:f,children:"Create environment"})]})}export{D as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,u as h,Q as g,j as e,H as f,F as j,aD as w,M as b}from"./inertia-Cuyz2ZHO.js";import{G as I}from"./google-sign-in-button-2_zgbgVy.js";import{I as m}from"./input-error-hog6gGxg.js";import{T as d}from"./text-link-DHJ8BXx5.js";import{B as y}from"./app-wordmark-BA_60AVb.js";import{L as c,I as p}from"./label-DdCBgiUn.js";import{A as L,S as N}from"./auth-layout-C05gEBIQ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./copy-DaQMJWoT.js";import"./empty-state-CW4wclK_.js";function A(){const s=x.c(5),{google_oauth:i}=h().props;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(f,{title:"Log in"}),s[0]=t):t=s[0];let a,o;s[1]===Symbol.for("react.memo_cache_sentinel")?(a=g(),o=["password"],s[1]=a,s[2]=o):(a=s[1],o=s[2]);let r;return s[3]!==i?(r=e.jsxs(L,{title:"Log in to your account",description:"Enter your email and password below to log in",children:[t,e.jsx(j,{method:"post",action:a,resetOnSuccess:o,className:"flex flex-col gap-6",children:u=>{const{processing:l,errors:n}=u;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(c,{htmlFor:"email",children:"Email address"}),e.jsx(p,{id:"email",name:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",placeholder:"email@example.com"}),e.jsx(m,{messages:n.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(c,{htmlFor:"password",children:"Password"}),e.jsx(d,{href:w(),className:"ml-auto text-sm",tabIndex:5,children:"Forgot password?"})]}),e.jsx(p,{id:"password",type:"password",name:"password",required:!0,tabIndex:2,autoComplete:"current-password",placeholder:"Password"}),e.jsx(m,{messages:n.password})]}),e.jsxs(y,{type:"submit",className:"mt-4 w-full",tabIndex:4,disabled:l,children:[l&&e.jsx(N,{}),"Log in"]})]}),i&&e.jsx(I,{label:"Continue with Google"}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Don't have an account?"," ",e.jsx(d,{href:b(),tabIndex:5,children:"Sign up"})]})]})}})]}),s[3]=i,s[4]=r):r=s[4],r}export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,h as c,j as e,F as d,k as p,H as h}from"./inertia-Cuyz2ZHO.js";import{I as l}from"./input-error-hog6gGxg.js";import{B as u}from"./app-wordmark-BA_60AVb.js";import{C as x,a as f,b as j,c as _}from"./card-DPjFKfen.js";import{L as t,I as i}from"./label-DdCBgiUn.js";import{A as g}from"./app-layout-Zc0v-hYh.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";function S(){const s=m.c(4);let r,a;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=[{title:"New application",href:c()}],a=e.jsx(h,{title:"Add application"}),s[0]=r,s[1]=a):(r=s[0],a=s[1]);let n;s[2]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(j,{children:e.jsx(_,{children:"Add an application"})}),s[2]=n):n=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(g,{breadcrumbs:r,children:[a,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(x,{children:[n,e.jsx(f,{children:e.jsx(d,{method:"post",action:p(),className:"space-y-4",children:b})})]})})]}),s[3]=o):o=s[3],o}function b(s){const{errors:r,processing:a}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"name",children:"Name"}),e.jsx(i,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Volume Tracker"}),e.jsx(l,{messages:r.name})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"issue_prefix",children:"Issue prefix"}),e.jsx(i,{id:"issue_prefix",name:"issue_prefix",placeholder:"VT",maxLength:8,className:"uppercase"}),e.jsx(l,{messages:r.issue_prefix}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Issues get ids like VT-171. Defaults from the name."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"repository_url",children:"Repository URL"}),e.jsx(i,{id:"repository_url",name:"repository_url",placeholder:"https://github.com/org/repo"}),e.jsx(l,{messages:r.repository_url})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"default_branch",children:"Default branch"}),e.jsx(i,{id:"default_branch",name:"default_branch",defaultValue:"main"}),e.jsx(l,{messages:r.default_branch}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Stack frames link into this repository at the deploy's git SHA when one was recorded, and at this branch otherwise."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"environment_name",children:"First environment"}),e.jsx(i,{id:"environment_name",name:"environment_name",defaultValue:"production"})]}),e.jsx(u,{disabled:a,children:"Create application"})]})}export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,n,j as e,F as m,a as i,H as l}from"./inertia-Cuyz2ZHO.js";import{I as d}from"./input-error-hog6gGxg.js";import{B as u}from"./app-wordmark-BA_60AVb.js";import{C as p,a as h,b as x,c as f}from"./card-DPjFKfen.js";import{L as j,I as b}from"./label-DdCBgiUn.js";import{A as C}from"./app-layout-Zc0v-hYh.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";function L(){const t=c.c(4);let a,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=[{title:"New account",href:n()}],r=e.jsx(l,{title:"Create your account"}),t[0]=a,t[1]=r):(a=t[0],r=t[1]);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(x,{children:e.jsx(f,{children:"Create your Railwatch account"})}),t[2]=s):s=t[2];let o;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(C,{breadcrumbs:a,children:[r,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(p,{children:[s,e.jsx(h,{children:e.jsx(m,{method:"post",action:i(),className:"space-y-4",children:_})})]})})]}),t[3]=o):o=t[3],o}function _(t){const{errors:a,processing:r}=t;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(j,{htmlFor:"name",children:"Organization name"}),e.jsx(b,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Rebulk"}),e.jsx(d,{messages:a.name})]}),e.jsx(u,{disabled:r,children:"Create account"})]})}export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i,j as e,F as l,R as m,Q as n,H as c}from"./inertia-Cuyz2ZHO.js";import{I as d}from"./input-error-hog6gGxg.js";import{T as p}from"./text-link-DHJ8BXx5.js";import{B as f}from"./app-wordmark-BA_60AVb.js";import{L as x,I as u}from"./label-DdCBgiUn.js";import{A as h,S as j}from"./auth-layout-C05gEBIQ.js";import"./index-CBip6V4z.js";import"./copy-DaQMJWoT.js";import"./empty-state-CW4wclK_.js";function N(){const s=i.c(4);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{title:"Forgot password"}),s[0]=t):t=s[0];let r;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(l,{method:"post",action:m(),children:g}),s[1]=r):r=s[1];let a;s[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx("span",{children:"Or, return to"}),s[2]=a):a=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(h,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[t,e.jsxs("div",{className:"space-y-6",children:[r,e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[a,e.jsx(p,{href:n(),children:"log in"})]})]})]}),s[3]=o):o=s[3],o}function g(s){const{processing:t,errors:r}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(x,{htmlFor:"email",children:"Email address"}),e.jsx(u,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),e.jsx(d,{messages:r.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(f,{className:"w-full",disabled:t,children:[t&&e.jsx(j,{}),"Email password reset link"]})})]})}export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as b,c as v,j as t,L as w,a2 as S,e as L}from"./inertia-Cuyz2ZHO.js";import{C as j}from"./copy-block-CGcXxp8J.js";import{L as A}from"./live-dot-BZgYTYdt.js";import{B as R}from"./app-wordmark-BA_60AVb.js";import{b as T,c as B,a as M,C as P}from"./card-DPjFKfen.js";const z=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],E=b("refresh-cw",z);function W(g){const e=v.c(22),{tokenPrefix:_,newToken:o,className:y}=g,C=o??`${_}…`,N=H;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(T,{children:t.jsx(B,{children:"Set up this environment"})}),e[0]=a):a=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("li",{children:["Add the gem",t.jsx(j,{code:'gem "railwatch"',className:"mt-1.5"})]}),e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("li",{children:["Run the generator",t.jsx(j,{code:"bin/rails generate railwatch:install --cloud",className:"mt-1.5"})]}),e[2]=m):m=e[2];const k=`RAILWATCH_TOKEN=${C}`;let s;e[3]!==k?(s=t.jsx(j,{code:k,className:"mt-1.5"}),e[3]=k,e[4]=s):s=e[4];let n;e[5]!==o?(n=!o&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Showing the token prefix only. The full token is shown once, right after an environment is created."}),e[5]=o,e[6]=n):n=e[6];let r;e[7]!==s||e[8]!==n?(r=t.jsxs("li",{children:["Set the token in the app's environment",s,n]}),e[7]=s,e[8]=n,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("li",{children:["Check every piece is wired up",t.jsx(j,{code:"bin/rails railwatch:doctor",className:"mt-1.5"}),t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Prints a ✓/✗ line per check — token, ingest, middleware, routes, deploy marker, browser client, test matchers — and exits non-zero if anything required is missing."})]}),e[10]=d):d=e[10];let h,f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs("li",{children:["Connect your AI assistant",t.jsxs("p",{className:"text-muted-foreground mt-1 text-xs",children:["Generate a personal token on your"," ",t.jsx(w,{href:S(),className:"underline underline-offset-4",children:"profile page"})," ","for paste-ready Claude Code, Cursor, VS Code, and Zed config."]})]}),h=t.jsx("li",{children:"Deploy"}),e[11]=h,e[12]=f):(h=e[11],f=e[12]);let i;e[13]!==r?(i=t.jsxs("ol",{className:"list-inside list-decimal space-y-3 text-sm",children:[c,m,r,d,f,h]}),e[13]=r,e[14]=i):i=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[t.jsx(A,{lastSeenAt:null}),"Waiting for first event…"]}),e[15]=x):x=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[x,t.jsxs(R,{type:"button",variant:"outline",size:"sm",onClick:N,children:[t.jsx(E,{className:"size-3.5"}),"Check now"]})]}),e[16]=p):p=e[16];let l;e[17]!==i?(l=t.jsxs(M,{className:"space-y-4",children:[i,p]}),e[17]=i,e[18]=l):l=e[18];let u;return e[19]!==y||e[20]!==l?(u=t.jsxs(P,{className:y,children:[a,l]}),e[19]=y,e[20]=l,e[21]=u):u=e[21],u}function H(){return L.reload()}export{W as O};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as g,j as h,az as E,L as w}from"./inertia-Cuyz2ZHO.js";import{t as N}from"./tenant-path-CQoP-BeF.js";function v(l,e,o,i){const _=String(E(l,e,o,{...i})),[r,s]=_.split("?");return`${r.replace(/\./g,"%2E")}${s?`?${s}`:""}`}function y(l,e){if(l==="custom"){if(!e)throw new Error("Custom telemetry window requires a range");return{from:e.from,to:e.to}}return{window:l??"24h"}}function S(l){const e=g.c(30),{applicationId:o,environmentId:i,kind:_,person:r,range:s,tenant:a,user_ref:x,window:m}=l;if(_==="user"){if(!x){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=n):n=e[0],n}if(!r){let n;return e[1]!==x?(n=h.jsx("span",{className:"font-mono text-xs",children:x}),e[1]=x,e[2]=n):n=e[2],n}let t,d,p;if(e[3]!==o||e[4]!==i||e[5]!==r.ref||e[6]!==s||e[7]!==m){const n=y(m,s);t=w,d="font-mono text-xs hover:underline",p=v(o,i,r.ref,n),e[3]=o,e[4]=i,e[5]=r.ref,e[6]=s,e[7]=m,e[8]=t,e[9]=d,e[10]=p}else t=e[8],d=e[9],p=e[10];let P;return e[11]!==t||e[12]!==r.name||e[13]!==d||e[14]!==p?(P=h.jsx(t,{className:d,href:p,children:r.name}),e[11]=t,e[12]=r.name,e[13]=d,e[14]=p,e[15]=P):P=e[15],P}if(!a){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[16]=t):t=e[16],t}let f,c,u;if(e[17]!==o||e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==m){const t=y(m,s);f=w,c="font-mono text-xs hover:underline",u=N(o,i,a,t),e[17]=o,e[18]=i,e[19]=s,e[20]=a,e[21]=m,e[22]=f,e[23]=c,e[24]=u}else f=e[22],c=e[23],u=e[24];let j;return e[25]!==f||e[26]!==c||e[27]!==u||e[28]!==a?(j=h.jsx(f,{className:c,href:u,children:a}),e[25]=f,e[26]=c,e[27]=u,e[28]=a,e[29]=j):j=e[29],j}export{S as O};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as n}from"./inertia-Cuyz2ZHO.js";import{t as c}from"./live-dot-BZgYTYdt.js";import{w as f,a as p}from"./format-B9SDkrWj.js";function R(a){const e=m.c(10),{iso:t,className:s}=a;if(c(),!t){let l;return e[0]!==s?(l=n.jsx("span",{className:s,children:"never"}),e[0]=s,e[1]=l):l=e[1],l}let i;e[2]!==t?(i=f(t),e[2]=t,e[3]=i):i=e[3];let r;e[4]!==t?(r=p(t),e[4]=t,e[5]=r):r=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==r?(o=n.jsx("span",{className:s,title:i,children:r}),e[6]=s,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}export{R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as G,u as J,ab as X,j as r,e as Y,t as Z}from"./inertia-Cuyz2ZHO.js";import{V as ee,D as te}from"./chart-panel-CC49WTQL.js";import{D as se}from"./data-table-CzKTEE-O.js";import{u as re,P as oe,E as ne}from"./env-layout-Kz7wks1x.js";import{S as D,a as ie}from"./stat-ZtxGU8lE.js";import{S as le}from"./status-badge-CH5P-Xkj.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";function Ie(t){const e=G.c(72),{environment:Q,window:O}=J().props,{window:z,label:A}=re(),o=Q.application_id,n=Q.id,s=t.summary.current,i=t.summary.previous,l=z==="custom"?"vs previous period":`vs previous ${A}`,F=t.route;let a;e[0]!==o||e[1]!==n||e[2]!==O?(a=X(o,n,{window:O}),e[0]=o,e[1]=n,e[2]=O,e[3]=a):a=e[3];let u;e[4]!==a?(u={title:"Requests",href:a},e[4]=a,e[5]=u):u=e[5];let c;e[6]!==t.route?(c={title:t.route,href:"#"},e[6]=t.route,e[7]=c):c=e[7];let m;e[8]!==u||e[9]!==c?(m=[u,c],e[8]=u,e[9]=c,e[10]=m):m=e[10];let p;e[11]!==t.route?(p=r.jsx(oe,{title:r.jsx("span",{className:"font-mono",children:t.route})}),e[11]=t.route,e[12]=p):p=e[12];let d;e[13]!==s.count?(d=ae(s.count),e[13]=s.count,e[14]=d):d=e[14];let f;e[15]!==d?(f=r.jsx(D,{label:"Requests",value:d}),e[15]=d,e[16]=f):f=e[16];let x;e[17]!==s.count||e[18]!==s.errors?(x=ue(s.errors,s.count),e[17]=s.count,e[18]=s.errors,e[19]=x):x=e[19];const L=s.errors?"destructive":"success",W=`${s.errors} 5xx · ${s.client_errors} 4xx`,C=s.count?s.errors/s.count*100:0,T=i.count?i.errors/i.count*100:0;let h;e[20]!==C||e[21]!==T?(h={current:C,previous:T,goodDirection:"down"},e[20]=C,e[21]=T,e[22]=h):h=e[22];let v;e[23]!==l||e[24]!==W||e[25]!==h||e[26]!==x||e[27]!==L?(v=r.jsx(D,{label:"Errors",value:x,tone:L,hint:W,delta:h,deltaCaption:l}),e[23]=l,e[24]=W,e[25]=h,e[26]=x,e[27]=L,e[28]=v):v=e[28];const V=s.p50/1e3;let j;e[29]!==V?(j=N(V),e[29]=V,e[30]=j):j=e[30];let y;e[31]!==j?(y=r.jsx(D,{label:"p50",value:j}),e[31]=j,e[32]=y):y=e[32];const B=s.p95/1e3;let _;e[33]!==B?(_=N(B),e[33]=B,e[34]=_):_=e[34];let b;e[35]!==i.p95||e[36]!==s.p95?(b={current:s.p95,previous:i.p95,goodDirection:"down"},e[35]=i.p95,e[36]=s.p95,e[37]=b):b=e[37];let w;e[38]!==l||e[39]!==_||e[40]!==b?(w=r.jsx(D,{label:"p95",value:_,delta:b,deltaCaption:l}),e[38]=l,e[39]=_,e[40]=b,e[41]=w):w=e[41];const H=s.p99/1e3;let g;e[42]!==H?(g=N(H),e[42]=H,e[43]=g):g=e[43];const I=s.max/1e3;let P;e[44]!==I?(P=N(I),e[44]=I,e[45]=P):P=e[45];const K=`max ${P}`;let q;e[46]!==g||e[47]!==K?(q=r.jsx(D,{label:"p99 / max",value:g,hint:K}),e[46]=g,e[47]=K,e[48]=q):q=e[48];let k;e[49]!==v||e[50]!==y||e[51]!==w||e[52]!==q||e[53]!==f?(k=r.jsxs(ie,{children:[f,v,y,w,q]}),e[49]=v,e[50]=y,e[51]=w,e[52]=q,e[53]=f,e[54]=k):k=e[54];let R;e[55]!==t.deploys||e[56]!==t.series?(R=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r.jsx(ee,{label:"Requests",data:t.series,deploys:t.deploys}),r.jsx(te,{label:"Latency",data:t.series,deploys:t.deploys})]}),e[55]=t.deploys,e[56]=t.series,e[57]=R):R=e[57];let E;e[58]!==o||e[59]!==n?(E=U=>U.execution_id&&Y.visit(Z(o,n,U.execution_id)),e[58]=o,e[59]=n,e[60]=E):E=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=[{key:"when",header:"When",cell:je},{key:"status",header:"Status",cell:ve},{key:"dur",header:"Duration",align:"right",cell:he},{key:"q",hideOnMobile:!0,header:"Queries",align:"right",cell:xe},{key:"user",hideOnMobile:!0,header:"User",cell:fe},{key:"tenant",hideOnMobile:!0,header:"Tenant",cell:de},{key:"comp",hideOnMobile:!0,header:"Inertia",cell:pe},{key:"ex",header:"Exception",cell:me}],e[61]=$):$=e[61];let S;e[62]!==t.requests||e[63]!==E?(S=r.jsx(se,{rows:t.requests,rowKey:ye,onRowClick:E,columns:$}),e[62]=t.requests,e[63]=E,e[64]=S):S=e[64];let M;return e[65]!==t.route||e[66]!==k||e[67]!==R||e[68]!==S||e[69]!==m||e[70]!==p?(M=r.jsxs(ne,{title:F,crumbs:m,children:[p,k,R,S]}),e[65]=t.route,e[66]=k,e[67]=R,e[68]=S,e[69]=m,e[70]=p,e[71]=M):M=e[71],M}function me(t){return r.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function pe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.inertia_component??""})}function de(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??"–"})}function fe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function xe(t){return t.queries??"–"}function he(t){return N(t.duration)}function ve(t){return r.jsx(le,{status:t.status})}function je(t){return r.jsx("span",{className:"text-xs tabular-nums",children:ce(t.occurred_at)})}function ye(t){return t.execution_id}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as ze,r as a,j as u,W as Me,c as ne,C as ae}from"./inertia-Cuyz2ZHO.js";import{c as We,a as E,b as q,P as Ke,u as _e,C as $e}from"./index-BfbSo01U.js";import{V as Ge,o as Ye,u as qe,C as Oe}from"./app-layout-Zc0v-hYh.js";import{u as H,a as Xe}from"./app-wordmark-BA_60AVb.js";import{d as De,A as Ze,P as Je,h as Qe,f as et,g as tt,F as ot,e as nt,C as rt,i as ye,u as ke,R as st}from"./live-dot-BZgYTYdt.js";import{P as F}from"./index-CBip6V4z.js";const lt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ct=ze("chevron-up",lt);var it=Object.defineProperty,at=(l,e)=>it(l,"name",{value:e,configurable:!0});function Ae(l){const e=a.useRef({value:l,previous:l});return a.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}at(Ae,"usePrevious");var dt=Object.defineProperty,ut=(l,e)=>dt(l,"name",{value:e,configurable:!0});function we(l,[e,o]){return Math.min(o,Math.max(e,l))}ut(we,"clamp");var pt=Object.defineProperty,S=(l,e)=>pt(l,"name",{value:e,configurable:!0}),ft=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],de="Select",[he,ve,ht]=Ye(de),[re,eo]=We(de,[ht,De]),Ie=De(),[vt,X]=re(de),[gt,St]=re(de);function Be(l){const{__scopeSelect:e,children:o,open:t,defaultOpen:r,onOpenChange:n,value:d,defaultValue:s,onValueChange:c,dir:i,name:m,autoComplete:x,disabled:y,required:C,form:w,internal_do_not_use_render:I}=l,p=Ie(e),[g,b]=a.useState(null),[v,f]=a.useState(null),[O,j]=a.useState(!1),Z=qe(i),[D,A]=_e({prop:t,defaultProp:r??!1,onChange:n,caller:de}),[J,K]=_e({prop:d,defaultProp:s,onChange:c,caller:de}),U=a.useRef(null),z=a.useRef(J);a.useEffect(()=>{const N=w?g?.ownerDocument.getElementById(w):g?.form;if(N instanceof HTMLFormElement){const V=S(()=>K(z.current),"reset");return N.addEventListener("reset",V),()=>N.removeEventListener("reset",V)}},[w,g,K]);const Q=g?!!w||!!g.closest("form"):!0,[W,B]=a.useState(new Set),$=ke(),G=Array.from(W).map(N=>N.props.value).join(";"),Y=a.useCallback(N=>{B(V=>new Set(V).add(N))},[]),L=a.useCallback(N=>{B(V=>{const ce=new Set(V);return ce.delete(N),ce})},[]),le={required:C,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:f,valueNodeHasChildren:O,onValueNodeHasChildrenChange:j,contentId:$,value:J,onValueChange:K,open:D,onOpenChange:A,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:m,autoComplete:x,form:w,nativeOptions:W,nativeSelectKey:G,isFormControl:Q};return u.jsx(st,{...p,children:u.jsx(vt,{scope:e,...le,children:u.jsx(he.Provider,{scope:e,children:u.jsx(gt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:L,children:Fe(I)?I(le):o})})})})}S(Be,"SelectProvider");var xt=S(l=>{const{__scopeSelect:e,children:o,...t}=l;return u.jsx(Be,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(Kt,{__scopeSelect:e}):null]})})},"Select"),wt="SelectTrigger",Ct=a.forwardRef(S(function(e,o){const{__scopeSelect:t,disabled:r=!1,...n}=e,d=Ie(t),s=X(wt,t),c=s.disabled||r,i=H(o,s.onTriggerChange),m=ve(t),x=a.useRef("touch"),[y,C,w]=Pe(p=>{const g=m().filter(f=>!f.disabled),b=g.find(f=>f.value===s.value),v=Te(g,p,b);v!==void 0&&s.onValueChange(v.value)}),I=S(p=>{c||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return u.jsx(Ze,{asChild:!0,...d,children:u.jsx(F.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":pe(s.value)?"":void 0,...n,ref:i,onClick:E(n.onClick,p=>{p.currentTarget.focus(),x.current!=="mouse"&&I(p)}),onPointerDown:E(n.onPointerDown,p=>{x.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(I(p),p.preventDefault())}),onKeyDown:E(n.onKeyDown,p=>{const g=y.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&C(p.key),!(g&&p.key===" ")&&ft.includes(p.key)&&(I(),p.preventDefault())})})})},"SelectTrigger")),yt="SelectValue",It=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,children:d,placeholder:s="",...c}=e,i=X(yt,t),{onValueNodeHasChildrenChange:m}=i,x=d!==void 0,y=H(o,i.onValueNodeChange);q(()=>{m(x)},[m,x]);const C=pe(i.value);return u.jsx(F.span,{...c,asChild:C?!1:c.asChild,ref:y,style:{pointerEvents:"none"},children:u.jsx(a.Fragment,{children:C?s:d},C?"placeholder":"value")})},"SelectValue")),bt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,...n}=e;return u.jsx(F.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})},"SelectIcon")),Pt="SelectPortal",[Tt,_t]=re(Pt,{forceMount:void 0}),Rt=S(l=>{const{__scopeSelect:e,forceMount:o,...t}=l;return u.jsx(Tt,{scope:l.__scopeSelect,forceMount:o,children:u.jsx(Je,{asChild:!0,...t})})},"SelectPortal"),oe="SelectContent",Et=a.forwardRef(S(function(e,o){const t=_t(oe,e.__scopeSelect),{forceMount:r=t.forceMount,...n}=e,d=X(oe,e.__scopeSelect),[s,c]=a.useState();return q(()=>{c(new DocumentFragment)},[]),u.jsx(Ke,{present:r||d.open,children:({present:i})=>i?u.jsx(Mt,{...n,ref:o}):u.jsx(jt,{...n,fragment:s})})},"SelectContent")),jt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,fragment:n}=e;return n?Me.createPortal(u.jsx(Le,{scope:t,children:u.jsx(he.Slot,{scope:t,children:u.jsx("div",{ref:o,children:r})})}),n):null},"SelectContentFragment")),k=10,[Le,se]=re(oe),Nt=Xe("SelectContent.RemoveScroll"),Mt=a.forwardRef(S(function(e,o){const{__scopeSelect:t}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:d,onPointerDownOutside:s,side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g,...b}=e,v=X(oe,t),[f,O]=a.useState(null),[j,Z]=a.useState(null),D=H(o,O),[A,J]=a.useState(null),[K,U]=a.useState(null),z=ve(t),[Q,W]=a.useState(!1),B=a.useRef(!1);a.useEffect(()=>{if(f)return Qe(f)},[f]),et();const $=a.useCallback(h=>{const[_,...M]=z().map(R=>R.ref.current),[P]=M.slice(-1),T=document.activeElement;for(const R of h)if(R===T||(R?.scrollIntoView({block:"nearest"}),R===_&&j&&(j.scrollTop=0),R===P&&j&&(j.scrollTop=j.scrollHeight),R?.focus(),document.activeElement!==T))return},[z,j]),G=a.useCallback(()=>$([A,f]),[$,A,f]);a.useEffect(()=>{Q&&G()},[Q,G]);const{onOpenChange:Y,triggerPointerDownPosRef:L}=v;a.useEffect(()=>{if(f){let h={x:0,y:0};const _=S(P=>{h={x:Math.abs(Math.round(P.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(P.pageY)-(L.current?.y??0))}},"handlePointerMove"),M=S(P=>{h.x<=10&&h.y<=10?P.preventDefault():P.composedPath().includes(f)||Y(!1),document.removeEventListener("pointermove",_),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",M,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",M,{capture:!0})}}},[f,Y,L]),a.useEffect(()=>{const h=S(()=>Y(!1),"close");return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[Y]);const[le,N]=Pe(h=>{const _=z().filter(T=>!T.disabled),M=_.find(T=>T.ref.current===document.activeElement),P=Te(_,h,M);P&&setTimeout(()=>P.ref.current?.focus())}),V=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&(J(h),P&&(B.current=!0))},[v.value]),ce=a.useCallback(()=>f?.focus(),[f]),ie=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&U(h)},[v.value]),fe=r==="popper"?Re:Ot,ue=fe===Re?{side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g}:{};return u.jsx(Le,{scope:t,content:f,viewport:j,onViewportChange:Z,itemRefCallback:V,selectedItem:A,onItemLeave:ce,itemTextRefCallback:ie,focusSelectedItem:G,selectedItemText:K,position:r,isPositioned:Q,searchRef:le,children:u.jsx(tt,{as:Nt,allowPinchZoom:!0,children:u.jsx(ot,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:E(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:u.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...b,...ue,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:E(b.onKeyDown,h=>{const _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&N(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let P=z().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(h.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const T=h.target,R=P.indexOf(T);P=P.slice(R+1)}setTimeout(()=>$(P)),h.preventDefault()}})})})})})})},"SelectContentImpl")),Ot=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onPlaced:r,...n}=e,d=X(oe,t),s=se(oe,t),[c,i]=a.useState(null),[m,x]=a.useState(null),y=H(o,x),C=ve(t),w=a.useRef(!1),I=a.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=s,f=a.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&m&&p&&g&&b){const D=d.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),J=d.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(d.dir!=="rtl"){const T=K.left-A.left,R=J.left-T,ee=D.left-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.left=xe+"px"}else{const T=A.right-K.right,R=window.innerWidth-J.right-T,ee=window.innerWidth-D.right-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.right=xe+"px"}const U=C(),z=window.innerHeight-k*2,Q=p.scrollHeight,W=window.getComputedStyle(m),B=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),L=B+$+Q+Y+G,le=Math.min(g.offsetHeight*5,L),N=window.getComputedStyle(p),V=parseInt(N.paddingTop,10),ce=parseInt(N.paddingBottom,10),ie=D.top+D.height/2-k,fe=z-ie,ue=g.offsetHeight/2,h=g.offsetTop+ue,_=B+$+h,M=L-_;if(_<=ie){const T=U.length>0&&g===U[U.length-1].ref.current;c.style.bottom="0px";const R=m.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(fe,ue+(T?ce:0)+R+G),te=_+ee;c.style.height=te+"px"}else{const T=U.length>0&&g===U[0].ref.current;c.style.top="0px";const ee=Math.max(ie,B+p.offsetTop+(T?V:0)+ue)+M;c.style.height=ee+"px",p.scrollTop=_-ie+p.offsetTop}c.style.margin=`${k}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[C,d.trigger,d.valueNode,c,m,p,g,b,d.dir,r]);q(()=>f(),[f]);const[O,j]=a.useState();q(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const Z=a.useCallback(D=>{D&&I.current===!0&&(f(),v?.(),I.current=!1)},[f,v]);return u.jsx(Dt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:Z,children:u.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(F.div,{...n,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Re=a.forwardRef(S(function(e,o){const{__scopeSelect:t,align:r="start",collisionPadding:n=k,...d}=e,s=Ie(t);return u.jsx(rt,{...s,...d,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Dt,be]=re(oe,{}),Ee="SelectViewport",kt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,nonce:r,...n}=e,d=se(Ee,t),s=be(Ee,t),c=H(o,d.onViewportChange),i=a.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(he.Slot,{scope:t,children:u.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:E(n.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:C}=s;if(C?.current&&y){const w=Math.abs(i.current-x.scrollTop);if(w>0){const I=window.innerHeight-k*2,p=parseFloat(y.style.minHeight),g=parseFloat(y.style.height),b=Math.max(p,g);if(b<I){const v=b+w,f=Math.min(I,v),O=v-f;y.style.height=f+"px",y.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}i.current=x.scrollTop})})})]})},"SelectViewport")),At="SelectGroup",[to,oo]=re(At),Ce="SelectItem",[Bt,Ve]=re(Ce),Lt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,value:r,disabled:n=!1,textValue:d,...s}=e,c=X(Ce,t),i=se(Ce,t),m=c.value===r,[x,y]=a.useState(d??""),[C,w]=a.useState(!1),I=ye(f=>i.itemRefCallback?.(f,r,n)),p=H(o,I),g=ke(),b=a.useRef("touch"),v=S(()=>{n||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return u.jsx(Bt,{scope:t,value:r,disabled:n,textId:g,isSelected:m,onItemTextChange:a.useCallback(f=>{y(O=>O||(f?.textContent??"").trim())},[]),children:u.jsx(he.ItemSlot,{scope:t,value:r,disabled:n,textValue:x,children:u.jsx(F.div,{role:"option","aria-labelledby":g,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:p,onFocus:E(s.onFocus,()=>w(!0)),onBlur:E(s.onBlur,()=>w(!1)),onClick:E(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:E(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:E(s.onPointerDown,f=>{b.current=f.pointerType}),onPointerMove:E(s.onPointerMove,f=>{b.current=f.pointerType,n?i.onItemLeave?.():b.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:E(s.onKeyDown,f=>{n||f.target!==f.currentTarget||i.searchRef?.current!==""&&f.key===" "||(mt.includes(f.key)&&v(),f.key===" "&&f.preventDefault())})})})})},"SelectItem")),me="SelectItemText",Vt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,...d}=e,s=X(me,t),c=se(me,t),i=Ve(me,t),m=St(me,t),[x,y]=a.useState(null),C=ye(v=>c.itemTextRefCallback?.(v,i.value,i.disabled)),w=H(o,y,i.onItemTextChange,C),I=x?.textContent,p=a.useMemo(()=>u.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=m;return q(()=>(g(p),()=>b(p)),[g,b,p]),u.jsxs(u.Fragment,{children:[u.jsx(F.span,{id:i.textId,...d,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!pe(s.value)?Me.createPortal(d.children,s.valueNode):null]})},"SelectItemText")),Ht="SelectItemIndicator",Ft=a.forwardRef(S(function(e,o){const{__scopeSelect:t,...r}=e;return Ve(Ht,t).isSelected?u.jsx(F.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),je="SelectScrollUpButton",Ut=a.forwardRef(S(function(e,o){const t=se(je,e.__scopeSelect),r=be(je,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollTop>0;d(m)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null},"SelectScrollUpButton")),Ne="SelectScrollDownButton",zt=a.forwardRef(S(function(e,o){const t=se(Ne,e.__scopeSelect),r=be(Ne,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollHeight-i.clientHeight,x=Math.ceil(i.scrollTop)<m;d(x)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null},"SelectScrollDownButton")),He=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onAutoScroll:r,...n}=e,d=se("SelectScrollButton",t),s=a.useRef(null),c=ve(t),i=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>i(),[i]),q(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(F.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:E(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:E(n.onPointerMove,()=>{d.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:E(n.onPointerLeave,()=>{i()})})},"SelectScrollButtonImpl")),Wt="SelectBubbleInput",Kt=a.forwardRef(S(function({__scopeSelect:e,...o},t){const r=X(Wt,e),{value:n,onValueChange:d,required:s,disabled:c,name:i,autoComplete:m,form:x}=r,{nativeOptions:y,nativeSelectKey:C}=r,w=a.useRef(null),I=H(t,w),p=n??"",g=Ae(p),b=Array.from(y).some(v=>(v.props.value??"")==="");return a.useEffect(()=>{const v=w.current;if(!v)return;const f=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(f,"value").set;if(g!==p&&j){const Z=new Event("change",{bubbles:!0});j.call(v,p),v.dispatchEvent(Z)}},[g,p]),u.jsxs(F.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:m,disabled:c,form:x,onChange:v=>d(v.target.value),...o,style:{...Ge,...o.style},ref:I,defaultValue:p,children:[pe(n)&&!b?u.jsx("option",{value:""}):null,Array.from(y)]},C)},"SelectBubbleInput"));function Fe(l){return typeof l=="function"}S(Fe,"isFunction");function pe(l){return l===""||l===void 0}S(pe,"shouldShowPlaceholder");function Pe(l){const e=ye(l),o=a.useRef(""),t=a.useRef(0),r=a.useCallback(d=>{const s=o.current+d;e(s),S((function c(i){o.current=i,window.clearTimeout(t.current),i!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch")(s)},[e]),n=a.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,r,n]}S(Pe,"useTypeaheadSearch");function Te(l,e,o){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,n=o?l.indexOf(o):-1;let d=Ue(l,Math.max(n,0));r.length===1&&(d=d.filter(i=>i!==o));const c=d.find(i=>i.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}S(Te,"findNextItem");function Ue(l,e){return l.map((o,t)=>l[(e+t)%l.length])}S(Ue,"wrapArray");function no(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(xt,{"data-slot":"select",...o}),e[2]=o,e[3]=t):t=e[3],t}function ro(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(It,{"data-slot":"select-value",...o}),e[2]=o,e[3]=t):t=e[3],t}function so(l){const e=ne.c(13);let o,t,r,n;e[0]!==l?({className:t,size:n,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n):(o=e[1],t=e[2],r=e[3],n=e[4]);const d=n===void 0?"default":n;let s;e[5]!==t?(s=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(bt,{asChild:!0,children:u.jsx(Oe,{className:"size-4 opacity-50"})}),e[7]=c):c=e[7];let i;return e[8]!==o||e[9]!==r||e[10]!==d||e[11]!==s?(i=u.jsxs(Ct,{"data-slot":"select-trigger","data-size":d,className:s,...r,children:[o,c]}),e[8]=o,e[9]=r,e[10]=d,e[11]=s,e[12]=i):i=e[12],i}function lo(l){const e=ne.c(22);let o,t,r,n,d;e[0]!==l?({className:t,children:o,position:n,align:d,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n,e[5]=d):(o=e[1],t=e[2],r=e[3],n=e[4],d=e[5]);const s=n===void 0?"popper":n,c=d===void 0?"center":d,i=s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==t||e[7]!==i?(m=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i,t),e[6]=t,e[7]=i,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=u.jsx($t,{}),e[9]=x):x=e[9];const y=s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[10]!==y?(C=ae("p-1",y),e[10]=y,e[11]=C):C=e[11];let w;e[12]!==o||e[13]!==C?(w=u.jsx(kt,{className:C,children:o}),e[12]=o,e[13]=C,e[14]=w):w=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=u.jsx(Gt,{}),e[15]=I):I=e[15];let p;return e[16]!==c||e[17]!==s||e[18]!==r||e[19]!==m||e[20]!==w?(p=u.jsx(Rt,{children:u.jsxs(Et,{"data-slot":"select-content",className:m,position:s,align:c,...r,children:[x,w,I]})}),e[16]=c,e[17]=s,e[18]=r,e[19]=m,e[20]=w,e[21]=p):p=e[21],p}function co(l){const e=ne.c(13);let o,t,r;e[0]!==l?({className:t,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r):(o=e[1],t=e[2],r=e[3]);let n;e[4]!==t?(n=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Ft,{children:u.jsx($e,{className:"size-4"})})}),e[6]=d):d=e[6];let s;e[7]!==o?(s=u.jsx(Vt,{children:o}),e[7]=o,e[8]=s):s=e[8];let c;return e[9]!==r||e[10]!==n||e[11]!==s?(c=u.jsxs(Lt,{"data-slot":"select-item",className:n,...r,children:[d,s]}),e[9]=r,e[10]=n,e[11]=s,e[12]=c):c=e[12],c}function $t(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ct,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(Ut,{"data-slot":"select-scroll-up-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}function Gt(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(Oe,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(zt,{"data-slot":"select-scroll-down-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}export{no as S,so as a,ro as b,lo as c,co as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m,j as d,c as u,C as x}from"./inertia-Cuyz2ZHO.js";import{P as O}from"./index-CBip6V4z.js";var h=Object.defineProperty,v=(r,t)=>h(r,"name",{value:t,configurable:!0}),p="horizontal",P=["horizontal","vertical"],E=m.forwardRef(v(function(t,o){const{decorative:a,orientation:e=p,...n}=t,s=f(e)?e:p,i=a?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return d.jsx(O.div,{"data-orientation":s,...i,...n,ref:o})},"Separator"));function f(r){return P.includes(r)}v(f,"isValidOrientation");var N=E;function j(r){const t=u.c(12);let o,a,e,n;t[0]!==r?({className:o,orientation:e,decorative:n,...a}=r,t[0]=r,t[1]=o,t[2]=a,t[3]=e,t[4]=n):(o=t[1],a=t[2],e=t[3],n=t[4]);const s=e===void 0?"horizontal":e,l=n===void 0?!0:n;let i;t[5]!==o?(i=x("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=i):i=t[6];let c;return t[7]!==l||t[8]!==s||t[9]!==a||t[10]!==i?(c=d.jsx(N,{"data-slot":"separator",decorative:l,orientation:s,className:i,...a}),t[7]=l,t[8]=s,t[9]=a,t[10]=i,t[11]=c):c=t[11],c}export{j as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as re,r as c,c as $,j as A}from"./inertia-Cuyz2ZHO.js";import{u as Ye}from"./chart-hover-CfoZUY4J.js";import{i as K,e as He,s as ne,D as ie,f as ge,g as Ct,Z as oe,L as R,u as be,h as Mt,j as Tt,k as U,l as Ue,m as F,n as H,o as Kt,p as le,q as se,r as qe,t as Pe,v as q,w as Ze,x as Ae,y as ce,z as Je,S as Qe,A as et,E as ue,F as tt,G as at,H as rt,I as nt,J as it,K as ot,M as Wt,N as Z,O as J,P as lt,Q as st,T as M,U as ct,V as ut,W as dt,_ as Rt,$ as $t,a0 as Ft,a1 as Ie,a2 as Ee,a3 as zt,a4 as Bt,a5 as Vt,a6 as Gt,a7 as Xt,a8 as Yt,a9 as pe,aa as Q,ab as pt,ac as vt,R as Ht,C as ke,X as je,Y as Oe,a as Se,b as we,c as de,B as ve,d as Ut}from"./chart-DWh7l8yM.js";import{m as ft}from"./format-B9SDkrWj.js";function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},he.apply(null,arguments)}var mt=t=>{var{cx:e,cy:a,r,className:n}=t,i=re("recharts-dot",n);return K(e)&&K(a)&&K(r)?c.createElement("circle",he({},ne(t),He(t),{className:i,cx:e,cy:a,r})):null},qt=["points"];function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function fe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(a),!0).forEach(function(r){Zt(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Zt(t,e,a){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Jt(t){var e=Qt(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},ee.apply(null,arguments)}function ea(t,e){if(t==null)return{};var a,r,n=ta(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ta(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function aa(t){var{option:e,dotProps:a,className:r}=t;if(c.isValidElement(e))return c.cloneElement(e,a);if(typeof e=="function")return e(a);var n=re(r,typeof e!="boolean"?e.className:""),i=a??{},{points:l}=i,o=ea(i,qt);return c.createElement(mt,ee({},o,{className:n}))}function ra(t,e){return t==null?!1:e?!0:t.length===1}function ht(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:i,baseProps:l,needClip:o,clipPathId:s,zIndex:u=ie.scatter}=t;if(!ra(e,a))return null;var d=ge(a),p=Ct(a),v=e.map((m,x)=>{var P,h,y=fe(fe(fe({r:3},l),p),{},{index:x,cx:(P=m.x)!==null&&P!==void 0?P:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:i,value:m.value,payload:m.payload,points:e});return c.createElement(aa,{key:"dot-".concat(x),option:a,dotProps:y,className:n})}),f={};return o&&s!=null&&(f.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(s,")")),c.createElement(oe,{zIndex:u},c.createElement(R,ee({className:r},f),v))}function $e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function me(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?$e(Object(a),!0).forEach(function(r){na(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function na(t,e,a){return(e=ia(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ia(t){var e=oa(t,"string");return typeof e=="symbol"?e:e+""}function oa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var la=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:i,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var o={index:a,dataKey:i,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},s=me(me(me({},o),Ue(n)),He(n)),u;return c.isValidElement(n)?u=c.cloneElement(n,s):typeof n=="function"?u=n(s):u=c.createElement(mt,s),c.createElement(R,{className:"recharts-active-dot",clipPath:l},u)};function ye(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:i,zIndex:l=ie.activeDot}=t,o=be(Mt),s=Tt();if(e==null||s==null)return null;var u=e.find(d=>s.includes(d.payload));return U(u)?null:c.createElement(oe,{zIndex:l},c.createElement(la,{point:u,childIndex:Number(o),mainColor:a,dataKey:n,activeDot:r,clipPath:i}))}var yt=(t,e,a,r)=>le(t,"xAxis",e,r),xt=(t,e,a,r)=>se(t,"xAxis",e,r),gt=(t,e,a,r)=>le(t,"yAxis",a,r),bt=(t,e,a,r)=>se(t,"yAxis",a,r),sa=F([H,yt,gt,xt,bt],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),ca=(t,e,a,r,n)=>n;function ua(t){return t.type==="line"}var da=F([qe,ca],(t,e)=>t.filter(ua).find(a=>a.id===e)),pa=F([H,yt,gt,xt,bt,da,sa,Kt],(t,e,a,r,n,i,l,o)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:d}=o;if(!(i==null||e==null||a==null||r==null||n==null||r.length===0||n.length===0||l==null||t!=="horizontal"&&t!=="vertical")){var{dataKey:p,data:v}=i,f;if(v!=null&&v.length>0?f=v:f=s?.slice(u,d+1),f!=null)return Na({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:f})}});function Pt(t){var e=Ue(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:i}=e,l=Number(n),o=Number(i);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(o)||o<0)&&(o=r),{r:l,strokeWidth:o}}return{r:a,strokeWidth:r}}var va=["id"],fa=["type","layout","connectNulls","needClip","shape"],ma=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},X.apply(null,arguments)}function Fe(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(a),!0).forEach(function(r){ha(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function ha(t,e,a){return(e=ya(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ya(t){var e=xa(t,"string");return typeof e=="symbol"?e:e+""}function xa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(t,e){if(t==null)return{};var a,r,n=ga(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ga(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}var ba=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:r,value:ue(a,e),payload:t}]},Pa=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:r,unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})}),At=(t,e)=>"".concat(e,"px ").concat(t,"px");function Aa(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Ia=(t,e,a)=>{var r=a.reduce((v,f)=>v+f,0);if(!r)return At(e,t);for(var n=Math.floor(t/r),i=t%r,l=[],o=0,s=0;o<a.length;s+=(u=a[o])!==null&&u!==void 0?u:0,++o){var u,d=a[o];if(d!=null&&s+d>i){l=[...a.slice(0,o),i-s];break}}var p=l.length%2===0?[0,e]:[e];return[...Aa(a,n),...l,...p].map(v=>"".concat(v,"px")).join(", ")};function Ea(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:i,needClip:l}=r,{id:o}=r,s=De(r,va),u=ne(s);return c.createElement(ht,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:u,needClip:l,clipPathId:e})}function ka(t){var{showLabels:e,children:a,points:r}=t,n=c.useMemo(()=>r?.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return T(T({},s),{},{value:i.value,payload:i.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return c.createElement(ut,{value:e?n:void 0},a)}function ze(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:i}=t,{type:l,layout:o,connectNulls:s,needClip:u,shape:d}=i,p=De(i,fa),v=T(T({},dt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:o,connectNulls:s,strokeDasharray:n??i.strokeDasharray});return c.createElement(c.Fragment,null,r?.length>1&&c.createElement(Rt,X({shapeType:"curve",option:d},v,{pathRef:a})),c.createElement(Ea,{points:r,clipPathId:e,props:i}))}function ja(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function Oa(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:i}=t,{points:l,strokeDasharray:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,animateNewValues:v,width:f,height:m,onAnimationEnd:x,onAnimationStart:P}=a,h=n.current,y=lt(l,"recharts-line-"),g=c.useRef(y),[b,I]=c.useState(!1),E=!b,k=c.useCallback(()=>{typeof x=="function"&&x(),I(!1)},[x]),j=c.useCallback(()=>{typeof P=="function"&&P(),I(!0)},[P]),S=ja(r.current),D=c.useRef(0);g.current!==y&&(D.current=i.current,g.current=y);var w=D.current;return c.createElement(ka,{points:l,showLabels:E},a.children,c.createElement(st,{animationId:y,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:k,onAnimationStart:j,key:y},O=>{var L=M(w,S+w,O),_=Math.min(L,S),N;if(s)if(o){var z="".concat(o).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Ia(_,S,z)}else N=At(S,_);else N=o==null?void 0:String(o);if(O>0&&S>0&&(n.current=l,i.current=Math.max(i.current,_)),h){var G=h.length/l.length,Te=O===1?l:l.map((C,_t)=>{var Ke=Math.floor(_t*G);if(h[Ke]){var We=h[Ke];return T(T({},C),{},{x:M(We.x,C.x,O),y:M(We.y,C.y,O)})}return v?T(T({},C),{},{x:M(f*2,C.x,O),y:M(m/2,C.y,O)}):T(T({},C),{},{x:C.x,y:C.y})});return n.current=Te,c.createElement(ze,{props:a,points:Te,clipPathId:e,pathRef:r,strokeDasharray:N})}return c.createElement(ze,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),c.createElement(ct,{label:a.label}))}function Sa(t){var{clipPathId:e,props:a}=t,r=c.useRef(null),n=c.useRef(0),i=c.useRef(null);return c.createElement(Oa,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:i})}var wa=(t,e)=>{var a,r;return{x:(a=t.x)!==null&&a!==void 0?a:void 0,y:(r=t.y)!==null&&r!==void 0?r:void 0,value:t.value,errorVal:Z(t.payload,e)}};class Da extends c.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:i,yAxisId:l,top:o,left:s,width:u,height:d,id:p,needClip:v,zIndex:f}=this.props;if(e)return null;var m=re("recharts-line",n),x=p,{r:P,strokeWidth:h}=Pt(a),y=ge(a),g=P*2+h,b=v?"url(#clipPath-".concat(y?"":"dots-").concat(x,")"):void 0;return c.createElement(oe,{zIndex:f},c.createElement(R,{className:m},v&&c.createElement("defs",null,c.createElement(ot,{clipPathId:x,xAxisId:i,yAxisId:l}),!y&&c.createElement("clipPath",{id:"clipPath-dots-".concat(x)},c.createElement("rect",{x:s-g/2,y:o-g/2,width:u+g,height:d+g}))),c.createElement(Wt,{xAxisId:i,yAxisId:l,data:r,dataPointFormatter:wa,errorBarOffset:0},c.createElement(Sa,{props:this.props,clipPathId:x}))),c.createElement(ye,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}var It={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ie.line,type:"linear"};function La(t){var e=Ae(t,It),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,connectNulls:o,dot:s,hide:u,isAnimationActive:d,label:p,legendType:v,xAxisId:f,yAxisId:m,id:x}=e,P=De(e,ma),{needClip:h}=rt(f,m),y=nt(),g=it(),b=ce(),I=be(D=>pa(D,f,m,b,x));if(g!=="horizontal"&&g!=="vertical"||I==null||y==null)return null;var{height:E,width:k,x:j,y:S}=y;return c.createElement(Da,X({},P,{id:x,connectNulls:o,dot:s,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,isAnimationActive:d,hide:u,label:p,legendType:v,xAxisId:f,yAxisId:m,points:I,layout:g,height:E,width:k,left:j,top:S,needClip:h}))}function Na(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=t;return s.map((u,d)=>{var p=Z(u,l);if(e==="horizontal"){var v=J({axis:a,ticks:n,bandSize:o,entry:u,index:d}),f=U(p)?null:r.scale.map(p);return{x:v,y:f??null,value:p,payload:u}}var m=U(p)?null:a.scale.map(p),x=J({axis:r,ticks:i,bandSize:o,entry:u,index:d});return m==null||x==null?null:{x:m,y:x,value:p,payload:u}}).filter(Boolean)}function _a(t){var e=Ae(t,It),a=ce();return c.createElement(Je,{id:e.id,type:"line"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:ba(e)}),c.createElement(Pa,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),c.createElement(La,X({},e,{id:r}))))}var xe=c.memo(_a,Ze);xe.displayName="Line";var Et=(t,e,a)=>le(t,"xAxis",Ie(t,e),a),kt=(t,e,a)=>se(t,"xAxis",Ie(t,e),a),jt=(t,e,a)=>le(t,"yAxis",Ee(t,e),a),Ot=(t,e,a)=>se(t,"yAxis",Ee(t,e),a),Ca=F([H,Et,jt,kt,Ot],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),Ma=(t,e)=>e,St=F([qe,Ma],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),wt=t=>{var e=H(t),a=Pe(e,"xAxis");return a?"yAxis":"xAxis"},Ta=(t,e)=>{var a=wt(t);return a==="yAxis"?Ee(t,e):Ie(t,e)},Ka=(t,e,a)=>Bt(t,wt(t),Ta(t,e),a),Wa=F([St,Ka],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=zt(t);if(!(r==null||n==null)){var i=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=i?.find(o=>o.key===n);if(l!=null)return l.map(o=>[o[0],o[1]])}}}),Ra=F([H,Et,jt,kt,Ot,Wa,$t,Ca,St,Ft],(t,e,a,r,n,i,l,o,s,u)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:v}=l;if(!(s==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||o==null)){var{data:f}=s,m;if(f&&f.length>0?m=f:m=d?.slice(p,v+1),m!=null)return ir({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:s,stackedData:i,displayedData:m,chartBaseValue:u,bandSize:o})}}),$a=["id"],Fa=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function W(){return W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},W.apply(null,arguments)}function Dt(t,e){if(t==null)return{};var a,r,n=za(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function za(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function Be(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function B(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(a),!0).forEach(function(r){Ba(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ba(t,e,a){return(e=Va(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Va(t){var e=Ga(t,"string");return typeof e=="symbol"?e:e+""}function Ga(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t,e){return t&&t!=="none"?t:e}var Xa=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:i,hide:l}=t;return[{inactive:l,dataKey:e,type:i,color:te(r,n),value:ue(a,e),payload:t}]},Ya=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:te(r,i),unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})});function Ha(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:i,dataKey:l}=r,o=ne(r);return c.createElement(ht,{points:a,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:o,needClip:n,clipPathId:e})}function Ua(t){var{showLabels:e,children:a,points:r}=t,n=r.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return B(B({},s),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:s,fill:void 0})});return c.createElement(ut,{value:e?n:void 0},a)}function Ve(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:i}=t,{layout:l,type:o,stroke:s,connectNulls:u,isRange:d}=i,{id:p}=i,v=Dt(i,$a),f=ne(v),m=dt(v);return c.createElement(c.Fragment,null,e?.length>1&&c.createElement(R,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},c.createElement(pe,W({},m,{id:p,points:e,connectNulls:u,type:o,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:e})),s!=="none"&&d&&Array.isArray(a)&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:a}))),c.createElement(Ha,{points:e,props:v,clipPathId:n}))}function qa(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.y,s=(a=i[i.length-1])===null||a===void 0?void 0:a.y;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.x||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.x||0),d)),K(d)?c.createElement("rect",{x:0,y:o<s?o:o-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function Za(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.x,s=(a=i[i.length-1])===null||a===void 0?void 0:a.x;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.y||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.y||0),d)),K(d)?c.createElement("rect",{x:o<s?o:o-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function Ja(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:i}=t;return a==="vertical"?c.createElement(qa,{alpha:e,points:r,baseLine:n,strokeWidth:i}):c.createElement(Za,{alpha:e,points:r,baseLine:n,strokeWidth:i})}function Qa(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i}=t,{points:l,baseLine:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,onAnimationStart:v,onAnimationEnd:f}=r,m=c.useMemo(()=>({points:l,baseLine:o}),[l,o]),x=lt(m,"recharts-area-"),P=Xt(),[h,y]=c.useState(!1),g=!h,b=c.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),I=c.useCallback(()=>{typeof v=="function"&&v(),y(!0)},[v]);if(P==null)return null;var E=n.current,k=i.current;return c.createElement(Ua,{showLabels:g,points:l},r.children,c.createElement(st,{animationId:x,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:b,onAnimationStart:I,key:x},j=>{if(E){var S=E.length/l.length,D=j===1?l:l.map((O,L)=>{var _=Math.floor(L*S);if(E[_]){var N=E[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),w;return K(o)?w=M(k,o,j):U(o)||Yt(o)?w=M(k,0,j):w=o.map((O,L)=>{var _=Math.floor(L*S);if(Array.isArray(k)&&k[_]){var N=k[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),j>0&&(n.current=D,i.current=w),c.createElement(Ve,{points:D,baseLine:w,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,i.current=o),c.createElement(R,null,s&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(a)},c.createElement(Ja,{alpha:j,points:l,baseLine:o,layout:P,strokeWidth:r.strokeWidth}))),c.createElement(R,{clipPath:"url(#animationClipPath-".concat(a,")")},c.createElement(Ve,{points:l,baseLine:o,needClip:e,clipPathId:a,props:r})))}),c.createElement(ct,{label:r.label}))}function er(t){var{needClip:e,clipPathId:a,props:r}=t,n=c.useRef(null),i=c.useRef();return c.createElement(Qa,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i})}class tr extends c.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:i,left:l,needClip:o,xAxisId:s,yAxisId:u,width:d,height:p,id:v,baseLine:f,zIndex:m}=this.props;if(e)return null;var x=re("recharts-area",n),P=v,{r:h,strokeWidth:y}=Pt(a),g=ge(a),b=h*2+y,I=o?"url(#clipPath-".concat(g?"":"dots-").concat(P,")"):void 0;return c.createElement(oe,{zIndex:m},c.createElement(R,{className:x},o&&c.createElement("defs",null,c.createElement(ot,{clipPathId:P,xAxisId:s,yAxisId:u}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(P)},c.createElement("rect",{x:l-b/2,y:i-b/2,width:d+b,height:p+b}))),c.createElement(er,{needClip:o,clipPathId:P,props:this.props})),c.createElement(ye,{points:r,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(f)&&c.createElement(ye,{points:f,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var ar={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ie.area};function rr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,connectNulls:l,dot:o,fill:s,fillOpacity:u,hide:d,isAnimationActive:p,legendType:v,stroke:f,xAxisId:m,yAxisId:x}=t,P=Dt(t,Fa),h=it(),y=Gt(),{needClip:g}=rt(m,x),b=ce(),{points:I,isRange:E,baseLine:k}=(e=be(L=>Ra(L,t.id,b)))!==null&&e!==void 0?e:{},j=nt();if(h!=="horizontal"&&h!=="vertical"||j==null||y!=="AreaChart"&&y!=="ComposedChart")return null;var{height:S,width:D,x:w,y:O}=j;return!I||!I.length?null:c.createElement(tr,W({},P,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,baseLine:k,connectNulls:l,dot:o,fill:s,fillOpacity:u,height:S,hide:d,layout:h,isAnimationActive:p,isRange:E,legendType:v,needClip:g,points:I,stroke:f,width:D,left:w,top:O,xAxisId:m,yAxisId:x}))}var nr=(t,e,a,r,n)=>{var i=a??e;if(K(i))return i;var l=t==="horizontal"?n:r,o=l.scale.domain();if(l.type==="number"){var s=Math.max(o[0],o[1]),u=Math.min(o[0],o[1]);return i==="dataMin"?u:i==="dataMax"||s<0?s:Math.max(Math.min(o[0],o[1]),0)}return i==="dataMin"?o[0]:i==="dataMax"?o[1]:o[0]};function ir(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:i,chartBaseValue:l,xAxis:o,yAxis:s,displayedData:u,dataStartIndex:d,xAxisTicks:p,yAxisTicks:v,bandSize:f}=t,m=n&&n.length,x=nr(i,l,a,o,s),P=i==="horizontal",h=!1,y=u.map((b,I)=>{var E,k,j,S;if(m)S=n[d+I];else{var D=Z(b,r);Array.isArray(D)?(S=D,h=!0):S=[x,D]}var w=(E=(k=S)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,O=w==null||m&&!e&&Z(b,r)==null;if(P){var L;return{x:J({axis:o,ticks:p,bandSize:f,entry:b,index:I}),y:O?null:(L=s.scale.map(w))!==null&&L!==void 0?L:null,value:S,payload:b}}return{x:O?null:(j=o.scale.map(w))!==null&&j!==void 0?j:null,y:J({axis:s,ticks:v,bandSize:f,entry:b,index:I}),value:S,payload:b}}),g;return m||h?g=y.map(b=>{var I,E=Array.isArray(b.value)?b.value[0]:null;if(P){var k;return{x:b.x,y:E!=null&&b.y!=null&&(k=s.scale.map(E))!==null&&k!==void 0?k:null,payload:b.payload}}return{x:E!=null&&(I=o.scale.map(E))!==null&&I!==void 0?I:null,y:b.y,payload:b.payload}}):g=P?s.scale.map(x):o.scale.map(x),{points:y,baseLine:g??0,isRange:h}}function or(t){var e=Ae(t,ar),a=ce();return c.createElement(Je,{id:e.id,type:"area"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:Xa(e)}),c.createElement(Ya,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Vt(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),c.createElement(rr,W({},e,{id:r}))))}var Le=c.memo(or,Ze);Le.displayName="Area";var lr=["axis"],sr=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e})),cr=["axis"],Lt=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e}));const ae={count:{label:"OK",color:"var(--ok)"},errors:{label:"5xx",color:"var(--danger)"},client_errors:{label:"4xx",color:"var(--warning)"},p50:{label:"p50",color:"var(--primary)"},p95:{label:"p95",color:"var(--primary)"},p99:{label:"p99",color:"var(--primary)"},avg:{label:"avg",color:"var(--warning)"}};function ur(t){return t.length<2?0:new Date(t[1].t).getTime()-new Date(t[0].t).getTime()}const Ge=1440*60*1e3;function Ne(t){const e=ur(t),a=t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0;return e>=Ge||a>2*Ge?r=>new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}):r=>new Date(r).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Y(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const V={fontSize:10,fontFamily:"var(--font-mono)"};function Xe(t,e,a){return n=>{const i=$.c(8),{cx:l,cy:o,index:s}=n;if(l==null||o==null||s==null){let v;return i[0]!==s?(v=A.jsx("g",{},s),i[0]=s,i[1]=v):v=i[1],v}const u=t[s-1]?.[e]??null,d=t[s+1]?.[e]??null;if(u!=null||d!=null){let v;return i[2]!==s?(v=A.jsx("g",{},s),i[2]=s,i[3]=v):v=i[3],v}let p;return i[4]!==l||i[5]!==o||i[6]!==s?(p=A.jsx("circle",{cx:l,cy:o,r:2,fill:a},s),i[4]=l,i[5]=o,i[6]=s,i[7]=p):p=i[7],p}}function _e(t=[]){return t.map(e=>A.jsx(Ht,{x:new Date(e.at).toISOString(),stroke:"var(--primary)",strokeDasharray:"3 3",label:{value:e.ref,position:"insideTopRight",fontSize:9,fill:"var(--primary)",fontFamily:"var(--font-mono)"}},e.deploy))}function Ce(){const t=$.c(2),{setHoveredKey:e}=Ye();let a;return t[0]!==e?(a={onMouseMove:r=>{typeof r?.activeLabel=="string"&&e(r.activeLabel)},onMouseLeave:()=>e(null)},t[0]=e,t[1]=a):a=t[1],a}function Me(t){const e=$.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=Y(a[0].t),e[0]=a[0].t,e[1]=r):r=e[1];let n;e[2]!==r?(n=A.jsx("span",{children:r}),e[2]=r,e[3]=n):n=e[3];const i=a[a.length-1];let l;e[4]!==i.t?(l=Y(i.t),e[4]=i.t,e[5]=l):l=e[5];let o;e[6]!==l?(o=A.jsx("span",{children:l}),e[6]=l,e[7]=o):o=e[7];let s;return e[8]!==n||e[9]!==o?(s=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,o]}),e[8]=n,e[9]=o,e[10]=s):s=e[10],s}function Sr(t){const e=$.c(31),{data:a,deploys:r,label:n,className:i}=t,l=n===void 0?"Requests":n,o=i===void 0?"h-40":i;let s;e[0]!==l?(s={...ae,count:{...ae.count,label:l}},e[0]=l,e[1]=s):s=e[1];const u=s,d=Ce();let p;e[2]!==a?(p=Ne(a),e[2]=a,e[3]=p):p=e[3];const v=p,f=`${o} w-full`;let m;e[4]!==a?(m=a.map(vr),e[4]=a,e[5]=m):m=e[5];const x=d.onMouseMove,P=d.onMouseLeave;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[6]=h):h=e[6];let y;e[7]!==v?(y=A.jsx(je,{dataKey:"t",tickFormatter:v,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[7]=v,e[8]=y):y=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:pr}),e[9]=g):g=e[9];let b,I,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=A.jsx(Se,{content:A.jsx(we,{labelFormatter:dr})}),I=A.jsx(ve,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),E=A.jsx(ve,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[10]=b,e[11]=I,e[12]=E):(b=e[10],I=e[11],E=e[12]);let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=A.jsx(ve,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[13]=k):k=e[13];let j;e[14]!==r?(j=_e(r),e[14]=r,e[15]=j):j=e[15];let S;e[16]!==d.onMouseLeave||e[17]!==d.onMouseMove||e[18]!==y||e[19]!==j||e[20]!==m?(S=A.jsxs(Ut,{data:m,barCategoryGap:2,onMouseMove:x,onMouseLeave:P,children:[h,y,g,b,I,E,k,j]}),e[16]=d.onMouseLeave,e[17]=d.onMouseMove,e[18]=y,e[19]=j,e[20]=m,e[21]=S):S=e[21];let D;e[22]!==u||e[23]!==S||e[24]!==f?(D=A.jsx(de,{config:u,className:f,children:S}),e[22]=u,e[23]=S,e[24]=f,e[25]=D):D=e[25];let w;e[26]!==a?(w=A.jsx(Me,{data:a}),e[26]=a,e[27]=w):w=e[27];let O;return e[28]!==D||e[29]!==w?(O=A.jsxs("div",{children:[D,w]}),e[28]=D,e[29]=w,e[30]=O):O=e[30],O}function dr(t){return Y(String(t))}function pr(t){return Nt(Number(t))}function vr(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const fr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function wr(t){const e=$.c(27),{data:a,deploys:r,className:n}=t,i=n===void 0?"h-40":n,l=Ce();let o;e[0]!==a?(o=Ne(a),e[0]=a,e[1]=o):o=e[1];const s=o,u=`${i} w-full`;let d;e[2]!==a?(d=a.map(xr),e[2]=a,e[3]=d):d=e[3];const p=l.onMouseMove,v=l.onMouseLeave;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[4]=f):f=e[4];let m;e[5]!==s?(m=A.jsx(je,{dataKey:"t",tickFormatter:s,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[5]=s,e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:yr}),e[7]=x):x=e[7];let P,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Se,{content:A.jsx(we,{labelFormatter:hr})}),h=["ok","errored","crashed"],e[8]=P,e[9]=h):(P=e[8],h=e[9]);let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=h.map(mr),e[10]=y):y=e[10];let g;e[11]!==r?(g=_e(r),e[11]=r,e[12]=g):g=e[12];let b;e[13]!==l.onMouseLeave||e[14]!==l.onMouseMove||e[15]!==g||e[16]!==d||e[17]!==m?(b=A.jsxs(Lt,{data:d,onMouseMove:p,onMouseLeave:v,children:[f,m,x,P,y,g]}),e[13]=l.onMouseLeave,e[14]=l.onMouseMove,e[15]=g,e[16]=d,e[17]=m,e[18]=b):b=e[18];let I;e[19]!==b||e[20]!==u?(I=A.jsx(de,{config:fr,className:u,children:b}),e[19]=b,e[20]=u,e[21]=I):I=e[21];let E;e[22]!==a?(E=A.jsx(Me,{data:a}),e[22]=a,e[23]=E):E=e[23];let k;return e[24]!==I||e[25]!==E?(k=A.jsxs("div",{children:[I,E]}),e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function mr(t){return A.jsx(Le,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function hr(t){return Y(String(t))}function yr(t){return Nt(Number(t))}function xr(t){return{...t,t:new Date(t.t).toISOString()}}function Dr(t){const e=$.c(58),{data:a,deploys:r,percentile:n,className:i}=t,l=n===void 0?"p95":n,o=i===void 0?"h-40":i,s=Ce();let u;e[0]!==a?(u=Ne(a),e[0]=a,e[1]=u):u=e[1];const d=u;let p,v,f,m,x,P,h,y,g,b,I,E,k,j,S,D;if(e[2]!==o||e[3]!==a||e[4]!==s.onMouseLeave||e[5]!==s.onMouseMove||e[6]!==l||e[7]!==d){const G=a.map(Ar);f=de,g=ae,b=`${o} w-full`,v=sr,j=G,S=s.onMouseMove,D=s.onMouseLeave,e[24]===Symbol.for("react.memo_cache_sentinel")?(m=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[24]=m):m=e[24],e[25]!==d?(x=A.jsx(je,{dataKey:"t",tickFormatter:d,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[25]=d,e[26]=x):x=e[26],e[27]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oe,{width:44,tickLine:!1,axisLine:!1,tick:V,tickFormatter:Pr}),e[27]=P):P=e[27],e[28]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(Se,{content:A.jsx(we,{labelFormatter:br,formatter:gr})}),e[28]=h):h=e[28],y=A.jsx(xe,{dataKey:l,stroke:`var(--color-${l})`,dot:Xe(G,l,`var(--color-${l})`),strokeWidth:1.75,isAnimationActive:!1}),p=xe,I="avg",E="var(--color-avg)",k=Xe(G,"avg","var(--color-avg)"),e[2]=o,e[3]=a,e[4]=s.onMouseLeave,e[5]=s.onMouseMove,e[6]=l,e[7]=d,e[8]=p,e[9]=v,e[10]=f,e[11]=m,e[12]=x,e[13]=P,e[14]=h,e[15]=y,e[16]=g,e[17]=b,e[18]=I,e[19]=E,e[20]=k,e[21]=j,e[22]=S,e[23]=D}else p=e[8],v=e[9],f=e[10],m=e[11],x=e[12],P=e[13],h=e[14],y=e[15],g=e[16],b=e[17],I=e[18],E=e[19],k=e[20],j=e[21],S=e[22],D=e[23];let w;e[29]!==p||e[30]!==I||e[31]!==E||e[32]!==k?(w=A.jsx(p,{dataKey:I,stroke:E,dot:k,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[29]=p,e[30]=I,e[31]=E,e[32]=k,e[33]=w):w=e[33];let O;e[34]!==r?(O=_e(r),e[34]=r,e[35]=O):O=e[35];let L;e[36]!==v||e[37]!==m||e[38]!==x||e[39]!==P||e[40]!==h||e[41]!==y||e[42]!==w||e[43]!==O||e[44]!==j||e[45]!==S||e[46]!==D?(L=A.jsxs(v,{data:j,onMouseMove:S,onMouseLeave:D,children:[m,x,P,h,y,w,O]}),e[36]=v,e[37]=m,e[38]=x,e[39]=P,e[40]=h,e[41]=y,e[42]=w,e[43]=O,e[44]=j,e[45]=S,e[46]=D,e[47]=L):L=e[47];let _;e[48]!==f||e[49]!==g||e[50]!==b||e[51]!==L?(_=A.jsx(f,{config:g,className:b,children:L}),e[48]=f,e[49]=g,e[50]=b,e[51]=L,e[52]=_):_=e[52];let N;e[53]!==a?(N=A.jsx(Me,{data:a}),e[53]=a,e[54]=N):N=e[54];let z;return e[55]!==_||e[56]!==N?(z=A.jsxs("div",{children:[_,N]}),e[55]=_,e[56]=N,e[57]=z):z=e[57],z}function gr(t,e){return[t==null?"—":ft(Number(t)),String(e)]}function br(t){return Y(String(t))}function Pr(t){return ft(Number(t),0)}function Ar(t){return{...t,t:new Date(t.t).toISOString()}}function Lr(t){const e=$.c(22),{data:a,className:r,hoverKey:n}=t,i=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:o}=Ye(),s=n!=null&&l===n;let u;e[0]!==a?(u=a.map(Ir),e[0]=a,e[1]=u):u=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={top:1,right:1,bottom:1,left:1},e[2]=d):d=e[2];let p;e[3]!==n||e[4]!==o?(p=n?()=>o(n):void 0,e[3]=n,e[4]=o,e[5]=p):p=e[5];let v;e[6]!==n||e[7]!==o?(v=n?()=>o(null):void 0,e[6]=n,e[7]=o,e[8]=v):v=e[8];const f=s?"var(--primary)":"var(--muted-foreground)",m=s?"var(--primary)":"var(--muted-foreground)",x=s?.35:.15,P=s?2:1.25;let h;e[9]!==f||e[10]!==m||e[11]!==x||e[12]!==P?(h=A.jsx(Le,{dataKey:"v",stroke:f,fill:m,fillOpacity:x,strokeWidth:P,isAnimationActive:!1}),e[9]=f,e[10]=m,e[11]=x,e[12]=P,e[13]=h):h=e[13];let y;e[14]!==h||e[15]!==u||e[16]!==p||e[17]!==v?(y=A.jsx(Lt,{data:u,margin:d,onMouseEnter:p,onMouseLeave:v,children:h}),e[14]=h,e[15]=u,e[16]=p,e[17]=v,e[18]=y):y=e[18];let g;return e[19]!==i||e[20]!==y?(g=A.jsx(de,{config:ae,className:i,children:y}),e[19]=i,e[20]=y,e[21]=g):g=e[21],g}function Ir(t){return{v:t}}function Nt(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{Le as A,Dr as L,Lr as S,Sr as T,Lt as a,wr as b};
|