@tickernelz/paperclip-pro-ui 2026.1006.0 → 2026.1006.2

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 (167) hide show
  1. package/dist/assets/{AgentAvatar-D6FB0fuO.js → AgentAvatar-lnkDMHMh.js} +1 -1
  2. package/dist/assets/AgentIdentity-Cpb2VddX.js +1 -0
  3. package/dist/assets/Agents.production-pGUwDC7r.js +2 -0
  4. package/dist/assets/CompanyActivity.production-ZGgxxisV.js +1 -0
  5. package/dist/assets/{CompanyExport-BX6imgeR.js → CompanyExport-GeY3_TXI.js} +4 -4
  6. package/dist/assets/CompanySkills.production-BN9MKK7o.js +10 -0
  7. package/dist/assets/{Costs.production-CfN-y0WT.js → Costs.production-B4oABBSg.js} +1 -1
  8. package/dist/assets/EmptyState-CqqJOoXs.js +1 -0
  9. package/dist/assets/MarkdownBody-CEnh9lVM.js +16 -0
  10. package/dist/assets/{MarkdownEditor-BGjNjqa2.js → MarkdownEditor-seU_oAfy.js} +38 -38
  11. package/dist/assets/{OrgChart.production-BQUvMu4Q.js → OrgChart.production-JOfw43w3.js} +1 -1
  12. package/dist/assets/{PageSkeleton-CgAHzFTc.js → PageSkeleton-C9WV_Qyq.js} +1 -1
  13. package/dist/assets/RoutineDetail.production-A472lDXj.js +1 -0
  14. package/dist/assets/RoutineRunVariablesDialog-yR5DLc68.js +5 -0
  15. package/dist/assets/Routines.production-LvomJjv8.js +1 -0
  16. package/dist/assets/{SidebarContext-C7OpDbXX.js → SidebarContext-Dpto7Kf2.js} +1 -1
  17. package/dist/assets/StatusIcon-BtBa0xK_.js +1 -0
  18. package/dist/assets/{abnfDiagram-VCTEODGH-wiE_K2ku.js → abnfDiagram-VCTEODGH-CElI5h6o.js} +1 -1
  19. package/dist/assets/agent-avatar-url-270oGkoO.js +92 -0
  20. package/dist/assets/agents-BlxRXAz3.js +1 -0
  21. package/dist/assets/{architectureDiagram-5GKGNRK7-BkhBoP5_.js → architectureDiagram-5GKGNRK7-DUBpjYei.js} +1 -1
  22. package/dist/assets/{badge-dhlY-PQY.js → badge-D0Ti-OuU.js} +1 -1
  23. package/dist/assets/{blockDiagram-I7D4REHJ-fyVn7r-9.js → blockDiagram-I7D4REHJ-CD5_3VhC.js} +1 -1
  24. package/dist/assets/bot-CGOpwPIZ.js +1 -0
  25. package/dist/assets/boxes-xBZV8xLw.js +41 -0
  26. package/dist/assets/button-DLWREze0.js +1 -0
  27. package/dist/assets/{c4Diagram-7LVT6UL2-BqC3qTZS.js → c4Diagram-7LVT6UL2-CSASNZeo.js} +1 -1
  28. package/dist/assets/{card-DmOCHnV1.js → card-Qk8smcrQ.js} +1 -1
  29. package/dist/assets/channel-CtmRoUn0.js +1 -0
  30. package/dist/assets/check-5Tuqm2aI.js +1 -0
  31. package/dist/assets/checkbox-SNvdBfci.js +1 -0
  32. package/dist/assets/chevron-down-ZMnYk9j3.js +1 -0
  33. package/dist/assets/chevron-right-Dv6dHZgu.js +1 -0
  34. package/dist/assets/{chunk-4HAMMTFA-CGGd_Pxz.js → chunk-4HAMMTFA-Duh1dbZg.js} +1 -1
  35. package/dist/assets/{chunk-75Z2AOVW-BaPl5WA6.js → chunk-75Z2AOVW-CTyOxDW3.js} +1 -1
  36. package/dist/assets/{chunk-DU6HZSFF-2P5iNHqg.js → chunk-DU6HZSFF-mLZ_DAj9.js} +17 -17
  37. package/dist/assets/{chunk-F27PBJKO-Ci7GmRgM.js → chunk-F27PBJKO-BI6MjXNA.js} +1 -1
  38. package/dist/assets/{chunk-GMAD6QVW-BfvaaEBW.js → chunk-GMAD6QVW-Vk29EsOn.js} +1 -1
  39. package/dist/assets/{chunk-GVQU2GXP-Cwp_Wpj2.js → chunk-GVQU2GXP-D5bNpR4K.js} +1 -1
  40. package/dist/assets/{chunk-IMKFNOWR-BjXu-u1C.js → chunk-IMKFNOWR-DlfITCc_.js} +1 -1
  41. package/dist/assets/{chunk-L3NEJ4N5-JUd1UqX1.js → chunk-L3NEJ4N5-GADujcju.js} +1 -1
  42. package/dist/assets/{chunk-OSK3NFVY-DlrxddG-.js → chunk-OSK3NFVY-BfvIkdmA.js} +1 -1
  43. package/dist/assets/{chunk-P2QGCYS3-CjqEi3mx.js → chunk-P2QGCYS3-DD1uZyrA.js} +1 -1
  44. package/dist/assets/{chunk-POPQ4Y6H-BytmIqFc.js → chunk-POPQ4Y6H-B0MtQqlF.js} +1 -1
  45. package/dist/assets/{chunk-PWAF6VOD-CR3rNBNB.js → chunk-PWAF6VOD-DHqPPKbd.js} +1 -1
  46. package/dist/assets/{chunk-SHT3W25Y-B1Klag0Z.js → chunk-SHT3W25Y-CorllSkN.js} +1 -1
  47. package/dist/assets/{chunk-SVP7TREG-A4BO1_5v.js → chunk-SVP7TREG-BNLl-Ok9.js} +1 -1
  48. package/dist/assets/{chunk-TICWLB2K-B4lRXha0.js → chunk-TICWLB2K-BWKPkn9E.js} +1 -1
  49. package/dist/assets/classDiagram-ZZMXUADV-DDCCAOna.js +1 -0
  50. package/dist/assets/classDiagram-v2-VYDZK3BY-DDCCAOna.js +1 -0
  51. package/dist/assets/clipboard-BPoFQAy2.js +1 -0
  52. package/dist/assets/{company-members-BCWB1iQ_.js → company-members-BKdmkDTe.js} +1 -1
  53. package/dist/assets/{cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js → cynefinDiagram-5FMLGOSQ-CGZNoppH.js} +1 -1
  54. package/dist/assets/{dagre-GXQ25YYZ-C1bu-Sbk.js → dagre-GXQ25YYZ-D0kXJo1b.js} +1 -1
  55. package/dist/assets/{definition-B0A7Y2Kz.js → definition-DTQCzcR3.js} +1 -1
  56. package/dist/assets/{diagram-S7CK7UJ4-D0cqRe3j.js → diagram-S7CK7UJ4-BMOu70sn.js} +1 -1
  57. package/dist/assets/{diagram-UQ7AKVKN-DdEgR6LR.js → diagram-UQ7AKVKN-dAmEsEgr.js} +1 -1
  58. package/dist/assets/{diagram-VSXAHHWV-B_APewr5.js → diagram-VSXAHHWV-zD92DhH2.js} +1 -1
  59. package/dist/assets/{diagram-VX7I27RA-B2quR8-z.js → diagram-VX7I27RA-C6F4NzHd.js} +1 -1
  60. package/dist/assets/{diagram-Z3DM3KII-BpQRCt5N.js → diagram-Z3DM3KII-BxGljaP6.js} +1 -1
  61. package/dist/assets/{dist-CJ2IjArq.js → dist-BzPgY729.js} +1 -1
  62. package/dist/assets/{dist-C0aY0Z9q.js → dist-DvMfIbJ9.js} +1 -1
  63. package/dist/assets/{ebnfDiagram-PWID7BFC-C9x73jSZ.js → ebnfDiagram-PWID7BFC-DFhVsGcz.js} +1 -1
  64. package/dist/assets/{environments-DgYKMH7B.js → environments-BNSxsEsE.js} +1 -1
  65. package/dist/assets/{erDiagram-RLTQ6QDP-Dkp7z94L.js → erDiagram-RLTQ6QDP-CExzemcW.js} +1 -1
  66. package/dist/assets/external-link-rfTzFbSd.js +1 -0
  67. package/dist/assets/file-text-dks7zWRZ.js +1 -0
  68. package/dist/assets/flowDiagram-HODETNUW-DEjrdPyS.js +1 -0
  69. package/dist/assets/{ganttDiagram-EL5Y4UJY-CJs7mNJX.js → ganttDiagram-EL5Y4UJY-DStsnXzo.js} +1 -1
  70. package/dist/assets/{gitGraphDiagram-WWUBYQGX-ByeD7NPE.js → gitGraphDiagram-WWUBYQGX-BejeRC3-.js} +1 -1
  71. package/dist/assets/health-DsHGAxc8.js +1 -0
  72. package/dist/assets/heartbeats-DWUL5tSL.js +1 -0
  73. package/dist/assets/index-Cx882YTU.css +1 -0
  74. package/dist/assets/index-DTMtHDxt.js +779 -0
  75. package/dist/assets/{infoDiagram-27XIBGKW-B6sR9qVK.js → infoDiagram-27XIBGKW-Cch-IRh-.js} +1 -1
  76. package/dist/assets/{input-BYys7uph.js → input-BWYuMr4z.js} +1 -1
  77. package/dist/assets/{ishikawaDiagram-5VMMS53U-HFQ3gYGN.js → ishikawaDiagram-5VMMS53U-DDvnGaeJ.js} +1 -1
  78. package/dist/assets/{journeyDiagram-3NMN7TZE-BtoNErTz.js → journeyDiagram-3NMN7TZE-rmjbLNr7.js} +1 -1
  79. package/dist/assets/{kanban-definition-UXKFOSKX-Y55yoRj4.js → kanban-definition-UXKFOSKX-hvO2tDhG.js} +1 -1
  80. package/dist/assets/label-TkPoSJhK.js +5 -0
  81. package/dist/assets/{line-CJEZO7lL.js → line-Dk_ouzM8.js} +1 -1
  82. package/dist/assets/loader-circle-DiqjntTX.js +1 -0
  83. package/dist/assets/mention-chips-B_zVTnHY.js +17 -0
  84. package/dist/assets/{mermaid.core-G_BSi0G0.js → mermaid.core-Be3XJK9z.js} +4 -4
  85. package/dist/assets/{mindmap-definition-YA3MSWOX-BnlANYwV.js → mindmap-definition-YA3MSWOX-Dislw6JU.js} +1 -1
  86. package/dist/assets/octagon-alert-HfSAYnSC.js +1 -0
  87. package/dist/assets/{pegDiagram-XKGWAZYB-CHhCzuLt.js → pegDiagram-XKGWAZYB-CizC38c5.js} +1 -1
  88. package/dist/assets/{pieDiagram-E7YTZNPT-CEGI1j0Q.js → pieDiagram-E7YTZNPT-DvHDuZK1.js} +1 -1
  89. package/dist/assets/{quadrantDiagram-AXDQQJYC-BfVC-A1t.js → quadrantDiagram-AXDQQJYC-DTAvsUNT.js} +1 -1
  90. package/dist/assets/{railroadDiagram-O6MQD6OU-Bwh6snZb.js → railroadDiagram-O6MQD6OU-DGlhxzAn.js} +1 -1
  91. package/dist/assets/{requirementDiagram-BXWQKSXE-NEvTOdsw.js → requirementDiagram-BXWQKSXE-BzY8WPIy.js} +1 -1
  92. package/dist/assets/rotate-ccw-C9ZF1aqD.js +1 -0
  93. package/dist/assets/router-BC2Duaf5.js +15 -0
  94. package/dist/assets/{sankeyDiagram-P5KCCOFB-AvKb1lr-.js → sankeyDiagram-P5KCCOFB-Be3A08ra.js} +1 -1
  95. package/dist/assets/save-yPNdO-t7.js +1 -0
  96. package/dist/assets/select-DsMS_Sad.js +1 -0
  97. package/dist/assets/{sequenceDiagram-WJ2MYXX4-BP0QZnHN.js → sequenceDiagram-WJ2MYXX4-BJuFaGQ8.js} +1 -1
  98. package/dist/assets/sheet-CFbmpBhA.js +1 -0
  99. package/dist/assets/skeleton-DtakB_VA.js +1 -0
  100. package/dist/assets/{stateDiagram-D77RDMKH-Ce0Wj7yz.js → stateDiagram-D77RDMKH-BWwUdBob.js} +1 -1
  101. package/dist/assets/stateDiagram-v2-MP3YSRHH-P6gPsRNv.js +1 -0
  102. package/dist/assets/{swimlanes-42K2YHIH-CX7zPtNU.js → swimlanes-42K2YHIH-CMos3UkM.js} +1 -1
  103. package/dist/assets/swimlanesDiagram-VR7AAH4N-BjRksHrL.js +8 -0
  104. package/dist/assets/{tabs-BTWtgE_e.js → tabs-DCzsHrwQ.js} +1 -1
  105. package/dist/assets/{timeline-definition-24CTP7MA-Bw21rjHm.js → timeline-definition-24CTP7MA-5RQLEOvu.js} +1 -1
  106. package/dist/assets/triangle-alert-CrLKyTUa.js +1 -0
  107. package/dist/assets/use-adapter-capabilities-CVwppNII.js +1 -0
  108. package/dist/assets/useHiddenSettings-COOnS4sa.js +1 -0
  109. package/dist/assets/{vennDiagram-4TSXK5OY-BuncstTm.js → vennDiagram-4TSXK5OY-BZm-uDwq.js} +1 -1
  110. package/dist/assets/{wardleyDiagram-VM6X3IG4-DOHY7xcd.js → wardleyDiagram-VM6X3IG4-Y317P_uV.js} +1 -1
  111. package/dist/assets/{xychartDiagram-S5SC5T6Z-qOWxoNte.js → xychartDiagram-S5SC5T6Z-DIOiLKNy.js} +1 -1
  112. package/dist/brands/apps/browser-use.svg +6 -0
  113. package/dist/brands/apps/cognee.png +0 -0
  114. package/dist/brands/apps/connection-pool.svg +1 -0
  115. package/dist/brands/apps/honcho.svg +33 -0
  116. package/dist/brands/apps/manifest.json +45 -0
  117. package/dist/brands/apps/neon.png +0 -0
  118. package/dist/brands/apps/supermemory.png +0 -0
  119. package/dist/brands/apps/zep.png +0 -0
  120. package/dist/index.html +108 -46
  121. package/dist/sw.js +17 -3
  122. package/package.json +1 -1
  123. package/dist/assets/AgentIdentity-DjRFrNXO.js +0 -1
  124. package/dist/assets/Agents.production-BRdUzpF6.js +0 -2
  125. package/dist/assets/CompanyActivity.production-dD0_52Wu.js +0 -1
  126. package/dist/assets/CompanySkills.production-DGbZb0AI.js +0 -10
  127. package/dist/assets/EmptyState-C4lXde64.js +0 -1
  128. package/dist/assets/MarkdownBody--RIJLCMA.js +0 -16
  129. package/dist/assets/RoutineDetail.production-Bsf338vO.js +0 -1
  130. package/dist/assets/RoutineRunVariablesDialog-DP1tcp7X.js +0 -5
  131. package/dist/assets/Routines.production-BGR6_EI9.js +0 -1
  132. package/dist/assets/StatusIcon-VpulllGv.js +0 -1
  133. package/dist/assets/agents-BP_X6XtR.js +0 -1
  134. package/dist/assets/bot-LA1HiarN.js +0 -1
  135. package/dist/assets/button-C4DIaoFo.js +0 -1
  136. package/dist/assets/channel-0B5iAV5A.js +0 -1
  137. package/dist/assets/check-CYgpX7OA.js +0 -1
  138. package/dist/assets/checkbox-CKFq766c.js +0 -1
  139. package/dist/assets/chevron-down-BU9R1R4F.js +0 -1
  140. package/dist/assets/chevron-right-BmxFehfD.js +0 -1
  141. package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +0 -1
  142. package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +0 -1
  143. package/dist/assets/clipboard-DMxSLEQ6.js +0 -1
  144. package/dist/assets/createLucideIcon-B54j0Sae.js +0 -92
  145. package/dist/assets/external-link-Bi7tqIF1.js +0 -1
  146. package/dist/assets/file-text-MN4vnW0c.js +0 -1
  147. package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +0 -1
  148. package/dist/assets/health-Cu3NB6y9.js +0 -1
  149. package/dist/assets/heartbeats-Bjbu1IYj.js +0 -1
  150. package/dist/assets/index-DRWrweZf.js +0 -737
  151. package/dist/assets/index-L45mDhY7.css +0 -1
  152. package/dist/assets/label-_X3u-iq9.js +0 -5
  153. package/dist/assets/loader-circle-D6KkdGol.js +0 -1
  154. package/dist/assets/mention-chips-B6d93utO.js +0 -17
  155. package/dist/assets/octagon-alert-BgFrORnN.js +0 -1
  156. package/dist/assets/rotate-ccw-DP6ACo04.js +0 -1
  157. package/dist/assets/router-D63KhMWd.js +0 -15
  158. package/dist/assets/save-C2ttL8uR.js +0 -1
  159. package/dist/assets/select-DrSnWvLC.js +0 -1
  160. package/dist/assets/sheet-CdR6tW8E.js +0 -1
  161. package/dist/assets/skeleton-C0oo8l5C.js +0 -1
  162. package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +0 -1
  163. package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +0 -8
  164. package/dist/assets/triangle-alert-BhrZ1ChK.js +0 -1
  165. package/dist/assets/use-adapter-capabilities-DHgLdZ1V.js +0 -1
  166. package/dist/assets/useHiddenSettings-C5RuvqCg.js +0 -1
  167. package/dist/assets/zap-md9c-4bv.js +0 -41
@@ -1,15 +0,0 @@
1
- var Cn=Object.defineProperty;var o=(e,t)=>Cn(e,"name",{value:t,configurable:!0});import{i as bt}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as kn,S as Be,U as $n,Xr as Pn,Y as ie,Zr as Ln,dr as An,fr as p,ir as Dn,t as Re,vr as _n}from"./createLucideIcon-B54j0Sae.js";import{t as Tn}from"./preload-helper-CceJXRIF.js";import{A as On,C as Nn,D as Mn,E as Un,M as jn,N as Fn,O as Bn,P as Hn,S as Wn,T as qn,_ as zn,a as Qn,b as Jn,c as Kn,d as Vn,f as Yn,g as Gn,h as Xn,i as Zn,j as er,k as tr,l as nr,m as rr,n as or,o as ar,p as sr,r as ir,s as ur,t as lr,u as cr,v as dr,w as fr,x as mr,y as hr}from"./zap-md9c-4bv.js";import{a as pr,c as gr,n as yr,r as vr}from"./agents-BP_X6XtR.js";import{i as wr}from"./EmptyState-C4lXde64.js";var u=bt(kn(),1),He=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ct=/^[\\/]{2}/;function Ir(e,t){return t+e.replace(/\\/g,"/")}o(Ir,"normalizeProtocolRelativeUrl");var et="popstate";function tt(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}o(tt,"isLocation");function Rr(e={}){function t(r,a){let s=a.state?.masked,{pathname:i,search:l,hash:c}=s||r.location;return _e("",{pathname:i,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}o(t,"createBrowserLocation");function n(r,a){return typeof a=="string"?a:oe(a)}return o(n,"createBrowserHref"),xr(t,n,null,e)}o(Rr,"createBrowserHistory");function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}o(C,"invariant");function D(e,t){if(!e)try{throw new Error(t)}catch{}}o(D,"warning");function Sr(){return Math.random().toString(36).substring(2,10)}o(Sr,"createKey");function nt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}o(nt,"getHistoryState");function _e(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Y(t):t,state:n,key:t&&t.key||r||Sr(),mask:a}}o(_e,"createLocation");function oe({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}o(oe,"createPath");function Y(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}o(Y,"parsePath");function xr(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,l="POP",c=null,d=m();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function m(){return(i.state||{idx:null}).idx}o(m,"getIndex");function f(){l="POP";let h=m(),I=h==null?null:h-d;d=h,c&&c({action:l,location:y.location,delta:I})}o(f,"handlePop");function g(h,I){l="PUSH";let R=tt(h)?h:_e(y.location,h,I);n&&n(R,h),d=m()+1;let S=nt(R,d),k=y.createHref(R.mask||R);try{i.pushState(S,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(k)}s&&c&&c({action:l,location:y.location,delta:1})}o(g,"push");function v(h,I){l="REPLACE";let R=tt(h)?h:_e(y.location,h,I);n&&n(R,h),d=m();let S=nt(R,d),k=y.createHref(R.mask||R);i.replaceState(S,"",k),s&&c&&c({action:l,location:y.location,delta:0})}o(v,"replace2");function w(h){return Er(a,h)}o(w,"createURL");let y={get action(){return l},get location(){return e(a,i)},listen(h){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(et,f),c=h,()=>{a.removeEventListener(et,f),c=null}},createHref(h){return t(a,h)},createURL:w,encodeLocation(h){let I=w(h);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:g,replace:v,go(h){return i.go(h)}};return y}o(xr,"getUrlBasedHistory");function Er(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),C(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:oe(t);return a=a.replace(/ $/,"%20"),!n&&Ct.test(a)&&(a=r+a),new URL(a,r)}o(Er,"createBrowserURLImpl");var br;br=new WeakMap;function kt(e,t,n="/"){return $t(e,t,n,!1)}o(kt,"matchRoutes");function $t(e,t,n,r,a){let s=B((typeof t=="string"?Y(t):t).pathname||"/",n);if(s==null)return null;let i=a??kr(e),l=null,c=Ur(s);for(let d=0;l==null&&d<i.length;++d)l=Mr(i[d],c,r);return l}o($t,"matchRoutesImpl");function Cr(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],loaderData:t[n.id],handle:n.handle}}o(Cr,"convertRouteMatchToUiMatch");function kr(e){let t=Pt(e);return $r(t),t}o(kr,"flattenAndRankRoutes");function Pt(e,t=[],n=[],r="",a=!1){let s=o((i,l,c=a,d)=>{let m={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&c)return;C(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let f=M([r,m.relativePath]),g=n.concat(m);i.children&&i.children.length>0&&(C(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Pt(i.children,t,g,f,c)),!(i.path==null&&!i.index)&&t.push({path:f,score:Or(f,i.index),routesMeta:g.map((v,w)=>{let[y,h]=Dt(v.relativePath,v.caseSensitive,w===g.length-1);return{...v,matcher:y,compiledParams:h}})})},"flattenRoute");return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))s(i,l);else for(let c of Lt(i.path))s(i,l,!0,c)}),t}o(Pt,"flattenRoutes");function Lt(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let i=Lt(r.join("/")),l=[];return l.push(...i.map(c=>c===""?s:[s,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}o(Lt,"explodeOptionalSegments");function $r(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nr(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}o($r,"rankRouteBranches");var Pr=/^:[\w-]+$/,Lr=3,Ar=2,Dr=1,_r=10,Tr=-2,rt=o(e=>e==="*","isSplat");function Or(e,t){let n=e.split("/"),r=n.length;return n.some(rt)&&(r+=Tr),t&&(r+=Ar),n.filter(a=>!rt(a)).reduce((a,s)=>a+(Pr.test(s)?Lr:s===""?Dr:_r),r)}o(Or,"computeScore");function Nr(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}o(Nr,"compareIndexes");function Mr(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",f={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},g=c.matcher&&c.compiledParams?At(f,m,c.matcher,c.compiledParams):ge(f,m),v=c.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=ge({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),i.push({params:a,pathname:M([s,g.pathname]),pathnameBase:Br(M([s,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(s=M([s,g.pathnameBase]))}return i}o(Mr,"matchRouteBranch");function ge(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Dt(e.path,e.caseSensitive,e.end);return At(e,t,n,r)}o(ge,"matchPath");function At(e,t,n,r){let a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:m},f)=>{if(d==="*"){let v=l[f]||"";i=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return m&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}o(At,"matchPathImpl");function Dt(e,t=!1,n=!0){D(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,l,c,d)=>{if(r.push({paramName:i,isOptional:l!=null}),l){let m=d.charAt(c+s.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}o(Dt,"compilePath");function Ur(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return D(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}o(Ur,"decodePath");function B(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}o(B,"stripBasename");function jr(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Y(e):e,s;return n?(n=_t(n),n.startsWith("/")?s=ot(n.substring(1),"/"):s=ot(n,t)):s=t,{pathname:s,search:Hr(r),hash:Wr(a)}}o(jr,"resolvePath");function ot(e,t){let n=ye(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}o(ot,"resolvePathname");function Le(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}o(Le,"getInvalidPathError");function Fr(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}o(Fr,"getPathContributingMatches");function We(e){let t=Fr(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}o(We,"getResolveToMatches");function Se(e,t,n,r=!1){let a;typeof e=="string"?a=Y(e):(a={...e},C(!a.pathname||!a.pathname.includes("?"),Le("?","pathname","search",a)),C(!a.pathname||!a.pathname.includes("#"),Le("#","pathname","hash",a)),C(!a.search||!a.search.includes("#"),Le("#","search","hash",a)));let s=e===""||a.pathname==="",i=s?"/":a.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;a.pathname=g.join("/")}l=f>=0?t[f]:"/"}let c=jr(a,l),d=i&&i!=="/"&&i.endsWith("/"),m=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||m)&&(c.pathname+="/"),c}o(Se,"resolveTo$1");var _t=o(e=>e.replace(/[\\/]{2,}/g,"/"),"removeDoubleSlashes"),M=o(e=>_t(e.join("/")),"joinPaths"),ye=o(e=>e.replace(/\/+$/,""),"removeTrailingSlash"),Br=o(e=>ye(e).replace(/^\/*/,"/"),"normalizePathname"),Hr=o(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),Wr=o(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),qr=class{static{o(this,"ErrorResponseImpl")}constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Tt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}o(Tt,"isRouteErrorResponse");function zr(e){return M(e.map(t=>t.route.path).filter(Boolean))||"/"}o(zr,"getRoutePattern");var Ot=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Nt(e,t){let n=e;if(typeof n!="string"||!He.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Ot)try{let s=new URL(window.location.href),i=Ct.test(n)?new URL(Ir(n,s.protocol)):new URL(n),l=B(i.pathname,t);i.origin===s.origin&&l!=null?n=l+i.search+i.hash:a=!0}catch{D(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}o(Nt,"parseToInfo");var ys=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Mt=["POST","PUT","PATCH","DELETE"],vs=new Set(Mt),Qr=["GET",...Mt],ws=new Set(Qr),Jr,Kr,Vr,Yr;Jr=new WeakMap;Kr=new WeakMap;Vr=new WeakMap;Yr=new WeakMap;var Gr=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Xr(e){try{return Gr.includes(new URL(e).protocol)}catch{return!1}}o(Xr,"hasInvalidProtocol");var G=u.createContext(null);G.displayName="DataRouter";var ue=u.createContext(null);ue.displayName="DataRouterState";var Ut=u.createContext(!1);function jt(){return u.useContext(Ut)}o(jt,"useIsRSCRouterContext");var Ft=u.createContext({isTransitioning:!1});Ft.displayName="ViewTransition";var Zr=u.createContext(new Map);Zr.displayName="Fetchers";var Te=u.createContext(null);Te.displayName="Await";var L=u.createContext(null);L.displayName="Navigation";var X=u.createContext(null);X.displayName="Location";var O=u.createContext({outlet:null,matches:[],isDataRoute:!1});O.displayName="Route";var qe=u.createContext(null);qe.displayName="RouteError";var Bt="REACT_ROUTER_ERROR",eo="REDIRECT",to="ROUTE_ERROR_RESPONSE";function no(e){if(e.startsWith(`${Bt}:${eo}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}o(no,"decodeRedirectErrorDigest");function ro(e){if(e.startsWith(`${Bt}:${to}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qr(t.status,t.statusText,t.data)}catch{}}o(ro,"decodeRouteErrorResponseDigest");function oo(e,{relative:t}={}){C(Z(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=u.useContext(L),{hash:a,pathname:s,search:i}=le(e,{relative:t}),l=s;return n!=="/"&&(l=s==="/"?n:M([n,s])),r.createHref({pathname:l,search:i,hash:a})}o(oo,"useHref");function Z(){return u.useContext(X)!=null}o(Z,"useInRouterContext");function _(){return C(Z(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(X).location}o(_,"useLocation");function Is(){return u.useContext(X).navigationType}o(Is,"useNavigationType");var Ht="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wt(e){u.useContext(L).static||u.useLayoutEffect(e)}o(Wt,"useIsomorphicLayoutEffect");function xe(){let{isDataRoute:e}=u.useContext(O);return e?Ro():ao()}o(xe,"useNavigate$1");function ao(){C(Z(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(G),{basename:t,navigator:n}=u.useContext(L),{matches:r}=u.useContext(O),{pathname:a}=_(),s=JSON.stringify(We(r)),i=u.useRef(!1);return Wt(()=>{i.current=!0}),u.useCallback((l,c={})=>{if(D(i.current,Ht),!i.current)return;if(typeof l=="number"){n.go(l);return}let d=Se(l,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:M([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,s,a,e])}o(ao,"useNavigateUnstable");var so=u.createContext(null);function io(e){let t=u.useContext(O).outlet;return u.useMemo(()=>t&&u.createElement(so.Provider,{value:e},t),[t,e])}o(io,"useOutlet");function uo(){let{matches:e}=u.useContext(O);return e[e.length-1]?.params??{}}o(uo,"useParams");function le(e,{relative:t}={}){let{matches:n}=u.useContext(O),{pathname:r}=_(),a=JSON.stringify(We(n));return u.useMemo(()=>Se(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}o(le,"useResolvedPath");function lo(e,t){return qt(e,t)}o(lo,"useRoutes");function qt(e,t,n){C(Z(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=u.useContext(L),{matches:a}=u.useContext(O),s=a[a.length-1],i=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let h=d&&d.path||"";Jt(l,!d||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
-
3
- Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let m=_(),f;if(t){let h=typeof t=="string"?Y(t):t;C(c==="/"||h.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${h.pathname}" was given in the \`location\` prop.`),f=h}else f=m;let g=f.pathname||"/",v=g;if(c!=="/"){let h=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(h.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(h=>Object.assign(h,{route:n.manifest[h.route.id]||h.route})):kt(e,{pathname:v});D(d||w!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),D(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=po(w&&w.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:M([c,r.encodeLocation?r.encodeLocation(h.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?c:M([c,r.encodeLocation?r.encodeLocation(h.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),a,n);return t&&y?u.createElement(X.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}o(qt,"useRoutesImpl");function co(){let e=Io(),t=Tt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},i=null;return i=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:s},"ErrorBoundary")," or"," ",u.createElement("code",{style:s},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:a},n):null,i)}o(co,"DefaultErrorComponent");var fo=u.createElement(co,null),zt=class extends u.Component{static{o(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=ro(e.digest);n&&(e=n)}let t=e!==void 0?u.createElement(O.Provider,{value:this.props.routeContext},u.createElement(qe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(mo,{error:e},t):t}};zt.contextType=Ut;var Ae=new WeakMap;function mo({children:e,error:t}){let{basename:n}=u.useContext(L);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=no(t.digest);if(r){let a=Ae.get(t);if(a)throw a;let s=Nt(r.location,n),i=s.absoluteURL||s.to;if(Xr(i))throw new Error("Invalid redirect location");if(Ot&&!Ae.get(t))if(s.isExternal||r.reloadDocument)window.location.href=i;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Ae.set(t,l),l}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}o(mo,"RSCErrorHandler");function ho({routeContext:e,match:t,children:n}){let r=u.useContext(G);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(O.Provider,{value:e},n)}o(ho,"RenderedRoute");function po(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r?.errors;if(s!=null){let m=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);C(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let i=!1,l=-1;if(n&&r){i=r.renderFallback;for(let m=0;m<a.length;m++){let f=a[m];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=m),f.route.id){let{loaderData:g,errors:v}=r,w=f.route.loader&&!g.hasOwnProperty(f.route.id)&&(!v||v[f.route.id]===void 0);if(f.route.lazy||w){n.isStatic&&(i=!0),l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let c=n?.onError,d=r&&c?(m,f)=>{c(m,{location:r.location,params:r.matches?.[0]?.params??{},pattern:zr(r.matches),errorInfo:f})}:void 0;return a.reduceRight((m,f,g)=>{let v,w=!1,y=null,h=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||fo,i&&(l<0&&g===0?(Jt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,h=null):l===g&&(w=!0,h=f.route.hydrateFallbackElement||null)));let I=t.concat(a.slice(0,g+1)),R=o(()=>{let S;return v?S=y:w?S=h:f.route.Component?S=u.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=m,u.createElement(ho,{match:f,routeContext:{outlet:m,matches:I,isDataRoute:r!=null},children:S})},"getChildren");return r&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?u.createElement(zt,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:R(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:d}):R()},null)}o(po,"_renderMatches");function ze(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}o(ze,"getDataRouterConsoleError");function go(e){let t=u.useContext(G);return C(t,ze(e)),t}o(go,"useDataRouterContext");function Qe(e){let t=u.useContext(ue);return C(t,ze(e)),t}o(Qe,"useDataRouterState");function yo(e){let t=u.useContext(O);return C(t,ze(e)),t}o(yo,"useRouteContext");function Je(e){let t=yo(e),n=t.matches[t.matches.length-1];return C(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}o(Je,"useCurrentRouteId");function vo(){return Je("useRouteId")}o(vo,"useRouteId");function wo(){let e=Qe("useNavigation");return u.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}o(wo,"useNavigation");function Qt(){let{matches:e,loaderData:t}=Qe("useMatches");return u.useMemo(()=>e.map(n=>Cr(n,t)),[e,t])}o(Qt,"useMatches");function Io(){let e=u.useContext(qe),t=Qe("useRouteError"),n=Je("useRouteError");return e!==void 0?e:t.errors?.[n]}o(Io,"useRouteError");function Ro(){let{router:e}=go("useNavigate"),t=Je("useNavigate"),n=u.useRef(!1);return Wt(()=>{n.current=!0}),u.useCallback(async(r,a={})=>{D(n.current,Ht),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}o(Ro,"useNavigateStable");var at={};function Jt(e,t,n){!t&&!at[e]&&(at[e]=!0,D(!1,n))}o(Jt,"warningOnce");var st={};function So(e,t){!e&&!st[t]&&(st[t]=!0)}o(So,"warnOnce");var Rs=u.memo(xo);function xo({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:s}){return qt(e,void 0,{manifest:t,state:r,isStatic:a,onError:s,future:n})}o(xo,"DataRoutes2");function Eo({to:e,replace:t,state:n,relative:r}){C(Z(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=u.useContext(L);D(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=u.useContext(O),{pathname:i}=_(),l=xe(),c=Se(e,We(s),i,r==="path"),d=JSON.stringify(c);return u.useEffect(()=>{l(JSON.parse(d),{replace:t,state:n,relative:r})},[l,d,r,t,n]),null}o(Eo,"Navigate$1");function Ss(e){return io(e.context)}o(Ss,"Outlet");function bo(e){C(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}o(bo,"Route");function Kt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,useTransitions:i}){C(!Z(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:a,static:s,useTransitions:i,future:{}}),[l,a,s,i]);typeof n=="string"&&(n=Y(n));let{pathname:d="/",search:m="",hash:f="",state:g=null,key:v="default",mask:w}=n,y=u.useMemo(()=>{let h=B(d,l);return h==null?null:{location:{pathname:h,search:m,hash:f,state:g,key:v,mask:w},navigationType:r}},[l,d,m,f,g,v,r,w]);return D(y!=null,`<Router basename="${l}"> is not able to match the URL "${d}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:u.createElement(L.Provider,{value:c},u.createElement(X.Provider,{children:t,value:y}))}o(Kt,"Router");function xs({children:e,location:t}){return lo(Oe(e),t)}o(xs,"Routes");var Es=class extends u.Component{static{o(this,"AwaitErrorBoundary")}constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,a=0;if(!(n instanceof Promise))a=1,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:o(()=>!0,"get")}),Object.defineProperty(r,"_data",{get:o(()=>n,"get")});else if(this.state.error){a=2;let s=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:o(()=>!0,"get")}),Object.defineProperty(r,"_error",{get:o(()=>s,"get")})}else n._tracked?(r=n,a="_error"in r?2:"_data"in r?1:0):(a=0,Object.defineProperty(n,"_tracked",{get:o(()=>!0,"get")}),r=n.then(s=>Object.defineProperty(n,"_data",{get:o(()=>s,"get")}),s=>{this.props.onError?.(s),Object.defineProperty(n,"_error",{get:o(()=>s,"get")})}));if(a===2&&!t)throw r._error;if(a===2)return u.createElement(Te.Provider,{value:r,children:t});if(a===1)return u.createElement(Te.Provider,{value:r,children:e});throw r}};function Oe(e,t=[]){let n=[];return u.Children.forEach(e,(r,a)=>{if(!u.isValidElement(r))return;let s=[...t,a];if(r.type===u.Fragment){n.push.apply(n,Oe(r.props.children,s));return}C(r.type===bo,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),C(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Oe(r.props.children,s)),n.push(i)}),n}o(Oe,"createRoutesFromChildren");var he="get",pe="application/x-www-form-urlencoded";function Ee(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}o(Ee,"isHtmlElement");function Co(e){return Ee(e)&&e.tagName.toLowerCase()==="button"}o(Co,"isButtonElement");function ko(e){return Ee(e)&&e.tagName.toLowerCase()==="form"}o(ko,"isFormElement");function $o(e){return Ee(e)&&e.tagName.toLowerCase()==="input"}o($o,"isInputElement");function Po(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}o(Po,"isModifiedEvent");function Lo(e,t){return e.button===0&&(!t||t==="_self")&&!Po(e)}o(Lo,"shouldProcessLinkClick");function Ne(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}o(Ne,"createSearchParams");function Ao(e,t){let n=Ne(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(s=>{n.append(a,s)})}),n}o(Ao,"getSearchParamsForLocation");var fe=null;function Do(){if(fe===null)try{new FormData(document.createElement("form"),0),fe=!1}catch{fe=!0}return fe}o(Do,"isFormDataSubmitterSupported");var _o=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return e!=null&&!_o.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pe}"`),null):e}o(De,"getFormEncType");function To(e,t){let n,r,a,s,i;if(ko(e)){let l=e.getAttribute("action");r=l?B(l,t):null,n=e.getAttribute("method")||he,a=De(e.getAttribute("enctype"))||pe,s=new FormData(e)}else if(Co(e)||$o(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?B(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||he,a=De(e.getAttribute("formenctype"))||De(l.getAttribute("enctype"))||pe,s=new FormData(l,e),!Do()){let{name:d,type:m,value:f}=e;if(m==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,f)}}else{if(Ee(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=he,r=null,a=pe,i=e}return s&&a==="text/plain"&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}o(To,"getFormSubmissionInfo");var bs=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Oo={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},No=/[&><\u2028\u2029]/g;function it(e){return e.replace(No,t=>Oo[t])}o(it,"escapeHtml");function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}o(be,"invariant2");function Vt(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&B(a.pathname,t)==="/"?a.pathname=`${ye(t)}/_root.${r}`:a.pathname=`${ye(a.pathname)}.${r}`,a}o(Vt,"singleFetchUrl");async function Mo(e,t){if(e.id in t)return t[e.id];try{let n=await Tn(()=>import(e.module),[]);return t[e.id]=n,n}catch{return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}o(Mo,"loadRouteModule");function Uo(e){return e!=null&&typeof e.page=="string"}o(Uo,"isPageLinkDescriptor");function jo(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}o(jo,"isHtmlLinkDescriptor");async function Fo(e,t,n){return Wo((await Promise.all(e.map(async r=>{let a=t.routes[r.route.id];if(a){let s=await Mo(a,n);return s.links?s.links():[]}return[]}))).flat(1).filter(jo).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}o(Fo,"getKeyedPrefetchLinks");function ut(e,t,n,r,a,s){let i=o((c,d)=>n[d]?c.route.id!==n[d].route.id:!0,"isNew"),l=o((c,d)=>n[d].pathname!==c.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==c.params["*"],"matchPathChanged");return s==="assets"?t.filter((c,d)=>i(c,d)||l(c,d)):s==="data"?t.filter((c,d)=>{let m=r.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(i(c,d)||l(c,d))return!0;if(c.route.shouldRevalidate){let f=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}o(ut,"getNewMatchesForLinks");function Yt(e,t,{includeHydrateFallback:n}={}){return Bo(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}o(Yt,"getModuleLinkHrefs");function Bo(e){return[...new Set(e)]}o(Bo,"dedupeHrefs");function Ho(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}o(Ho,"sortKeys");function Wo(e,t){let n=new Set,r=new Set(t);return e.reduce((a,s)=>{if(t&&!Uo(s)&&s.as==="script"&&s.href&&r.has(s.href))return a;let i=JSON.stringify(Ho(s));return n.has(i)||(n.add(i),a.push({key:i,link:s})),a},[])}o(Wo,"dedupeLinkDescriptors");function qo(e,t){return e.mode==="lazy"&&t===!0}o(qo,"isFogOfWarEnabled");function zo({sri:e,...t},n){let r=new Set(n.state.matches.map(l=>l.route.id)),a=n.state.location.pathname.split("/").filter(Boolean),s=["/"];for(a.pop();a.length>0;)s.push(`/${a.join("/")}`),a.pop();s.forEach(l=>{let c=$t(n.routes,l,n.basename||"/",!1,n.branches);c&&c.forEach(d=>r.add(d.route.id))});let i=[...r].reduce((l,c)=>Object.assign(l,{[c]:t.routes[c]}),{});return{...t,routes:i,sri:e?!0:void 0}}o(zo,"getPartialManifest");function Ce(){let e=u.useContext(G);return be(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}o(Ce,"useDataRouterContext2");function Gt(){let e=u.useContext(ue);return be(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}o(Gt,"useDataRouterStateContext");var ke=u.createContext(void 0);ke.displayName="FrameworkContext";function z(){let e=u.useContext(ke);return be(e,"You must render this element inside a <HydratedRouter> element"),e}o(z,"useFrameworkContext");function Qo(e,t){let n=u.useContext(ke),[r,a]=u.useState(!1),[s,i]=u.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:m,onTouchStart:f}=t,g=u.useRef(null);u.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let y=o(I=>{I.forEach(R=>{i(R.isIntersecting)})},"callback"),h=new IntersectionObserver(y,{threshold:.5});return g.current&&h.observe(g.current),()=>{h.disconnect()}}},[e]),u.useEffect(()=>{if(r){let y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(y)}}},[r]);let v=o(()=>{a(!0)},"setIntent"),w=o(()=>{a(!1),i(!1)},"cancelIntent");return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:ne(l,v),onBlur:ne(c,w),onMouseEnter:ne(d,v),onMouseLeave:ne(m,w),onTouchStart:ne(f,v)}]:[!1,g,{}]}o(Qo,"usePrefetchBehavior");function ne(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}o(ne,"composeEventHandlers");function Jo(e,t,n){if(n&&!ve)return[e[0]];if(t){let r=e.findIndex(a=>t[a.route.id]!==void 0);return e.slice(0,r+1)}return e}o(Jo,"getActiveMatches");function Ko({page:e,...t}){let n=jt(),{nonce:r}=z(),{router:a}=Ce(),s=u.useMemo(()=>kt(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?(t.nonce==null&&r&&(t={...t,nonce:r}),n?u.createElement(Yo,{page:e,matches:s,...t}):u.createElement(Go,{page:e,matches:s,...t})):null}o(Ko,"PrefetchPageLinks");function Vo(e){let{manifest:t,routeModules:n}=z(),[r,a]=u.useState([]);return u.useEffect(()=>{let s=!1;return Fo(e,t,n).then(i=>{s||a(i)}),()=>{s=!0}},[e,t,n]),r}o(Vo,"useKeyedPrefetchLinks");function Yo({page:e,matches:t,...n}){let r=_(),{future:a}=z(),{basename:s}=Ce(),i=u.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=Vt(e,s,a.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?c=!0:d.push(m.route.id);return c&&d.length>0&&l.searchParams.set("_routes",d.join(",")),[l.pathname+l.search]},[s,a.v8_trailingSlashAwareDataRequests,e,r,t]);return u.createElement(u.Fragment,null,i.map(l=>u.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}o(Yo,"RSCPrefetchPageLinksImpl");function Go({page:e,matches:t,...n}){let r=_(),{future:a,manifest:s,routeModules:i}=z(),{basename:l}=Ce(),{loaderData:c,matches:d}=Gt(),m=u.useMemo(()=>ut(e,t,d,s,r,"data"),[e,t,d,s,r]),f=u.useMemo(()=>ut(e,t,d,s,r,"assets"),[e,t,d,s,r]),g=u.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,h=!1;if(t.forEach(R=>{let S=s.routes[R.route.id];!S||!S.hasLoader||(!m.some(k=>k.route.id===R.route.id)&&R.route.id in c&&i[R.route.id]?.shouldRevalidate||S.hasClientLoader?h=!0:y.add(R.route.id))}),y.size===0)return[];let I=Vt(e,l,a.v8_trailingSlashAwareDataRequests,"data");return h&&y.size>0&&I.searchParams.set("_routes",t.filter(R=>y.has(R.route.id)).map(R=>R.route.id).join(",")),[I.pathname+I.search]},[l,a.v8_trailingSlashAwareDataRequests,c,r,s,m,t,e,i]),v=u.useMemo(()=>Yt(f,s),[f,s]),w=Vo(f);return u.createElement(u.Fragment,null,g.map(y=>u.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),v.map(y=>u.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),w.map(({key:y,link:h})=>u.createElement("link",{key:y,nonce:n.nonce,...h,crossOrigin:h.crossOrigin??n.crossOrigin})))}o(Go,"PrefetchPageLinksImpl");var ve=!1;function Xo(){ve=!0}o(Xo,"setIsHydrated");function Zo(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:a,routeDiscovery:s,ssr:i,nonce:l}=z(),{router:c,static:d,staticContext:m}=Ce(),{matches:f}=Gt(),g=jt(),v=qo(s,i);e.nonce==null&&l&&(e={...e,nonce:l}),a&&(a.didRenderScripts=!0);let w=Jo(f,null,r);u.useEffect(()=>{Xo()},[]);let y=u.useMemo(()=>{if(g)return null;let R=m?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",S=d?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${v?"":`import ${JSON.stringify(t.url)}`};
4
- ${w.map((k,E)=>{let $=`route${E}`,A=t.routes[k.route.id];be(A,`Route ${k.route.id} not found in manifest`);let{clientActionModule:N,clientLoaderModule:P,clientMiddlewareModule:U,hydrateFallbackModule:Q,module:T}=A,H=[...N?[{module:N,varName:`${$}_clientAction`}]:[],...P?[{module:P,varName:`${$}_clientLoader`}]:[],...U?[{module:U,varName:`${$}_clientMiddleware`}]:[],...Q?[{module:Q,varName:`${$}_HydrateFallback`}]:[],{module:T,varName:`${$}_main`}];return H.length===1?`import * as ${$} from ${JSON.stringify(T)};`:[H.map(j=>`import * as ${j.varName} from "${j.module}";`).join(`
5
- `),`const ${$} = {${H.map(j=>`...${j.varName}`).join(",")}};`].join(`
6
- `)}).join(`
7
- `)}
8
- ${v?`window.__reactRouterManifest = ${JSON.stringify(zo(t,c),null,2)};`:""}
9
- window.__reactRouterRouteModules = {${w.map((k,E)=>`${JSON.stringify(k.route.id)}:route${E}`).join(",")}};
10
-
11
- import(${JSON.stringify(t.entry.module)});`:" ";return u.createElement(u.Fragment,null,u.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:R},type:void 0}),u.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:S},type:"module",async:!0}))},[]),h=ve||g?[]:[...new Set(t.entry.imports.concat(Yt(w,t,{includeHydrateFallback:!0})))],I=typeof t.sri=="object"?t.sri:{};return So(!g,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ve||g?null:u.createElement(u.Fragment,null,typeof t.sri=="object"?u.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:I})}}):null,v?null:u.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:I[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),u.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:I[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),h.map(R=>u.createElement("link",{key:R,rel:"modulepreload",href:R,crossOrigin:e.crossOrigin,integrity:I[R],nonce:e.nonce,suppressHydrationWarning:!0})),y)}o(Zo,"Scripts");function ea(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}o(ea,"mergeRefs");var Cs=class extends u.Component{static{o(this,"RemixErrorBoundary")}constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?u.createElement(ta,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function ta({error:e,isOutsideRemixApp:t}){let{nonce:n}=z(),r=u.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:`
12
- console.log(
13
- "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
14
- );
15
- `}});if(Tt(e))return u.createElement(lt,{title:"Unhandled Thrown Response!"},u.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let a;if(e instanceof Error)a=e;else{let s=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);a=new Error(s)}return u.createElement(lt,{title:"Application Error!",isOutsideRemixApp:t},u.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),u.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),r)}o(ta,"RemixRootDefaultErrorBoundary");function lt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=z();return a.root?.Layout&&!n?r:u.createElement("html",{lang:"en"},u.createElement("head",null,u.createElement("meta",{charSet:"utf-8"}),u.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),u.createElement("title",null,e)),u.createElement("body",null,u.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?u.createElement(Zo,null):null)))}o(lt,"BoundaryShell");var na=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{na&&(window.__reactRouterVersion="7.18.2")}catch{}function ks({basename:e,children:t,useTransitions:n,window:r}){let a=u.useRef();a.current==null&&(a.current=Rr({window:r,v5Compat:!0}));let s=a.current,[i,l]=u.useState({action:s.action,location:s.location}),c=u.useCallback(d=>{n===!1?l(d):u.startTransition(()=>l(d))},[n]);return u.useLayoutEffect(()=>s.listen(c),[s,c]),u.createElement(Kt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s,useTransitions:n})}o(ks,"BrowserRouter");function ra({basename:e,children:t,history:n,useTransitions:r}){let[a,s]=u.useState({action:n.action,location:n.location}),i=u.useCallback(l=>{r===!1?s(l):u.startTransition(()=>s(l))},[r]);return u.useLayoutEffect(()=>n.listen(i),[n,i]),u.createElement(Kt,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:n,useTransitions:r})}o(ra,"HistoryRouter");ra.displayName="unstable_HistoryRouter";var ce=u.forwardRef(o(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:i,mask:l,state:c,target:d,to:m,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:v,...w},y){let{basename:h,navigator:I,useTransitions:R}=u.useContext(L),S=typeof m=="string"&&He.test(m),k=Nt(m,h);m=k.to;let E=oo(m,{relative:a}),$=_(),A=null;if(l){let F=Se(l,[],$.mask?$.mask.pathname:"/",!0);h!=="/"&&(F.pathname=F.pathname==="/"?h:M([h,F.pathname])),A=I.createHref(F)}let[N,P,U]=Qo(r,w),Q=ia(m,{replace:i,mask:l,state:c,target:d,preventScrollReset:f,relative:a,viewTransition:g,defaultShouldRevalidate:v,useTransitions:R});function T(F){t&&t(F),F.defaultPrevented||Q(F)}o(T,"handleClick");let H=!(k.isExternal||s),j=u.createElement("a",{...w,...U,href:(H?A:void 0)||k.absoluteURL||E,onClick:H?T:t,ref:ea(y,P),target:d,"data-discover":!S&&n==="render"?"true":void 0});return N&&!S?u.createElement(u.Fragment,null,j,u.createElement(Ko,{page:E})):j},"LinkWithRef"));ce.displayName="Link";var Xt=u.forwardRef(o(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:i,viewTransition:l,children:c,...d},m){let f=le(i,{relative:d.relative}),g=_(),v=u.useContext(ue),{navigator:w,basename:y}=u.useContext(L),h=v!=null&&ha(f)&&l===!0,I=w.encodeLocation?w.encodeLocation(f).pathname:f.pathname,R=g.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(R=R.toLowerCase(),S=S?S.toLowerCase():null,I=I.toLowerCase()),S&&y&&(S=B(S,y)||S);const k=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let E=R===I||!a&&R.startsWith(I)&&R.charAt(k)==="/",$=S!=null&&(S===I||!a&&S.startsWith(I)&&S.charAt(I.length)==="/"),A={isActive:E,isPending:$,isTransitioning:h},N=E?t:void 0,P;typeof r=="function"?P=r(A):P=[r,E?"active":null,$?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s(A):s;return u.createElement(ce,{...d,"aria-current":N,className:P,ref:m,style:U,to:i,viewTransition:l},typeof c=="function"?c(A):c)},"NavLinkWithRef"));Xt.displayName="NavLink";var oa=u.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:i=he,action:l,onSubmit:c,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g,...v},w)=>{let{useTransitions:y}=u.useContext(L),h=ca(),I=da(l,{relative:d}),R=i.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&He.test(l),k=o(E=>{if(c&&c(E),E.defaultPrevented)return;E.preventDefault();let $=E.nativeEvent.submitter,A=$?.getAttribute("formmethod")||i,N=o(()=>h($||E.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:s,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g}),"doSubmit");y&&n!==!1?u.startTransition(()=>N()):N()},"submitHandler");return u.createElement("form",{ref:w,method:R,action:I,onSubmit:r?c:k,...v,"data-discover":!S&&e==="render"?"true":void 0})});oa.displayName="Form";function aa({getKey:e,storageKey:t,...n}){let r=u.useContext(ke),{basename:a}=u.useContext(L),s=_(),i=Qt();fa({getKey:e,storageKey:t});let l=u.useMemo(()=>{if(!r||!e)return null;let d=Ue(s,i,a,e);return d!==s.key?d:null},[]);if(!r||r.isSpaMode)return null;let c=((d,m)=>{if(!window.history.state||!window.history.state.key){let f=Math.random().toString(32).slice(2);window.history.replaceState({key:f},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[m||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch{sessionStorage.removeItem(d)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),u.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${it(JSON.stringify(t||Me))}, ${it(JSON.stringify(l))})`}})}o(aa,"ScrollRestoration");aa.displayName="ScrollRestoration";function Zt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}o(Zt,"getDataRouterConsoleError2");function Ke(e){let t=u.useContext(G);return C(t,Zt(e)),t}o(Ke,"useDataRouterContext3");function sa(e){let t=u.useContext(ue);return C(t,Zt(e)),t}o(sa,"useDataRouterState2");function ia(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:s,relative:i,viewTransition:l,defaultShouldRevalidate:c,useTransitions:d}={}){let m=xe(),f=_(),g=le(e,{relative:i});return u.useCallback(v=>{if(Lo(v,t)){v.preventDefault();let w=n!==void 0?n:oe(f)===oe(g),y=o(()=>m(e,{replace:w,mask:r,state:a,preventScrollReset:s,relative:i,viewTransition:l,defaultShouldRevalidate:c}),"doNavigate");d?u.startTransition(()=>y()):y()}},[f,m,g,n,r,a,t,e,s,i,l,c,d])}o(ia,"useLinkClickHandler");function $s(e){D(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=u.useRef(Ne(e)),n=u.useRef(!1),r=_(),a=u.useMemo(()=>Ao(r.search,n.current?null:t.current),[r.search]),s=xe();return[a,u.useCallback((i,l)=>{const c=Ne(typeof i=="function"?i(new URLSearchParams(a)):i);n.current=!0,s("?"+c,l)},[s,a])]}o($s,"useSearchParams");var ua=0,la=o(()=>`__${String(++ua)}__`,"getUniqueFetcherId");function ca(){let{router:e}=Ke("useSubmit"),{basename:t}=u.useContext(L),n=vo(),r=e.fetch,a=e.navigate;return u.useCallback(async(s,i={})=>{let{action:l,method:c,encType:d,formData:m,body:f}=To(s,t);if(i.navigate===!1){let g=i.fetcherKey||la();await r(g,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await a(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}o(ca,"useSubmit");function da(e,{relative:t}={}){let{basename:n}=u.useContext(L),r=u.useContext(O);C(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...le(e||".",{relative:t})},i=_();if(e==null){s.search=i.search;let l=new URLSearchParams(s.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(m=>m).forEach(m=>l.append("index",m));let d=l.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:M([n,s.pathname])),oe(s)}o(da,"useFormAction");var Me="react-router-scroll-positions",me={};function Ue(e,t,n,r){let a=null;return r&&(n!=="/"?a=r({...e,pathname:B(e.pathname,n)||e.pathname},t):a=r(e,t)),a==null&&(a=e.key),a}o(Ue,"getScrollRestorationKey");function fa({getKey:e,storageKey:t}={}){let{router:n}=Ke("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:a}=sa("useScrollRestoration"),{basename:s}=u.useContext(L),i=_(),l=Qt(),c=wo();u.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),ma(u.useCallback(()=>{if(c.state==="idle"){let d=Ue(i,l,s,e);me[d]=window.scrollY}try{sessionStorage.setItem(t||Me,JSON.stringify(me))}catch(d){D(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[c.state,e,s,i,l,t])),typeof document<"u"&&(u.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||Me);d&&(me=JSON.parse(d))}catch{}},[t]),u.useLayoutEffect(()=>{let d=n?.enableScrollRestoration(me,()=>window.scrollY,e?(m,f)=>Ue(m,f,s,e):void 0);return()=>d&&d()},[n,s,e]),u.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}try{if(i.hash){let d=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{D(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}a!==!0&&window.scrollTo(0,0)}},[i,r,a]))}o(fa,"useScrollRestoration");function Ps(e,t){let{capture:n}=t||{};u.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",e,r),()=>{window.removeEventListener("beforeunload",e,r)}},[e,n])}o(Ps,"useBeforeUnload");function ma(e,t){let{capture:n}=t||{};u.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}o(ma,"usePageHide");function ha(e,{relative:t}={}){let n=u.useContext(Ft);C(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ke("useViewTransitionState"),a=le(e,{relative:t});if(!n.isTransitioning)return!1;let s=B(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=B(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ge(a.pathname,i)!=null||ge(a.pathname,s)!=null}o(ha,"useViewTransitionState");var ct=60,je=3600,we=24*je,dt=7*we,ft=30*we;function pa(e){const t=Date.now(),n=new Date(e).getTime(),r=Math.round((t-n)/1e3);return r<ct?"just now":r<je?`${Math.floor(r/ct)}m ago`:r<we?`${Math.floor(r/je)}h ago`:r<dt?`${Math.floor(r/we)}d ago`:r<ft?`${Math.floor(r/dt)}w ago`:`${Math.floor(r/ft)}mo ago`}o(pa,"timeAgo");var en="from",tn="fromHref",nn="paperclip:issue-detail-breadcrumb:";function rn(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.label=="string"&&typeof t.href=="string"}o(rn,"isIssueDetailBreadcrumb");function on(e){return e==="issues"||e==="inbox"}o(on,"isIssueDetailSource");function an(e){if(typeof e!="object"||e===null)return!1;const t=e,n=t.originKind===void 0||typeof t.originKind=="string",r=t.originId===void 0||t.originId===null||typeof t.originId=="string",a=t.blockerAttention===void 0||typeof t.blockerAttention=="object"&&t.blockerAttention!==null;return typeof t.id=="string"&&(t.identifier===null||typeof t.identifier=="string")&&typeof t.title=="string"&&typeof t.status=="string"&&a&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.projectName===null||typeof t.projectName=="string")&&n&&r}o(an,"isIssueDetailHeaderSeed");function ga(e){return{id:e.id,identifier:e.identifier??null,title:e.title,status:e.status,blockerAttention:e.blockerAttention,priority:e.priority,projectId:e.projectId??null,projectName:e.project?.name??null,originKind:e.originKind,originId:e.originId??null}}o(ga,"createIssueDetailHeaderSeed");function sn(e,t){const n=ga(t);return typeof e!="object"||e===null?{issueDetailHeaderSeed:n}:{...e,issueDetailHeaderSeed:n}}o(sn,"withIssueDetailHeaderSeed");function ya(e){if(typeof e!="object"||e===null)return null;const t=e.issueDetailHeaderSeed;return an(t)?t:null}o(ya,"readIssueDetailHeaderSeed");function va(e){if(!e)return null;const t=new URLSearchParams(e).get(en);return on(t)?t:null}o(va,"readIssueDetailSourceFromSearch");function wa(e){if(!e)return null;const t=new URLSearchParams(e).get(tn);return t&&t.startsWith("/")?t:null}o(wa,"readIssueDetailBreadcrumbHrefFromSearch");function un(e,t){return on(e?.issueDetailSource)?e.issueDetailSource:t?t.label==="Inbox"||t.href.includes("/inbox")?"inbox":t.label==="Tasks"||t.href.includes("/issues")?"issues":null:null}o(un,"inferIssueDetailSource");function mt(e){return e==="inbox"?{label:"Inbox",href:"/inbox"}:{label:"Tasks",href:"/issues"}}o(mt,"breadcrumbForSource");function Ls(e,t,n){return{issueDetailBreadcrumb:{label:e,href:t},issueDetailSource:n}}o(Ls,"createIssueDetailLocationState");function As(e){return typeof e!="object"||e===null?{issueDetailInboxQuickArchiveArmed:!0}:{...e,issueDetailInboxQuickArchiveArmed:!0}}o(As,"armIssueDetailInboxQuickArchive");function Ia(e){if(typeof window>"u"||!window.sessionStorage)return null;const t=window.sessionStorage.getItem(`${nn}${e}`);if(!t)return null;try{const n=JSON.parse(t),r=rn(n.issueDetailBreadcrumb)?n.issueDetailBreadcrumb:null,a=un(n,r);if(!r||!a)return null;const s=an(n.issueDetailHeaderSeed)?n.issueDetailHeaderSeed:void 0;return{issueDetailBreadcrumb:r,issueDetailSource:a,issueDetailInboxQuickArchiveArmed:n.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:s}}catch{return null}}o(Ia,"readStoredIssueDetailLocationState");function ln(e,t){if(typeof e=="object"&&e!==null){const a=e.issueDetailBreadcrumb;if(rn(a)){const s=un(e,a);if(!s)return null;const i=ya(e)??void 0;return{issueDetailBreadcrumb:a,issueDetailSource:s,issueDetailInboxQuickArchiveArmed:e.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:i}}}const n=va(t),r=wa(t);return n?{issueDetailBreadcrumb:r?{...mt(n),href:r}:mt(n),issueDetailSource:n,issueDetailInboxQuickArchiveArmed:!1}:null}o(ln,"normalizeIssueDetailLocationState");function Ds(e,t,n){if(typeof window>"u"||!window.sessionStorage)return;const r=ln(t,n);r&&window.sessionStorage.setItem(`${nn}${e}`,JSON.stringify(r))}o(Ds,"rememberIssueDetailLocationState");function Ra(e){return`/issues/${e}`}o(Ra,"createIssueDetailPath");function _s(e){if(!e)return!1;const t=new URLSearchParams(e);return t.has(en)||t.has(tn)}o(_s,"hasLegacyIssueDetailQuery");function Sa(e,t,n){const r=ln(t,n);return r||(e?Ia(e):null)}o(Sa,"readIssueDetailLocationState");function Ts(e,t,n){return Sa(e,t,n)?.issueDetailBreadcrumb??null}o(Ts,"readIssueDetailBreadcrumb");var ht=class extends Error{static{o(this,"CommentSubmissionUnknownError")}constructor(){super("We couldn’t confirm whether this comment was saved. Review the conversation before starting another draft."),this.name="CommentSubmissionUnknownError"}};function pt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e,n=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;return typeof t.id=="string"&&n.test(t.id)&&typeof t.issueId=="string"&&n.test(t.issueId)&&typeof t.body=="string"}o(pt,"hasCommentReceipt");async function gt(e,t){try{const n=await e;if(!t(n))throw new ht;return n}catch(n){throw n instanceof An&&n.status<500?n:new ht}}o(gt,"confirmedCommentResponse");function yt(e){const t=new URLSearchParams;return e?.attention&&t.set("attention",e.attention),e?.status&&t.set("status",e.status),e?.projectId&&t.set("projectId",e.projectId),e?.parentId&&t.set("parentId",e.parentId),e?.assigneeAgentId&&t.set("assigneeAgentId",e.assigneeAgentId),e?.participantAgentId&&t.set("participantAgentId",e.participantAgentId),e?.assigneeUserId&&t.set("assigneeUserId",e.assigneeUserId),e?.touchedByUserId&&t.set("touchedByUserId",e.touchedByUserId),e?.inboxArchivedByUserId&&t.set("inboxArchivedByUserId",e.inboxArchivedByUserId),e?.unreadForUserId&&t.set("unreadForUserId",e.unreadForUserId),e?.labelId&&t.set("labelId",e.labelId),e?.workspaceId&&t.set("workspaceId",e.workspaceId),e?.executionWorkspaceId&&t.set("executionWorkspaceId",e.executionWorkspaceId),e?.originKind&&t.set("originKind",e.originKind),e?.originKindPrefix&&t.set("originKindPrefix",e.originKindPrefix),e?.originId&&t.set("originId",e.originId),e?.descendantOf&&t.set("descendantOf",e.descendantOf),e?.createdFromIssueId&&t.set("createdFromIssueId",e.createdFromIssueId),e?.includeRoutineExecutions&&t.set("includeRoutineExecutions","true"),e?.includeBlockedBy&&t.set("includeBlockedBy","true"),e?.includeBlockedInboxAttention&&t.set("includeBlockedInboxAttention","true"),e?.includeLiveDescendantSummary&&t.set("includeLiveDescendantSummary","true"),e?.hasPlanDocument!==void 0&&t.set("hasPlanDocument",e.hasPlanDocument?"true":"false"),e?.q&&t.set("q",e.q),e?.limit&&t.set("limit",String(e.limit)),e?.offset!==void 0&&t.set("offset",String(e.offset)),e?.sortField&&t.set("sortField",e.sortField),e?.sortDir&&t.set("sortDir",e.sortDir),e?.afterId&&t.set("afterId",e.afterId),t}o(yt,"issueListSearchParams");var K={listAll:o(async(e,t,n)=>{const a=new Map;let s;for(;;){const i=await K.list(e,{...t,limit:500,sortField:"id",sortDir:"asc",afterId:s},n);for(const l of i)a.set(l.id,l);if(i.length<500)return[...a.values()];s=i[i.length-1].id}},"listAll"),list:o((e,t,n)=>{const r=yt(t).toString(),a=`/companies/${e}/issues${r?`?${r}`:""}`;return n?p.get(a,n):p.get(a)},"list"),listCompact:o((e,t,n)=>{const r=yt(t);r.set("view","compact");const a=`/companies/${e}/issues?${r.toString()}`;return n?p.get(a,n):p.get(a)},"listCompact"),count:o((e,t)=>{const n=new URLSearchParams;return n.set("attention",t.attention),t.status&&n.set("status",t.status),t.assigneeAgentId&&n.set("assigneeAgentId",t.assigneeAgentId),t.assigneeUserId&&n.set("assigneeUserId",t.assigneeUserId),t.projectId&&n.set("projectId",t.projectId),t.labelId&&n.set("labelId",t.labelId),t.q&&n.set("q",t.q),p.get(`/companies/${e}/issues/count?${n.toString()}`)},"count"),listLabels:o(e=>p.get(`/companies/${e}/labels`),"listLabels"),createLabel:o((e,t)=>p.post(`/companies/${e}/labels`,t),"createLabel"),deleteLabel:o(e=>p.delete(`/labels/${e}`),"deleteLabel"),get:o((e,t)=>t?p.get(`/issues/${e}`,t):p.get(`/issues/${e}`),"get"),getRunnerGoal:o((e,t)=>{const n=t?`?agentId=${encodeURIComponent(t)}`:"";return p.get(`/issues/${e}/runner-goal${n}`)},"getRunnerGoal"),actOnRunnerGoal:o((e,t)=>p.post(`/issues/${e}/runner-goal/actions`,t),"actOnRunnerGoal"),getModelOverride:o(e=>p.get(`/issues/${e}/model-override`),"getModelOverride"),setModelOverride:o((e,t)=>p.put(`/issues/${e}/model-override`,t),"setModelOverride"),getWatchdog:o(e=>p.get(`/issues/${e}/watchdog`),"getWatchdog"),upsertWatchdog:o((e,t)=>p.put(`/issues/${e}/watchdog`,t),"upsertWatchdog"),deleteWatchdog:o(e=>p.delete(`/issues/${e}/watchdog`),"deleteWatchdog"),markRead:o(e=>p.post(`/issues/${e}/read`,{}),"markRead"),markUnread:o(e=>p.delete(`/issues/${e}/read`),"markUnread"),archiveFromInbox:o(e=>p.post(`/issues/${e}/inbox-archive`,{}),"archiveFromInbox"),unarchiveFromInbox:o(e=>p.delete(`/issues/${e}/inbox-archive`),"unarchiveFromInbox"),create:o((e,t)=>p.post(`/companies/${e}/issues`,t),"create"),update:o((e,t)=>{const n=p.patch(`/issues/${e}`,t);return typeof t.comment=="string"?gt(n,r=>pt(r?.comment)):n},"update"),decideStalledReview:o((e,t)=>p.post(`/issues/${e}/stalled-review-decision`,t),"decideStalledReview"),resolveRecoveryAction:o((e,t)=>p.post(`/issues/${e}/recovery-actions/resolve`,t),"resolveRecoveryAction"),previewTreeControl:o((e,t)=>p.post(`/issues/${e}/tree-control/preview`,t),"previewTreeControl"),createTreeHold:o((e,t)=>p.post(`/issues/${e}/tree-holds`,t),"createTreeHold"),getTreeHold:o((e,t)=>p.get(`/issues/${e}/tree-holds/${t}`),"getTreeHold"),listTreeHolds:o((e,t)=>{const n=new URLSearchParams;t?.status&&n.set("status",t.status),t?.mode&&n.set("mode",t.mode),t?.includeMembers&&n.set("includeMembers","true");const r=n.toString();return p.get(`/issues/${e}/tree-holds${r?`?${r}`:""}`)},"listTreeHolds"),getTreeControlState:o(e=>p.get(`/issues/${e}/tree-control/state`),"getTreeControlState"),releaseTreeHold:o((e,t,n)=>p.post(`/issues/${e}/tree-holds/${t}/release`,n),"releaseTreeHold"),checkMonitorNow:o(e=>p.post(`/issues/${e}/monitor/check-now`,{}),"checkMonitorNow"),retryScheduledRetryNow:o(e=>p.post(`/issues/${e}/scheduled-retry/retry-now`,{}),"retryScheduledRetryNow"),remove:o(e=>p.delete(`/issues/${e}`),"remove"),checkout:o((e,t)=>p.post(`/issues/${e}/checkout`,{agentId:t,expectedStatuses:["todo","backlog","blocked","in_review"]}),"checkout"),release:o(e=>p.post(`/issues/${e}/release`,{}),"release"),listComments:o((e,t)=>{const n=new URLSearchParams;t?.after&&n.set("after",t.after),t?.order&&n.set("order",t.order),t?.limit&&n.set("limit",String(t.limit));const r=n.toString();return p.get(`/issues/${e}/comments${r?`?${r}`:""}`)},"listComments"),getQueuedComments:o(e=>p.get(`/issues/${e}/queued-comments`),"getQueuedComments"),editQueuedComment:o((e,t,n)=>p.patch(`/issues/${e}/queued-comments/${t}`,n),"editQueuedComment"),reorderQueuedComments:o((e,t)=>p.put(`/issues/${e}/queued-comments/order`,t),"reorderQueuedComments"),interruptQueuedComments:o((e,t)=>p.post(`/issues/${e}/queued-comments/interrupt`,t),"interruptQueuedComments"),interruptLatestQueuedComments:o(async(e,t)=>{const n=await K.getQueuedComments(e);if(!n.queueId||n.targetRunId&&n.targetRunId!==t)throw new Error("The queued messages changed. Refresh and try again.");return K.interruptQueuedComments(e,{queueId:n.queueId,revision:n.revision,targetRunId:n.targetRunId})},"interruptLatestQueuedComments"),steerQueuedComment:o((e,t,n)=>p.post(`/issues/${e}/queued-comments/${t}/steer`,n),"steerQueuedComment"),discardQueuedComment:o((e,t,n)=>p.delete(`/issues/${e}/queued-comments/${t}`,n),"discardQueuedComment"),listInteractions:o(e=>p.get(`/issues/${e}/interactions`),"listInteractions"),listAcceptedPlanDecompositions:o(e=>p.get(`/issues/${e}/accepted-plan-decompositions`),"listAcceptedPlanDecompositions"),createInteraction:o((e,t)=>p.post(`/issues/${e}/interactions`,t),"createInteraction"),acceptInteraction:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/accept`,n??{}),"acceptInteraction"),rejectInteraction:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/reject`,n?{reason:n}:{}),"rejectInteraction"),cancelInteraction:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/cancel`,n?{reason:n}:{}),"cancelInteraction"),skipInteraction:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/skip`,n?{reason:n}:{}),"skipInteraction"),respondToInteraction:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/respond`,n),"respondToInteraction"),submitInteractionVerdicts:o((e,t,n)=>p.post(`/issues/${e}/interactions/${t}/verdicts`,{verdicts:n}),"submitInteractionVerdicts"),getComment:o((e,t)=>p.get(`/issues/${e}/comments/${t}`),"getComment"),listFeedbackVotes:o(e=>p.get(`/issues/${e}/feedback-votes`),"listFeedbackVotes"),getCostSummary:o((e,t={})=>{const n=t.excludeRoot?"?excludeRoot=true":"";return p.get(`/issues/${e}/cost-summary${n}`)},"getCostSummary"),listFeedbackTraces:o((e,t)=>{const n=new URLSearchParams;for(const[a,s]of Object.entries(t??{}))s!==void 0&&n.set(a,String(s));const r=n.toString();return p.get(`/issues/${e}/feedback-traces${r?`?${r}`:""}`)},"listFeedbackTraces"),upsertFeedbackVote:o((e,t)=>p.post(`/issues/${e}/feedback-votes`,t),"upsertFeedbackVote"),addComment:o((e,t,n,r,a,s,i)=>gt(p.post(`/issues/${e}/comments`,{body:t,...s?{clientRequestId:s}:{},...n===void 0?{}:{reopen:n},...r===void 0?{}:{interrupt:r},...a?.length?{attachmentIds:a}:{},...i===void 0?{}:{deliver:i}}),pt),"addComment"),cancelComment:o((e,t)=>p.delete(`/issues/${e}/comments/${t}?mode=cancel`),"cancelComment"),deleteComment:o((e,t)=>p.delete(`/issues/${e}/comments/${t}`),"deleteComment"),listDocuments:o((e,t)=>p.get(`/issues/${e}/documents${t?.includeSystem?"?includeSystem=true":""}`),"listDocuments"),getDocument:o((e,t)=>p.get(`/issues/${e}/documents/${encodeURIComponent(t)}`),"getDocument"),getDocumentPdf:o((e,t)=>p.getBlob(`/issues/${e}/documents/${encodeURIComponent(t)}/pdf`),"getDocumentPdf"),upsertDocument:o((e,t,n)=>p.put(`/issues/${e}/documents/${encodeURIComponent(t)}`,n),"upsertDocument"),lockDocument:o((e,t)=>p.post(`/issues/${e}/documents/${encodeURIComponent(t)}/lock`,{}),"lockDocument"),unlockDocument:o((e,t)=>p.post(`/issues/${e}/documents/${encodeURIComponent(t)}/unlock`,{}),"unlockDocument"),listDocumentRevisions:o((e,t)=>p.get(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions`),"listDocumentRevisions"),restoreDocumentRevision:o((e,t,n)=>p.post(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions/${n}/restore`,{}),"restoreDocumentRevision"),deleteDocument:o((e,t)=>p.delete(`/issues/${e}/documents/${encodeURIComponent(t)}`),"deleteDocument"),listAttachments:o(e=>p.get(`/issues/${e}/attachments`),"listAttachments"),uploadAttachment:o((e,t,n,r)=>{const a=new FormData;return a.append("file",n),r&&a.append("issueCommentId",r),p.postForm(`/companies/${e}/issues/${t}/attachments`,a)},"uploadAttachment"),deleteAttachment:o(e=>p.delete(`/attachments/${e}`),"deleteAttachment"),listApprovals:o(e=>p.get(`/issues/${e}/approvals`),"listApprovals"),linkApproval:o((e,t)=>p.post(`/issues/${e}/approvals`,{approvalId:t}),"linkApproval"),unlinkApproval:o((e,t)=>p.delete(`/issues/${e}/approvals/${t}`),"unlinkApproval"),listWorkProducts:o((e,t)=>p.get(`/issues/${e}/work-products${t?.refreshPullRequests?"?refreshPullRequests=true":""}`),"listWorkProducts"),ensureWorkProductReviewDocument:o((e,t)=>p.post(`/issues/${e}/work-products/${t}/review-document`,{}),"ensureWorkProductReviewDocument"),createWorkProduct:o((e,t)=>p.post(`/issues/${e}/work-products`,t),"createWorkProduct"),updateWorkProduct:o((e,t)=>p.patch(`/work-products/${e}`,t),"updateWorkProduct"),deleteWorkProduct:o(e=>p.delete(`/work-products/${e}`),"deleteWorkProduct")};function V(e){return new Date(e).getTime()}o(V,"toTimestamp");function xa(){const e=globalThis.crypto?.randomUUID?.();return e?`optimistic-${e}`:`optimistic-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}o(xa,"createOptimisticCommentId");function Ve(e){return[...e].sort((t,n)=>{const r=V(t.createdAt)-V(n.createdAt);return r!==0?r:t.id.localeCompare(n.id)})}o(Ve,"sortIssueComments");function vt(e){return Ve(e).reverse()}o(vt,"sortIssueCommentsDesc");function Os(e){const t=new Date,n=xa();return{id:n,clientId:n,companyId:e.companyId,issueId:e.issueId,authorType:"user",authorAgentId:null,authorUserId:e.authorUserId,body:e.body,presentation:null,metadata:null,clientStatus:e.clientStatus??"pending",queueTargetRunId:e.queueTargetRunId??null,createdAt:t,updatedAt:t}}o(Os,"createOptimisticIssueComment");function Ns(e){return e.runId||e.interruptedRunId||e.comment.id&&(e.comment.id===e.activeRunWakeCommentId||e.comment.id===e.activeRunCommentId)||e.comment.authorAgentId&&e.activeRunAgentId&&e.comment.authorAgentId===e.activeRunAgentId?!1:e.comment.clientStatus==="queued"?!0:e.activeRunStartedAt?V(e.comment.createdAt)>=V(e.activeRunStartedAt):!1}o(Ns,"isQueuedIssueComment");function Ms(e,t){const n=t.queuedTargetRunId??null;return!n||!t.targetRunIsLive||t.runningRunId&&t.runningRunId!==n?e:{...e,clientStatus:"queued",queueState:"queued",queueTargetRunId:n}}o(Ms,"applyLocalQueuedIssueCommentState");function Us(e,t){const n=e??[],r=[...n],a=new Set(r.map(i=>i.id)),s=new Set;for(const i of t){if(a.has(i.id))continue;const l=n.find(c=>!s.has(c.id)&&c.issueId===i.issueId&&c.authorType===i.authorType&&c.authorUserId===i.authorUserId&&c.body===i.body&&Math.abs(V(c.createdAt)-V(i.createdAt))<=6e4);if(l){s.add(l.id);const c={...l,clientId:i.clientId};r[r.findIndex(d=>d.id===l.id)]=c;continue}r.push(i)}return Ve(r)}o(Us,"mergeIssueComments");function js(e,t){const n=e.findIndex(r=>r.clientId===t);return n===-1?{comments:e,comment:null}:{comments:e.filter(r=>r.clientId!==t),comment:e[n]??null}}o(js,"takeOptimisticIssueComment");function Fs(e){return Ve((e??[]).flatMap(t=>t))}o(Fs,"flattenIssueCommentPages");function Ea(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}o(Ea,"getNextIssueCommentPageParam");function wt(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}o(wt,"getNextPageCursor");async function Bs(e){const t=(e.pages??[]).map(i=>[...i]),n=e.pageParams?[...e.pageParams].slice(0,t.length):t.map(()=>null);for(;n.length<t.length;)n.push(null);if(e.pageSize<=0)return{pages:t,pageParams:n};let r=wt(t[t.length-1],e.pageSize);const a=Math.max(0,e.maxPages??Number.POSITIVE_INFINITY),s=new Set;for(;r&&!s.has(r)&&s.size<a;){s.add(r);const i=[...await e.fetchPage(r)];t.push(i),n.push(r),r=wt(i,e.pageSize)}return{pages:t,pageParams:n}}o(Bs,"loadRemainingIssueCommentPages");function Hs(e){return e.activeDetailTab!=="chat"||!e.hasOlderComments||e.initialPageLoading||e.olderPageLoading||e.loadedCommentCount===0?!1:e.loadedCommentCount<e.autoLoadLimit}o(Hs,"shouldAutoloadOlderIssueComments");function Ws(e,t){if(!e)return e;const n={...e};return t.reopen===!0&&(e.status==="done"||e.status==="cancelled"||e.status==="blocked")&&(n.status="todo"),t.reassignment&&(n.assigneeAgentId=t.reassignment.assigneeAgentId,n.assigneeUserId=t.reassignment.assigneeUserId),n}o(Ws,"applyOptimisticIssueCommentUpdate");function ba(e,t){if(!e)return e;const n={...e,updatedAt:new Date},r=o(s=>Object.prototype.hasOwnProperty.call(t,s),"hasOwn"),a=o(s=>{r(s)&&(n[s]=t[s])},"assign");if(a("status"),a("priority"),a("assigneeAgentId"),a("assigneeUserId"),a("projectId"),a("parentId"),a("projectWorkspaceId"),a("executionWorkspaceId"),a("executionWorkspacePreference"),a("executionWorkspaceSettings"),a("hiddenAt"),r("labelIds")&&Array.isArray(t.labelIds)){const s=t.labelIds.filter(i=>typeof i=="string");n.labelIds=s,e.labels&&(n.labels=e.labels.filter(i=>s.includes(i.id)))}if(r("blockedByIssueIds")&&Array.isArray(t.blockedByIssueIds)&&e.blockedBy){const s=new Set(t.blockedByIssueIds.filter(i=>typeof i=="string"));n.blockedBy=e.blockedBy.filter(i=>s.has(i.id))}return r("projectId")&&(n.project=e.project?.id===n.projectId?e.project:null),r("parentId")&&(n.ancestors=void 0),r("executionWorkspaceId")&&(n.currentExecutionWorkspace=e.currentExecutionWorkspace?.id===n.executionWorkspaceId?e.currentExecutionWorkspace:null),n}o(ba,"applyOptimisticIssueFieldUpdate");function Ca(e,t){const n=t instanceof Set?t:new Set(t);return n.has(e.id)||!!e.identifier&&n.has(e.identifier)}o(Ca,"matchesIssueRef$1");function qs(e,t,n){if(!e)return e;let r=!1;const a=e.map(s=>Ca(s,t)?(r=!0,ba(s,n)??s):s);return r?a:e}o(qs,"applyOptimisticIssueFieldUpdateToCollection");function zs(e,t){if(!e||e.length===0)return[[t]];const n=e.map(r=>[...r]);for(let r=0;r<n.length;r+=1){const a=n[r].findIndex(s=>s.id===t.id);if(a!==-1)return n[r][a]=t,n[r]=vt(n[r]),n}return n[0]=vt([...n[0],t]),n}o(zs,"upsertIssueCommentInPages");function Qs(e,t){return!e||e.length===0?[]:e.map(n=>n.filter(r=>r.id!==t)).filter(n=>n.length>0)}o(Qs,"removeIssueCommentFromPages");var ka=["issues","detail"],cn=6e4,$a=3e4;function re(e){return typeof e=="string"&&e.length>0}o(re,"isNonEmptyString");function dn(e,t){const n=new Set;return re(e)&&n.add(e),re(t?.id)&&n.add(t.id),re(t?.identifier)&&n.add(t.identifier),Array.from(n)}o(dn,"collectIssueRefs");function Pa(e,t){const n=t instanceof Set?t:new Set(t);return n.has(e.id)||!!e.identifier&&n.has(e.identifier)}o(Pa,"matchesIssueRef");function Ie(e){if(typeof e!="object"||e===null)return!1;const t=e;return re(t.id)&&re(t.companyId)&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.workMode=="string"&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.parentId===null||typeof t.parentId=="string")&&(t.identifier===null||typeof t.identifier=="string")&&(t.description===null||typeof t.description=="string")&&(t.assigneeAgentId===null||typeof t.assigneeAgentId=="string")&&(t.assigneeUserId===null||typeof t.assigneeUserId=="string")&&(t.executionRunId===null||typeof t.executionRunId=="string")&&(t.issueNumber===null||typeof t.issueNumber=="number")&&typeof t.requestDepth=="number"&&t.createdAt!=null&&t.updatedAt!=null}o(Ie,"isCompleteIssueSnapshot");function It(e,t){return e?{...e,...t}:t}o(It,"mergeIssueSnapshots");function fn(e,t,n){const r=dn(t,n);for(const a of r){const s=e.getQueryData(ie.issues.detail(a));if(Ie(s))return s}return e.getQueriesData({queryKey:ka}).map(([,a])=>a).find(a=>Ie(a)&&Pa(a,r))}o(fn,"getCachedIssueDetail");function mn(e,t,n){if(!Ie(t))return t;const r=dn(n?.issueRef,t),a=It(fn(e,n?.issueRef,t),t);for(const s of r)e.setQueryData(ie.issues.detail(s),i=>It(i,a));return a}o(mn,"seedIssueDetailCache");async function hn(e,t,n){return mn(e,n?await K.get(t,n):await K.get(t),{issueRef:t})}o(hn,"fetchIssueDetail");function La(e,t,n){return{queryKey:ie.issues.detail(t),queryFn:o(({signal:r})=>hn(e,t,{signal:r}),"queryFn"),placeholderData:fn(e,t,n?.placeholderIssue??void 0)}}o(La,"getIssueDetailQueryOptions");function Aa(e,t,n){return Ie(n?.issue)&&mn(e,n.issue,{issueRef:t}),e.prefetchQuery({queryKey:ie.issues.detail(t),queryFn:o(()=>hn(e,t),"queryFn"),staleTime:cn})}o(Aa,"prefetchIssueDetail");function Da(e,t){return e.prefetchInfiniteQuery({queryKey:ie.issues.comments(t),queryFn:o(({pageParam:n})=>K.listComments(t,{order:"desc",limit:50,...n?{after:n}:{}}),"queryFn"),initialPageParam:null,getNextPageParam:o(n=>Ea(n,50),"getNextPageParam"),staleTime:$a,pages:1})}o(Da,"prefetchIssueComments");function _a(e,t,n){return Promise.all([Aa(e,t,n),Da(e,n?.issue?.id??t)])}o(_a,"prefetchIssueDetailForNavigation");var Ta=[["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Oa=Re("box",Ta),Na=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Ma=Re("briefcase",Na),Ua=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],ja=Re("compass",Ua),Fa=[["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"}]],Ba=Re("layers",Fa),Rt={folder:yr,rocket:cr,code:On,terminal:ir,database:Un,globe:mr,package:sr,boxes:Fn,box:Oa,layers:Ba,briefcase:Ma,compass:ja,target:Qn,flame:fr,zap:lr,star:ar,bug:er,wrench:or,hammer:Jn,lightbulb:zn,sparkles:ur,shield:Kn,lock:Gn,search:nr,cog:tr,brain:jn,cpu:Bn,"git-branch":Wn,"file-code":qn,puzzle:Yn,gem:Nn,atom:Hn,heart:hr,mail:Xn,"message-square":rr,crown:Mn,radar:Vn,telescope:Zn,hexagon:dr},Ha="folder";function Wa(e){return e&&Dn.includes(e)?Rt[e]:Rt[Ha]}o(Wa,"getProjectIcon");var x=bt(Ln(),1),qa={xs:{box:"h-4 w-4 rounded-sm",icon:"h-2.5 w-2.5"},sm:{box:"h-6 w-6 rounded-md",icon:"h-3.5 w-3.5"},md:{box:"h-7 w-7 rounded-lg",icon:"h-4 w-4"},lg:{box:"h-9 w-9 rounded-lg",icon:"h-5 w-5"}};function za({color:e,icon:t,size:n="md",className:r}){const a=qa[n],s=!!e,i=Wa(t);return(0,x.jsx)("span",{"aria-hidden":!0,className:Be("inline-flex shrink-0 items-center justify-center",a.box,s?"text-white":"bg-muted text-muted-foreground",r),style:s?{backgroundColor:e??void 0}:void 0,children:(0,x.jsx)(i,{className:a.icon})})}o(za,"ProjectTile");var ae=null,Fe=new Set;function pn(){for(const e of Fe)e()}o(pn,"emitQuicklookChange");function St(e){ae!==e&&(ae=e,pn())}o(St,"openQuicklookId");function xt(e){ae===e&&(ae=null,pn())}o(xt,"closeQuicklookId");function Qa(e){return Fe.add(e),()=>{Fe.delete(e)}}o(Qa,"subscribeQuicklook");function Ja(e){return u.useSyncExternalStore(Qa,()=>ae===e,()=>!1)}o(Ja,"useIsQuicklookOpen");var Ka=120,Va=13,Ya="w-72 p-3";function Ga(e="start"){return e==="start"?-13:e==="end"?Va:0}o(Ga,"quicklookAlignOffset");function Xa(e){if(!e)return null;const t=e.replace(/!\[[^\]]*]\([^)]+\)/g," ").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[#>*_`~-]+/g," ").replace(/\s+/g," ").trim();return t?t.length>180?`${t.slice(0,177).trimEnd()}...`:t:null}o(Xa,"summarizeIssueDescription");function Za({className:e}){return(0,x.jsx)("span",{className:Be("text-xs",e),"aria-hidden":!0,children:"·"})}o(Za,"QuicklookSeparator");function es(e){const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}o(es,"statusLabel");function ts({issue:e,linkTo:t,linkState:n,compact:r=!1}){const a=(0,u.useMemo)(()=>Xa(e.description),[e.description]),s=e.project?.name;return(0,x.jsxs)("div",{className:Be("space-y-2",r&&"space-y-1.5"),children:[(0,x.jsxs)("div",{className:"flex items-center gap-1",children:[(0,x.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[(0,x.jsx)(wr,{status:e.status,size:"md",title:es(e.status)}),(0,x.jsx)("span",{className:"shrink-0 font-mono text-(length:--text-micro) text-muted-foreground",children:e.identifier??e.id.slice(0,8)}),s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Za,{className:"shrink-0 text-muted-foreground"}),(0,x.jsxs)("span",{className:"flex min-w-0 max-w-(--sz-12rem) flex-1 items-center gap-1 text-(length:--text-micro) text-muted-foreground",title:s,"data-testid":"quicklook-project",children:[(0,x.jsx)(za,{size:"xs"}),(0,x.jsx)("span",{className:"truncate",children:s})]})]}):null]}),(0,x.jsx)("span",{className:"shrink-0 text-(length:--text-micro) text-muted-foreground",children:pa(new Date(e.updatedAt))})]}),(0,x.jsx)(ce,{to:t,state:n??sn(null,e),className:"block text-sm font-medium leading-snug hover:underline line-clamp-2",children:e.title}),a?(0,x.jsx)("p",{className:"text-xs leading-5 text-muted-foreground [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:4] overflow-hidden",children:a}):null]})}o(ts,"IssueQuicklookCard");var ns=u.forwardRef(o(function({issuePathId:t,to:n,children:r,className:a,state:s,disableIssueQuicklook:i=!1,issuePrefetch:l=null,issueQuicklookSide:c="top",issueQuicklookAlign:d="start",onClick:m,onClickCapture:f,onMouseEnter:g,onFocus:v,onBlur:w,onTouchStart:y,...h},I){const R=Pn(),S=u.useMemo(()=>Symbol("issue-quicklook"),[]),k=Ja(S),E=u.useRef(null),$=u.useRef(null),A=u.useRef(null),N=u.useCallback(b=>{$.current=b,typeof I=="function"?I(b):I&&(I.current=b)},[I]),P=u.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),U=u.useCallback(()=>{P(),St(S)},[P,S]),Q=u.useCallback(()=>{P(),E.current=setTimeout(()=>{E.current=null,St(S)},Ka)},[P,S]),T=u.useCallback(()=>{P(),xt(S)},[P,S]);u.useEffect(()=>()=>{P(),xt(S)},[P,S]),u.useEffect(()=>{if(!k)return;const b=12,Xe=o((q,te,J)=>{if(!q)return!1;const W=q.getBoundingClientRect();return te>=W.left-b&&te<=W.right+b&&J>=W.top-b&&J<=W.bottom+b},"nearBox"),bn=o((q,te)=>{const J=$.current,W=A.current;if(J?.matches(":hover")||W?.matches(":hover")||Xe(J,q,te)||Xe(W,q,te))return!0;const Pe=document.activeElement;return J===Pe||!!W&&!!Pe&&W.contains(Pe)},"stillEngaged"),Ze=o(q=>{bn(q.clientX,q.clientY)||T()},"onPointerMove");return document.addEventListener("pointermove",Ze,{passive:!0}),()=>document.removeEventListener("pointermove",Ze)},[k,T]);const H=l?sn(s,l):s,{data:j,isLoading:F}=_n({...La(R,t,{placeholderIssue:l??void 0}),enabled:k,staleTime:cn}),En=Ra(t),ee=u.useCallback(()=>{_a(R,t,{issue:l})},[t,l,R]),Ge=(0,x.jsx)(ce,{ref:N,to:n,state:H,className:a,onMouseEnter:o(b=>{ee(),g?.(b)},"onMouseEnter"),onFocus:o(b=>{ee(),U(),v?.(b)},"onFocus"),onBlur:o(b=>{setTimeout(()=>T(),0),w?.(b)},"onBlur"),onTouchStart:o(b=>{ee(),y?.(b)},"onTouchStart"),onClickCapture:o(b=>{ee(),f?.(b)},"onClickCapture"),onClick:o(b=>{T(),m?.(b)},"onClick"),...h,children:r});return i?Ge:(0,x.jsxs)(vr,{open:k,onOpenChange:o(b=>b?U():T(),"onOpenChange"),children:[(0,x.jsx)(gr,{asChild:!0,onMouseEnter:o(()=>{ee(),Q()},"onMouseEnter"),onMouseLeave:T,children:Ge}),(0,x.jsx)(pr,{ref:A,"data-quicklook":!0,className:Ya,side:c,align:d,alignOffset:Ga(d),onMouseEnter:U,onMouseLeave:T,onOpenAutoFocus:o(b=>b.preventDefault(),"onOpenAutoFocus"),onCloseAutoFocus:o(b=>b.preventDefault(),"onCloseAutoFocus"),children:j?(0,x.jsx)(ts,{issue:j,linkTo:En,linkState:H,compact:!0}):(0,x.jsxs)("div",{className:"space-y-2",children:[(0,x.jsx)("div",{className:"h-4 w-24 rounded bg-accent/50"}),(0,x.jsx)("div",{className:"h-4 w-full rounded bg-accent/40"}),(0,x.jsx)("div",{className:"h-4 w-3/4 rounded bg-accent/30"}),F?null:(0,x.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unable to load task preview."})]})})]})},"IssueLinkQuicklookImpl")),gn=new Set(["dashboard","companies","company","skills","teams-catalog","org","agents","chats","apps","projects","workspaces","execution-workspaces","issues","tasks","routines","goals","artifacts","tools","approvals","costs","usage","activity","audit","decisions","inbox","board-chat","artifacts","u","design-guide","search","settings","timeline"]),Ye=new Set(["auth","invite","board-claim","cli-auth","docs","instance"]);function se(e){return e.trim().toUpperCase()}o(se,"normalizeCompanyPrefix");function yn(e){const t=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return{pathname:t?.[1]??e,search:t?.[2]??"",hash:t?.[3]??""}}o(yn,"splitPath");function rs(e){return e.split("/").filter(Boolean)[0]??null}o(rs,"getRootSegment");function os(e){if(e==="/")return!0;const t=rs(e);return t?Ye.has(t.toLowerCase()):!0}o(os,"isGlobalPath");function vn(e){const t=e.split("/").filter(Boolean);if(t.length===0)return null;const n=t[0].toLowerCase();return Ye.has(n)||gn.has(n)?null:se(t[0])}o(vn,"extractCompanyPrefixFromPath");function Et(e,t){const{pathname:n,search:r,hash:a}=yn(e);if(!n.startsWith("/")||os(n)||!t)return e;const s=se(t);return vn(n)?e:`/${s}${n}${r}${a}`}o(Et,"applyCompanyPrefix");function as(e,...t){const n=["cases",...t].filter(Boolean).join("/");return e?`/${se(e)}/${n}`:`/${n}`}o(as,"caseHref");function Js(e){const{pathname:t,search:n,hash:r}=yn(e),a=t.split("/").filter(Boolean);if(a.length>=2){const s=a[1].toLowerCase();if(!Ye.has(a[0].toLowerCase())&&gn.has(s))return`/${a.slice(1).join("/")}${n}${r}`}return`${t}${n}${r}`}o(Js,"toCompanyRelativePath");var wn=/^[A-Z][A-Z0-9]*-\d+$/i,ss=/^issue:\/\/:?([^?#\s]+)(?:[?#].*)?$/i,is=/issue:\/\/:?[^\s<>()]+|https?:\/\/[^\s<>()]+|\/(?:[^\s<>()/]+\/)*issues\/[A-Z][A-Z0-9]*-\d+(?=$|[\s<>)\],.;!?:])|\b[A-Z][A-Z0-9]*-\d+\b/gi;function In(e){if(!e)return null;const t=e.trim();if(!t||/^https?:\/\//i.test(t))return null;const n=t.split("/").filter(Boolean),r=n.findIndex(s=>s==="issues");if(r===-1||r===n.length-1)return null;const a=decodeURIComponent(n[r+1]??"");return!a||a.startsWith(":")?null:wn.test(a)?a.toUpperCase():a}o(In,"parseIssuePathIdFromPath");function Rn(e,t){if(!e)return null;const n=e.trim(),r=n.match(ss);if(r?.[1]){const i=decodeURIComponent(r[1]);return{issuePathId:i,href:`/issues/${encodeURIComponent(i)}`}}const a=In(e);if(a)return{issuePathId:a,href:`/issues/${encodeURIComponent(a)}`};if(!wn.test(n))return null;const s=n.toUpperCase();if(t&&t.size>0){const i=s.split("-")[0];if(!i||!t.has(i))return null}return{issuePathId:s,href:`/issues/${encodeURIComponent(s)}`}}o(Rn,"parseIssueReferenceFromHref");function us(e){let t=e,n="";for(;t.length>0;){const r=t.at(-1);if(!r||!/[),.;!?:\]]/.test(r))break;if(r===")"){const a=(t.match(/\(/g)??[]).length;if((t.match(/\)/g)??[]).length<=a)break}if(r==="]"){const a=(t.match(/\[/g)??[]).length;if((t.match(/\]/g)??[]).length<=a)break}n=`${r}${n}`,t=t.slice(0,-1)}return{core:t,trailing:n}}o(us,"splitTrailingPunctuation");function Sn(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}o(Sn,"createIssueLinkNode");function ls(e,t){const n=[];let r=0,a=!1;for(const s of e.matchAll(is)){const i=s[0];if(!i)continue;const l=s.index??0,c=l+i.length,{core:d,trailing:m}=us(i),f=Rn(d,t);f&&(a=!0,l>r&&n.push({type:"text",value:e.slice(r,l)}),n.push(Sn(d,f.href)),m&&n.push({type:"text",value:m}),r=c)}return a?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}o(ls,"linkifyIssueReferencesInText");function xn(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const a=Rn(r.value,t);if(a){n.push(Sn(r.value,a.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const a=ls(r.value,t);if(a){n.push(...a);continue}}xn(r,t),n.push(r)}e.children=n}o(xn,"rewriteMarkdownTree");function Ks(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{xn(n,t)}}o(Ks,"remarkLinkIssueReferences");function $e(e,t){if(typeof e=="string")return Et(e,t);if(e.pathname&&e.pathname.startsWith("/")){const n=Et(e.pathname,t);if(n!==e.pathname)return{...e,pathname:n}}return e}o($e,"resolveTo");function de(){const{selectedCompany:e}=$n(),t=uo(),n=_();if(t.companyPrefix)return se(t.companyPrefix);const r=vn(n.pathname);return r||(e?se(e.issuePrefix):null)}o(de,"useActiveCompanyPrefix");function Vs(){const e=de();return u.useCallback((...t)=>as(e,...t),[e])}o(Vs,"useCaseHref");var Ys=u.forwardRef(o(function({to:t,disableIssueQuicklook:n=!1,issuePrefetch:r=null,issueQuicklookSide:a,issueQuicklookAlign:s,...i},l){const c=$e(t,de()),d=In(typeof c=="string"?c:c.pathname);return d?(0,x.jsx)(ns,{ref:l,to:c,issuePathId:d,disableIssueQuicklook:n,issuePrefetch:r,issueQuicklookSide:a,issueQuicklookAlign:s,...i}):(0,x.jsx)(ce,{ref:l,to:c,...i})},"CompanyLink")),Gs=u.forwardRef(o(function({to:t,...n},r){const a=de();return(0,x.jsx)(Xt,{ref:r,to:$e(t,a),...n})},"CompanyNavLink"));function Xs({to:e,...t}){const n=de();return(0,x.jsx)(Eo,{to:$e(e,n),...t})}o(Xs,"Navigate");function Zs(){const e=xe(),t=de();return u.useCallback(((n,r)=>{if(typeof n=="number"){e(n);return}e($e(n,t),r)}),[e,t])}o(Zs,"useNavigate");export{ce as $,Fs as A,K as B,La as C,ba as D,Ws as E,Us as F,_s as G,As as H,Qs as I,Sa as J,Ts as K,Hs as L,Ns as M,Bs as N,qs as O,Ca as P,ks as Q,js as R,Oa as S,Ms as T,Ls as U,ht as V,Ra as W,sn as X,Ds as Y,pa as Z,Ga as _,Vs as a,xe as at,Ba as b,Ks as c,$s as ct,os as d,Ss as et,se as f,Ya as g,ts as h,de as i,_ as it,Ea as j,Os as k,Et as l,ns as m,Gs as n,xs as nt,Zs as o,Is as ot,Js as p,ya as q,Xs as r,Ps as rt,Rn as s,uo as st,Ys as t,bo as tt,vn as u,za as v,_a as w,ja as x,Rt as y,zs as z};
@@ -1 +0,0 @@
1
- import{t as a}from"./createLucideIcon-B54j0Sae.js";var e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],t=a("circle-alert",e),r=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],i=a("circle-question-mark",r),c=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],l=a("save",c);export{i as n,t as r,l as t};
@@ -1 +0,0 @@
1
- var d=Object.defineProperty;var s=(t,a)=>d(t,"name",{value:a,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as u,S as r,Zr as m,t as p}from"./createLucideIcon-B54j0Sae.js";import{a as x,c as f,d as g,f as h,h as v,i as S,l as b,m as j,n as w,o as y,p as _,r as z,s as N,t as $,u as k}from"./dist-CJ2IjArq.js";import{t as I}from"./check-CYgpX7OA.js";import{t as i}from"./chevron-down-BU9R1R4F.js";var C=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],B=p("chevron-up",C),M=n(u(),1),e=n(m(),1);function P({...t}){return(0,e.jsx)($,{"data-slot":"select",...t})}s(P,"Select");function Z({...t}){return(0,e.jsx)(z,{"data-slot":"select-group",...t})}s(Z,"SelectGroup");function A({...t}){return(0,e.jsx)(j,{"data-slot":"select-value",...t})}s(A,"SelectValue");function F({className:t,size:a="default",children:o,...l}){return(0,e.jsxs)(_,{"data-slot":"select-trigger","data-size":a,className:r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base md:text-sm whitespace-nowrap shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[o,(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(i,{className:"size-4 opacity-50"})})]})}s(F,"SelectTrigger");function H({className:t,children:a,position:o="item-aligned",align:l="center",...c}){return(0,e.jsx)(b,{children:(0,e.jsxs)(w,{"data-slot":"select-content",className:r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-(--sz-8rem) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,align:l,...c,children:[(0,e.jsx)(D,{}),(0,e.jsx)(v,{className:r("p-1",o==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:a}),(0,e.jsx)(L,{})]})})}s(H,"SelectContent");function J({className:t,...a}){return(0,e.jsx)(f,{"data-slot":"select-label",className:r("text-muted-foreground px-2 py-1.5 text-xs",t),...a})}s(J,"SelectLabel");function K({className:t,children:a,...o}){return(0,e.jsxs)(x,{"data-slot":"select-item",className:r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...o,children:[(0,e.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,e.jsx)(y,{children:(0,e.jsx)(I,{className:"size-4"})})}),(0,e.jsx)(N,{children:a})]})}s(K,"SelectItem");function O({className:t,...a}){return(0,e.jsx)(h,{"data-slot":"select-separator",className:r("bg-border pointer-events-none -mx-1 my-1 h-px",t),...a})}s(O,"SelectSeparator");function D({className:t,...a}){return(0,e.jsx)(g,{"data-slot":"select-scroll-up-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(B,{className:"size-4"})})}s(D,"SelectScrollUpButton");function L({className:t,...a}){return(0,e.jsx)(k,{"data-slot":"select-scroll-down-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(i,{className:"size-4"})})}s(L,"SelectScrollDownButton");export{J as a,A as c,K as i,B as l,H as n,O as o,Z as r,F as s,P as t};
@@ -1 +0,0 @@
1
- var k=Object.defineProperty;var o=(t,e)=>k(t,"name",{value:e,configurable:!0});import{i as v}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as R,S as i,Zr as T,c as O,m as A,s as z,t as x}from"./createLucideIcon-B54j0Sae.js";import{Q as $}from"./mention-chips-B6d93utO.js";import{A as h,C as f,D as j,E as _,O as y,S as b,T as S,k as C,w}from"./MarkdownEditor-BGjNjqa2.js";import{n as N}from"./button-C4DIaoFo.js";var c=v(R(),1),a=v(T(),1),M=Object.defineProperty,d=o((t,e)=>M(t,"name",{value:e,configurable:!0}),"__name"),[H,vt]=O("AlertDialog",[h]),g=h(),E=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(b,{...l,...r,modal:!0})},"AlertDialog"),F=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(C,{...n,...s,ref:r})},"AlertDialogTrigger2"),"AlertDialogTrigger")),L=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(j,{...l,...r})},"AlertDialogPortal"),q=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(_,{...n,...s,ref:r})},"AlertDialogOverlay2"),"AlertDialogOverlay")),[I,V]=H("AlertDialogContent"),Q=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,children:s,...n}=e,p=g(l),m=c.useRef(null),P=A(r,m),D=c.useRef(null);return(0,a.jsx)(I,{scope:l,cancelRef:D,children:(0,a.jsx)(w,{role:"alertdialog",...p,...n,ref:P,onOpenAutoFocus:z(n.onOpenAutoFocus,u=>{u.preventDefault(),D.current?.focus({preventScroll:!0})}),onPointerDownOutside:o(u=>u.preventDefault(),"onPointerDownOutside"),onInteractOutside:o(u=>u.preventDefault(),"onInteractOutside"),children:s})})},"AlertDialogContent2"),"AlertDialogContent")),X=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(y,{...n,...s,ref:r})},"AlertDialogTitle2"),"AlertDialogTitle")),Z=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(S,{...n,...s,ref:r})},"AlertDialogDescription2"),"AlertDialogDescription")),B=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(f,{...n,...s,ref:r})},"AlertDialogAction2"),"AlertDialogAction")),G="AlertDialogCancel",J=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,{cancelRef:n}=V(G,l),p=g(l),m=A(r,n);return(0,a.jsx)(f,{...p,...s,ref:m})},"AlertDialogCancel2"),"AlertDialogCancel")),K=E,U=F,W=L,Y=q,tt=Q,et=B,at=J,ot=X,rt=Z,lt=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],At=x("folder-search",lt),st=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ht=x("pencil",st),nt=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],jt=x("refresh-cw",nt);function _t({...t}){return(0,a.jsx)(K,{"data-slot":"alert-dialog",...t})}o(_t,"AlertDialog");function yt({...t}){return(0,a.jsx)(U,{"data-slot":"alert-dialog-trigger",...t})}o(yt,"AlertDialogTrigger");function it({...t}){return(0,a.jsx)(W,{"data-slot":"alert-dialog-portal",...t})}o(it,"AlertDialogPortal");function ct({className:t,...e}){return(0,a.jsx)(Y,{"data-slot":"alert-dialog-overlay",className:i("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 duration-100",t),...e})}o(ct,"AlertDialogOverlay");function bt({className:t,...e}){return(0,a.jsxs)(it,{children:[(0,a.jsx)(ct,{}),(0,a.jsx)(tt,{"data-slot":"alert-dialog-content",className:i("bg-background 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-[0.97] data-[state=open]:zoom-in-[0.97] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0",t),...e})]})}o(bt,"AlertDialogContent");function St({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:i("flex flex-col gap-2 text-center sm:text-left",t),...e})}o(St,"AlertDialogHeader");function Ct({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:i("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}o(Ct,"AlertDialogFooter");function wt({className:t,...e}){return(0,a.jsx)(ot,{"data-slot":"alert-dialog-title",className:i("text-lg leading-none font-semibold",t),...e})}o(wt,"AlertDialogTitle");function Nt({className:t,...e}){return(0,a.jsx)(rt,{"data-slot":"alert-dialog-description",className:i("text-muted-foreground text-sm",t),...e})}o(Nt,"AlertDialogDescription");function Pt({className:t,...e}){return(0,a.jsx)(et,{"data-slot":"alert-dialog-action",className:i(N(),t),...e})}o(Pt,"AlertDialogAction");function kt({className:t,...e}){return(0,a.jsx)(at,{"data-slot":"alert-dialog-cancel",className:i(N({variant:"outline"}),t),...e})}o(kt,"AlertDialogCancel");function Rt({...t}){return(0,a.jsx)(b,{"data-slot":"sheet",...t})}o(Rt,"Sheet");function Tt({...t}){return(0,a.jsx)(C,{"data-slot":"sheet-trigger",...t})}o(Tt,"SheetTrigger");function Ot({...t}){return(0,a.jsx)(f,{"data-slot":"sheet-close",...t})}o(Ot,"SheetClose");function dt({...t}){return(0,a.jsx)(j,{"data-slot":"sheet-portal",...t})}o(dt,"SheetPortal");function gt({className:t,...e}){return(0,a.jsx)(_,{"data-slot":"sheet-overlay",className:i("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})}o(gt,"SheetOverlay");function zt({className:t,children:e,side:r="right",showCloseButton:l=!0,...s}){return(0,a.jsxs)(dt,{children:[(0,a.jsx)(gt,{}),(0,a.jsxs)(w,{"data-slot":"sheet-content",className:i("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",r==="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",r==="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",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[e,l&&(0,a.jsxs)(f,{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:[(0,a.jsx)($,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}o(zt,"SheetContent");function $t({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:i("flex flex-col gap-1.5 p-4",t),...e})}o($t,"SheetHeader");function Mt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-footer",className:i("mt-auto flex flex-col gap-2 p-4",t),...e})}o(Mt,"SheetFooter");function Ht({className:t,...e}){return(0,a.jsx)(y,{"data-slot":"sheet-title",className:i("text-foreground font-semibold",t),...e})}o(Ht,"SheetTitle");function Et({className:t,...e}){return(0,a.jsx)(S,{"data-slot":"sheet-description",className:i("text-muted-foreground text-sm",t),...e})}o(Et,"SheetDescription");export{yt as _,Mt as a,At as b,Tt as c,kt as d,bt as f,wt as g,St as h,Et as i,_t as l,Ct as m,Ot as n,$t as o,Nt as p,zt as r,Ht as s,Rt as t,Pt as u,jt as v,ht as y};
@@ -1 +0,0 @@
1
- var o=Object.defineProperty;var e=(r,t)=>o(r,"name",{value:t,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{S as a,Zr as n}from"./createLucideIcon-B54j0Sae.js";var i=s(n(),1);function c({className:r,...t}){return(0,i.jsx)("div",{"data-slot":"skeleton",className:a("bg-accent/75 rounded-md",r),...t})}e(c,"Skeleton");export{c as t};
@@ -1 +0,0 @@
1
- import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import"./src-Bssc388C.js";import"./chunk-DU6HZSFF-2P5iNHqg.js";import"./chunk-75Z2AOVW-BaPl5WA6.js";import"./chunk-PWAF6VOD-CR3rNBNB.js";import"./chunk-GMAD6QVW-BfvaaEBW.js";import"./chunk-P2QGCYS3-CjqEi3mx.js";import"./chunk-4HAMMTFA-CGGd_Pxz.js";import"./chunk-GVQU2GXP-Cwp_Wpj2.js";import"./chunk-OSK3NFVY-DlrxddG-.js";import"./chunk-F27PBJKO-Ci7GmRgM.js";import"./chunk-XXDRQBXY-BhrH-9FX.js";import"./chunk-POPQ4Y6H-BytmIqFc.js";import"./chunk-L3NEJ4N5-JUd1UqX1.js";import{i as e,n as i,r as a,t as o}from"./chunk-IMKFNOWR-BjXu-u1C.js";import"./mermaid.core-G_BSi0G0.js";var D={parser:i,get db(){return new o(2)},renderer:a,styles:e,init:r(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{D as diagram};
@@ -1,8 +0,0 @@
1
- import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import"./src-Bssc388C.js";import"./chunk-DU6HZSFF-2P5iNHqg.js";import"./chunk-75Z2AOVW-BaPl5WA6.js";import"./chunk-PWAF6VOD-CR3rNBNB.js";import"./chunk-GMAD6QVW-BfvaaEBW.js";import"./chunk-P2QGCYS3-CjqEi3mx.js";import"./chunk-4HAMMTFA-CGGd_Pxz.js";import"./chunk-GVQU2GXP-Cwp_Wpj2.js";import"./chunk-OSK3NFVY-DlrxddG-.js";import"./chunk-F27PBJKO-Ci7GmRgM.js";import"./chunk-XXDRQBXY-BhrH-9FX.js";import"./chunk-POPQ4Y6H-BytmIqFc.js";import"./chunk-L3NEJ4N5-JUd1UqX1.js";import{r as o,t as m}from"./chunk-SHT3W25Y-B1Klag0Z.js";import"./mermaid.core-G_BSi0G0.js";var $=m({defaultLayout:"swimlane",styles:r(t=>`${o(t)}
2
- .swimlane.cluster rect {
3
- stroke: ${t.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,"getStyles")});export{$ as diagram};
@@ -1 +0,0 @@
1
- import{t as a}from"./createLucideIcon-B54j0Sae.js";var e=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],r=a("triangle-alert",e);export{r as t};
@@ -1 +0,0 @@
1
- var m=Object.defineProperty;var r=(e,s)=>m(e,"name",{value:s,configurable:!0});import{i as p}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as y,S as _,Y as g,Zr as k,fr as l,t as n,vr as A}from"./createLucideIcon-B54j0Sae.js";import{r as S}from"./save-C2ttL8uR.js";import{c as w}from"./button-C4DIaoFo.js";import{t as x}from"./triangle-alert-BhrZ1ChK.js";var v=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],J=n("arrow-left",v),M=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],L=n("info",M),a=p(k(),1),h={info:L,warning:x,danger:S};function R({tone:e="info",title:s,children:t,icon:o,actions:i,compact:d=!1,className:f}){const u=o===!1?null:o??h[e];return(0,a.jsxs)("div",{role:"note",className:_("flex flex-col gap-2 rounded-lg border sm:flex-row sm:items-start sm:justify-between",d?"p-3":"p-4",w[e],f),children:[(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u&&(0,a.jsx)(u,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"space-y-1 text-sm",children:[s&&(0,a.jsx)("p",{className:"font-medium leading-tight",children:s}),t&&(0,a.jsx)("div",{className:"leading-snug opacity-90",children:t})]})]}),i&&(0,a.jsx)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 pl-6 sm:pl-0",children:i})]})}r(R,"InlineBanner");var q=p(y(),1),I={list:r(()=>l.get("/adapters"),"list"),install:r(e=>l.post("/adapters/install",e),"install"),remove:r(e=>l.delete(`/adapters/${e}`),"remove"),setDisabled:r((e,s)=>l.patch(`/adapters/${e}`,{disabled:s}),"setDisabled"),setOverridePaused:r((e,s)=>l.patch(`/adapters/${e}/override`,{paused:s}),"setOverridePaused"),reload:r(e=>l.post(`/adapters/${e}/reload`,{}),"reload"),reinstall:r(e=>l.post(`/adapters/${e}/reinstall`,{}),"reinstall")},c={supportsInstructionsBundle:!1,supportsSkills:!1,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},B={claude_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"submitted_browser_code",timeoutPolicy:"fixed"}},codex_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},paperclip_runner:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},cursor:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},gemini_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},grok_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},kimi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},opencode_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},pi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"enforced"},omp_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1,readOnlyToolProfile:"enforced",supportsLiveSteering:!0},openclaw_gateway:c};function j(){const{data:e}=A({queryKey:g.adapters.all,queryFn:r(()=>I.list(),"queryFn"),staleTime:3e5}),s=(0,q.useMemo)(()=>{const t=new Map;if(e)for(const o of e)t.set(o.type,o.capabilities);return t},[e]);return t=>s.get(t)??B[t]??c}r(j,"useAdapterCapabilities");export{J as a,L as i,I as n,R as r,j as t};
@@ -1 +0,0 @@
1
- var r=Object.defineProperty;var t=(e,a)=>r(e,"name",{value:a,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as i,Y as n,t as o,vr as d}from"./createLucideIcon-B54j0Sae.js";import{t as u}from"./health-Cu3NB6y9.js";var h=[["path",{d:"M5 12h14",key:"1ays0h"}]],f=o("minus",h),m=s(i(),1);function l(){const e=d({queryKey:n.health,queryFn:t(()=>u.get(),"queryFn"),enabled:!1}).data;return(0,m.useMemo)(()=>({hidden:new Set(e?.hiddenSettings??[]),loaded:e!==void 0}),[e])}t(l,"useHiddenSettings");export{f as n,l as t};
@@ -1,41 +0,0 @@
1
- var qn=Object.defineProperty;var i=(e,t)=>qn(e,"name",{value:t,configurable:!0});import{i as ut}from"./rolldown-runtime-ZpX3ckPj.js";import{$r as Un,Qr as Xn,Zr as Yn,a as Kn,c as qt,f as Gn,i as Ut,l as ce,m as me,n as ve,o as we,r as Zn,s as ae,t as A,u as Qn}from"./createLucideIcon-B54j0Sae.js";var f=ut(Un(),1),R=ut(Yn(),1),Jn=Object.defineProperty,I=i((e,t)=>Jn(e,"name",{value:t,configurable:!0}),"__name$7"),nt="dismissableLayer.update",er="dismissableLayer.pointerDownOutside",tr="dismissableLayer.focusOutside",At,Xt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),nr=f.forwardRef(I(i(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:h,...v}=t,u=f.useContext(Xt),[d,m]=f.useState(null),g=d?.ownerDocument??globalThis?.document,[,p]=f.useState({}),y=me(n,m),w=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=P?w.indexOf(P):-1,x=d?w.indexOf(d):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,C=f.useRef(!1),M=Yt(S=>{s?.(S),l?.(S),S.defaultPrevented||h?.()},{ownerDocument:g,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(S=>{if(!(S instanceof Node))return!1;const N=[...u.branches].some(L=>L.contains(S));return E&&!N},[u.branches,E])}),D=Kt(S=>{if(o&&C.current)return;const N=S.target;[...u.branches].some(L=>L.contains(N))||(c?.(S),l?.(S),S.defaultPrevented||h?.())},g),_=d?x===w.length-1:!1,$=ve(S=>{S.key==="Escape"&&(a?.(S),!S.defaultPrevented&&h&&(S.preventDefault(),h()))});return f.useEffect(()=>{if(_)return g.addEventListener("keydown",$,{capture:!0}),()=>g.removeEventListener("keydown",$,{capture:!0})},[g,_,$]),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(At=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),rt(),()=>{r&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=At))}},[d,g,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),rt())},[d,u]),f.useEffect(()=>{const S=I(()=>p({}),"handleUpdate");return document.addEventListener(nt,S),()=>document.removeEventListener(nt,S)},[]),(0,R.jsx)(ce.div,{...v,ref:y,style:{pointerEvents:k?E?"auto":"none":void 0,...t.style},onFocusCapture:ae(t.onFocusCapture,D.onFocusCapture),onBlurCapture:ae(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:ae(t.onPointerDownCapture,M.onPointerDownCapture)})},"DismissableLayer2"),"DismissableLayer"));function rr(){const e=f.useContext(Xt),[t,n]=f.useState(null);return f.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}i(rr,"useDismissableLayerSurface");I(rr,"useDismissableLayerSurface");var or=I(()=>!0,"IS_TRUE");function Yt(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=or}=t,c=ve(e),l=f.useRef(!1),h=f.useRef(!1),v=f.useRef(new Map),u=f.useRef(()=>{});return f.useEffect(()=>{function d(){h.current=!1,o.current=!1,v.current.clear()}i(d,"resetOutsideInteraction"),I(d,"resetOutsideInteraction");function m(){return Array.from(v.current.values()).some(Boolean)}i(m,"isOutsideInteractionIntercepted"),I(m,"isOutsideInteractionIntercepted");function g(b){if(!h.current)return;const x=b.target;x instanceof Node&&[...a].some(k=>k.contains(x))||v.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{h.current&&u.current()},0)}i(g,"handleInteractionCapture"),I(g,"handleInteractionCapture");function p(b){h.current&&v.current.set(b.type,!1)}i(p,"handleInteractionBubble"),I(p,"handleInteractionBubble");const y=I(b=>{if(b.target&&!l.current){let x=i(function(){n.removeEventListener("click",u.current);const E=m();d(),E||ft(er,c,k,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");if(I(x,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",u.current),d(),l.current=!1;return}const k={originalEvent:b};h.current=!0,o.current=r&&b.button===0,v.current.clear(),!r||b.button!==0?x():(n.removeEventListener("click",u.current),u.current=x,n.addEventListener("click",u.current,{once:!0}))}else n.removeEventListener("click",u.current),d();l.current=!1},"handlePointerDown"),w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of w)n.addEventListener(b,g,!0),n.addEventListener(b,p);const P=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(P),n.removeEventListener("pointerdown",y),n.removeEventListener("click",u.current);for(const b of w)n.removeEventListener(b,g,!0),n.removeEventListener(b,p)}},[n,c,r,o,a,s]),{onPointerDownCapture:I(()=>l.current=!0,"onPointerDownCapture")}}i(Yt,"usePointerDownOutside");I(Yt,"usePointerDownOutside");function Kt(e,t=globalThis?.document){const n=ve(e),r=f.useRef(!1);return f.useEffect(()=>{const o=I(a=>{a.target&&!r.current&&ft(tr,n,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:I(()=>r.current=!0,"onFocusCapture"),onBlurCapture:I(()=>r.current=!1,"onBlurCapture")}}i(Kt,"useFocusOutside");I(Kt,"useFocusOutside");function rt(){const e=new CustomEvent(nt);document.dispatchEvent(e)}i(rt,"dispatchUpdate");I(rt,"dispatchUpdate");function ft(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qn(o,a):o.dispatchEvent(a)}i(ft,"handleAndDispatchCustomEvent");I(ft,"handleAndDispatchCustomEvent");var ar=Object.defineProperty,z=i((e,t)=>ar(e,"name",{value:t,configurable:!0}),"__name$6"),Xe="focusScope.autoFocusOnMount",Ye="focusScope.autoFocusOnUnmount",St={bubbles:!1,cancelable:!0},ir=f.forwardRef(z(i(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...c}=t,[l,h]=f.useState(null),v=ve(a),u=ve(s),d=f.useRef(null),m=me(n,h),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let y=i(function(x){if(g.paused||!l)return;const k=x.target;l.contains(k)?d.current=k:K(d.current,{select:!0})},"handleFocusIn2"),w=i(function(x){if(g.paused||!l)return;const k=x.relatedTarget;k!==null&&(l.contains(k)||K(d.current,{select:!0}))},"handleFocusOut2"),P=i(function(x){if(document.activeElement===document.body)for(const k of x)k.removedNodes.length>0&&K(l)},"handleMutations2");z(y,"handleFocusIn"),z(w,"handleFocusOut"),z(P,"handleMutations"),document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(P);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[o,l,g.paused]),f.useEffect(()=>{if(l){Rt.add(g);const y=document.activeElement;if(!l.contains(y)){const w=new CustomEvent(Xe,St);l.addEventListener(Xe,v),l.dispatchEvent(w),w.defaultPrevented||(Gt(tn(dt(l)),{select:!0}),document.activeElement===y&&K(l))}return()=>{l.removeEventListener(Xe,v),setTimeout(()=>{const w=new CustomEvent(Ye,St);l.addEventListener(Ye,u),l.dispatchEvent(w),w.defaultPrevented||K(y??document.body,{select:!0}),l.removeEventListener(Ye,u),Rt.remove(g)},0)}}},[l,v,u,g]);const p=f.useCallback(y=>{if(!r&&!o||g.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,P=document.activeElement;if(w&&P){const b=y.currentTarget,[x,k]=Zt(b);x&&k?!y.shiftKey&&P===k?(y.preventDefault(),r&&K(x,{select:!0})):y.shiftKey&&P===x&&(y.preventDefault(),r&&K(k,{select:!0})):P===b&&y.preventDefault()}},[r,o,g.paused]);return(0,R.jsx)(ce.div,{tabIndex:-1,...c,ref:m,onKeyDown:p})},"FocusScope2"),"FocusScope"));function Gt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(K(r,{select:t}),document.activeElement!==n)return}i(Gt,"focusFirst");z(Gt,"focusFirst");function Zt(e){const t=dt(e);return[ot(t,e),ot(t.reverse(),e)]}i(Zt,"getTabbableEdges");z(Zt,"getTabbableEdges");function dt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}i(dt,"getTabbableCandidates");z(dt,"getTabbableCandidates");function ot(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Qt(r,{upTo:t})))return r}i(ot,"findVisible");z(ot,"findVisible");function Qt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}i(Qt,"isHidden");z(Qt,"isHidden");function Jt(e){return e instanceof HTMLInputElement&&"select"in e}i(Jt,"isSelectableInput");z(Jt,"isSelectableInput");function K(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Jt(e)&&t&&e.select()}}i(K,"focus");z(K,"focus");var Rt=en();function en(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=at(e,t),e.unshift(t)},remove(t){e=at(e,t),e[0]?.resume()}}}i(en,"createFocusScopesStack");z(en,"createFocusScopesStack");function at(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}i(at,"arrayRemove");z(at,"arrayRemove");function tn(e){return e.filter(t=>t.tagName!=="A")}i(tn,"removeLinks");z(tn,"removeLinks");var nn=ut(Xn(),1),sr=Object.defineProperty,cr=i((e,t)=>sr(e,"name",{value:t,configurable:!0}),"__name$5"),lr=f.forwardRef(cr(i(function(t,n){const{container:r,...o}=t,[a,s]=f.useState(!1);we(()=>s(!0),[]);const c=r||a&&globalThis?.document?.body;return c?nn.createPortal((0,R.jsx)(ce.div,{...o,ref:n}),c):null},"Portal2"),"Portal")),ur=Object.defineProperty,ht=i((e,t)=>ur(e,"name",{value:t,configurable:!0}),"__name$4"),Ae=0,ue=null;function fr(e){return pt(),e.children}i(fr,"FocusGuards");ht(fr,"FocusGuards");function pt(){f.useEffect(()=>{ue||(ue={start:it(),end:it()});const{start:e,end:t}=ue;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ae++,()=>{Ae===1&&(ue?.start.remove(),ue?.end.remove(),ue=null),Ae=Math.max(0,Ae-1)}},[])}i(pt,"useFocusGuards");ht(pt,"useFocusGuards");function it(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i(it,"createFocusGuard");ht(it,"createFocusGuard");var V=i(function(){return V=Object.assign||i(function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},"__assign"),V.apply(this,arguments)},"__assign");function rn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}i(rn,"__rest");function dr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}i(dr,"__spreadArray");var Le="right-scroll-bar-position",De="width-before-scroll-bar",hr="with-scroll-bars-hidden",pr="--removed-body-scroll-bar-size";function Ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}i(Ke,"assignRef");function vr(e,t){var n=(0,f.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}i(vr,"useCallbackRef");var mr=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ot=new WeakMap;function gr(e,t){var n=vr(t||null,function(r){return e.forEach(function(o){return Ke(o,r)})});return mr(function(){var r=Ot.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||Ke(c,null)}),a.forEach(function(c){o.has(c)||Ke(c,s)})}Ot.set(n,e)},[e]),n}i(gr,"useMergeRefs");function yr(e){return e}i(yr,"ItoI");function wr(e,t){t===void 0&&(t=yr);var n=[],r=!1;return{read:i(function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},"read"),useMedium:i(function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},"useMedium"),assignSyncMedium:i(function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:i(function(s){return o(s)},"push"),filter:i(function(){return n},"filter")}},"assignSyncMedium"),assignMedium:i(function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var c=i(function(){var h=a;a=[],h.forEach(o)},"executeQueue"),l=i(function(){return Promise.resolve().then(c)},"cycle");l(),n={push:i(function(h){a.push(h),l()},"push"),filter:i(function(h){return a=a.filter(h),n},"filter")}},"assignMedium")}}i(wr,"innerCreateMedium");function br(e){e===void 0&&(e={});var t=wr(null);return t.options=V({async:!0,ssr:!1},e),t}i(br,"createSidecarMedium");var on=i(function(e){var t=e.sideCar,n=rn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,V({},n))},"SideCar");on.isSideCarExport=!0;function xr(e,t){return e.useMedium(t),on}i(xr,"exportSidecar");var an=br(),Ge=i(function(){},"nothing"),je=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Ge,onWheelCapture:Ge,onTouchMoveCapture:Ge}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,h=e.removeScrollBar,v=e.enabled,u=e.shards,d=e.sideCar,m=e.noRelative,g=e.noIsolation,p=e.inert,y=e.allowPinchZoom,w=e.as,P=w===void 0?"div":w,b=e.gapMode,x=rn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=d,E=gr([n,t]),C=V(V({},x),o);return f.createElement(f.Fragment,null,v&&f.createElement(k,{sideCar:an,removeScrollBar:h,shards:u,noRelative:m,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:b}),s?f.cloneElement(f.Children.only(c),V(V({},C),{ref:E})):f.createElement(P,V({},C,{className:l,ref:E}),c))});je.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};je.classNames={fullWidth:De,zeroRight:Le};var Mt,Pr=i(function(){if(Mt)return Mt;if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function kr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pr();return t&&e.setAttribute("nonce",t),e}i(kr,"makeStyleTag");function Er(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}i(Er,"injectStyles");function Cr(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}i(Cr,"insertStyleTag");var Ar=i(function(){var e=0,t=null;return{add:i(function(n){e==0&&(t=kr())&&(Er(t,n),Cr(t)),e++},"add"),remove:i(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),Sr=i(function(){var e=Ar();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},"styleHookSingleton"),sn=i(function(){var e=Sr(),t=i(function(n){var r=n.styles,o=n.dynamic;return e(r,o),null},"Sheet");return t},"styleSingleton"),Rr={left:0,top:0,right:0,gap:0},Ze=i(function(e){return parseInt(e||"",10)||0},"parse"),Or=i(function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ze(n),Ze(r),Ze(o)]},"getOffset"),Mr=i(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Rr;var t=Or(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},"getGapWidth"),_r=sn(),be="data-scroll-locked",Lr=i(function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(hr,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(c,"px ").concat(r,`;
5
- }
6
- body[`).concat(be,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(a,`px;
12
- padding-right: `).concat(s,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(c,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Le,` {
20
- right: `).concat(c,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(De,` {
24
- margin-right: `).concat(c,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(Le," .").concat(Le,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(De," .").concat(De,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(be,`] {
36
- `).concat(pr,": ").concat(c,`px;
37
- }
38
- `)},"getStyles"),_t=i(function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),Dr=i(function(){f.useEffect(function(){return document.body.setAttribute(be,(_t()+1).toString()),function(){var e=_t()-1;e<=0?document.body.removeAttribute(be):document.body.setAttribute(be,e.toString())}},[])},"useLockAttribute"),Nr=i(function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Dr();var a=f.useMemo(function(){return Mr(o)},[o]);return f.createElement(_r,{styles:Lr(a,!t,o,n?"":"!important")})},"RemoveScrollBar"),st=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:i(function(){return st=!0,!0},"get")});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{st=!1}var fe=st?{passive:!1}:!1,Tr=i(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),cn=i(function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tr(e)&&n[t]==="visible")},"elementCanBeScrolled"),Fr=i(function(e){return cn(e,"overflowY")},"elementCouldBeVScrolled"),$r=i(function(e){return cn(e,"overflowX")},"elementCouldBeHScrolled"),Lt=i(function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),ln(e,r)){var o=un(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},"locationCouldBeScrolled"),Ir=i(function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},"getVScrollVariables"),jr=i(function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},"getHScrollVariables"),ln=i(function(e,t){return e==="v"?Fr(t):$r(t)},"elementCouldBeScrolled"),un=i(function(e,t){return e==="v"?Ir(t):jr(t)},"getScrollVariables"),zr=i(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),Wr=i(function(e,t,n,r,o){var a=zr(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),h=!1,v=s>0,u=0,d=0;do{if(!c)break;var m=un(e,c),g=m[0],p=m[1]-m[2]-a*g;(g||p)&&ln(e,c)&&(u+=p,d+=g);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(v&&(o&&Math.abs(u)<1||!o&&s>u)||!v&&(o&&Math.abs(d)<1||!o&&-s>d))&&(h=!0),h},"handleScroll"),Re=i(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),Dt=i(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),Nt=i(function(e){return e&&"current"in e?e.current:e},"extractRef"),Br=i(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),Hr=i(function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},"generateStyle"),Vr=0,de=[];function qr(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Vr++)[0],a=f.useState(sn)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=dr([e.lockRef.current],(e.shards||[]).map(Nt),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var w=Re(p),P=n.current,b="deltaX"in p?p.deltaX:P[0]-w[0],x="deltaY"in p?p.deltaY:P[1]-w[1],k,E=p.target,C=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in p&&C==="h"&&E.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode;if(D&&(D===E||D.contains(E)))return!1;var _=Lt(C,E);if(!_)return!0;if(_?k=C:(k=C==="v"?"h":"v",_=Lt(C,E)),!_)return!1;if(!r.current&&"changedTouches"in p&&(b||x)&&(r.current=k),!k)return!0;var $=r.current||k;return Wr($,y,p,$==="h"?b:x,!0)},[]),l=f.useCallback(function(p){var y=p;if(!(!de.length||de[de.length-1]!==a)){var w="deltaY"in y?Dt(y):Re(y),P=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Br(x.delta,w)})[0];if(P&&P.should){y.cancelable&&y.preventDefault();return}if(!P){var b=(s.current.shards||[]).map(Nt).filter(Boolean).filter(function(x){return x.contains(y.target)});(b.length>0?c(y,b[0]):!s.current.noIsolation)&&y.cancelable&&y.preventDefault()}}},[]),h=f.useCallback(function(p,y,w,P){var b={name:p,delta:y,target:w,should:P,shadowParent:Ur(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),v=f.useCallback(function(p){n.current=Re(p),r.current=void 0},[]),u=f.useCallback(function(p){h(p.type,Dt(p),p.target,c(p,e.lockRef.current))},[]),d=f.useCallback(function(p){h(p.type,Re(p),p.target,c(p,e.lockRef.current))},[]);f.useEffect(function(){return de.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,fe),document.addEventListener("touchmove",l,fe),document.addEventListener("touchstart",v,fe),function(){de=de.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,fe),document.removeEventListener("touchmove",l,fe),document.removeEventListener("touchstart",v,fe)}},[]);var m=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(a,{styles:Hr(o)}):null,m?f.createElement(Nr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}i(qr,"RemoveScrollSideCar");function Ur(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}i(Ur,"getOutermostShadowParent");var Xr=xr(an,qr),fn=f.forwardRef(function(e,t){return f.createElement(je,V({},e,{ref:t,sideCar:Xr}))});fn.classNames=je.classNames;var Yr=i(function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},"getDefaultParent"),he=new WeakMap,Oe=new WeakMap,Me={},Qe=0,dn=i(function(e){return e&&(e.host||dn(e.parentNode))},"unwrapHost"),Kr=i(function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dn(n);return r&&e.contains(r)?r:null}).filter(function(n){return!!n})},"correctTargets"),Gr=i(function(e,t,n,r){var o=Kr(t,Array.isArray(e)?e:[e]);Me[n]||(Me[n]=new WeakMap);var a=Me[n],s=[],c=new Set,l=new Set(o),h=i(function(u){!u||c.has(u)||(c.add(u),h(u.parentNode))},"keep");o.forEach(h);var v=i(function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(c.has(d))v(d);else try{var m=d.getAttribute(r),g=m!==null&&m!=="false",p=(he.get(d)||0)+1,y=(a.get(d)||0)+1;he.set(d,p),a.set(d,y),s.push(d),p===1&&g&&Oe.set(d,!0),y===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch{}})},"deep");return v(t),c.clear(),Qe++,function(){s.forEach(function(u){var d=he.get(u)-1,m=a.get(u)-1;he.set(u,d),a.set(u,m),d||(Oe.has(u)||u.removeAttribute(r),Oe.delete(u)),m||u.removeAttribute(n)}),Qe--,Qe||(he=new WeakMap,he=new WeakMap,Oe=new WeakMap,Me={})}},"applyAttributeToOthers"),Zr=i(function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Yr(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gr(r,o,n,"aria-hidden")):function(){return null}},"hideOthers"),Qr=Object.defineProperty,Jr=i((e,t)=>Qr(e,"name",{value:t,configurable:!0}),"__name$3");function hn(e){const[t,n]=f.useState(void 0);return we(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,h=Array.isArray(l)?l[0]:l;s=h.inlineSize,c=h.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}i(hn,"useSize");Jr(hn,"useSize");var eo=["top","right","bottom","left"],te=Math.min,G=Math.max,Te=Math.round,_e=Math.floor,Z=i(e=>({x:e,y:e}),"createCoords"),to={left:"right",right:"left",bottom:"top",top:"bottom"};function pn(e,t,n){return G(e,te(t,n))}i(pn,"clamp");function J(e,t){return typeof e=="function"?e(t):e}i(J,"evaluate");function ne(e){return e.split("-")[0]}i(ne,"getSide");function ge(e){return e.split("-")[1]}i(ge,"getAlignment");function vt(e){return e==="x"?"y":"x"}i(vt,"getOppositeAxis");function mt(e){return e==="y"?"height":"width"}i(mt,"getAxisLength");function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}i(q,"getSideAxis");function gt(e){return vt(q(e))}i(gt,"getAlignmentAxis");function no(e,t,n){n===void 0&&(n=!1);const r=ge(e),o=gt(e),a=mt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Fe(s)),[s,Fe(s)]}i(no,"getAlignmentSides");function ro(e){const t=Fe(e);return[ct(e),t,ct(t)]}i(ro,"getExpandedPlacements");function ct(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}i(ct,"getOppositeAlignmentPlacement");var Tt=["left","right"],Ft=["right","left"],oo=["top","bottom"],ao=["bottom","top"];function io(e,t,n){switch(e){case"top":case"bottom":return n?t?Ft:Tt:t?Tt:Ft;case"left":case"right":return t?oo:ao;default:return[]}}i(io,"getSideList");function so(e,t,n,r){const o=ge(e);let a=io(ne(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ct)))),a}i(so,"getOppositeAxisPlacements");function Fe(e){const t=ne(e);return to[t]+e.slice(t.length)}i(Fe,"getOppositePlacement");function co(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}i(co,"expandPaddingObject");function vn(e){return typeof e!="number"?co(e):{top:e,right:e,bottom:e,left:e}}i(vn,"getPaddingObject");function $e(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}i($e,"rectToClientRect");function $t(e,t,n){let{reference:r,floating:o}=e;const a=q(t),s=gt(t),c=mt(s),l=ne(t),h=a==="y",v=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let m;switch(l){case"top":m={x:v,y:r.y-o.height};break;case"bottom":m={x:v,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}const g=ge(t);return g&&(m[s]+=d*(g==="end"?1:-1)*(n&&h?-1:1)),m}i($t,"computeCoordsFromPlacement");async function lo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:u="floating",altBoundary:d=!1,padding:m=0}=J(t,e),g=vn(m),p=c[d?u==="floating"?"reference":"floating":u],y=$e(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(p)))==null||n?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:v,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),b=await(a.isElement==null?void 0:a.isElement(P))&&await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1},x=$e(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:P,strategy:l}):w);return{top:(y.top-x.top+g.top)/b.y,bottom:(x.bottom-y.bottom+g.bottom)/b.y,left:(y.left-x.left+g.left)/b.x,right:(x.right-y.right+g.right)/b.x}}i(lo,"detectOverflow");var uo=50,fo=i(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:lo},l=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:u}=$t(h,r,l),d=r,m=0;const g={};for(let p=0;p<a.length;p++){const y=a[p];if(!y)continue;const{name:w,fn:P}=y,{x:b,y:x,data:k,reset:E}=await P({x:v,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:h,platform:c,elements:{reference:e,floating:t}});v=b??v,u=x??u,g[w]={...g[w],...k},E&&m<uo&&(m++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(h=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:v,y:u}=$t(h,d,l)),p=-1)}return{x:v,y:u,placement:d,strategy:o,middlewareData:g}},"computePosition$1"),ho=i(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:h,padding:v=0}=J(e,t)||{};if(h==null)return{};const u=vn(v),d={x:n,y:r},m=gt(o),g=mt(m),p=await s.getDimensions(h),y=m==="y",w=y?"top":"left",P=y?"bottom":"right",b=y?"clientHeight":"clientWidth",x=a.reference[g]+a.reference[m]-d[m]-a.floating[g],k=d[m]-a.reference[m],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let C=E?E[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=c.floating[b]||a.floating[g]);const M=x/2-k/2,D=C/2-p[g]/2-1,_=te(u[w],D),$=te(u[P],D),S=C-p[g]-$,N=C/2-p[g]/2+M,L=pn(_,N,S),B=!l.arrow&&ge(o)!=null&&N!==L&&a.reference[g]/2-(N<_?_:$)-p[g]/2<0,T=B?N<_?N-_:N-S:0;return{[m]:d[m]+T,data:{[m]:L,centerOffset:N-L-T,...B&&{alignmentOffset:T}},reset:B}}}),"arrow$3"),po=i(function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:h}=t,{mainAxis:v=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...y}=J(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=ne(o),P=q(c),b=ne(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(h.floating)),k=d||(b||!p?[Fe(c)]:ro(c)),E=g!=="none";!d&&E&&k.push(...so(c,p,g,x));const C=[c,...k],M=await l.detectOverflow(t,y),D=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(v&&D.push(M[w]),u){const L=no(o,s,x);D.push(M[L[0]],M[L[1]])}if(_=[..._,{placement:o,overflows:D}],!D.every(L=>L<=0)){var $,S;const L=((($=a.flip)==null?void 0:$.index)||0)+1,B=C[L];if(B&&(!(u==="alignment"&&P!==q(B))||_.every(j=>q(j.placement)===P?j.overflows[0]>0:!0)))return{data:{index:L,overflows:_},reset:{placement:B}};let T=(S=_.filter(j=>j.overflows[0]<=0).sort((j,O)=>j.overflows[1]-O.overflows[1])[0])==null?void 0:S.placement;if(!T)switch(m){case"bestFit":{var N;const j=(N=_.filter(O=>{if(E){const F=q(O.placement);return F===P||F==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(F=>F>0).reduce((F,H)=>F+H,0)]).sort((O,F)=>O[1]-F[1])[0])==null?void 0:N[0];j&&(T=j);break}case"initialPlacement":T=c}if(o!==T)return{reset:{placement:T}}}return{}}}},"flip$2");function It(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}i(It,"getSideOffsets");function jt(e){return eo.some(t=>e[t]>=0)}i(jt,"isAnySideFullyClipped");var vo=i(function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=J(e,t);switch(o){case"referenceHidden":{const s=It(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const s=It(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}},"hide$2"),mn=new Set(["left","top"]);async function mo(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ne(n),c=ge(n),l=q(n)==="y",h=mn.has(s)?-1:1,v=a&&l?-1:1,u=J(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(m=c==="end"?g*-1:g),l?{x:m*v,y:d*h}:{x:d*h,y:m*v}}i(mo,"convertValueToCoords");var go=i(function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await mo(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},"offset$2"),yo=i(function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:i(P=>{let{x:b,y:x}=P;return{x:b,y:x}},"fn")},...h}=J(e,t),v={x:n,y:r},u=await a.detectOverflow(t,h),d=q(o),m=vt(d);let g=v[m],p=v[d];const y=i((P,b)=>pn(b+u[P==="y"?"top":"left"],b,b-u[P==="y"?"bottom":"right"]),"clampCoord");s&&(g=y(m,g)),c&&(p=y(d,p));const w=l.fn({...t,[m]:g,[d]:p});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[m]:s,[d]:c}}}}}},"shift$2"),wo=i(function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:a,placement:s,rects:c,middlewareData:l}=t,{offset:h=0,mainAxis:v=!0,crossAxis:u=!0}=J(e,t),d={x:o,y:a},m=q(s),g=vt(m);let p=d[g],y=d[m];const w=J(h,t),P=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(r=w.crossAxis)!=null?r:0};if(v){const k=g==="y"?"height":"width",E=c.reference[g]-c.floating[k]+P.mainAxis,C=c.reference[g]+c.reference[k]-P.mainAxis;p<E?p=E:p>C&&(p=C)}if(u){var b,x;const k=g==="y"?"width":"height",E=mn.has(ne(s)),C=c.reference[m]-c.floating[k]+(E&&((b=l.offset)==null?void 0:b[m])||0)+(E?0:P.crossAxis),M=c.reference[m]+c.reference[k]+(E?0:((x=l.offset)==null?void 0:x[m])||0)-(E?P.crossAxis:0);y<C?y=C:y>M&&(y=M)}return{[g]:p,[m]:y}}}},"limitShift$2"),bo=i(function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:s=i(()=>{},"apply"),...c}=J(e,t),l=await o.detectOverflow(t,c),h=ne(n),v=ge(n),u=q(n)==="y",{width:d,height:m}=r.floating;let g,p;h==="top"||h==="bottom"?(g=h,p=v===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(p=h,g=v==="end"?"top":"bottom");const y=m-l.top-l.bottom,w=d-l.left-l.right,P=te(m-l[g],y),b=te(d-l[p],w),x=t.middlewareData.shift,k=!x;let E=P,C=b;x!=null&&x.enabled.x&&(C=w),x!=null&&x.enabled.y&&(E=y),k&&!v&&(u?C=d-2*G(l.left,l.right):E=m-2*G(l.top,l.bottom)),await s({...t,availableWidth:C,availableHeight:E});const M=await o.getDimensions(a.floating);return d!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}},"size$2");function ze(){return typeof window<"u"}i(ze,"hasWindow");function ye(e){return gn(e)?(e.nodeName||"").toLowerCase():"#document"}i(ye,"getNodeName");function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}i(W,"getWindow");function ee(e){var t;return(t=(gn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}i(ee,"getDocumentElement");function gn(e){return ze()?e instanceof Node||e instanceof W(e).Node:!1}i(gn,"isNode");function U(e){return ze()?e instanceof Element||e instanceof W(e).Element:!1}i(U,"isElement");function re(e){return ze()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}i(re,"isHTMLElement");function zt(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}i(zt,"isShadowRoot");function We(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}i(We,"isOverflowElement");function xo(e){return/^(table|td|th)$/.test(ye(e))}i(xo,"isTableElement");function Be(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}i(Be,"isTopLayer");var Po=/transform|translate|scale|rotate|perspective|filter/,ko=/paint|layout|strict|content/,oe=i(e=>!!e&&e!=="none","isNotNone"),Je;function yt(e){const t=U(e)?X(e):e;return oe(t.transform)||oe(t.translate)||oe(t.scale)||oe(t.rotate)||oe(t.perspective)||!wt()&&(oe(t.backdropFilter)||oe(t.filter))||Po.test(t.willChange||"")||ko.test(t.contain||"")}i(yt,"isContainingBlock");function Eo(e){let t=ie(e);for(;re(t)&&!xe(t);){if(yt(t))return t;if(Be(t))return null;t=ie(t)}return null}i(Eo,"getContainingBlock");function wt(){return Je==null&&(Je=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Je}i(wt,"isWebKit");function xe(e){return/^(html|body|#document)$/.test(ye(e))}i(xe,"isLastTraversableNode");function X(e){return W(e).getComputedStyle(e)}i(X,"getComputedStyle$1");function He(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}i(He,"getNodeScroll");function ie(e){if(ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zt(e)&&e.host||ee(e);return zt(t)?t.host:t}i(ie,"getParentNode");function yn(e){const t=ie(e);return xe(t)?(e.ownerDocument||e).body:re(t)&&We(t)?t:yn(t)}i(yn,"getNearestOverflowAncestor");function Pe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yn(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=W(o);if(a){const c=lt(s);return t.concat(s,s.visualViewport||[],We(o)?o:[],c&&n?Pe(c):[])}else return t.concat(o,Pe(o,[],n))}i(Pe,"getOverflowAncestors");function lt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}i(lt,"getFrameElement");function wn(e){const t=X(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=re(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Te(n)!==a||Te(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}i(wn,"getCssDimensions");function bt(e){return U(e)?e:e.contextElement}i(bt,"unwrapElement");function pe(e){const t=bt(e);if(!re(t))return Z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=wn(t);let s=(a?Te(n.width):n.width)/r,c=(a?Te(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}i(pe,"getScale");var Co=Z(0);function bn(e){const t=W(e);return!wt()||!t.visualViewport?Co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}i(bn,"getVisualOffsets");function Ao(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===W(e)}i(Ao,"shouldAddVisualOffsets");function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=bt(e);let s=Z(1);t&&(r?U(r)&&(s=pe(r)):s=pe(e));const c=Ao(a,n,r)?bn(a):Z(0);let l=(o.left+c.x)/s.x,h=(o.top+c.y)/s.y,v=o.width/s.x,u=o.height/s.y;if(a&&r){const d=W(a),m=U(r)?W(r):r;let g=d,p=lt(g);for(;p&&m!==g;){const y=pe(p),w=p.getBoundingClientRect(),P=X(p),b=w.left+(p.clientLeft+parseFloat(P.paddingLeft))*y.x,x=w.top+(p.clientTop+parseFloat(P.paddingTop))*y.y;l*=y.x,h*=y.y,v*=y.x,u*=y.y,l+=b,h+=x,g=W(p),p=lt(g)}}return $e({width:v,height:u,x:l,y:h})}i(se,"getBoundingClientRect");function Ve(e,t){const n=He(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}i(Ve,"getWindowScrollBarX");function xn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ve(e,n),y:n.top+t.scrollTop}}i(xn,"getHTMLOffset");function So(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ee(r),c=t?Be(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},h=Z(1);const v=Z(0),u=re(r);if((u||!a)&&((ye(r)!=="body"||We(s))&&(l=He(r)),u)){const m=se(r);h=pe(r),v.x=m.x+r.clientLeft,v.y=m.y+r.clientTop}const d=s&&!u&&!a?xn(s,l):Z(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+v.x+d.x,y:n.y*h.y-l.scrollTop*h.y+v.y+d.y}}i(So,"convertOffsetParentRelativeRectToViewportRelativeRect");function Ro(e){return e.getClientRects?Array.from(e.getClientRects()):[]}i(Ro,"getClientRects");function Oo(e){const t=He(e),n=e.ownerDocument.body,r=G(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=G(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+Ve(e);const s=-t.scrollTop;return X(n).direction==="rtl"&&(a+=G(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:a,y:s}}i(Oo,"getDocumentRect");var Mo=25;function _o(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=W(e),a=ee(e),s=o.visualViewport;let c=a.clientWidth,l=a.clientHeight,h=0,v=0;if(s){const u=!wt()||t==="fixed";r?u||(h=-s.offsetLeft,v=-s.offsetTop):(c=s.width,l=s.height,u&&(h=s.offsetLeft,v=s.offsetTop))}if(Ve(a)<=0){const u=a.ownerDocument,d=u.body,m=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(a.clientWidth-d.clientWidth-g),y=getComputedStyle(a).scrollbarGutter==="stable both-edges"?p/2:p;y<=Mo&&(c-=y)}return{width:c,height:l,x:h,y:v}}i(_o,"getViewportRect");function Lo(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=pe(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}i(Lo,"getInnerBoundingClientRect");function Wt(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=_o(e,n,t);else if(t==="document")r=Oo(ee(e));else if(U(t))r=Lo(t,n);else{const o=bn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $e(r)}i(Wt,"getClientRectFromClippingAncestor");function Do(e,t){const n=t.get(e);if(n)return n;let r=Pe(e,[],!1).filter(c=>U(c)&&ye(c)!=="body"),o=null;const a=X(e).position==="fixed";let s=a?ie(e):e;for(;U(s)&&!xe(s);){const c=X(s),l=yt(s),h=o?o.position:a?"fixed":"";!l&&(h==="fixed"||h==="absolute"&&c.position==="static")?r=r.filter(v=>v!==s):o=c,s=ie(s)}return t.set(e,r),r}i(Do,"getClippingElementAncestors");function No(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Be(t)?[]:Do(t,this._c):[].concat(n),r],s=Wt(t,a[0],o);let c=s.top,l=s.right,h=s.bottom,v=s.left;for(let u=1;u<a.length;u++){const d=Wt(t,a[u],o);c=G(d.top,c),l=te(d.right,l),h=te(d.bottom,h),v=G(d.left,v)}return{width:l-v,height:h-c,x:v,y:c}}i(No,"getClippingRect");function To(e){const{width:t,height:n}=wn(e);return{width:t,height:n}}i(To,"getDimensions");function Fo(e,t,n){const r=re(t),o=ee(t),a=n==="fixed",s=se(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=Z(0);if((r||!a)&&((ye(t)!=="body"||We(o))&&(c=He(t)),r)){const v=se(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}!r&&o&&(l.x=Ve(o));const h=o&&!r&&!a?xn(o,c):Z(0);return{x:s.left+c.scrollLeft-l.x-h.x,y:s.top+c.scrollTop-l.y-h.y,width:s.width,height:s.height}}i(Fo,"getRectRelativeToOffsetParent");function et(e){return X(e).position==="static"}i(et,"isStaticPositioned");function Bt(e,t){if(!re(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}i(Bt,"getTrueOffsetParent");function Pn(e,t){const n=W(e);if(Be(e))return n;if(!re(e)){let o=ie(e);for(;o&&!xe(o);){if(U(o)&&!et(o))return o;o=ie(o)}return n}let r=Bt(e,t);for(;r&&xo(r)&&et(r);)r=Bt(r,t);return r&&xe(r)&&et(r)&&!yt(r)?n:r||Eo(e)||n}i(Pn,"getOffsetParent");var $o=i(async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:Fo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},"getElementRects");function Io(e){return X(e).direction==="rtl"}i(Io,"isRTL");var jo={convertOffsetParentRelativeRectToViewportRelativeRect:So,getDocumentElement:ee,getClippingRect:No,getOffsetParent:Pn,getElementRects:$o,getClientRects:Ro,getDimensions:To,getScale:pe,isElement:U,isRTL:Io};function kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}i(kn,"rectsAreEqual");function zo(e,t,n){let r=null,o;const a=ee(e);function s(){var v;clearTimeout(o),(v=r)==null||v.disconnect(),r=null}i(s,"cleanup");function c(v,u){v===void 0&&(v=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:m,top:g,width:p,height:y}=d;if(v||t(),!p||!y)return;const w=_e(g),P=_e(a.clientWidth-(m+p)),b=_e(a.clientHeight-(g+y)),x=_e(m),k={rootMargin:-w+"px "+-P+"px "+-b+"px "+-x+"px",threshold:G(0,te(1,u))||1};let E=!0;function C(M){const D=M[0].intersectionRatio;if(!kn(d,e.getBoundingClientRect()))return c();if(D!==u){if(!E)return c();D?c(!1,D):o=setTimeout(()=>{c(!1,1e-7)},1e3)}E=!1}i(C,"handleObserve");try{r=new IntersectionObserver(C,{...k,root:a.ownerDocument})}catch{r=new IntersectionObserver(C,k)}r.observe(e)}i(c,"refresh");const l=W(e),h=i(()=>c(n),"handleResize");return l.addEventListener("resize",h),c(!0),()=>{l.removeEventListener("resize",h),s()}}i(zo,"observeMove");function Wo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,h=bt(e),v=o||a?[...h?Pe(h):[],...t?Pe(t):[]]:[];v.forEach(w=>{o&&w.addEventListener("scroll",n),a&&w.addEventListener("resize",n)});const u=h&&c?zo(h,n,a):null;let d=-1,m=null;s&&(m=new ResizeObserver(w=>{let[P]=w;P&&P.target===h&&m&&t&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),h&&!l&&m.observe(h),t&&m.observe(t));let g,p=l?se(e):null;l&&y();function y(){const w=se(e);p&&!kn(p,w)&&n(),p=w,g=requestAnimationFrame(y)}return i(y,"frameLoop"),n(),()=>{var w;v.forEach(P=>{o&&P.removeEventListener("scroll",n),a&&P.removeEventListener("resize",n)}),u?.(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(g)}}i(Wo,"autoUpdate");var Bo=go,Ho=yo,Vo=po,qo=bo,Uo=vo,Ht=ho,Xo=wo,Yo=i((e,t,n)=>{const r=new Map,o=n??{},a={...jo,...o.platform,_c:r};return fo(e,t,{...o,platform:a})},"computePosition"),Ne=typeof document<"u"?f.useLayoutEffect:i(function(){},"noop");function Ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ie(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}i(Ie,"deepEqual");function En(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}i(En,"getDPR");function Vt(e,t){const n=En(e);return Math.round(t*n)/n}i(Vt,"roundByDPR");function tt(e){const t=f.useRef(e);return Ne(()=>{t.current=e}),t}i(tt,"useLatestRef");function Ko(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:h}=e,[v,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=f.useState(r);Ie(d,r)||m(r);const[g,p]=f.useState(null),[y,w]=f.useState(null),P=f.useCallback(O=>{O!==E.current&&(E.current=O,p(O))},[]),b=f.useCallback(O=>{O!==C.current&&(C.current=O,w(O))},[]),x=a||g,k=s||y,E=f.useRef(null),C=f.useRef(null),M=f.useRef(v),D=l!=null,_=tt(l),$=tt(o),S=tt(h),N=f.useCallback(()=>{if(!E.current||!C.current)return;const O={placement:t,strategy:n,middleware:d};$.current&&(O.platform=$.current),Yo(E.current,C.current,O).then(F=>{const H={...F,isPositioned:S.current!==!1};L.current&&!Ie(M.current,H)&&(M.current=H,nn.flushSync(()=>{u(H)}))})},[d,t,n,$,S]);Ne(()=>{h===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[h]);const L=f.useRef(!1);Ne(()=>(L.current=!0,()=>{L.current=!1}),[]),Ne(()=>{if(x&&(E.current=x),k&&(C.current=k),x&&k){if(_.current)return _.current(x,k,N);N()}},[x,k,N,_,D]);const B=f.useMemo(()=>({reference:E,floating:C,setReference:P,setFloating:b}),[P,b]),T=f.useMemo(()=>({reference:x,floating:k}),[x,k]),j=f.useMemo(()=>{const O={position:n,left:0,top:0};if(!T.floating)return O;const F=Vt(T.floating,v.x),H=Vt(T.floating,v.y);return c?{...O,transform:"translate("+F+"px, "+H+"px)",...En(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:H}},[n,c,T.floating,v.x,v.y]);return f.useMemo(()=>({...v,update:N,refs:B,elements:T,floatingStyles:j}),[v,N,B,T,j])}i(Ko,"useFloating");var Go=i(e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return i(t,"isRef"),{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ht({element:r.current,padding:o}).fn(n):{}:r?Ht({element:r,padding:o}).fn(n):{}}}},"arrow$1"),Zo=i((e,t)=>{const n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},"offset"),Qo=i((e,t)=>{const n=Ho(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift"),Jo=i((e,t)=>({fn:Xo(e).fn,options:[e,t]}),"limitShift"),ea=i((e,t)=>{const n=Vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},"flip"),ta=i((e,t)=>{const n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size"),na=i((e,t)=>{const n=Uo(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide"),ra=i((e,t)=>{const n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},"arrow"),oa=Object.defineProperty,aa=i((e,t)=>oa(e,"name",{value:t,configurable:!0}),"__name$2"),ia=f.forwardRef(aa(i(function(t,n){const{children:r,width:o=10,height:a=5,...s}=t;return(0,R.jsx)(ce.svg,{...s,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,R.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow2"),"Arrow")),sa=ia,ca=Object.defineProperty,Q=i((e,t)=>ca(e,"name",{value:t,configurable:!0}),"__name$1"),Cn="Popper",[An,Sn]=qt(Cn),[la,Rn]=An(Cn),ua=Q(e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null),[a,s]=f.useState(void 0);return(0,R.jsx)(la,{scope:t,anchor:r,onAnchorChange:o,placementState:a,setPlacementState:s,children:n})},"Popper"),fa="PopperAnchor",da=f.forwardRef(Q(i(function(t,n){const{__scopePopper:r,virtualRef:o,...a}=t,s=Rn(fa,r),c=f.useRef(null),l=s.onAnchorChange,h=f.useCallback(p=>{c.current=p,p&&l(p)},[l]),v=me(n,h),u=f.useRef(null);f.useEffect(()=>{if(!o)return;const p=u.current;u.current=o.current,p!==u.current&&l(u.current)});const d=s.placementState&&qe(s.placementState),m=d?.[0],g=d?.[1];return o?null:(0,R.jsx)(ce.div,{"data-radix-popper-side":m,"data-radix-popper-align":g,...a,ref:v})},"PopperAnchor2"),"PopperAnchor")),On="PopperContent",[ha,pa]=An(On),va=f.forwardRef(Q(i(function(t,n){const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:p,...y}=t,w=Rn(On,r),[P,b]=f.useState(null),x=me(n,b),[k,E]=f.useState(null),C=hn(k),M=C?.width??0,D=C?.height??0,_=o+(s!=="center"?"-"+s:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},S=Array.isArray(v)?v:[v],N=S.length>0,L={padding:$,boundary:S.filter(Mn),altBoundary:N},{refs:B,floatingStyles:T,placement:j,isPositioned:O,middlewareData:F}=Ko({strategy:"fixed",placement:_,whileElementsMounted:Q((...Ue)=>Wo(...Ue,{animationFrame:g==="always"}),"whileElementsMounted"),elements:{reference:w.anchor},middleware:[Zo({mainAxis:a+D,alignmentAxis:c}),h&&Qo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Jo():void 0,...L}),h&&ea({...L}),ta({...L,apply:Q(({elements:Ue,rects:zn,availableWidth:Wn,availableHeight:Bn})=>{const{width:Hn,height:Vn}=zn.reference,Ce=Ue.floating.style;Ce.setProperty("--radix-popper-available-width",`${Wn}px`),Ce.setProperty("--radix-popper-available-height",`${Bn}px`),Ce.setProperty("--radix-popper-anchor-width",`${Hn}px`),Ce.setProperty("--radix-popper-anchor-height",`${Vn}px`)},"apply")}),k&&ra({element:k,padding:l}),wa({arrowWidth:M,arrowHeight:D}),m&&na({strategy:"referenceHidden",...L,boundary:N?L.boundary:void 0})]}),H=w.setPlacementState;we(()=>(H(j),()=>{H(void 0)}),[j,H]);const[kt,Et]=qe(j),Ct=ve(p);we(()=>{O&&Ct?.()},[O,Ct]);const Tn=F.arrow?.x,Fn=F.arrow?.y,$n=F.arrow?.centerOffset!==0,[In,jn]=f.useState();return we(()=>{P&&jn(window.getComputedStyle(P).zIndex)},[P]),(0,R.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:O?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:In,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,R.jsx)(ha,{scope:r,placedSide:kt,placedAlign:Et,onArrowChange:E,arrowX:Tn,arrowY:Fn,shouldHideArrow:$n,children:(0,R.jsx)(ce.div,{"data-side":kt,"data-align":Et,...y,ref:x,style:{...y.style,animation:O?y.style?.animation:"none"}})})})},"PopperContent2"),"PopperContent")),ma="PopperArrow",ga={top:"bottom",right:"left",bottom:"top",left:"right"},ya=f.forwardRef(Q(i(function(t,n){const{__scopePopper:r,...o}=t,a=pa(ma,r),s=ga[a.placedSide];return(0,R.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,R.jsx)(sa,{...o,ref:n,style:{...o.style,display:"block"}})})},"PopperArrow2"),"PopperArrow"));function Mn(e){return e!==null}i(Mn,"isNotNull");Q(Mn,"isNotNull");var wa=Q(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,h]=qe(n),v={start:"0%",center:"50%",end:"100%"}[h],u=(o.arrow?.x??0)+s/2,d=(o.arrow?.y??0)+c/2;let m="",g="";return l==="bottom"?(m=a?v:`${u}px`,g=`${-c}px`):l==="top"?(m=a?v:`${u}px`,g=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,g=a?v:`${d}px`):l==="left"&&(m=`${r.floating.width+c}px`,g=a?v:`${d}px`),{data:{x:m,y:g}}}}),"transformOrigin");function qe(e){const[t,n="center"]=e.split("-");return[t,n]}i(qe,"getSideAndAlignFromPlacement");Q(qe,"getSideAndAlignFromPlacement");var ba=ua,_n=da,xa=va,Pa=ya,ka=Object.defineProperty,Y=i((e,t)=>ka(e,"name",{value:t,configurable:!0}),"__name"),xt="Popover",[Ln,xi]=qt(xt,[Sn]),Ee=Sn(),[Ea,le]=Ln(xt),Ca=Y(e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,c=Ee(t),l=f.useRef(null),[h,v]=f.useState(!1),[u,d]=Kn({prop:r,defaultProp:o??!1,onChange:a,caller:xt});return(0,R.jsx)(ba,{...c,children:(0,R.jsx)(Ea,{scope:t,contentId:Zn(),triggerRef:l,open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(m=>!m),[d]),hasCustomAnchor:h,onCustomAnchorAdd:f.useCallback(()=>v(!0),[]),onCustomAnchorRemove:f.useCallback(()=>v(!1),[]),modal:s,children:n})})},"Popover"),Aa="PopoverAnchor",Sa=f.forwardRef(Y(i(function(t,n){const{__scopePopover:r,...o}=t,a=le(Aa,r),s=Ee(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=a;return f.useEffect(()=>(c(),()=>l()),[c,l]),(0,R.jsx)(_n,{...s,...o,ref:n})},"PopoverAnchor2"),"PopoverAnchor")),Ra="PopoverTrigger",Oa=f.forwardRef(Y(i(function(t,n){const{__scopePopover:r,...o}=t,a=le(Ra,r),s=Ee(r),c=me(n,a.triggerRef),l=(0,R.jsx)(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Pt(a.open),...o,ref:c,onClick:ae(t.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:(0,R.jsx)(_n,{asChild:!0,...s,children:l})},"PopoverTrigger2"),"PopoverTrigger")),Dn="PopoverPortal",[Ma,_a]=Ln(Dn,{forceMount:void 0}),La=Y(e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=le(Dn,t);return(0,R.jsx)(Ma,{scope:t,forceMount:n,children:(0,R.jsx)(Ut,{present:n||a.open,children:(0,R.jsx)(lr,{asChild:!0,container:o,children:r})})})},"PopoverPortal"),ke="PopoverContent",Da=f.forwardRef(Y(i(function(t,n){const r=_a(ke,t.__scopePopover),{forceMount:o=r.forceMount,...a}=t,s=le(ke,t.__scopePopover);return(0,R.jsx)(Ut,{present:o||s.open,children:s.modal?(0,R.jsx)(Ta,{...a,ref:n}):(0,R.jsx)(Fa,{...a,ref:n})})},"PopoverContent2"),"PopoverContent")),Na=Gn("PopoverContent.RemoveScroll"),Ta=f.forwardRef(Y(i(function(t,n){const r=le(ke,t.__scopePopover),o=f.useRef(null),a=me(n,o),s=f.useRef(!1);return f.useEffect(()=>{const c=o.current;if(c)return Zr(c)},[]),(0,R.jsx)(fn,{as:Na,allowPinchZoom:!0,children:(0,R.jsx)(Nn,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(t.onCloseAutoFocus,c=>{c.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ae(t.onPointerDownOutside,c=>{const l=c.detail.originalEvent,h=l.button===0&&l.ctrlKey===!0,v=l.button===2||h;s.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:ae(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal2"),"PopoverContentModal")),Fa=f.forwardRef(Y(i(function(t,n){const r=le(ke,t.__scopePopover),o=f.useRef(!1),a=f.useRef(!1);return(0,R.jsx)(Nn,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i(s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,a.current=!1},"onCloseAutoFocus"),onInteractOutside:i(s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()},"onInteractOutside")})},"PopoverContentNonModal2"),"PopoverContentNonModal")),Nn=f.forwardRef(Y(i(function(t,n){const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:u,...d}=t,m=le(ke,r),g=Ee(r);return pt(),(0,R.jsx)(ir,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,R.jsx)(nr,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:v,onDismiss:i(()=>m.onOpenChange(!1),"onDismiss"),deferPointerDownOutside:!0,children:(0,R.jsx)(xa,{"data-state":Pt(m.open),role:"dialog",id:m.contentId,...g,...d,ref:n,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl2"),"PopoverContentImpl")),$a=f.forwardRef(Y(i(function(t,n){const{__scopePopover:r,...o}=t,a=Ee(r);return(0,R.jsx)(Pa,{...a,...o,ref:n})},"PopoverArrow2"),"PopoverArrow"));function Pt(e){return e?"open":"closed"}i(Pt,"getState");Y(Pt,"getState");var Pi=Ca,ki=Sa,Ei=Oa,Ci=La,Ai=Da,Si=$a,Ia=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],Ri=A("atom",Ia),ja=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Oi=A("boxes",ja),za=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Mi=A("brain",za),Wa=[["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"}]],_i=A("bug",Wa),Ba=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Li=A("code",Ba),Ha=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],Di=A("cog",Ha),Va=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ni=A("cpu",Va),qa=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Ti=A("crown",qa),Ua=[["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"}]],Fi=A("database",Ua),Xa=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],$i=A("file-code",Xa),Ya=[["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"}]],Ii=A("flame",Ya),Ka=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],ji=A("gem",Ka),Ga=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],zi=A("git-branch",Ga),Za=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Wi=A("globe",Za),Qa=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],Bi=A("hammer",Qa),Ja=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Hi=A("heart",Ja),ei=[["path",{d:"M21 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],Vi=A("hexagon",ei),ti=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],qi=A("lightbulb",ti),ni=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ui=A("lock",ni),ri=[["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"}]],Xi=A("mail",ri),oi=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Yi=A("message-square",oi),ai=[["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"}]],Ki=A("package",ai),ii=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Gi=A("puzzle",ii),si=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],Zi=A("radar",si),ci=[["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"}]],Qi=A("rocket",ci),li=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ji=A("search",li),ui=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],es=A("shield",ui),fi=[["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"}]],ts=A("sparkles",fi),di=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ns=A("star",di),hi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],rs=A("target",hi),pi=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],os=A("telescope",pi),vi=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],as=A("terminal",vi),mi=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],is=A("wrench",mi),gi=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],ss=A("zap",gi);export{lr as $,Li as A,Ci as B,ji as C,Ti as D,Fi as E,ki as F,xa as G,Ei as H,Si as I,hn as J,ba as K,Ai as L,Mi as M,Oi as N,Ni as O,Ri as P,pt as Q,Da as R,zi as S,$i as T,_n as U,Pi as V,Pa as W,fn as X,Zr as Y,V as Z,qi as _,rs as a,Bi as b,es as c,Zi as d,ir as et,Gi as f,Ui as g,Xi as h,os as i,_i as j,Di as k,Ji as l,Yi as m,is as n,rr as nt,ns as o,Ki as p,Sn as q,as as r,ts as s,ss as t,nr as tt,Qi as u,Vi as v,Ii as w,Wi as x,Hi as y,Oa as z};