railwatch 0.1.3 → 0.2.0.pre1
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 +231 -0
- data/README.md +10 -0
- data/app/channels/railwatch/environment_channel.rb +28 -0
- data/app/controllers/concerns/railwatch/telemetry_identity.rb +25 -0
- data/app/controllers/railwatch/alerts_controller.rb +48 -0
- data/app/controllers/railwatch/anomaly_rules_controller.rb +31 -0
- data/app/controllers/railwatch/attachments_controller.rb +22 -0
- data/app/controllers/railwatch/beacon_controller.rb +67 -7
- data/app/controllers/railwatch/broadcasts_controller.rb +15 -0
- data/app/controllers/railwatch/cache_events_controller.rb +30 -0
- data/app/controllers/railwatch/commands_controller.rb +16 -0
- data/app/controllers/railwatch/comments_controller.rb +11 -0
- data/app/controllers/railwatch/dashboard_controller.rb +69 -0
- data/app/controllers/railwatch/deploys_controller.rb +34 -0
- data/app/controllers/railwatch/deprecations_controller.rb +54 -0
- data/app/controllers/railwatch/environment_scoped.rb +99 -0
- data/app/controllers/railwatch/exceptions_controller.rb +53 -0
- data/app/controllers/railwatch/executions_controller.rb +13 -0
- data/app/controllers/railwatch/issues_controller.rb +258 -0
- data/app/controllers/railwatch/jobs_controller.rb +63 -0
- data/app/controllers/railwatch/llm_calls_controller.rb +124 -0
- data/app/controllers/railwatch/logs_controller.rb +40 -0
- data/app/controllers/railwatch/mails_controller.rb +19 -0
- data/app/controllers/railwatch/notifications_controller.rb +11 -0
- data/app/controllers/railwatch/outgoing_requests_controller.rb +19 -0
- data/app/controllers/railwatch/overview_controller.rb +38 -0
- data/app/controllers/railwatch/people_controller.rb +25 -0
- data/app/controllers/railwatch/processes_controller.rb +33 -0
- data/app/controllers/railwatch/profiles_controller.rb +50 -0
- data/app/controllers/railwatch/queries_controller.rb +59 -0
- data/app/controllers/railwatch/releases_controller.rb +75 -0
- data/app/controllers/railwatch/requests_controller.rb +55 -0
- data/app/controllers/railwatch/saved_views_controller.rb +53 -0
- data/app/controllers/railwatch/scheduled_tasks_controller.rb +45 -0
- data/app/controllers/railwatch/spans_controller.rb +47 -0
- data/app/controllers/railwatch/storage_ops_controller.rb +15 -0
- data/app/controllers/railwatch/tenants_controller.rb +44 -0
- data/app/controllers/railwatch/thresholds_controller.rb +40 -0
- data/app/controllers/railwatch/traces_controller.rb +72 -0
- data/app/controllers/railwatch/transactions_controller.rb +21 -0
- data/app/controllers/railwatch/view_renders_controller.rb +28 -0
- data/app/controllers/railwatch/visits_controller.rb +53 -0
- data/app/helpers/railwatch/assets_helper.rb +52 -0
- data/app/jobs/railwatch/anomaly_scan_job.rb +11 -0
- data/app/jobs/railwatch/application_job.rb +7 -0
- data/app/jobs/railwatch/auto_resolve_issues_job.rb +19 -0
- data/app/jobs/railwatch/check_scheduled_tasks_job.rb +113 -0
- data/app/jobs/railwatch/detect_anomalies_job.rb +171 -0
- data/app/jobs/railwatch/detect_performance_issues_job.rb +85 -0
- data/app/jobs/railwatch/group_exceptions_job.rb +91 -0
- data/app/jobs/railwatch/optimize_telemetry_job.rb +23 -0
- data/app/jobs/railwatch/performance_scan_job.rb +11 -0
- data/app/jobs/railwatch/prune_telemetry_job.rb +110 -0
- data/app/jobs/railwatch/release_health_rollup_job.rb +64 -0
- data/app/jobs/railwatch/rollup_catchup_job.rb +21 -0
- data/app/jobs/railwatch/rollup_job.rb +130 -0
- data/app/jobs/railwatch/scheduled_task_scan_job.rb +11 -0
- data/app/models/concerns/railwatch/detection_snapshotting.rb +20 -0
- data/app/models/railwatch/alert.rb +229 -0
- data/app/models/railwatch/alert_rule.rb +121 -0
- data/app/models/railwatch/anomaly_rule.rb +33 -0
- data/app/models/railwatch/application.rb +44 -0
- data/app/models/railwatch/application_record.rb +33 -0
- data/app/models/railwatch/comment.rb +36 -0
- data/app/models/railwatch/deploy.rb +67 -0
- data/app/models/railwatch/environment.rb +54 -0
- data/app/models/railwatch/execution_presenter.rb +185 -0
- data/app/models/railwatch/filter_query.rb +143 -0
- data/app/models/railwatch/followup_receipt.rb +27 -0
- data/app/models/railwatch/ingest/batch.rb +305 -0
- data/app/models/railwatch/ingest/mapper.rb +575 -0
- data/app/models/railwatch/ingest/payload.rb +96 -0
- data/app/models/railwatch/ingest/rollup_absorber.rb +170 -0
- data/app/models/railwatch/ingest/writer.rb +137 -0
- data/app/models/railwatch/issue.rb +277 -0
- data/app/models/railwatch/issue_activity.rb +23 -0
- data/app/models/railwatch/issue_detection_presenter.rb +309 -0
- data/app/models/railwatch/issue_detection_snapshot.rb +77 -0
- data/app/models/railwatch/maintenance_task.rb +53 -0
- data/app/models/railwatch/saved_view.rb +63 -0
- data/app/models/railwatch/telemetry/aggregations.rb +116 -0
- data/app/models/railwatch/telemetry/attachment.rb +31 -0
- data/app/models/railwatch/telemetry/bounded_gzip.rb +101 -0
- data/app/models/railwatch/telemetry/broadcast.rb +13 -0
- data/app/models/railwatch/telemetry/cache_event.rb +16 -0
- data/app/models/railwatch/telemetry/child.rb +53 -0
- data/app/models/railwatch/telemetry/cursor_page.rb +99 -0
- data/app/models/railwatch/telemetry/deprecation.rb +13 -0
- data/app/models/railwatch/telemetry/enqueued_job.rb +13 -0
- data/app/models/railwatch/telemetry/exception.rb +21 -0
- data/app/models/railwatch/telemetry/execution.rb +71 -0
- data/app/models/railwatch/telemetry/health_sample.rb +72 -0
- data/app/models/railwatch/telemetry/ingest_batch.rb +31 -0
- data/app/models/railwatch/telemetry/llm_call.rb +37 -0
- data/app/models/railwatch/telemetry/log.rb +85 -0
- data/app/models/railwatch/telemetry/mail.rb +13 -0
- data/app/models/railwatch/telemetry/n_plus_one.rb +92 -0
- data/app/models/railwatch/telemetry/notification.rb +13 -0
- data/app/models/railwatch/telemetry/outgoing_request.rb +13 -0
- data/app/models/railwatch/telemetry/person.rb +50 -0
- data/app/models/railwatch/telemetry/process.rb +10 -0
- data/app/models/railwatch/telemetry/profile.rb +37 -0
- data/app/models/railwatch/telemetry/query.rb +50 -0
- data/app/models/railwatch/telemetry/query_shape.rb +45 -0
- data/app/models/railwatch/telemetry/release_health.rb +63 -0
- data/app/models/railwatch/telemetry/rollup.rb +78 -0
- data/app/models/railwatch/telemetry/session.rb +24 -0
- data/app/models/railwatch/telemetry/span.rb +19 -0
- data/app/models/railwatch/telemetry/storage_op.rb +13 -0
- data/app/models/railwatch/telemetry/tenant.rb +221 -0
- data/app/models/railwatch/telemetry/transaction.rb +13 -0
- data/app/models/railwatch/telemetry/view_render.rb +13 -0
- data/app/models/railwatch/telemetry/visit.rb +24 -0
- data/app/models/railwatch/telemetry_record.rb +57 -0
- data/app/models/railwatch/threshold.rb +29 -0
- data/app/models/railwatch/user.rb +47 -0
- data/app/models/railwatch/viewer.rb +13 -0
- data/app/views/layouts/railwatch/dashboard.html.erb +25 -0
- data/config/routes.rb +59 -0
- data/db/railwatch_migrate/20260916000000_create_railwatch_tables.rb +151 -0
- data/db/railwatch_migrate/20260917000000_create_railwatch_maintenance_tasks.rb +18 -0
- data/db/railwatch_migrate/20260917120000_create_railwatch_followup_receipts.rb +20 -0
- data/db/railwatch_telemetry_migrate/20260903000001_create_telemetry.rb +481 -0
- data/db/railwatch_telemetry_migrate/20260903000002_rename_tenant_to_app_tenant.rb +14 -0
- data/db/railwatch_telemetry_migrate/20260903000003_add_statement_count_to_transactions.rb +9 -0
- data/db/railwatch_telemetry_migrate/20260903000004_add_role_and_channel.rb +10 -0
- data/db/railwatch_telemetry_migrate/20260903000005_add_locals_to_exceptions.rb +9 -0
- data/db/railwatch_telemetry_migrate/20260903000006_add_spans_health_vitals_and_fts.rb +82 -0
- data/db/railwatch_telemetry_migrate/20260903000007_rename_span_attributes_to_payload.rb +10 -0
- data/db/railwatch_telemetry_migrate/20260903000008_add_profiles_and_attachments.rb +60 -0
- data/db/railwatch_telemetry_migrate/20260903000009_add_truncated_to_attachments.rb +9 -0
- data/db/railwatch_telemetry_migrate/20260903000010_create_sessions_and_release_health.rb +51 -0
- data/db/railwatch_telemetry_migrate/20260903000011_add_fingerprint_to_exceptions.rb +11 -0
- data/db/railwatch_telemetry_migrate/20260904000012_add_failed_to_broadcasts.rb +10 -0
- data/db/railwatch_telemetry_migrate/20260904010000_add_filter_cursor_indexes.rb +37 -0
- data/db/railwatch_telemetry_migrate/20260904020000_add_n_plus_ones_execution_id_index.rb +11 -0
- data/db/railwatch_telemetry_migrate/20260904120000_create_query_shapes.rb +15 -0
- data/db/railwatch_telemetry_migrate/20260906120000_add_backpressure_factor_to_ingest_batches.rb +9 -0
- data/db/railwatch_telemetry_migrate/20260907000000_rename_lantern_version_on_processes.rb +10 -0
- data/db/railwatch_telemetry_migrate/20260913000000_rename_nightrail_version_on_processes.rb +9 -0
- data/db/railwatch_telemetry_migrate/20260914000000_drop_orphan_durable_ingest_tables.rb +18 -0
- data/db/railwatch_telemetry_migrate/20260914010000_drop_orphan_durable_ingest_columns.rb +25 -0
- data/db/railwatch_telemetry_migrate/20260915000000_create_llm_calls.rb +55 -0
- data/db/railwatch_telemetry_migrate/20260915120000_add_detail_to_llm_calls.rb +21 -0
- data/db/railwatch_telemetry_migrate/20260915200000_add_explained_index_to_queries.rb +16 -0
- data/db/railwatch_telemetry_migrate/20260915210000_add_slowest_index_to_queries.rb +18 -0
- data/db/railwatch_telemetry_migrate/20260917010000_add_batch_ledger_to_ingest_batches.rb +16 -0
- data/docs/configuration.md +26 -0
- data/docs/embedded.md +342 -0
- data/docs/getting-started.md +5 -0
- data/docs/records.md +16 -1
- data/lib/generators/railwatch/install/install_generator.rb +222 -1
- data/lib/generators/railwatch/install/templates/{initializer.rb → initializer.rb.tt} +39 -0
- data/lib/generators/railwatch/install/templates/post-deploy +8 -0
- data/lib/puma/plugin/railwatch.rb +170 -0
- data/lib/railwatch/authentication.rb +83 -0
- data/lib/railwatch/configuration.rb +134 -3
- data/lib/railwatch/dashboard_assets.rb +45 -0
- data/lib/railwatch/embedded.rb +51 -0
- data/lib/railwatch/engine.rb +89 -1
- data/lib/railwatch/ingest_request_body_limit.rb +10 -0
- data/lib/railwatch/json_compat.rb +60 -0
- data/lib/railwatch/maintenance.rb +183 -0
- data/lib/railwatch/patches/runner_command.rb +21 -1
- data/lib/railwatch/record.rb +33 -8
- data/lib/railwatch/reporter.rb +16 -0
- data/lib/railwatch/subscribers/llm.rb +149 -4
- data/lib/railwatch/subscribers/process_info.rb +2 -1
- data/lib/railwatch/transport/local.rb +78 -0
- data/lib/railwatch/transport/socket.rb +183 -0
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch/writer.rb +370 -0
- data/lib/railwatch.rb +38 -1
- data/lib/tasks/railwatch_tasks.rake +128 -0
- data/public/railwatch/assets/CommitMono-Bold-D6h61ieg.woff2 +0 -0
- data/public/railwatch/assets/CommitMono-Regular-zr8w7Obm.woff2 +0 -0
- data/public/railwatch/assets/Roboto-Black-auA4GeOK.woff2 +0 -0
- data/public/railwatch/assets/Roboto-Bold-CJLnO8j1.woff2 +0 -0
- data/public/railwatch/assets/Roboto-Medium-Cm2bwKpj.woff2 +0 -0
- data/public/railwatch/assets/Roboto-Regular-Chaq1-PV.woff2 +0 -0
- data/public/railwatch/assets/app-layout-yh-sPWgK.js +1 -0
- data/public/railwatch/assets/app-wordmark-nbjkzxwQ.js +1 -0
- data/public/railwatch/assets/appearance-CDuRvQTB.js +1 -0
- data/public/railwatch/assets/application-C_kpBdnf.css +1 -0
- data/public/railwatch/assets/arrow-up-DVtOGdVA.js +1 -0
- data/public/railwatch/assets/auth-layout-TCwPpS1K.js +1 -0
- data/public/railwatch/assets/badge-Daw4Hvr8.js +1 -0
- data/public/railwatch/assets/braces-DhFbHPsz.js +1 -0
- data/public/railwatch/assets/card-BX_3HXcJ.js +1 -0
- data/public/railwatch/assets/chart-B14-N9g7.js +39 -0
- data/public/railwatch/assets/chart-hover-Vy52H4uD.js +1 -0
- data/public/railwatch/assets/chart-panel-Cb4S_ej_.js +1 -0
- data/public/railwatch/assets/checkbox-D3aRSsBj.js +1 -0
- data/public/railwatch/assets/code-KvW8k7Jr.js +1 -0
- data/public/railwatch/assets/copy-DaQMJWoT.js +1 -0
- data/public/railwatch/assets/copy-block-BKFGd11J.js +1 -0
- data/public/railwatch/assets/copy-id-Djks1fXB.js +1 -0
- data/public/railwatch/assets/cursor-load-more-BXV0f1D_.js +1 -0
- data/public/railwatch/assets/data-table-iv1bdF6u.js +1 -0
- data/public/railwatch/assets/edit-BZc_Iawe.js +1 -0
- data/public/railwatch/assets/edit-DMKUF8Zi.js +8 -0
- data/public/railwatch/assets/edit-__9yJlO3.js +1 -0
- data/public/railwatch/assets/empty-state-6j_0AaQQ.js +1 -0
- data/public/railwatch/assets/env-layout-DrT8rO6P.js +1 -0
- data/public/railwatch/assets/execution-path-CzgBUi5e.js +1 -0
- data/public/railwatch/assets/filter-bar-9SU5NrzX.js +1 -0
- data/public/railwatch/assets/flamegraph-qcekju8V.js +2 -0
- data/public/railwatch/assets/format-B9SDkrWj.js +1 -0
- data/public/railwatch/assets/frames-Cyu7KMxZ.js +1 -0
- data/public/railwatch/assets/google-sign-in-button-DsTSfmzY.js +1 -0
- data/public/railwatch/assets/index-1ol1-QWI.js +1 -0
- data/public/railwatch/assets/index-5jI4aFzC.js +1 -0
- data/public/railwatch/assets/index-9KTrVnrc.js +1 -0
- data/public/railwatch/assets/index-B0-8lcTp.js +1 -0
- data/public/railwatch/assets/index-B7jjfNfO.js +1 -0
- data/public/railwatch/assets/index-BBchRy0M.js +1 -0
- data/public/railwatch/assets/index-BRiq3SNR.js +1 -0
- data/public/railwatch/assets/index-BgKj9xhr.js +1 -0
- data/public/railwatch/assets/index-BkTZqqOu.js +1 -0
- data/public/railwatch/assets/index-BprKx8QO.js +1 -0
- data/public/railwatch/assets/index-C3jzvPs3.js +1 -0
- data/public/railwatch/assets/index-Cbs6gGyQ.js +1 -0
- data/public/railwatch/assets/index-CdRZ6AWF.js +1 -0
- data/public/railwatch/assets/index-CeYKnapu.js +1 -0
- data/public/railwatch/assets/index-Cmlwy1-V.js +1 -0
- data/public/railwatch/assets/index-Cwx6058d.js +1 -0
- data/public/railwatch/assets/index-D4CSdbHv.js +1 -0
- data/public/railwatch/assets/index-DEFMSkdG.js +1 -0
- data/public/railwatch/assets/index-DFiHEBSh.js +1 -0
- data/public/railwatch/assets/index-DL4vWdWJ.js +1 -0
- data/public/railwatch/assets/index-DU9F5b5d.js +1 -0
- data/public/railwatch/assets/index-DaXgPcGL.js +1 -0
- data/public/railwatch/assets/index-DbtaU-EE.js +1 -0
- data/public/railwatch/assets/index-DeOe83F4.js +1 -0
- data/public/railwatch/assets/index-DiucHN4B.js +1 -0
- data/public/railwatch/assets/index-DlnR_l9o.js +1 -0
- data/public/railwatch/assets/index-DlumCsWY.js +2 -0
- data/public/railwatch/assets/index-DmRd7aIG.js +1 -0
- data/public/railwatch/assets/index-DxSh2UpM.js +1 -0
- data/public/railwatch/assets/index-MIMGuFNt.js +1 -0
- data/public/railwatch/assets/index-OqI59zPb.js +1 -0
- data/public/railwatch/assets/index-P4rC7IlX.js +1 -0
- data/public/railwatch/assets/index-gpPOcFWq.js +1 -0
- data/public/railwatch/assets/index-oVkururr.js +1 -0
- data/public/railwatch/assets/index-p9puqVge.js +1 -0
- data/public/railwatch/assets/inertia-TViv6kNv.js +97 -0
- data/public/railwatch/assets/input-error-LxImUkxv.js +1 -0
- data/public/railwatch/assets/json-viewer-Ar4cjPDW.js +1 -0
- data/public/railwatch/assets/klass-CJ-J4INB.js +1 -0
- data/public/railwatch/assets/label-COUKWqE_.js +1 -0
- data/public/railwatch/assets/layout-DNSLAkw_.js +1 -0
- data/public/railwatch/assets/live-dot-ChfUtY3p.js +41 -0
- data/public/railwatch/assets/nav-CNnDqPlm.js +1 -0
- data/public/railwatch/assets/new-84S8ZJq9.js +1 -0
- data/public/railwatch/assets/new-Be55nmt9.js +1 -0
- data/public/railwatch/assets/new-Bi_xQiIb.js +1 -0
- data/public/railwatch/assets/new-BvCT8TMg.js +1 -0
- data/public/railwatch/assets/new-D05SajFR.js +1 -0
- data/public/railwatch/assets/new-D4uewYC8.js +1 -0
- data/public/railwatch/assets/onboarding-CYZi5Cqc.js +1 -0
- data/public/railwatch/assets/origin-identity-6q1-CBts.js +1 -0
- data/public/railwatch/assets/percentile-picker-gFZCXtdb.js +1 -0
- data/public/railwatch/assets/relative-time-IOOgl5n2.js +1 -0
- data/public/railwatch/assets/release-health-DC8oc7uw.js +1 -0
- data/public/railwatch/assets/route-Dv6LAWvT.js +1 -0
- data/public/railwatch/assets/segmented-h1VdDTqE.js +1 -0
- data/public/railwatch/assets/select-_AJsUa7X.js +1 -0
- data/public/railwatch/assets/separator-BwwTYtCF.js +1 -0
- data/public/railwatch/assets/series-chart-DaFPefku.js +1 -0
- data/public/railwatch/assets/show-B7NCgkEo.js +1 -0
- data/public/railwatch/assets/show-BKqyKjBK.js +1 -0
- data/public/railwatch/assets/show-BM6X2Mpo.js +1 -0
- data/public/railwatch/assets/show-BNw4tN5q.js +1 -0
- data/public/railwatch/assets/show-BO3bnG5h.js +1 -0
- data/public/railwatch/assets/show-BhrAVAEA.js +1 -0
- data/public/railwatch/assets/show-C4Ltf5i9.js +2 -0
- data/public/railwatch/assets/show-C8sHalnw.js +1 -0
- data/public/railwatch/assets/show-CeTL4B37.js +2 -0
- data/public/railwatch/assets/show-CpfgV1jP.js +1 -0
- data/public/railwatch/assets/show-DACku6AD.js +3 -0
- data/public/railwatch/assets/show-DIOSGcXV.js +6 -0
- data/public/railwatch/assets/show-DQp_1n-B.js +1 -0
- data/public/railwatch/assets/show-DVNz46RI.js +1 -0
- data/public/railwatch/assets/show-DYteoYWW.js +1 -0
- data/public/railwatch/assets/show-DgSIoRvA.js +1 -0
- data/public/railwatch/assets/show-JxFtB4eK.js +2 -0
- data/public/railwatch/assets/sort-header-DpFzXblu.js +1 -0
- data/public/railwatch/assets/source-link-B2183i2-.js +1 -0
- data/public/railwatch/assets/sparkline-cell-C3-5vFkP.js +1 -0
- data/public/railwatch/assets/stat-s4RpOS9w.js +1 -0
- data/public/railwatch/assets/status-badge-8jVV-LA4.js +1 -0
- data/public/railwatch/assets/tenant-path-G-6u9A-o.js +1 -0
- data/public/railwatch/assets/text-link-DfsiaCcP.js +1 -0
- data/public/railwatch/assets/textarea-Dye72uP7.js +1 -0
- data/public/railwatch/assets/timeline-CD7WHnbo.js +1 -0
- data/public/railwatch/assets/transition-B_AW8rMK.js +5 -0
- data/public/railwatch/assets/use-clipboard-ColgLyQ2.js +1 -0
- data/public/railwatch/icon.png +0 -0
- data/public/railwatch/icon.svg +5 -0
- data/public/railwatch/manifest.json +2171 -0
- data/public/railwatch/rails-vite.json +1 -0
- metadata +313 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as c,C as i}from"./inertia-TViv6kNv.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,r as A,C as w,j as s}from"./inertia-TViv6kNv.js";import{B as E}from"./app-wordmark-nbjkzxwQ.js";import{u as J,C as O}from"./use-clipboard-ColgLyQ2.js";import{C as R}from"./index-1ol1-QWI.js";import{C as B,a as D}from"./app-layout-yh-sPWgK.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-TViv6kNv.js";import{V as xe,D as ye}from"./chart-panel-Cb4S_ej_.js";import{D as ve}from"./data-table-iv1bdF6u.js";import{F as ge}from"./filter-bar-9SU5NrzX.js";import{O as ae}from"./origin-identity-6q1-CBts.js";import{u as _e,P as je,E as ke}from"./env-layout-DrT8rO6P.js";import{S as G,a as we}from"./stat-s4RpOS9w.js";import{S as Oe}from"./status-badge-8jVV-LA4.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./tenant-path-G-6u9A-o.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";function nt(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{nt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,C as d,j as l,r as u}from"./inertia-TViv6kNv.js";import{P as f}from"./index-OqI59zPb.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-TViv6kNv.js";import{B as P}from"./app-wordmark-nbjkzxwQ.js";import{S}from"./separator-BwwTYtCF.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};
|
|
@@ -0,0 +1,41 @@
|
|
|
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-TViv6kNv.js";import{P as V,d as Kn}from"./index-OqI59zPb.js";import{u as de,a as Gn,B as Zn}from"./app-wordmark-nbjkzxwQ.js";import{b as ce,a as re,P as pt,c as Gt,u as qn,d as Qn}from"./index-1ol1-QWI.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-TViv6kNv.js";import{A as v,B as x}from"./app-wordmark-nbjkzxwQ.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-TViv6kNv.js";import{G as C}from"./google-sign-in-button-DsTSfmzY.js";import{I as o}from"./input-error-LxImUkxv.js";import{T as h}from"./text-link-DfsiaCcP.js";import{B as P}from"./app-wordmark-nbjkzxwQ.js";import{C as F}from"./checkbox-D3aRSsBj.js";import{L as i,I as c}from"./label-COUKWqE_.js";import{S as k,A as S}from"./auth-layout-TCwPpS1K.js";import"./separator-BwwTYtCF.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-TViv6kNv.js";import{G as I}from"./google-sign-in-button-DsTSfmzY.js";import{I as m}from"./input-error-LxImUkxv.js";import{T as d}from"./text-link-DfsiaCcP.js";import{B as y}from"./app-wordmark-nbjkzxwQ.js";import{L as c,I as p}from"./label-COUKWqE_.js";import{A as L,S as N}from"./auth-layout-TCwPpS1K.js";import"./separator-BwwTYtCF.js";import"./index-OqI59zPb.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u,g as x,j as t,D as h,H as j,F as g}from"./inertia-TViv6kNv.js";import{I as b}from"./input-error-LxImUkxv.js";import{B as v}from"./app-wordmark-nbjkzxwQ.js";import{b as _,c as C,a as N,C as w}from"./card-BX_3HXcJ.js";import{L as E,I as F}from"./label-COUKWqE_.js";import{A as y}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m,h as c,j as e,F as d,k as p,H as h}from"./inertia-TViv6kNv.js";import{I as l}from"./input-error-LxImUkxv.js";import{B as u}from"./app-wordmark-nbjkzxwQ.js";import{C as x,a as f,b as j,c as _}from"./card-BX_3HXcJ.js";import{L as t,I as i}from"./label-COUKWqE_.js";import{A as g}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as i,j as e,F as l,R as m,Q as n,H as c}from"./inertia-TViv6kNv.js";import{I as d}from"./input-error-LxImUkxv.js";import{T as p}from"./text-link-DfsiaCcP.js";import{B as f}from"./app-wordmark-nbjkzxwQ.js";import{L as x,I as u}from"./label-COUKWqE_.js";import{A as h,S as j}from"./auth-layout-TCwPpS1K.js";import"./index-OqI59zPb.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,n,j as e,F as m,a as i,H as l}from"./inertia-TViv6kNv.js";import{I as d}from"./input-error-LxImUkxv.js";import{B as u}from"./app-wordmark-nbjkzxwQ.js";import{C as p,a as h,b as x,c as f}from"./card-BX_3HXcJ.js";import{L as j,I as b}from"./label-COUKWqE_.js";import{A as C}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as b,c as v,j as t,L as w,a2 as S,e as L}from"./inertia-TViv6kNv.js";import{C as j}from"./copy-block-BKFGd11J.js";import{L as A}from"./live-dot-ChfUtY3p.js";import{B as R}from"./app-wordmark-nbjkzxwQ.js";import{b as T,c as B,a as M,C as P}from"./card-BX_3HXcJ.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:a,className:y}=g,C=a??`${_}…`,N=H;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(T,{children:t.jsx(B,{children:"Set up this environment"})}),e[0]=o):o=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",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]!==a?(n=!a&&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]=a,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:[o,l]}),e[19]=y,e[20]=l,e[21]=u):u=e[21],u}function H(){return L.reload()}export{W as O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as g,j as h,az as E,L as w}from"./inertia-TViv6kNv.js";import{t as N}from"./tenant-path-G-6u9A-o.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as i,c as l,j as o}from"./inertia-TViv6kNv.js";import{a,S as p}from"./segmented-h1VdDTqE.js";const u=["p50","p95","p99"];function m(){const s=new URL(globalThis.location.href).searchParams.get("pct");return{percentile:u.includes(s)?s:"p95",set:n=>{const r=new URL(globalThis.location.href);r.searchParams.set("pct",n),i.visit(r.toString(),{preserveScroll:!0,preserveState:!0})}}}const f=["p50","p95","p99"];function P(){const e=l.c(5),{percentile:s,set:c}=m();let t;e[0]!==s||e[1]!==c?(t=f.map(r=>o.jsx(a,{active:s===r,onClick:()=>c(r),children:r},r)),e[0]=s,e[1]=c,e[2]=t):t=e[2];let n;return e[3]!==t?(n=o.jsx(p,{children:t}),e[3]=t,e[4]=n):n=e[4],n}export{P,m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m,j as n}from"./inertia-TViv6kNv.js";import{t as c}from"./live-dot-ChfUtY3p.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as D,j as x}from"./inertia-TViv6kNv.js";import{S,a as H}from"./stat-s4RpOS9w.js";import{c as F,m as T}from"./format-B9SDkrWj.js";import"./arrow-up-DVtOGdVA.js";function R(r){return r===null?"default":r>=99.5?"success":r>=98?"warning":"destructive"}function E(r){return r===null?"–":`${r.toFixed(2)}%`}function w(r,e){if(!(r===null||e===null||e===void 0))return{current:r,previous:e,goodDirection:"up"}}function A(r){const e=D.c(43),{health:s,previous:C,deltaCaption:t}=r;let i;e[0]!==s.crash_free_sessions?(i=E(s.crash_free_sessions),e[0]=s.crash_free_sessions,e[1]=i):i=e[1];let l;e[2]!==s.crash_free_sessions?(l=R(s.crash_free_sessions),e[2]=s.crash_free_sessions,e[3]=l):l=e[3];const g=C?.crash_free_sessions;let n;e[4]!==s.crash_free_sessions||e[5]!==g?(n=w(s.crash_free_sessions,g),e[4]=s.crash_free_sessions,e[5]=g,e[6]=n):n=e[6];let a;e[7]!==s.errored?(a=s.errored===null?void 0:`${s.errored.toFixed(2)}% errored`,e[7]=s.errored,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==i||e[11]!==l||e[12]!==n||e[13]!==a?(o=x.jsx(S,{label:"Crash-free sessions",value:i,tone:l,delta:n,deltaCaption:t,hint:a}),e[9]=t,e[10]=i,e[11]=l,e[12]=n,e[13]=a,e[14]=o):o=e[14];let f;e[15]!==s.crash_free_users?(f=E(s.crash_free_users),e[15]=s.crash_free_users,e[16]=f):f=e[16];let _;e[17]!==s.crash_free_users?(_=R(s.crash_free_users),e[17]=s.crash_free_users,e[18]=_):_=e[18];const b=C?.crash_free_users;let u;e[19]!==s.crash_free_users||e[20]!==b?(u=w(s.crash_free_users,b),e[19]=s.crash_free_users,e[20]=b,e[21]=u):u=e[21];let c;e[22]!==t||e[23]!==u||e[24]!==f||e[25]!==_?(c=x.jsx(S,{label:"Crash-free users",value:f,tone:_,delta:u,deltaCaption:t}),e[22]=t,e[23]=u,e[24]=f,e[25]=_,e[26]=c):c=e[26];let h;e[27]!==s.sessions?(h=F(s.sessions),e[27]=s.sessions,e[28]=h):h=e[28];let v;e[29]!==s.users?(v=F(s.users),e[29]=s.users,e[30]=v):v=e[30];const $=`${v} users`;let d;e[31]!==h||e[32]!==$?(d=x.jsx(S,{label:"Sessions",value:h,hint:$}),e[31]=h,e[32]=$,e[33]=d):d=e[33];let m;e[34]!==s.avg_duration_ms?(m=T(s.avg_duration_ms),e[34]=s.avg_duration_ms,e[35]=m):m=e[35];let p;e[36]!==m?(p=x.jsx(S,{label:"Session duration",value:m,hint:"average"}),e[36]=m,e[37]=p):p=e[37];let j;return e[38]!==c||e[39]!==d||e[40]!==p||e[41]!==o?(j=x.jsxs(H,{children:[o,c,d,p]}),e[38]=c,e[39]=d,e[40]=p,e[41]=o,e[42]=j):j=e[42],j}export{A as ReleaseHealthStrip,R as crashFreeTone,E as rate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as G,u as J,ab as X,j as r,e as Y,t as Z}from"./inertia-TViv6kNv.js";import{V as ee,D as te}from"./chart-panel-Cb4S_ej_.js";import{D as se}from"./data-table-iv1bdF6u.js";import{u as re,P as oe,E as ne}from"./env-layout-DrT8rO6P.js";import{S as D,a as ie}from"./stat-s4RpOS9w.js";import{S as le}from"./status-badge-8jVV-LA4.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";function He(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{He as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as f,C as x,j as b}from"./inertia-TViv6kNv.js";function y(i){const e=f.c(5),{children:r,className:n}=i;let t;e[0]!==n?(t=x("bg-card flex h-8 shrink-0 items-center gap-px rounded-lg border p-0.5",n),e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==r||e[3]!==t?(o=b.jsx("div",{className:t,children:r}),e[2]=r,e[3]=t,e[4]=o):o=e[4],o}function j(i){const e=f.c(12),{active:r,onClick:n,children:t,className:o,mono:u,disabled:a,"aria-label":l}=i,d=(u===void 0?!0:u)&&"font-mono uppercase",m=r?"bg-primary border-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground border-transparent",p=a&&"cursor-not-allowed opacity-50";let s;e[0]!==o||e[1]!==d||e[2]!==m||e[3]!==p?(s=x("flex h-full min-w-8 items-center justify-center gap-1.5 rounded-md border px-2.5 text-xs whitespace-nowrap transition-colors",d,m,p,o),e[0]=o,e[1]=d,e[2]=m,e[3]=p,e[4]=s):s=e[4];let c;return e[5]!==r||e[6]!==l||e[7]!==t||e[8]!==a||e[9]!==n||e[10]!==s?(c=b.jsx("button",{type:"button",onClick:n,disabled:a,"aria-pressed":r,"aria-label":l,className:s,children:t}),e[5]=r,e[6]=l,e[7]=t,e[8]=a,e[9]=n,e[10]=s,e[11]=c):c=e[11],c}export{y as S,j as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as ze,r as a,j as u,W as Me,c as ne,C as ae}from"./inertia-TViv6kNv.js";import{c as We,a as E,b as q,P as Ke,u as _e,C as $e}from"./index-1ol1-QWI.js";import{V as Ge,o as Ye,u as qe,C as Oe}from"./app-layout-yh-sPWgK.js";import{u as H,a as Xe}from"./app-wordmark-nbjkzxwQ.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-ChfUtY3p.js";import{P as F}from"./index-OqI59zPb.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as d,c as u,C as x}from"./inertia-TViv6kNv.js";import{P as O}from"./index-OqI59zPb.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a4 as te,r as s,c as B,j as A}from"./inertia-TViv6kNv.js";import{u as Be}from"./chart-hover-Vy52H4uD.js";import{i as K,e as Ve,s as ae,D as re,f as ye,g as Nt,Z as ne,L as R,u as xe,h as Ct,j as _t,k as Y,l as Ge,m as $,n as X,o as Mt,p as ie,q as oe,r as Xe,t as ge,v as H,w as Ye,x as be,y as le,z as He,S as Ue,A as qe,E as se,F as Ze,G as Je,H as Qe,I as et,J as tt,K as at,M as Tt,N as U,O as q,P as rt,Q as nt,T as _,U as it,V as ot,W as lt,_ as Kt,$ as Wt,a0 as Rt,a1 as Pe,a2 as Ae,a3 as $t,a4 as zt,a5 as Ft,a6 as Bt,a7 as Vt,a8 as Gt,a9 as ue,aa as Z,ab as st,ac as ct,R as Xt,C as Ie,X as Ee,Y as ke,a as je,b as Oe,c as ce,B as de,d as Yt}from"./chart-B14-N9g7.js";import{m as ut}from"./format-B9SDkrWj.js";function fe(){return fe=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},fe.apply(null,arguments)}var dt=t=>{var{cx:e,cy:a,r,className:n}=t,o=te("recharts-dot",n);return K(e)&&K(a)&&K(r)?s.createElement("circle",fe({},ae(t),Ve(t),{className:o,cx:e,cy:a,r})):null},Ht=["points"];function Ke(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 pe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Ke(Object(a),!0).forEach(function(r){Ut(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ke(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ut(t,e,a){return(e=qt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function qt(t){var e=Zt(t,"string");return typeof e=="symbol"?e:e+""}function Zt(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 J(){return J=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},J.apply(null,arguments)}function Jt(t,e){if(t==null)return{};var a,r,n=Qt(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)a=o[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Qt(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 ea(t){var{option:e,dotProps:a,className:r}=t;if(s.isValidElement(e))return s.cloneElement(e,a);if(typeof e=="function")return e(a);var n=te(r,typeof e!="boolean"?e.className:""),o=a??{},{points:l}=o,i=Jt(o,Ht);return s.createElement(dt,J({},i,{className:n}))}function ta(t,e){return t==null?!1:e?!0:t.length===1}function pt(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:o,baseProps:l,needClip:i,clipPathId:c,zIndex:u=re.scatter}=t;if(!ta(e,a))return null;var d=ye(a),p=Nt(a),f=e.map((m,h)=>{var g,b,y=pe(pe(pe({r:3},l),p),{},{index:h,cx:(g=m.x)!==null&&g!==void 0?g:void 0,cy:(b=m.y)!==null&&b!==void 0?b:void 0,dataKey:o,value:m.value,payload:m.payload,points:e});return s.createElement(ea,{key:"dot-".concat(h),option:a,dotProps:y,className:n})}),v={};return i&&c!=null&&(v.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(c,")")),s.createElement(ne,{zIndex:u},s.createElement(R,J({className:r},v),f))}function We(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 ve(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?We(Object(a),!0).forEach(function(r){aa(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):We(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function aa(t,e,a){return(e=ra(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ra(t){var e=na(t,"string");return typeof e=="symbol"?e:e+""}function na(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 ia=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:o,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var i={index:a,dataKey:o,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},c=ve(ve(ve({},i),Ge(n)),Ve(n)),u;return s.isValidElement(n)?u=s.cloneElement(n,c):typeof n=="function"?u=n(c):u=s.createElement(dt,c),s.createElement(R,{className:"recharts-active-dot",clipPath:l},u)};function me(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:o,zIndex:l=re.activeDot}=t,i=xe(Ct),c=_t();if(e==null||c==null)return null;var u=e.find(d=>c.includes(d.payload));return Y(u)?null:s.createElement(ne,{zIndex:l},s.createElement(ia,{point:u,childIndex:Number(i),mainColor:a,dataKey:n,activeDot:r,clipPath:o}))}var vt=(t,e,a,r)=>ie(t,"xAxis",e,r),ft=(t,e,a,r)=>oe(t,"xAxis",e,r),mt=(t,e,a,r)=>ie(t,"yAxis",a,r),ht=(t,e,a,r)=>oe(t,"yAxis",a,r),oa=$([X,vt,mt,ft,ht],(t,e,a,r,n)=>ge(t,"xAxis")?H(e,r,!1):H(a,n,!1)),la=(t,e,a,r,n)=>n;function sa(t){return t.type==="line"}var ca=$([Xe,la],(t,e)=>t.filter(sa).find(a=>a.id===e)),ua=$([X,vt,mt,ft,ht,ca,oa,Mt],(t,e,a,r,n,o,l,i)=>{var{chartData:c,dataStartIndex:u,dataEndIndex:d}=i;if(!(o==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:f}=o,v;if(f!=null&&f.length>0?v=f:v=c?.slice(u,d+1),v!=null)return La({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:v})}});function yt(t){var e=Ge(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:o}=e,l=Number(n),i=Number(o);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(i)||i<0)&&(i=r),{r:l,strokeWidth:i}}return{r:a,strokeWidth:r}}var da=["id"],pa=["type","layout","connectNulls","needClip","shape"],va=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function V(){return V=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},V.apply(null,arguments)}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 M(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){fa(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 fa(t,e,a){return(e=ma(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ma(t){var e=ha(t,"string");return typeof e=="symbol"?e:e+""}function ha(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 Se(t,e){if(t==null)return{};var a,r,n=ya(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)a=o[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ya(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 xa=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:o}=t;return[{inactive:o,dataKey:e,type:n,color:r,value:se(a,e),payload:t}]},ga=s.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:o,name:l,hide:i,unit:c,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:Je,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:e,nameKey:void 0,name:se(l,e),hide:i,type:u,color:r,unit:c,graphicalItemId:d}};return s.createElement(Ze,{tooltipEntrySettings:p})}),xt=(t,e)=>"".concat(e,"px ").concat(t,"px");function ba(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Pa=(t,e,a)=>{var r=a.reduce((f,v)=>f+v,0);if(!r)return xt(e,t);for(var n=Math.floor(t/r),o=t%r,l=[],i=0,c=0;i<a.length;c+=(u=a[i])!==null&&u!==void 0?u:0,++i){var u,d=a[i];if(d!=null&&c+d>o){l=[...a.slice(0,i),o-c];break}}var p=l.length%2===0?[0,e]:[e];return[...ba(a,n),...l,...p].map(f=>"".concat(f,"px")).join(", ")};function Aa(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:o,needClip:l}=r,{id:i}=r,c=Se(r,da),u=ae(c);return s.createElement(pt,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:u,needClip:l,clipPathId:e})}function Ia(t){var{showLabels:e,children:a,points:r}=t,n=s.useMemo(()=>r?.map(o=>{var l,i,c={x:(l=o.x)!==null&&l!==void 0?l:0,y:(i=o.y)!==null&&i!==void 0?i:0,width:0,lowerWidth:0,upperWidth:0,height:0};return M(M({},c),{},{value:o.value,payload:o.payload,viewBox:c,parentViewBox:void 0,fill:void 0})}),[r]);return s.createElement(ot,{value:e?n:void 0},a)}function $e(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:o}=t,{type:l,layout:i,connectNulls:c,needClip:u,shape:d}=o,p=Se(o,pa),f=M(M({},lt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:i,connectNulls:c,strokeDasharray:n??o.strokeDasharray});return s.createElement(s.Fragment,null,r?.length>1&&s.createElement(Kt,V({shapeType:"curve",option:d},f,{pathRef:a})),s.createElement(Aa,{points:r,clipPathId:e,props:o}))}function Ea(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function ka(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:o}=t,{points:l,strokeDasharray:i,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:p,animateNewValues:f,width:v,height:m,onAnimationEnd:h,onAnimationStart:g}=a,b=n.current,y=rt(l,"recharts-line-"),P=s.useRef(y),[x,I]=s.useState(!1),E=!x,k=s.useCallback(()=>{typeof h=="function"&&h(),I(!1)},[h]),j=s.useCallback(()=>{typeof g=="function"&&g(),I(!0)},[g]),O=Ea(r.current),w=s.useRef(0);P.current!==y&&(w.current=o.current,P.current=y);var L=w.current;return s.createElement(Ia,{points:l,showLabels:E},a.children,s.createElement(nt,{animationId:y,begin:u,duration:d,isActive:c,easing:p,onAnimationEnd:k,onAnimationStart:j,key:y},S=>{var D=_(L,O+L,S),T=Math.min(D,O),N;if(c)if(i){var wt="".concat(i).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Pa(T,O,wt)}else N=xt(O,T);else N=i==null?void 0:String(i);if(S>0&&O>0&&(n.current=l,o.current=Math.max(o.current,T)),b){var Lt=b.length/l.length,_e=S===1?l:l.map((C,Dt)=>{var Me=Math.floor(Dt*Lt);if(b[Me]){var Te=b[Me];return M(M({},C),{},{x:_(Te.x,C.x,S),y:_(Te.y,C.y,S)})}return f?M(M({},C),{},{x:_(v*2,C.x,S),y:_(m/2,C.y,S)}):M(M({},C),{},{x:C.x,y:C.y})});return n.current=_e,s.createElement($e,{props:a,points:_e,clipPathId:e,pathRef:r,strokeDasharray:N})}return s.createElement($e,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),s.createElement(it,{label:a.label}))}function ja(t){var{clipPathId:e,props:a}=t,r=s.useRef(null),n=s.useRef(0),o=s.useRef(null);return s.createElement(ka,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:o})}var Oa=(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:U(t.payload,e)}};class Sa extends s.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:o,yAxisId:l,top:i,left:c,width:u,height:d,id:p,needClip:f,zIndex:v}=this.props;if(e)return null;var m=te("recharts-line",n),h=p,{r:g,strokeWidth:b}=yt(a),y=ye(a),P=g*2+b,x=f?"url(#clipPath-".concat(y?"":"dots-").concat(h,")"):void 0;return s.createElement(ne,{zIndex:v},s.createElement(R,{className:m},f&&s.createElement("defs",null,s.createElement(at,{clipPathId:h,xAxisId:o,yAxisId:l}),!y&&s.createElement("clipPath",{id:"clipPath-dots-".concat(h)},s.createElement("rect",{x:c-P/2,y:i-P/2,width:u+P,height:d+P}))),s.createElement(Tt,{xAxisId:o,yAxisId:l,data:r,dataPointFormatter:Oa,errorBarOffset:0},s.createElement(ja,{props:this.props,clipPathId:h}))),s.createElement(me,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}}var gt={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:re.line,type:"linear"};function wa(t){var e=be(t,gt),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:o,animationEasing:l,connectNulls:i,dot:c,hide:u,isAnimationActive:d,label:p,legendType:f,xAxisId:v,yAxisId:m,id:h}=e,g=Se(e,va),{needClip:b}=Qe(v,m),y=et(),P=tt(),x=le(),I=xe(w=>ua(w,v,m,x,h));if(P!=="horizontal"&&P!=="vertical"||I==null||y==null)return null;var{height:E,width:k,x:j,y:O}=y;return s.createElement(Sa,V({},g,{id:h,connectNulls:i,dot:c,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:o,animationEasing:l,isAnimationActive:d,hide:u,label:p,legendType:f,xAxisId:v,yAxisId:m,points:I,layout:P,height:E,width:k,left:j,top:O,needClip:b}))}function La(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:l,bandSize:i,displayedData:c}=t;return c.map((u,d)=>{var p=U(u,l);if(e==="horizontal"){var f=q({axis:a,ticks:n,bandSize:i,entry:u,index:d}),v=Y(p)?null:r.scale.map(p);return{x:f,y:v??null,value:p,payload:u}}var m=Y(p)?null:a.scale.map(p),h=q({axis:r,ticks:o,bandSize:i,entry:u,index:d});return m==null||h==null?null:{x:m,y:h,value:p,payload:u}}).filter(Boolean)}function Da(t){var e=be(t,gt),a=le();return s.createElement(He,{id:e.id,type:"line"},r=>s.createElement(s.Fragment,null,s.createElement(Ue,{legendPayload:xa(e)}),s.createElement(ga,{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}),s.createElement(qe,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),s.createElement(wa,V({},e,{id:r}))))}var he=s.memo(Da,Ye);he.displayName="Line";var bt=(t,e,a)=>ie(t,"xAxis",Pe(t,e),a),Pt=(t,e,a)=>oe(t,"xAxis",Pe(t,e),a),At=(t,e,a)=>ie(t,"yAxis",Ae(t,e),a),It=(t,e,a)=>oe(t,"yAxis",Ae(t,e),a),Na=$([X,bt,At,Pt,It],(t,e,a,r,n)=>ge(t,"xAxis")?H(e,r,!1):H(a,n,!1)),Ca=(t,e)=>e,Et=$([Xe,Ca],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),kt=t=>{var e=X(t),a=ge(e,"xAxis");return a?"yAxis":"xAxis"},_a=(t,e)=>{var a=kt(t);return a==="yAxis"?Ae(t,e):Pe(t,e)},Ma=(t,e,a)=>zt(t,kt(t),_a(t,e),a),Ta=$([Et,Ma],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=$t(t);if(!(r==null||n==null)){var o=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=o?.find(i=>i.key===n);if(l!=null)return l.map(i=>[i[0],i[1]])}}}),Ka=$([X,bt,At,Pt,It,Ta,Wt,Na,Et,Rt],(t,e,a,r,n,o,l,i,c,u)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:f}=l;if(!(c==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||i==null)){var{data:v}=c,m;if(v&&v.length>0?m=v:m=d?.slice(p,f+1),m!=null)return rr({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:c,stackedData:o,displayedData:m,chartBaseValue:u,bandSize:i})}}),Wa=["id"],Ra=["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 jt(t,e){if(t==null)return{};var a,r,n=$a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)a=o[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function $a(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 ze(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 z(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ze(Object(a),!0).forEach(function(r){za(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ze(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function za(t,e,a){return(e=Fa(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Fa(t){var e=Ba(t,"string");return typeof e=="symbol"?e:e+""}function Ba(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 Q(t,e){return t&&t!=="none"?t:e}var Va=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:o,hide:l}=t;return[{inactive:l,dataKey:e,type:o,color:Q(r,n),value:se(a,e),payload:t}]},Ga=s.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:o,name:l,hide:i,unit:c,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:Je,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:e,nameKey:void 0,name:se(l,e),hide:i,type:u,color:Q(r,o),unit:c,graphicalItemId:d}};return s.createElement(Ze,{tooltipEntrySettings:p})});function Xa(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:o,dataKey:l}=r,i=ae(r);return s.createElement(pt,{points:a,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:i,needClip:n,clipPathId:e})}function Ya(t){var{showLabels:e,children:a,points:r}=t,n=r.map(o=>{var l,i,c={x:(l=o.x)!==null&&l!==void 0?l:0,y:(i=o.y)!==null&&i!==void 0?i:0,width:0,lowerWidth:0,upperWidth:0,height:0};return z(z({},c),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:c,fill:void 0})});return s.createElement(ot,{value:e?n:void 0},a)}function Fe(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:o}=t,{layout:l,type:i,stroke:c,connectNulls:u,isRange:d}=o,{id:p}=o,f=jt(o,Wa),v=ae(f),m=lt(f);return s.createElement(s.Fragment,null,e?.length>1&&s.createElement(R,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},s.createElement(ue,W({},m,{id:p,points:e,connectNulls:u,type:i,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&s.createElement(ue,W({},v,{className:"recharts-area-curve",layout:l,type:i,connectNulls:u,fill:"none",points:e})),c!=="none"&&d&&Array.isArray(a)&&s.createElement(ue,W({},v,{className:"recharts-area-curve",layout:l,type:i,connectNulls:u,fill:"none",points:a}))),s.createElement(Xa,{points:e,props:f,clipPathId:n}))}function Ha(t){var e,a,{alpha:r,baseLine:n,points:o,strokeWidth:l}=t,i=(e=o[0])===null||e===void 0?void 0:e.y,c=(a=o[o.length-1])===null||a===void 0?void 0:a.y;if(!Z(i)||!Z(c))return null;var u=r*Math.abs(i-c),d=Math.max(...o.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)?s.createElement("rect",{x:0,y:i<c?i:i-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function Ua(t){var e,a,{alpha:r,baseLine:n,points:o,strokeWidth:l}=t,i=(e=o[0])===null||e===void 0?void 0:e.x,c=(a=o[o.length-1])===null||a===void 0?void 0:a.x;if(!Z(i)||!Z(c))return null;var u=r*Math.abs(i-c),d=Math.max(...o.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)?s.createElement("rect",{x:i<c?i:i-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function qa(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:o}=t;return a==="vertical"?s.createElement(Ha,{alpha:e,points:r,baseLine:n,strokeWidth:o}):s.createElement(Ua,{alpha:e,points:r,baseLine:n,strokeWidth:o})}function Za(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:o}=t,{points:l,baseLine:i,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:p,onAnimationStart:f,onAnimationEnd:v}=r,m=s.useMemo(()=>({points:l,baseLine:i}),[l,i]),h=rt(m,"recharts-area-"),g=Vt(),[b,y]=s.useState(!1),P=!b,x=s.useCallback(()=>{typeof v=="function"&&v(),y(!1)},[v]),I=s.useCallback(()=>{typeof f=="function"&&f(),y(!0)},[f]);if(g==null)return null;var E=n.current,k=o.current;return s.createElement(Ya,{showLabels:P,points:l},r.children,s.createElement(nt,{animationId:h,begin:u,duration:d,isActive:c,easing:p,onAnimationEnd:x,onAnimationStart:I,key:h},j=>{if(E){var O=E.length/l.length,w=j===1?l:l.map((S,D)=>{var T=Math.floor(D*O);if(E[T]){var N=E[T];return z(z({},S),{},{x:_(N.x,S.x,j),y:_(N.y,S.y,j)})}return S}),L;return K(i)?L=_(k,i,j):Y(i)||Gt(i)?L=_(k,0,j):L=i.map((S,D)=>{var T=Math.floor(D*O);if(Array.isArray(k)&&k[T]){var N=k[T];return z(z({},S),{},{x:_(N.x,S.x,j),y:_(N.y,S.y,j)})}return S}),j>0&&(n.current=w,o.current=L),s.createElement(Fe,{points:w,baseLine:L,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,o.current=i),s.createElement(R,null,c&&s.createElement("defs",null,s.createElement("clipPath",{id:"animationClipPath-".concat(a)},s.createElement(qa,{alpha:j,points:l,baseLine:i,layout:g,strokeWidth:r.strokeWidth}))),s.createElement(R,{clipPath:"url(#animationClipPath-".concat(a,")")},s.createElement(Fe,{points:l,baseLine:i,needClip:e,clipPathId:a,props:r})))}),s.createElement(it,{label:r.label}))}function Ja(t){var{needClip:e,clipPathId:a,props:r}=t,n=s.useRef(null),o=s.useRef();return s.createElement(Za,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:o})}class Qa extends s.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:o,left:l,needClip:i,xAxisId:c,yAxisId:u,width:d,height:p,id:f,baseLine:v,zIndex:m}=this.props;if(e)return null;var h=te("recharts-area",n),g=f,{r:b,strokeWidth:y}=yt(a),P=ye(a),x=b*2+y,I=i?"url(#clipPath-".concat(P?"":"dots-").concat(g,")"):void 0;return s.createElement(ne,{zIndex:m},s.createElement(R,{className:h},i&&s.createElement("defs",null,s.createElement(at,{clipPathId:g,xAxisId:c,yAxisId:u}),!P&&s.createElement("clipPath",{id:"clipPath-dots-".concat(g)},s.createElement("rect",{x:l-x/2,y:o-x/2,width:d+x,height:p+x}))),s.createElement(Ja,{needClip:i,clipPathId:g,props:this.props})),s.createElement(me,{points:r,mainColor:Q(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(v)&&s.createElement(me,{points:v,mainColor:Q(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var er={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:re.area};function tr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:o,connectNulls:l,dot:i,fill:c,fillOpacity:u,hide:d,isAnimationActive:p,legendType:f,stroke:v,xAxisId:m,yAxisId:h}=t,g=jt(t,Ra),b=tt(),y=Bt(),{needClip:P}=Qe(m,h),x=le(),{points:I,isRange:E,baseLine:k}=(e=xe(D=>Ka(D,t.id,x)))!==null&&e!==void 0?e:{},j=et();if(b!=="horizontal"&&b!=="vertical"||j==null||y!=="AreaChart"&&y!=="ComposedChart")return null;var{height:O,width:w,x:L,y:S}=j;return!I||!I.length?null:s.createElement(Qa,W({},g,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:o,baseLine:k,connectNulls:l,dot:i,fill:c,fillOpacity:u,height:O,hide:d,layout:b,isAnimationActive:p,isRange:E,legendType:f,needClip:P,points:I,stroke:v,width:w,left:L,top:S,xAxisId:m,yAxisId:h}))}var ar=(t,e,a,r,n)=>{var o=a??e;if(K(o))return o;var l=t==="horizontal"?n:r,i=l.scale.domain();if(l.type==="number"){var c=Math.max(i[0],i[1]),u=Math.min(i[0],i[1]);return o==="dataMin"?u:o==="dataMax"||c<0?c:Math.max(Math.min(i[0],i[1]),0)}return o==="dataMin"?i[0]:o==="dataMax"?i[1]:i[0]};function rr(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:o,chartBaseValue:l,xAxis:i,yAxis:c,displayedData:u,dataStartIndex:d,xAxisTicks:p,yAxisTicks:f,bandSize:v}=t,m=n&&n.length,h=ar(o,l,a,i,c),g=o==="horizontal",b=!1,y=u.map((x,I)=>{var E,k,j,O;if(m)O=n[d+I];else{var w=U(x,r);Array.isArray(w)?(O=w,b=!0):O=[h,w]}var L=(E=(k=O)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,S=L==null||m&&!e&&U(x,r)==null;if(g){var D;return{x:q({axis:i,ticks:p,bandSize:v,entry:x,index:I}),y:S?null:(D=c.scale.map(L))!==null&&D!==void 0?D:null,value:O,payload:x}}return{x:S?null:(j=i.scale.map(L))!==null&&j!==void 0?j:null,y:q({axis:c,ticks:f,bandSize:v,entry:x,index:I}),value:O,payload:x}}),P;return m||b?P=y.map(x=>{var I,E=Array.isArray(x.value)?x.value[0]:null;if(g){var k;return{x:x.x,y:E!=null&&x.y!=null&&(k=c.scale.map(E))!==null&&k!==void 0?k:null,payload:x.payload}}return{x:E!=null&&(I=i.scale.map(E))!==null&&I!==void 0?I:null,y:x.y,payload:x.payload}}):P=g?c.scale.map(h):i.scale.map(h),{points:y,baseLine:P??0,isRange:b}}function nr(t){var e=be(t,er),a=le();return s.createElement(He,{id:e.id,type:"area"},r=>s.createElement(s.Fragment,null,s.createElement(Ue,{legendPayload:Va(e)}),s.createElement(Ga,{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}),s.createElement(qe,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Ft(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),s.createElement(tr,W({},e,{id:r}))))}var we=s.memo(nr,Ye);we.displayName="Area";var ir=["axis"],or=s.forwardRef((t,e)=>s.createElement(st,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:ir,tooltipPayloadSearcher:ct,categoricalChartProps:t,ref:e})),lr=["axis"],Ot=s.forwardRef((t,e)=>s.createElement(st,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:ct,categoricalChartProps:t,ref:e}));const ee={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 Le(t){return new Date(t).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function G(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const F={fontSize:10,fontFamily:"var(--font-mono)"};function De(t=[]){return t.map(e=>A.jsx(Xt,{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 Ne(){const t=B.c(2),{setHoveredKey:e}=Be();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 Ce(t){const e=B.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=G(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 o=a[a.length-1];let l;e[4]!==o.t?(l=G(o.t),e[4]=o.t,e[5]=l):l=e[5];let i;e[6]!==l?(i=A.jsx("span",{children:l}),e[6]=l,e[7]=i):i=e[7];let c;return e[8]!==n||e[9]!==i?(c=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,i]}),e[8]=n,e[9]=i,e[10]=c):c=e[10],c}function kr(t){const e=B.c(27),{data:a,deploys:r,label:n,className:o}=t,l=n===void 0?"Requests":n,i=o===void 0?"h-40":o;let c;e[0]!==l?(c={...ee,count:{...ee.count,label:l}},e[0]=l,e[1]=c):c=e[1];const u=c,d=Ne(),p=`${i} w-full`;let f;e[2]!==a?(f=a.map(ur),e[2]=a,e[3]=f):f=e[3];const v=d.onMouseMove,m=d.onMouseLeave;let h,g,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(Ie,{vertical:!1,strokeDasharray:"2 4"}),b=A.jsx(Ee,{dataKey:"t",tickFormatter:Le,tickLine:!1,axisLine:!1,minTickGap:40,tick:F}),h=A.jsx(ke,{width:36,tickLine:!1,axisLine:!1,tick:F,tickFormatter:cr}),e[4]=h,e[5]=g,e[6]=b):(h=e[4],g=e[5],b=e[6]);let y,P,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=A.jsx(je,{content:A.jsx(Oe,{labelFormatter:sr})}),P=A.jsx(de,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),x=A.jsx(de,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[7]=y,e[8]=P,e[9]=x):(y=e[7],P=e[8],x=e[9]);let I;e[10]===Symbol.for("react.memo_cache_sentinel")?(I=A.jsx(de,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[10]=I):I=e[10];let E;e[11]!==r?(E=De(r),e[11]=r,e[12]=E):E=e[12];let k;e[13]!==d.onMouseLeave||e[14]!==d.onMouseMove||e[15]!==E||e[16]!==f?(k=A.jsxs(Yt,{data:f,barCategoryGap:2,onMouseMove:v,onMouseLeave:m,children:[g,b,h,y,P,x,I,E]}),e[13]=d.onMouseLeave,e[14]=d.onMouseMove,e[15]=E,e[16]=f,e[17]=k):k=e[17];let j;e[18]!==u||e[19]!==k||e[20]!==p?(j=A.jsx(ce,{config:u,className:p,children:k}),e[18]=u,e[19]=k,e[20]=p,e[21]=j):j=e[21];let O;e[22]!==a?(O=A.jsx(Ce,{data:a}),e[22]=a,e[23]=O):O=e[23];let w;return e[24]!==j||e[25]!==O?(w=A.jsxs("div",{children:[j,O]}),e[24]=j,e[25]=O,e[26]=w):w=e[26],w}function sr(t){return G(String(t))}function cr(t){return St(Number(t))}function ur(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const dr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function jr(t){const e=B.c(23),{data:a,deploys:r,className:n}=t,o=n===void 0?"h-40":n,l=Ne(),i=`${o} w-full`;let c;e[0]!==a?(c=a.map(mr),e[0]=a,e[1]=c):c=e[1];const u=l.onMouseMove,d=l.onMouseLeave;let p,f,v;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=A.jsx(Ie,{vertical:!1,strokeDasharray:"2 4"}),f=A.jsx(Ee,{dataKey:"t",tickFormatter:Le,tickLine:!1,axisLine:!1,minTickGap:40,tick:F}),v=A.jsx(ke,{width:36,tickLine:!1,axisLine:!1,tick:F,tickFormatter:fr}),e[2]=p,e[3]=f,e[4]=v):(p=e[2],f=e[3],v=e[4]);let m,h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(je,{content:A.jsx(Oe,{labelFormatter:vr})}),m=["ok","errored","crashed"],e[5]=m,e[6]=h):(m=e[5],h=e[6]);let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=m.map(pr),e[7]=g):g=e[7];let b;e[8]!==r?(b=De(r),e[8]=r,e[9]=b):b=e[9];let y;e[10]!==l.onMouseLeave||e[11]!==l.onMouseMove||e[12]!==b||e[13]!==c?(y=A.jsxs(Ot,{data:c,onMouseMove:u,onMouseLeave:d,children:[p,f,v,h,g,b]}),e[10]=l.onMouseLeave,e[11]=l.onMouseMove,e[12]=b,e[13]=c,e[14]=y):y=e[14];let P;e[15]!==y||e[16]!==i?(P=A.jsx(ce,{config:dr,className:i,children:y}),e[15]=y,e[16]=i,e[17]=P):P=e[17];let x;e[18]!==a?(x=A.jsx(Ce,{data:a}),e[18]=a,e[19]=x):x=e[19];let I;return e[20]!==P||e[21]!==x?(I=A.jsxs("div",{children:[P,x]}),e[20]=P,e[21]=x,e[22]=I):I=e[22],I}function pr(t){return A.jsx(we,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function vr(t){return G(String(t))}function fr(t){return St(Number(t))}function mr(t){return{...t,t:new Date(t.t).toISOString()}}function Or(t){const e=B.c(26),{data:a,deploys:r,percentile:n,className:o}=t,l=n===void 0?"p95":n,i=o===void 0?"h-40":o,c=Ne(),u=`${i} w-full`;let d;e[0]!==a?(d=a.map(gr),e[0]=a,e[1]=d):d=e[1];const p=c.onMouseMove,f=c.onMouseLeave;let v,m,h;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=A.jsx(Ie,{vertical:!1,strokeDasharray:"2 4"}),m=A.jsx(Ee,{dataKey:"t",tickFormatter:Le,tickLine:!1,axisLine:!1,minTickGap:40,tick:F}),h=A.jsx(ke,{width:44,tickLine:!1,axisLine:!1,tick:F,tickFormatter:xr}),e[2]=v,e[3]=m,e[4]=h):(v=e[2],m=e[3],h=e[4]);let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(je,{content:A.jsx(Oe,{labelFormatter:yr,formatter:hr})}),e[5]=g):g=e[5];const b=`var(--color-${l})`;let y;e[6]!==l||e[7]!==b?(y=A.jsx(he,{dataKey:l,stroke:b,dot:!1,strokeWidth:1.75,isAnimationActive:!1}),e[6]=l,e[7]=b,e[8]=y):y=e[8];let P;e[9]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(he,{dataKey:"avg",stroke:"var(--color-avg)",dot:!1,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[9]=P):P=e[9];let x;e[10]!==r?(x=De(r),e[10]=r,e[11]=x):x=e[11];let I;e[12]!==c.onMouseLeave||e[13]!==c.onMouseMove||e[14]!==y||e[15]!==x||e[16]!==d?(I=A.jsxs(or,{data:d,onMouseMove:p,onMouseLeave:f,children:[v,m,h,g,y,P,x]}),e[12]=c.onMouseLeave,e[13]=c.onMouseMove,e[14]=y,e[15]=x,e[16]=d,e[17]=I):I=e[17];let E;e[18]!==I||e[19]!==u?(E=A.jsx(ce,{config:ee,className:u,children:I}),e[18]=I,e[19]=u,e[20]=E):E=e[20];let k;e[21]!==a?(k=A.jsx(Ce,{data:a}),e[21]=a,e[22]=k):k=e[22];let j;return e[23]!==E||e[24]!==k?(j=A.jsxs("div",{children:[E,k]}),e[23]=E,e[24]=k,e[25]=j):j=e[25],j}function hr(t,e){return[ut(Number(t)),String(e)]}function yr(t){return G(String(t))}function xr(t){return ut(Number(t),0)}function gr(t){return{...t,t:new Date(t.t).toISOString()}}function Sr(t){const e=B.c(21),{data:a,className:r,hoverKey:n}=t,o=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:i}=Be(),c=n!=null&&l===n;let u;e[0]!==a?(u=a.map(br),e[0]=a,e[1]=u):u=e[1];let d;e[2]!==n||e[3]!==i?(d=n?()=>i(n):void 0,e[2]=n,e[3]=i,e[4]=d):d=e[4];let p;e[5]!==n||e[6]!==i?(p=n?()=>i(null):void 0,e[5]=n,e[6]=i,e[7]=p):p=e[7];const f=c?"var(--primary)":"var(--muted-foreground)",v=c?"var(--primary)":"var(--muted-foreground)",m=c?.35:.15,h=c?2:1.25;let g;e[8]!==f||e[9]!==v||e[10]!==m||e[11]!==h?(g=A.jsx(we,{dataKey:"v",stroke:f,fill:v,fillOpacity:m,strokeWidth:h,isAnimationActive:!1}),e[8]=f,e[9]=v,e[10]=m,e[11]=h,e[12]=g):g=e[12];let b;e[13]!==u||e[14]!==d||e[15]!==p||e[16]!==g?(b=A.jsx(Ot,{data:u,onMouseEnter:d,onMouseLeave:p,children:g}),e[13]=u,e[14]=d,e[15]=p,e[16]=g,e[17]=b):b=e[17];let y;return e[18]!==o||e[19]!==b?(y=A.jsx(ce,{config:ee,className:o,children:b}),e[18]=o,e[19]=b,e[20]=y):y=e[20],y}function br(t){return{v:t}}function St(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{we as A,Or as L,Sr as S,kr as T,Ot as a,jr as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as be,u as ke,r as ye,ao as _e,j as n,L as Z,a1 as ve,Y as we,t as he,e as xe,az as qe,i as Ne}from"./inertia-TViv6kNv.js";import{V as Ee,D as Re}from"./chart-panel-Cb4S_ej_.js";import{D as se}from"./data-table-iv1bdF6u.js";import{u as Pe,E as Se,P as Me}from"./env-layout-DrT8rO6P.js";import{a as De,S as Oe}from"./segmented-h1VdDTqE.js";import{S as X,a as Le}from"./stat-s4RpOS9w.js";import{S as Te}from"./status-badge-8jVV-LA4.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./arrow-up-DVtOGdVA.js";function Mt(t){const e=be.c(167),{environment:de,window:u}=ke().props,{window:fe,label:ge}=Pe(),[i,je]=ye.useState("routes"),r=de.application_id,l=de.id,s=t.summary.current,o=t.summary.previous,c=fe==="custom"?"vs previous period":`vs previous ${ge}`;let f,g,j,b,k,y,d,h,x,p;if(e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==t.exceptions.length||e[4]!==t.jobs.length||e[5]!==t.links.logs||e[6]!==t.links.people||e[7]!==t.people.length||e[8]!==t.recent_requests.length||e[9]!==t.routes.length||e[10]!==t.series||e[11]!==t.tenant||e[12]!==o.errors||e[13]!==o.exceptions||e[14]!==o.p95||e[15]!==o.requests||e[16]!==s.errors||e[17]!==s.exceptions||e[18]!==s.failed_jobs||e[19]!==s.jobs||e[20]!==s.logs||e[21]!==s.p95||e[22]!==s.requests||e[23]!==s.users||e[24]!==i||e[25]!==u){const a=[{key:"routes",label:"Routes",badge:t.routes.length},{key:"jobs",label:"Jobs",badge:t.jobs.length},{key:"exceptions",label:"Exceptions",badge:t.exceptions.length},{key:"people",label:"Users",badge:t.people.length},{key:"requests",label:"Recent requests",badge:t.recent_requests.length}];g=Se,y=t.tenant;let P;e[36]!==r||e[37]!==l||e[38]!==u?(P=_e(r,l,{window:u}),e[36]=r,e[37]=l,e[38]=u,e[39]=P):P=e[39];let S;e[40]!==P?(S={title:"Tenants",href:P},e[40]=P,e[41]=S):S=e[41];let M;e[42]!==t.tenant?(M={title:t.tenant,href:"#"},e[42]=t.tenant,e[43]=M):M=e[43],e[44]!==M||e[45]!==S?(d=[S,M],e[44]=M,e[45]=S,e[46]=d):d=e[46];let D;e[47]!==t.tenant?(D=n.jsx("span",{className:"font-mono",children:t.tenant}),e[47]=t.tenant,e[48]=D):D=e[48];let O;e[49]!==t.links.logs?(O=n.jsx(Z,{className:"text-xs underline",href:t.links.logs,children:"Logs"}),e[49]=t.links.logs,e[50]=O):O=e[50];let L;e[51]!==t.links.people?(L=n.jsx(Z,{className:"text-xs underline",href:t.links.people,children:"Users"}),e[51]=t.links.people,e[52]=L):L=e[52];let T;e[53]!==O||e[54]!==L?(T=n.jsxs(n.Fragment,{children:[O,L]}),e[53]=O,e[54]=L,e[55]=T):T=e[55],e[56]!==D||e[57]!==T?(h=n.jsx(Me,{title:D,actions:T}),e[56]=D,e[57]=T,e[58]=h):h=e[58];let $;e[59]!==s.requests?($=m(s.requests),e[59]=s.requests,e[60]=$):$=e[60];let A;e[61]!==o.requests||e[62]!==s.requests?(A={current:s.requests,previous:o.requests,goodDirection:"up"},e[61]=o.requests,e[62]=s.requests,e[63]=A):A=e[63];let C;e[64]!==c||e[65]!==$||e[66]!==A?(C=n.jsx(X,{label:"Requests",value:$,delta:A,deltaCaption:c}),e[64]=c,e[65]=$,e[66]=A,e[67]=C):C=e[67];let K;e[68]!==s.errors||e[69]!==s.requests?(K=$e(s.errors,s.requests),e[68]=s.errors,e[69]=s.requests,e[70]=K):K=e[70];const le=s.errors?"destructive":"success",oe=`${s.errors} of ${s.requests}`,ie=s.requests?s.errors/s.requests*100:0,ae=o.requests?o.errors/o.requests*100:0;let U;e[71]!==ie||e[72]!==ae?(U={current:ie,previous:ae,goodDirection:"down"},e[71]=ie,e[72]=ae,e[73]=U):U=e[73];let J;e[74]!==c||e[75]!==K||e[76]!==le||e[77]!==oe||e[78]!==U?(J=n.jsx(X,{label:"5xx",value:K,tone:le,hint:oe,delta:U,deltaCaption:c}),e[74]=c,e[75]=K,e[76]=le,e[77]=oe,e[78]=U,e[79]=J):J=e[79];let W;e[80]!==s.p95?(W=ee(s.p95),e[80]=s.p95,e[81]=W):W=e[81];let F;e[82]!==o.p95||e[83]!==s.p95?(F={current:s.p95,previous:o.p95,goodDirection:"down"},e[82]=o.p95,e[83]=s.p95,e[84]=F):F=e[84];let I;e[85]!==c||e[86]!==W||e[87]!==F?(I=n.jsx(X,{label:"p95",value:W,delta:F,deltaCaption:c}),e[85]=c,e[86]=W,e[87]=F,e[88]=I):I=e[88];let V;e[89]!==s.jobs?(V=m(s.jobs),e[89]=s.jobs,e[90]=V):V=e[90];const ce=`${s.failed_jobs} failed`,ue=s.failed_jobs?"destructive":"default";let z;e[91]!==V||e[92]!==ce||e[93]!==ue?(z=n.jsx(X,{label:"Jobs",value:V,hint:ce,tone:ue}),e[91]=V,e[92]=ce,e[93]=ue,e[94]=z):z=e[94];let B;e[95]!==s.exceptions?(B=m(s.exceptions),e[95]=s.exceptions,e[96]=B):B=e[96];let H;e[97]!==o.exceptions||e[98]!==s.exceptions?(H={current:s.exceptions,previous:o.exceptions,goodDirection:"down"},e[97]=o.exceptions,e[98]=s.exceptions,e[99]=H):H=e[99];let Y;e[100]!==c||e[101]!==B||e[102]!==H?(Y=n.jsx(X,{label:"Exceptions",value:B,delta:H,deltaCaption:c}),e[100]=c,e[101]=B,e[102]=H,e[103]=Y):Y=e[103];let G;e[104]!==s.users?(G=m(s.users),e[104]=s.users,e[105]=G):G=e[105];let re;e[106]!==s.logs?(re=m(s.logs),e[106]=s.logs,e[107]=re):re=e[107];const me=`${re} log lines`;let Q;e[108]!==G||e[109]!==me?(Q=n.jsx(X,{label:"Users",value:G,hint:me}),e[108]=G,e[109]=me,e[110]=Q):Q=e[110],e[111]!==C||e[112]!==J||e[113]!==I||e[114]!==z||e[115]!==Y||e[116]!==Q?(x=n.jsxs(Le,{children:[C,J,I,z,Y,Q]}),e[111]=C,e[112]=J,e[113]=I,e[114]=z,e[115]=Y,e[116]=Q,e[117]=x):x=e[117],e[118]!==t.series?(p=n.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[n.jsx(Ee,{label:"Requests",data:t.series}),n.jsx(Re,{label:"Latency",data:t.series})]}),e[118]=t.series,e[119]=p):p=e[119],k="-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",f=Oe,j="w-max",b=a.map(te=>n.jsxs(De,{mono:!1,active:i===te.key,onClick:()=>je(te.key),className:"gap-1.5 px-3",children:[te.label,n.jsx("span",{className:"opacity-60",children:m(te.badge)})]},te.key)),e[0]=r,e[1]=c,e[2]=l,e[3]=t.exceptions.length,e[4]=t.jobs.length,e[5]=t.links.logs,e[6]=t.links.people,e[7]=t.people.length,e[8]=t.recent_requests.length,e[9]=t.routes.length,e[10]=t.series,e[11]=t.tenant,e[12]=o.errors,e[13]=o.exceptions,e[14]=o.p95,e[15]=o.requests,e[16]=s.errors,e[17]=s.exceptions,e[18]=s.failed_jobs,e[19]=s.jobs,e[20]=s.logs,e[21]=s.p95,e[22]=s.requests,e[23]=s.users,e[24]=i,e[25]=u,e[26]=f,e[27]=g,e[28]=j,e[29]=b,e[30]=k,e[31]=y,e[32]=d,e[33]=h,e[34]=x,e[35]=p}else f=e[26],g=e[27],j=e[28],b=e[29],k=e[30],y=e[31],d=e[32],h=e[33],x=e[34],p=e[35];let _;e[120]!==f||e[121]!==j||e[122]!==b?(_=n.jsx(f,{className:j,children:b}),e[120]=f,e[121]=j,e[122]=b,e[123]=_):_=e[123];let v;e[124]!==k||e[125]!==_?(v=n.jsx("div",{className:k,children:_}),e[124]=k,e[125]=_,e[126]=v):v=e[126];let w;e[127]!==r||e[128]!==l||e[129]!==t.routes||e[130]!==i||e[131]!==u?(w=i==="routes"&&n.jsx(se,{rows:t.routes,rowKey:ct,empty:"No requests from this tenant in this window.",columns:[{key:"name",header:"Route",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:ve(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Requests",align:"right",cell:at},{key:"errors",header:"5xx",align:"right",cell:it},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:ot},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:lt}]}),e[127]=r,e[128]=l,e[129]=t.routes,e[130]=i,e[131]=u,e[132]=w):w=e[132];let q;e[133]!==r||e[134]!==l||e[135]!==t.jobs||e[136]!==i||e[137]!==u?(q=i==="jobs"&&n.jsx(se,{rows:t.jobs,rowKey:rt,empty:"No job attempts from this tenant in this window.",columns:[{key:"name",header:"Job",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:we(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Attempts",align:"right",cell:nt},{key:"failed",header:"Failed",align:"right",cell:st},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:tt},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:et}]}),e[133]=r,e[134]=l,e[135]=t.jobs,e[136]=i,e[137]=u,e[138]=q):q=e[138];let N;e[139]!==r||e[140]!==l||e[141]!==t.exceptions||e[142]!==i?(N=i==="exceptions"&&n.jsx(se,{rows:t.exceptions,rowKey:Ze,empty:"No exceptions from this tenant in this window.",columns:[{key:"when",header:"When",cell:Xe},{key:"class",header:"Class",cell:Qe},{key:"message",header:"Message",cell:Ge},{key:"issue",header:"Issue",cell:Ye},{key:"exe",hideOnMobile:!0,header:"Execution",cell:a=>a.execution_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:he(r,l,a.execution_id),children:a.execution_id.slice(0,8)}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}]}),e[139]=r,e[140]=l,e[141]=t.exceptions,e[142]=i,e[143]=N):N=e[143];let E;e[144]!==r||e[145]!==l||e[146]!==t.people||e[147]!==i?(E=i==="people"&&n.jsx(se,{rows:t.people,rowKey:He,empty:"No users tagged with this tenant.",onRowClick:a=>xe.visit(qe(r,l,a.ref)),columns:[{key:"name",header:"User",cell:Be},{key:"ref",hideOnMobile:!0,header:"Ref",cell:ze},{key:"seen",header:"Last seen",align:"right",cell:Ve}]}),e[144]=r,e[145]=l,e[146]=t.people,e[147]=i,e[148]=E):E=e[148];let R;e[149]!==r||e[150]!==l||e[151]!==t.recent_requests||e[152]!==i?(R=i==="requests"&&n.jsx(se,{rows:t.recent_requests,rowKey:Ie,empty:"No requests from this tenant in this window.",onRowClick:a=>xe.visit(he(r,l,a.execution_id)),columns:[{key:"when",header:"When",cell:Fe},{key:"name",header:"Route",cell:We},{key:"status",header:"Status",cell:Je},{key:"dur",header:"Duration",align:"right",cell:Ue},{key:"user",hideOnMobile:!0,header:"User",cell:Ke},{key:"ex",hideOnMobile:!0,header:"Exception",cell:Ce}]}),e[149]=r,e[150]=l,e[151]=t.recent_requests,e[152]=i,e[153]=R):R=e[153];let ne;return e[154]!==g||e[155]!==w||e[156]!==q||e[157]!==N||e[158]!==E||e[159]!==R||e[160]!==y||e[161]!==d||e[162]!==h||e[163]!==x||e[164]!==p||e[165]!==v?(ne=n.jsxs(g,{title:y,crumbs:d,children:[h,x,p,v,w,q,N,E,R]}),e[154]=g,e[155]=w,e[156]=q,e[157]=N,e[158]=E,e[159]=R,e[160]=y,e[161]=d,e[162]=h,e[163]=x,e[164]=p,e[165]=v,e[166]=ne):ne=e[166],ne}function Ce(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ke(t){return n.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function Ue(t){return ee(t.duration)}function Je(t){return n.jsx(Te,{status:t.status})}function We(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ie(t){return t.execution_id}function Ve(t){return Ae(t.last_seen_at)}function ze(t){return n.jsx("span",{className:"font-mono text-xs",children:t.ref})}function Be(t){return n.jsxs("span",{className:"text-xs",children:[n.jsx("span",{className:"font-medium",children:t.name}),t.email&&n.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function He(t){return t.ref}function Ye(t){return t.issue_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:Ne(t.issue_id),children:t.issue_key}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}function Ge(t){return n.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function Qe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.class_name})}function Xe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ze(t){return t.id}function et(t){return ee(t.max)}function tt(t){return ee(t.avg)}function st(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:m(t.failed)})}function nt(t){return m(t.count)}function rt(t){return t.group_hash}function lt(t){return ee(t.max)}function ot(t){return ee(t.avg)}function it(t){return n.jsx("span",{className:t.errors?"text-destructive":"",children:m(t.errors)})}function at(t){return m(t.count)}function ct(t){return t.group_hash}export{Mt as default};
|