railwatch 0.3.5 → 0.3.6

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.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -2
  3. data/app/channels/railwatch/environment_channel.rb +17 -4
  4. data/app/models/railwatch/ingest/batch.rb +1 -1
  5. data/app/models/railwatch/ingest/mapper.rb +1 -3
  6. data/docs/embedded.md +17 -6
  7. data/docs/getting-started.md +0 -2
  8. data/docs/source-maps.md +1 -3
  9. data/lib/generators/railwatch/install/install_generator.rb +0 -8
  10. data/lib/railwatch/backtrace.rb +12 -2
  11. data/lib/railwatch/configuration.rb +6 -5
  12. data/lib/railwatch/engine.rb +2 -2
  13. data/lib/railwatch/export/client.rb +10 -3
  14. data/lib/railwatch/reporter.rb +2 -12
  15. data/lib/railwatch/source_maps.rb +13 -1
  16. data/lib/railwatch/spec_helper.rb +1 -1
  17. data/lib/railwatch/transport/http.rb +14 -5
  18. data/lib/railwatch/version.rb +1 -1
  19. data/public/railwatch/assets/{app-layout-CdJ5Qjms.js → app-layout-B5Fcdwfz.js} +1 -1
  20. data/public/railwatch/assets/{app-wordmark-B-0yZiDb.js → app-wordmark-1SRllgHv.js} +1 -1
  21. data/public/railwatch/assets/{appearance-CU28GBf1.js → appearance-DbwahDrc.js} +1 -1
  22. data/public/railwatch/assets/{arrow-up-DY1fS0tD.js → arrow-up-DwKQcab4.js} +1 -1
  23. data/public/railwatch/assets/{auth-layout-C3FKuUJz.js → auth-layout-DXfxXAN_.js} +1 -1
  24. data/public/railwatch/assets/{badge-DKvItdlb.js → badge-CApjyWcg.js} +1 -1
  25. data/public/railwatch/assets/{braces-Bse5Gh3K.js → braces-kGSgxWnS.js} +1 -1
  26. data/public/railwatch/assets/{card-C9j_ffR9.js → card-BaJ8kNkp.js} +1 -1
  27. data/public/railwatch/assets/{chart-Cmh6JEww.js → chart-Xnrz1Nqw.js} +1 -1
  28. data/public/railwatch/assets/{chart-hover-B0SjyWFy.js → chart-hover-XYPNE2CX.js} +1 -1
  29. data/public/railwatch/assets/{chart-panel-DKNxoauI.js → chart-panel-BYk68mJJ.js} +1 -1
  30. data/public/railwatch/assets/{checkbox-BsBkRg5n.js → checkbox-Bf41R8W6.js} +1 -1
  31. data/public/railwatch/assets/{code-C879Qwgg.js → code-a-9sh36A.js} +1 -1
  32. data/public/railwatch/assets/{copy-block-DtO_3esq.js → copy-block-zykZWQym.js} +1 -1
  33. data/public/railwatch/assets/{copy-id-SeLCKsW2.js → copy-id-b6CW5ESL.js} +1 -1
  34. data/public/railwatch/assets/{cursor-load-more-OpHbe_kE.js → cursor-load-more-0cHzbTPT.js} +1 -1
  35. data/public/railwatch/assets/{data-table-Bc3ZRnpb.js → data-table-IvA7xvrK.js} +1 -1
  36. data/public/railwatch/assets/{edit-DDvf9mkq.js → edit-7lmf3k80.js} +1 -1
  37. data/public/railwatch/assets/{edit-BMpgcQhU.js → edit-DTtRV1fO.js} +1 -1
  38. data/public/railwatch/assets/{edit-CTD1jSWh.js → edit-ZKE15r-F.js} +1 -1
  39. data/public/railwatch/assets/{empty-state-CkPROZB0.js → empty-state-BFTnQ2oT.js} +1 -1
  40. data/public/railwatch/assets/{env-layout-aGQgTZRg.js → env-layout-erSDpIXg.js} +1 -1
  41. data/public/railwatch/assets/{execution-path-BX5NcXUZ.js → execution-path-Di5uUHi-.js} +1 -1
  42. data/public/railwatch/assets/{filter-bar-C0O2rJVr.js → filter-bar-Btm__gQi.js} +1 -1
  43. data/public/railwatch/assets/{flamegraph-Vj4QSAlT.js → flamegraph-C-mZdqa7.js} +1 -1
  44. data/public/railwatch/assets/{frames-CTiGwm4E.js → frames-KZBsjg6-.js} +1 -1
  45. data/public/railwatch/assets/{google-sign-in-button-BzogBGeF.js → google-sign-in-button-DJRoD72g.js} +1 -1
  46. data/public/railwatch/assets/{index-chS28dvS.js → index-9LL_C3eG.js} +1 -1
  47. data/public/railwatch/assets/{index-C__S10ze.js → index-B-bSm1jB.js} +1 -1
  48. data/public/railwatch/assets/{index-Dy7Wg880.js → index-B0VXzXYG.js} +1 -1
  49. data/public/railwatch/assets/{index-B-kuWp-m.js → index-BAkZNNEh.js} +1 -1
  50. data/public/railwatch/assets/{index-CPQKOQxV.js → index-BWSyQRZI.js} +1 -1
  51. data/public/railwatch/assets/{index-FgpFDA1Z.js → index-Bjw4sTXU.js} +1 -1
  52. data/public/railwatch/assets/{index-D9cV-IQr.js → index-Bo8hrjbs.js} +1 -1
  53. data/public/railwatch/assets/{index-BCLvKVhP.js → index-BoTOVM0v.js} +1 -1
  54. data/public/railwatch/assets/{index-y2c8xKzI.js → index-Bot7kHMA.js} +1 -1
  55. data/public/railwatch/assets/{index-DbyRgbzQ.js → index-BsrCnQqg.js} +1 -1
  56. data/public/railwatch/assets/{index-BKgAm-w2.js → index-BtSlLmkg.js} +1 -1
  57. data/public/railwatch/assets/{index-DigUOHQ8.js → index-CAzQkw-h.js} +1 -1
  58. data/public/railwatch/assets/{index-ChQ1_u8u.js → index-CBJZQgHA.js} +1 -1
  59. data/public/railwatch/assets/{index-uuKg6Zqn.js → index-CIUl9POV.js} +1 -1
  60. data/public/railwatch/assets/{index-DepurF6s.js → index-CP6jrrPT.js} +1 -1
  61. data/public/railwatch/assets/{index-Bvy021Vv.js → index-CU6yhEyt.js} +1 -1
  62. data/public/railwatch/assets/{index-B2_QluAw.js → index-CX8Br7m9.js} +1 -1
  63. data/public/railwatch/assets/{index-Dcxd_H-U.js → index-CYYmZpZu.js} +1 -1
  64. data/public/railwatch/assets/{index-DxuDLoTc.js → index-CeqMDByC.js} +1 -1
  65. data/public/railwatch/assets/{index-D3Axxkk2.js → index-Cj3_jD1E.js} +1 -1
  66. data/public/railwatch/assets/{index-D5YVcrqR.js → index-D4968-TC.js} +1 -1
  67. data/public/railwatch/assets/{index-DkgImCOg.js → index-DAEzO_vq.js} +1 -1
  68. data/public/railwatch/assets/{index-CtT4T6kp.js → index-DBTxQw77.js} +1 -1
  69. data/public/railwatch/assets/{index-CCLMaY9k.js → index-DCAho97K.js} +1 -1
  70. data/public/railwatch/assets/{index-jSEU_Yp7.js → index-DEfu_YvU.js} +1 -1
  71. data/public/railwatch/assets/{index-CY6lbwAC.js → index-DXUwhSCQ.js} +1 -1
  72. data/public/railwatch/assets/{index-Wb_U2_hz.js → index-DcItJxa5.js} +1 -1
  73. data/public/railwatch/assets/{index-CD4HIHq0.js → index-EGU__DOB.js} +1 -1
  74. data/public/railwatch/assets/{index-LaTKDe0-.js → index-HCJmFcZu.js} +1 -1
  75. data/public/railwatch/assets/{index-BRN_bXV_.js → index-P_e_cI0O.js} +1 -1
  76. data/public/railwatch/assets/{index-Ble4RoA3.js → index-QyHE9WsU.js} +1 -1
  77. data/public/railwatch/assets/{index-B69Iad2U.js → index-Z1c4nFL0.js} +1 -1
  78. data/public/railwatch/assets/{index-z2YfKBJl.js → index-kNhZPLVj.js} +1 -1
  79. data/public/railwatch/assets/{index-CxU1Jj35.js → index-uHBVO8Lh.js} +1 -1
  80. data/public/railwatch/assets/{index-Dep2XomH.js → index-wOj5j0KC.js} +1 -1
  81. data/public/railwatch/assets/{inertia-CgBdJDaE.js → inertia-Degv_G9N.js} +2 -2
  82. data/public/railwatch/assets/{input-error-DfpIawjl.js → input-error-C6SqO_iU.js} +1 -1
  83. data/public/railwatch/assets/{json-viewer-CH7nEIUs.js → json-viewer-DcQIxT86.js} +1 -1
  84. data/public/railwatch/assets/{klass-BTg1l2AO.js → klass-WgQEfWpo.js} +1 -1
  85. data/public/railwatch/assets/{label-BWgQzHCO.js → label-B_vK19tR.js} +1 -1
  86. data/public/railwatch/assets/{layout-neknbxn-.js → layout-C8q7GUlZ.js} +1 -1
  87. data/public/railwatch/assets/{live-dot-Bejk0a5o.js → live-dot-DaXEbkXo.js} +1 -1
  88. data/public/railwatch/assets/{nav-C1M8941-.js → nav-BnD5XArZ.js} +1 -1
  89. data/public/railwatch/assets/{new-BnGIYM37.js → new-BL9OqXHe.js} +1 -1
  90. data/public/railwatch/assets/{new-DGYPcz7w.js → new-BhRnQn4w.js} +1 -1
  91. data/public/railwatch/assets/{new-DElC-JCS.js → new-BqP0NhOF.js} +1 -1
  92. data/public/railwatch/assets/{new-bBwawsEg.js → new-CWP3wtwt.js} +1 -1
  93. data/public/railwatch/assets/{new-B8CzyoMu.js → new-DIjwu2jF.js} +1 -1
  94. data/public/railwatch/assets/{new-DLgCLBiW.js → new-uxMnBtoY.js} +1 -1
  95. data/public/railwatch/assets/{onboarding-CW0jUhHT.js → onboarding-C_Y3xTsH.js} +1 -1
  96. data/public/railwatch/assets/{origin-identity-bJMxeEHB.js → origin-identity-CNhOnfBa.js} +1 -1
  97. data/public/railwatch/assets/{percentile-picker-DLAnTKY3.js → percentile-picker-BujVEhP6.js} +1 -1
  98. data/public/railwatch/assets/{relative-time-BHbJh8HW.js → relative-time-6CoKr1lN.js} +1 -1
  99. data/public/railwatch/assets/{release-health-2O1GRclB.js → release-health-1Qzc_XhT.js} +1 -1
  100. data/public/railwatch/assets/{route-DSw8aIZa.js → route-xqgYjOwJ.js} +1 -1
  101. data/public/railwatch/assets/{segmented-Dg8CES94.js → segmented-CVKq2Xpa.js} +1 -1
  102. data/public/railwatch/assets/{select-CqKpvI98.js → select-CsmSXsJ4.js} +1 -1
  103. data/public/railwatch/assets/{separator-BOp2LHw3.js → separator-CrM10Oot.js} +1 -1
  104. data/public/railwatch/assets/{series-chart-COEtj3PY.js → series-chart-D33UhdG2.js} +1 -1
  105. data/public/railwatch/assets/{show-DrhEDGPn.js → show-8H9WAGav.js} +1 -1
  106. data/public/railwatch/assets/{show-dRDz8OVu.js → show-9jDeBNpc.js} +1 -1
  107. data/public/railwatch/assets/{show-C-xpDkoj.js → show-B0nHy31L.js} +1 -1
  108. data/public/railwatch/assets/{show-B7Zqjlqc.js → show-B3izvRdU.js} +1 -1
  109. data/public/railwatch/assets/{show-CGv85sRo.js → show-B7NhcWgp.js} +1 -1
  110. data/public/railwatch/assets/{show-Zr2xV4OD.js → show-BM-E2iYc.js} +1 -1
  111. data/public/railwatch/assets/{show-B40560ZT.js → show-BlNR3ZOZ.js} +1 -1
  112. data/public/railwatch/assets/{show-C9Y1To9_.js → show-CJMeX75E.js} +1 -1
  113. data/public/railwatch/assets/{show-BAxMoNvw.js → show-CMisHNAI.js} +1 -1
  114. data/public/railwatch/assets/{show-HjjzcKRq.js → show-CQ4Ze-Un.js} +1 -1
  115. data/public/railwatch/assets/{show-CPh-7VGL.js → show-CvNV23gH.js} +1 -1
  116. data/public/railwatch/assets/{show-DqtE0LI6.js → show-DMZlwzL_.js} +1 -1
  117. data/public/railwatch/assets/{show-C_9M2nLy.js → show-DUwQlohF.js} +1 -1
  118. data/public/railwatch/assets/{show-DFlP1ktM.js → show-DZwcZZrz.js} +1 -1
  119. data/public/railwatch/assets/{show-B_QVoqKE.js → show-ixK2r2f1.js} +1 -1
  120. data/public/railwatch/assets/{show-pbkvGRER.js → show-rysBbvt-.js} +1 -1
  121. data/public/railwatch/assets/{show-Bbs1i46N.js → show-zxVxhUel.js} +1 -1
  122. data/public/railwatch/assets/{sort-header-DBxQ_KFX.js → sort-header-CKj_7G3U.js} +1 -1
  123. data/public/railwatch/assets/{sparkline-cell-BbfXw3kA.js → sparkline-cell-Ckg29yVq.js} +1 -1
  124. data/public/railwatch/assets/{stat-Cd8QaTGw.js → stat-TxvoBiC8.js} +1 -1
  125. data/public/railwatch/assets/{status-badge-Ys4b0fcG.js → status-badge-5NCVJHjo.js} +1 -1
  126. data/public/railwatch/assets/{tenant-path-CQWzaNYR.js → tenant-path-B5ZRK4x3.js} +1 -1
  127. data/public/railwatch/assets/{text-link-BY8FY-CJ.js → text-link-BPllRj0F.js} +1 -1
  128. data/public/railwatch/assets/{textarea-Bq2jjOMC.js → textarea-DtD5yZp_.js} +1 -1
  129. data/public/railwatch/assets/{timeline-SxStCFO2.js → timeline-DZz5ZnHN.js} +1 -1
  130. data/public/railwatch/assets/{transition-CQ9yvfPa.js → transition-Ds6Cakuc.js} +1 -1
  131. data/public/railwatch/assets/{use-clipboard-3hTXU91g.js → use-clipboard-BLjjYH8V.js} +1 -1
  132. data/public/railwatch/assets/{use-live-LwJStJvD.js → use-live-GKze1mNC.js} +1 -1
  133. data/public/railwatch/manifest.json +1285 -1285
  134. metadata +115 -115
@@ -1 +1 @@
1
- var hn=n=>{throw TypeError(n)};var vn=(n,e,t)=>e.has(n)||hn("Cannot "+t);var ne=(n,e,t)=>(vn(n,e,"read from private field"),t?t.call(n):e.get(n)),gn=(n,e,t)=>e.has(n)?hn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),jt=(n,e,t,o)=>(vn(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);import{B as $,c as M,j as a,C as T,a5 as Qo,r as f,u as ce,L as fe,a3 as Zo,e as ee,a6 as er,a2 as tr,a7 as nr,a8 as or,a9 as rr,aa as sr,o as He,ab as In,X as En,ac as ar,ad as ir,E as lr,ae as Pn,af as cr,ag as dr,ah as ur,ai as fr,v as pr,$ as mr,aj as hr,ak as vr,a0 as gr,Z as xr,al as br,_ as yr,A as wr,am as Cr,an as jr,ao as kr,z as _r,ap as Mr,aq as Sr,b as Nr,ar as Ir,as as Er,h as Pr,x as ct,S as Be,d as Rr,at as Rn,au as Tn}from"./inertia-CgBdJDaE.js";import{u as se,b as Tr,S as dt,c as Ar,B as Ve,a as Ke,A as $r,d as qe}from"./app-wordmark-B-0yZiDb.js";import{j as An,k as Dr,l as Or,m as $n,n as Dn,o as Lr,p as On,d as ut,P as Ln,e as zn,C as Fn,q as zr,A as Gn,u as le,R as Vn,i as Gt,h as Fr,f as Gr,g as Vr,F as Hr,r as Vt,D as Ht,a as Bt,s as Br,b as Kt,c as qt,B as Kr,L as qr}from"./live-dot-Bejk0a5o.js";import{c as xe,P as Ye,b as Xe,a as V,u as ft,C as Ut}from"./index-B2_QluAw.js";import{P as X,d as Ur}from"./index-Dy7Wg880.js";import{C as xn}from"./checkbox-BsBkRg5n.js";import{L as kt,I as Wr}from"./label-BWgQzHCO.js";const Yr=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Xr=$("activity",Yr);const Jr=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Qr=$("arrow-up-right",Jr);const Zr=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["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"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Hn=$("bell-ring",Zr);const es=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ts=$("book-open",es);const ns=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],os=$("bookmark-plus",ns);const rs=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Wt=$("bookmark",rs);const ss=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],as=$("bug",ss);const is=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Bn=$("building-2",is);const ls=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],cs=$("cable",ls);const ds=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],us=$("calendar-clock",ds);const fs=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],ps=$("chart-pie",fs);const ms=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kn=$("chevron-down",ms);const hs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],qn=$("chevron-right",hs);const vs=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Un=$("chevrons-up-down",vs);const gs=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],xs=$("database",gs);const bs=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ys=$("file-text",bs);const ws=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Cs=$("flame",ws);const js=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ks=$("gauge",js);const _s=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Ms=$("git-commit-horizontal",_s);const Ss=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Ns=$("hard-drive",Ss);const Is=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Es=$("layers",Is);const Ps=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Wn=$("layout-grid",Ps);const Rs=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Ts=$("layout-template",Rs);const As=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],$s=$("link-2",As);const Ds=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Os=$("log-out",Ds);const Ls=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zs=$("mail",Ls);const Fs=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Gs=$("monitor-smartphone",Fs);const Vs=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Yn=$("octagon-alert",Vs);const Hs=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Bs=$("package",Hs);const Ks=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],qs=$("panel-left",Ks);const Us=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],Ws=$("pin-off",Us);const Ys=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Xs=$("pin",Ys);const Js=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Xn=$("plug",Js);const Qs=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zs=$("plus",Qs);const ea=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ta=$("rocket",ea);const na=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yt=$("search",na);const oa=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ra=$("server",oa);const sa=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],aa=$("settings",sa);const ia=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],la=$("siren",ia);const ca=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],da=$("sparkles",ca);const ua=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],fa=$("terminal",ua);const pa=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],ma=$("timer",pa);const ha=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],va=$("trash-2",ha);const ga=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Xt=$("users",ga);const xa=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],ba=$("workflow",xa);function ya(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(An,{"data-slot":"sheet",...t}),e[2]=t,e[3]=o):o=e[3],o}function wa(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Dn,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ca(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(On,{"data-slot":"sheet-overlay",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ja(n){const e=M.c(17);let t,o,r,s;e[0]!==n?({className:o,children:t,side:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"right":s;let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Ca,{}),e[5]=l):l=e[5];const d=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",c=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",u=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==o||e[7]!==d||e[8]!==c||e[9]!==u||e[10]!==p?(m=T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,c,u,p,o),e[6]=o,e[7]=d,e[8]=c,e[9]=u,e[10]=p,e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(Lr,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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",children:[a.jsx(Qo,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=h):h=e[12];let x;return e[13]!==t||e[14]!==r||e[15]!==m?(x=a.jsxs(wa,{children:[l,a.jsxs($n,{"data-slot":"sheet-content",className:m,...r,children:[t,h]})]}),e[13]=t,e[14]=r,e[15]=m,e[16]=x):x=e[16],x}function ka(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sheet-header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _a(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Dr,{"data-slot":"sheet-title",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ma(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Or,{"data-slot":"sheet-description",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var Sa=Object.defineProperty,Na=(n,e)=>Sa(n,"name",{value:e,configurable:!0}),Ia=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ea=f.forwardRef(Na(function(e,t){return a.jsx(X.span,{...e,ref:t,style:{...Ia,...e.style}})},"VisuallyHidden")),Pa=Ea,Ra=Object.defineProperty,Q=(n,e)=>Ra(n,"name",{value:e,configurable:!0}),[Jt,Wd]=xe("Tooltip",[ut]),pt=ut(),Ta="TooltipProvider",Aa=700,Pt="tooltip.open",[$a,Qt]=Jt(Ta),Da=Q(n=>{const{__scopeTooltip:e,delayDuration:t=Aa,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=n,i=f.useRef(!0),l=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const c=d.current;return()=>window.clearTimeout(c)},[]),a.jsx($a,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),i.current=!1)},[o]),onClose:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(c=>{l.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Rt="Tooltip",[Oa,Je]=Jt(Rt),La=Q(n=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=n,d=Qt(Rt,n.__scopeTooltip),c=pt(e),[u,p]=f.useState(null),[m,h]=f.useState(void 0),x=le(),v=f.useRef(0),g=i??d.disableHoverableContent,w=l??d.delayDuration,y=f.useRef(!1),[b,j]=ft({prop:o,defaultProp:r??!1,onChange:Q(R=>{R?(d.onOpen(),document.dispatchEvent(new CustomEvent(Pt))):d.onClose(),s?.(R)},"onChange"),caller:Rt}),_=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),k=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,j(!0)},[j]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j(!1)},[j]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,j(!0),v.current=0},w)},[w,j]);f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]);const N=m??x;return a.jsx(Vn,{...c,children:a.jsx(Oa,{scope:e,contentId:N,setContentId:h,open:b,stateAttribute:_,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?E():k()},[d.isOpenDelayedRef,E,k]),onTriggerLeave:f.useCallback(()=>{g?S():(window.clearTimeout(v.current),v.current=0)},[S,g]),onOpen:k,onClose:S,disableHoverableContent:g,children:t})})},"Tooltip"),bn="TooltipTrigger",za=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=Je(bn,o),i=Qt(bn,o),l=pt(o),d=f.useRef(null),c=se(t,d,s.onTriggerChange),u=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Gn,{asChild:!0,...l,children:a.jsx(X.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:V(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:V(e.onBlur,s.onClose),onClick:V(e.onClick,s.onClose)})})},"TooltipTrigger")),Jn="TooltipPortal",[Fa,Ga]=Jt(Jn,{forceMount:void 0}),Va=Q(n=>{const{__scopeTooltip:e,forceMount:t,children:o,container:r}=n,s=Je(Jn,e);return a.jsx(Fa,{scope:e,forceMount:t,children:a.jsx(Ye,{present:t||s.open,children:a.jsx(Ln,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),Ue="TooltipContent",Ha=f.forwardRef(Q(function(e,t){const o=Ga(Ue,e.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=e,l=Je(Ue,e.__scopeTooltip);return a.jsx(Ye,{present:r||l.open,children:l.disableHoverableContent?a.jsx(Qn,{side:s,...i,ref:t}):a.jsx(Ba,{side:s,...i,ref:t})})},"TooltipContent")),Ba=f.forwardRef(Q(function(e,t){const o=Je(Ue,e.__scopeTooltip),r=Qt(Ue,e.__scopeTooltip),s=f.useRef(null),i=se(t,s),[l,d]=f.useState(null),{trigger:c,onClose:u}=o,p=s.current,{onPointerInTransitChange:m}=r,h=f.useCallback(()=>{d(null),m(!1)},[m]),x=f.useCallback((v,g)=>{const w=v.currentTarget,y={x:v.clientX,y:v.clientY},b=Zn(y,w.getBoundingClientRect()),j=eo(y,b),_=to(g.getBoundingClientRect()),k=oo([...j,..._]);d(k),m(!0)},[m]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&p){const v=Q(w=>x(w,p),"handleTriggerLeave"),g=Q(w=>x(w,c),"handleContentLeave");return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",g)}}},[c,p,x,h]),f.useEffect(()=>{if(l){const v=Q(g=>{const w=g.target,y={x:g.clientX,y:g.clientY},b=c?.contains(w)||p?.contains(w),j=!no(y,l);b?h():j&&(h(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,l,u,h]),a.jsx(Qn,{...e,ref:i})},"TooltipContentHoverable")),Ka=Tr("TooltipContent"),Qn=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:l,onPointerDownOutside:d,...c}=e,u=Je(Ue,o),p=pt(o),{onClose:m}=u;f.useEffect(()=>(document.addEventListener(Pt,m),()=>document.removeEventListener(Pt,m)),[m]),f.useEffect(()=>{if(u.trigger){const x=Q(v=>{v.target instanceof Node&&v.target.contains(u.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[u.trigger,m]);const{setContentId:h}=u;return Xe(()=>(h(i),()=>{h(void 0)}),[i,h]),a.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:m,children:a.jsxs(Fn,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Ka,{children:r}),s?a.jsx(Pa,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),qa=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=pt(o);return a.jsx(zr,{...s,...r,ref:t})},"TooltipArrow"));function Zn(n,e){const t=Math.abs(e.top-n.y),o=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),s=Math.abs(e.left-n.x);switch(Math.min(t,o,r,s)){case s:return"left";case r:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Q(Zn,"getExitSideFromRect");function eo(n,e,t=5){const o=[];switch(e){case"top":o.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":o.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":o.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":o.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return o}Q(eo,"getPaddedExitPoints");function to(n){const{top:e,right:t,bottom:o,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:o},{x:r,y:o}]}Q(to,"getPointsFromRect");function no(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}Q(no,"isPointInPolygon");function oo(n){const e=n.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ro(e)}Q(oo,"getHull");function ro(n){if(n.length<=1)return n.slice();const e=[];for(let o=0;o<n.length;o++){const r=n[o];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let o=n.length-1;o>=0;o--){const r=n[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}Q(ro,"getHullPresorted");var Ua=Da,Wa=La,Ya=za,Xa=Va,Ja=Ha,Qa=qa;function so(n){const e=M.c(6);let t,o;e[0]!==n?({delayDuration:o,...t}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);const r=o===void 0?0:o;let s;return e[3]!==r||e[4]!==t?(s=a.jsx(Ua,{"data-slot":"tooltip-provider",delayDuration:r,...t}),e[3]=r,e[4]=t,e[5]=s):s=e[5],s}function Za(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(so,{children:a.jsx(Wa,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=o):o=e[3],o}function ei(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ya,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function ti(n){const e=M.c(13);let t,o,r,s;e[0]!==n?({className:o,sideOffset:s,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?0:s;let l;e[5]!==o?(l=T("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),e[5]=o,e[6]=l):l=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Qa,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=d):d=e[7];let c;return e[8]!==t||e[9]!==r||e[10]!==i||e[11]!==l?(c=a.jsx(Xa,{children:a.jsxs(Ja,{"data-slot":"tooltip-content",sideOffset:i,className:l,...r,children:[t,d]})}),e[8]=t,e[9]=r,e[10]=i,e[11]=l,e[12]=c):c=e[12],c}const ni=768,Tt=window.matchMedia(`(max-width: ${ni-1}px)`);function oi(n){return Tt.addEventListener("change",n),()=>{Tt.removeEventListener("change",n)}}function ri(){return Tt.matches}function ao(){return f.useSyncExternalStore(oi,ri)}const si="sidebar_state",ai=3600*24*7,ii="14.25rem",li="18rem",ci="3rem",di="b",io=f.createContext(null);function mt(){const n=f.useContext(io);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function ui(n){const e=M.c(36);let t,o,r,s,i,l,d;e[0]!==n?({defaultOpen:d,open:r,onOpenChange:i,className:o,style:l,children:t,...s}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=d===void 0?!0:d,u=ao(),[p,m]=f.useState(!1),[h,x]=f.useState(c),v=r??h;let g;e[8]!==v||e[9]!==i?(g=q=>{const H=typeof q=="function"?q(v):q;i?i(H):x(H),document.cookie=`${si}=${H}; path=/; max-age=${ai}`},e[8]=v,e[9]=i,e[10]=g):g=e[10];const w=g;let y;e[11]!==u||e[12]!==w?(y=()=>u?m(pi):w(fi),e[11]=u,e[12]=w,e[13]=y):y=e[13];const b=y;let j,_;e[14]!==b?(j=()=>{const q=H=>{H.key===di&&(H.metaKey||H.ctrlKey)&&(H.preventDefault(),b())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},_=[b],e[14]=b,e[15]=j,e[16]=_):(j=e[15],_=e[16]),f.useEffect(j,_);const k=v?"expanded":"collapsed";let S;e[17]!==u||e[18]!==v||e[19]!==p||e[20]!==w||e[21]!==k||e[22]!==b?(S={state:k,open:v,setOpen:w,isMobile:u,openMobile:p,setOpenMobile:m,toggleSidebar:b},e[17]=u,e[18]=v,e[19]=p,e[20]=w,e[21]=k,e[22]=b,e[23]=S):S=e[23];const E=S;let N;e[24]!==l?(N={"--sidebar-width":ii,"--sidebar-width-icon":ci,...l},e[24]=l,e[25]=N):N=e[25];const R=N;let O;e[26]!==o?(O=T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),e[26]=o,e[27]=O):O=e[27];let G;e[28]!==t||e[29]!==s||e[30]!==R||e[31]!==O?(G=a.jsx(so,{delayDuration:0,children:a.jsx("div",{"data-slot":"sidebar-wrapper",style:R,className:O,...s,children:t})}),e[28]=t,e[29]=s,e[30]=R,e[31]=O,e[32]=G):G=e[32];let K;return e[33]!==E||e[34]!==G?(K=a.jsx(io.Provider,{value:E,children:G}),e[33]=E,e[34]=G,e[35]=K):K=e[35],K}function fi(n){return!n}function pi(n){return!n}function mi(n){const e=M.c(46);let t,o,r,s,i,l;e[0]!==n?({side:s,variant:i,collapsible:l,className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"left":s,c=i===void 0?"sidebar":i,u=l===void 0?"offcanvas":l,{isMobile:p,state:m,openMobile:h,setOpenMobile:x}=mt();if(u==="none"){let N;e[7]!==o?(N=T("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=N):N=e[8];let R;return e[9]!==t||e[10]!==r||e[11]!==N?(R=a.jsx("div",{"data-slot":"sidebar",className:N,...r,children:t}),e[9]=t,e[10]=r,e[11]=N,e[12]=R):R=e[12],R}if(p){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":li},e[13]=N):N=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsxs(ka,{className:"sr-only",children:[a.jsx(_a,{children:"Sidebar"}),a.jsx(Ma,{children:"Displays the mobile sidebar."})]}),e[14]=R):R=e[14];let O;e[15]!==t?(O=a.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let G;e[17]!==d||e[18]!==O?(G=a.jsxs(ja,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:d,children:[R,O]}),e[17]=d,e[18]=O,e[19]=G):G=e[19];let K;return e[20]!==h||e[21]!==r||e[22]!==x||e[23]!==G?(K=a.jsx(ya,{open:h,onOpenChange:x,...r,children:G}),e[20]=h,e[21]=r,e[22]=x,e[23]=G,e[24]=K):K=e[24],K}const v=m==="collapsed"?u:"",g=c==="floating"||c==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let w;e[25]!==g?(w=T("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=w):w=e[26];let y;e[27]!==w?(y=a.jsx("div",{"data-slot":"sidebar-gap",className:w}),e[27]=w,e[28]=y):y=e[28];const b=d==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",j=c==="floating"||c==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let _;e[29]!==o||e[30]!==b||e[31]!==j?(_=T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",b,j,o),e[29]=o,e[30]=b,e[31]=j,e[32]=_):_=e[32];let k;e[33]!==t?(k=a.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=k):k=e[34];let S;e[35]!==r||e[36]!==_||e[37]!==k?(S=a.jsx("div",{"data-slot":"sidebar-container",className:_,...r,children:k}),e[35]=r,e[36]=_,e[37]=k,e[38]=S):S=e[38];let E;return e[39]!==d||e[40]!==m||e[41]!==S||e[42]!==v||e[43]!==y||e[44]!==c?(E=a.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":v,"data-variant":c,"data-side":d,"data-slot":"sidebar",children:[y,S]}),e[39]=d,e[40]=m,e[41]=S,e[42]=v,e[43]=y,e[44]=c,e[45]=E):E=e[45],E}function hi(n){const e=M.c(15);let t,o,r;e[0]!==n?({className:t,onClick:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const{toggleSidebar:s}=mt();let i;e[4]!==t?(i=T("size-7",t),e[4]=t,e[5]=i):i=e[5];let l;e[6]!==o||e[7]!==s?(l=p=>{o?.(p),s()},e[6]=o,e[7]=s,e[8]=l):l=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(qs,{}),c=a.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==r||e[12]!==i||e[13]!==l?(u=a.jsxs(Ve,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i,onClick:l,...r,children:[d,c]}),e[11]=r,e[12]=i,e[13]=l,e[14]=u):u=e[14],u}function vi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("main",{"data-slot":"sidebar-inset",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function gi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function xi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function bi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Zt(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function yi(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,asChild:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const i=(r===void 0?!1:r)?dt:"div";let l;e[4]!==t?(l=T("text-muted-foreground ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 pt-2 text-xs font-semibold outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=l):l=e[5];let d;return e[6]!==i||e[7]!==o||e[8]!==l?(d=a.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l,...o}),e[6]=i,e[7]=o,e[8]=l,e[9]=d):d=e[9],d}function wi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("w-full text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function we(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function he(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Ci=Ar("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md border border-transparent px-2 text-left text-sm text-sidebar-foreground outline-hidden ring-sidebar-ring transition-colors hover:text-sidebar-accent-foreground focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4 data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-9 text-sm",sm:"h-7 text-xs",lg:"h-14 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ve(n){const e=M.c(28);let t,o,r,s,i,l,d;e[0]!==n?({asChild:r,isActive:s,variant:i,size:l,tooltip:d,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=r===void 0?!1:r,u=s===void 0?!1:s,p=i===void 0?"default":i,m=l===void 0?"default":l,h=c?dt:"button",{isMobile:x,state:v}=mt();let g;e[8]!==t||e[9]!==m||e[10]!==p?(g=T(Ci({variant:p,size:m}),t),e[8]=t,e[9]=m,e[10]=p,e[11]=g):g=e[11];let w;e[12]!==h||e[13]!==u||e[14]!==o||e[15]!==m||e[16]!==g?(w=a.jsx(h,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":u,className:g,...o}),e[12]=h,e[13]=u,e[14]=o,e[15]=m,e[16]=g,e[17]=w):w=e[17];const y=w;if(!d)return y;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let b;e[20]!==y?(b=a.jsx(ei,{asChild:!0,children:y}),e[20]=y,e[21]=b):b=e[21];const j=v!=="collapsed"||x;let _;e[22]!==j||e[23]!==d?(_=a.jsx(ti,{side:"right",align:"center",hidden:j,...d}),e[22]=j,e[23]=d,e[24]=_):_=e[24];let k;return e[25]!==b||e[26]!==_?(k=a.jsxs(Za,{children:[b,_]}),e[25]=b,e[26]=_,e[27]=k):k=e[27],k}function ji(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-w-0 flex-col gap-0.5 py-0.5 pl-6","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ki(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-sub-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function yn(n){const e=M.c(16);let t,o,r,s,i;e[0]!==n?({asChild:r,size:s,isActive:i,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5]);const l=r===void 0?!1:r,d=s===void 0?"md":s,c=i===void 0?!1:i,u=l?dt:"a",p=d==="sm"&&"text-xs",m=d==="md"&&"text-sm";let h;e[6]!==t||e[7]!==p||e[8]!==m?(h=T("text-sidebar-foreground ring-sidebar-ring hover:text-sidebar-accent-foreground flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md border border-transparent px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4",p,m,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=p,e[8]=m,e[9]=h):h=e[9];let x;return e[10]!==u||e[11]!==c||e[12]!==o||e[13]!==d||e[14]!==h?(x=a.jsx(u,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":d,"data-active":c,className:h,...o}),e[10]=u,e[11]=c,e[12]=o,e[13]=d,e[14]=h,e[15]=x):x=e[15],x}function _i(n){const e=M.c(10);let t,o,r;if(e[0]!==n?({variant:r,children:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]),(r===void 0?"header":r)==="sidebar"){let l;return e[4]!==t||e[5]!==o?(l=a.jsx(vi,{...o,children:t}),e[4]=t,e[5]=o,e[6]=l):l=e[6],l}let i;return e[7]!==t||e[8]!==o?(i=a.jsx("main",{className:"mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl",...o,children:t}),e[7]=t,e[8]=o,e[9]=i):i=e[9],i}function Mi(n){const e=M.c(6),{children:t,variant:o}=n,r=o===void 0?"header":o,[s,i]=f.useState(Si);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=u=>{i(u),typeof window<"u"&&localStorage.setItem("sidebar",String(u))},e[0]=l):l=e[0];const d=l;if(r==="header"){let u;return e[1]!==t?(u=a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:t}),e[1]=t,e[2]=u):u=e[2],u}let c;return e[3]!==t||e[4]!==s?(c=a.jsx(ui,{defaultOpen:s,open:s,onOpenChange:d,children:t}),e[3]=t,e[4]=s,e[5]=c):c=e[5],c}function Si(){return typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0}function Ni(n){const e=M.c(10);let t,o,r;e[0]!==n?({iconNode:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("h-4 w-4",o),e[4]=o,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==r||e[8]!==s?(i=a.jsx(t,{className:s,...r}),e[6]=t,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Ii(n){const e=M.c(12);let t,o,r;e[0]!==n?({items:o,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=`group-data-[collapsible=icon]:p-0 ${t??""}`;let i;e[4]!==o?(i=o.map(Ei),e[4]=o,e[5]=i):i=e[5];let l;e[6]!==i?(l=a.jsx(wi,{children:a.jsx(we,{children:i})}),e[6]=i,e[7]=l):l=e[7];let d;return e[8]!==r||e[9]!==s||e[10]!==l?(d=a.jsx(Zt,{...r,className:s,children:l}),e[8]=r,e[9]=s,e[10]=l,e[11]=d):d=e[11],d}function Ei(n){return a.jsx(he,{children:a.jsx(ve,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:a.jsxs("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&a.jsx(Ni,{iconNode:n.icon,className:"h-5 w-5"}),a.jsx("span",{children:n.title})]})})},n.title)}function Pi(n){const e=M.c(14),{items:t,label:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,i=o===void 0?"Platform":o,l=ce();let d;e[2]!==i?(d=i&&a.jsx(yi,{children:i}),e[2]=i,e[3]=d):d=e[3];let c;if(e[4]!==s||e[5]!==l){let m;e[7]!==l?(m=h=>a.jsx(he,{children:a.jsx(ve,{asChild:!0,isActive:l.url.startsWith(h.href),tooltip:{children:h.title},children:a.jsxs(fe,{href:h.href,prefetch:!0,children:[h.icon&&a.jsx(h.icon,{}),a.jsx("span",{children:h.title})]})})},h.title),e[7]=l,e[8]=m):m=e[8],c=s.map(m),e[4]=s,e[5]=l,e[6]=c}else c=e[6];let u;e[9]!==c?(u=a.jsx(we,{children:c}),e[9]=c,e[10]=u):u=e[10];let p;return e[11]!==d||e[12]!==u?(p=a.jsxs(Zt,{className:"p-0",children:[d,u]}),e[11]=d,e[12]=u,e[13]=p):p=e[13],p}var Ri=Object.defineProperty,Z=(n,e)=>Ri(n,"name",{value:e,configurable:!0});function en(n){const e=n+"CollectionProvider",[t,o]=xe(e),[r,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=Z(v=>{const{scope:g,children:w}=v,y=f.useRef(null),b=f.useRef(new Map).current;return a.jsx(r,{scope:g,itemMap:b,collectionRef:y,children:w})},"CollectionProvider");i.displayName=e;const l=n+"CollectionSlot",d=Ke(l),c=f.forwardRef((v,g)=>{const{scope:w,children:y}=v,b=s(l,w),j=se(g,b.collectionRef);return a.jsx(d,{ref:j,children:y})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=Ke(u),h=f.forwardRef((v,g)=>{const{scope:w,children:y,...b}=v,j=f.useRef(null),_=se(g,j),k=s(u,w);return f.useEffect(()=>(k.itemMap.set(j,{ref:j,...b}),()=>{k.itemMap.delete(j)})),a.jsx(m,{[p]:"",ref:_,children:y})});h.displayName=u;function x(v){const g=s(n+"CollectionConsumer",v);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((k,S)=>b.indexOf(k.ref.current)-b.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return Z(x,"useCollection"),[{Provider:i,Slot:c,ItemSlot:h},x,o]}Z(en,"createCollection");var wn=new WeakMap,J,ae,_t=(ae=class extends Map{constructor(t){super(t);gn(this,J);jt(this,J,[...super.keys()]),wn.set(this,!0)}set(t,o){return wn.get(this)&&(this.has(t)?ne(this,J)[ne(this,J).indexOf(t)]=t:ne(this,J).push(t)),super.set(t,o),this}insert(t,o,r){const s=this.has(o),i=ne(this,J).length,l=tn(t);let d=l>=0?l:i+l;const c=d<0||d>=i?-1:d;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);l<0&&d++;const p=[...ne(this,J)];let m,h=!1;for(let x=d;x<u;x++)if(d===x){let v=p[x];p[x]===o&&(v=p[x+1]),s&&this.delete(o),m=this.get(v),this.set(o,r)}else{!h&&p[x-1]===o&&(h=!0);const v=p[h?x:x-1],g=m;m=this.get(v),this.delete(v),this.set(v,g)}return this}with(t,o,r){const s=new ae(this);return s.insert(t,o,r),s}before(t){const o=ne(this,J).indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s,o,r)}after(t){let o=ne(this,J).indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return jt(this,J,[]),super.clear()}delete(t){const o=super.delete(t);return o&&ne(this,J).splice(ne(this,J).indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=it(ne(this,J),t);if(o!==void 0)return this.get(o)}entryAt(t){const o=it(ne(this,J),t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return ne(this,J).indexOf(t)}keyAt(t){return it(ne(this,J),t)}from(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return s;r++}}findIndex(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return r;r++}return-1}filter(t,o){const r=[];let s=0;for(const i of this)Reflect.apply(t,o,[i,s,this])&&r.push(i),s++;return new ae(r)}map(t,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(t,o,[i,s,this])]),s++;return new ae(r)}reduce(...t){const[o,r]=t;let s=0,i=r??this.at(0);for(const l of this)s===0&&t.length===1?i=l:i=Reflect.apply(o,this,[i,l,s,this]),s++;return i}reduceRight(...t){const[o,r]=t;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&t.length===1?s=l:s=Reflect.apply(o,this,[s,l,i,this])}return s}toSorted(t){const o=[...this.entries()].sort(t);return new ae(o)}toReversed(){const t=new ae;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new ae(o)}slice(t,o){const r=new ae;let s=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=t;i<=s;i++){const l=this.keyAt(i),d=this.get(l);r.set(l,d)}return r}every(t,o){let r=0;for(const s of this){if(!Reflect.apply(t,o,[s,r,this]))return!1;r++}return!0}some(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return!0;r++}return!1}},J=new WeakMap,Z(ae,"OrderedDict"),ae);function it(n,e){if("at"in Array.prototype)return Array.prototype.at.call(n,e);const t=lo(n,e);return t===-1?void 0:n[t]}Z(it,"at");function lo(n,e){const t=n.length,o=tn(e),r=o>=0?o:t+o;return r<0||r>=t?-1:r}Z(lo,"toSafeIndex");function tn(n){return n!==n||n===0?0:Math.trunc(n)}Z(tn,"toSafeInteger");function Ti(n){const e=n+"CollectionProvider",[t,o]=xe(e),[r,s]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new _t,setItemMap:Z(()=>{},"setItemMap")}),i=Z(({state:b,...j})=>b?a.jsx(d,{...j,state:b}):a.jsx(l,{...j}),"CollectionProvider");i.displayName=e;const l=Z(b=>{const j=g();return a.jsx(d,{...b,state:j})},"CollectionInit");l.displayName=e+"Init";const d=Z(b=>{const{scope:j,children:_,state:k}=b,S=f.useRef(null),[E,N]=f.useState(null),R=se(S,N),[O,G]=k;return f.useEffect(()=>{if(!E)return;const K=fo(()=>{});return K.observe(E,{childList:!0,subtree:!0}),()=>{K.disconnect()}},[E]),a.jsx(r,{scope:j,itemMap:O,setItemMap:G,collectionRef:R,collectionRefObject:S,collectionElement:E,children:_})},"CollectionProviderImpl");d.displayName=e+"Impl";const c=n+"CollectionSlot",u=Ke(c),p=f.forwardRef((b,j)=>{const{scope:_,children:k}=b,S=s(c,_),E=se(j,S.collectionRef);return a.jsx(u,{ref:E,children:k})});p.displayName=c;const m=n+"CollectionItemSlot",h="data-radix-collection-item",x=Ke(m),v=f.forwardRef((b,j)=>{const{scope:_,children:k,...S}=b,E=f.useRef(null),[N,R]=f.useState(null),O=se(j,E,R),G=s(m,_),{setItemMap:K}=G,q=f.useRef(S);co(q.current,S)||(q.current=S);const H=q.current;return f.useEffect(()=>{const oe=H;return K(U=>N?U.has(N)?U.set(N,{...oe,element:N}).toSorted(At):(U.set(N,{...oe,element:N}),U.toSorted(At)):U),()=>{K(U=>!N||!U.has(N)?U:(U.delete(N),new _t(U)))}},[N,H,K]),a.jsx(x,{[h]:"",ref:O,children:k})});v.displayName=m;function g(){return f.useState(new _t)}Z(g,"useInitCollection");function w(b){const{itemMap:j}=s(n+"CollectionConsumer",b);return j}return Z(w,"useCollection"),[{Provider:i,Slot:p,ItemSlot:v},{createCollectionScope:o,useCollection:w,useInitCollection:g}]}Z(Ti,"createCollection");function co(n,e){if(n===e)return!0;if(typeof n!="object"||typeof e!="object"||n==null||e==null)return!1;const t=Object.keys(n),o=Object.keys(e);if(t.length!==o.length)return!1;for(const r of t)if(!Object.prototype.hasOwnProperty.call(e,r)||n[r]!==e[r])return!1;return!0}Z(co,"shallowEqual");function uo(n,e){return!!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}Z(uo,"isElementPreceding");function At(n,e){return!n[1].element||!e[1].element?0:uo(n[1].element,e[1].element)?-1:1}Z(At,"sortByDocumentPosition");function fo(n){return new MutationObserver(t=>{for(const o of t)if(o.type==="childList"){n();return}})}Z(fo,"getChildListObserver");var Ai=Object.defineProperty,$i=(n,e)=>Ai(n,"name",{value:e,configurable:!0}),Di=f.createContext(void 0);function nn(n){const e=f.useContext(Di);return n||e||"ltr"}$i(nn,"useDirection");var Oi=Object.defineProperty,on=(n,e)=>Oi(n,"name",{value:e,configurable:!0}),Mt=!1;function po(){const[n,e]=f.useState(Mt);return f.useEffect(()=>{Mt||(Mt=!0,e(!0))},[]),n}on(po,"useIsHydrated");var mo=Zo[" useSyncExternalStore ".trim().toString()];function ho(){return()=>{}}on(ho,"subscribe");function vo(){return mo(ho,()=>!0,()=>!1)}on(vo,"useIsHydratedModern");var Li=typeof mo=="function"?vo:po,zi=Object.defineProperty,je=(n,e)=>zi(n,"name",{value:e,configurable:!0}),St="rovingFocusGroup.onEntryFocus",Fi={bubbles:!1,cancelable:!0},ht="RovingFocusGroup",[$t,go,Gi]=en(ht),[Vi,xo]=xe(ht,[Gi]),[Hi,Bi]=Vi(ht),Ki=f.forwardRef(je(function(e,t){return a.jsx($t.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx($t.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(qi,{...e,ref:t})})})},"RovingFocusGroup")),qi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,h=f.useRef(null),x=se(t,h),v=nn(i),[g,w]=ft({prop:l,defaultProp:d??null,onChange:c,caller:ht}),[y,b]=f.useState(!1),j=Gt(u),_=go(o),k=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(St,j),()=>N.removeEventListener(St,j)},[j]),a.jsx(Hi,{scope:o,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:f.useCallback(N=>w(N),[w]),onItemShiftTab:f.useCallback(()=>b(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:f.useCallback(()=>E(N=>N-1),[]),children:a.jsx(X.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,N=>{const R=!k.current;if(N.target===N.currentTarget&&R&&!y){const O=new CustomEvent(St,Fi);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const G=_().filter(U=>U.focusable),K=G.find(U=>U.active),q=G.find(U=>U.id===g),oe=[K,q,...G].filter(Boolean).map(U=>U.ref.current);rn(oe,p)}}k.current=!1}),onBlur:V(e.onBlur,()=>b(!1))})})},"RovingFocusGroupImpl")),Ui="RovingFocusGroupItem",Wi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:l,...d}=e,c=le(),u=i||c,p=Bi(Ui,o),m=p.currentTabStopId===u,h=go(o),{onFocusableItemAdd:x,onFocusableItemRemove:v,currentTabStopId:g}=p,w=Li();return Xe(()=>{if(!(!w||!r))return x(),()=>v()},[w,r,x,v]),f.useEffect(()=>{if(!(w||!r))return x(),()=>v()},[w,r,x,v]),a.jsx($t.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:a.jsx(X.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:V(e.onMouseDown,y=>{r?p.onItemFocus(u):y.preventDefault()}),onFocus:V(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:V(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=yo(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let _=h().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const k=_.indexOf(y.currentTarget);_=p.loop?wo(_,k+1):_.slice(k+1)}setTimeout(()=>rn(_))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:g!=null}):l})})},"RovingFocusGroupItem")),Yi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bo(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}je(bo,"getDirectionAwareKey");function yo(n,e,t){const o=bo(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Yi[o]}je(yo,"getFocusIntent");function rn(n,e=!1){const t=document.activeElement;for(const o of n)if(o===t||(o.focus({preventScroll:e}),document.activeElement!==t))return}je(rn,"focusFirst");function wo(n,e){return n.map((t,o)=>n[(e+o)%n.length])}je(wo,"wrapArray");var Xi=Ki,Ji=Wi,Qi=Object.defineProperty,B=(n,e)=>Qi(n,"name",{value:e,configurable:!0}),Zi=["Enter"," "],el=["ArrowDown","PageUp","Home"],Co=["ArrowUp","PageDown","End"],tl=[...el,...Co],vt="Menu",[Dt,nl,ol]=en(vt),[ke,jo]=xe(vt,[ol,ut,xo]),sn=ut(),ko=xo(),[rl,Qe]=ke(vt),[sl,an]=ke(vt),al=B(n=>{const{__scopeMenu:e,open:t=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=n,l=sn(e),[d,c]=f.useState(null),u=f.useRef(!1),p=Gt(s),m=nn(r);return f.useEffect(()=>{const h=B(()=>{u.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},"handleKeyDown"),x=B(()=>u.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),f.useEffect(()=>{if(!t)return;const h=B(()=>p(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[t,p]),a.jsx(Vn,{...l,children:a.jsx(rl,{scope:e,open:t,onOpenChange:p,content:d,onContentChange:c,children:a.jsx(sl,{scope:e,onClose:f.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:u,dir:m,modal:i,children:o})})})},"Menu"),il=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e,s=sn(o);return a.jsx(Gn,{...s,...r,ref:t})},"MenuAnchor")),_o="MenuPortal",[ll,cl]=ke(_o,{forceMount:void 0}),dl=B(n=>{const{__scopeMenu:e,forceMount:t,children:o,container:r}=n,s=Qe(_o,e);return a.jsx(ll,{scope:e,forceMount:t,children:a.jsx(Ye,{present:t||s.open,children:a.jsx(Ln,{asChild:!0,container:r,children:o})})})},"MenuPortal"),me="MenuContent",[ul,Mo]=ke(me),fl=f.forwardRef(B(function(e,t){const o=cl(me,e.__scopeMenu),{forceMount:r=o.forceMount,...s}=e,i=Qe(me,e.__scopeMenu),l=an(me,e.__scopeMenu);return a.jsx(Dt.Provider,{scope:e.__scopeMenu,children:a.jsx(Ye,{present:r||i.open,children:a.jsx(Dt.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsx(pl,{...s,ref:t}):a.jsx(ml,{...s,ref:t})})})})},"MenuContent")),pl=f.forwardRef(B(function(e,t){const o=Qe(me,e.__scopeMenu),r=f.useRef(null),s=se(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Fr(i)},[]),a.jsx(So,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),ml=f.forwardRef(B(function(e,t){const o=Qe(me,e.__scopeMenu);return a.jsx(So,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),hl=Ke("MenuContent.ScrollLock"),So=f.forwardRef(B(function(e,t){const{__scopeMenu:o,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,disableOutsideScroll:v,...g}=e,w=Qe(me,o),y=an(me,o),b=sn(o),j=ko(o),_=nl(o),[k,S]=f.useState(null),E=f.useRef(null),N=se(t,E,w.onContentChange),R=f.useRef(0),O=f.useRef(""),G=f.useRef(0),K=f.useRef(null),q=f.useRef("right"),H=f.useRef(0),oe=v?Vr:f.Fragment,U=v?{as:hl,allowPinchZoom:!0}:void 0,Me=B(A=>{const re=O.current+A,C=_().filter(F=>!F.disabled),P=document.activeElement,D=C.find(F=>F.ref.current===P)?.textValue,I=C.map(F=>F.textValue),L=Ro(I,re,D),z=C.find(F=>F.textValue===L)?.ref.current;B((function F(W){O.current=W,window.clearTimeout(R.current),W!==""&&(R.current=window.setTimeout(()=>F(""),1e3))}),"updateSearch")(re),z&&setTimeout(()=>z.focus())},"handleTypeaheadSearch");f.useEffect(()=>()=>window.clearTimeout(R.current),[]),Gr();const te=f.useCallback(A=>q.current===K.current?.side&&Ao(A,K.current?.area),[]);return a.jsx(ul,{scope:o,searchRef:O,onItemEnter:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),onItemLeave:f.useCallback(A=>{te(A)||(E.current?.focus(),S(null))},[te]),onTriggerLeave:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),pointerGraceTimerRef:G,onPointerGraceIntentChange:f.useCallback(A=>{K.current=A},[]),children:a.jsx(oe,{...U,children:a.jsx(Hr,{asChild:!0,trapped:s,onMountAutoFocus:V(i,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsx(zn,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,children:a.jsx(Xi,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:V(c,A=>{y.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Fn,{role:"menu","aria-orientation":"vertical","data-state":No(w.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const C=A.target.closest("[data-radix-menu-content]")===A.currentTarget,P=A.ctrlKey||A.altKey||A.metaKey,D=A.key.length===1;C&&(A.key==="Tab"&&A.preventDefault(),!P&&D&&Me(A.key));const I=E.current;if(A.target!==I||!tl.includes(A.key))return;A.preventDefault();const z=_().filter(F=>!F.disabled).map(F=>F.ref.current);Co.includes(A.key)&&z.reverse(),Eo(z)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(R.current),O.current="")}),onPointerMove:V(e.onPointerMove,lt(A=>{const re=A.target,C=H.current!==A.clientX;if(A.currentTarget.contains(re)&&C){const P=A.clientX>H.current?"right":"left";q.current=P,H.current=A.clientX}}))})})})})})})},"MenuContentImpl")),vl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"group",...r,ref:t})},"MenuGroup")),gl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{...r,ref:t})},"MenuLabel")),Ot="MenuItem",Cn="menu.itemSelect",xl=f.forwardRef(B(function(e,t){const{disabled:o=!1,onSelect:r,...s}=e,i=f.useRef(null),l=an(Ot,e.__scopeMenu),d=Mo(Ot,e.__scopeMenu),c=se(t,i),u=f.useRef(!1),p=B(()=>{const m=i.current;if(!o&&m){const h=new CustomEvent(Cn,{bubbles:!0,cancelable:!0});m.addEventListener(Cn,x=>r?.(x),{once:!0}),Ur(m,h),h.defaultPrevented?u.current=!1:l.onClose()}},"handleSelect");return a.jsx(bl,{...s,ref:c,disabled:o,onClick:V(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),u.current=!0},onPointerUp:V(e.onPointerUp,m=>{u.current||m.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,m=>{o||m.target!==m.currentTarget||d.searchRef.current!==""&&m.key===" "||Zi.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})},"MenuItem")),bl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,disabled:r=!1,textValue:s,...i}=e,l=Mo(Ot,o),d=ko(o),c=f.useRef(null),u=se(t,c),[p,m]=f.useState(!1),[h,x]=f.useState("");return f.useEffect(()=>{const v=c.current;v&&x((v.textContent??"").trim())},[i.children]),a.jsx(Dt.ItemSlot,{scope:o,disabled:r,textValue:s??h,children:a.jsx(Ji,{asChild:!0,...d,focusable:!r,children:a.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:V(e.onPointerMove,lt(v=>{r?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,lt(v=>l.onItemLeave(v))),onFocus:V(e.onFocus,()=>m(!0)),onBlur:V(e.onBlur,()=>m(!1))})})})},"MenuItemImpl")),yl="MenuRadioGroup",[Yd,Xd]=ke(yl,{value:void 0,onValueChange:B(()=>{},"onValueChange")}),wl="MenuItemIndicator",[Jd,Qd]=ke(wl,{checked:!1}),Cl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),jl="MenuSub",[Zd,eu]=ke(jl);function No(n){return n?"open":"closed"}B(No,"getOpenState");function Io(n){return n==="indeterminate"}B(Io,"isIndeterminate");function kl(n){return Io(n)?"indeterminate":n?"checked":"unchecked"}B(kl,"getCheckedState");function Eo(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}B(Eo,"focusFirst");function Po(n,e){return n.map((t,o)=>n[(e+o)%n.length])}B(Po,"wrapArray");function Ro(n,e,t){const r=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=t?n.indexOf(t):-1;let i=Po(n,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==t));const d=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return d!==t?d:void 0}B(Ro,"getNextMatch");function To(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}B(To,"isPointInPolygon");function Ao(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return To(t,e)}B(Ao,"isPointerInGraceArea");function lt(n){return e=>e.pointerType==="mouse"?n(e):void 0}B(lt,"whenMouse");var _l=al,Ml=il,Sl=dl,Nl=fl,Il=vl,El=gl,Pl=xl,Rl=Cl,Tl=Object.defineProperty,be=(n,e)=>Tl(n,"name",{value:e,configurable:!0}),ln="DropdownMenu",[Al,tu]=xe(ln,[jo]),ye=jo(),[$l,$o]=Al(ln),Dl=be(n=>{const{__scopeDropdownMenu:e,children:t,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:l=!0}=n,d=ye(e),c=f.useRef(null),[u,p]=ft({prop:r,defaultProp:s??!1,onChange:i,caller:ln});return a.jsx($l,{scope:e,triggerId:le(),triggerRef:c,contentId:le(),open:u,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:l,children:a.jsx(_l,{...d,open:u,onOpenChange:p,dir:o,modal:l,children:t})})},"DropdownMenu"),Ol="DropdownMenuTrigger",Ll=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,disabled:r=!1,...s}=e,i=$o(Ol,o),l=ye(o),d=se(t,i.triggerRef);return a.jsx(Ml,{asChild:!0,...l,children:a.jsx(X.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:d,onPointerDown:V(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:V(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})},"DropdownMenuTrigger")),zl=be(n=>{const{__scopeDropdownMenu:e,...t}=n,o=ye(e);return a.jsx(Sl,{...o,...t})},"DropdownMenuPortal"),Fl="DropdownMenuContent",Gl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=$o(Fl,o),i=ye(o),l=f.useRef(!1);return a.jsx(Nl,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,d=>{l.current||s.triggerRef.current?.focus(),l.current=!1,d.preventDefault()}),onInteractOutside:V(e.onInteractOutside,d=>{const c=d.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),Vl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Il,{...s,...r,ref:t})},"DropdownMenuGroup")),Hl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(El,{...s,...r,ref:t})},"DropdownMenuLabel")),Bl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Pl,{...s,...r,ref:t})},"DropdownMenuItem")),Kl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Rl,{...s,...r,ref:t})},"DropdownMenuSeparator")),ql=Dl,Ul=Ll,Wl=zl,Yl=Gl,Xl=Vl,Jl=Hl,Ql=Bl,Zl=Kl;function gt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(ql,{"data-slot":"dropdown-menu",...t}),e[2]=t,e[3]=o):o=e[3],o}function xt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ul,{"data-slot":"dropdown-menu-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function bt(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,sideOffset:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=r===void 0?4:r;let i;e[4]!==t?(i=T("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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),e[4]=t,e[5]=i):i=e[5];let l;return e[6]!==o||e[7]!==s||e[8]!==i?(l=a.jsx(Wl,{children:a.jsx(Yl,{"data-slot":"dropdown-menu-content",sideOffset:s,className:i,...o})}),e[6]=o,e[7]=s,e[8]=i,e[9]=l):l=e[9],l}function jn(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Xl,{"data-slot":"dropdown-menu-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function de(n){const e=M.c(12);let t,o,r,s;e[0]!==n?({className:t,inset:o,variant:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"default":s;let l;e[5]!==t?(l=T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=l):l=e[6];let d;return e[7]!==o||e[8]!==r||e[9]!==l||e[10]!==i?(d=a.jsx(Ql,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:l,...r}),e[7]=o,e[8]=r,e[9]=l,e[10]=i,e[11]=d):d=e[11],d}function We(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,inset:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==t?(s=T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==r||e[8]!==s?(i=a.jsx(Jl,{"data-slot":"dropdown-menu-label","data-inset":o,className:s,...r}),e[6]=o,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Fe(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 my-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Zl,{"data-slot":"dropdown-menu-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var ec=Object.defineProperty,pe=(n,e)=>ec(n,"name",{value:e,configurable:!0}),Do="Avatar",[tc,nu]=xe(Do),nc=[0,()=>{}],[oc,Oo]=tc(Do),rc=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,...r}=e,[s,i]=f.useState("idle"),[l,d]=zo();return a.jsx(oc,{scope:o,imageLoadingStatus:s,setImageLoadingStatus:i,imageCount:l,setImageCount:d,children:a.jsx(X.span,{...r,ref:t})})},"Avatar")),sc="AvatarImage",ac=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,src:r,onLoadingStatusChange:s,...i}=e,l=Oo(sc,o);l.setImageCount;const d=Lo(r,{referrerPolicy:i.referrerPolicy,crossOrigin:i.crossOrigin,loadingStatus:l.imageLoadingStatus,setLoadingStatus:l.setImageLoadingStatus}),c=Gt(p=>{s?.(p)}),u=f.useRef(d);return Xe(()=>{const p=u.current;u.current=d,d!==p&&c(d)},[d,c]),d==="loaded"?a.jsx(X.img,{...i,ref:t,src:r}):null},"AvatarImage")),ic="AvatarFallback",lc=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,delayMs:r,...s}=e,i=Oo(ic,o),[l,d]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>d(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?a.jsx(X.span,{...s,ref:t}):null},"AvatarFallback"));function Lo(n,{loadingStatus:e,setLoadingStatus:t,referrerPolicy:o,crossOrigin:r}){return Xe(()=>{if(!n){t("error");return}const s=new window.Image,i=pe(d=>{const c=d.currentTarget;t(Lt(c))},"handleLoad"),l=pe(()=>t("error"),"handleError");return s.addEventListener("load",i),s.addEventListener("error",l),o&&(s.referrerPolicy=o),s.crossOrigin=r??null,s.src=n,t(Lt(s)),()=>{s.removeEventListener("load",i),s.removeEventListener("error",l),t("idle")}},[n,r,o,t]),e}pe(Lo,"useImageLoadingStatus");function Lt(n){return n.complete?n.naturalWidth>0?"loaded":"error":"loading"}pe(Lt,"getImageLoadingStatus");function zo(){return nc}pe(zo,"useImageCount");function cc(n){}pe(cc,"useUpdateImageCount");function dc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(rc,{"data-slot":"avatar",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function uc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("aspect-square size-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(ac,{"data-slot":"avatar-image",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function fc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-muted flex size-full items-center justify-center rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(lc,{"data-slot":"avatar-fallback",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function pc(){return mc}function mc(n){const e=n.trim().split(" ");if(e.length===0)return"";if(e.length===1)return e[0].charAt(0).toUpperCase();const t=e[0].charAt(0),o=e[e.length-1].charAt(0);return`${t}${o}`.toUpperCase()}function Fo(n){const e=M.c(22),{user:t,showEmail:o}=n,r=o===void 0?!1:o,s=pc();let i;e[0]!==t.avatar||e[1]!==t.name?(i=a.jsx(uc,{src:t.avatar,alt:t.name}),e[0]=t.avatar,e[1]=t.name,e[2]=i):i=e[2];let l;e[3]!==s||e[4]!==t.name?(l=s(t.name),e[3]=s,e[4]=t.name,e[5]=l):l=e[5];let d;e[6]!==l?(d=a.jsx(fc,{className:"bg-muted text-foreground rounded-full text-[11px] font-medium",children:l}),e[6]=l,e[7]=d):d=e[7];let c;e[8]!==i||e[9]!==d?(c=a.jsxs(dc,{className:"size-6 overflow-hidden rounded-full",children:[i,d]}),e[8]=i,e[9]=d,e[10]=c):c=e[10];let u;e[11]!==t.name?(u=a.jsx("span",{className:"truncate font-medium",children:t.name}),e[11]=t.name,e[12]=u):u=e[12];let p;e[13]!==r||e[14]!==t.email?(p=r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:t.email}),e[13]=r,e[14]=t.email,e[15]=p):p=e[15];let m;e[16]!==u||e[17]!==p?(m=a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[u,p]}),e[16]=u,e[17]=p,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=a.jsxs(a.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function hc(){return vc}function vc(){document.body.style.removeProperty("pointer-events")}function gc(n){const e=M.c(25),{auth:t}=n,{session:o,user:r}=t,{account:s,accounts:i}=ce().props,l=hc();let d;e[0]!==l?(d=()=>{l(),ee.flushAll()},e[0]=l,e[1]=d):d=e[1];const c=d;let u;e[2]!==r?(u=a.jsx(We,{className:"p-0 font-normal",children:a.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:a.jsx(Fo,{user:r,showEmail:!0})})}),e[2]=r,e[3]=u):u=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Fe,{}),e[4]=p):p=e[4];let m;e[5]!==s?.id||e[6]!==i||e[7]!==l?(m=i.length>1&&a.jsxs(a.Fragment,{children:[a.jsxs(jn,{children:[a.jsx(We,{className:"text-muted-foreground text-xs",children:"Accounts"}),i.map(_=>a.jsxs(de,{onSelect:()=>{l(),ee.post(er(_.id))},children:[a.jsx(Bn,{className:"mr-2"}),a.jsx("span",{className:"flex-1",children:_.name}),s?.id===_.id&&a.jsx(Ut,{className:"size-4"})]},_.id))]}),a.jsx(Fe,{})]}),e[5]=s?.id,e[6]=i,e[7]=l,e[8]=m):m=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=tr(),e[9]=h):h=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(aa,{className:"mr-2"}),e[10]=x):x=e[10];let v;e[11]!==l?(v=a.jsx(jn,{children:a.jsx(de,{asChild:!0,children:a.jsxs(fe,{className:"block w-full",href:h,as:"button",prefetch:!0,onClick:l,children:[x,"Settings"]})})}),e[11]=l,e[12]=v):v=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Fe,{}),e[13]=g):g=e[13];let w;e[14]!==o.id?(w=nr({id:o.id}),e[14]=o.id,e[15]=w):w=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Os,{className:"mr-2"}),e[16]=y):y=e[16];let b;e[17]!==c||e[18]!==w?(b=a.jsx(de,{asChild:!0,children:a.jsxs(fe,{className:"block w-full",method:"delete",href:w,as:"button",onClick:c,children:[y,"Log out"]})}),e[17]=c,e[18]=w,e[19]=b):b=e[19];let j;return e[20]!==b||e[21]!==u||e[22]!==m||e[23]!==v?(j=a.jsxs(a.Fragment,{children:[u,p,m,v,g,b]}),e[20]=b,e[21]=u,e[22]=m,e[23]=v,e[24]=j):j=e[24],j}function xc(){const n=M.c(13),{auth:e}=ce().props,{state:t}=mt(),o=ao();let r;n[0]!==e.user?(r=a.jsx(Fo,{user:e.user}),n[0]=e.user,n[1]=r):r=n[1];let s;n[2]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Un,{className:"ml-auto size-4"}),n[2]=s):s=n[2];let i;n[3]!==r?(i=a.jsx(xt,{asChild:!0,children:a.jsxs(ve,{size:"default",className:"data-[state=open]:bg-sidebar-accent group gap-2",children:[r,s]})}),n[3]=r,n[4]=i):i=n[4];const l=o?"bottom":t==="collapsed"?"left":"bottom";let d;n[5]!==e?(d=a.jsx(gc,{auth:e}),n[5]=e,n[6]=d):d=n[6];let c;n[7]!==l||n[8]!==d?(c=a.jsx(bt,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"end",side:l,children:d}),n[7]=l,n[8]=d,n[9]=c):c=n[9];let u;return n[10]!==i||n[11]!==c?(u=a.jsx(we,{children:a.jsx(he,{children:a.jsxs(gt,{children:[i,c]})})}),n[10]=i,n[11]=c,n[12]=u):u=n[12],u}var bc=Object.defineProperty,Ze=(n,e)=>bc(n,"name",{value:e,configurable:!0}),cn="Collapsible",[yc,ou]=xe(cn),[wc,dn]=yc(cn),Cc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:l,...d}=e,[c,u]=ft({prop:r,defaultProp:s??!1,onChange:l,caller:cn});return a.jsx(wc,{scope:o,disabled:i,contentId:le(),open:c,onOpenToggle:f.useCallback(()=>u(p=>!p),[u]),children:a.jsx(X.div,{"data-state":yt(c),"data-disabled":i?"":void 0,...d,ref:t})})},"Collapsible")),jc="CollapsibleTrigger",kc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,...r}=e,s=dn(jc,o);return a.jsx(X.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":yt(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:V(e.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Go="CollapsibleContent",_c=f.forwardRef(Ze(function(e,t){const{forceMount:o,...r}=e,s=dn(Go,e.__scopeCollapsible);return a.jsx(Ye,{present:o||s.open,children:({present:i})=>a.jsx(Mc,{...r,ref:t,present:i})})},"CollapsibleContent")),Mc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,present:r,children:s,...i}=e,l=dn(Go,o),[d,c]=f.useState(r),u=f.useRef(null),p=se(t,u),m=f.useRef(0),h=m.current,x=f.useRef(0),v=x.current,g=l.open||d,w=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Xe(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const j=b.getBoundingClientRect();m.current=j.height,x.current=j.width,w.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[l.open,r]),a.jsx(X.div,{"data-state":yt(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...i,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&s})},"CollapsibleContentImpl"));function yt(n){return n?"open":"closed"}Ze(yt,"getState");var Sc=Cc;function kn(n){const[e,t]=n.split("?"),o=[...new URLSearchParams(t)].filter(([,r])=>r!=="").sort(([r],[s])=>r.localeCompare(s));return`${e}?${new URLSearchParams(o).toString()}`}function un(n,e){return kn(n)===kn(e)}function Vo(n,e){return n.split("?")[0]===e.split("?")[0]}function ru(n){const e=M.c(84),{page:t}=n,o=ce(),{environment:r,saved_views:s}=o.props,i=s===void 0?[]:s,[l,d]=f.useState(!1),[c,u]=f.useState(""),[p,m]=f.useState(!0),[h,x]=f.useState(!0),[v,g]=f.useState(!1),w=r.application_id,y=r.id;let b;e[0]!==t?(b=Y=>Y.page===t,e[0]=t,e[1]=b):b=e[1];const j=i.filter(b);let _;e[2]!==o.url?(_=new URLSearchParams(o.url.split("?")[1]??""),e[2]=o.url,e[3]=_):_=e[3];const k=_;let S;e[4]!==w||e[5]!==y?(S=Y=>or(w,y,Y.id),e[4]=w,e[5]=y,e[6]=S):S=e[6];const E=S;let N;e[7]!==w||e[8]!==y||e[9]!==o.props.window||e[10]!==c||e[11]!==t||e[12]!==p||e[13]!==k||e[14]!==u||e[15]!==d||e[16]!==h?(N=()=>{const Y={};for(const[ue,mn]of k)ue!=="window"&&ue!=="q"&&mn&&(Y[ue]=mn);ee.post(rr(w,y),{name:c.trim(),page:t,query:k.get("q")??"",window:k.get("window")??o.props.window??"",pinned:p,shared:h,params:Y},{preserveScroll:!0}),d(!1),u("")},e[7]=w,e[8]=y,e[9]=o.props.window,e[10]=c,e[11]=t,e[12]=p,e[13]=k,e[14]=u,e[15]=d,e[16]=h,e[17]=N):N=e[17];const R=N;let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{navigator.clipboard?.writeText(globalThis.location.href),g(!0),globalThis.setTimeout(()=>g(!1),1500)},e[18]=O):O=e[18];const G=O,K="flex shrink-0 items-center gap-1",q=gt;let H;e[19]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(xt,{asChild:!0,children:a.jsxs(Ve,{variant:"outline",size:"sm",className:"h-8 gap-1.5 px-2",children:[a.jsx(Wt,{className:"size-3.5"}),a.jsx("span",{className:"label-caps text-foreground",children:"Views"}),a.jsx(Kn,{className:"size-3 opacity-60"})]})}),e[19]=H):H=e[19];const oe=bt,U="end",Me="w-64";let te;e[20]===Symbol.for("react.memo_cache_sentinel")?(te=a.jsx(We,{className:"label-caps",children:"Saved views"}),e[20]=te):te=e[20];const A=j.length===0&&a.jsx(de,{disabled:!0,children:"No saved views yet"});let re;e[21]!==o.url||e[22]!==E?(re=Y=>a.jsxs(de,{onSelect:()=>ee.visit(Y.url),className:T(un(o.url,Y.url)&&"bg-accent"),children:[a.jsx("span",{className:"truncate",children:Y.name}),Y.mine&&a.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-0.5",children:[a.jsx("button",{type:"button","aria-label":`${Y.pinned?"Unpin":"Pin"} ${Y.name}`,className:"text-muted-foreground hover:text-foreground p-0.5",onClick:ue=>{ue.preventDefault(),ue.stopPropagation(),ee.patch(E(Y),{pinned:!Y.pinned},{preserveScroll:!0})},children:Y.pinned?a.jsx(Ws,{className:"size-3.5"}):a.jsx(Xs,{className:"size-3.5"})}),a.jsx("button",{type:"button","aria-label":`Delete ${Y.name}`,className:"text-muted-foreground hover:text-destructive p-0.5",onClick:ue=>{ue.preventDefault(),ue.stopPropagation(),ee.delete(E(Y),{preserveScroll:!0})},children:a.jsx(va,{className:"size-3.5"})})]})]},Y.id),e[21]=o.url,e[22]=E,e[23]=re):re=e[23];const C=j.map(re);let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Fe,{}),e[24]=P):P=e[24];let D;e[25]!==d?(D=()=>d(!0),e[25]=d,e[26]=D):D=e[26];let I;e[27]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(os,{className:"size-3.5"}),e[27]=I):I=e[27];let L;e[28]!==D?(L=a.jsxs(de,{onSelect:D,children:[I,"Save current view…"]}),e[28]=D,e[29]=L):L=e[29];let z;e[30]!==oe||e[31]!==te||e[32]!==A||e[33]!==C||e[34]!==L?(z=a.jsxs(oe,{align:U,className:Me,children:[te,A,C,P,L]}),e[30]=oe,e[31]=te,e[32]=A,e[33]=C,e[34]=L,e[35]=z):z=e[35];let F;e[36]!==q||e[37]!==z||e[38]!==H?(F=a.jsxs(q,{children:[H,z]}),e[36]=q,e[37]=z,e[38]=H,e[39]=F):F=e[39];let W;e[40]!==v?(W=v?a.jsx(Ut,{className:"size-3.5"}):a.jsx($s,{className:"size-3.5"}),e[40]=v,e[41]=W):W=e[41];let ie;e[42]!==G||e[43]!==W?(ie=a.jsx(Ve,{variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Copy link to this view",onClick:G,children:W}),e[42]=G,e[43]=W,e[44]=ie):ie=e[44];let Se;e[45]!==F||e[46]!==ie?(Se=a.jsxs("div",{className:K,children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=Se):Se=e[47];let tt;e[48]===Symbol.for("react.memo_cache_sentinel")?(tt=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Save this view"}),a.jsx(Bt,{children:"Keeps the filters, window, and sort currently in the URL under a name you can link to."})]}),e[48]=tt):tt=e[48];let nt;e[49]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(kt,{htmlFor:"saved-view-name",children:"Name"}),e[49]=nt):nt=e[49];let Ne;e[50]!==u?(Ne=Y=>u(Y.target.value),e[50]=u,e[51]=Ne):Ne=e[51];let Ie;e[52]!==c||e[53]!==Ne?(Ie=a.jsxs("div",{className:"grid gap-1.5",children:[nt,a.jsx(Wr,{id:"saved-view-name",value:c,onChange:Ne,placeholder:"5xx checkout requests"})]}),e[52]=c,e[53]=Ne,e[54]=Ie):Ie=e[54];let Ee;e[55]!==m?(Ee=Y=>m(Y===!0),e[55]=m,e[56]=Ee):Ee=e[56];let Pe;e[57]!==p||e[58]!==Ee?(Pe=a.jsxs(kt,{className:"gap-2 font-normal",children:[a.jsx(xn,{checked:p,onCheckedChange:Ee}),"Pin to the sidebar"]}),e[57]=p,e[58]=Ee,e[59]=Pe):Pe=e[59];let Re;e[60]!==x?(Re=Y=>x(Y===!0),e[60]=x,e[61]=Re):Re=e[61];let Te;e[62]!==h||e[63]!==Re?(Te=a.jsxs(kt,{className:"gap-2 font-normal",children:[a.jsx(xn,{checked:h,onCheckedChange:Re}),"Share with the team"]}),e[62]=h,e[63]=Re,e[64]=Te):Te=e[64];let Ae;e[65]!==Ie||e[66]!==Pe||e[67]!==Te?(Ae=a.jsxs("div",{className:"flex flex-col gap-3",children:[Ie,Pe,Te]}),e[65]=Ie,e[66]=Pe,e[67]=Te,e[68]=Ae):Ae=e[68];let ot;e[69]!==c?(ot=c.trim(),e[69]=c,e[70]=ot):ot=e[70];const Ct=!ot;let $e;e[71]!==R||e[72]!==Ct?($e=a.jsx(Br,{children:a.jsx(Ve,{size:"sm",onClick:R,disabled:Ct,children:"Save view"})}),e[71]=R,e[72]=Ct,e[73]=$e):$e=e[73];let De;e[74]!==Ae||e[75]!==$e?(De=a.jsxs(Kt,{className:"sm:max-w-sm",children:[tt,Ae,$e]}),e[74]=Ae,e[75]=$e,e[76]=De):De=e[76];let Oe;e[77]!==l||e[78]!==d||e[79]!==De?(Oe=a.jsx(qt,{open:l,onOpenChange:d,children:De}),e[77]=l,e[78]=d,e[79]=De,e[80]=Oe):Oe=e[80];let rt;return e[81]!==Se||e[82]!==Oe?(rt=a.jsxs(a.Fragment,{children:[Se,Oe]}),e[81]=Se,e[82]=Oe,e[83]=rt):rt=e[83],rt}function Nc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Sc,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ic(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(kc,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ec(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_c,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=o):o=e[3],o}function fn(n,e,t){const o=n,r=e,s={window:t};return[{title:"Overview",href:He(o,r,s),icon:ks,group:"activity"},{title:"Requests",href:In(o,r,s),icon:Xr,group:"activity"},{title:"Jobs",href:En(o,r,s),icon:ba,group:"activity"},{title:"Scheduled tasks",href:ar(o,r,s),icon:us,group:"activity"},{title:"Commands",href:ir(o,r,s),icon:fa,group:"activity"},{title:"Exceptions",href:lr(o,r,s),icon:as,group:"activity"},{title:"Queries",href:Pn(o,r,s),icon:xs,group:"activity"},{title:"Spans",href:cr(o,r,s),icon:ma,group:"activity"},{title:"Profiles",href:dr(o,r,s),icon:Cs,group:"activity"},{title:"Transactions",href:ur(o,r,s),icon:Ms,group:"activity"},{title:"View renders",href:fr(o,r,s),icon:Ts,group:"activity"},{title:"Cache",href:pr(o,r,s),icon:Es,group:"activity"},{title:"Mail",href:mr(o,r,s),icon:zs,group:"activity"},{title:"Notifications",href:hr(o,r,s),icon:Hn,group:"activity"},{title:"Broadcasts",href:vr(o,r,s),icon:cs,group:"activity"},{title:"Outgoing requests",href:gr(o,r,s),icon:Qr,group:"activity"},{title:"LLM",href:xr(o,r,s),icon:da,group:"activity"},{title:"Storage",href:br(o,r,s),icon:Ns,group:"activity"},{title:"Logs",href:yr(o,r,s),icon:ys,group:"activity"},{title:"Deprecations",href:wr(o,r,s),icon:sr,group:"activity"},{title:"Visits",href:Cr(o,r,s),icon:Gs,group:"monitoring"},{title:"Users",href:jr(o,r,s),icon:Xt,group:"monitoring"},{title:"Tenants",href:kr(o,r,s),icon:Bn,group:"monitoring"},{title:"Deploys",href:_r(o,r),icon:ta,group:"monitoring"},{title:"Releases",href:Mr(o,r,s),icon:Bs,group:"monitoring"},{title:"Processes",href:Sr(o,r),icon:ra,group:"monitoring"},{title:"Alerts",href:Nr(o,r),icon:la,group:"monitoring"},{title:"Thresholds",href:Ir(o,r),icon:Kr,group:"settings"},{title:"Usage",href:Er(o,r),icon:ps,group:"settings"}]}const Ho=[{key:"activity",title:"Activity"},{key:"monitoring",title:"Monitoring"},{key:"settings",title:"Settings"}];function Pc(){const n=M.c(1),e=ce(),{environment:t}=e.props,o=e.url.split("?")[0];let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={},n[0]=r):r=n[0];const[s,i]=f.useState(r);if(!t)return null;const l=fn(t.application_id,t.id,e.props.window),d=(e.props.saved_views??[]).filter(Rc),c=p=>{const m=p.split("?")[0];return o===m||o.startsWith(m+"/")},u=l[0];return a.jsx(Zt,{className:"p-0",children:a.jsxs(we,{children:[a.jsx(he,{children:a.jsx(ve,{asChild:!0,isActive:o===u.href.split("?")[0],tooltip:{children:u.title},children:a.jsxs(fe,{href:u.href,prefetch:!0,children:[u.icon&&a.jsx(u.icon,{}),a.jsx("span",{children:u.title})]})})}),Ho.map(p=>{const m=l.filter(g=>g.group===p.key&&g!==u),h=m.some(g=>c(g.href)),x=s[p.key]??h,v=m[0]?.icon;return a.jsx(Nc,{open:x,onOpenChange:g=>i(w=>({...w,[p.key]:g})),className:"group/collapsible",children:a.jsxs(he,{children:[a.jsx(Ic,{asChild:!0,children:a.jsxs(ve,{tooltip:{children:p.title},className:T(h&&"text-sidebar-foreground"),children:[v&&a.jsx(v,{}),a.jsx("span",{children:p.title}),a.jsx(qn,{className:"ml-auto size-3.5 opacity-60 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Ec,{children:a.jsx(ji,{className:"mr-0 gap-0.5 pr-0",children:m.map(g=>a.jsxs(ki,{children:[a.jsx(yn,{asChild:!0,isActive:c(g.href),children:a.jsx(fe,{href:g.href,prefetch:!0,children:a.jsx("span",{children:g.title})})}),d.filter(w=>Vo(w.url,g.href)).map(w=>a.jsx(yn,{asChild:!0,size:"sm",className:"pl-4",isActive:un(e.url,w.url),children:a.jsxs(fe,{href:w.url,children:[a.jsx(Wt,{className:"opacity-60"}),a.jsx("span",{children:w.name})]})},w.id))]},g.title))})})]})},p.key)})]})})}function Rc(n){return n.pinned}function _n(n){const e=M.c(7),{name:t,className:o}=n;let r;e[0]!==o?(r=T("bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",o),e[0]=o,e[1]=r):r=e[1];let s;e[2]!==t?(s=t.slice(0,2).toUpperCase(),e[2]=t,e[3]=s):s=e[3];let i;return e[4]!==r||e[5]!==s?(i=a.jsx("span",{className:r,children:s}),e[4]=r,e[5]=s,e[6]=i):i=e[6],i}function Tc(){const n=M.c(44),{applications:e,environment:t,embedded:o}=ce().props;if(e.length===0)return null;let r;n[0]!==e||n[1]!==t?.application_id?(r=e.find(y=>y.id===t?.application_id)??e[0],n[0]=e,n[1]=t?.application_id,n[2]=r):r=n[2];const s=r;if(o){const y=t??s.environments[0];let b;n[3]!==s.id||n[4]!==y.id?(b=He(s.id,y.id),n[3]=s.id,n[4]=y.id,n[5]=b):b=n[5];let j;n[6]!==s.name?(j=a.jsx(_n,{name:s.name}),n[6]=s.name,n[7]=j):j=n[7];let _;n[8]!==s.name?(_=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[8]=s.name,n[9]=_):_=n[9];let k;n[10]!==y.name?(k=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:y.name}),n[10]=y.name,n[11]=k):k=n[11];let S;n[12]!==_||n[13]!==k?(S=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[_,k]}),n[12]=_,n[13]=k,n[14]=S):S=n[14];let E;return n[15]!==b||n[16]!==j||n[17]!==S?(E=a.jsx(we,{children:a.jsx(he,{children:a.jsx(ve,{size:"lg",asChild:!0,className:"border-0 py-2 pr-3 pl-2 hover:bg-transparent",children:a.jsxs(fe,{href:b,prefetch:!0,children:[j,S]})})})}),n[15]=b,n[16]=j,n[17]=S,n[18]=E):E=n[18],E}let i;n[19]!==s.name?(i=a.jsx(_n,{name:s.name}),n[19]=s.name,n[20]=i):i=n[20];let l;n[21]!==s.name?(l=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[21]=s.name,n[22]=l):l=n[22];const d=t?t.name:`${s.environments.length} environment${s.environments.length===1?"":"s"}`;let c;n[23]!==d?(c=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:d}),n[23]=d,n[24]=c):c=n[24];let u;n[25]!==l||n[26]!==c?(u=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[l,c]}),n[25]=l,n[26]=c,n[27]=u):u=n[27];let p;n[28]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Un,{className:"size-3.5 opacity-60"}),n[28]=p):p=n[28];let m;n[29]!==i||n[30]!==u?(m=a.jsx(xt,{asChild:!0,children:a.jsxs(ve,{size:"lg",className:"data-[state=open]:bg-sidebar-accent hover:bg-sidebar-accent border-0 py-2 pr-3 pl-2",children:[i,u,p]})}),n[29]=i,n[30]=u,n[31]=m):m=n[31];let h;if(n[32]!==e||n[33]!==t?.id){let y;n[35]!==t?.id?(y=b=>a.jsxs("div",{children:[a.jsx(We,{className:"label-caps",children:b.name}),b.environments.map(j=>a.jsxs(de,{onSelect:()=>ee.visit(He(b.id,j.id)),children:[a.jsx(qr,{lastSeenAt:j.paused?null:j.last_seen_at,thresholdMs:6e5}),a.jsx("span",{className:"flex-1",children:j.name}),j.id===t?.id&&a.jsx(Ut,{className:"size-3.5"})]},j.id))]},b.id),n[35]=t?.id,n[36]=y):y=n[36],h=e.map(y),n[32]=e,n[33]=t?.id,n[34]=h}else h=n[34];let x;n[37]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Fe,{}),n[37]=x):x=n[37];let v;n[38]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsxs(de,{onSelect:Ac,children:[a.jsx(Zs,{className:"size-3.5"}),"Add application"]}),n[38]=v):v=n[38];let g;n[39]!==h?(g=a.jsxs(bt,{align:"start",className:"w-(--radix-dropdown-menu-trigger-width) min-w-64",children:[h,x,v]}),n[39]=h,n[40]=g):g=n[40];let w;return n[41]!==g||n[42]!==m?(w=a.jsx(we,{children:a.jsx(he,{children:a.jsxs(gt,{children:[m,g]})})}),n[41]=g,n[42]=m,n[43]=w):w=n[43],w}function Ac(){return ee.visit(Pr())}function $c(n){const e=M.c(4);let t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx("path",{d:"M 236 324.989 L 236 404.978 496.750 405.239 L 757.500 405.500 765.665 408.577 C 777.060 412.870, 784.110 417.355, 792.381 425.574 C 833.878 466.807, 812.048 538.520, 752.263 557.363 C 737.593 561.987, 732.018 562.115, 560.250 561.798 C 471.562 561.634, 399 561.557, 399 561.626 C 399 561.695, 406.313 568.648, 415.250 577.077 C 436.108 596.747, 508.719 665.823, 525 681.483 C 612.468 765.614, 693.318 845.033, 770.500 922.639 L 840.500 993.023 951.250 993.011 C 1012.163 993.005, 1062 992.732, 1062 992.404 C 1062 992.076, 1056.942 986.113, 1050.761 979.154 C 1039.889 966.913, 1035.649 962.220, 1005.428 928.979 C 997.688 920.465, 984.624 906.075, 976.396 897 C 933.021 849.161, 888.142 799.872, 868.953 779 C 857.071 766.075, 841.562 749.200, 834.490 741.500 C 827.417 733.800, 814.456 719.721, 805.686 710.213 C 796.916 700.705, 789.994 692.673, 790.303 692.363 C 790.613 692.054, 795.578 690.983, 801.338 689.983 C 895.506 673.637, 967.601 596.363, 980.578 497.866 C 982.637 482.242, 982.086 446.289, 979.576 432.500 C 960.757 329.105, 884.022 255.740, 784.576 246.063 C 777.168 245.342, 687.144 245, 504.826 245 L 236 245 236 324.989",fill:"currentColor"}),o=a.jsx("path",{d:"M 243.550 507.838 C 244.072 508.299, 247.425 510.859, 251 513.526 C 294.327 545.849, 358.703 617.861, 503.521 796 C 560.192 865.711, 593.994 908.954, 627.414 954.500 L 642.090 974.500 689.045 975 C 714.871 975.275, 736 975.275, 735.999 975 C 735.994 973.773, 698.564 930.428, 663.901 891.507 C 571.946 788.257, 436.131 649.261, 367.500 588.162 C 325.285 550.581, 286.033 524.106, 252.457 510.567 C 243.188 506.829, 241.991 506.462, 243.550 507.838 M 236 520 C 236 521.800, 236.667 522, 242.655 522 C 249.247 522, 249.293 521.981, 247.500 520 C 246.164 518.524, 244.420 518, 240.845 518 C 236.667 518, 236 518.275, 236 520 M 236 532.500 L 236 537 249.067 537 L 262.134 537 258.446 532.500 L 254.759 528 245.380 528 L 236 528 236 532.500 M 236 553.500 L 236 562 258.500 562 C 270.875 562, 280.991 561.663, 280.981 561.250 C 280.970 560.837, 278.237 557.013, 274.908 552.750 L 268.854 545 252.427 545 L 236 545 236 553.500 M 235.909 585 C 235.859 589.950, 235.777 595.462, 235.727 597.250 L 235.636 600.500 273.840 600.762 L 312.044 601.024 302.772 588.569 L 293.500 576.114 264.750 576.057 L 236 576 235.909 585 M 235.570 627.477 C 235.212 629.389, 234.979 637.714, 235.053 645.977 L 235.188 661 295.571 661 L 355.955 661 342.326 642.500 L 328.698 624 282.460 624 L 236.223 624 235.570 627.477 M 236 717.750 L 236 741.500 324.591 741.326 C 373.315 741.230, 413.343 740.990, 413.541 740.792 C 413.739 740.594, 406.184 729.985, 396.752 717.216 L 379.603 694 307.802 694 L 236 694 236 717.750 M 236.235 813.250 L 236.500 842.500 362.358 842.754 C 472.189 842.975, 488.146 842.822, 487.658 841.552 C 487.351 840.751, 477.621 827.475, 466.036 812.048 L 444.973 784 340.471 784 L 235.970 784 236.235 813.250 M 235.683 898.750 C 234.872 900.147, 235.511 973.844, 236.341 974.675 C 237.491 975.825, 392.185 976.287, 495.665 975.450 L 581.829 974.753 578.959 970.126 C 575.681 964.845, 552.884 930.825, 539.500 911.243 L 530.500 898.075 383.309 898.038 C 302.354 898.017, 235.922 898.337, 235.683 898.750",fill:"#FFC22B"}),e[0]=t,e[1]=o):(t=e[0],o=e[1]);let r;return e[2]!==n?(r=a.jsxs("svg",{viewBox:"213 184 870 870",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[t,o]}),e[2]=n,e[3]=r):r=e[3],r}function Dc(){const n=M.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"hidden aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-[#0F1729] text-white group-data-[collapsible=icon]:flex",children:a.jsx($c,{className:"size-6"})}),a.jsx($r,{className:"h-4 w-auto group-data-[collapsible=icon]:hidden"})]}),n[0]=e):e=n[0],e}const Oc=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Wn}],{title:"Issues",href:Be(),icon:Yn},{title:"Alerts",href:Rr(),icon:Hn},...n?[]:[{title:"Integrations",href:Rn(),icon:Xn},{title:"Members",href:Tn(),icon:Xt}]],Lc=n=>[{title:"Documentation",href:n?"https://railwatch.rebulk.com/docs":"/docs",icon:ts}];function zc(){const n=M.c(23),{environment:e,applications:t,embedded:o}=ce().props;let r;n[0]!==t.length?(r=a.jsx(gi,{className:"border-sidebar-border gap-0 border-b p-1.5",children:t.length>0?a.jsx(Tc,{}):a.jsx(we,{children:a.jsx(he,{children:a.jsx(ve,{size:"lg",asChild:!0,children:a.jsx(fe,{href:ct(),prefetch:!0,children:a.jsx(Dc,{})})})})})}),n[0]=t.length,n[1]=r):r=n[1];let s;n[2]!==e?(s=e&&a.jsx(Pc,{}),n[2]=e,n[3]=s):s=n[3];const i=!!o;let l;n[4]!==i?(l=Oc(i),n[4]=i,n[5]=l):l=n[5];const d=e?"Account":"";let c;n[6]!==l||n[7]!==d?(c=a.jsx(Pi,{items:l,label:d}),n[6]=l,n[7]=d,n[8]=c):c=n[8];let u;n[9]!==s||n[10]!==c?(u=a.jsxs(bi,{className:"gap-0 p-1.5",children:[s,c]}),n[9]=s,n[10]=c,n[11]=u):u=n[11];const p=!!o;let m;n[12]!==p?(m=Lc(p),n[12]=p,n[13]=m):m=n[13];let h;n[14]!==m?(h=a.jsx(Ii,{items:m,className:"mt-auto"}),n[14]=m,n[15]=h):h=n[15];let x;n[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(xc,{}),n[16]=x):x=n[16];let v;n[17]!==h?(v=a.jsxs(xi,{children:[h,x]}),n[17]=h,n[18]=v):v=n[18];let g;return n[19]!==r||n[20]!==v||n[21]!==u?(g=a.jsxs(mi,{collapsible:"icon",variant:"sidebar",children:[r,u,v]}),n[19]=r,n[20]=v,n[21]=u,n[22]=g):g=n[22],g}function Fc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t}),e[2]=t,e[3]=o):o=e[3],o}function Gc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Vc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("inline-flex items-center gap-1.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Hc(n){const e=M.c(10);let t,o,r;e[0]!==n?({asChild:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=t?dt:"a";let i;e[4]!==o?(i=T("hover:text-foreground transition-colors",o),e[4]=o,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==r||e[8]!==i?(l=a.jsx(s,{"data-slot":"breadcrumb-link",className:i,...r}),e[6]=s,e[7]=r,e[8]=i,e[9]=l):l=e[9],l}function Bc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-normal",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Kc(n){const e=M.c(12);let t,o,r;e[0]!==n?({children:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("[&>svg]:size-3.5",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]!==t?(i=t??a.jsx(qn,{}),e[6]=t,e[7]=i):i=e[7];let l;return e[8]!==r||e[9]!==s||e[10]!==i?(l=a.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s,...r,children:i}),e[8]=r,e[9]=s,e[10]=i,e[11]=l):l=e[11],l}function qc(n){const e=M.c(4),{breadcrumbs:t}=n;let o;e[0]!==t?(o=t.length>0&&a.jsx(Fc,{children:a.jsx(Gc,{children:t.map((s,i)=>{const l=i===t.length-1;return a.jsxs(f.Fragment,{children:[a.jsx(Vc,{children:l?a.jsx(Bc,{children:s.title}):a.jsx(Hc,{asChild:!0,children:a.jsx(fe,{href:s.href,children:s.title})})}),!l&&a.jsx(Kc,{})]},i)})})}),e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(a.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function Uc(){const n=M.c(21),e=ce(),{environment:t}=e.props;if(!t)return null;let o,r,s,i,l,d;if(n[0]!==t.application_id||n[1]!==t.id||n[2]!==e.props.saved_views||n[3]!==e.props.window||n[4]!==e.url){const p=fn(t.application_id,t.id,e.props.window),m=e.url.split("?")[0],h=(e.props.saved_views??[]).filter(Yc),x=p.filter(g=>{const w=g.href.split("?")[0];return m===w||m.startsWith(w+"/")}).sort(Wc)[0]??p[0];r=gt;let v;n[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(Kn,{className:"size-3.5 shrink-0 opacity-60"}),n[11]=v):v=n[11],d=a.jsxs(xt,{className:"flex min-w-0 items-center gap-1 text-sm font-medium",children:[x.icon&&a.jsx(x.icon,{className:"size-4 shrink-0 opacity-70"}),a.jsx("span",{className:"truncate",children:x.title}),v]}),o=bt,s="start",i="max-h-[70vh] w-60 overflow-y-auto",l=Ho.map((g,w)=>a.jsxs("div",{children:[w>0&&a.jsx(Fe,{}),a.jsx(We,{className:"label-caps",children:g.title}),p.filter(y=>y.group===g.key).map(y=>a.jsxs("div",{children:[a.jsxs(de,{onSelect:()=>ee.visit(y.href),className:y===x?"bg-accent":void 0,children:[y.icon&&a.jsx(y.icon,{className:"size-4"}),y.title]}),h.filter(b=>Vo(b.url,y.href)).map(b=>a.jsxs(de,{onSelect:()=>ee.visit(b.url),className:T("pl-8 text-xs",un(e.url,b.url)&&"bg-accent"),children:[a.jsx(Wt,{className:"size-3.5 opacity-60"}),b.name]},b.id))]},y.title))]},g.key)),n[0]=t.application_id,n[1]=t.id,n[2]=e.props.saved_views,n[3]=e.props.window,n[4]=e.url,n[5]=o,n[6]=r,n[7]=s,n[8]=i,n[9]=l,n[10]=d}else o=n[5],r=n[6],s=n[7],i=n[8],l=n[9],d=n[10];let c;n[12]!==o||n[13]!==s||n[14]!==i||n[15]!==l?(c=a.jsx(o,{align:s,className:i,children:l}),n[12]=o,n[13]=s,n[14]=i,n[15]=l,n[16]=c):c=n[16];let u;return n[17]!==r||n[18]!==d||n[19]!==c?(u=a.jsxs(r,{children:[d,c]}),n[17]=r,n[18]=d,n[19]=c,n[20]=u):u=n[20],u}function Wc(n,e){return e.href.length-n.href.length}function Yc(n){return n.pinned}function Xc(n){const e=M.c(16),{breadcrumbs:t,onOpenCommandPalette:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,{environment:i}=ce().props;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(hi,{className:"text-muted-foreground -ml-1"}),e[2]=l):l=e[2];let d;e[3]!==s?(d=a.jsx("div",{className:"text-muted-foreground hidden min-w-0 text-xs md:block",children:a.jsx(qc,{breadcrumbs:s})}),e[3]=s,e[4]=d):d=e[4];let c;e[5]!==s||e[6]!==i?(c=a.jsx("div",{className:"min-w-0 md:hidden",children:i?a.jsx(Uc,{}):a.jsx("span",{className:"truncate text-sm font-medium",children:s[s.length-1]?.title})}),e[5]=s,e[6]=i,e[7]=c):c=e[7];let u;e[8]!==d||e[9]!==c?(u=a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[l,d,c]}),e[8]=d,e[9]=c,e[10]=u):u=e[10];let p;e[11]!==o?(p=o&&a.jsxs(Ve,{type:"button",variant:"outline",size:"sm",className:"text-muted-foreground h-8 gap-1.5",onClick:o,children:[a.jsx(Yt,{className:"size-3.5"}),a.jsx("span",{className:"hidden sm:inline",children:"Search"}),a.jsx("kbd",{className:"bg-muted hidden rounded px-1 py-0.5 font-mono text-[10px] sm:inline",children:"⌘K"})]}),e[11]=o,e[12]=p):p=e[12];let m;return e[13]!==u||e[14]!==p?(m=a.jsxs("header",{className:"bg-background/80 sticky top-0 z-20 flex h-12 shrink-0 items-center justify-between gap-2 border-b px-3 backdrop-blur md:h-11 md:border-0 md:bg-transparent md:px-6 md:pt-2 md:backdrop-blur-none",children:[u,p]}),e[13]=u,e[14]=p,e[15]=m):m=e[15],m}var Mn=1,Jc=.9,Qc=.8,Zc=.17,Nt=.1,It=.999,ed=.9999,td=.99,nd=/[\\\/_+.#"@\[\(\{&]/,od=/[\\\/_+.#"@\[\(\{&]/g,rd=/[\s-]/,Bo=/[\s-]/g;function zt(n,e,t,o,r,s,i){if(s===e.length)return r===n.length?Mn:td;var l=`${r},${s}`;if(i[l]!==void 0)return i[l];for(var d=o.charAt(s),c=t.indexOf(d,r),u=0,p,m,h,x;c>=0;)p=zt(n,e,t,o,c+1,s+1,i),p>u&&(c===r?p*=Mn:nd.test(n.charAt(c-1))?(p*=Qc,h=n.slice(r,c-1).match(od),h&&r>0&&(p*=Math.pow(It,h.length))):rd.test(n.charAt(c-1))?(p*=Jc,x=n.slice(r,c-1).match(Bo),x&&r>0&&(p*=Math.pow(It,x.length))):(p*=Zc,r>0&&(p*=Math.pow(It,c-r))),n.charAt(c)!==e.charAt(s)&&(p*=ed)),(p<Nt&&t.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&t.charAt(c-1)!==o.charAt(s))&&(m=zt(n,e,t,o,c+1,s+2,i),m*Nt>p&&(p=m*Nt)),p>u&&(u=p),c=t.indexOf(d,c+1);return i[l]=u,u}function Sn(n){return n.toLowerCase().replace(Bo," ")}function sd(n,e,t){return n=t&&t.length>0?`${n+" "+t.join(" ")}`:n,zt(n,e,Sn(n),Sn(e),0,0,{})}var Ge='[cmdk-group=""]',Et='[cmdk-group-items=""]',ad='[cmdk-group-heading=""]',Ko='[cmdk-item=""]',Nn=`${Ko}:not([aria-disabled="true"])`,Ft="cmdk-item-select",Le="data-value",id=(n,e,t)=>sd(n,e,t),qo=f.createContext(void 0),et=()=>f.useContext(qo),Uo=f.createContext(void 0),pn=()=>f.useContext(Uo),Wo=f.createContext(void 0),Yo=f.forwardRef((n,e)=>{let t=ze(()=>{var C,P;return{search:"",value:(P=(C=n.value)!=null?C:n.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=ze(()=>new Set),r=ze(()=>new Map),s=ze(()=>new Map),i=ze(()=>new Set),l=Xo(n),{label:d,children:c,value:u,onValueChange:p,filter:m,shouldFilter:h,loop:x,disablePointerSelection:v=!1,vimBindings:g=!0,...w}=n,y=le(),b=le(),j=le(),_=f.useRef(null),k=xd();Ce(()=>{if(u!==void 0){let C=u.trim();t.current.value=C,S.emit()}},[u]),Ce(()=>{k(6,K)},[]);let S=f.useMemo(()=>({subscribe:C=>(i.current.add(C),()=>i.current.delete(C)),snapshot:()=>t.current,setState:(C,P,D)=>{var I,L,z,F;if(!Object.is(t.current[C],P)){if(t.current[C]=P,C==="search")G(),R(),k(1,O);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(j);W?W.focus():(I=document.getElementById(y))==null||I.focus()}if(k(7,()=>{var W;t.current.selectedItemId=(W=q())==null?void 0:W.id,S.emit()}),D||k(5,K),((L=l.current)==null?void 0:L.value)!==void 0){let W=P??"";(F=(z=l.current).onValueChange)==null||F.call(z,W);return}}S.emit()}},emit:()=>{i.current.forEach(C=>C())}}),[]),E=f.useMemo(()=>({value:(C,P,D)=>{var I;P!==((I=s.current.get(C))==null?void 0:I.value)&&(s.current.set(C,{value:P,keywords:D}),t.current.filtered.items.set(C,N(P,D)),k(2,()=>{R(),S.emit()}))},item:(C,P)=>(o.current.add(C),P&&(r.current.has(P)?r.current.get(P).add(C):r.current.set(P,new Set([C]))),k(3,()=>{G(),R(),t.current.value||O(),S.emit()}),()=>{s.current.delete(C),o.current.delete(C),t.current.filtered.items.delete(C);let D=q();k(4,()=>{G(),D?.getAttribute("id")===C&&O(),S.emit()})}),group:C=>(r.current.has(C)||r.current.set(C,new Set),()=>{s.current.delete(C),r.current.delete(C)}),filter:()=>l.current.shouldFilter,label:d||n["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:j,labelId:b,listInnerRef:_}),[]);function N(C,P){var D,I;let L=(I=(D=l.current)==null?void 0:D.filter)!=null?I:id;return C?L(C,t.current.search,P):0}function R(){if(!t.current.search||l.current.shouldFilter===!1)return;let C=t.current.filtered.items,P=[];t.current.filtered.groups.forEach(I=>{let L=r.current.get(I),z=0;L.forEach(F=>{let W=C.get(F);z=Math.max(W,z)}),P.push([I,z])});let D=_.current;H().sort((I,L)=>{var z,F;let W=I.getAttribute("id"),ie=L.getAttribute("id");return((z=C.get(ie))!=null?z:0)-((F=C.get(W))!=null?F:0)}).forEach(I=>{let L=I.closest(Et);L?L.appendChild(I.parentElement===L?I:I.closest(`${Et} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Et} > *`))}),P.sort((I,L)=>L[1]-I[1]).forEach(I=>{var L;let z=(L=_.current)==null?void 0:L.querySelector(`${Ge}[${Le}="${encodeURIComponent(I[0])}"]`);z?.parentElement.appendChild(z)})}function O(){let C=H().find(D=>D.getAttribute("aria-disabled")!=="true"),P=C?.getAttribute(Le);S.setState("value",P||void 0)}function G(){var C,P,D,I;if(!t.current.search||l.current.shouldFilter===!1){t.current.filtered.count=o.current.size;return}t.current.filtered.groups=new Set;let L=0;for(let z of o.current){let F=(P=(C=s.current.get(z))==null?void 0:C.value)!=null?P:"",W=(I=(D=s.current.get(z))==null?void 0:D.keywords)!=null?I:[],ie=N(F,W);t.current.filtered.items.set(z,ie),ie>0&&L++}for(let[z,F]of r.current)for(let W of F)if(t.current.filtered.items.get(W)>0){t.current.filtered.groups.add(z);break}t.current.filtered.count=L}function K(){var C,P,D;let I=q();I&&(((C=I.parentElement)==null?void 0:C.firstChild)===I&&((D=(P=I.closest(Ge))==null?void 0:P.querySelector(ad))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function q(){var C;return(C=_.current)==null?void 0:C.querySelector(`${Ko}[aria-selected="true"]`)}function H(){var C;return Array.from(((C=_.current)==null?void 0:C.querySelectorAll(Nn))||[])}function oe(C){let P=H()[C];P&&S.setState("value",P.getAttribute(Le))}function U(C){var P;let D=q(),I=H(),L=I.findIndex(F=>F===D),z=I[L+C];(P=l.current)!=null&&P.loop&&(z=L+C<0?I[I.length-1]:L+C===I.length?I[0]:I[L+C]),z&&S.setState("value",z.getAttribute(Le))}function Me(C){let P=q(),D=P?.closest(Ge),I;for(;D&&!I;)D=C>0?vd(D,Ge):gd(D,Ge),I=D?.querySelector(Nn);I?S.setState("value",I.getAttribute(Le)):U(C)}let te=()=>oe(H().length-1),A=C=>{C.preventDefault(),C.metaKey?te():C.altKey?Me(1):U(1)},re=C=>{C.preventDefault(),C.metaKey?oe(0):C.altKey?Me(-1):U(-1)};return f.createElement(X.div,{ref:e,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:C=>{var P;(P=w.onKeyDown)==null||P.call(w,C);let D=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||D))switch(C.key){case"n":case"j":{g&&C.ctrlKey&&A(C);break}case"ArrowDown":{A(C);break}case"p":case"k":{g&&C.ctrlKey&&re(C);break}case"ArrowUp":{re(C);break}case"Home":{C.preventDefault(),oe(0);break}case"End":{C.preventDefault(),te();break}case"Enter":{C.preventDefault();let I=q();if(I){let L=new Event(Ft);I.dispatchEvent(L)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:yd},d),wt(n,C=>f.createElement(Uo.Provider,{value:S},f.createElement(qo.Provider,{value:E},C))))}),ld=f.forwardRef((n,e)=>{var t,o;let r=le(),s=f.useRef(null),i=f.useContext(Wo),l=et(),d=Xo(n),c=(o=(t=d.current)==null?void 0:t.forceMount)!=null?o:i?.forceMount;Ce(()=>{if(!c)return l.item(r,i?.id)},[c]);let u=Jo(r,s,[n.value,n.children,s],n.keywords),p=pn(),m=ge(k=>k.value&&k.value===u.current),h=ge(k=>c||l.filter()===!1?!0:k.search?k.filtered.items.get(r)>0:!0);f.useEffect(()=>{let k=s.current;if(!(!k||n.disabled))return k.addEventListener(Ft,x),()=>k.removeEventListener(Ft,x)},[h,n.onSelect,n.disabled]);function x(){var k,S;v(),(S=(k=d.current).onSelect)==null||S.call(k,u.current)}function v(){p.setState("value",u.current,!0)}if(!h)return null;let{disabled:g,value:w,onSelect:y,forceMount:b,keywords:j,..._}=n;return f.createElement(X.div,{ref:qe(s,e),..._,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:x},n.children)}),cd=f.forwardRef((n,e)=>{let{heading:t,children:o,forceMount:r,...s}=n,i=le(),l=f.useRef(null),d=f.useRef(null),c=le(),u=et(),p=ge(h=>r||u.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Ce(()=>u.group(i),[]),Jo(i,l,[n.value,n.heading,d]);let m=f.useMemo(()=>({id:i,forceMount:r}),[r]);return f.createElement(X.div,{ref:qe(l,e),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},t&&f.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:c},t),wt(n,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?c:void 0},f.createElement(Wo.Provider,{value:m},h))))}),dd=f.forwardRef((n,e)=>{let{alwaysRender:t,...o}=n,r=f.useRef(null),s=ge(i=>!i.search);return!t&&!s?null:f.createElement(X.div,{ref:qe(r,e),...o,"cmdk-separator":"",role:"separator"})}),ud=f.forwardRef((n,e)=>{let{onValueChange:t,...o}=n,r=n.value!=null,s=pn(),i=ge(c=>c.search),l=ge(c=>c.selectedItemId),d=et();return f.useEffect(()=>{n.value!=null&&s.setState("search",n.value)},[n.value]),f.createElement(X.input,{ref:e,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:r?n.value:i,onChange:c=>{r||s.setState("search",c.target.value),t?.(c.target.value)}})}),fd=f.forwardRef((n,e)=>{let{children:t,label:o="Suggestions",...r}=n,s=f.useRef(null),i=f.useRef(null),l=ge(c=>c.selectedItemId),d=et();return f.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=c.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(p),m.unobserve(c)}}},[]),f.createElement(X.div,{ref:qe(s,e),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:d.listId},wt(n,c=>f.createElement("div",{ref:qe(i,d.listInnerRef),"cmdk-list-sizer":""},c)))}),pd=f.forwardRef((n,e)=>{let{open:t,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...l}=n;return f.createElement(An,{open:t,onOpenChange:o},f.createElement(Dn,{container:i},f.createElement(On,{"cmdk-overlay":"",className:r}),f.createElement($n,{"aria-label":n.label,"cmdk-dialog":"",className:s},f.createElement(Yo,{ref:e,...l}))))}),md=f.forwardRef((n,e)=>ge(t=>t.filtered.count===0)?f.createElement(X.div,{ref:e,...n,"cmdk-empty":"",role:"presentation"}):null),hd=f.forwardRef((n,e)=>{let{progress:t,children:o,label:r="Loading...",...s}=n;return f.createElement(X.div,{ref:e,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},wt(n,i=>f.createElement("div",{"aria-hidden":!0},i)))}),_e=Object.assign(Yo,{List:fd,Item:ld,Input:ud,Group:cd,Separator:dd,Dialog:pd,Empty:md,Loading:hd});function vd(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return t;t=t.nextElementSibling}}function gd(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return t;t=t.previousElementSibling}}function Xo(n){let e=f.useRef(n);return Ce(()=>{e.current=n}),e}var Ce=typeof window>"u"?f.useEffect:f.useLayoutEffect;function ze(n){let e=f.useRef();return e.current===void 0&&(e.current=n()),e}function ge(n){let e=pn(),t=()=>n(e.snapshot());return f.useSyncExternalStore(e.subscribe,t,t)}function Jo(n,e,t,o=[]){let r=f.useRef(),s=et();return Ce(()=>{var i;let l=(()=>{var c;for(let u of t){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),d=o.map(c=>c.trim());s.value(n,l,d),(i=e.current)==null||i.setAttribute(Le,l),r.current=l}),r}var xd=()=>{let[n,e]=f.useState(),t=ze(()=>new Map);return Ce(()=>{t.current.forEach(o=>o()),t.current=new Map},[n]),(o,r)=>{t.current.set(o,r),e({})}};function bd(n){let e=n.type;return typeof e=="function"?e(n.props):"render"in e?e.render(n.props):n}function wt({asChild:n,children:e},t){return n&&f.isValidElement(e)?f.cloneElement(bd(e),{ref:e.ref},t(e.props.children)):t(e)}var yd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function wd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e,{"data-slot":"command",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Cd(n){const e=M.c(26);let t,o,r,s,i,l;e[0]!==n?({title:s,description:i,children:t,className:o,showCloseButton:l,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"Command Palette":s,c=i===void 0?"Search for a command to run...":i,u=l===void 0?!0:l;let p;e[7]!==d?(p=a.jsx(Ht,{children:d}),e[7]=d,e[8]=p):p=e[8];let m;e[9]!==c?(m=a.jsx(Bt,{children:c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==p||e[12]!==m?(h=a.jsxs(Vt,{className:"sr-only",children:[p,m]}),e[11]=p,e[12]=m,e[13]=h):h=e[13];let x;e[14]!==o?(x=T("overflow-hidden p-0",o),e[14]=o,e[15]=x):x=e[15];let v;e[16]!==t?(v=a.jsx(wd,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=v):v=e[17];let g;e[18]!==u||e[19]!==x||e[20]!==v?(g=a.jsx(Kt,{className:x,showCloseButton:u,children:v}),e[18]=u,e[19]=x,e[20]=v,e[21]=g):g=e[21];let w;return e[22]!==r||e[23]!==h||e[24]!==g?(w=a.jsxs(qt,{...r,children:[h,g]}),e[22]=r,e[23]=h,e[24]=g,e[25]=w):w=e[25],w}function jd(n){const e=M.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Yt,{className:"size-4 shrink-0 opacity-50"}),e[3]=r):r=e[3];let s;e[4]!==t?(s=T("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i=a.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r,a.jsx(_e.Input,{"data-slot":"command-input",className:s,...o})]}),e[6]=o,e[7]=s,e[8]=i):i=e[8],i}function kd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.List,{"data-slot":"command-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _d(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_e.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=o):o=e[3],o}function st(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Group,{"data-slot":"command-group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Md(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Separator,{"data-slot":"command-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function at(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Item,{"data-slot":"command-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Sd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Wn}],{title:"Issues",href:Be(),icon:Yn},...n?[]:[{title:"Integrations",href:Rn(),icon:Xn},{title:"Members",href:Tn(),icon:Xt}]];function Nd(n){const e=M.c(47),{open:t,onOpenChange:o}=n,[r,s]=f.useState(""),{applications:i,environment:l,embedded:d,window:c}=ce().props;let u;e[0]!==o?(u=E=>{o(!1),ee.visit(E)},e[0]=o,e[1]=u):u=e[1];const p=u;let m,h,x,v,g,w,y,b;if(e[2]!==c||e[3]!==d||e[4]!==l||e[5]!==p||e[6]!==o||e[7]!==t||e[8]!==r){const E=l?fn(l.application_id,l.id,c??"24h"):[];h=Cd,w=t,y=o,e[17]!==r?(b=a.jsx(jd,{placeholder:"Search pages, applications, issues…",value:r,onValueChange:s}),e[17]=r,e[18]=b):b=e[18],m=kd,e[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(_d,{children:"No results found."}),e[19]=x):x=e[19];let N;if(e[20]!==d||e[21]!==p){let R;e[23]!==p?(R=O=>a.jsxs(at,{onSelect:()=>p(O.href),children:[O.icon&&a.jsx(O.icon,{}),a.jsx("span",{children:O.title})]},O.title),e[23]=p,e[24]=R):R=e[24],N=Sd(!!d).map(R),e[20]=d,e[21]=p,e[22]=N}else N=e[22];e[25]!==N?(v=a.jsx(st,{heading:"Navigation",children:N}),e[25]=N,e[26]=v):v=e[26],g=E.length>0&&a.jsx(st,{heading:`${l.application_name} · ${l.name}`,children:E.map(R=>a.jsxs(at,{onSelect:()=>p(R.href),children:[R.icon&&a.jsx(R.icon,{}),a.jsx("span",{children:R.title})]},R.title))}),e[2]=c,e[3]=d,e[4]=l,e[5]=p,e[6]=o,e[7]=t,e[8]=r,e[9]=m,e[10]=h,e[11]=x,e[12]=v,e[13]=g,e[14]=w,e[15]=y,e[16]=b}else m=e[9],h=e[10],x=e[11],v=e[12],g=e[13],w=e[14],y=e[15],b=e[16];let j;e[27]!==i||e[28]!==d||e[29]!==p?(j=!d&&a.jsx(st,{heading:"Applications",children:i.flatMap(E=>E.environments.map(N=>a.jsx(at,{value:`${E.name} ${N.name}`,onSelect:()=>p(He(E.id,N.id)),children:a.jsxs("span",{children:[E.name," · ",N.name]})},`${E.id}-${N.id}`)))}),e[27]=i,e[28]=d,e[29]=p,e[30]=j):j=e[30];let _;e[31]!==p||e[32]!==r?(_=r.trim()&&a.jsxs(a.Fragment,{children:[a.jsx(Md,{}),a.jsx(st,{heading:"Search",children:a.jsxs(at,{value:r,onSelect:()=>p(`${Be()}?q=${encodeURIComponent(r)}`),children:[a.jsx(Yt,{}),a.jsxs("span",{children:["Search issues for “",r,"”"]})]})})]}),e[31]=p,e[32]=r,e[33]=_):_=e[33];let k;e[34]!==m||e[35]!==x||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==_?(k=a.jsxs(m,{children:[x,v,g,j,_]}),e[34]=m,e[35]=x,e[36]=v,e[37]=g,e[38]=j,e[39]=_,e[40]=k):k=e[40];let S;return e[41]!==h||e[42]!==k||e[43]!==w||e[44]!==y||e[45]!==b?(S=a.jsxs(h,{open:w,onOpenChange:y,children:[b,k]}),e[41]=h,e[42]=k,e[43]=w,e[44]=y,e[45]=b,e[46]=S):S=e[46],S}const Id=[{title:"Navigation",shortcuts:[{keys:["⌘","K"],description:"Open command palette"},{keys:["g","d"],description:"Go to dashboard"},{keys:["g","o"],description:"Go to Overview"},{keys:["g","r"],description:"Go to Requests"},{keys:["g","j"],description:"Go to Jobs"},{keys:["g","q"],description:"Go to Queries"},{keys:["g","i"],description:"Go to Issues"},{keys:["?"],description:"Show this help"}]},{title:"Lists (requests, jobs, queries, issues, logs, …)",shortcuts:[{keys:["j"],description:"Move highlight down"},{keys:["k"],description:"Move highlight up"},{keys:["↵"],description:"Open highlighted row"},{keys:["o"],description:"Open highlighted row in a new tab"},{keys:["Esc"],description:"Clear highlight"},{keys:["/"],description:"Focus the filter bar"}]}];function Ed(n){const e=M.c(5),{open:t,onOpenChange:o}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Keyboard shortcuts"}),a.jsx(Bt,{children:"Available anywhere in the app."})]}),e[0]=r):r=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(Kt,{className:"sm:max-w-sm",children:[r,a.jsx("div",{className:"flex flex-col gap-4",children:Id.map(Pd)})]}),e[1]=s):s=e[1];let i;return e[2]!==o||e[3]!==t?(i=a.jsx(qt,{open:t,onOpenChange:o,children:s}),e[2]=o,e[3]=t,e[4]=i):i=e[4],i}function Pd(n){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:n.title}),a.jsx("ul",{className:"flex flex-col gap-2",children:n.shortcuts.map(Rd)})]},n.title)}function Rd(n){return a.jsxs("li",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-muted-foreground",children:n.description}),a.jsx("span",{className:"flex items-center gap-1",children:n.keys.map(Td)})]},n.description)}function Td(n,e){return a.jsx("kbd",{className:"bg-muted rounded border px-1.5 py-0.5 font-mono text-xs",children:n},e)}const Ad=800;function $d(n){const e=M.c(4),t=f.useRef(n);let o;e[0]!==n?(o=()=>{t.current=n},e[0]=n,e[1]=o):o=e[1],f.useEffect(o);const r=f.useRef(null),s=f.useRef(void 0);let i,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const d=c=>{const u=c.target;if(!(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable)&&!(c.metaKey||c.ctrlKey||c.altKey)){if(r.current){const p=`${r.current} ${c.key}`;if(window.clearTimeout(s.current),r.current=null,t.current[p]){c.preventDefault(),t.current[p]();return}}if(t.current[c.key]){c.preventDefault(),t.current[c.key]();return}c.key==="g"&&(r.current="g",s.current=window.setTimeout(()=>{r.current=null},Ad))}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),window.clearTimeout(s.current)}},l=[],e[2]=i,e[3]=l):(i=e[2],l=e[3]),f.useEffect(i,l)}function Dd(n){const e=M.c(28),{children:t,breadcrumbs:o}=n;let r;e[0]!==o?(r=o===void 0?[]:o,e[0]=o,e[1]=r):r=e[1];const s=r,[i,l]=f.useState(!1),[d,c]=f.useState(!1),{environment:u,window:p}=ce().props;let m,h;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const N=R=>{R.key==="k"&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),l(zd))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},h=[],e[2]=m,e[3]=h):(m=e[2],h=e[3]),f.useEffect(m,h);let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>c(Ld),e[4]=x):x=e[4];let v;e[5]!==u?(v=()=>ee.visit(u?Be({application_id:u.application_id,environment_id:u.id}):Be()),e[5]=u,e[6]=v):v=e[6];let g;e[7]!==u||e[8]!==p?(g=u&&{"g o":()=>ee.visit(He(u.application_id,u.id,{window:p})),"g r":()=>ee.visit(In(u.application_id,u.id,{window:p})),"g j":()=>ee.visit(En(u.application_id,u.id,{window:p})),"g q":()=>ee.visit(Pn(u.application_id,u.id,{window:p}))},e[7]=u,e[8]=p,e[9]=g):g=e[9];let w;e[10]!==v||e[11]!==g?(w={"?":x,"g d":Od,"g i":v,...g},e[10]=v,e[11]=g,e[12]=w):w=e[12],$d(w);let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(zc,{}),e[13]=y):y=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=()=>l(!0),e[14]=b):b=e[14];let j;e[15]!==s?(j=a.jsx(Xc,{breadcrumbs:s,onOpenCommandPalette:b}),e[15]=s,e[16]=j):j=e[16];let _;e[17]!==t||e[18]!==j?(_=a.jsxs(_i,{variant:"sidebar",className:"overflow-x-hidden",children:[j,t]}),e[17]=t,e[18]=j,e[19]=_):_=e[19];let k;e[20]!==i?(k=a.jsx(Nd,{open:i,onOpenChange:l}),e[20]=i,e[21]=k):k=e[21];let S;e[22]!==d?(S=a.jsx(Ed,{open:d,onOpenChange:c}),e[22]=d,e[23]=S):S=e[23];let E;return e[24]!==_||e[25]!==k||e[26]!==S?(E=a.jsxs(Mi,{variant:"sidebar",children:[y,_,k,S]}),e[24]=_,e[25]=k,e[26]=S,e[27]=E):E=e[27],E}function Od(){return ee.visit(ct())}function Ld(n){return!n}function zd(n){return!n}function su(n){const e=M.c(8);let t,o,r;e[0]!==n?({children:o,breadcrumbs:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;return e[4]!==t||e[5]!==o||e[6]!==r?(s=a.jsx(Dd,{breadcrumbs:t,...r,children:o}),e[4]=t,e[5]=o,e[6]=r,e[7]=s):s=e[7],s}export{su as A,Hn as B,Kn as C,xs as D,Gs as E,ys as F,Ms as G,Xr as H,Ji as I,Ns as J,Bn as K,Es as L,zs as M,Yn as O,Zs as P,ta as R,ru as S,fa as T,Xt as U,Ia as V,ba as W,qn as a,cs as b,xo as c,Xi as d,Yt as e,st as f,at as g,dc as h,fc as i,pc as j,jd as k,_d as l,kd as m,Cd as n,en as o,da as p,Qr as q,ra as r,wd as s,Za as t,nn as u,ei as v,ti as w,us as x,Cs as y,Bs as z};
1
+ var hn=n=>{throw TypeError(n)};var vn=(n,e,t)=>e.has(n)||hn("Cannot "+t);var ne=(n,e,t)=>(vn(n,e,"read from private field"),t?t.call(n):e.get(n)),gn=(n,e,t)=>e.has(n)?hn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),jt=(n,e,t,o)=>(vn(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);import{B as $,c as M,j as a,C as T,a5 as Qo,r as f,u as ce,L as fe,a3 as Zo,e as ee,a6 as er,a2 as tr,a7 as nr,a8 as or,a9 as rr,aa as sr,o as He,ab as In,X as En,ac as ar,ad as ir,E as lr,ae as Pn,af as cr,ag as dr,ah as ur,ai as fr,v as pr,$ as mr,aj as hr,ak as vr,a0 as gr,Z as xr,al as br,_ as yr,A as wr,am as Cr,an as jr,ao as kr,z as _r,ap as Mr,aq as Sr,b as Nr,ar as Ir,as as Er,h as Pr,x as ct,S as Be,d as Rr,at as Rn,au as Tn}from"./inertia-Degv_G9N.js";import{u as se,b as Tr,S as dt,c as Ar,B as Ve,a as Ke,A as $r,d as qe}from"./app-wordmark-1SRllgHv.js";import{j as An,k as Dr,l as Or,m as $n,n as Dn,o as Lr,p as On,d as ut,P as Ln,e as zn,C as Fn,q as zr,A as Gn,u as le,R as Vn,i as Gt,h as Fr,f as Gr,g as Vr,F as Hr,r as Vt,D as Ht,a as Bt,s as Br,b as Kt,c as qt,B as Kr,L as qr}from"./live-dot-DaXEbkXo.js";import{c as xe,P as Ye,b as Xe,a as V,u as ft,C as Ut}from"./index-CX8Br7m9.js";import{P as X,d as Ur}from"./index-B0VXzXYG.js";import{C as xn}from"./checkbox-Bf41R8W6.js";import{L as kt,I as Wr}from"./label-B_vK19tR.js";const Yr=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Xr=$("activity",Yr);const Jr=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Qr=$("arrow-up-right",Jr);const Zr=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["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"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Hn=$("bell-ring",Zr);const es=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ts=$("book-open",es);const ns=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],os=$("bookmark-plus",ns);const rs=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Wt=$("bookmark",rs);const ss=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],as=$("bug",ss);const is=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Bn=$("building-2",is);const ls=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],cs=$("cable",ls);const ds=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],us=$("calendar-clock",ds);const fs=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],ps=$("chart-pie",fs);const ms=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kn=$("chevron-down",ms);const hs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],qn=$("chevron-right",hs);const vs=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Un=$("chevrons-up-down",vs);const gs=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],xs=$("database",gs);const bs=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ys=$("file-text",bs);const ws=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Cs=$("flame",ws);const js=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ks=$("gauge",js);const _s=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Ms=$("git-commit-horizontal",_s);const Ss=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Ns=$("hard-drive",Ss);const Is=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Es=$("layers",Is);const Ps=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Wn=$("layout-grid",Ps);const Rs=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Ts=$("layout-template",Rs);const As=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],$s=$("link-2",As);const Ds=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Os=$("log-out",Ds);const Ls=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zs=$("mail",Ls);const Fs=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Gs=$("monitor-smartphone",Fs);const Vs=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Yn=$("octagon-alert",Vs);const Hs=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Bs=$("package",Hs);const Ks=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],qs=$("panel-left",Ks);const Us=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],Ws=$("pin-off",Us);const Ys=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Xs=$("pin",Ys);const Js=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Xn=$("plug",Js);const Qs=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zs=$("plus",Qs);const ea=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ta=$("rocket",ea);const na=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yt=$("search",na);const oa=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ra=$("server",oa);const sa=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],aa=$("settings",sa);const ia=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],la=$("siren",ia);const ca=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],da=$("sparkles",ca);const ua=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],fa=$("terminal",ua);const pa=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],ma=$("timer",pa);const ha=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],va=$("trash-2",ha);const ga=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Xt=$("users",ga);const xa=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],ba=$("workflow",xa);function ya(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(An,{"data-slot":"sheet",...t}),e[2]=t,e[3]=o):o=e[3],o}function wa(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Dn,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ca(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(On,{"data-slot":"sheet-overlay",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ja(n){const e=M.c(17);let t,o,r,s;e[0]!==n?({className:o,children:t,side:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"right":s;let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Ca,{}),e[5]=l):l=e[5];const d=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",c=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",u=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==o||e[7]!==d||e[8]!==c||e[9]!==u||e[10]!==p?(m=T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,c,u,p,o),e[6]=o,e[7]=d,e[8]=c,e[9]=u,e[10]=p,e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(Lr,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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",children:[a.jsx(Qo,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=h):h=e[12];let x;return e[13]!==t||e[14]!==r||e[15]!==m?(x=a.jsxs(wa,{children:[l,a.jsxs($n,{"data-slot":"sheet-content",className:m,...r,children:[t,h]})]}),e[13]=t,e[14]=r,e[15]=m,e[16]=x):x=e[16],x}function ka(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sheet-header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _a(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Dr,{"data-slot":"sheet-title",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ma(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Or,{"data-slot":"sheet-description",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var Sa=Object.defineProperty,Na=(n,e)=>Sa(n,"name",{value:e,configurable:!0}),Ia=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ea=f.forwardRef(Na(function(e,t){return a.jsx(X.span,{...e,ref:t,style:{...Ia,...e.style}})},"VisuallyHidden")),Pa=Ea,Ra=Object.defineProperty,Q=(n,e)=>Ra(n,"name",{value:e,configurable:!0}),[Jt,Wd]=xe("Tooltip",[ut]),pt=ut(),Ta="TooltipProvider",Aa=700,Pt="tooltip.open",[$a,Qt]=Jt(Ta),Da=Q(n=>{const{__scopeTooltip:e,delayDuration:t=Aa,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=n,i=f.useRef(!0),l=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const c=d.current;return()=>window.clearTimeout(c)},[]),a.jsx($a,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),i.current=!1)},[o]),onClose:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(c=>{l.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Rt="Tooltip",[Oa,Je]=Jt(Rt),La=Q(n=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=n,d=Qt(Rt,n.__scopeTooltip),c=pt(e),[u,p]=f.useState(null),[m,h]=f.useState(void 0),x=le(),v=f.useRef(0),g=i??d.disableHoverableContent,w=l??d.delayDuration,y=f.useRef(!1),[b,j]=ft({prop:o,defaultProp:r??!1,onChange:Q(R=>{R?(d.onOpen(),document.dispatchEvent(new CustomEvent(Pt))):d.onClose(),s?.(R)},"onChange"),caller:Rt}),_=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),k=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,j(!0)},[j]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j(!1)},[j]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,j(!0),v.current=0},w)},[w,j]);f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]);const N=m??x;return a.jsx(Vn,{...c,children:a.jsx(Oa,{scope:e,contentId:N,setContentId:h,open:b,stateAttribute:_,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?E():k()},[d.isOpenDelayedRef,E,k]),onTriggerLeave:f.useCallback(()=>{g?S():(window.clearTimeout(v.current),v.current=0)},[S,g]),onOpen:k,onClose:S,disableHoverableContent:g,children:t})})},"Tooltip"),bn="TooltipTrigger",za=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=Je(bn,o),i=Qt(bn,o),l=pt(o),d=f.useRef(null),c=se(t,d,s.onTriggerChange),u=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Gn,{asChild:!0,...l,children:a.jsx(X.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:V(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:V(e.onBlur,s.onClose),onClick:V(e.onClick,s.onClose)})})},"TooltipTrigger")),Jn="TooltipPortal",[Fa,Ga]=Jt(Jn,{forceMount:void 0}),Va=Q(n=>{const{__scopeTooltip:e,forceMount:t,children:o,container:r}=n,s=Je(Jn,e);return a.jsx(Fa,{scope:e,forceMount:t,children:a.jsx(Ye,{present:t||s.open,children:a.jsx(Ln,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),Ue="TooltipContent",Ha=f.forwardRef(Q(function(e,t){const o=Ga(Ue,e.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=e,l=Je(Ue,e.__scopeTooltip);return a.jsx(Ye,{present:r||l.open,children:l.disableHoverableContent?a.jsx(Qn,{side:s,...i,ref:t}):a.jsx(Ba,{side:s,...i,ref:t})})},"TooltipContent")),Ba=f.forwardRef(Q(function(e,t){const o=Je(Ue,e.__scopeTooltip),r=Qt(Ue,e.__scopeTooltip),s=f.useRef(null),i=se(t,s),[l,d]=f.useState(null),{trigger:c,onClose:u}=o,p=s.current,{onPointerInTransitChange:m}=r,h=f.useCallback(()=>{d(null),m(!1)},[m]),x=f.useCallback((v,g)=>{const w=v.currentTarget,y={x:v.clientX,y:v.clientY},b=Zn(y,w.getBoundingClientRect()),j=eo(y,b),_=to(g.getBoundingClientRect()),k=oo([...j,..._]);d(k),m(!0)},[m]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&p){const v=Q(w=>x(w,p),"handleTriggerLeave"),g=Q(w=>x(w,c),"handleContentLeave");return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",g)}}},[c,p,x,h]),f.useEffect(()=>{if(l){const v=Q(g=>{const w=g.target,y={x:g.clientX,y:g.clientY},b=c?.contains(w)||p?.contains(w),j=!no(y,l);b?h():j&&(h(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,l,u,h]),a.jsx(Qn,{...e,ref:i})},"TooltipContentHoverable")),Ka=Tr("TooltipContent"),Qn=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:l,onPointerDownOutside:d,...c}=e,u=Je(Ue,o),p=pt(o),{onClose:m}=u;f.useEffect(()=>(document.addEventListener(Pt,m),()=>document.removeEventListener(Pt,m)),[m]),f.useEffect(()=>{if(u.trigger){const x=Q(v=>{v.target instanceof Node&&v.target.contains(u.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[u.trigger,m]);const{setContentId:h}=u;return Xe(()=>(h(i),()=>{h(void 0)}),[i,h]),a.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:m,children:a.jsxs(Fn,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Ka,{children:r}),s?a.jsx(Pa,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),qa=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=pt(o);return a.jsx(zr,{...s,...r,ref:t})},"TooltipArrow"));function Zn(n,e){const t=Math.abs(e.top-n.y),o=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),s=Math.abs(e.left-n.x);switch(Math.min(t,o,r,s)){case s:return"left";case r:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Q(Zn,"getExitSideFromRect");function eo(n,e,t=5){const o=[];switch(e){case"top":o.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":o.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":o.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":o.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return o}Q(eo,"getPaddedExitPoints");function to(n){const{top:e,right:t,bottom:o,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:o},{x:r,y:o}]}Q(to,"getPointsFromRect");function no(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}Q(no,"isPointInPolygon");function oo(n){const e=n.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ro(e)}Q(oo,"getHull");function ro(n){if(n.length<=1)return n.slice();const e=[];for(let o=0;o<n.length;o++){const r=n[o];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let o=n.length-1;o>=0;o--){const r=n[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}Q(ro,"getHullPresorted");var Ua=Da,Wa=La,Ya=za,Xa=Va,Ja=Ha,Qa=qa;function so(n){const e=M.c(6);let t,o;e[0]!==n?({delayDuration:o,...t}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);const r=o===void 0?0:o;let s;return e[3]!==r||e[4]!==t?(s=a.jsx(Ua,{"data-slot":"tooltip-provider",delayDuration:r,...t}),e[3]=r,e[4]=t,e[5]=s):s=e[5],s}function Za(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(so,{children:a.jsx(Wa,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=o):o=e[3],o}function ei(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ya,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function ti(n){const e=M.c(13);let t,o,r,s;e[0]!==n?({className:o,sideOffset:s,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?0:s;let l;e[5]!==o?(l=T("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),e[5]=o,e[6]=l):l=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Qa,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=d):d=e[7];let c;return e[8]!==t||e[9]!==r||e[10]!==i||e[11]!==l?(c=a.jsx(Xa,{children:a.jsxs(Ja,{"data-slot":"tooltip-content",sideOffset:i,className:l,...r,children:[t,d]})}),e[8]=t,e[9]=r,e[10]=i,e[11]=l,e[12]=c):c=e[12],c}const ni=768,Tt=window.matchMedia(`(max-width: ${ni-1}px)`);function oi(n){return Tt.addEventListener("change",n),()=>{Tt.removeEventListener("change",n)}}function ri(){return Tt.matches}function ao(){return f.useSyncExternalStore(oi,ri)}const si="sidebar_state",ai=3600*24*7,ii="14.25rem",li="18rem",ci="3rem",di="b",io=f.createContext(null);function mt(){const n=f.useContext(io);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function ui(n){const e=M.c(36);let t,o,r,s,i,l,d;e[0]!==n?({defaultOpen:d,open:r,onOpenChange:i,className:o,style:l,children:t,...s}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=d===void 0?!0:d,u=ao(),[p,m]=f.useState(!1),[h,x]=f.useState(c),v=r??h;let g;e[8]!==v||e[9]!==i?(g=q=>{const H=typeof q=="function"?q(v):q;i?i(H):x(H),document.cookie=`${si}=${H}; path=/; max-age=${ai}`},e[8]=v,e[9]=i,e[10]=g):g=e[10];const w=g;let y;e[11]!==u||e[12]!==w?(y=()=>u?m(pi):w(fi),e[11]=u,e[12]=w,e[13]=y):y=e[13];const b=y;let j,_;e[14]!==b?(j=()=>{const q=H=>{H.key===di&&(H.metaKey||H.ctrlKey)&&(H.preventDefault(),b())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},_=[b],e[14]=b,e[15]=j,e[16]=_):(j=e[15],_=e[16]),f.useEffect(j,_);const k=v?"expanded":"collapsed";let S;e[17]!==u||e[18]!==v||e[19]!==p||e[20]!==w||e[21]!==k||e[22]!==b?(S={state:k,open:v,setOpen:w,isMobile:u,openMobile:p,setOpenMobile:m,toggleSidebar:b},e[17]=u,e[18]=v,e[19]=p,e[20]=w,e[21]=k,e[22]=b,e[23]=S):S=e[23];const E=S;let N;e[24]!==l?(N={"--sidebar-width":ii,"--sidebar-width-icon":ci,...l},e[24]=l,e[25]=N):N=e[25];const R=N;let O;e[26]!==o?(O=T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),e[26]=o,e[27]=O):O=e[27];let G;e[28]!==t||e[29]!==s||e[30]!==R||e[31]!==O?(G=a.jsx(so,{delayDuration:0,children:a.jsx("div",{"data-slot":"sidebar-wrapper",style:R,className:O,...s,children:t})}),e[28]=t,e[29]=s,e[30]=R,e[31]=O,e[32]=G):G=e[32];let K;return e[33]!==E||e[34]!==G?(K=a.jsx(io.Provider,{value:E,children:G}),e[33]=E,e[34]=G,e[35]=K):K=e[35],K}function fi(n){return!n}function pi(n){return!n}function mi(n){const e=M.c(46);let t,o,r,s,i,l;e[0]!==n?({side:s,variant:i,collapsible:l,className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"left":s,c=i===void 0?"sidebar":i,u=l===void 0?"offcanvas":l,{isMobile:p,state:m,openMobile:h,setOpenMobile:x}=mt();if(u==="none"){let N;e[7]!==o?(N=T("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=N):N=e[8];let R;return e[9]!==t||e[10]!==r||e[11]!==N?(R=a.jsx("div",{"data-slot":"sidebar",className:N,...r,children:t}),e[9]=t,e[10]=r,e[11]=N,e[12]=R):R=e[12],R}if(p){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":li},e[13]=N):N=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsxs(ka,{className:"sr-only",children:[a.jsx(_a,{children:"Sidebar"}),a.jsx(Ma,{children:"Displays the mobile sidebar."})]}),e[14]=R):R=e[14];let O;e[15]!==t?(O=a.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let G;e[17]!==d||e[18]!==O?(G=a.jsxs(ja,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:d,children:[R,O]}),e[17]=d,e[18]=O,e[19]=G):G=e[19];let K;return e[20]!==h||e[21]!==r||e[22]!==x||e[23]!==G?(K=a.jsx(ya,{open:h,onOpenChange:x,...r,children:G}),e[20]=h,e[21]=r,e[22]=x,e[23]=G,e[24]=K):K=e[24],K}const v=m==="collapsed"?u:"",g=c==="floating"||c==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let w;e[25]!==g?(w=T("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=w):w=e[26];let y;e[27]!==w?(y=a.jsx("div",{"data-slot":"sidebar-gap",className:w}),e[27]=w,e[28]=y):y=e[28];const b=d==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",j=c==="floating"||c==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let _;e[29]!==o||e[30]!==b||e[31]!==j?(_=T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",b,j,o),e[29]=o,e[30]=b,e[31]=j,e[32]=_):_=e[32];let k;e[33]!==t?(k=a.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=k):k=e[34];let S;e[35]!==r||e[36]!==_||e[37]!==k?(S=a.jsx("div",{"data-slot":"sidebar-container",className:_,...r,children:k}),e[35]=r,e[36]=_,e[37]=k,e[38]=S):S=e[38];let E;return e[39]!==d||e[40]!==m||e[41]!==S||e[42]!==v||e[43]!==y||e[44]!==c?(E=a.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":v,"data-variant":c,"data-side":d,"data-slot":"sidebar",children:[y,S]}),e[39]=d,e[40]=m,e[41]=S,e[42]=v,e[43]=y,e[44]=c,e[45]=E):E=e[45],E}function hi(n){const e=M.c(15);let t,o,r;e[0]!==n?({className:t,onClick:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const{toggleSidebar:s}=mt();let i;e[4]!==t?(i=T("size-7",t),e[4]=t,e[5]=i):i=e[5];let l;e[6]!==o||e[7]!==s?(l=p=>{o?.(p),s()},e[6]=o,e[7]=s,e[8]=l):l=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(qs,{}),c=a.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==r||e[12]!==i||e[13]!==l?(u=a.jsxs(Ve,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i,onClick:l,...r,children:[d,c]}),e[11]=r,e[12]=i,e[13]=l,e[14]=u):u=e[14],u}function vi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("main",{"data-slot":"sidebar-inset",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function gi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function xi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function bi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Zt(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function yi(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,asChild:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const i=(r===void 0?!1:r)?dt:"div";let l;e[4]!==t?(l=T("text-muted-foreground ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 pt-2 text-xs font-semibold outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=l):l=e[5];let d;return e[6]!==i||e[7]!==o||e[8]!==l?(d=a.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l,...o}),e[6]=i,e[7]=o,e[8]=l,e[9]=d):d=e[9],d}function wi(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("w-full text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function we(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function he(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Ci=Ar("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md border border-transparent px-2 text-left text-sm text-sidebar-foreground outline-hidden ring-sidebar-ring transition-colors hover:text-sidebar-accent-foreground focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4 data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-9 text-sm",sm:"h-7 text-xs",lg:"h-14 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ve(n){const e=M.c(28);let t,o,r,s,i,l,d;e[0]!==n?({asChild:r,isActive:s,variant:i,size:l,tooltip:d,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=r===void 0?!1:r,u=s===void 0?!1:s,p=i===void 0?"default":i,m=l===void 0?"default":l,h=c?dt:"button",{isMobile:x,state:v}=mt();let g;e[8]!==t||e[9]!==m||e[10]!==p?(g=T(Ci({variant:p,size:m}),t),e[8]=t,e[9]=m,e[10]=p,e[11]=g):g=e[11];let w;e[12]!==h||e[13]!==u||e[14]!==o||e[15]!==m||e[16]!==g?(w=a.jsx(h,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":u,className:g,...o}),e[12]=h,e[13]=u,e[14]=o,e[15]=m,e[16]=g,e[17]=w):w=e[17];const y=w;if(!d)return y;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let b;e[20]!==y?(b=a.jsx(ei,{asChild:!0,children:y}),e[20]=y,e[21]=b):b=e[21];const j=v!=="collapsed"||x;let _;e[22]!==j||e[23]!==d?(_=a.jsx(ti,{side:"right",align:"center",hidden:j,...d}),e[22]=j,e[23]=d,e[24]=_):_=e[24];let k;return e[25]!==b||e[26]!==_?(k=a.jsxs(Za,{children:[b,_]}),e[25]=b,e[26]=_,e[27]=k):k=e[27],k}function ji(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-w-0 flex-col gap-0.5 py-0.5 pl-6","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ki(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-sub-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function yn(n){const e=M.c(16);let t,o,r,s,i;e[0]!==n?({asChild:r,size:s,isActive:i,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5]);const l=r===void 0?!1:r,d=s===void 0?"md":s,c=i===void 0?!1:i,u=l?dt:"a",p=d==="sm"&&"text-xs",m=d==="md"&&"text-sm";let h;e[6]!==t||e[7]!==p||e[8]!==m?(h=T("text-sidebar-foreground ring-sidebar-ring hover:text-sidebar-accent-foreground flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md border border-transparent px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4",p,m,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=p,e[8]=m,e[9]=h):h=e[9];let x;return e[10]!==u||e[11]!==c||e[12]!==o||e[13]!==d||e[14]!==h?(x=a.jsx(u,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":d,"data-active":c,className:h,...o}),e[10]=u,e[11]=c,e[12]=o,e[13]=d,e[14]=h,e[15]=x):x=e[15],x}function _i(n){const e=M.c(10);let t,o,r;if(e[0]!==n?({variant:r,children:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]),(r===void 0?"header":r)==="sidebar"){let l;return e[4]!==t||e[5]!==o?(l=a.jsx(vi,{...o,children:t}),e[4]=t,e[5]=o,e[6]=l):l=e[6],l}let i;return e[7]!==t||e[8]!==o?(i=a.jsx("main",{className:"mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl",...o,children:t}),e[7]=t,e[8]=o,e[9]=i):i=e[9],i}function Mi(n){const e=M.c(6),{children:t,variant:o}=n,r=o===void 0?"header":o,[s,i]=f.useState(Si);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=u=>{i(u),typeof window<"u"&&localStorage.setItem("sidebar",String(u))},e[0]=l):l=e[0];const d=l;if(r==="header"){let u;return e[1]!==t?(u=a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:t}),e[1]=t,e[2]=u):u=e[2],u}let c;return e[3]!==t||e[4]!==s?(c=a.jsx(ui,{defaultOpen:s,open:s,onOpenChange:d,children:t}),e[3]=t,e[4]=s,e[5]=c):c=e[5],c}function Si(){return typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0}function Ni(n){const e=M.c(10);let t,o,r;e[0]!==n?({iconNode:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("h-4 w-4",o),e[4]=o,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==r||e[8]!==s?(i=a.jsx(t,{className:s,...r}),e[6]=t,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Ii(n){const e=M.c(12);let t,o,r;e[0]!==n?({items:o,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=`group-data-[collapsible=icon]:p-0 ${t??""}`;let i;e[4]!==o?(i=o.map(Ei),e[4]=o,e[5]=i):i=e[5];let l;e[6]!==i?(l=a.jsx(wi,{children:a.jsx(we,{children:i})}),e[6]=i,e[7]=l):l=e[7];let d;return e[8]!==r||e[9]!==s||e[10]!==l?(d=a.jsx(Zt,{...r,className:s,children:l}),e[8]=r,e[9]=s,e[10]=l,e[11]=d):d=e[11],d}function Ei(n){return a.jsx(he,{children:a.jsx(ve,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:a.jsxs("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&a.jsx(Ni,{iconNode:n.icon,className:"h-5 w-5"}),a.jsx("span",{children:n.title})]})})},n.title)}function Pi(n){const e=M.c(14),{items:t,label:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,i=o===void 0?"Platform":o,l=ce();let d;e[2]!==i?(d=i&&a.jsx(yi,{children:i}),e[2]=i,e[3]=d):d=e[3];let c;if(e[4]!==s||e[5]!==l){let m;e[7]!==l?(m=h=>a.jsx(he,{children:a.jsx(ve,{asChild:!0,isActive:l.url.startsWith(h.href),tooltip:{children:h.title},children:a.jsxs(fe,{href:h.href,prefetch:!0,children:[h.icon&&a.jsx(h.icon,{}),a.jsx("span",{children:h.title})]})})},h.title),e[7]=l,e[8]=m):m=e[8],c=s.map(m),e[4]=s,e[5]=l,e[6]=c}else c=e[6];let u;e[9]!==c?(u=a.jsx(we,{children:c}),e[9]=c,e[10]=u):u=e[10];let p;return e[11]!==d||e[12]!==u?(p=a.jsxs(Zt,{className:"p-0",children:[d,u]}),e[11]=d,e[12]=u,e[13]=p):p=e[13],p}var Ri=Object.defineProperty,Z=(n,e)=>Ri(n,"name",{value:e,configurable:!0});function en(n){const e=n+"CollectionProvider",[t,o]=xe(e),[r,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=Z(v=>{const{scope:g,children:w}=v,y=f.useRef(null),b=f.useRef(new Map).current;return a.jsx(r,{scope:g,itemMap:b,collectionRef:y,children:w})},"CollectionProvider");i.displayName=e;const l=n+"CollectionSlot",d=Ke(l),c=f.forwardRef((v,g)=>{const{scope:w,children:y}=v,b=s(l,w),j=se(g,b.collectionRef);return a.jsx(d,{ref:j,children:y})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=Ke(u),h=f.forwardRef((v,g)=>{const{scope:w,children:y,...b}=v,j=f.useRef(null),_=se(g,j),k=s(u,w);return f.useEffect(()=>(k.itemMap.set(j,{ref:j,...b}),()=>{k.itemMap.delete(j)})),a.jsx(m,{[p]:"",ref:_,children:y})});h.displayName=u;function x(v){const g=s(n+"CollectionConsumer",v);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((k,S)=>b.indexOf(k.ref.current)-b.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return Z(x,"useCollection"),[{Provider:i,Slot:c,ItemSlot:h},x,o]}Z(en,"createCollection");var wn=new WeakMap,J,ae,_t=(ae=class extends Map{constructor(t){super(t);gn(this,J);jt(this,J,[...super.keys()]),wn.set(this,!0)}set(t,o){return wn.get(this)&&(this.has(t)?ne(this,J)[ne(this,J).indexOf(t)]=t:ne(this,J).push(t)),super.set(t,o),this}insert(t,o,r){const s=this.has(o),i=ne(this,J).length,l=tn(t);let d=l>=0?l:i+l;const c=d<0||d>=i?-1:d;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);l<0&&d++;const p=[...ne(this,J)];let m,h=!1;for(let x=d;x<u;x++)if(d===x){let v=p[x];p[x]===o&&(v=p[x+1]),s&&this.delete(o),m=this.get(v),this.set(o,r)}else{!h&&p[x-1]===o&&(h=!0);const v=p[h?x:x-1],g=m;m=this.get(v),this.delete(v),this.set(v,g)}return this}with(t,o,r){const s=new ae(this);return s.insert(t,o,r),s}before(t){const o=ne(this,J).indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s,o,r)}after(t){let o=ne(this,J).indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return jt(this,J,[]),super.clear()}delete(t){const o=super.delete(t);return o&&ne(this,J).splice(ne(this,J).indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=it(ne(this,J),t);if(o!==void 0)return this.get(o)}entryAt(t){const o=it(ne(this,J),t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return ne(this,J).indexOf(t)}keyAt(t){return it(ne(this,J),t)}from(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return s;r++}}findIndex(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return r;r++}return-1}filter(t,o){const r=[];let s=0;for(const i of this)Reflect.apply(t,o,[i,s,this])&&r.push(i),s++;return new ae(r)}map(t,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(t,o,[i,s,this])]),s++;return new ae(r)}reduce(...t){const[o,r]=t;let s=0,i=r??this.at(0);for(const l of this)s===0&&t.length===1?i=l:i=Reflect.apply(o,this,[i,l,s,this]),s++;return i}reduceRight(...t){const[o,r]=t;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&t.length===1?s=l:s=Reflect.apply(o,this,[s,l,i,this])}return s}toSorted(t){const o=[...this.entries()].sort(t);return new ae(o)}toReversed(){const t=new ae;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new ae(o)}slice(t,o){const r=new ae;let s=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=t;i<=s;i++){const l=this.keyAt(i),d=this.get(l);r.set(l,d)}return r}every(t,o){let r=0;for(const s of this){if(!Reflect.apply(t,o,[s,r,this]))return!1;r++}return!0}some(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return!0;r++}return!1}},J=new WeakMap,Z(ae,"OrderedDict"),ae);function it(n,e){if("at"in Array.prototype)return Array.prototype.at.call(n,e);const t=lo(n,e);return t===-1?void 0:n[t]}Z(it,"at");function lo(n,e){const t=n.length,o=tn(e),r=o>=0?o:t+o;return r<0||r>=t?-1:r}Z(lo,"toSafeIndex");function tn(n){return n!==n||n===0?0:Math.trunc(n)}Z(tn,"toSafeInteger");function Ti(n){const e=n+"CollectionProvider",[t,o]=xe(e),[r,s]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new _t,setItemMap:Z(()=>{},"setItemMap")}),i=Z(({state:b,...j})=>b?a.jsx(d,{...j,state:b}):a.jsx(l,{...j}),"CollectionProvider");i.displayName=e;const l=Z(b=>{const j=g();return a.jsx(d,{...b,state:j})},"CollectionInit");l.displayName=e+"Init";const d=Z(b=>{const{scope:j,children:_,state:k}=b,S=f.useRef(null),[E,N]=f.useState(null),R=se(S,N),[O,G]=k;return f.useEffect(()=>{if(!E)return;const K=fo(()=>{});return K.observe(E,{childList:!0,subtree:!0}),()=>{K.disconnect()}},[E]),a.jsx(r,{scope:j,itemMap:O,setItemMap:G,collectionRef:R,collectionRefObject:S,collectionElement:E,children:_})},"CollectionProviderImpl");d.displayName=e+"Impl";const c=n+"CollectionSlot",u=Ke(c),p=f.forwardRef((b,j)=>{const{scope:_,children:k}=b,S=s(c,_),E=se(j,S.collectionRef);return a.jsx(u,{ref:E,children:k})});p.displayName=c;const m=n+"CollectionItemSlot",h="data-radix-collection-item",x=Ke(m),v=f.forwardRef((b,j)=>{const{scope:_,children:k,...S}=b,E=f.useRef(null),[N,R]=f.useState(null),O=se(j,E,R),G=s(m,_),{setItemMap:K}=G,q=f.useRef(S);co(q.current,S)||(q.current=S);const H=q.current;return f.useEffect(()=>{const oe=H;return K(U=>N?U.has(N)?U.set(N,{...oe,element:N}).toSorted(At):(U.set(N,{...oe,element:N}),U.toSorted(At)):U),()=>{K(U=>!N||!U.has(N)?U:(U.delete(N),new _t(U)))}},[N,H,K]),a.jsx(x,{[h]:"",ref:O,children:k})});v.displayName=m;function g(){return f.useState(new _t)}Z(g,"useInitCollection");function w(b){const{itemMap:j}=s(n+"CollectionConsumer",b);return j}return Z(w,"useCollection"),[{Provider:i,Slot:p,ItemSlot:v},{createCollectionScope:o,useCollection:w,useInitCollection:g}]}Z(Ti,"createCollection");function co(n,e){if(n===e)return!0;if(typeof n!="object"||typeof e!="object"||n==null||e==null)return!1;const t=Object.keys(n),o=Object.keys(e);if(t.length!==o.length)return!1;for(const r of t)if(!Object.prototype.hasOwnProperty.call(e,r)||n[r]!==e[r])return!1;return!0}Z(co,"shallowEqual");function uo(n,e){return!!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}Z(uo,"isElementPreceding");function At(n,e){return!n[1].element||!e[1].element?0:uo(n[1].element,e[1].element)?-1:1}Z(At,"sortByDocumentPosition");function fo(n){return new MutationObserver(t=>{for(const o of t)if(o.type==="childList"){n();return}})}Z(fo,"getChildListObserver");var Ai=Object.defineProperty,$i=(n,e)=>Ai(n,"name",{value:e,configurable:!0}),Di=f.createContext(void 0);function nn(n){const e=f.useContext(Di);return n||e||"ltr"}$i(nn,"useDirection");var Oi=Object.defineProperty,on=(n,e)=>Oi(n,"name",{value:e,configurable:!0}),Mt=!1;function po(){const[n,e]=f.useState(Mt);return f.useEffect(()=>{Mt||(Mt=!0,e(!0))},[]),n}on(po,"useIsHydrated");var mo=Zo[" useSyncExternalStore ".trim().toString()];function ho(){return()=>{}}on(ho,"subscribe");function vo(){return mo(ho,()=>!0,()=>!1)}on(vo,"useIsHydratedModern");var Li=typeof mo=="function"?vo:po,zi=Object.defineProperty,je=(n,e)=>zi(n,"name",{value:e,configurable:!0}),St="rovingFocusGroup.onEntryFocus",Fi={bubbles:!1,cancelable:!0},ht="RovingFocusGroup",[$t,go,Gi]=en(ht),[Vi,xo]=xe(ht,[Gi]),[Hi,Bi]=Vi(ht),Ki=f.forwardRef(je(function(e,t){return a.jsx($t.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx($t.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(qi,{...e,ref:t})})})},"RovingFocusGroup")),qi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,h=f.useRef(null),x=se(t,h),v=nn(i),[g,w]=ft({prop:l,defaultProp:d??null,onChange:c,caller:ht}),[y,b]=f.useState(!1),j=Gt(u),_=go(o),k=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(St,j),()=>N.removeEventListener(St,j)},[j]),a.jsx(Hi,{scope:o,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:f.useCallback(N=>w(N),[w]),onItemShiftTab:f.useCallback(()=>b(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:f.useCallback(()=>E(N=>N-1),[]),children:a.jsx(X.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,N=>{const R=!k.current;if(N.target===N.currentTarget&&R&&!y){const O=new CustomEvent(St,Fi);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const G=_().filter(U=>U.focusable),K=G.find(U=>U.active),q=G.find(U=>U.id===g),oe=[K,q,...G].filter(Boolean).map(U=>U.ref.current);rn(oe,p)}}k.current=!1}),onBlur:V(e.onBlur,()=>b(!1))})})},"RovingFocusGroupImpl")),Ui="RovingFocusGroupItem",Wi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:l,...d}=e,c=le(),u=i||c,p=Bi(Ui,o),m=p.currentTabStopId===u,h=go(o),{onFocusableItemAdd:x,onFocusableItemRemove:v,currentTabStopId:g}=p,w=Li();return Xe(()=>{if(!(!w||!r))return x(),()=>v()},[w,r,x,v]),f.useEffect(()=>{if(!(w||!r))return x(),()=>v()},[w,r,x,v]),a.jsx($t.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:a.jsx(X.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:V(e.onMouseDown,y=>{r?p.onItemFocus(u):y.preventDefault()}),onFocus:V(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:V(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=yo(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let _=h().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const k=_.indexOf(y.currentTarget);_=p.loop?wo(_,k+1):_.slice(k+1)}setTimeout(()=>rn(_))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:g!=null}):l})})},"RovingFocusGroupItem")),Yi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bo(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}je(bo,"getDirectionAwareKey");function yo(n,e,t){const o=bo(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Yi[o]}je(yo,"getFocusIntent");function rn(n,e=!1){const t=document.activeElement;for(const o of n)if(o===t||(o.focus({preventScroll:e}),document.activeElement!==t))return}je(rn,"focusFirst");function wo(n,e){return n.map((t,o)=>n[(e+o)%n.length])}je(wo,"wrapArray");var Xi=Ki,Ji=Wi,Qi=Object.defineProperty,B=(n,e)=>Qi(n,"name",{value:e,configurable:!0}),Zi=["Enter"," "],el=["ArrowDown","PageUp","Home"],Co=["ArrowUp","PageDown","End"],tl=[...el,...Co],vt="Menu",[Dt,nl,ol]=en(vt),[ke,jo]=xe(vt,[ol,ut,xo]),sn=ut(),ko=xo(),[rl,Qe]=ke(vt),[sl,an]=ke(vt),al=B(n=>{const{__scopeMenu:e,open:t=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=n,l=sn(e),[d,c]=f.useState(null),u=f.useRef(!1),p=Gt(s),m=nn(r);return f.useEffect(()=>{const h=B(()=>{u.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},"handleKeyDown"),x=B(()=>u.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),f.useEffect(()=>{if(!t)return;const h=B(()=>p(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[t,p]),a.jsx(Vn,{...l,children:a.jsx(rl,{scope:e,open:t,onOpenChange:p,content:d,onContentChange:c,children:a.jsx(sl,{scope:e,onClose:f.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:u,dir:m,modal:i,children:o})})})},"Menu"),il=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e,s=sn(o);return a.jsx(Gn,{...s,...r,ref:t})},"MenuAnchor")),_o="MenuPortal",[ll,cl]=ke(_o,{forceMount:void 0}),dl=B(n=>{const{__scopeMenu:e,forceMount:t,children:o,container:r}=n,s=Qe(_o,e);return a.jsx(ll,{scope:e,forceMount:t,children:a.jsx(Ye,{present:t||s.open,children:a.jsx(Ln,{asChild:!0,container:r,children:o})})})},"MenuPortal"),me="MenuContent",[ul,Mo]=ke(me),fl=f.forwardRef(B(function(e,t){const o=cl(me,e.__scopeMenu),{forceMount:r=o.forceMount,...s}=e,i=Qe(me,e.__scopeMenu),l=an(me,e.__scopeMenu);return a.jsx(Dt.Provider,{scope:e.__scopeMenu,children:a.jsx(Ye,{present:r||i.open,children:a.jsx(Dt.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsx(pl,{...s,ref:t}):a.jsx(ml,{...s,ref:t})})})})},"MenuContent")),pl=f.forwardRef(B(function(e,t){const o=Qe(me,e.__scopeMenu),r=f.useRef(null),s=se(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Fr(i)},[]),a.jsx(So,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),ml=f.forwardRef(B(function(e,t){const o=Qe(me,e.__scopeMenu);return a.jsx(So,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),hl=Ke("MenuContent.ScrollLock"),So=f.forwardRef(B(function(e,t){const{__scopeMenu:o,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,disableOutsideScroll:v,...g}=e,w=Qe(me,o),y=an(me,o),b=sn(o),j=ko(o),_=nl(o),[k,S]=f.useState(null),E=f.useRef(null),N=se(t,E,w.onContentChange),R=f.useRef(0),O=f.useRef(""),G=f.useRef(0),K=f.useRef(null),q=f.useRef("right"),H=f.useRef(0),oe=v?Vr:f.Fragment,U=v?{as:hl,allowPinchZoom:!0}:void 0,Me=B(A=>{const re=O.current+A,C=_().filter(F=>!F.disabled),P=document.activeElement,D=C.find(F=>F.ref.current===P)?.textValue,I=C.map(F=>F.textValue),L=Ro(I,re,D),z=C.find(F=>F.textValue===L)?.ref.current;B((function F(W){O.current=W,window.clearTimeout(R.current),W!==""&&(R.current=window.setTimeout(()=>F(""),1e3))}),"updateSearch")(re),z&&setTimeout(()=>z.focus())},"handleTypeaheadSearch");f.useEffect(()=>()=>window.clearTimeout(R.current),[]),Gr();const te=f.useCallback(A=>q.current===K.current?.side&&Ao(A,K.current?.area),[]);return a.jsx(ul,{scope:o,searchRef:O,onItemEnter:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),onItemLeave:f.useCallback(A=>{te(A)||(E.current?.focus(),S(null))},[te]),onTriggerLeave:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),pointerGraceTimerRef:G,onPointerGraceIntentChange:f.useCallback(A=>{K.current=A},[]),children:a.jsx(oe,{...U,children:a.jsx(Hr,{asChild:!0,trapped:s,onMountAutoFocus:V(i,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsx(zn,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,children:a.jsx(Xi,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:V(c,A=>{y.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Fn,{role:"menu","aria-orientation":"vertical","data-state":No(w.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const C=A.target.closest("[data-radix-menu-content]")===A.currentTarget,P=A.ctrlKey||A.altKey||A.metaKey,D=A.key.length===1;C&&(A.key==="Tab"&&A.preventDefault(),!P&&D&&Me(A.key));const I=E.current;if(A.target!==I||!tl.includes(A.key))return;A.preventDefault();const z=_().filter(F=>!F.disabled).map(F=>F.ref.current);Co.includes(A.key)&&z.reverse(),Eo(z)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(R.current),O.current="")}),onPointerMove:V(e.onPointerMove,lt(A=>{const re=A.target,C=H.current!==A.clientX;if(A.currentTarget.contains(re)&&C){const P=A.clientX>H.current?"right":"left";q.current=P,H.current=A.clientX}}))})})})})})})},"MenuContentImpl")),vl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"group",...r,ref:t})},"MenuGroup")),gl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{...r,ref:t})},"MenuLabel")),Ot="MenuItem",Cn="menu.itemSelect",xl=f.forwardRef(B(function(e,t){const{disabled:o=!1,onSelect:r,...s}=e,i=f.useRef(null),l=an(Ot,e.__scopeMenu),d=Mo(Ot,e.__scopeMenu),c=se(t,i),u=f.useRef(!1),p=B(()=>{const m=i.current;if(!o&&m){const h=new CustomEvent(Cn,{bubbles:!0,cancelable:!0});m.addEventListener(Cn,x=>r?.(x),{once:!0}),Ur(m,h),h.defaultPrevented?u.current=!1:l.onClose()}},"handleSelect");return a.jsx(bl,{...s,ref:c,disabled:o,onClick:V(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),u.current=!0},onPointerUp:V(e.onPointerUp,m=>{u.current||m.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,m=>{o||m.target!==m.currentTarget||d.searchRef.current!==""&&m.key===" "||Zi.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})},"MenuItem")),bl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,disabled:r=!1,textValue:s,...i}=e,l=Mo(Ot,o),d=ko(o),c=f.useRef(null),u=se(t,c),[p,m]=f.useState(!1),[h,x]=f.useState("");return f.useEffect(()=>{const v=c.current;v&&x((v.textContent??"").trim())},[i.children]),a.jsx(Dt.ItemSlot,{scope:o,disabled:r,textValue:s??h,children:a.jsx(Ji,{asChild:!0,...d,focusable:!r,children:a.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:V(e.onPointerMove,lt(v=>{r?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,lt(v=>l.onItemLeave(v))),onFocus:V(e.onFocus,()=>m(!0)),onBlur:V(e.onBlur,()=>m(!1))})})})},"MenuItemImpl")),yl="MenuRadioGroup",[Yd,Xd]=ke(yl,{value:void 0,onValueChange:B(()=>{},"onValueChange")}),wl="MenuItemIndicator",[Jd,Qd]=ke(wl,{checked:!1}),Cl=f.forwardRef(B(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),jl="MenuSub",[Zd,eu]=ke(jl);function No(n){return n?"open":"closed"}B(No,"getOpenState");function Io(n){return n==="indeterminate"}B(Io,"isIndeterminate");function kl(n){return Io(n)?"indeterminate":n?"checked":"unchecked"}B(kl,"getCheckedState");function Eo(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}B(Eo,"focusFirst");function Po(n,e){return n.map((t,o)=>n[(e+o)%n.length])}B(Po,"wrapArray");function Ro(n,e,t){const r=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=t?n.indexOf(t):-1;let i=Po(n,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==t));const d=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return d!==t?d:void 0}B(Ro,"getNextMatch");function To(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}B(To,"isPointInPolygon");function Ao(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return To(t,e)}B(Ao,"isPointerInGraceArea");function lt(n){return e=>e.pointerType==="mouse"?n(e):void 0}B(lt,"whenMouse");var _l=al,Ml=il,Sl=dl,Nl=fl,Il=vl,El=gl,Pl=xl,Rl=Cl,Tl=Object.defineProperty,be=(n,e)=>Tl(n,"name",{value:e,configurable:!0}),ln="DropdownMenu",[Al,tu]=xe(ln,[jo]),ye=jo(),[$l,$o]=Al(ln),Dl=be(n=>{const{__scopeDropdownMenu:e,children:t,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:l=!0}=n,d=ye(e),c=f.useRef(null),[u,p]=ft({prop:r,defaultProp:s??!1,onChange:i,caller:ln});return a.jsx($l,{scope:e,triggerId:le(),triggerRef:c,contentId:le(),open:u,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:l,children:a.jsx(_l,{...d,open:u,onOpenChange:p,dir:o,modal:l,children:t})})},"DropdownMenu"),Ol="DropdownMenuTrigger",Ll=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,disabled:r=!1,...s}=e,i=$o(Ol,o),l=ye(o),d=se(t,i.triggerRef);return a.jsx(Ml,{asChild:!0,...l,children:a.jsx(X.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:d,onPointerDown:V(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:V(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})},"DropdownMenuTrigger")),zl=be(n=>{const{__scopeDropdownMenu:e,...t}=n,o=ye(e);return a.jsx(Sl,{...o,...t})},"DropdownMenuPortal"),Fl="DropdownMenuContent",Gl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=$o(Fl,o),i=ye(o),l=f.useRef(!1);return a.jsx(Nl,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,d=>{l.current||s.triggerRef.current?.focus(),l.current=!1,d.preventDefault()}),onInteractOutside:V(e.onInteractOutside,d=>{const c=d.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),Vl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Il,{...s,...r,ref:t})},"DropdownMenuGroup")),Hl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(El,{...s,...r,ref:t})},"DropdownMenuLabel")),Bl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Pl,{...s,...r,ref:t})},"DropdownMenuItem")),Kl=f.forwardRef(be(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ye(o);return a.jsx(Rl,{...s,...r,ref:t})},"DropdownMenuSeparator")),ql=Dl,Ul=Ll,Wl=zl,Yl=Gl,Xl=Vl,Jl=Hl,Ql=Bl,Zl=Kl;function gt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(ql,{"data-slot":"dropdown-menu",...t}),e[2]=t,e[3]=o):o=e[3],o}function xt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ul,{"data-slot":"dropdown-menu-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function bt(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,sideOffset:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=r===void 0?4:r;let i;e[4]!==t?(i=T("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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),e[4]=t,e[5]=i):i=e[5];let l;return e[6]!==o||e[7]!==s||e[8]!==i?(l=a.jsx(Wl,{children:a.jsx(Yl,{"data-slot":"dropdown-menu-content",sideOffset:s,className:i,...o})}),e[6]=o,e[7]=s,e[8]=i,e[9]=l):l=e[9],l}function jn(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Xl,{"data-slot":"dropdown-menu-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function de(n){const e=M.c(12);let t,o,r,s;e[0]!==n?({className:t,inset:o,variant:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"default":s;let l;e[5]!==t?(l=T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=l):l=e[6];let d;return e[7]!==o||e[8]!==r||e[9]!==l||e[10]!==i?(d=a.jsx(Ql,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:l,...r}),e[7]=o,e[8]=r,e[9]=l,e[10]=i,e[11]=d):d=e[11],d}function We(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,inset:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==t?(s=T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==r||e[8]!==s?(i=a.jsx(Jl,{"data-slot":"dropdown-menu-label","data-inset":o,className:s,...r}),e[6]=o,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Fe(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 my-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Zl,{"data-slot":"dropdown-menu-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var ec=Object.defineProperty,pe=(n,e)=>ec(n,"name",{value:e,configurable:!0}),Do="Avatar",[tc,nu]=xe(Do),nc=[0,()=>{}],[oc,Oo]=tc(Do),rc=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,...r}=e,[s,i]=f.useState("idle"),[l,d]=zo();return a.jsx(oc,{scope:o,imageLoadingStatus:s,setImageLoadingStatus:i,imageCount:l,setImageCount:d,children:a.jsx(X.span,{...r,ref:t})})},"Avatar")),sc="AvatarImage",ac=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,src:r,onLoadingStatusChange:s,...i}=e,l=Oo(sc,o);l.setImageCount;const d=Lo(r,{referrerPolicy:i.referrerPolicy,crossOrigin:i.crossOrigin,loadingStatus:l.imageLoadingStatus,setLoadingStatus:l.setImageLoadingStatus}),c=Gt(p=>{s?.(p)}),u=f.useRef(d);return Xe(()=>{const p=u.current;u.current=d,d!==p&&c(d)},[d,c]),d==="loaded"?a.jsx(X.img,{...i,ref:t,src:r}):null},"AvatarImage")),ic="AvatarFallback",lc=f.forwardRef(pe(function(e,t){const{__scopeAvatar:o,delayMs:r,...s}=e,i=Oo(ic,o),[l,d]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>d(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?a.jsx(X.span,{...s,ref:t}):null},"AvatarFallback"));function Lo(n,{loadingStatus:e,setLoadingStatus:t,referrerPolicy:o,crossOrigin:r}){return Xe(()=>{if(!n){t("error");return}const s=new window.Image,i=pe(d=>{const c=d.currentTarget;t(Lt(c))},"handleLoad"),l=pe(()=>t("error"),"handleError");return s.addEventListener("load",i),s.addEventListener("error",l),o&&(s.referrerPolicy=o),s.crossOrigin=r??null,s.src=n,t(Lt(s)),()=>{s.removeEventListener("load",i),s.removeEventListener("error",l),t("idle")}},[n,r,o,t]),e}pe(Lo,"useImageLoadingStatus");function Lt(n){return n.complete?n.naturalWidth>0?"loaded":"error":"loading"}pe(Lt,"getImageLoadingStatus");function zo(){return nc}pe(zo,"useImageCount");function cc(n){}pe(cc,"useUpdateImageCount");function dc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(rc,{"data-slot":"avatar",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function uc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("aspect-square size-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(ac,{"data-slot":"avatar-image",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function fc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-muted flex size-full items-center justify-center rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(lc,{"data-slot":"avatar-fallback",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function pc(){return mc}function mc(n){const e=n.trim().split(" ");if(e.length===0)return"";if(e.length===1)return e[0].charAt(0).toUpperCase();const t=e[0].charAt(0),o=e[e.length-1].charAt(0);return`${t}${o}`.toUpperCase()}function Fo(n){const e=M.c(22),{user:t,showEmail:o}=n,r=o===void 0?!1:o,s=pc();let i;e[0]!==t.avatar||e[1]!==t.name?(i=a.jsx(uc,{src:t.avatar,alt:t.name}),e[0]=t.avatar,e[1]=t.name,e[2]=i):i=e[2];let l;e[3]!==s||e[4]!==t.name?(l=s(t.name),e[3]=s,e[4]=t.name,e[5]=l):l=e[5];let d;e[6]!==l?(d=a.jsx(fc,{className:"bg-muted text-foreground rounded-full text-[11px] font-medium",children:l}),e[6]=l,e[7]=d):d=e[7];let c;e[8]!==i||e[9]!==d?(c=a.jsxs(dc,{className:"size-6 overflow-hidden rounded-full",children:[i,d]}),e[8]=i,e[9]=d,e[10]=c):c=e[10];let u;e[11]!==t.name?(u=a.jsx("span",{className:"truncate font-medium",children:t.name}),e[11]=t.name,e[12]=u):u=e[12];let p;e[13]!==r||e[14]!==t.email?(p=r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:t.email}),e[13]=r,e[14]=t.email,e[15]=p):p=e[15];let m;e[16]!==u||e[17]!==p?(m=a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[u,p]}),e[16]=u,e[17]=p,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=a.jsxs(a.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function hc(){return vc}function vc(){document.body.style.removeProperty("pointer-events")}function gc(n){const e=M.c(25),{auth:t}=n,{session:o,user:r}=t,{account:s,accounts:i}=ce().props,l=hc();let d;e[0]!==l?(d=()=>{l(),ee.flushAll()},e[0]=l,e[1]=d):d=e[1];const c=d;let u;e[2]!==r?(u=a.jsx(We,{className:"p-0 font-normal",children:a.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:a.jsx(Fo,{user:r,showEmail:!0})})}),e[2]=r,e[3]=u):u=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Fe,{}),e[4]=p):p=e[4];let m;e[5]!==s?.id||e[6]!==i||e[7]!==l?(m=i.length>1&&a.jsxs(a.Fragment,{children:[a.jsxs(jn,{children:[a.jsx(We,{className:"text-muted-foreground text-xs",children:"Accounts"}),i.map(_=>a.jsxs(de,{onSelect:()=>{l(),ee.post(er(_.id))},children:[a.jsx(Bn,{className:"mr-2"}),a.jsx("span",{className:"flex-1",children:_.name}),s?.id===_.id&&a.jsx(Ut,{className:"size-4"})]},_.id))]}),a.jsx(Fe,{})]}),e[5]=s?.id,e[6]=i,e[7]=l,e[8]=m):m=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=tr(),e[9]=h):h=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(aa,{className:"mr-2"}),e[10]=x):x=e[10];let v;e[11]!==l?(v=a.jsx(jn,{children:a.jsx(de,{asChild:!0,children:a.jsxs(fe,{className:"block w-full",href:h,as:"button",prefetch:!0,onClick:l,children:[x,"Settings"]})})}),e[11]=l,e[12]=v):v=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Fe,{}),e[13]=g):g=e[13];let w;e[14]!==o.id?(w=nr({id:o.id}),e[14]=o.id,e[15]=w):w=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Os,{className:"mr-2"}),e[16]=y):y=e[16];let b;e[17]!==c||e[18]!==w?(b=a.jsx(de,{asChild:!0,children:a.jsxs(fe,{className:"block w-full",method:"delete",href:w,as:"button",onClick:c,children:[y,"Log out"]})}),e[17]=c,e[18]=w,e[19]=b):b=e[19];let j;return e[20]!==b||e[21]!==u||e[22]!==m||e[23]!==v?(j=a.jsxs(a.Fragment,{children:[u,p,m,v,g,b]}),e[20]=b,e[21]=u,e[22]=m,e[23]=v,e[24]=j):j=e[24],j}function xc(){const n=M.c(13),{auth:e}=ce().props,{state:t}=mt(),o=ao();let r;n[0]!==e.user?(r=a.jsx(Fo,{user:e.user}),n[0]=e.user,n[1]=r):r=n[1];let s;n[2]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Un,{className:"ml-auto size-4"}),n[2]=s):s=n[2];let i;n[3]!==r?(i=a.jsx(xt,{asChild:!0,children:a.jsxs(ve,{size:"default",className:"data-[state=open]:bg-sidebar-accent group gap-2",children:[r,s]})}),n[3]=r,n[4]=i):i=n[4];const l=o?"bottom":t==="collapsed"?"left":"bottom";let d;n[5]!==e?(d=a.jsx(gc,{auth:e}),n[5]=e,n[6]=d):d=n[6];let c;n[7]!==l||n[8]!==d?(c=a.jsx(bt,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"end",side:l,children:d}),n[7]=l,n[8]=d,n[9]=c):c=n[9];let u;return n[10]!==i||n[11]!==c?(u=a.jsx(we,{children:a.jsx(he,{children:a.jsxs(gt,{children:[i,c]})})}),n[10]=i,n[11]=c,n[12]=u):u=n[12],u}var bc=Object.defineProperty,Ze=(n,e)=>bc(n,"name",{value:e,configurable:!0}),cn="Collapsible",[yc,ou]=xe(cn),[wc,dn]=yc(cn),Cc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:l,...d}=e,[c,u]=ft({prop:r,defaultProp:s??!1,onChange:l,caller:cn});return a.jsx(wc,{scope:o,disabled:i,contentId:le(),open:c,onOpenToggle:f.useCallback(()=>u(p=>!p),[u]),children:a.jsx(X.div,{"data-state":yt(c),"data-disabled":i?"":void 0,...d,ref:t})})},"Collapsible")),jc="CollapsibleTrigger",kc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,...r}=e,s=dn(jc,o);return a.jsx(X.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":yt(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:V(e.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Go="CollapsibleContent",_c=f.forwardRef(Ze(function(e,t){const{forceMount:o,...r}=e,s=dn(Go,e.__scopeCollapsible);return a.jsx(Ye,{present:o||s.open,children:({present:i})=>a.jsx(Mc,{...r,ref:t,present:i})})},"CollapsibleContent")),Mc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,present:r,children:s,...i}=e,l=dn(Go,o),[d,c]=f.useState(r),u=f.useRef(null),p=se(t,u),m=f.useRef(0),h=m.current,x=f.useRef(0),v=x.current,g=l.open||d,w=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Xe(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const j=b.getBoundingClientRect();m.current=j.height,x.current=j.width,w.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[l.open,r]),a.jsx(X.div,{"data-state":yt(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...i,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&s})},"CollapsibleContentImpl"));function yt(n){return n?"open":"closed"}Ze(yt,"getState");var Sc=Cc;function kn(n){const[e,t]=n.split("?"),o=[...new URLSearchParams(t)].filter(([,r])=>r!=="").sort(([r],[s])=>r.localeCompare(s));return`${e}?${new URLSearchParams(o).toString()}`}function un(n,e){return kn(n)===kn(e)}function Vo(n,e){return n.split("?")[0]===e.split("?")[0]}function ru(n){const e=M.c(84),{page:t}=n,o=ce(),{environment:r,saved_views:s}=o.props,i=s===void 0?[]:s,[l,d]=f.useState(!1),[c,u]=f.useState(""),[p,m]=f.useState(!0),[h,x]=f.useState(!0),[v,g]=f.useState(!1),w=r.application_id,y=r.id;let b;e[0]!==t?(b=Y=>Y.page===t,e[0]=t,e[1]=b):b=e[1];const j=i.filter(b);let _;e[2]!==o.url?(_=new URLSearchParams(o.url.split("?")[1]??""),e[2]=o.url,e[3]=_):_=e[3];const k=_;let S;e[4]!==w||e[5]!==y?(S=Y=>or(w,y,Y.id),e[4]=w,e[5]=y,e[6]=S):S=e[6];const E=S;let N;e[7]!==w||e[8]!==y||e[9]!==o.props.window||e[10]!==c||e[11]!==t||e[12]!==p||e[13]!==k||e[14]!==u||e[15]!==d||e[16]!==h?(N=()=>{const Y={};for(const[ue,mn]of k)ue!=="window"&&ue!=="q"&&mn&&(Y[ue]=mn);ee.post(rr(w,y),{name:c.trim(),page:t,query:k.get("q")??"",window:k.get("window")??o.props.window??"",pinned:p,shared:h,params:Y},{preserveScroll:!0}),d(!1),u("")},e[7]=w,e[8]=y,e[9]=o.props.window,e[10]=c,e[11]=t,e[12]=p,e[13]=k,e[14]=u,e[15]=d,e[16]=h,e[17]=N):N=e[17];const R=N;let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{navigator.clipboard?.writeText(globalThis.location.href),g(!0),globalThis.setTimeout(()=>g(!1),1500)},e[18]=O):O=e[18];const G=O,K="flex shrink-0 items-center gap-1",q=gt;let H;e[19]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(xt,{asChild:!0,children:a.jsxs(Ve,{variant:"outline",size:"sm",className:"h-8 gap-1.5 px-2",children:[a.jsx(Wt,{className:"size-3.5"}),a.jsx("span",{className:"label-caps text-foreground",children:"Views"}),a.jsx(Kn,{className:"size-3 opacity-60"})]})}),e[19]=H):H=e[19];const oe=bt,U="end",Me="w-64";let te;e[20]===Symbol.for("react.memo_cache_sentinel")?(te=a.jsx(We,{className:"label-caps",children:"Saved views"}),e[20]=te):te=e[20];const A=j.length===0&&a.jsx(de,{disabled:!0,children:"No saved views yet"});let re;e[21]!==o.url||e[22]!==E?(re=Y=>a.jsxs(de,{onSelect:()=>ee.visit(Y.url),className:T(un(o.url,Y.url)&&"bg-accent"),children:[a.jsx("span",{className:"truncate",children:Y.name}),Y.mine&&a.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-0.5",children:[a.jsx("button",{type:"button","aria-label":`${Y.pinned?"Unpin":"Pin"} ${Y.name}`,className:"text-muted-foreground hover:text-foreground p-0.5",onClick:ue=>{ue.preventDefault(),ue.stopPropagation(),ee.patch(E(Y),{pinned:!Y.pinned},{preserveScroll:!0})},children:Y.pinned?a.jsx(Ws,{className:"size-3.5"}):a.jsx(Xs,{className:"size-3.5"})}),a.jsx("button",{type:"button","aria-label":`Delete ${Y.name}`,className:"text-muted-foreground hover:text-destructive p-0.5",onClick:ue=>{ue.preventDefault(),ue.stopPropagation(),ee.delete(E(Y),{preserveScroll:!0})},children:a.jsx(va,{className:"size-3.5"})})]})]},Y.id),e[21]=o.url,e[22]=E,e[23]=re):re=e[23];const C=j.map(re);let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Fe,{}),e[24]=P):P=e[24];let D;e[25]!==d?(D=()=>d(!0),e[25]=d,e[26]=D):D=e[26];let I;e[27]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(os,{className:"size-3.5"}),e[27]=I):I=e[27];let L;e[28]!==D?(L=a.jsxs(de,{onSelect:D,children:[I,"Save current view…"]}),e[28]=D,e[29]=L):L=e[29];let z;e[30]!==oe||e[31]!==te||e[32]!==A||e[33]!==C||e[34]!==L?(z=a.jsxs(oe,{align:U,className:Me,children:[te,A,C,P,L]}),e[30]=oe,e[31]=te,e[32]=A,e[33]=C,e[34]=L,e[35]=z):z=e[35];let F;e[36]!==q||e[37]!==z||e[38]!==H?(F=a.jsxs(q,{children:[H,z]}),e[36]=q,e[37]=z,e[38]=H,e[39]=F):F=e[39];let W;e[40]!==v?(W=v?a.jsx(Ut,{className:"size-3.5"}):a.jsx($s,{className:"size-3.5"}),e[40]=v,e[41]=W):W=e[41];let ie;e[42]!==G||e[43]!==W?(ie=a.jsx(Ve,{variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Copy link to this view",onClick:G,children:W}),e[42]=G,e[43]=W,e[44]=ie):ie=e[44];let Se;e[45]!==F||e[46]!==ie?(Se=a.jsxs("div",{className:K,children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=Se):Se=e[47];let tt;e[48]===Symbol.for("react.memo_cache_sentinel")?(tt=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Save this view"}),a.jsx(Bt,{children:"Keeps the filters, window, and sort currently in the URL under a name you can link to."})]}),e[48]=tt):tt=e[48];let nt;e[49]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(kt,{htmlFor:"saved-view-name",children:"Name"}),e[49]=nt):nt=e[49];let Ne;e[50]!==u?(Ne=Y=>u(Y.target.value),e[50]=u,e[51]=Ne):Ne=e[51];let Ie;e[52]!==c||e[53]!==Ne?(Ie=a.jsxs("div",{className:"grid gap-1.5",children:[nt,a.jsx(Wr,{id:"saved-view-name",value:c,onChange:Ne,placeholder:"5xx checkout requests"})]}),e[52]=c,e[53]=Ne,e[54]=Ie):Ie=e[54];let Ee;e[55]!==m?(Ee=Y=>m(Y===!0),e[55]=m,e[56]=Ee):Ee=e[56];let Pe;e[57]!==p||e[58]!==Ee?(Pe=a.jsxs(kt,{className:"gap-2 font-normal",children:[a.jsx(xn,{checked:p,onCheckedChange:Ee}),"Pin to the sidebar"]}),e[57]=p,e[58]=Ee,e[59]=Pe):Pe=e[59];let Re;e[60]!==x?(Re=Y=>x(Y===!0),e[60]=x,e[61]=Re):Re=e[61];let Te;e[62]!==h||e[63]!==Re?(Te=a.jsxs(kt,{className:"gap-2 font-normal",children:[a.jsx(xn,{checked:h,onCheckedChange:Re}),"Share with the team"]}),e[62]=h,e[63]=Re,e[64]=Te):Te=e[64];let Ae;e[65]!==Ie||e[66]!==Pe||e[67]!==Te?(Ae=a.jsxs("div",{className:"flex flex-col gap-3",children:[Ie,Pe,Te]}),e[65]=Ie,e[66]=Pe,e[67]=Te,e[68]=Ae):Ae=e[68];let ot;e[69]!==c?(ot=c.trim(),e[69]=c,e[70]=ot):ot=e[70];const Ct=!ot;let $e;e[71]!==R||e[72]!==Ct?($e=a.jsx(Br,{children:a.jsx(Ve,{size:"sm",onClick:R,disabled:Ct,children:"Save view"})}),e[71]=R,e[72]=Ct,e[73]=$e):$e=e[73];let De;e[74]!==Ae||e[75]!==$e?(De=a.jsxs(Kt,{className:"sm:max-w-sm",children:[tt,Ae,$e]}),e[74]=Ae,e[75]=$e,e[76]=De):De=e[76];let Oe;e[77]!==l||e[78]!==d||e[79]!==De?(Oe=a.jsx(qt,{open:l,onOpenChange:d,children:De}),e[77]=l,e[78]=d,e[79]=De,e[80]=Oe):Oe=e[80];let rt;return e[81]!==Se||e[82]!==Oe?(rt=a.jsxs(a.Fragment,{children:[Se,Oe]}),e[81]=Se,e[82]=Oe,e[83]=rt):rt=e[83],rt}function Nc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Sc,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ic(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(kc,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function Ec(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_c,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=o):o=e[3],o}function fn(n,e,t){const o=n,r=e,s={window:t};return[{title:"Overview",href:He(o,r,s),icon:ks,group:"activity"},{title:"Requests",href:In(o,r,s),icon:Xr,group:"activity"},{title:"Jobs",href:En(o,r,s),icon:ba,group:"activity"},{title:"Scheduled tasks",href:ar(o,r,s),icon:us,group:"activity"},{title:"Commands",href:ir(o,r,s),icon:fa,group:"activity"},{title:"Exceptions",href:lr(o,r,s),icon:as,group:"activity"},{title:"Queries",href:Pn(o,r,s),icon:xs,group:"activity"},{title:"Spans",href:cr(o,r,s),icon:ma,group:"activity"},{title:"Profiles",href:dr(o,r,s),icon:Cs,group:"activity"},{title:"Transactions",href:ur(o,r,s),icon:Ms,group:"activity"},{title:"View renders",href:fr(o,r,s),icon:Ts,group:"activity"},{title:"Cache",href:pr(o,r,s),icon:Es,group:"activity"},{title:"Mail",href:mr(o,r,s),icon:zs,group:"activity"},{title:"Notifications",href:hr(o,r,s),icon:Hn,group:"activity"},{title:"Broadcasts",href:vr(o,r,s),icon:cs,group:"activity"},{title:"Outgoing requests",href:gr(o,r,s),icon:Qr,group:"activity"},{title:"LLM",href:xr(o,r,s),icon:da,group:"activity"},{title:"Storage",href:br(o,r,s),icon:Ns,group:"activity"},{title:"Logs",href:yr(o,r,s),icon:ys,group:"activity"},{title:"Deprecations",href:wr(o,r,s),icon:sr,group:"activity"},{title:"Visits",href:Cr(o,r,s),icon:Gs,group:"monitoring"},{title:"Users",href:jr(o,r,s),icon:Xt,group:"monitoring"},{title:"Tenants",href:kr(o,r,s),icon:Bn,group:"monitoring"},{title:"Deploys",href:_r(o,r),icon:ta,group:"monitoring"},{title:"Releases",href:Mr(o,r,s),icon:Bs,group:"monitoring"},{title:"Processes",href:Sr(o,r),icon:ra,group:"monitoring"},{title:"Alerts",href:Nr(o,r),icon:la,group:"monitoring"},{title:"Thresholds",href:Ir(o,r),icon:Kr,group:"settings"},{title:"Usage",href:Er(o,r),icon:ps,group:"settings"}]}const Ho=[{key:"activity",title:"Activity"},{key:"monitoring",title:"Monitoring"},{key:"settings",title:"Settings"}];function Pc(){const n=M.c(1),e=ce(),{environment:t}=e.props,o=e.url.split("?")[0];let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={},n[0]=r):r=n[0];const[s,i]=f.useState(r);if(!t)return null;const l=fn(t.application_id,t.id,e.props.window),d=(e.props.saved_views??[]).filter(Rc),c=p=>{const m=p.split("?")[0];return o===m||o.startsWith(m+"/")},u=l[0];return a.jsx(Zt,{className:"p-0",children:a.jsxs(we,{children:[a.jsx(he,{children:a.jsx(ve,{asChild:!0,isActive:o===u.href.split("?")[0],tooltip:{children:u.title},children:a.jsxs(fe,{href:u.href,prefetch:!0,children:[u.icon&&a.jsx(u.icon,{}),a.jsx("span",{children:u.title})]})})}),Ho.map(p=>{const m=l.filter(g=>g.group===p.key&&g!==u),h=m.some(g=>c(g.href)),x=s[p.key]??h,v=m[0]?.icon;return a.jsx(Nc,{open:x,onOpenChange:g=>i(w=>({...w,[p.key]:g})),className:"group/collapsible",children:a.jsxs(he,{children:[a.jsx(Ic,{asChild:!0,children:a.jsxs(ve,{tooltip:{children:p.title},className:T(h&&"text-sidebar-foreground"),children:[v&&a.jsx(v,{}),a.jsx("span",{children:p.title}),a.jsx(qn,{className:"ml-auto size-3.5 opacity-60 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Ec,{children:a.jsx(ji,{className:"mr-0 gap-0.5 pr-0",children:m.map(g=>a.jsxs(ki,{children:[a.jsx(yn,{asChild:!0,isActive:c(g.href),children:a.jsx(fe,{href:g.href,prefetch:!0,children:a.jsx("span",{children:g.title})})}),d.filter(w=>Vo(w.url,g.href)).map(w=>a.jsx(yn,{asChild:!0,size:"sm",className:"pl-4",isActive:un(e.url,w.url),children:a.jsxs(fe,{href:w.url,children:[a.jsx(Wt,{className:"opacity-60"}),a.jsx("span",{children:w.name})]})},w.id))]},g.title))})})]})},p.key)})]})})}function Rc(n){return n.pinned}function _n(n){const e=M.c(7),{name:t,className:o}=n;let r;e[0]!==o?(r=T("bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",o),e[0]=o,e[1]=r):r=e[1];let s;e[2]!==t?(s=t.slice(0,2).toUpperCase(),e[2]=t,e[3]=s):s=e[3];let i;return e[4]!==r||e[5]!==s?(i=a.jsx("span",{className:r,children:s}),e[4]=r,e[5]=s,e[6]=i):i=e[6],i}function Tc(){const n=M.c(44),{applications:e,environment:t,embedded:o}=ce().props;if(e.length===0)return null;let r;n[0]!==e||n[1]!==t?.application_id?(r=e.find(y=>y.id===t?.application_id)??e[0],n[0]=e,n[1]=t?.application_id,n[2]=r):r=n[2];const s=r;if(o){const y=t??s.environments[0];let b;n[3]!==s.id||n[4]!==y.id?(b=He(s.id,y.id),n[3]=s.id,n[4]=y.id,n[5]=b):b=n[5];let j;n[6]!==s.name?(j=a.jsx(_n,{name:s.name}),n[6]=s.name,n[7]=j):j=n[7];let _;n[8]!==s.name?(_=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[8]=s.name,n[9]=_):_=n[9];let k;n[10]!==y.name?(k=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:y.name}),n[10]=y.name,n[11]=k):k=n[11];let S;n[12]!==_||n[13]!==k?(S=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[_,k]}),n[12]=_,n[13]=k,n[14]=S):S=n[14];let E;return n[15]!==b||n[16]!==j||n[17]!==S?(E=a.jsx(we,{children:a.jsx(he,{children:a.jsx(ve,{size:"lg",asChild:!0,className:"border-0 py-2 pr-3 pl-2 hover:bg-transparent",children:a.jsxs(fe,{href:b,prefetch:!0,children:[j,S]})})})}),n[15]=b,n[16]=j,n[17]=S,n[18]=E):E=n[18],E}let i;n[19]!==s.name?(i=a.jsx(_n,{name:s.name}),n[19]=s.name,n[20]=i):i=n[20];let l;n[21]!==s.name?(l=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[21]=s.name,n[22]=l):l=n[22];const d=t?t.name:`${s.environments.length} environment${s.environments.length===1?"":"s"}`;let c;n[23]!==d?(c=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:d}),n[23]=d,n[24]=c):c=n[24];let u;n[25]!==l||n[26]!==c?(u=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[l,c]}),n[25]=l,n[26]=c,n[27]=u):u=n[27];let p;n[28]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Un,{className:"size-3.5 opacity-60"}),n[28]=p):p=n[28];let m;n[29]!==i||n[30]!==u?(m=a.jsx(xt,{asChild:!0,children:a.jsxs(ve,{size:"lg",className:"data-[state=open]:bg-sidebar-accent hover:bg-sidebar-accent border-0 py-2 pr-3 pl-2",children:[i,u,p]})}),n[29]=i,n[30]=u,n[31]=m):m=n[31];let h;if(n[32]!==e||n[33]!==t?.id){let y;n[35]!==t?.id?(y=b=>a.jsxs("div",{children:[a.jsx(We,{className:"label-caps",children:b.name}),b.environments.map(j=>a.jsxs(de,{onSelect:()=>ee.visit(He(b.id,j.id)),children:[a.jsx(qr,{lastSeenAt:j.paused?null:j.last_seen_at,thresholdMs:6e5}),a.jsx("span",{className:"flex-1",children:j.name}),j.id===t?.id&&a.jsx(Ut,{className:"size-3.5"})]},j.id))]},b.id),n[35]=t?.id,n[36]=y):y=n[36],h=e.map(y),n[32]=e,n[33]=t?.id,n[34]=h}else h=n[34];let x;n[37]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Fe,{}),n[37]=x):x=n[37];let v;n[38]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsxs(de,{onSelect:Ac,children:[a.jsx(Zs,{className:"size-3.5"}),"Add application"]}),n[38]=v):v=n[38];let g;n[39]!==h?(g=a.jsxs(bt,{align:"start",className:"w-(--radix-dropdown-menu-trigger-width) min-w-64",children:[h,x,v]}),n[39]=h,n[40]=g):g=n[40];let w;return n[41]!==g||n[42]!==m?(w=a.jsx(we,{children:a.jsx(he,{children:a.jsxs(gt,{children:[m,g]})})}),n[41]=g,n[42]=m,n[43]=w):w=n[43],w}function Ac(){return ee.visit(Pr())}function $c(n){const e=M.c(4);let t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx("path",{d:"M 236 324.989 L 236 404.978 496.750 405.239 L 757.500 405.500 765.665 408.577 C 777.060 412.870, 784.110 417.355, 792.381 425.574 C 833.878 466.807, 812.048 538.520, 752.263 557.363 C 737.593 561.987, 732.018 562.115, 560.250 561.798 C 471.562 561.634, 399 561.557, 399 561.626 C 399 561.695, 406.313 568.648, 415.250 577.077 C 436.108 596.747, 508.719 665.823, 525 681.483 C 612.468 765.614, 693.318 845.033, 770.500 922.639 L 840.500 993.023 951.250 993.011 C 1012.163 993.005, 1062 992.732, 1062 992.404 C 1062 992.076, 1056.942 986.113, 1050.761 979.154 C 1039.889 966.913, 1035.649 962.220, 1005.428 928.979 C 997.688 920.465, 984.624 906.075, 976.396 897 C 933.021 849.161, 888.142 799.872, 868.953 779 C 857.071 766.075, 841.562 749.200, 834.490 741.500 C 827.417 733.800, 814.456 719.721, 805.686 710.213 C 796.916 700.705, 789.994 692.673, 790.303 692.363 C 790.613 692.054, 795.578 690.983, 801.338 689.983 C 895.506 673.637, 967.601 596.363, 980.578 497.866 C 982.637 482.242, 982.086 446.289, 979.576 432.500 C 960.757 329.105, 884.022 255.740, 784.576 246.063 C 777.168 245.342, 687.144 245, 504.826 245 L 236 245 236 324.989",fill:"currentColor"}),o=a.jsx("path",{d:"M 243.550 507.838 C 244.072 508.299, 247.425 510.859, 251 513.526 C 294.327 545.849, 358.703 617.861, 503.521 796 C 560.192 865.711, 593.994 908.954, 627.414 954.500 L 642.090 974.500 689.045 975 C 714.871 975.275, 736 975.275, 735.999 975 C 735.994 973.773, 698.564 930.428, 663.901 891.507 C 571.946 788.257, 436.131 649.261, 367.500 588.162 C 325.285 550.581, 286.033 524.106, 252.457 510.567 C 243.188 506.829, 241.991 506.462, 243.550 507.838 M 236 520 C 236 521.800, 236.667 522, 242.655 522 C 249.247 522, 249.293 521.981, 247.500 520 C 246.164 518.524, 244.420 518, 240.845 518 C 236.667 518, 236 518.275, 236 520 M 236 532.500 L 236 537 249.067 537 L 262.134 537 258.446 532.500 L 254.759 528 245.380 528 L 236 528 236 532.500 M 236 553.500 L 236 562 258.500 562 C 270.875 562, 280.991 561.663, 280.981 561.250 C 280.970 560.837, 278.237 557.013, 274.908 552.750 L 268.854 545 252.427 545 L 236 545 236 553.500 M 235.909 585 C 235.859 589.950, 235.777 595.462, 235.727 597.250 L 235.636 600.500 273.840 600.762 L 312.044 601.024 302.772 588.569 L 293.500 576.114 264.750 576.057 L 236 576 235.909 585 M 235.570 627.477 C 235.212 629.389, 234.979 637.714, 235.053 645.977 L 235.188 661 295.571 661 L 355.955 661 342.326 642.500 L 328.698 624 282.460 624 L 236.223 624 235.570 627.477 M 236 717.750 L 236 741.500 324.591 741.326 C 373.315 741.230, 413.343 740.990, 413.541 740.792 C 413.739 740.594, 406.184 729.985, 396.752 717.216 L 379.603 694 307.802 694 L 236 694 236 717.750 M 236.235 813.250 L 236.500 842.500 362.358 842.754 C 472.189 842.975, 488.146 842.822, 487.658 841.552 C 487.351 840.751, 477.621 827.475, 466.036 812.048 L 444.973 784 340.471 784 L 235.970 784 236.235 813.250 M 235.683 898.750 C 234.872 900.147, 235.511 973.844, 236.341 974.675 C 237.491 975.825, 392.185 976.287, 495.665 975.450 L 581.829 974.753 578.959 970.126 C 575.681 964.845, 552.884 930.825, 539.500 911.243 L 530.500 898.075 383.309 898.038 C 302.354 898.017, 235.922 898.337, 235.683 898.750",fill:"#FFC22B"}),e[0]=t,e[1]=o):(t=e[0],o=e[1]);let r;return e[2]!==n?(r=a.jsxs("svg",{viewBox:"213 184 870 870",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[t,o]}),e[2]=n,e[3]=r):r=e[3],r}function Dc(){const n=M.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"hidden aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-[#0F1729] text-white group-data-[collapsible=icon]:flex",children:a.jsx($c,{className:"size-6"})}),a.jsx($r,{className:"h-4 w-auto group-data-[collapsible=icon]:hidden"})]}),n[0]=e):e=n[0],e}const Oc=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Wn}],{title:"Issues",href:Be(),icon:Yn},{title:"Alerts",href:Rr(),icon:Hn},...n?[]:[{title:"Integrations",href:Rn(),icon:Xn},{title:"Members",href:Tn(),icon:Xt}]],Lc=n=>[{title:"Documentation",href:n?"https://railwatch.rebulk.com/docs":"/docs",icon:ts}];function zc(){const n=M.c(23),{environment:e,applications:t,embedded:o}=ce().props;let r;n[0]!==t.length?(r=a.jsx(gi,{className:"border-sidebar-border gap-0 border-b p-1.5",children:t.length>0?a.jsx(Tc,{}):a.jsx(we,{children:a.jsx(he,{children:a.jsx(ve,{size:"lg",asChild:!0,children:a.jsx(fe,{href:ct(),prefetch:!0,children:a.jsx(Dc,{})})})})})}),n[0]=t.length,n[1]=r):r=n[1];let s;n[2]!==e?(s=e&&a.jsx(Pc,{}),n[2]=e,n[3]=s):s=n[3];const i=!!o;let l;n[4]!==i?(l=Oc(i),n[4]=i,n[5]=l):l=n[5];const d=e?"Account":"";let c;n[6]!==l||n[7]!==d?(c=a.jsx(Pi,{items:l,label:d}),n[6]=l,n[7]=d,n[8]=c):c=n[8];let u;n[9]!==s||n[10]!==c?(u=a.jsxs(bi,{className:"gap-0 p-1.5",children:[s,c]}),n[9]=s,n[10]=c,n[11]=u):u=n[11];const p=!!o;let m;n[12]!==p?(m=Lc(p),n[12]=p,n[13]=m):m=n[13];let h;n[14]!==m?(h=a.jsx(Ii,{items:m,className:"mt-auto"}),n[14]=m,n[15]=h):h=n[15];let x;n[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(xc,{}),n[16]=x):x=n[16];let v;n[17]!==h?(v=a.jsxs(xi,{children:[h,x]}),n[17]=h,n[18]=v):v=n[18];let g;return n[19]!==r||n[20]!==v||n[21]!==u?(g=a.jsxs(mi,{collapsible:"icon",variant:"sidebar",children:[r,u,v]}),n[19]=r,n[20]=v,n[21]=u,n[22]=g):g=n[22],g}function Fc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t}),e[2]=t,e[3]=o):o=e[3],o}function Gc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Vc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("inline-flex items-center gap-1.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Hc(n){const e=M.c(10);let t,o,r;e[0]!==n?({asChild:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=t?dt:"a";let i;e[4]!==o?(i=T("hover:text-foreground transition-colors",o),e[4]=o,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==r||e[8]!==i?(l=a.jsx(s,{"data-slot":"breadcrumb-link",className:i,...r}),e[6]=s,e[7]=r,e[8]=i,e[9]=l):l=e[9],l}function Bc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-normal",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Kc(n){const e=M.c(12);let t,o,r;e[0]!==n?({children:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("[&>svg]:size-3.5",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]!==t?(i=t??a.jsx(qn,{}),e[6]=t,e[7]=i):i=e[7];let l;return e[8]!==r||e[9]!==s||e[10]!==i?(l=a.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s,...r,children:i}),e[8]=r,e[9]=s,e[10]=i,e[11]=l):l=e[11],l}function qc(n){const e=M.c(4),{breadcrumbs:t}=n;let o;e[0]!==t?(o=t.length>0&&a.jsx(Fc,{children:a.jsx(Gc,{children:t.map((s,i)=>{const l=i===t.length-1;return a.jsxs(f.Fragment,{children:[a.jsx(Vc,{children:l?a.jsx(Bc,{children:s.title}):a.jsx(Hc,{asChild:!0,children:a.jsx(fe,{href:s.href,children:s.title})})}),!l&&a.jsx(Kc,{})]},i)})})}),e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(a.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function Uc(){const n=M.c(21),e=ce(),{environment:t}=e.props;if(!t)return null;let o,r,s,i,l,d;if(n[0]!==t.application_id||n[1]!==t.id||n[2]!==e.props.saved_views||n[3]!==e.props.window||n[4]!==e.url){const p=fn(t.application_id,t.id,e.props.window),m=e.url.split("?")[0],h=(e.props.saved_views??[]).filter(Yc),x=p.filter(g=>{const w=g.href.split("?")[0];return m===w||m.startsWith(w+"/")}).sort(Wc)[0]??p[0];r=gt;let v;n[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(Kn,{className:"size-3.5 shrink-0 opacity-60"}),n[11]=v):v=n[11],d=a.jsxs(xt,{className:"flex min-w-0 items-center gap-1 text-sm font-medium",children:[x.icon&&a.jsx(x.icon,{className:"size-4 shrink-0 opacity-70"}),a.jsx("span",{className:"truncate",children:x.title}),v]}),o=bt,s="start",i="max-h-[70vh] w-60 overflow-y-auto",l=Ho.map((g,w)=>a.jsxs("div",{children:[w>0&&a.jsx(Fe,{}),a.jsx(We,{className:"label-caps",children:g.title}),p.filter(y=>y.group===g.key).map(y=>a.jsxs("div",{children:[a.jsxs(de,{onSelect:()=>ee.visit(y.href),className:y===x?"bg-accent":void 0,children:[y.icon&&a.jsx(y.icon,{className:"size-4"}),y.title]}),h.filter(b=>Vo(b.url,y.href)).map(b=>a.jsxs(de,{onSelect:()=>ee.visit(b.url),className:T("pl-8 text-xs",un(e.url,b.url)&&"bg-accent"),children:[a.jsx(Wt,{className:"size-3.5 opacity-60"}),b.name]},b.id))]},y.title))]},g.key)),n[0]=t.application_id,n[1]=t.id,n[2]=e.props.saved_views,n[3]=e.props.window,n[4]=e.url,n[5]=o,n[6]=r,n[7]=s,n[8]=i,n[9]=l,n[10]=d}else o=n[5],r=n[6],s=n[7],i=n[8],l=n[9],d=n[10];let c;n[12]!==o||n[13]!==s||n[14]!==i||n[15]!==l?(c=a.jsx(o,{align:s,className:i,children:l}),n[12]=o,n[13]=s,n[14]=i,n[15]=l,n[16]=c):c=n[16];let u;return n[17]!==r||n[18]!==d||n[19]!==c?(u=a.jsxs(r,{children:[d,c]}),n[17]=r,n[18]=d,n[19]=c,n[20]=u):u=n[20],u}function Wc(n,e){return e.href.length-n.href.length}function Yc(n){return n.pinned}function Xc(n){const e=M.c(16),{breadcrumbs:t,onOpenCommandPalette:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,{environment:i}=ce().props;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(hi,{className:"text-muted-foreground -ml-1"}),e[2]=l):l=e[2];let d;e[3]!==s?(d=a.jsx("div",{className:"text-muted-foreground hidden min-w-0 text-xs md:block",children:a.jsx(qc,{breadcrumbs:s})}),e[3]=s,e[4]=d):d=e[4];let c;e[5]!==s||e[6]!==i?(c=a.jsx("div",{className:"min-w-0 md:hidden",children:i?a.jsx(Uc,{}):a.jsx("span",{className:"truncate text-sm font-medium",children:s[s.length-1]?.title})}),e[5]=s,e[6]=i,e[7]=c):c=e[7];let u;e[8]!==d||e[9]!==c?(u=a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[l,d,c]}),e[8]=d,e[9]=c,e[10]=u):u=e[10];let p;e[11]!==o?(p=o&&a.jsxs(Ve,{type:"button",variant:"outline",size:"sm",className:"text-muted-foreground h-8 gap-1.5",onClick:o,children:[a.jsx(Yt,{className:"size-3.5"}),a.jsx("span",{className:"hidden sm:inline",children:"Search"}),a.jsx("kbd",{className:"bg-muted hidden rounded px-1 py-0.5 font-mono text-[10px] sm:inline",children:"⌘K"})]}),e[11]=o,e[12]=p):p=e[12];let m;return e[13]!==u||e[14]!==p?(m=a.jsxs("header",{className:"bg-background/80 sticky top-0 z-20 flex h-12 shrink-0 items-center justify-between gap-2 border-b px-3 backdrop-blur md:h-11 md:border-0 md:bg-transparent md:px-6 md:pt-2 md:backdrop-blur-none",children:[u,p]}),e[13]=u,e[14]=p,e[15]=m):m=e[15],m}var Mn=1,Jc=.9,Qc=.8,Zc=.17,Nt=.1,It=.999,ed=.9999,td=.99,nd=/[\\\/_+.#"@\[\(\{&]/,od=/[\\\/_+.#"@\[\(\{&]/g,rd=/[\s-]/,Bo=/[\s-]/g;function zt(n,e,t,o,r,s,i){if(s===e.length)return r===n.length?Mn:td;var l=`${r},${s}`;if(i[l]!==void 0)return i[l];for(var d=o.charAt(s),c=t.indexOf(d,r),u=0,p,m,h,x;c>=0;)p=zt(n,e,t,o,c+1,s+1,i),p>u&&(c===r?p*=Mn:nd.test(n.charAt(c-1))?(p*=Qc,h=n.slice(r,c-1).match(od),h&&r>0&&(p*=Math.pow(It,h.length))):rd.test(n.charAt(c-1))?(p*=Jc,x=n.slice(r,c-1).match(Bo),x&&r>0&&(p*=Math.pow(It,x.length))):(p*=Zc,r>0&&(p*=Math.pow(It,c-r))),n.charAt(c)!==e.charAt(s)&&(p*=ed)),(p<Nt&&t.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&t.charAt(c-1)!==o.charAt(s))&&(m=zt(n,e,t,o,c+1,s+2,i),m*Nt>p&&(p=m*Nt)),p>u&&(u=p),c=t.indexOf(d,c+1);return i[l]=u,u}function Sn(n){return n.toLowerCase().replace(Bo," ")}function sd(n,e,t){return n=t&&t.length>0?`${n+" "+t.join(" ")}`:n,zt(n,e,Sn(n),Sn(e),0,0,{})}var Ge='[cmdk-group=""]',Et='[cmdk-group-items=""]',ad='[cmdk-group-heading=""]',Ko='[cmdk-item=""]',Nn=`${Ko}:not([aria-disabled="true"])`,Ft="cmdk-item-select",Le="data-value",id=(n,e,t)=>sd(n,e,t),qo=f.createContext(void 0),et=()=>f.useContext(qo),Uo=f.createContext(void 0),pn=()=>f.useContext(Uo),Wo=f.createContext(void 0),Yo=f.forwardRef((n,e)=>{let t=ze(()=>{var C,P;return{search:"",value:(P=(C=n.value)!=null?C:n.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=ze(()=>new Set),r=ze(()=>new Map),s=ze(()=>new Map),i=ze(()=>new Set),l=Xo(n),{label:d,children:c,value:u,onValueChange:p,filter:m,shouldFilter:h,loop:x,disablePointerSelection:v=!1,vimBindings:g=!0,...w}=n,y=le(),b=le(),j=le(),_=f.useRef(null),k=xd();Ce(()=>{if(u!==void 0){let C=u.trim();t.current.value=C,S.emit()}},[u]),Ce(()=>{k(6,K)},[]);let S=f.useMemo(()=>({subscribe:C=>(i.current.add(C),()=>i.current.delete(C)),snapshot:()=>t.current,setState:(C,P,D)=>{var I,L,z,F;if(!Object.is(t.current[C],P)){if(t.current[C]=P,C==="search")G(),R(),k(1,O);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(j);W?W.focus():(I=document.getElementById(y))==null||I.focus()}if(k(7,()=>{var W;t.current.selectedItemId=(W=q())==null?void 0:W.id,S.emit()}),D||k(5,K),((L=l.current)==null?void 0:L.value)!==void 0){let W=P??"";(F=(z=l.current).onValueChange)==null||F.call(z,W);return}}S.emit()}},emit:()=>{i.current.forEach(C=>C())}}),[]),E=f.useMemo(()=>({value:(C,P,D)=>{var I;P!==((I=s.current.get(C))==null?void 0:I.value)&&(s.current.set(C,{value:P,keywords:D}),t.current.filtered.items.set(C,N(P,D)),k(2,()=>{R(),S.emit()}))},item:(C,P)=>(o.current.add(C),P&&(r.current.has(P)?r.current.get(P).add(C):r.current.set(P,new Set([C]))),k(3,()=>{G(),R(),t.current.value||O(),S.emit()}),()=>{s.current.delete(C),o.current.delete(C),t.current.filtered.items.delete(C);let D=q();k(4,()=>{G(),D?.getAttribute("id")===C&&O(),S.emit()})}),group:C=>(r.current.has(C)||r.current.set(C,new Set),()=>{s.current.delete(C),r.current.delete(C)}),filter:()=>l.current.shouldFilter,label:d||n["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:j,labelId:b,listInnerRef:_}),[]);function N(C,P){var D,I;let L=(I=(D=l.current)==null?void 0:D.filter)!=null?I:id;return C?L(C,t.current.search,P):0}function R(){if(!t.current.search||l.current.shouldFilter===!1)return;let C=t.current.filtered.items,P=[];t.current.filtered.groups.forEach(I=>{let L=r.current.get(I),z=0;L.forEach(F=>{let W=C.get(F);z=Math.max(W,z)}),P.push([I,z])});let D=_.current;H().sort((I,L)=>{var z,F;let W=I.getAttribute("id"),ie=L.getAttribute("id");return((z=C.get(ie))!=null?z:0)-((F=C.get(W))!=null?F:0)}).forEach(I=>{let L=I.closest(Et);L?L.appendChild(I.parentElement===L?I:I.closest(`${Et} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Et} > *`))}),P.sort((I,L)=>L[1]-I[1]).forEach(I=>{var L;let z=(L=_.current)==null?void 0:L.querySelector(`${Ge}[${Le}="${encodeURIComponent(I[0])}"]`);z?.parentElement.appendChild(z)})}function O(){let C=H().find(D=>D.getAttribute("aria-disabled")!=="true"),P=C?.getAttribute(Le);S.setState("value",P||void 0)}function G(){var C,P,D,I;if(!t.current.search||l.current.shouldFilter===!1){t.current.filtered.count=o.current.size;return}t.current.filtered.groups=new Set;let L=0;for(let z of o.current){let F=(P=(C=s.current.get(z))==null?void 0:C.value)!=null?P:"",W=(I=(D=s.current.get(z))==null?void 0:D.keywords)!=null?I:[],ie=N(F,W);t.current.filtered.items.set(z,ie),ie>0&&L++}for(let[z,F]of r.current)for(let W of F)if(t.current.filtered.items.get(W)>0){t.current.filtered.groups.add(z);break}t.current.filtered.count=L}function K(){var C,P,D;let I=q();I&&(((C=I.parentElement)==null?void 0:C.firstChild)===I&&((D=(P=I.closest(Ge))==null?void 0:P.querySelector(ad))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function q(){var C;return(C=_.current)==null?void 0:C.querySelector(`${Ko}[aria-selected="true"]`)}function H(){var C;return Array.from(((C=_.current)==null?void 0:C.querySelectorAll(Nn))||[])}function oe(C){let P=H()[C];P&&S.setState("value",P.getAttribute(Le))}function U(C){var P;let D=q(),I=H(),L=I.findIndex(F=>F===D),z=I[L+C];(P=l.current)!=null&&P.loop&&(z=L+C<0?I[I.length-1]:L+C===I.length?I[0]:I[L+C]),z&&S.setState("value",z.getAttribute(Le))}function Me(C){let P=q(),D=P?.closest(Ge),I;for(;D&&!I;)D=C>0?vd(D,Ge):gd(D,Ge),I=D?.querySelector(Nn);I?S.setState("value",I.getAttribute(Le)):U(C)}let te=()=>oe(H().length-1),A=C=>{C.preventDefault(),C.metaKey?te():C.altKey?Me(1):U(1)},re=C=>{C.preventDefault(),C.metaKey?oe(0):C.altKey?Me(-1):U(-1)};return f.createElement(X.div,{ref:e,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:C=>{var P;(P=w.onKeyDown)==null||P.call(w,C);let D=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||D))switch(C.key){case"n":case"j":{g&&C.ctrlKey&&A(C);break}case"ArrowDown":{A(C);break}case"p":case"k":{g&&C.ctrlKey&&re(C);break}case"ArrowUp":{re(C);break}case"Home":{C.preventDefault(),oe(0);break}case"End":{C.preventDefault(),te();break}case"Enter":{C.preventDefault();let I=q();if(I){let L=new Event(Ft);I.dispatchEvent(L)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:yd},d),wt(n,C=>f.createElement(Uo.Provider,{value:S},f.createElement(qo.Provider,{value:E},C))))}),ld=f.forwardRef((n,e)=>{var t,o;let r=le(),s=f.useRef(null),i=f.useContext(Wo),l=et(),d=Xo(n),c=(o=(t=d.current)==null?void 0:t.forceMount)!=null?o:i?.forceMount;Ce(()=>{if(!c)return l.item(r,i?.id)},[c]);let u=Jo(r,s,[n.value,n.children,s],n.keywords),p=pn(),m=ge(k=>k.value&&k.value===u.current),h=ge(k=>c||l.filter()===!1?!0:k.search?k.filtered.items.get(r)>0:!0);f.useEffect(()=>{let k=s.current;if(!(!k||n.disabled))return k.addEventListener(Ft,x),()=>k.removeEventListener(Ft,x)},[h,n.onSelect,n.disabled]);function x(){var k,S;v(),(S=(k=d.current).onSelect)==null||S.call(k,u.current)}function v(){p.setState("value",u.current,!0)}if(!h)return null;let{disabled:g,value:w,onSelect:y,forceMount:b,keywords:j,..._}=n;return f.createElement(X.div,{ref:qe(s,e),..._,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:x},n.children)}),cd=f.forwardRef((n,e)=>{let{heading:t,children:o,forceMount:r,...s}=n,i=le(),l=f.useRef(null),d=f.useRef(null),c=le(),u=et(),p=ge(h=>r||u.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Ce(()=>u.group(i),[]),Jo(i,l,[n.value,n.heading,d]);let m=f.useMemo(()=>({id:i,forceMount:r}),[r]);return f.createElement(X.div,{ref:qe(l,e),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},t&&f.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:c},t),wt(n,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?c:void 0},f.createElement(Wo.Provider,{value:m},h))))}),dd=f.forwardRef((n,e)=>{let{alwaysRender:t,...o}=n,r=f.useRef(null),s=ge(i=>!i.search);return!t&&!s?null:f.createElement(X.div,{ref:qe(r,e),...o,"cmdk-separator":"",role:"separator"})}),ud=f.forwardRef((n,e)=>{let{onValueChange:t,...o}=n,r=n.value!=null,s=pn(),i=ge(c=>c.search),l=ge(c=>c.selectedItemId),d=et();return f.useEffect(()=>{n.value!=null&&s.setState("search",n.value)},[n.value]),f.createElement(X.input,{ref:e,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:r?n.value:i,onChange:c=>{r||s.setState("search",c.target.value),t?.(c.target.value)}})}),fd=f.forwardRef((n,e)=>{let{children:t,label:o="Suggestions",...r}=n,s=f.useRef(null),i=f.useRef(null),l=ge(c=>c.selectedItemId),d=et();return f.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=c.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(p),m.unobserve(c)}}},[]),f.createElement(X.div,{ref:qe(s,e),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:d.listId},wt(n,c=>f.createElement("div",{ref:qe(i,d.listInnerRef),"cmdk-list-sizer":""},c)))}),pd=f.forwardRef((n,e)=>{let{open:t,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...l}=n;return f.createElement(An,{open:t,onOpenChange:o},f.createElement(Dn,{container:i},f.createElement(On,{"cmdk-overlay":"",className:r}),f.createElement($n,{"aria-label":n.label,"cmdk-dialog":"",className:s},f.createElement(Yo,{ref:e,...l}))))}),md=f.forwardRef((n,e)=>ge(t=>t.filtered.count===0)?f.createElement(X.div,{ref:e,...n,"cmdk-empty":"",role:"presentation"}):null),hd=f.forwardRef((n,e)=>{let{progress:t,children:o,label:r="Loading...",...s}=n;return f.createElement(X.div,{ref:e,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},wt(n,i=>f.createElement("div",{"aria-hidden":!0},i)))}),_e=Object.assign(Yo,{List:fd,Item:ld,Input:ud,Group:cd,Separator:dd,Dialog:pd,Empty:md,Loading:hd});function vd(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return t;t=t.nextElementSibling}}function gd(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return t;t=t.previousElementSibling}}function Xo(n){let e=f.useRef(n);return Ce(()=>{e.current=n}),e}var Ce=typeof window>"u"?f.useEffect:f.useLayoutEffect;function ze(n){let e=f.useRef();return e.current===void 0&&(e.current=n()),e}function ge(n){let e=pn(),t=()=>n(e.snapshot());return f.useSyncExternalStore(e.subscribe,t,t)}function Jo(n,e,t,o=[]){let r=f.useRef(),s=et();return Ce(()=>{var i;let l=(()=>{var c;for(let u of t){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),d=o.map(c=>c.trim());s.value(n,l,d),(i=e.current)==null||i.setAttribute(Le,l),r.current=l}),r}var xd=()=>{let[n,e]=f.useState(),t=ze(()=>new Map);return Ce(()=>{t.current.forEach(o=>o()),t.current=new Map},[n]),(o,r)=>{t.current.set(o,r),e({})}};function bd(n){let e=n.type;return typeof e=="function"?e(n.props):"render"in e?e.render(n.props):n}function wt({asChild:n,children:e},t){return n&&f.isValidElement(e)?f.cloneElement(bd(e),{ref:e.ref},t(e.props.children)):t(e)}var yd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function wd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e,{"data-slot":"command",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Cd(n){const e=M.c(26);let t,o,r,s,i,l;e[0]!==n?({title:s,description:i,children:t,className:o,showCloseButton:l,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"Command Palette":s,c=i===void 0?"Search for a command to run...":i,u=l===void 0?!0:l;let p;e[7]!==d?(p=a.jsx(Ht,{children:d}),e[7]=d,e[8]=p):p=e[8];let m;e[9]!==c?(m=a.jsx(Bt,{children:c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==p||e[12]!==m?(h=a.jsxs(Vt,{className:"sr-only",children:[p,m]}),e[11]=p,e[12]=m,e[13]=h):h=e[13];let x;e[14]!==o?(x=T("overflow-hidden p-0",o),e[14]=o,e[15]=x):x=e[15];let v;e[16]!==t?(v=a.jsx(wd,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=v):v=e[17];let g;e[18]!==u||e[19]!==x||e[20]!==v?(g=a.jsx(Kt,{className:x,showCloseButton:u,children:v}),e[18]=u,e[19]=x,e[20]=v,e[21]=g):g=e[21];let w;return e[22]!==r||e[23]!==h||e[24]!==g?(w=a.jsxs(qt,{...r,children:[h,g]}),e[22]=r,e[23]=h,e[24]=g,e[25]=w):w=e[25],w}function jd(n){const e=M.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Yt,{className:"size-4 shrink-0 opacity-50"}),e[3]=r):r=e[3];let s;e[4]!==t?(s=T("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i=a.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r,a.jsx(_e.Input,{"data-slot":"command-input",className:s,...o})]}),e[6]=o,e[7]=s,e[8]=i):i=e[8],i}function kd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.List,{"data-slot":"command-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _d(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_e.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=o):o=e[3],o}function st(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Group,{"data-slot":"command-group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Md(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Separator,{"data-slot":"command-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function at(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Item,{"data-slot":"command-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Sd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Wn}],{title:"Issues",href:Be(),icon:Yn},...n?[]:[{title:"Integrations",href:Rn(),icon:Xn},{title:"Members",href:Tn(),icon:Xt}]];function Nd(n){const e=M.c(47),{open:t,onOpenChange:o}=n,[r,s]=f.useState(""),{applications:i,environment:l,embedded:d,window:c}=ce().props;let u;e[0]!==o?(u=E=>{o(!1),ee.visit(E)},e[0]=o,e[1]=u):u=e[1];const p=u;let m,h,x,v,g,w,y,b;if(e[2]!==c||e[3]!==d||e[4]!==l||e[5]!==p||e[6]!==o||e[7]!==t||e[8]!==r){const E=l?fn(l.application_id,l.id,c??"24h"):[];h=Cd,w=t,y=o,e[17]!==r?(b=a.jsx(jd,{placeholder:"Search pages, applications, issues…",value:r,onValueChange:s}),e[17]=r,e[18]=b):b=e[18],m=kd,e[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(_d,{children:"No results found."}),e[19]=x):x=e[19];let N;if(e[20]!==d||e[21]!==p){let R;e[23]!==p?(R=O=>a.jsxs(at,{onSelect:()=>p(O.href),children:[O.icon&&a.jsx(O.icon,{}),a.jsx("span",{children:O.title})]},O.title),e[23]=p,e[24]=R):R=e[24],N=Sd(!!d).map(R),e[20]=d,e[21]=p,e[22]=N}else N=e[22];e[25]!==N?(v=a.jsx(st,{heading:"Navigation",children:N}),e[25]=N,e[26]=v):v=e[26],g=E.length>0&&a.jsx(st,{heading:`${l.application_name} · ${l.name}`,children:E.map(R=>a.jsxs(at,{onSelect:()=>p(R.href),children:[R.icon&&a.jsx(R.icon,{}),a.jsx("span",{children:R.title})]},R.title))}),e[2]=c,e[3]=d,e[4]=l,e[5]=p,e[6]=o,e[7]=t,e[8]=r,e[9]=m,e[10]=h,e[11]=x,e[12]=v,e[13]=g,e[14]=w,e[15]=y,e[16]=b}else m=e[9],h=e[10],x=e[11],v=e[12],g=e[13],w=e[14],y=e[15],b=e[16];let j;e[27]!==i||e[28]!==d||e[29]!==p?(j=!d&&a.jsx(st,{heading:"Applications",children:i.flatMap(E=>E.environments.map(N=>a.jsx(at,{value:`${E.name} ${N.name}`,onSelect:()=>p(He(E.id,N.id)),children:a.jsxs("span",{children:[E.name," · ",N.name]})},`${E.id}-${N.id}`)))}),e[27]=i,e[28]=d,e[29]=p,e[30]=j):j=e[30];let _;e[31]!==p||e[32]!==r?(_=r.trim()&&a.jsxs(a.Fragment,{children:[a.jsx(Md,{}),a.jsx(st,{heading:"Search",children:a.jsxs(at,{value:r,onSelect:()=>p(`${Be()}?q=${encodeURIComponent(r)}`),children:[a.jsx(Yt,{}),a.jsxs("span",{children:["Search issues for “",r,"”"]})]})})]}),e[31]=p,e[32]=r,e[33]=_):_=e[33];let k;e[34]!==m||e[35]!==x||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==_?(k=a.jsxs(m,{children:[x,v,g,j,_]}),e[34]=m,e[35]=x,e[36]=v,e[37]=g,e[38]=j,e[39]=_,e[40]=k):k=e[40];let S;return e[41]!==h||e[42]!==k||e[43]!==w||e[44]!==y||e[45]!==b?(S=a.jsxs(h,{open:w,onOpenChange:y,children:[b,k]}),e[41]=h,e[42]=k,e[43]=w,e[44]=y,e[45]=b,e[46]=S):S=e[46],S}const Id=[{title:"Navigation",shortcuts:[{keys:["⌘","K"],description:"Open command palette"},{keys:["g","d"],description:"Go to dashboard"},{keys:["g","o"],description:"Go to Overview"},{keys:["g","r"],description:"Go to Requests"},{keys:["g","j"],description:"Go to Jobs"},{keys:["g","q"],description:"Go to Queries"},{keys:["g","i"],description:"Go to Issues"},{keys:["?"],description:"Show this help"}]},{title:"Lists (requests, jobs, queries, issues, logs, …)",shortcuts:[{keys:["j"],description:"Move highlight down"},{keys:["k"],description:"Move highlight up"},{keys:["↵"],description:"Open highlighted row"},{keys:["o"],description:"Open highlighted row in a new tab"},{keys:["Esc"],description:"Clear highlight"},{keys:["/"],description:"Focus the filter bar"}]}];function Ed(n){const e=M.c(5),{open:t,onOpenChange:o}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Keyboard shortcuts"}),a.jsx(Bt,{children:"Available anywhere in the app."})]}),e[0]=r):r=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(Kt,{className:"sm:max-w-sm",children:[r,a.jsx("div",{className:"flex flex-col gap-4",children:Id.map(Pd)})]}),e[1]=s):s=e[1];let i;return e[2]!==o||e[3]!==t?(i=a.jsx(qt,{open:t,onOpenChange:o,children:s}),e[2]=o,e[3]=t,e[4]=i):i=e[4],i}function Pd(n){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:n.title}),a.jsx("ul",{className:"flex flex-col gap-2",children:n.shortcuts.map(Rd)})]},n.title)}function Rd(n){return a.jsxs("li",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-muted-foreground",children:n.description}),a.jsx("span",{className:"flex items-center gap-1",children:n.keys.map(Td)})]},n.description)}function Td(n,e){return a.jsx("kbd",{className:"bg-muted rounded border px-1.5 py-0.5 font-mono text-xs",children:n},e)}const Ad=800;function $d(n){const e=M.c(4),t=f.useRef(n);let o;e[0]!==n?(o=()=>{t.current=n},e[0]=n,e[1]=o):o=e[1],f.useEffect(o);const r=f.useRef(null),s=f.useRef(void 0);let i,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const d=c=>{const u=c.target;if(!(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable)&&!(c.metaKey||c.ctrlKey||c.altKey)){if(r.current){const p=`${r.current} ${c.key}`;if(window.clearTimeout(s.current),r.current=null,t.current[p]){c.preventDefault(),t.current[p]();return}}if(t.current[c.key]){c.preventDefault(),t.current[c.key]();return}c.key==="g"&&(r.current="g",s.current=window.setTimeout(()=>{r.current=null},Ad))}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),window.clearTimeout(s.current)}},l=[],e[2]=i,e[3]=l):(i=e[2],l=e[3]),f.useEffect(i,l)}function Dd(n){const e=M.c(28),{children:t,breadcrumbs:o}=n;let r;e[0]!==o?(r=o===void 0?[]:o,e[0]=o,e[1]=r):r=e[1];const s=r,[i,l]=f.useState(!1),[d,c]=f.useState(!1),{environment:u,window:p}=ce().props;let m,h;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const N=R=>{R.key==="k"&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),l(zd))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},h=[],e[2]=m,e[3]=h):(m=e[2],h=e[3]),f.useEffect(m,h);let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>c(Ld),e[4]=x):x=e[4];let v;e[5]!==u?(v=()=>ee.visit(u?Be({application_id:u.application_id,environment_id:u.id}):Be()),e[5]=u,e[6]=v):v=e[6];let g;e[7]!==u||e[8]!==p?(g=u&&{"g o":()=>ee.visit(He(u.application_id,u.id,{window:p})),"g r":()=>ee.visit(In(u.application_id,u.id,{window:p})),"g j":()=>ee.visit(En(u.application_id,u.id,{window:p})),"g q":()=>ee.visit(Pn(u.application_id,u.id,{window:p}))},e[7]=u,e[8]=p,e[9]=g):g=e[9];let w;e[10]!==v||e[11]!==g?(w={"?":x,"g d":Od,"g i":v,...g},e[10]=v,e[11]=g,e[12]=w):w=e[12],$d(w);let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(zc,{}),e[13]=y):y=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=()=>l(!0),e[14]=b):b=e[14];let j;e[15]!==s?(j=a.jsx(Xc,{breadcrumbs:s,onOpenCommandPalette:b}),e[15]=s,e[16]=j):j=e[16];let _;e[17]!==t||e[18]!==j?(_=a.jsxs(_i,{variant:"sidebar",className:"overflow-x-hidden",children:[j,t]}),e[17]=t,e[18]=j,e[19]=_):_=e[19];let k;e[20]!==i?(k=a.jsx(Nd,{open:i,onOpenChange:l}),e[20]=i,e[21]=k):k=e[21];let S;e[22]!==d?(S=a.jsx(Ed,{open:d,onOpenChange:c}),e[22]=d,e[23]=S):S=e[23];let E;return e[24]!==_||e[25]!==k||e[26]!==S?(E=a.jsxs(Mi,{variant:"sidebar",children:[y,_,k,S]}),e[24]=_,e[25]=k,e[26]=S,e[27]=E):E=e[27],E}function Od(){return ee.visit(ct())}function Ld(n){return!n}function zd(n){return!n}function su(n){const e=M.c(8);let t,o,r;e[0]!==n?({children:o,breadcrumbs:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;return e[4]!==t||e[5]!==o||e[6]!==r?(s=a.jsx(Dd,{breadcrumbs:t,...r,children:o}),e[4]=t,e[5]=o,e[6]=r,e[7]=s):s=e[7],s}export{su as A,Hn as B,Kn as C,xs as D,Gs as E,ys as F,Ms as G,Xr as H,Ji as I,Ns as J,Bn as K,Es as L,zs as M,Yn as O,Zs as P,ta as R,ru as S,fa as T,Xt as U,Ia as V,ba as W,qn as a,cs as b,xo as c,Xi as d,Yt as e,st as f,at as g,dc as h,fc as i,pc as j,jd as k,_d as l,kd as m,Cd as n,en as o,da as p,Qr as q,ra as r,wd as s,Za as t,nn as u,ei as v,ti as w,us as x,Cs as y,Bs as z};