decocms 2.302.7 → 2.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/client/assets/{AlertCircle-CG9syR30.js → AlertCircle-vEsirhNa.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-BoVSDn9e.js → ArrowNarrowLeft-DZv_aYqP.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BdaniATT.js → ArrowUpRight-gnKwWbdS.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DenMuCVF.js → CheckCircle-CG65sxv8.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-C3Ygm425.js → ChevronDown-ClwyYcv4.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-ZWCM92t_.js → ChevronRight-C0UgsndQ.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-D2rVf06n.js → ChevronUp-0O0O_hLq.js} +1 -1
  8. package/dist/client/assets/{Container-D7Azh5xu.js → Container-D1_FRS1u.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-CLHEpDSq.js → DotsVertical-BdLY0G_d.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-DxXEJ52C.js → LinkExternal01-C0RHT0gp.js} +1 -1
  11. package/dist/client/assets/{Lock01-BguDy0uh.js → Lock01-CJP_L01s.js} +1 -1
  12. package/dist/client/assets/{Palette-BYEIR3m2.js → Palette-DTaJJ6eW.js} +1 -1
  13. package/dist/client/assets/{Play-Bwjd77ev.js → Play-wg-GRHFk.js} +1 -1
  14. package/dist/client/assets/{Plus-DTn86Odk.js → Plus-Ukcu1-Za.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-BHf_tfWd.js → RefreshCcw01-i1Q8uoB-.js} +1 -1
  16. package/dist/client/assets/{SearchMd-a6724p0Y.js → SearchMd-CaU1opgI.js} +1 -1
  17. package/dist/client/assets/{Settings02-CrnanDsL.js → Settings02-sn7Sw6YT.js} +1 -1
  18. package/dist/client/assets/{Shield01-DtxRf8Qj.js → Shield01-BV1qTPTH.js} +1 -1
  19. package/dist/client/assets/{Star01-BFmiet3n.js → Star01-BRRUiVRZ.js} +1 -1
  20. package/dist/client/assets/{Sun-CRJFmy5s.js → Sun-xRqcyI3R.js} +1 -1
  21. package/dist/client/assets/{Tool01-9otovhMh.js → Tool01-Baq41T_m.js} +1 -1
  22. package/dist/client/assets/{Trash01-re7YiF5g.js → Trash01-vBGY9tLb.js} +1 -1
  23. package/dist/client/assets/{User01-BgnyFNdJ.js → User01-Dt3HpnQa.js} +1 -1
  24. package/dist/client/assets/{Users03-BPGIuPOi.js → Users03-DXg5Ltjv.js} +1 -1
  25. package/dist/client/assets/{X-DlTdh5jK.js → X-cgiyE3ZM.js} +1 -1
  26. package/dist/client/assets/{XCircle-BE4LAsf8.js → XCircle-pfcw5bLn.js} +1 -1
  27. package/dist/client/assets/{XClose-CDyDeDuF.js → XClose-BddCxuhK.js} +1 -1
  28. package/dist/client/assets/{Zap-DE6pD70D.js → Zap-Csq8iSdS.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-FWH2wtfn.js → ZapSquare-BcZ9bNOI.js} +1 -1
  30. package/dist/client/assets/{accordion-BubDFUkM.js → accordion-6lnK-4_B.js} +1 -1
  31. package/dist/client/assets/{agent-icon-DzVM2Y3D.js → agent-icon-BdKQ6n0b.js} +1 -1
  32. package/dist/client/assets/{agents-list-ClVNGy3h.js → agents-list-CQCT4ln6.js} +1 -1
  33. package/dist/client/assets/ai-providers-GeW9mIp3.js +1 -0
  34. package/dist/client/assets/{alert-dialog-Cp4KelsS.js → alert-dialog-eUvHx9LP.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DAjGP-X3.js → auth-catchall-DTPgUDmr.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-DP5TESrt.js → automation-list-row-Dr5sNKYc.js} +1 -1
  37. package/dist/client/assets/{automations-BKKclzI8.js → automations-C3gcgD_I.js} +1 -1
  38. package/dist/client/assets/{avatar-D56WFjQj.js → avatar-DYHAtJIn.js} +1 -1
  39. package/dist/client/assets/{badge-Brrebgj_.js → badge-CbBFj3dT.js} +1 -1
  40. package/dist/client/assets/{brand-context-B9KleYrA.js → brand-context-CH3a97ud.js} +1 -1
  41. package/dist/client/assets/{card-CbtqsNyF.js → card-KdWbX1xC.js} +1 -1
  42. package/dist/client/assets/{chat-context-D8pNmIoM.js → chat-context-CyOREmRE.js} +1 -1
  43. package/dist/client/assets/{checkbox-A-1sOL7a.js → checkbox-L6ow9OAH.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BiV7gm_U.js → collection-detail-BNa0DV-E.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-hDD2VNh1.js → collection-display-button-Cd1AAuzE.js} +1 -1
  46. package/dist/client/assets/{collection-search-BtNt6NZG.js → collection-search-C_3BuKbi.js} +1 -1
  47. package/dist/client/assets/{collection-search-TTX5BBhb.js → collection-search-DKaMJpI1.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-RDfR0u8g.js → collection-table-wrapper-BZMY30r-.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-BYirFRax.js → collection-tabs-CKmdw5ye.js} +1 -1
  50. package/dist/client/assets/{collections-DY4I1w_a.js → collections-JCMKBQvX.js} +1 -1
  51. package/dist/client/assets/{command-DzkZTofz.js → command-CiVqeZK9.js} +1 -1
  52. package/dist/client/assets/{connection-card-iSBKdQg9.js → connection-card-BGoNyj1I.js} +1 -1
  53. package/dist/client/assets/{connection-detail-DeALevd5.js → connection-detail-DgOZE4hQ.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Cad-A9NK.js → connection-form-helpers-DiXDE6He.js} +1 -1
  55. package/dist/client/assets/{connections-BhCBByIk.js → connections-BHvbqlLg.js} +1 -1
  56. package/dist/client/assets/{constants-9TBj0Gaa.js → constants-BOiLyn9k.js} +1 -1
  57. package/dist/client/assets/{constants-BXUJyD1c.js → constants-CxLUc4t1.js} +1 -1
  58. package/dist/client/assets/{dialog-DpgNnjBX.js → dialog-B24YZzA9.js} +1 -1
  59. package/dist/client/assets/{domain-settings-CfEXVZxs.js → domain-settings-WXCddaP7.js} +1 -1
  60. package/dist/client/assets/{drawer-LAm5-sL1.js → drawer-CGPAKRwg.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-CSBZWMuU.js → dropdown-menu-D3k5KxvY.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-YqPG32No.js → dynamic-plugin-layout-B06IMDFS.js} +1 -1
  63. package/dist/client/assets/{empty-state-D8Ji8JRa.js → empty-state-CI0GC98R.js} +1 -1
  64. package/dist/client/assets/{empty-state-C3GO5RSf.js → empty-state-Wp7TaLly.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-cbAHcCfh.js → extract-connection-data-C8BcpMzg.js} +1 -1
  66. package/dist/client/assets/{features-D_II3j_j.js → features-Dm0-VLa6.js} +1 -1
  67. package/dist/client/assets/{form-DFO_5Fzm.js → form-FasOp70m.js} +1 -1
  68. package/dist/client/assets/{general-By1woa8E.js → general-B7DIS0Ue.js} +1 -1
  69. package/dist/client/assets/{index-DF5x0d60.js → index-22XZTMRU.js} +1 -1
  70. package/dist/client/assets/{index-ImhE7zFL.js → index-B2vavj0S.js} +1 -1
  71. package/dist/client/assets/{index-XLC4yiSV.js → index-C6uOB0Y4.js} +1 -1
  72. package/dist/client/assets/{index-CHNVhIMp.js → index-CFi3i8-6.js} +1 -1
  73. package/dist/client/assets/{index-C4QwSWi9.js → index-CGc8iCsx.js} +1 -1
  74. package/dist/client/assets/{index-D2mitOSe.js → index-CHehLkTl.js} +4 -4
  75. package/dist/client/assets/index-CHk8-d41.js +1 -0
  76. package/dist/client/assets/{index-swcvm5Z1.js → index-CJ0MPowS.js} +1 -1
  77. package/dist/client/assets/{index-DYIl7M2a.js → index-CLPpVsE7.js} +1 -1
  78. package/dist/client/assets/{index-B2vPEOVc.js → index-CLgan7xr.js} +1 -1
  79. package/dist/client/assets/{index-tSJy2IW6.js → index-CmoaTI3v.js} +1 -1
  80. package/dist/client/assets/{index-2dOrl4x0.js → index-CnMcjZ2J.js} +1 -1
  81. package/dist/client/assets/{index-DSoRyzSx.js → index-DSDywrQr.js} +1 -1
  82. package/dist/client/assets/{index-CQ4D5GAP.js → index-DgPBaKAA.js} +2 -2
  83. package/dist/client/assets/{index-r9i7ABND.js → index-UUkaa4t8.js} +1 -1
  84. package/dist/client/assets/{index-Br3d5-Cj.js → index-Uci3t_4k.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-CxkHF-jm.js → infiniteQueryObserver-BNzmdrsE.js} +1 -1
  86. package/dist/client/assets/{input-6Sf2hB_F.js → input-s7yMiYrQ.js} +1 -1
  87. package/dist/client/assets/{integration-icon-8lhkAaq5.js → integration-icon-BTFNSNVv.js} +1 -1
  88. package/dist/client/assets/{label-DoJDMV6i.js → label-DdmR-9sj.js} +1 -1
  89. package/dist/client/assets/{layout-BHQ_c4RM.js → layout-b284SHuQ.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CDcr9qCt.js → lean-canvas-recruit-modal-DajQAG70.js} +1 -1
  91. package/dist/client/assets/{login-Am3HfZgi.js → login-B1PDG9tU.js} +1 -1
  92. package/dist/client/assets/{members-yGwdGYMP.js → members-BzR5JdQ2.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-CglgsbP6.js → monaco-editor-CI3jdnZr.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-C64ix0dR.js → monitoring-stats-row-DhMQIkbL.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-YaQtgy3B.js → oauth-callback-BnQ8HZqD.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-ai-provider-DXuTlaTS.js → oauth-callback-ai-provider-CRSRr_xb.js} +1 -1
  97. package/dist/client/assets/{onboarding-WnwwsOhD.js → onboarding-D_M2p9DV.js} +1 -1
  98. package/dist/client/assets/{org-layout-DCXUX3EB.js → org-layout-D2xtXfus.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-Dsb_WQsm.js → org-plugin-layout-DZaqttiB.js} +1 -1
  100. package/dist/client/assets/{pair-B01JdgFS.js → pair-DipmF7bC.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-D3CO3AdB.js → plugin-empty-state-Buoq-fSV.js} +1 -1
  102. package/dist/client/assets/{plugin-header-aeJUAm2h.js → plugin-header-BYnPGK02.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-CP1Bb1gU.js → plugin-layout-CN3nu4uU.js} +1 -1
  104. package/dist/client/assets/{popover-BajibMdr.js → popover-BO9bGsCV.js} +1 -1
  105. package/dist/client/assets/{profile-DDe57pOS.js → profile-KMr1dQ-Q.js} +1 -1
  106. package/dist/client/assets/{project-app-view-AKSh-WqN.js → project-app-view-BUlVlC-x.js} +1 -1
  107. package/dist/client/assets/registry-BQuAXDX3.js +2 -0
  108. package/dist/client/assets/{registry-layout-QiSXnsNM.js → registry-layout-BUJ3AeXk.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-jdQgts2c.js → required-auth-layout-23LI14IJ.js} +1 -1
  110. package/dist/client/assets/{reset-password-BN5V7l8r.js → reset-password-D1P-Z7nY.js} +1 -1
  111. package/dist/client/assets/{roles-HeW5UUYX.js → roles-C76lzhHm.js} +1 -1
  112. package/dist/client/assets/{scroll-area-SGeY9dE-.js → scroll-area-BYgy2rRU.js} +1 -1
  113. package/dist/client/assets/{search-input-D6oau9hI.js → search-input-DouvVIAY.js} +1 -1
  114. package/dist/client/assets/{select-model-Di1os-Ub.js → select-model-BwlI7XmT.js} +1 -1
  115. package/dist/client/assets/{select-DeRvPFq1.js → select-tWER34RX.js} +1 -1
  116. package/dist/client/assets/{settings-layout-Ds_Ffodp.js → settings-layout-DM8Inkwn.js} +1 -1
  117. package/dist/client/assets/{settings-section-RBLHL8gf.js → settings-section-Dr0LUAWl.js} +1 -1
  118. package/dist/client/assets/{shell-layout-BBGXUnLn.js → shell-layout-RjvCJ64C.js} +1 -1
  119. package/dist/client/assets/{skeleton-BAo1ij7j.js → skeleton-CUpGn6FE.js} +1 -1
  120. package/dist/client/assets/{sso-CKN-2e5M.js → sso-BIwBaU8W.js} +1 -1
  121. package/dist/client/assets/{store-hnD4E6ii.js → store-DxMzTKYE.js} +1 -1
  122. package/dist/client/assets/store-registry-4KpCoRMs.js +2 -0
  123. package/dist/client/assets/{switch-BGrAKUyr.js → switch-DEvD95wE.js} +1 -1
  124. package/dist/client/assets/{table-0gEoBFzX.js → table-C3UVFCYb.js} +1 -1
  125. package/dist/client/assets/{tabs-ChLvcDIf.js → tabs-BVEP2lWJ.js} +1 -1
  126. package/dist/client/assets/{task-status-B0G255I6.js → task-status-CGfLBMZl.js} +1 -1
  127. package/dist/client/assets/{textarea-CDageIb2.js → textarea-D7sU3_M1.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BUN1pnfF.js → toggle-group-V7Yt1Ex8.js} +1 -1
  129. package/dist/client/assets/{tools-list-DIvrgoIa.js → tools-list-CABaXV8v.js} +1 -1
  130. package/dist/client/assets/{tooltip-pBgOajzM.js → tooltip-apD1iSo_.js} +1 -1
  131. package/dist/client/assets/{types-wSZC8rz7.js → types-CD5tpm5b.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-DVEz2NmK.js → use-ai-providers-CGTNouwr.js} +1 -1
  133. package/dist/client/assets/{use-collections-DV5bwdGb.js → use-collections-DFWGNuJR.js} +1 -1
  134. package/dist/client/assets/{use-connection-fs-HjrZ7.js → use-connection-C-BvdB1r.js} +1 -1
  135. package/dist/client/assets/{use-copy-lIGig9yc.js → use-copy-DefGD5Vz.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-Bz4IDcO1.js → use-create-virtual-mcp-CBpUnMCs.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-B38OLSFm.js → use-decopilot-events-ltSQJ_A7.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-CORGK4Oi.js → use-delete-connection-DpaPpzHo.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-C0wp7W5X.js → use-infinite-scroll-BQ-INmUl.js} +1 -1
  140. package/dist/client/assets/{use-list-state-DWVI_yIs.js → use-list-state-D1F4t091.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-C-hABbHm.js → use-mcp-tools-BrbjMOtH.js} +1 -1
  142. package/dist/client/assets/{use-members-DbWcRqMH.js → use-members-b-HHyQxx.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-37f-6W2B.js → use-navigate-to-agent-vkB0KE5O.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-5_rgl0KN.js → use-org-auth-client-DpMUudQp.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-CFxSE_n9.js → use-org-sso-B1ThBRct.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-Cy74Gv9v.js → use-organization-roles-CBMuGkFt.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-B3AsJEWq.js → use-organization-settings-8KaGxc8P.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-C9X2yrii.js → use-registry-connections-q8kr-T41.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-DuT0KslZ.js → use-status-sounds-C19SUHpW.js} +1 -1
  150. package/dist/client/assets/{use-tasks-Bg4m_k7S.js → use-tasks-CKR5m1e3.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-_U7GAKYn.js → use-view-mode-C6IKAuZR.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-CwGnYHPH.js → use-virtual-mcp-DqIUOY7O.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-eU5lg-Wu.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-ddH3lLnG.js +1 -0
  155. package/dist/client/assets/{user-CpC285Qu.js → user-CaH0b_KG.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-zrlQPSP1.js → view-mode-toggle-D-dHPCyZ.js} +1 -1
  157. package/dist/client/assets/{workflow-D77PbtT7.js → workflow-BivIt-Ky.js} +1 -1
  158. package/dist/client/assets/workflow-detail-Df9rIeG5.js +1 -0
  159. package/dist/client/index.html +1 -1
  160. package/dist/server/cli.js +88 -45
  161. package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
  162. package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
  163. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
  164. package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
  165. package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
  166. package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
  167. package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
  168. package/dist/server/server.js +87 -44
  169. package/package.json +1 -1
  170. package/dist/client/assets/ai-providers-CCNzjFxx.js +0 -1
  171. package/dist/client/assets/index-B13jh3-s.js +0 -1
  172. package/dist/client/assets/registry-BEeKP9Pe.js +0 -2
  173. package/dist/client/assets/store-registry-s8CHypuf.js +0 -2
  174. package/dist/client/assets/useInfiniteQuery-DGrk4ASG.js +0 -1
  175. package/dist/client/assets/useSuspenseInfiniteQuery-cV09mkra.js +0 -1
  176. package/dist/client/assets/workflow-detail-DAtCF7t1.js +0 -1
  177. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  178. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  179. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  180. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  181. package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
  182. package/dist/server/node_modules/mimic-fn/index.js +0 -13
  183. package/dist/server/node_modules/mimic-fn/license +0 -9
  184. package/dist/server/node_modules/mimic-fn/package.json +0 -42
  185. package/dist/server/node_modules/mimic-fn/readme.md +0 -69
  186. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  187. package/dist/server/node_modules/onetime/index.js +0 -44
  188. package/dist/server/node_modules/onetime/license +0 -9
  189. package/dist/server/node_modules/onetime/package.json +0 -43
  190. package/dist/server/node_modules/onetime/readme.md +0 -94
  191. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  192. package/dist/server/node_modules/pg-int8/README.md +0 -16
  193. package/dist/server/node_modules/pg-int8/index.js +0 -100
  194. package/dist/server/node_modules/pg-int8/package.json +0 -24
  195. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  196. package/dist/server/node_modules/postgres-array/index.js +0 -97
  197. package/dist/server/node_modules/postgres-array/license +0 -21
  198. package/dist/server/node_modules/postgres-array/package.json +0 -35
  199. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  200. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  201. package/dist/server/node_modules/postgres-bytea/license +0 -21
  202. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  203. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  204. package/dist/server/node_modules/postgres-date/index.js +0 -116
  205. package/dist/server/node_modules/postgres-date/license +0 -21
  206. package/dist/server/node_modules/postgres-date/package.json +0 -33
  207. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  208. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  209. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  210. package/dist/server/node_modules/postgres-interval/license +0 -21
  211. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  212. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  213. package/dist/server/node_modules/split2/LICENSE +0 -13
  214. package/dist/server/node_modules/split2/README.md +0 -85
  215. package/dist/server/node_modules/split2/bench.js +0 -27
  216. package/dist/server/node_modules/split2/index.js +0 -141
  217. package/dist/server/node_modules/split2/package.json +0 -39
  218. package/dist/server/node_modules/split2/test.js +0 -409
  219. package/dist/server/node_modules/string-width/index.d.ts +0 -39
  220. package/dist/server/node_modules/string-width/index.js +0 -82
  221. package/dist/server/node_modules/string-width/license +0 -9
  222. package/dist/server/node_modules/string-width/package.json +0 -64
  223. package/dist/server/node_modules/string-width/readme.md +0 -66
  224. /package/dist/server/node_modules/{is-fullwidth-code-point → get-east-asian-width}/license +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-aeJUAm2h.js","assets/ChevronDown-C3Ygm425.js","assets/login-Am3HfZgi.js","assets/input-6Sf2hB_F.js","assets/reset-password-BN5V7l8r.js","assets/shell-layout-BBGXUnLn.js","assets/dialog-DpgNnjBX.js","assets/X-DlTdh5jK.js","assets/required-auth-layout-jdQgts2c.js","assets/use-tasks-Bg4m_k7S.js","assets/use-collections-DV5bwdGb.js","assets/constants-BXUJyD1c.js","assets/use-organization-settings-B3AsJEWq.js","assets/use-org-sso-CFxSE_n9.js","assets/Lock01-BguDy0uh.js","assets/onboarding-WnwwsOhD.js","assets/label-DoJDMV6i.js","assets/Users03-BPGIuPOi.js","assets/CheckCircle-DenMuCVF.js","assets/Palette-BYEIR3m2.js","assets/index-B13jh3-s.js","assets/index-B2vPEOVc.js","assets/tooltip-pBgOajzM.js","assets/index-swcvm5Z1.js","assets/agent-icon-DzVM2Y3D.js","assets/AlertCircle-CG9syR30.js","assets/Tool01-9otovhMh.js","assets/XClose-CDyDeDuF.js","assets/RefreshCcw01-BHf_tfWd.js","assets/ArrowNarrowLeft-BoVSDn9e.js","assets/XCircle-BE4LAsf8.js","assets/ArrowUpRight-BdaniATT.js","assets/ZapSquare-FWH2wtfn.js","assets/ChevronRight-ZWCM92t_.js","assets/ChevronUp-D2rVf06n.js","assets/DotsVertical-CLHEpDSq.js","assets/Container-D7Azh5xu.js","assets/Star01-BFmiet3n.js","assets/SearchMd-a6724p0Y.js","assets/LinkExternal01-DxXEJ52C.js","assets/Sun-CRJFmy5s.js","assets/Play-Bwjd77ev.js","assets/Plus-DTn86Odk.js","assets/Settings02-CrnanDsL.js","assets/Shield01-DtxRf8Qj.js","assets/Trash01-re7YiF5g.js","assets/User01-BgnyFNdJ.js","assets/Zap-DE6pD70D.js","assets/pair-B01JdgFS.js","assets/index-ImhE7zFL.js","assets/use-copy-lIGig9yc.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-wSZC8rz7.js","assets/chat-context-D8pNmIoM.js","assets/use-virtual-mcp-CwGnYHPH.js","assets/use-ai-providers-DVEz2NmK.js","assets/use-decopilot-events-B38OLSFm.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-8lhkAaq5.js","assets/skeleton-BAo1ij7j.js","assets/popover-BajibMdr.js","assets/drawer-LAm5-sL1.js","assets/avatar-D56WFjQj.js","assets/alert-dialog-Cp4KelsS.js","assets/form-DFO_5Fzm.js","assets/index-r9i7ABND.js","assets/use-mcp-tools-C-hABbHm.js","assets/index-2dOrl4x0.js","assets/switch-BGrAKUyr.js","assets/use-connection-fs-HjrZ7.js","assets/lean-canvas-recruit-modal-CDcr9qCt.js","assets/use-navigate-to-agent-37f-6W2B.js","assets/collection-search-TTX5BBhb.js","assets/checkbox-A-1sOL7a.js","assets/extract-connection-data-cbAHcCfh.js","assets/constants-9TBj0Gaa.js","assets/collections-DY4I1w_a.js","assets/tabs-ChLvcDIf.js","assets/dropdown-menu-CSBZWMuU.js","assets/select-DeRvPFq1.js","assets/toggle-group-BUN1pnfF.js","assets/select-model-Di1os-Ub.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-RBLHL8gf.js","assets/card-CbtqsNyF.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-DYIl7M2a.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-iSBKdQg9.js","assets/use-registry-connections-C9X2yrii.js","assets/useInfiniteQuery-DGrk4ASG.js","assets/infiniteQueryObserver-CxkHF-jm.js","assets/collection-tabs-BYirFRax.js","assets/badge-Brrebgj_.js","assets/textarea-CDageIb2.js","assets/connection-form-helpers-Cad-A9NK.js","assets/use-infinite-scroll-C0wp7W5X.js","assets/useSuspenseInfiniteQuery-cV09mkra.js","assets/collection-search-BtNt6NZG.js","assets/use-create-virtual-mcp-Bz4IDcO1.js","assets/empty-state-D8Ji8JRa.js","assets/task-status-B0G255I6.js","assets/index-D2mitOSe.js","assets/command-DzkZTofz.js","assets/index-DSoRyzSx.js","assets/use-status-sounds-DuT0KslZ.js","assets/accordion-BubDFUkM.js","assets/user-CpC285Qu.js","assets/tools-list-DIvrgoIa.js","assets/scroll-area-SGeY9dE-.js","assets/view-mode-toggle-zrlQPSP1.js","assets/automation-list-row-DP5TESrt.js","assets/search-input-D6oau9hI.js","assets/index-DDGTF8rc.css","assets/index-tSJy2IW6.js","assets/settings-layout-Ds_Ffodp.js","assets/connections-BhCBByIk.js","assets/collection-display-button-hDD2VNh1.js","assets/use-delete-connection-CORGK4Oi.js","assets/use-list-state-DWVI_yIs.js","assets/use-view-mode-_U7GAKYn.js","assets/connection-detail-DeALevd5.js","assets/index-DF5x0d60.js","assets/index-CHNVhIMp.js","assets/index-XLC4yiSV.js","assets/use-members-DbWcRqMH.js","assets/use-org-auth-client-5_rgl0KN.js","assets/layout-BHQ_c4RM.js","assets/monitoring-stats-row-C64ix0dR.js","assets/collection-detail-BiV7gm_U.js","assets/index-C4QwSWi9.js","assets/monaco-editor-CglgsbP6.js","assets/empty-state-C3GO5RSf.js","assets/index-Br3d5-Cj.js","assets/table-0gEoBFzX.js","assets/general-By1woa8E.js","assets/domain-settings-CfEXVZxs.js","assets/features-D_II3j_j.js","assets/brand-context-B9KleYrA.js","assets/ai-providers-CCNzjFxx.js","assets/members-yGwdGYMP.js","assets/collection-table-wrapper-RDfR0u8g.js","assets/use-organization-roles-Cy74Gv9v.js","assets/roles-HeW5UUYX.js","assets/sso-CKN-2e5M.js","assets/profile-DDe57pOS.js","assets/store-hnD4E6ii.js","assets/workflow-D77PbtT7.js","assets/workflow-detail-DAtCF7t1.js","assets/org-plugin-layout-Dsb_WQsm.js","assets/plugin-layout-CP1Bb1gU.js","assets/agents-list-ClVNGy3h.js","assets/automations-BKKclzI8.js","assets/dynamic-plugin-layout-YqPG32No.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-BYnPGK02.js","assets/ChevronDown-ClwyYcv4.js","assets/login-B1PDG9tU.js","assets/input-s7yMiYrQ.js","assets/reset-password-D1P-Z7nY.js","assets/shell-layout-RjvCJ64C.js","assets/dialog-B24YZzA9.js","assets/X-cgiyE3ZM.js","assets/required-auth-layout-23LI14IJ.js","assets/use-tasks-CKR5m1e3.js","assets/use-collections-DFWGNuJR.js","assets/constants-CxLUc4t1.js","assets/use-organization-settings-8KaGxc8P.js","assets/use-org-sso-B1ThBRct.js","assets/Lock01-CJP_L01s.js","assets/onboarding-D_M2p9DV.js","assets/label-DdmR-9sj.js","assets/Users03-DXg5Ltjv.js","assets/CheckCircle-CG65sxv8.js","assets/Palette-DTaJJ6eW.js","assets/index-CHk8-d41.js","assets/index-CLgan7xr.js","assets/tooltip-apD1iSo_.js","assets/index-CJ0MPowS.js","assets/agent-icon-BdKQ6n0b.js","assets/AlertCircle-vEsirhNa.js","assets/Tool01-Baq41T_m.js","assets/XClose-BddCxuhK.js","assets/RefreshCcw01-i1Q8uoB-.js","assets/ArrowNarrowLeft-DZv_aYqP.js","assets/XCircle-pfcw5bLn.js","assets/ArrowUpRight-gnKwWbdS.js","assets/ZapSquare-BcZ9bNOI.js","assets/ChevronRight-C0UgsndQ.js","assets/ChevronUp-0O0O_hLq.js","assets/DotsVertical-BdLY0G_d.js","assets/Container-D1_FRS1u.js","assets/Star01-BRRUiVRZ.js","assets/SearchMd-CaU1opgI.js","assets/LinkExternal01-C0RHT0gp.js","assets/Sun-xRqcyI3R.js","assets/Play-wg-GRHFk.js","assets/Plus-Ukcu1-Za.js","assets/Settings02-sn7Sw6YT.js","assets/Shield01-BV1qTPTH.js","assets/Trash01-vBGY9tLb.js","assets/User01-Dt3HpnQa.js","assets/Zap-Csq8iSdS.js","assets/pair-DipmF7bC.js","assets/index-B2vavj0S.js","assets/use-copy-DefGD5Vz.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-CD5tpm5b.js","assets/chat-context-CyOREmRE.js","assets/use-virtual-mcp-DqIUOY7O.js","assets/use-ai-providers-CGTNouwr.js","assets/use-decopilot-events-ltSQJ_A7.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-BTFNSNVv.js","assets/skeleton-CUpGn6FE.js","assets/popover-BO9bGsCV.js","assets/drawer-CGPAKRwg.js","assets/avatar-DYHAtJIn.js","assets/alert-dialog-eUvHx9LP.js","assets/form-FasOp70m.js","assets/index-UUkaa4t8.js","assets/use-mcp-tools-BrbjMOtH.js","assets/index-CnMcjZ2J.js","assets/switch-DEvD95wE.js","assets/use-connection-C-BvdB1r.js","assets/lean-canvas-recruit-modal-DajQAG70.js","assets/use-navigate-to-agent-vkB0KE5O.js","assets/collection-search-DKaMJpI1.js","assets/checkbox-L6ow9OAH.js","assets/extract-connection-data-C8BcpMzg.js","assets/constants-BOiLyn9k.js","assets/collections-JCMKBQvX.js","assets/tabs-BVEP2lWJ.js","assets/dropdown-menu-D3k5KxvY.js","assets/select-tWER34RX.js","assets/toggle-group-V7Yt1Ex8.js","assets/select-model-BwlI7XmT.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-Dr0LUAWl.js","assets/card-KdWbX1xC.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-CLPpVsE7.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-BGoNyj1I.js","assets/use-registry-connections-q8kr-T41.js","assets/useInfiniteQuery-eU5lg-Wu.js","assets/infiniteQueryObserver-BNzmdrsE.js","assets/collection-tabs-CKmdw5ye.js","assets/badge-CbBFj3dT.js","assets/textarea-D7sU3_M1.js","assets/connection-form-helpers-DiXDE6He.js","assets/use-infinite-scroll-BQ-INmUl.js","assets/useSuspenseInfiniteQuery-ddH3lLnG.js","assets/collection-search-C_3BuKbi.js","assets/use-create-virtual-mcp-CBpUnMCs.js","assets/empty-state-CI0GC98R.js","assets/task-status-CGfLBMZl.js","assets/index-CHehLkTl.js","assets/command-CiVqeZK9.js","assets/index-DSDywrQr.js","assets/use-status-sounds-C19SUHpW.js","assets/accordion-6lnK-4_B.js","assets/user-CaH0b_KG.js","assets/tools-list-CABaXV8v.js","assets/scroll-area-BYgy2rRU.js","assets/view-mode-toggle-D-dHPCyZ.js","assets/automation-list-row-Dr5sNKYc.js","assets/search-input-DouvVIAY.js","assets/index-DDGTF8rc.css","assets/index-CmoaTI3v.js","assets/settings-layout-DM8Inkwn.js","assets/connections-BHvbqlLg.js","assets/collection-display-button-Cd1AAuzE.js","assets/use-delete-connection-DpaPpzHo.js","assets/use-list-state-D1F4t091.js","assets/use-view-mode-C6IKAuZR.js","assets/connection-detail-DgOZE4hQ.js","assets/index-22XZTMRU.js","assets/index-CFi3i8-6.js","assets/index-C6uOB0Y4.js","assets/use-members-b-HHyQxx.js","assets/use-org-auth-client-DpMUudQp.js","assets/layout-b284SHuQ.js","assets/monitoring-stats-row-DhMQIkbL.js","assets/collection-detail-BNa0DV-E.js","assets/index-CGc8iCsx.js","assets/monaco-editor-CI3jdnZr.js","assets/empty-state-Wp7TaLly.js","assets/index-Uci3t_4k.js","assets/table-C3UVFCYb.js","assets/general-B7DIS0Ue.js","assets/domain-settings-WXCddaP7.js","assets/features-Dm0-VLa6.js","assets/brand-context-CH3a97ud.js","assets/ai-providers-GeW9mIp3.js","assets/members-BzR5JdQ2.js","assets/collection-table-wrapper-BZMY30r-.js","assets/use-organization-roles-CBMuGkFt.js","assets/roles-C76lzhHm.js","assets/sso-BIwBaU8W.js","assets/profile-KMr1dQ-Q.js","assets/store-DxMzTKYE.js","assets/workflow-BivIt-Ky.js","assets/workflow-detail-Df9rIeG5.js","assets/org-plugin-layout-DZaqttiB.js","assets/plugin-layout-CN3nu4uU.js","assets/agents-list-CQCT4ln6.js","assets/automations-C3gcgD_I.js","assets/dynamic-plugin-layout-B06IMDFS.js"])))=>i.map(i=>d[i]);
2
2
  function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var ele=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,__.exports=V$()),__.exports}var T=q$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var nO;function G$(){return nO||(nO=1,b_.exports=H$()),b_.exports}var S_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,S_.exports=K$()),S_.exports}var E_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return E_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Z$(),E_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
@@ -168,4 +168,4 @@ ${r}
168
168
  ${r}
169
169
  }`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
170
170
 
171
- `),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-aeJUAm2h.js"),__vite__mapDeps([0,1]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-D3CO3AdB.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-Am3HfZgi.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-BN5V7l8r.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-DAjGP-X3.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-YaQtgy3B.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-DXuTlaTS.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-BBGXUnLn.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-WnwwsOhD.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-DCXUX3EB.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-B13jh3-s.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-D2mitOSe.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-tSJy2IW6.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-Ds_Ffodp.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BhCBByIk.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DeALevd5.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BiV7gm_U.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-Br3d5-Cj.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-By1woa8E.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-D_II3j_j.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-B9KleYrA.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-CCNzjFxx.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-yGwdGYMP.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-HeW5UUYX.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-CKN-2e5M.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-DDe57pOS.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-hnD4E6ii.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BEeKP9Pe.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-s8CHypuf.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-D77PbtT7.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-DAtCF7t1.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-Dsb_WQsm.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-ClVNGy3h.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-BKKclzI8.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-YqPG32No.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
171
+ `),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-BYnPGK02.js"),__vite__mapDeps([0,1]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-Buoq-fSV.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-B1PDG9tU.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-D1P-Z7nY.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-DTPgUDmr.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-BnQ8HZqD.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-CRSRr_xb.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-RjvCJ64C.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-D_M2p9DV.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-D2xtXfus.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-CHk8-d41.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-CHehLkTl.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-CmoaTI3v.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-DM8Inkwn.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BHvbqlLg.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DgOZE4hQ.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BNa0DV-E.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-Uci3t_4k.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-B7DIS0Ue.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Dm0-VLa6.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-CH3a97ud.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-GeW9mIp3.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-BzR5JdQ2.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-C76lzhHm.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-BIwBaU8W.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-KMr1dQ-Q.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-DxMzTKYE.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BQuAXDX3.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-4KpCoRMs.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-BivIt-Ky.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-Df9rIeG5.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-DZaqttiB.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-CQCT4ln6.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-C3gcgD_I.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-B06IMDFS.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
@@ -1 +1 @@
1
- import{r as h}from"./index-CQ4D5GAP.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
1
+ import{r as h}from"./index-DgPBaKAA.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
@@ -1,4 +1,4 @@
1
- import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-CQ4D5GAP.js";import{S as Bs}from"./search-input-D6oau9hI.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-B2vPEOVc.js";import{E as dn}from"./empty-state-D8Ji8JRa.js";import{B as Ke}from"./badge-Brrebgj_.js";import{b as ct,P as dt,a as ut}from"./popover-BajibMdr.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-pBgOajzM.js";import{i as Ht,t as gt}from"./ChevronDown-C3Ygm425.js";import{e as un,c as _t,n as Wn}from"./XCircle-BE4LAsf8.js";import{a as Hs}from"./SearchMd-a6724p0Y.js";import{i as qs}from"./Play-Bwjd77ev.js";import{Y as Vs,Z as Us,x as Ks,X as Gs}from"./agent-icon-DzVM2Y3D.js";import{M as An}from"./monaco-editor-CglgsbP6.js";import{u as Qs}from"./use-members-DbWcRqMH.js";import{u as $n}from"./use-connection-fs-HjrZ7.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-BXUJyD1c.js";import{b as ea}from"./use-virtual-mcp-CwGnYHPH.js";import{n as Ge}from"./Container-D7Azh5xu.js";import{c as ta}from"./XClose-CDyDeDuF.js";import{s as na}from"./Plus-DTn86Odk.js";import{s as sa}from"./Trash01-re7YiF5g.js";import{I as pt}from"./input-6Sf2hB_F.js";import{C as Yn}from"./checkbox-A-1sOL7a.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-DzkZTofz.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-DeRvPFq1.js";import{S as ca}from"./scroll-area-SGeY9dE-.js";import{n as da}from"./ZapSquare-FWH2wtfn.js";import{i as ua}from"./ChevronRight-ZWCM92t_.js";import{T as ma}from"./textarea-CDageIb2.js";import{C as us}from"./collection-tabs-BYirFRax.js";import{S as fa}from"./switch-BGrAKUyr.js";import{L as ha}from"./label-DoJDMV6i.js";import{I as ze}from"./integration-icon-8lhkAaq5.js";import{A as $t}from"./avatar-D56WFjQj.js";import{C as ms}from"./card-CbtqsNyF.js";import{K as st}from"./monitoring-stats-row-C64ix0dR.js";import{c as fs}from"./use-mcp-tools-C-hABbHm.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-cV09mkra.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-0gEoBFzX.js";import{n as xs}from"./ChevronUp-D2rVf06n.js";import{u as gn}from"./use-infinite-scroll-C0wp7W5X.js";import{u as pa}from"./useInfiniteQuery-DGrk4ASG.js";import{w as ga,x as va}from"./pair-B01JdgFS.js";import{S as Lt}from"./task-status-B0G255I6.js";import"./X-DlTdh5jK.js";import"./AlertCircle-CG9syR30.js";import"./Tool01-9otovhMh.js";import"./RefreshCcw01-BHf_tfWd.js";import"./ArrowNarrowLeft-BoVSDn9e.js";import"./ArrowUpRight-BdaniATT.js";import"./Users03-BPGIuPOi.js";import"./CheckCircle-DenMuCVF.js";import"./DotsVertical-CLHEpDSq.js";import"./Star01-BFmiet3n.js";import"./Palette-BYEIR3m2.js";import"./LinkExternal01-DxXEJ52C.js";import"./Lock01-BguDy0uh.js";import"./Sun-CRJFmy5s.js";import"./Settings02-CrnanDsL.js";import"./Shield01-DtxRf8Qj.js";import"./User01-BgnyFNdJ.js";import"./Zap-DE6pD70D.js";import"./index-ImhE7zFL.js";import"./use-org-auth-client-5_rgl0KN.js";import"./use-collections-DV5bwdGb.js";import"./index-DSoRyzSx.js";import"./index-XLC4yiSV.js";import"./infiniteQueryObserver-CxkHF-jm.js";import"./use-copy-lIGig9yc.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-DpgNnjBX.js";import"./content-blocks-o63cs2vh.js";import"./types-wSZC8rz7.js";import"./chat-context-D8pNmIoM.js";import"./use-ai-providers-DVEz2NmK.js";import"./use-decopilot-events-B38OLSFm.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-Bg4m_k7S.js";import"./use-organization-settings-B3AsJEWq.js";import"./shell-layout-BBGXUnLn.js";import"./required-auth-layout-jdQgts2c.js";import"./use-org-sso-CFxSE_n9.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-DgPBaKAA.js";import{S as Bs}from"./search-input-DouvVIAY.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-CLgan7xr.js";import{E as dn}from"./empty-state-CI0GC98R.js";import{B as Ke}from"./badge-CbBFj3dT.js";import{b as ct,P as dt,a as ut}from"./popover-BO9bGsCV.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-apD1iSo_.js";import{i as Ht,t as gt}from"./ChevronDown-ClwyYcv4.js";import{e as un,c as _t,n as Wn}from"./XCircle-pfcw5bLn.js";import{a as Hs}from"./SearchMd-CaU1opgI.js";import{i as qs}from"./Play-wg-GRHFk.js";import{Y as Vs,Z as Us,x as Ks,X as Gs}from"./agent-icon-BdKQ6n0b.js";import{M as An}from"./monaco-editor-CI3jdnZr.js";import{u as Qs}from"./use-members-b-HHyQxx.js";import{u as $n}from"./use-connection-C-BvdB1r.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-CxLUc4t1.js";import{b as ea}from"./use-virtual-mcp-DqIUOY7O.js";import{n as Ge}from"./Container-D1_FRS1u.js";import{c as ta}from"./XClose-BddCxuhK.js";import{s as na}from"./Plus-Ukcu1-Za.js";import{s as sa}from"./Trash01-vBGY9tLb.js";import{I as pt}from"./input-s7yMiYrQ.js";import{C as Yn}from"./checkbox-L6ow9OAH.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-CiVqeZK9.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-tWER34RX.js";import{S as ca}from"./scroll-area-BYgy2rRU.js";import{n as da}from"./ZapSquare-BcZ9bNOI.js";import{i as ua}from"./ChevronRight-C0UgsndQ.js";import{T as ma}from"./textarea-D7sU3_M1.js";import{C as us}from"./collection-tabs-CKmdw5ye.js";import{S as fa}from"./switch-DEvD95wE.js";import{L as ha}from"./label-DdmR-9sj.js";import{I as ze}from"./integration-icon-BTFNSNVv.js";import{A as $t}from"./avatar-DYHAtJIn.js";import{C as ms}from"./card-KdWbX1xC.js";import{K as st}from"./monitoring-stats-row-DhMQIkbL.js";import{c as fs}from"./use-mcp-tools-BrbjMOtH.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-ddH3lLnG.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-C3UVFCYb.js";import{n as xs}from"./ChevronUp-0O0O_hLq.js";import{u as gn}from"./use-infinite-scroll-BQ-INmUl.js";import{u as pa}from"./useInfiniteQuery-eU5lg-Wu.js";import{w as ga,x as va}from"./pair-DipmF7bC.js";import{S as Lt}from"./task-status-CGfLBMZl.js";import"./X-cgiyE3ZM.js";import"./AlertCircle-vEsirhNa.js";import"./Tool01-Baq41T_m.js";import"./RefreshCcw01-i1Q8uoB-.js";import"./ArrowNarrowLeft-DZv_aYqP.js";import"./ArrowUpRight-gnKwWbdS.js";import"./Users03-DXg5Ltjv.js";import"./CheckCircle-CG65sxv8.js";import"./DotsVertical-BdLY0G_d.js";import"./Star01-BRRUiVRZ.js";import"./Palette-DTaJJ6eW.js";import"./LinkExternal01-C0RHT0gp.js";import"./Lock01-CJP_L01s.js";import"./Sun-xRqcyI3R.js";import"./Settings02-sn7Sw6YT.js";import"./Shield01-BV1qTPTH.js";import"./User01-Dt3HpnQa.js";import"./Zap-Csq8iSdS.js";import"./index-B2vavj0S.js";import"./use-org-auth-client-DpMUudQp.js";import"./use-collections-DFWGNuJR.js";import"./index-DSDywrQr.js";import"./index-C6uOB0Y4.js";import"./infiniteQueryObserver-BNzmdrsE.js";import"./use-copy-DefGD5Vz.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-B24YZzA9.js";import"./content-blocks-o63cs2vh.js";import"./types-CD5tpm5b.js";import"./chat-context-CyOREmRE.js";import"./use-ai-providers-CGTNouwr.js";import"./use-decopilot-events-ltSQJ_A7.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-CKR5m1e3.js";import"./use-organization-settings-8KaGxc8P.js";import"./shell-layout-RjvCJ64C.js";import"./required-auth-layout-23LI14IJ.js";import"./use-org-sso-B1ThBRct.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Bn(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...a]=e.split("=");return{key:n||"",operator:"eq",value:a.join("=")}}if(e.includes("~")){const[n,...a]=e.split("~");return{key:n||"",operator:"contains",value:a.join("~")}}if(e.includes("@")){const[n,...a]=e.split("@");return{key:n||"",operator:"in",value:a.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function ya(t){const e={},n={},a=[],r={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":a.push(o.key);break;case"in":o.value&&(r[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:a.length>0?a:void 0,propertyInValues:Object.keys(r).length>0?r:void 0}}function Hn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{dw as d,dx as f,dy as v,dz as x}from"./index-CQ4D5GAP.js";var N=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:g}=i,r=s.fetchMeta?.fetchMore?.direction,h=c&&r==="forward",o=a&&r==="forward",n=c&&r==="backward",u=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x(t,s.data),hasPreviousPage:v(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:g&&!h&&!n,isRefetching:P&&!o&&!u}}};export{N as I};
1
+ import{dw as d,dx as f,dy as v,dz as x}from"./index-DgPBaKAA.js";var N=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:g}=i,r=s.fetchMeta?.fetchMore?.direction,h=c&&r==="forward",o=a&&r==="forward",n=c&&r==="backward",u=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x(t,s.data),hasPreviousPage:v(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:g&&!h&&!n,isRefetching:P&&!o&&!u}}};export{N as I};
@@ -1 +1 @@
1
- import{e as s,c as a,j as d}from"./index-CQ4D5GAP.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-background dark:bg-input/30 px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
1
+ import{e as s,c as a,j as d}from"./index-DgPBaKAA.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-background dark:bg-input/30 px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
@@ -1 +1 @@
1
- import{e as A,j as h,r as z,c as _}from"./index-CQ4D5GAP.js";import{n as L}from"./Container-D7Azh5xu.js";import{A as k}from"./agent-icon-DzVM2Y3D.js";const C={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},Z={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},y={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28},M={"2xs":"xs",xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"lg"};function q(E){const e=A.c(12),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w;if(t?.startsWith("icon://")||t?.includes("#agentcolor=")){const r=M[n];let l;return e[0]!==o||e[1]!==t||e[2]!==s||e[3]!==r?(l=h.jsx(k,{icon:t,name:s,size:r,className:o}),e[0]=o,e[1]=t,e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const g=t??"no-icon";let i;return e[5]!==o||e[6]!==c||e[7]!==t||e[8]!==s||e[9]!==n||e[10]!==g?(i=h.jsx(R,{icon:t,name:s,size:n,className:o,fallbackIcon:c},g),e[5]=o,e[6]=c,e[7]=t,e[8]=s,e[9]=n,e[10]=g,e[11]=i):i=e[11],i}function R(E){const e=A.c(24),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w,[g,i]=z.useState(!1),r=!!t&&g,l=C[n],b=Z[n];let a;e[0]!==o||e[1]!==l||e[2]!==b?(a=_("rounded-lg border border-border shrink-0 overflow-hidden aspect-square bg-white",l,b,o),e[0]=o,e[1]=l,e[2]=b,e[3]=a):a=e[3];const p=t||void 0,N=!r&&"hidden";let m;e[4]!==N?(m=_("h-full w-full object-cover",N),e[4]=N,e[5]=m):m=e[5];let I,S;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=()=>i(!1),S=()=>i(!0),e[6]=I,e[7]=S):(I=e[6],S=e[7]);let d;e[8]!==s||e[9]!==p||e[10]!==m?(d=h.jsx("img",{src:p,alt:s,className:m,onError:I,onLoad:S}),e[8]=s,e[9]=p,e[10]=m,e[11]=d):d=e[11];const v=r&&"hidden";let f;e[12]!==v?(f=_("h-full w-full flex items-center justify-center bg-muted/20",v),e[12]=v,e[13]=f):f=e[13];let x;e[14]!==c||e[15]!==n?(x=c??h.jsx(L,{size:y[n],className:"text-muted-foreground"}),e[14]=c,e[15]=n,e[16]=x):x=e[16];let u;e[17]!==f||e[18]!==x?(u=h.jsx("div",{className:f,children:x}),e[17]=f,e[18]=x,e[19]=u):u=e[19];let j;return e[20]!==d||e[21]!==u||e[22]!==a?(j=h.jsxs("div",{className:a,children:[d,u]}),e[20]=d,e[21]=u,e[22]=a,e[23]=j):j=e[23],j}export{q as I};
1
+ import{e as A,j as h,r as z,c as _}from"./index-DgPBaKAA.js";import{n as L}from"./Container-D1_FRS1u.js";import{A as k}from"./agent-icon-BdKQ6n0b.js";const C={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},Z={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},y={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28},M={"2xs":"xs",xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"lg"};function q(E){const e=A.c(12),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w;if(t?.startsWith("icon://")||t?.includes("#agentcolor=")){const r=M[n];let l;return e[0]!==o||e[1]!==t||e[2]!==s||e[3]!==r?(l=h.jsx(k,{icon:t,name:s,size:r,className:o}),e[0]=o,e[1]=t,e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const g=t??"no-icon";let i;return e[5]!==o||e[6]!==c||e[7]!==t||e[8]!==s||e[9]!==n||e[10]!==g?(i=h.jsx(R,{icon:t,name:s,size:n,className:o,fallbackIcon:c},g),e[5]=o,e[6]=c,e[7]=t,e[8]=s,e[9]=n,e[10]=g,e[11]=i):i=e[11],i}function R(E){const e=A.c(24),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w,[g,i]=z.useState(!1),r=!!t&&g,l=C[n],b=Z[n];let a;e[0]!==o||e[1]!==l||e[2]!==b?(a=_("rounded-lg border border-border shrink-0 overflow-hidden aspect-square bg-white",l,b,o),e[0]=o,e[1]=l,e[2]=b,e[3]=a):a=e[3];const p=t||void 0,N=!r&&"hidden";let m;e[4]!==N?(m=_("h-full w-full object-cover",N),e[4]=N,e[5]=m):m=e[5];let I,S;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=()=>i(!1),S=()=>i(!0),e[6]=I,e[7]=S):(I=e[6],S=e[7]);let d;e[8]!==s||e[9]!==p||e[10]!==m?(d=h.jsx("img",{src:p,alt:s,className:m,onError:I,onLoad:S}),e[8]=s,e[9]=p,e[10]=m,e[11]=d):d=e[11];const v=r&&"hidden";let f;e[12]!==v?(f=_("h-full w-full flex items-center justify-center bg-muted/20",v),e[12]=v,e[13]=f):f=e[13];let x;e[14]!==c||e[15]!==n?(x=c??h.jsx(L,{size:y[n],className:"text-muted-foreground"}),e[14]=c,e[15]=n,e[16]=x):x=e[16];let u;e[17]!==f||e[18]!==x?(u=h.jsx("div",{className:f,children:x}),e[17]=f,e[18]=x,e[19]=u):u=e[19];let j;return e[20]!==d||e[21]!==u||e[22]!==a?(j=h.jsxs("div",{className:a,children:[d,u]}),e[20]=d,e[21]=u,e[22]=a,e[23]=j):j=e[23],j}export{q as I};
@@ -1 +1 @@
1
- import{e as n,c as r,j as i,b5 as p}from"./index-CQ4D5GAP.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
1
+ import{e as n,c as r,j as i,b5 as p}from"./index-DgPBaKAA.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
@@ -1 +1 @@
1
- import{e as C,r as i,c as A,j as a,ao as V}from"./index-CQ4D5GAP.js";import{P as E}from"./index-B2vPEOVc.js";const H=i.createContext(null);function z(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.tabsEl)return null;let c;return e[0]!==l||e[1]!==s.tabsEl?(c=V.createPortal(l,s.tabsEl),e[0]=l,e[1]=s.tabsEl,e[2]=c):c=e[2],c}function D(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.actionsEl)return null;let c;return e[0]!==l||e[1]!==s.actionsEl?(c=V.createPortal(l,s.actionsEl),e[0]=l,e[1]=s.actionsEl,e[2]=c):c=e[2],c}const B=D;function F(x){const e=C.c(21),{children:l,breadcrumb:s,hideHeader:c}=x;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={leftEl:null,tabsEl:null,actionsEl:null},e[0]=b):b=e[0];const[w,g]=i.useState(b),N=i.useRef(null),P=i.useRef(null),L=i.useRef(null);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t=>{N.current=t,t&&g(n=>n.leftEl===t?n:{...n,leftEl:t})},e[1]=h):h=e[1];const $=h;let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=t=>{P.current=t,t&&g(n=>n.tabsEl===t?n:{...n,tabsEl:t})},e[2]=R):R=e[2];const _=R;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t=>{L.current=t,t&&g(n=>n.actionsEl===t?n:{...n,actionsEl:t})},e[3]=d):d=e[3];const k=d,p=c&&"hidden";let o;e[4]!==p?(o=A(p),e[4]=p,e[5]=o):o=e[5];let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx("div",{ref:$,className:"flex items-center gap-2 min-w-0"}),e[6]=j):j=e[6];let r;e[7]!==s?(r=a.jsxs(E.Header.Left,{children:[s,j]}),e[7]=s,e[8]=r):r=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsxs(E.Header.Right,{children:[a.jsx("div",{ref:_,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),a.jsx("div",{ref:k,className:"flex items-center gap-2 shrink-0"})]}),e[9]=y):y=e[9];let f;e[10]!==o||e[11]!==r?(f=a.jsxs(E.Header,{className:o,children:[r,y]}),e[10]=o,e[11]=r,e[12]=f):f=e[12];let m;e[13]!==l?(m=a.jsx(E.Content,{children:l}),e[13]=l,e[14]=m):m=e[14];let u;e[15]!==f||e[16]!==m?(u=a.jsxs(E,{children:[f,m]}),e[15]=f,e[16]=m,e[17]=u):u=e[17];let S;return e[18]!==w||e[19]!==u?(S=a.jsx(H,{value:w,children:u}),e[18]=w,e[19]=u,e[20]=S):S=e[20],S}export{F as V,B as a,z as b};
1
+ import{e as C,r as i,c as A,j as a,ao as V}from"./index-DgPBaKAA.js";import{P as E}from"./index-CLgan7xr.js";const H=i.createContext(null);function z(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.tabsEl)return null;let c;return e[0]!==l||e[1]!==s.tabsEl?(c=V.createPortal(l,s.tabsEl),e[0]=l,e[1]=s.tabsEl,e[2]=c):c=e[2],c}function D(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.actionsEl)return null;let c;return e[0]!==l||e[1]!==s.actionsEl?(c=V.createPortal(l,s.actionsEl),e[0]=l,e[1]=s.actionsEl,e[2]=c):c=e[2],c}const B=D;function F(x){const e=C.c(21),{children:l,breadcrumb:s,hideHeader:c}=x;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={leftEl:null,tabsEl:null,actionsEl:null},e[0]=b):b=e[0];const[w,g]=i.useState(b),N=i.useRef(null),P=i.useRef(null),L=i.useRef(null);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t=>{N.current=t,t&&g(n=>n.leftEl===t?n:{...n,leftEl:t})},e[1]=h):h=e[1];const $=h;let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=t=>{P.current=t,t&&g(n=>n.tabsEl===t?n:{...n,tabsEl:t})},e[2]=R):R=e[2];const _=R;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t=>{L.current=t,t&&g(n=>n.actionsEl===t?n:{...n,actionsEl:t})},e[3]=d):d=e[3];const k=d,p=c&&"hidden";let o;e[4]!==p?(o=A(p),e[4]=p,e[5]=o):o=e[5];let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx("div",{ref:$,className:"flex items-center gap-2 min-w-0"}),e[6]=j):j=e[6];let r;e[7]!==s?(r=a.jsxs(E.Header.Left,{children:[s,j]}),e[7]=s,e[8]=r):r=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsxs(E.Header.Right,{children:[a.jsx("div",{ref:_,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),a.jsx("div",{ref:k,className:"flex items-center gap-2 shrink-0"})]}),e[9]=y):y=e[9];let f;e[10]!==o||e[11]!==r?(f=a.jsxs(E.Header,{className:o,children:[r,y]}),e[10]=o,e[11]=r,e[12]=f):f=e[12];let m;e[13]!==l?(m=a.jsx(E.Content,{children:l}),e[13]=l,e[14]=m):m=e[14];let u;e[15]!==f||e[16]!==m?(u=a.jsxs(E,{children:[f,m]}),e[15]=f,e[16]=m,e[17]=u):u=e[17];let S;return e[18]!==w||e[19]!==u?(S=a.jsx(H,{value:w,children:u}),e[18]=w,e[19]=u,e[20]=S):S=e[20],S}export{F as V,B as a,z as b};
@@ -1,4 +1,4 @@
1
- import{e as U,j as t,s as V,o as we,b as Fe,r as O,K as ne,n as He,a as Be,c as xe,B as ae,t as D,x as oe,G as Je,F as Xe,v as je,P as Ze,l as Ne,w as et,f as tt}from"./index-CQ4D5GAP.js";import{S as ce,u as $,d as Se,W as qe,j as be}from"./constants-BXUJyD1c.js";import{a as _e}from"./use-navigate-to-agent-37f-6W2B.js";import{a as le,b as de,c as ue,d as me,D as nt}from"./dialog-DpgNnjBX.js";import{i as Ae}from"./RefreshCcw01-BHf_tfWd.js";import{C as Qe}from"./collection-search-TTX5BBhb.js";import{C as st}from"./checkbox-A-1sOL7a.js";import{b as Ee,u as it}from"./use-connection-fs-HjrZ7.js";import{i as ot}from"./Lock01-BguDy0uh.js";import{n as at}from"./agent-icon-DzVM2Y3D.js";import{e as rt}from"./extract-connection-data-cbAHcCfh.js";import{b as Oe,a as Le,c as Re,D as Me}from"./drawer-LAm5-sL1.js";import{u as ke}from"./tooltip-pBgOajzM.js";import{I as Ue}from"./integration-icon-8lhkAaq5.js";import{u as ct,d as Ye}from"./use-mcp-tools-C-hABbHm.js";import{a as Pe,b as lt}from"./use-virtual-mcp-CwGnYHPH.js";function re(a){const e=U.c(4),{size:s,className:o}=a;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=d):d=e[0];let n;return e[1]!==o||e[2]!==s?(n=t.jsx("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:o,children:d}),e[1]=o,e[2]=s,e[3]=n):n=e[3],n}function dt(a){return a.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function ut(a){const e=await fetch(`/api/${a}/deco-sites`);if(!e.ok){const s=await e.json().catch(()=>({}));throw new Error(s.error??`Failed to load sites (${e.status})`)}return e.json()}function Wt(a){const e=U.c(70),{open:s,onOpenChange:o,onBack:d}=a,{org:n}=V(),c=_e(),u=we(),{data:l}=Fe.useSession(),[_,p]=O.useState(null),[C,g]=O.useState("");let m;e[0]!==n.id||e[1]!==n.slug?(m={connectionId:ce,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=m):m=e[2];const f=$(m);let r;e[3]!==l?.user?.email?(r=ne.decoSites(l?.user?.email),e[3]=l?.user?.email,e[4]=r):r=e[4];let h;e[5]!==n.slug?(h=()=>ut(n.slug),e[5]=n.slug,e[6]=h):h=e[6];const x=s&&!!l?.user?.email;let T;e[7]!==r||e[8]!==h||e[9]!==x?(T={queryKey:r,queryFn:h,enabled:x,staleTime:6e4,retry:!1},e[7]=r,e[8]=h,e[9]=x,e[10]=T):T=e[10];const{data:b,isLoading:N,error:y}=He(T),i=b?.sites??[];let I;e[11]!==o?(I=w=>{w||(p(null),g("")),o(w)},e[11]=o,e[12]=I):I=e[12];const v=I;let j;e[13]!==C?(j=w=>w.name.toLowerCase().includes(C.toLowerCase())||w.domains?.[0]?.domain.toLowerCase().includes(C.toLowerCase()),e[13]=C,e[14]=j):j=e[14];const S=i.filter(j),A=!_||S.some(w=>w.name===_);let E;e[15]!==f||e[16]!==n.id||e[17]!==n.slug?(E=async w=>{D("deco_site_import_started",{site_name:w});const P=await fetch(`/api/${n.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:w,orgId:n.id})}),G=await P.json().catch(gt);if(!P.ok)throw new Error(G.error??`Failed to create connection (${P.status})`);const M=G.connId;if(!M)throw new Error("Server did not return a connection ID");const he=G.icon??null,te=dt(w),Ge=await f.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:w,description:"Imported from deco.cx",pinned:!0,icon:he??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:he,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:M,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:M,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:M,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:M,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:M,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:M,toolName:"file_explorer"}}}},connections:[{connection_id:M}]}}}),De=Ge.structuredContent??Ge;return{slug:te,virtualMcpId:De.item.id,connId:M,item:De.item}},e[15]=f,e[16]=n.id,e[17]=n.slug,e[18]=E):E=e[18];let R;e[19]!==f||e[20]!==v||e[21]!==c||e[22]!==n.id||e[23]!==u?(R=w=>{const{slug:P,virtualMcpId:G,item:M}=w;D("deco_site_import_succeeded",{site_name:M.title,virtual_mcp_id:G,slug:P}),u.setQueryData(ne.collectionItem(f,n.id,"","VIRTUAL_MCP",G),{item:M}),u.invalidateQueries({predicate:he=>{const te=he.queryKey;return te[1]===n.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),u.invalidateQueries({queryKey:ne.projects(n.id)}),oe.success(`Imported ${P} from deco.cx`),v(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),c(G)},e[19]=f,e[20]=v,e[21]=c,e[22]=n.id,e[23]=u,e[24]=R):R=e[24];let z;e[25]!==E||e[26]!==R?(z={mutationFn:E,onSuccess:R,onError:ft},e[25]=E,e[26]=R,e[27]=z):z=e[27];const k=Be(z),se=de,L=le,ie="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:"Import from deco.cx"})}),e[28]=F):F=e[28];let H;e[29]!==d?(H=d&&t.jsx("button",{type:"button",onClick:d,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:t.jsx(Ae,{size:18})}),e[29]=d,e[30]=H):H=e[30];let fe;e[31]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[31]=fe):fe=e[31];let B;e[32]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,fe]}),e[32]=H,e[33]=B):B=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=w=>{w.key==="Escape"&&g("")},e[34]=ge):ge=e[34];let q;e[35]!==C?(q=t.jsx("div",{children:t.jsx(Qe,{value:C,onChange:g,placeholder:"Search sites...",onKeyDown:ge})}),e[35]=C,e[36]=q):q=e[36];const We="pb-0 min-h-[300px]";let Q;e[37]!==N?(Q=N&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[37]=N,e[38]=Q):Q=e[38];const Ce=!N&&!y&&i.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),Ie=!N&&i.length>0&&t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[S.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",C,"”"]}),S.map(w=>{const P=w.domains?.find(mt)?.domain??w.domains?.[0]?.domain,G=_===w.name;return t.jsxs("button",{type:"button",onClick:()=>p(w.name),className:xe("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",G?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[t.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:w.thumb_url?t.jsx("img",{src:w.thumb_url,alt:w.name,className:"w-full h-full object-cover",loading:"lazy"}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsxs("div",{className:"px-4 py-3",children:[t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:w.name}),P&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:P})]})]},w.name)})]});let Y;e[39]!==Q||e[40]!==Ce||e[41]!==Ie?(Y=t.jsxs("div",{className:We,children:[Q,Ce,Ie]}),e[39]=Q,e[40]=Ce,e[41]=Ie,e[42]=Y):Y=e[42];let K;e[43]!==v?(K=()=>v(!1),e[43]=v,e[44]=K):K=e[44];let W;e[45]!==k.isPending||e[46]!==K?(W=t.jsx(ae,{variant:"outline",onClick:K,disabled:k.isPending,children:"Cancel"}),e[45]=k.isPending,e[46]=K,e[47]=W):W=e[47];const Te=!_||!A||k.isPending||N;let J;e[48]!==k||e[49]!==_?(J=()=>_&&k.mutate(_),e[48]=k,e[49]=_,e[50]=J):J=e[50];const ye=k.isPending?"Importing...":"Import";let X;e[51]!==Te||e[52]!==J||e[53]!==ye?(X=t.jsx(ae,{disabled:Te,onClick:J,children:ye}),e[51]=Te,e[52]=J,e[53]=ye,e[54]=X):X=e[54];let Z;e[55]!==W||e[56]!==X?(Z=t.jsxs(nt,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[55]=W,e[56]=X,e[57]=Z):Z=e[57];let ee;e[58]!==L||e[59]!==F||e[60]!==B||e[61]!==q||e[62]!==Y||e[63]!==Z?(ee=t.jsxs(L,{className:ie,children:[F,B,q,Y,Z]}),e[58]=L,e[59]=F,e[60]=B,e[61]=q,e[62]=Y,e[63]=Z,e[64]=ee):ee=e[64];let pe;return e[65]!==se||e[66]!==v||e[67]!==s||e[68]!==ee?(pe=t.jsx(se,{open:s,onOpenChange:v,children:ee}),e[65]=se,e[66]=v,e[67]=s,e[68]=ee,e[69]=pe):pe=e[69],pe}function mt(a){return a.production}function ft(a){D("deco_site_import_failed",{error:a instanceof Error?a.message:"Unknown error"}),oe.error("Import failed: "+(a instanceof Error?a.message:"Unknown error"))}function gt(){return{}}function Ke(a,e){const s=U.c(12),{org:o}=V();let d;s[0]!==o.id?(d=Se.REGISTRY(o.id),s[0]=o.id,s[1]=d):d=s[1];const n=d;let c;s[2]!==o.id||s[3]!==o.slug||s[4]!==n?(c={connectionId:n,orgId:o.id,orgSlug:o.slug},s[2]=o.id,s[3]=o.slug,s[4]=n,s[5]=c):c=s[5];const u=$(c);let l;s[6]!==a?(l={name:a},s[6]=a,s[7]=l):l=s[7];const _=e?.enabled??!0;let p;return s[8]!==u||s[9]!==l||s[10]!==_?(p={client:u,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:l,enabled:_,staleTime:3e5,select:pt},s[8]=u,s[9]=l,s[10]=_,s[11]=p):p=s[11],ct(p)}function pt(a){return a.structuredContent?.item??null}const ht="deco/mcp-github";function xt(a){const{org:e}=V(),{data:s}=Fe.useSession(),o=Ee(),d=we(),[n,c]=O.useState("idle"),[u,l]=O.useState(null),[_,p]=O.useState(null),{data:C,isLoading:g}=Ke(ht,{enabled:a.enabled}),m=O.useRef(!1);a.enabled&&C&&!g&&!m.current&&s?.user?.id&&n==="idle"&&(m.current=!0,f());async function f(){if(!(!C||!s?.user?.id||!e))try{c("installing"),l(null);const h=rt(C,e.id,s.user.id,{remoteIndex:0});if(!h.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:T}=await o.create.mutateAsync(h);c("authenticating");const b=new URL(`/api/${e.slug}/mcp/${T}`,window.location.origin),N=await Je({url:b.href,token:null,orgId:e.id});if(N.supportsOAuth&&!N.isAuthenticated){const{token:y,tokenInfo:i,error:I}=await Xe({connectionId:T,orgSlug:e.slug,scope:"offline_access"});if(I||!y){try{await o.delete.mutateAsync(T)}catch{}throw new Error(I??"No token received from GitHub")}if(i)try{(await fetch(`/api/${e.slug}/connections/${T}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:i.accessToken,refreshToken:i.refreshToken,expiresIn:i.expiresIn,scope:i.scope,clientId:i.clientId,clientSecret:i.clientSecret,tokenEndpoint:i.tokenEndpoint})})).ok||await o.update.mutateAsync({id:T,data:{connection_token:y}})}catch{await o.update.mutateAsync({id:T,data:{connection_token:y}})}}je(d,e.id),p(h),c("ready")}catch(h){l(h instanceof Error?h.message:String(h)),c("error")}}function r(){c("idle"),l(null),p(null),m.current=!1}return a.enabled&&g&&n==="idle"?{status:"installing",error:null,connection:null,retry:r}:{status:n,error:u,connection:_,retry:r}}function Jt(a){const e=U.c(21),{open:s,onOpenChange:o,title:d,hideAutoRespondCheckbox:n,onImportComplete:c}=a,u=d===void 0?"Import from GitHub":d,l=n===void 0?!1:n,[_]=Ze(),[p,C]=O.useState(null);if(!_.experimental_vibecode)return null;let g;e[0]!==u?(g=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:u})}),e[0]=u,e[1]=g):g=e[1];let m;e[2]!==p||e[3]!==u?(m=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:p?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>C(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(Ae,{size:16})}),t.jsx("img",{src:p.avatarUrl,alt:p.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:p.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(re,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:u})]})}),e[2]=p,e[3]=u,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=f):f=e[5];let r;e[6]!==o?(r=()=>o(!1),e[6]=o,e[7]=r):r=e[7];let h;e[8]!==l||e[9]!==c||e[10]!==p||e[11]!==r?(h=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(O.Suspense,{fallback:f,children:t.jsx(Nt,{onComplete:r,selectedInstallation:p,onSelectInstallation:C,hideAutoRespondCheckbox:l,onImportComplete:c})})}),e[8]=l,e[9]=c,e[10]=p,e[11]=r,e[12]=h):h=e[12];let x;e[13]!==g||e[14]!==m||e[15]!==h?(x=t.jsxs(le,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[g,m,h]}),e[13]=g,e[14]=m,e[15]=h,e[16]=x):x=e[16];let T;return e[17]!==o||e[18]!==s||e[19]!==x?(T=t.jsx(de,{open:s,onOpenChange:o,children:x}),e[17]=o,e[18]=s,e[19]=x,e[20]=T):T=e[20],T}function Nt({onComplete:a,selectedInstallation:e,onSelectInstallation:s,hideAutoRespondCheckbox:o,onImportComplete:d}){const{org:n}=V(),c=we(),u=_e(),[l,_]=O.useState(null),[p,C]=O.useState(!0),g=o?!0:p,m=it({slug:"mcp-github"}),f=xt({enabled:m.length===0}),r=m.length===1?m[0]??null:l,h=$({connectionId:r?.id??"",orgId:n.id,orgSlug:n.slug}),x=$({connectionId:ce,orgId:n.id,orgSlug:n.slug}),T=async(i,I)=>{try{const j=await h.callTool({name:"get_file_contents",arguments:{owner:i.owner,repo:i.name,path:I}});if(j.isError)return null;const A=j.content?.find(E=>E.type==="resource")?.resource?.text;if(!A)return null;try{const E=JSON.parse(A);return typeof E=="string"?E:JSON.stringify(E)}catch{return A}}catch{return null}},b=(i,I)=>{Promise.all([T(I,"AGENTS.md"),T(I,"CLAUDE.md")]).then(async([v,j])=>{const S=v??j??null;S&&(await x.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:i,data:{metadata:{instructions:S}}}}),je(c,n.id))}).catch(v=>{console.error("GitHub instructions fetch failed:",v)})},N=async({virtualMcpId:i,repo:I,connectionId:v})=>{const j=await h.callTool({name:"TRIGGER_LIST",arguments:{}}),S=j.structuredContent??j,A=S.triggers?.find(L=>L.type==="github.issues.opened")??S.triggers?.find(L=>{const ie=L.type.toLowerCase();return/\bissues?\./.test(ie)&&(ie.endsWith(".opened")||ie.endsWith(".created"))});if(!A)throw new Error("No issue-created trigger exposed by GitHub connection");const E=new Set;if(Array.isArray(A.params))for(const L of A.params)E.add(L.name);else if(A.params&&typeof A.params=="object")for(const L of Object.keys(A.params))E.add(L);if(A.paramsSchema)for(const L of Object.keys(A.paramsSchema))E.add(L);const R={};E.has("repo")?R.repo=`${I.owner}/${I.name}`:(E.has("owner")&&(R.owner=I.owner),E.has("name")&&(R.name=I.name),E.has("repository")&&(R.repository=`${I.owner}/${I.name}`));const z=`A new GitHub issue has been opened in ${I.owner}/${I.name}. Read the issue details, explore the relevant code in the repository, create a new branch, implement the fix or feature requested, and open a pull request that resolves the issue. Reference the issue number in the PR description.`,k=await x.callTool({name:"AUTOMATION_CREATE",arguments:{name:`${I.name}: auto-respond to issues`,virtual_mcp_id:i,agent:{id:i},messages:z,active:!0}}),se=k.structuredContent??k;await x.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:se.id,type:"event",connection_id:v,event_type:A.type,params:R}})},y=Be({mutationFn:async i=>{if(!r||!e)throw new Error("No GitHub connection or installation");const I=r.id,v=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:i.name,description:i.description||"Imported from GitHub",pinned:!0,icon:null,metadata:{githubRepo:{owner:i.owner,name:i.name,url:i.url,installationId:e.installationId,connectionId:I},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"}}}},connections:[{connection_id:I}]}}}),j=v.structuredContent??v,S=j.item.id;return g&&await N({virtualMcpId:S,repo:i,connectionId:I}).catch(A=>{console.error("Failed to set up issue automation:",A),oe.warning("Imported repo, but failed to set up issue auto-response. You can add the trigger manually from the automations view.")}),{virtualMcpId:S,repo:i,connectionId:I,item:j.item}},onSuccess:({virtualMcpId:i,repo:I,connectionId:v,item:j})=>{if(c.setQueryData(ne.collectionItem(x,n.id,"","VIRTUAL_MCP",i),{item:j}),je(c,n.id),b(i,I),d){d({virtualMcpId:i,repo:I,connectionId:v});return}oe.success(`Imported ${I.name} from GitHub`),a(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),u(i)},onError:i=>{oe.error("Failed to import repo: "+(i instanceof Error?i.message:"Unknown error"))}});return f.status==="installing"||f.status==="authenticating"?t.jsx(ve,{status:f.status,error:null,retry:f.retry}):f.status==="error"?t.jsx(ve,{status:"error",error:f.error,retry:f.retry}):m.length===0&&f.status==="idle"?t.jsx(ve,{status:"installing",error:null,retry:f.retry}):m.length>1&&!r?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),m.map(i=>t.jsxs("button",{type:"button",onClick:()=>_(i),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[i.icon?t.jsx("img",{src:i.icon,alt:i.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(re,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:i.title})]},i.id))]}):r?e?t.jsx(Ct,{connectionId:r.id,orgId:n.id,orgSlug:n.slug,installation:e,onSelectRepo:i=>y.mutate(i),isSaving:y.isPending,autoRespondToIssues:p,onAutoRespondChange:C,hideAutoRespondCheckbox:o}):t.jsx(_t,{connectionId:r.id,orgId:n.id,orgSlug:n.slug,onSelect:s,showBackButton:m.length>1,onBack:()=>_(null)}):null}function _t(a){const e=U.c(31),{connectionId:s,orgId:o,orgSlug:d,onSelect:n,showBackButton:c,onBack:u}=a;let l;e[0]!==o||e[1]!==d?(l={connectionId:ce,orgId:o,orgSlug:d},e[0]=o,e[1]=d,e[2]=l):l=e[2];const _=$(l);let p;e[3]!==s||e[4]!==o?(p=ne.githubUserOrgs(o,s),e[3]=s,e[4]=o,e[5]=p):p=e[5];let C;e[6]!==s||e[7]!==_?(C=async()=>{const I=(await _.callTool({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:s}})).content?.[0]?.text;if(!I)throw new Error("No response from GITHUB_LIST_USER_ORGS");return JSON.parse(I)},e[6]=s,e[7]=_,e[8]=C):C=e[8];let g;e[9]!==p||e[10]!==C?(g={queryKey:p,queryFn:C},e[9]=p,e[10]=C,e[11]=g):g=e[11];const m=He(g);if(m.isLoading){let i;return e[12]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[12]=i):i=e[12],i}if(m.isError){let i;return e[13]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"})}),e[13]=i):i=e[13],i}const f=m.data;if(!f)return null;let r;e[14]!==u||e[15]!==c?(r=c&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:u,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(Ae,{size:12}),"Change connection"]})}),e[14]=u,e[15]=c,e[16]=r):r=e[16];let h;if(e[17]!==f.installations||e[18]!==n){let i;e[20]!==n?(i=I=>t.jsxs("button",{type:"button",onClick:()=>n(I),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:I.avatarUrl,alt:I.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:I.login}),I.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},I.installationId),e[20]=n,e[21]=i):i=e[21],h=f.installations.map(i),e[17]=f.installations,e[18]=n,e[19]=h}else h=e[19];let x;e[22]!==h?(x=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:h}),e[22]=h,e[23]=x):x=e[23];const T=f.appSlug?`https://github.com/apps/${f.appSlug}/installations/new`:"https://github.com/settings/installations";let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[24]=b):b=e[24];let N;e[25]!==T?(N=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",b]})}),e[25]=T,e[26]=N):N=e[26];let y;return e[27]!==N||e[28]!==r||e[29]!==x?(y=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,x,N]}),e[27]=N,e[28]=r,e[29]=x,e[30]=y):y=e[30],y}function Ct(a){const e=U.c(25),{connectionId:s,orgId:o,orgSlug:d,installation:n,onSelectRepo:c,isSaving:u,autoRespondToIssues:l,onAutoRespondChange:_,hideAutoRespondCheckbox:p}=a,[C,g]=O.useState(""),m=O.useDeferredValue(C),f=C!==m;let r;e[0]!==f||e[1]!==C?(r=t.jsx(Qe,{placeholder:"Search repositories...",value:C,onChange:g,isSearching:f}),e[0]=f,e[1]=C,e[2]=r):r=e[2];const h=f?"opacity-40":"opacity-100";let x;e[3]!==h?(x=xe("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",h),e[3]=h,e[4]=x):x=e[4];let T;e[5]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=T):T=e[5];let b;e[6]!==s||e[7]!==m||e[8]!==n||e[9]!==u||e[10]!==c||e[11]!==o||e[12]!==d?(b=t.jsx(O.Suspense,{fallback:T,children:t.jsx(It,{connectionId:s,orgId:o,orgSlug:d,installation:n,query:m,onSelectRepo:c,isSaving:u})}),e[6]=s,e[7]=m,e[8]=n,e[9]=u,e[10]=c,e[11]=o,e[12]=d,e[13]=b):b=e[13];let N;e[14]!==x||e[15]!==b?(N=t.jsx("div",{className:x,children:b}),e[14]=x,e[15]=b,e[16]=N):N=e[16];let y;e[17]!==l||e[18]!==p||e[19]!==_?(y=!p&&t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0 cursor-pointer select-none",children:[t.jsx(st,{checked:l,onCheckedChange:I=>_(I===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Auto-respond to new issues with a PR"})]}),e[17]=l,e[18]=p,e[19]=_,e[20]=y):y=e[20];let i;return e[21]!==r||e[22]!==N||e[23]!==y?(i=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,N,y]}),e[21]=r,e[22]=N,e[23]=y,e[24]=i):i=e[24],i}function It(a){const e=U.c(29),{connectionId:s,orgId:o,orgSlug:d,installation:n,query:c,onSelectRepo:u,isSaving:l}=a;let _;e[0]!==s||e[1]!==o||e[2]!==d?(_={connectionId:s,orgId:o,orgSlug:d},e[0]=s,e[1]=o,e[2]=d,e[3]=_):_=e[3];const p=$(_),C=n.type==="User"?"user":"org",g=c?`${C}:${n.login} ${c} in:name`:`${C}:${n.login}`;let m;e[4]!==s||e[5]!==n.login||e[6]!==o||e[7]!==c?(m=ne.githubOrgRepos(o,s,n.login,c),e[4]=s,e[5]=n.login,e[6]=o,e[7]=c,e[8]=m):m=e[8];let f;e[9]!==p||e[10]!==g?(f=async()=>{const N=(await p.callTool({name:"search_repositories",arguments:{query:g,page:1,perPage:30}})).content?.[0]?.text;if(!N)throw new Error("No response from search_repositories");return(JSON.parse(N).items??[]).map(Tt)},e[9]=p,e[10]=g,e[11]=f):f=e[11];let r;e[12]!==m||e[13]!==f?(r={queryKey:m,queryFn:f},e[12]=m,e[13]=f,e[14]=r):r=e[14];const{data:h}=et(r);if(h.length===0){let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=b):b=e[15];let N;e[16]!==c?(N=c&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=c,e[17]=N):N=e[17];let y;return e[18]!==N?(y=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[b,N]}),e[18]=N,e[19]=y):y=e[19],y}let x;if(e[20]!==l||e[21]!==u||e[22]!==h){let b;e[24]!==l||e[25]!==u?(b=N=>t.jsxs("button",{type:"button",onClick:()=>u(N),disabled:l,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(re,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:N.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[N.private?t.jsx(ot,{size:10}):t.jsx(at,{size:10}),N.private?"Private":"Public"]})]},N.fullName),e[24]=l,e[25]=u,e[26]=b):b=e[26],x=h.map(b),e[20]=l,e[21]=u,e[22]=h,e[23]=x}else x=e[23];let T;return e[27]!==x?(T=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:x}),e[27]=x,e[28]=T):T=e[28],T}function Tt(a){return{name:a.name,fullName:a.full_name,owner:a.full_name.split("/")[0]??"",url:a.html_url,private:a.private,description:a.description,updatedAt:a.updated_at}}function ve(a){const e=U.c(33),{status:s,error:o,retry:d}=a;if(s==="error"){let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-destructive"})}),e[0]=i):i=e[0];let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=I):I=e[1];const v=o??"Something went wrong while connecting to GitHub.";let j;e[2]!==v?(j=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[I,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:v})]}),e[2]=v,e[3]=j):j=e[3];let S;e[4]!==d?(S=t.jsx("button",{type:"button",onClick:d,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=d,e[5]=S):S=e[5];let A;return e[6]!==j||e[7]!==S?(A=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[i,j,S]}),e[6]=j,e[7]=S,e[8]=A):A=e[8],A}const n=s==="authenticating";let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-foreground"})}),e[9]=c):c=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"relative size-10",children:[c,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(Ne,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=u):u=e[10];const l=n?"Authenticating with GitHub":"Setting up GitHub";let _;e[11]!==l?(_=t.jsx("p",{className:"text-sm font-medium",children:l}),e[11]=l,e[12]=_):_=e[12];const p=n?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let C;e[13]!==p?(C=t.jsx("p",{className:"text-xs text-muted-foreground",children:p}),e[13]=p,e[14]=C):C=e[14];let g;e[15]!==_||e[16]!==C?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[_,C]}),e[15]=_,e[16]=C,e[17]=g):g=e[17];const m=n?"bg-muted-foreground/30":"bg-foreground animate-pulse";let f;e[18]!==m?(f=xe("size-1.5 rounded-full",m),e[18]=m,e[19]=f):f=e[19];let r;e[20]!==f?(r=t.jsx("span",{className:f}),e[20]=f,e[21]=r):r=e[21];const h=n?"bg-foreground animate-pulse":"bg-muted-foreground/30";let x;e[22]!==h?(x=xe("size-1.5 rounded-full",h),e[22]=h,e[23]=x):x=e[23];let T;e[24]!==x?(T=t.jsx("span",{className:x}),e[24]=x,e[25]=T):T=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=b):b=e[26];let N;e[27]!==r||e[28]!==T?(N=t.jsxs("div",{className:"flex items-center gap-1.5",children:[r,T,b]}),e[27]=r,e[28]=T,e[29]=N):N=e[29];let y;return e[30]!==N||e[31]!==g?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[u,g,N]}),e[30]=N,e[31]=g,e[32]=y):y=e[32],y}const yt=["Full HAR capture with cache, TTFB, and request analysis","Screenshot capture for visual inspection","Page discovery via sitemap, navigation, and link crawling","SEO audit — meta tags, structured data, robots.txt","Third-party script inventory and size analysis","Dead link detection across the entire site","Deco-specific diagnostics (?__d debug mode)"];function $e(a){const e=U.c(7),{onRecruit:s,isRecruiting:o,isLoading:d}=a;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a blackbox diagnostics agent that tests your storefront from the outside — no internal access needed. Give it a URL and it produces a detailed performance and health report."}),e[0]=n):n=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=c):c=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"space-y-2",children:[c,t.jsx("ul",{className:"space-y-1.5",children:yt.map(bt)})]}),e[2]=u):u=e[2];const l=o||d,_=o?"Setting up...":"Add Site Diagnostics";let p;return e[3]!==s||e[4]!==l||e[5]!==_?(p=t.jsxs("div",{className:"flex flex-col gap-6",children:[n,u,t.jsx(ae,{onClick:s,disabled:l,className:"w-full cursor-pointer",children:_})]}),e[3]=s,e[4]=l,e[5]=_,e[6]=p):p=e[6],p}function bt(a){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),a]},a)}function Xt({open:a,onOpenChange:e,existingAgent:s}){const o=ke(),{org:d}=V(),n=_e(),c=Ee(),u=Pe(),l=$({connectionId:ce,orgId:d.id,orgSlug:d.slug}),_=Ye({client:l}),[p,C]=O.useState(!1),g=qe.find(y=>y.id==="site-diagnostics"),{data:m,isLoading:f}=Ke(g.appId,{enabled:a}),r=m?.title||m?.server?.title||m?.server?.name||g.title,h=m?.server?.icons?.[0]?.src??g.icon,x=m?.server?.description??null,T=t.jsx(Ue,{icon:h,name:r,size:"sm"}),b=async()=>{if(m){if(s){e(!1),n(s.id);return}C(!0);try{const y=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:g.appId},limit:1,offset:0}});let i;const v=y?.structuredContent?.items?.find(S=>S.app_id===g.appId);if(v)i=v.id;else{const S=m.server?.remotes?.[0]?.url;if(!S)throw new Error("Registry item is missing a remote URL for site-diagnostics");i=(await c.create.mutateAsync({title:r,description:x,icon:m.server?.icons?.[0]?.src??g.icon,connection_type:"HTTP",connection_url:S,app_name:m.server?.name??"site-diagnostics",app_id:g.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:g.appId,verified:!0}})).id}const j=await u.create.mutateAsync({title:r,description:x,icon:h,status:"active",connections:[{connection_id:i,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"site-diagnostics",instructions:null,ui:{pinnedViews:[{connectionId:i,toolName:"diagnose",label:"diagnose",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:i,toolName:"diagnose"}}}}});D("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:j.id}),e(!1),n(j.id)}catch(y){D("agent_recruit_failed",{template_id:"site-diagnostics",error:y instanceof Error?y.message:String(y)}),console.error("Failed to create Site Diagnostics agent:",y)}finally{C(!1)}}},N=`Add ${r}`;return o?t.jsx(Oe,{open:a,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[T,t.jsx(Me,{className:"text-xl font-semibold",children:N})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx($e,{onRecruit:b,isRecruiting:p,isLoading:f})})]})}):t.jsx(de,{open:a,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[T,t.jsx(me,{className:"text-xl font-semibold",children:N})]})}),t.jsx($e,{onRecruit:b,isRecruiting:p,isLoading:f})]})})}const vt=`<role>
1
+ import{e as U,j as t,s as V,o as we,b as Fe,r as O,K as ne,n as He,a as Be,c as xe,B as ae,t as D,x as oe,G as Je,F as Xe,v as je,P as Ze,l as Ne,w as et,f as tt}from"./index-DgPBaKAA.js";import{S as ce,u as $,d as Se,W as qe,j as be}from"./constants-CxLUc4t1.js";import{a as _e}from"./use-navigate-to-agent-vkB0KE5O.js";import{a as le,b as de,c as ue,d as me,D as nt}from"./dialog-B24YZzA9.js";import{i as Ae}from"./RefreshCcw01-i1Q8uoB-.js";import{C as Qe}from"./collection-search-DKaMJpI1.js";import{C as st}from"./checkbox-L6ow9OAH.js";import{b as Ee,u as it}from"./use-connection-C-BvdB1r.js";import{i as ot}from"./Lock01-CJP_L01s.js";import{n as at}from"./agent-icon-BdKQ6n0b.js";import{e as rt}from"./extract-connection-data-C8BcpMzg.js";import{b as Oe,a as Le,c as Re,D as Me}from"./drawer-CGPAKRwg.js";import{u as ke}from"./tooltip-apD1iSo_.js";import{I as Ue}from"./integration-icon-BTFNSNVv.js";import{u as ct,d as Ye}from"./use-mcp-tools-BrbjMOtH.js";import{a as Pe,b as lt}from"./use-virtual-mcp-DqIUOY7O.js";function re(a){const e=U.c(4),{size:s,className:o}=a;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=d):d=e[0];let n;return e[1]!==o||e[2]!==s?(n=t.jsx("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:o,children:d}),e[1]=o,e[2]=s,e[3]=n):n=e[3],n}function dt(a){return a.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function ut(a){const e=await fetch(`/api/${a}/deco-sites`);if(!e.ok){const s=await e.json().catch(()=>({}));throw new Error(s.error??`Failed to load sites (${e.status})`)}return e.json()}function Wt(a){const e=U.c(70),{open:s,onOpenChange:o,onBack:d}=a,{org:n}=V(),c=_e(),u=we(),{data:l}=Fe.useSession(),[_,p]=O.useState(null),[C,g]=O.useState("");let m;e[0]!==n.id||e[1]!==n.slug?(m={connectionId:ce,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=m):m=e[2];const f=$(m);let r;e[3]!==l?.user?.email?(r=ne.decoSites(l?.user?.email),e[3]=l?.user?.email,e[4]=r):r=e[4];let h;e[5]!==n.slug?(h=()=>ut(n.slug),e[5]=n.slug,e[6]=h):h=e[6];const x=s&&!!l?.user?.email;let T;e[7]!==r||e[8]!==h||e[9]!==x?(T={queryKey:r,queryFn:h,enabled:x,staleTime:6e4,retry:!1},e[7]=r,e[8]=h,e[9]=x,e[10]=T):T=e[10];const{data:b,isLoading:N,error:y}=He(T),i=b?.sites??[];let I;e[11]!==o?(I=w=>{w||(p(null),g("")),o(w)},e[11]=o,e[12]=I):I=e[12];const v=I;let j;e[13]!==C?(j=w=>w.name.toLowerCase().includes(C.toLowerCase())||w.domains?.[0]?.domain.toLowerCase().includes(C.toLowerCase()),e[13]=C,e[14]=j):j=e[14];const S=i.filter(j),A=!_||S.some(w=>w.name===_);let E;e[15]!==f||e[16]!==n.id||e[17]!==n.slug?(E=async w=>{D("deco_site_import_started",{site_name:w});const P=await fetch(`/api/${n.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:w,orgId:n.id})}),G=await P.json().catch(gt);if(!P.ok)throw new Error(G.error??`Failed to create connection (${P.status})`);const M=G.connId;if(!M)throw new Error("Server did not return a connection ID");const he=G.icon??null,te=dt(w),Ge=await f.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:w,description:"Imported from deco.cx",pinned:!0,icon:he??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:he,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:M,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:M,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:M,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:M,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:M,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:M,toolName:"file_explorer"}}}},connections:[{connection_id:M}]}}}),De=Ge.structuredContent??Ge;return{slug:te,virtualMcpId:De.item.id,connId:M,item:De.item}},e[15]=f,e[16]=n.id,e[17]=n.slug,e[18]=E):E=e[18];let R;e[19]!==f||e[20]!==v||e[21]!==c||e[22]!==n.id||e[23]!==u?(R=w=>{const{slug:P,virtualMcpId:G,item:M}=w;D("deco_site_import_succeeded",{site_name:M.title,virtual_mcp_id:G,slug:P}),u.setQueryData(ne.collectionItem(f,n.id,"","VIRTUAL_MCP",G),{item:M}),u.invalidateQueries({predicate:he=>{const te=he.queryKey;return te[1]===n.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),u.invalidateQueries({queryKey:ne.projects(n.id)}),oe.success(`Imported ${P} from deco.cx`),v(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),c(G)},e[19]=f,e[20]=v,e[21]=c,e[22]=n.id,e[23]=u,e[24]=R):R=e[24];let z;e[25]!==E||e[26]!==R?(z={mutationFn:E,onSuccess:R,onError:ft},e[25]=E,e[26]=R,e[27]=z):z=e[27];const k=Be(z),se=de,L=le,ie="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:"Import from deco.cx"})}),e[28]=F):F=e[28];let H;e[29]!==d?(H=d&&t.jsx("button",{type:"button",onClick:d,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:t.jsx(Ae,{size:18})}),e[29]=d,e[30]=H):H=e[30];let fe;e[31]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[31]=fe):fe=e[31];let B;e[32]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,fe]}),e[32]=H,e[33]=B):B=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=w=>{w.key==="Escape"&&g("")},e[34]=ge):ge=e[34];let q;e[35]!==C?(q=t.jsx("div",{children:t.jsx(Qe,{value:C,onChange:g,placeholder:"Search sites...",onKeyDown:ge})}),e[35]=C,e[36]=q):q=e[36];const We="pb-0 min-h-[300px]";let Q;e[37]!==N?(Q=N&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[37]=N,e[38]=Q):Q=e[38];const Ce=!N&&!y&&i.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),Ie=!N&&i.length>0&&t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[S.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",C,"”"]}),S.map(w=>{const P=w.domains?.find(mt)?.domain??w.domains?.[0]?.domain,G=_===w.name;return t.jsxs("button",{type:"button",onClick:()=>p(w.name),className:xe("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",G?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[t.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:w.thumb_url?t.jsx("img",{src:w.thumb_url,alt:w.name,className:"w-full h-full object-cover",loading:"lazy"}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsxs("div",{className:"px-4 py-3",children:[t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:w.name}),P&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:P})]})]},w.name)})]});let Y;e[39]!==Q||e[40]!==Ce||e[41]!==Ie?(Y=t.jsxs("div",{className:We,children:[Q,Ce,Ie]}),e[39]=Q,e[40]=Ce,e[41]=Ie,e[42]=Y):Y=e[42];let K;e[43]!==v?(K=()=>v(!1),e[43]=v,e[44]=K):K=e[44];let W;e[45]!==k.isPending||e[46]!==K?(W=t.jsx(ae,{variant:"outline",onClick:K,disabled:k.isPending,children:"Cancel"}),e[45]=k.isPending,e[46]=K,e[47]=W):W=e[47];const Te=!_||!A||k.isPending||N;let J;e[48]!==k||e[49]!==_?(J=()=>_&&k.mutate(_),e[48]=k,e[49]=_,e[50]=J):J=e[50];const ye=k.isPending?"Importing...":"Import";let X;e[51]!==Te||e[52]!==J||e[53]!==ye?(X=t.jsx(ae,{disabled:Te,onClick:J,children:ye}),e[51]=Te,e[52]=J,e[53]=ye,e[54]=X):X=e[54];let Z;e[55]!==W||e[56]!==X?(Z=t.jsxs(nt,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[55]=W,e[56]=X,e[57]=Z):Z=e[57];let ee;e[58]!==L||e[59]!==F||e[60]!==B||e[61]!==q||e[62]!==Y||e[63]!==Z?(ee=t.jsxs(L,{className:ie,children:[F,B,q,Y,Z]}),e[58]=L,e[59]=F,e[60]=B,e[61]=q,e[62]=Y,e[63]=Z,e[64]=ee):ee=e[64];let pe;return e[65]!==se||e[66]!==v||e[67]!==s||e[68]!==ee?(pe=t.jsx(se,{open:s,onOpenChange:v,children:ee}),e[65]=se,e[66]=v,e[67]=s,e[68]=ee,e[69]=pe):pe=e[69],pe}function mt(a){return a.production}function ft(a){D("deco_site_import_failed",{error:a instanceof Error?a.message:"Unknown error"}),oe.error("Import failed: "+(a instanceof Error?a.message:"Unknown error"))}function gt(){return{}}function Ke(a,e){const s=U.c(12),{org:o}=V();let d;s[0]!==o.id?(d=Se.REGISTRY(o.id),s[0]=o.id,s[1]=d):d=s[1];const n=d;let c;s[2]!==o.id||s[3]!==o.slug||s[4]!==n?(c={connectionId:n,orgId:o.id,orgSlug:o.slug},s[2]=o.id,s[3]=o.slug,s[4]=n,s[5]=c):c=s[5];const u=$(c);let l;s[6]!==a?(l={name:a},s[6]=a,s[7]=l):l=s[7];const _=e?.enabled??!0;let p;return s[8]!==u||s[9]!==l||s[10]!==_?(p={client:u,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:l,enabled:_,staleTime:3e5,select:pt},s[8]=u,s[9]=l,s[10]=_,s[11]=p):p=s[11],ct(p)}function pt(a){return a.structuredContent?.item??null}const ht="deco/mcp-github";function xt(a){const{org:e}=V(),{data:s}=Fe.useSession(),o=Ee(),d=we(),[n,c]=O.useState("idle"),[u,l]=O.useState(null),[_,p]=O.useState(null),{data:C,isLoading:g}=Ke(ht,{enabled:a.enabled}),m=O.useRef(!1);a.enabled&&C&&!g&&!m.current&&s?.user?.id&&n==="idle"&&(m.current=!0,f());async function f(){if(!(!C||!s?.user?.id||!e))try{c("installing"),l(null);const h=rt(C,e.id,s.user.id,{remoteIndex:0});if(!h.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:T}=await o.create.mutateAsync(h);c("authenticating");const b=new URL(`/api/${e.slug}/mcp/${T}`,window.location.origin),N=await Je({url:b.href,token:null,orgId:e.id});if(N.supportsOAuth&&!N.isAuthenticated){const{token:y,tokenInfo:i,error:I}=await Xe({connectionId:T,orgSlug:e.slug,scope:"offline_access"});if(I||!y){try{await o.delete.mutateAsync(T)}catch{}throw new Error(I??"No token received from GitHub")}if(i)try{(await fetch(`/api/${e.slug}/connections/${T}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:i.accessToken,refreshToken:i.refreshToken,expiresIn:i.expiresIn,scope:i.scope,clientId:i.clientId,clientSecret:i.clientSecret,tokenEndpoint:i.tokenEndpoint})})).ok||await o.update.mutateAsync({id:T,data:{connection_token:y}})}catch{await o.update.mutateAsync({id:T,data:{connection_token:y}})}}je(d,e.id),p(h),c("ready")}catch(h){l(h instanceof Error?h.message:String(h)),c("error")}}function r(){c("idle"),l(null),p(null),m.current=!1}return a.enabled&&g&&n==="idle"?{status:"installing",error:null,connection:null,retry:r}:{status:n,error:u,connection:_,retry:r}}function Jt(a){const e=U.c(21),{open:s,onOpenChange:o,title:d,hideAutoRespondCheckbox:n,onImportComplete:c}=a,u=d===void 0?"Import from GitHub":d,l=n===void 0?!1:n,[_]=Ze(),[p,C]=O.useState(null);if(!_.experimental_vibecode)return null;let g;e[0]!==u?(g=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:u})}),e[0]=u,e[1]=g):g=e[1];let m;e[2]!==p||e[3]!==u?(m=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:p?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>C(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(Ae,{size:16})}),t.jsx("img",{src:p.avatarUrl,alt:p.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:p.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(re,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:u})]})}),e[2]=p,e[3]=u,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=f):f=e[5];let r;e[6]!==o?(r=()=>o(!1),e[6]=o,e[7]=r):r=e[7];let h;e[8]!==l||e[9]!==c||e[10]!==p||e[11]!==r?(h=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(O.Suspense,{fallback:f,children:t.jsx(Nt,{onComplete:r,selectedInstallation:p,onSelectInstallation:C,hideAutoRespondCheckbox:l,onImportComplete:c})})}),e[8]=l,e[9]=c,e[10]=p,e[11]=r,e[12]=h):h=e[12];let x;e[13]!==g||e[14]!==m||e[15]!==h?(x=t.jsxs(le,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[g,m,h]}),e[13]=g,e[14]=m,e[15]=h,e[16]=x):x=e[16];let T;return e[17]!==o||e[18]!==s||e[19]!==x?(T=t.jsx(de,{open:s,onOpenChange:o,children:x}),e[17]=o,e[18]=s,e[19]=x,e[20]=T):T=e[20],T}function Nt({onComplete:a,selectedInstallation:e,onSelectInstallation:s,hideAutoRespondCheckbox:o,onImportComplete:d}){const{org:n}=V(),c=we(),u=_e(),[l,_]=O.useState(null),[p,C]=O.useState(!0),g=o?!0:p,m=it({slug:"mcp-github"}),f=xt({enabled:m.length===0}),r=m.length===1?m[0]??null:l,h=$({connectionId:r?.id??"",orgId:n.id,orgSlug:n.slug}),x=$({connectionId:ce,orgId:n.id,orgSlug:n.slug}),T=async(i,I)=>{try{const j=await h.callTool({name:"get_file_contents",arguments:{owner:i.owner,repo:i.name,path:I}});if(j.isError)return null;const A=j.content?.find(E=>E.type==="resource")?.resource?.text;if(!A)return null;try{const E=JSON.parse(A);return typeof E=="string"?E:JSON.stringify(E)}catch{return A}}catch{return null}},b=(i,I)=>{Promise.all([T(I,"AGENTS.md"),T(I,"CLAUDE.md")]).then(async([v,j])=>{const S=v??j??null;S&&(await x.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:i,data:{metadata:{instructions:S}}}}),je(c,n.id))}).catch(v=>{console.error("GitHub instructions fetch failed:",v)})},N=async({virtualMcpId:i,repo:I,connectionId:v})=>{const j=await h.callTool({name:"TRIGGER_LIST",arguments:{}}),S=j.structuredContent??j,A=S.triggers?.find(L=>L.type==="github.issues.opened")??S.triggers?.find(L=>{const ie=L.type.toLowerCase();return/\bissues?\./.test(ie)&&(ie.endsWith(".opened")||ie.endsWith(".created"))});if(!A)throw new Error("No issue-created trigger exposed by GitHub connection");const E=new Set;if(Array.isArray(A.params))for(const L of A.params)E.add(L.name);else if(A.params&&typeof A.params=="object")for(const L of Object.keys(A.params))E.add(L);if(A.paramsSchema)for(const L of Object.keys(A.paramsSchema))E.add(L);const R={};E.has("repo")?R.repo=`${I.owner}/${I.name}`:(E.has("owner")&&(R.owner=I.owner),E.has("name")&&(R.name=I.name),E.has("repository")&&(R.repository=`${I.owner}/${I.name}`));const z=`A new GitHub issue has been opened in ${I.owner}/${I.name}. Read the issue details, explore the relevant code in the repository, create a new branch, implement the fix or feature requested, and open a pull request that resolves the issue. Reference the issue number in the PR description.`,k=await x.callTool({name:"AUTOMATION_CREATE",arguments:{name:`${I.name}: auto-respond to issues`,virtual_mcp_id:i,agent:{id:i},messages:z,active:!0}}),se=k.structuredContent??k;await x.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:se.id,type:"event",connection_id:v,event_type:A.type,params:R}})},y=Be({mutationFn:async i=>{if(!r||!e)throw new Error("No GitHub connection or installation");const I=r.id,v=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:i.name,description:i.description||"Imported from GitHub",pinned:!0,icon:null,metadata:{githubRepo:{owner:i.owner,name:i.name,url:i.url,installationId:e.installationId,connectionId:I},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"}}}},connections:[{connection_id:I}]}}}),j=v.structuredContent??v,S=j.item.id;return g&&await N({virtualMcpId:S,repo:i,connectionId:I}).catch(A=>{console.error("Failed to set up issue automation:",A),oe.warning("Imported repo, but failed to set up issue auto-response. You can add the trigger manually from the automations view.")}),{virtualMcpId:S,repo:i,connectionId:I,item:j.item}},onSuccess:({virtualMcpId:i,repo:I,connectionId:v,item:j})=>{if(c.setQueryData(ne.collectionItem(x,n.id,"","VIRTUAL_MCP",i),{item:j}),je(c,n.id),b(i,I),d){d({virtualMcpId:i,repo:I,connectionId:v});return}oe.success(`Imported ${I.name} from GitHub`),a(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),u(i)},onError:i=>{oe.error("Failed to import repo: "+(i instanceof Error?i.message:"Unknown error"))}});return f.status==="installing"||f.status==="authenticating"?t.jsx(ve,{status:f.status,error:null,retry:f.retry}):f.status==="error"?t.jsx(ve,{status:"error",error:f.error,retry:f.retry}):m.length===0&&f.status==="idle"?t.jsx(ve,{status:"installing",error:null,retry:f.retry}):m.length>1&&!r?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),m.map(i=>t.jsxs("button",{type:"button",onClick:()=>_(i),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[i.icon?t.jsx("img",{src:i.icon,alt:i.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(re,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:i.title})]},i.id))]}):r?e?t.jsx(Ct,{connectionId:r.id,orgId:n.id,orgSlug:n.slug,installation:e,onSelectRepo:i=>y.mutate(i),isSaving:y.isPending,autoRespondToIssues:p,onAutoRespondChange:C,hideAutoRespondCheckbox:o}):t.jsx(_t,{connectionId:r.id,orgId:n.id,orgSlug:n.slug,onSelect:s,showBackButton:m.length>1,onBack:()=>_(null)}):null}function _t(a){const e=U.c(31),{connectionId:s,orgId:o,orgSlug:d,onSelect:n,showBackButton:c,onBack:u}=a;let l;e[0]!==o||e[1]!==d?(l={connectionId:ce,orgId:o,orgSlug:d},e[0]=o,e[1]=d,e[2]=l):l=e[2];const _=$(l);let p;e[3]!==s||e[4]!==o?(p=ne.githubUserOrgs(o,s),e[3]=s,e[4]=o,e[5]=p):p=e[5];let C;e[6]!==s||e[7]!==_?(C=async()=>{const I=(await _.callTool({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:s}})).content?.[0]?.text;if(!I)throw new Error("No response from GITHUB_LIST_USER_ORGS");return JSON.parse(I)},e[6]=s,e[7]=_,e[8]=C):C=e[8];let g;e[9]!==p||e[10]!==C?(g={queryKey:p,queryFn:C},e[9]=p,e[10]=C,e[11]=g):g=e[11];const m=He(g);if(m.isLoading){let i;return e[12]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[12]=i):i=e[12],i}if(m.isError){let i;return e[13]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"})}),e[13]=i):i=e[13],i}const f=m.data;if(!f)return null;let r;e[14]!==u||e[15]!==c?(r=c&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:u,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(Ae,{size:12}),"Change connection"]})}),e[14]=u,e[15]=c,e[16]=r):r=e[16];let h;if(e[17]!==f.installations||e[18]!==n){let i;e[20]!==n?(i=I=>t.jsxs("button",{type:"button",onClick:()=>n(I),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:I.avatarUrl,alt:I.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:I.login}),I.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},I.installationId),e[20]=n,e[21]=i):i=e[21],h=f.installations.map(i),e[17]=f.installations,e[18]=n,e[19]=h}else h=e[19];let x;e[22]!==h?(x=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:h}),e[22]=h,e[23]=x):x=e[23];const T=f.appSlug?`https://github.com/apps/${f.appSlug}/installations/new`:"https://github.com/settings/installations";let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[24]=b):b=e[24];let N;e[25]!==T?(N=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",b]})}),e[25]=T,e[26]=N):N=e[26];let y;return e[27]!==N||e[28]!==r||e[29]!==x?(y=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,x,N]}),e[27]=N,e[28]=r,e[29]=x,e[30]=y):y=e[30],y}function Ct(a){const e=U.c(25),{connectionId:s,orgId:o,orgSlug:d,installation:n,onSelectRepo:c,isSaving:u,autoRespondToIssues:l,onAutoRespondChange:_,hideAutoRespondCheckbox:p}=a,[C,g]=O.useState(""),m=O.useDeferredValue(C),f=C!==m;let r;e[0]!==f||e[1]!==C?(r=t.jsx(Qe,{placeholder:"Search repositories...",value:C,onChange:g,isSearching:f}),e[0]=f,e[1]=C,e[2]=r):r=e[2];const h=f?"opacity-40":"opacity-100";let x;e[3]!==h?(x=xe("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",h),e[3]=h,e[4]=x):x=e[4];let T;e[5]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=T):T=e[5];let b;e[6]!==s||e[7]!==m||e[8]!==n||e[9]!==u||e[10]!==c||e[11]!==o||e[12]!==d?(b=t.jsx(O.Suspense,{fallback:T,children:t.jsx(It,{connectionId:s,orgId:o,orgSlug:d,installation:n,query:m,onSelectRepo:c,isSaving:u})}),e[6]=s,e[7]=m,e[8]=n,e[9]=u,e[10]=c,e[11]=o,e[12]=d,e[13]=b):b=e[13];let N;e[14]!==x||e[15]!==b?(N=t.jsx("div",{className:x,children:b}),e[14]=x,e[15]=b,e[16]=N):N=e[16];let y;e[17]!==l||e[18]!==p||e[19]!==_?(y=!p&&t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0 cursor-pointer select-none",children:[t.jsx(st,{checked:l,onCheckedChange:I=>_(I===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Auto-respond to new issues with a PR"})]}),e[17]=l,e[18]=p,e[19]=_,e[20]=y):y=e[20];let i;return e[21]!==r||e[22]!==N||e[23]!==y?(i=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,N,y]}),e[21]=r,e[22]=N,e[23]=y,e[24]=i):i=e[24],i}function It(a){const e=U.c(29),{connectionId:s,orgId:o,orgSlug:d,installation:n,query:c,onSelectRepo:u,isSaving:l}=a;let _;e[0]!==s||e[1]!==o||e[2]!==d?(_={connectionId:s,orgId:o,orgSlug:d},e[0]=s,e[1]=o,e[2]=d,e[3]=_):_=e[3];const p=$(_),C=n.type==="User"?"user":"org",g=c?`${C}:${n.login} ${c} in:name`:`${C}:${n.login}`;let m;e[4]!==s||e[5]!==n.login||e[6]!==o||e[7]!==c?(m=ne.githubOrgRepos(o,s,n.login,c),e[4]=s,e[5]=n.login,e[6]=o,e[7]=c,e[8]=m):m=e[8];let f;e[9]!==p||e[10]!==g?(f=async()=>{const N=(await p.callTool({name:"search_repositories",arguments:{query:g,page:1,perPage:30}})).content?.[0]?.text;if(!N)throw new Error("No response from search_repositories");return(JSON.parse(N).items??[]).map(Tt)},e[9]=p,e[10]=g,e[11]=f):f=e[11];let r;e[12]!==m||e[13]!==f?(r={queryKey:m,queryFn:f},e[12]=m,e[13]=f,e[14]=r):r=e[14];const{data:h}=et(r);if(h.length===0){let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=b):b=e[15];let N;e[16]!==c?(N=c&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=c,e[17]=N):N=e[17];let y;return e[18]!==N?(y=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[b,N]}),e[18]=N,e[19]=y):y=e[19],y}let x;if(e[20]!==l||e[21]!==u||e[22]!==h){let b;e[24]!==l||e[25]!==u?(b=N=>t.jsxs("button",{type:"button",onClick:()=>u(N),disabled:l,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(re,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:N.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[N.private?t.jsx(ot,{size:10}):t.jsx(at,{size:10}),N.private?"Private":"Public"]})]},N.fullName),e[24]=l,e[25]=u,e[26]=b):b=e[26],x=h.map(b),e[20]=l,e[21]=u,e[22]=h,e[23]=x}else x=e[23];let T;return e[27]!==x?(T=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:x}),e[27]=x,e[28]=T):T=e[28],T}function Tt(a){return{name:a.name,fullName:a.full_name,owner:a.full_name.split("/")[0]??"",url:a.html_url,private:a.private,description:a.description,updatedAt:a.updated_at}}function ve(a){const e=U.c(33),{status:s,error:o,retry:d}=a;if(s==="error"){let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-destructive"})}),e[0]=i):i=e[0];let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=I):I=e[1];const v=o??"Something went wrong while connecting to GitHub.";let j;e[2]!==v?(j=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[I,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:v})]}),e[2]=v,e[3]=j):j=e[3];let S;e[4]!==d?(S=t.jsx("button",{type:"button",onClick:d,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=d,e[5]=S):S=e[5];let A;return e[6]!==j||e[7]!==S?(A=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[i,j,S]}),e[6]=j,e[7]=S,e[8]=A):A=e[8],A}const n=s==="authenticating";let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-foreground"})}),e[9]=c):c=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"relative size-10",children:[c,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(Ne,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=u):u=e[10];const l=n?"Authenticating with GitHub":"Setting up GitHub";let _;e[11]!==l?(_=t.jsx("p",{className:"text-sm font-medium",children:l}),e[11]=l,e[12]=_):_=e[12];const p=n?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let C;e[13]!==p?(C=t.jsx("p",{className:"text-xs text-muted-foreground",children:p}),e[13]=p,e[14]=C):C=e[14];let g;e[15]!==_||e[16]!==C?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[_,C]}),e[15]=_,e[16]=C,e[17]=g):g=e[17];const m=n?"bg-muted-foreground/30":"bg-foreground animate-pulse";let f;e[18]!==m?(f=xe("size-1.5 rounded-full",m),e[18]=m,e[19]=f):f=e[19];let r;e[20]!==f?(r=t.jsx("span",{className:f}),e[20]=f,e[21]=r):r=e[21];const h=n?"bg-foreground animate-pulse":"bg-muted-foreground/30";let x;e[22]!==h?(x=xe("size-1.5 rounded-full",h),e[22]=h,e[23]=x):x=e[23];let T;e[24]!==x?(T=t.jsx("span",{className:x}),e[24]=x,e[25]=T):T=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=b):b=e[26];let N;e[27]!==r||e[28]!==T?(N=t.jsxs("div",{className:"flex items-center gap-1.5",children:[r,T,b]}),e[27]=r,e[28]=T,e[29]=N):N=e[29];let y;return e[30]!==N||e[31]!==g?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[u,g,N]}),e[30]=N,e[31]=g,e[32]=y):y=e[32],y}const yt=["Full HAR capture with cache, TTFB, and request analysis","Screenshot capture for visual inspection","Page discovery via sitemap, navigation, and link crawling","SEO audit — meta tags, structured data, robots.txt","Third-party script inventory and size analysis","Dead link detection across the entire site","Deco-specific diagnostics (?__d debug mode)"];function $e(a){const e=U.c(7),{onRecruit:s,isRecruiting:o,isLoading:d}=a;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a blackbox diagnostics agent that tests your storefront from the outside — no internal access needed. Give it a URL and it produces a detailed performance and health report."}),e[0]=n):n=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=c):c=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"space-y-2",children:[c,t.jsx("ul",{className:"space-y-1.5",children:yt.map(bt)})]}),e[2]=u):u=e[2];const l=o||d,_=o?"Setting up...":"Add Site Diagnostics";let p;return e[3]!==s||e[4]!==l||e[5]!==_?(p=t.jsxs("div",{className:"flex flex-col gap-6",children:[n,u,t.jsx(ae,{onClick:s,disabled:l,className:"w-full cursor-pointer",children:_})]}),e[3]=s,e[4]=l,e[5]=_,e[6]=p):p=e[6],p}function bt(a){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),a]},a)}function Xt({open:a,onOpenChange:e,existingAgent:s}){const o=ke(),{org:d}=V(),n=_e(),c=Ee(),u=Pe(),l=$({connectionId:ce,orgId:d.id,orgSlug:d.slug}),_=Ye({client:l}),[p,C]=O.useState(!1),g=qe.find(y=>y.id==="site-diagnostics"),{data:m,isLoading:f}=Ke(g.appId,{enabled:a}),r=m?.title||m?.server?.title||m?.server?.name||g.title,h=m?.server?.icons?.[0]?.src??g.icon,x=m?.server?.description??null,T=t.jsx(Ue,{icon:h,name:r,size:"sm"}),b=async()=>{if(m){if(s){e(!1),n(s.id);return}C(!0);try{const y=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:g.appId},limit:1,offset:0}});let i;const v=y?.structuredContent?.items?.find(S=>S.app_id===g.appId);if(v)i=v.id;else{const S=m.server?.remotes?.[0]?.url;if(!S)throw new Error("Registry item is missing a remote URL for site-diagnostics");i=(await c.create.mutateAsync({title:r,description:x,icon:m.server?.icons?.[0]?.src??g.icon,connection_type:"HTTP",connection_url:S,app_name:m.server?.name??"site-diagnostics",app_id:g.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:g.appId,verified:!0}})).id}const j=await u.create.mutateAsync({title:r,description:x,icon:h,status:"active",connections:[{connection_id:i,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"site-diagnostics",instructions:null,ui:{pinnedViews:[{connectionId:i,toolName:"diagnose",label:"diagnose",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:i,toolName:"diagnose"}}}}});D("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:j.id}),e(!1),n(j.id)}catch(y){D("agent_recruit_failed",{template_id:"site-diagnostics",error:y instanceof Error?y.message:String(y)}),console.error("Failed to create Site Diagnostics agent:",y)}finally{C(!1)}}},N=`Add ${r}`;return o?t.jsx(Oe,{open:a,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[T,t.jsx(Me,{className:"text-xl font-semibold",children:N})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx($e,{onRecruit:b,isRecruiting:p,isLoading:f})})]})}):t.jsx(de,{open:a,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[T,t.jsx(me,{className:"text-xl font-semibold",children:N})]})}),t.jsx($e,{onRecruit:b,isRecruiting:p,isLoading:f})]})})}const vt=`<role>
2
2
  You are the Agent Manager. You create, configure, and maintain agents (Virtual MCPs) in this workspace.
3
3
  </role>
4
4