decocms 2.172.2 → 2.173.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 (278) hide show
  1. package/dist/client/assets/{AlertCircle-ClrGTaOd.js → AlertCircle-BoncS6LP.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-CDH2kHzq.js → AlignLeft-DBFp0-N7.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-DlYdW6Y7.js → ArrowDown-C3BzPPYX.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DusSg6k7.js → ArrowLeft-BJzvklmo.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BadPbvy3.js → ArrowUp-C6T9wa52.js} +1 -1
  6. package/dist/client/assets/{Check-D47qqsWi.js → Check-D28ZRrsv.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CM5PTjhy.js → CheckCircle-ItsEMznk.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DU8levxk.js → CheckDone01-Cc3wOEJd.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-CACpEsSD.js → CheckVerified02-Dvd1EdLV.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CmFoa-MN.js → ChevronDown-D9EMTJdI.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-BBZtRY0q.js → ChevronLeft-6LF5odkw.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-Ccc_Sjed.js → ChevronRight-6oHy3GR0.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-JcxjaYTK.js → ChevronUp-iKqBRKww.js} +1 -1
  14. package/dist/client/assets/{Clock-DvBllXAe.js → Clock-DKgv7FMl.js} +1 -1
  15. package/dist/client/assets/{Code01-D384qtrJ.js → Code01-D874vQ1j.js} +1 -1
  16. package/dist/client/assets/{Coins01-q-yLaV-s.js → Coins01-CHKCanND.js} +1 -1
  17. package/dist/client/assets/{Container-BgIU6bWo.js → Container-v7Lu1WNT.js} +1 -1
  18. package/dist/client/assets/{Copy01-sKED-vLj.js → Copy01-D3an2EO3.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-D3htYp-N.js → Dataflow03-C1gtqNGI.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-azkhUMft.js → DotsHorizontal-BUWy0q6M.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-Dt48o-Bq.js → DotsVertical-teVTiLQ2.js} +1 -1
  22. package/dist/client/assets/{Download01-Dp-HI0LA.js → Download01-DFr_zgIP.js} +1 -1
  23. package/dist/client/assets/{Edit01-C-PQ-7gV.js → Edit01-BIu4og98.js} +1 -1
  24. package/dist/client/assets/{Edit05-CTabXUvX.js → Edit05-hkZ8uhSL.js} +1 -1
  25. package/dist/client/assets/{Eye-BeIr8Vzd.js → Eye-BKxgN9Ci.js} +1 -1
  26. package/dist/client/assets/{EyeOff-Du1k40Nm.js → EyeOff-CAEuyJy8.js} +1 -1
  27. package/dist/client/assets/{File02-Bo9eFHTr.js → File02-Cpr-39PX.js} +1 -1
  28. package/dist/client/assets/{File06-BMW8ao_w.js → File06-9lDkVwq5.js} +1 -1
  29. package/dist/client/assets/{FilterLines-DqaELPn1.js → FilterLines-DBXa2xhp.js} +1 -1
  30. package/dist/client/assets/{Globe01-ISMTzK2m.js → Globe01-Dzq2G0hT.js} +1 -1
  31. package/dist/client/assets/{Globe02-BY9KQM8G.js → Globe02-cnnmW-yP.js} +1 -1
  32. package/dist/client/assets/{Grid01-kGaUg_cc.js → Grid01-B8Hz8XFZ.js} +1 -1
  33. package/dist/client/assets/{Hash02-DDXDI8ry.js → Hash02-CQioUpKU.js} +1 -1
  34. package/dist/client/assets/{Home02-BJ1pwYUW.js → Home02-Dhg6fiem.js} +1 -1
  35. package/dist/client/assets/{Image01-D1cm-3FQ.js → Image01-exfB-slY.js} +1 -1
  36. package/dist/client/assets/{Inbox01-BEwYpwmE.js → Inbox01-Bw2rff6F.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-Cn8apf8U.js → InfoCircle-BzkuJise.js} +1 -1
  38. package/dist/client/assets/{Key01-CEedyU25.js → Key01-echsPc8T.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-BTT9GgdG.js → LayersTwo01-HSSB0HBk.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-bKrytFeq.js → LayoutLeft-CsdSAGAc.js} +1 -1
  41. package/dist/client/assets/{Link01-C_y_eRnq.js → Link01-DqBjIV11.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-Cjuepk2Y.js → LinkExternal01-BiHdSj-G.js} +1 -1
  43. package/dist/client/assets/{List-Bz4PLQWX.js → List-CCSmMits.js} +1 -1
  44. package/dist/client/assets/{Loading01-Ds_yIlBt.js → Loading01-R4lTIOmc.js} +1 -1
  45. package/dist/client/assets/{Lock01-r4p0TJqu.js → Lock01-BtcVHLM1.js} +1 -1
  46. package/dist/client/assets/{Play-Btzdao8L.js → Play-CeCy0kkp.js} +1 -1
  47. package/dist/client/assets/{Plus-Cln26t9k.js → Plus-BPhP6AwU.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-B05f0aP-.js → RefreshCcw01-BpP2wWfT.js} +1 -1
  49. package/dist/client/assets/{Save01-BanXz4II.js → Save01-Go0UNRDT.js} +1 -1
  50. package/dist/client/assets/{SearchMd-C32DAy1s.js → SearchMd-DYtqpNhS.js} +1 -1
  51. package/dist/client/assets/{Settings01-C0PXfLqi.js → Settings01-DLXMaJiZ.js} +1 -1
  52. package/dist/client/assets/{Shield01-CCHp_zdi.js → Shield01-BPEMPVyT.js} +1 -1
  53. package/dist/client/assets/{Terminal-DcTm6ji-.js → Terminal-DvdwlySH.js} +1 -1
  54. package/dist/client/assets/{Trash01-DK1y3dZk.js → Trash01-11PM8hCT.js} +1 -1
  55. package/dist/client/assets/{Upload01-D2MbAzFl.js → Upload01-s0dK95gX.js} +1 -1
  56. package/dist/client/assets/{Users03-Ch2G4iRo.js → Users03-Bn5Ina1h.js} +1 -1
  57. package/dist/client/assets/{X-BeNP8bdc.js → X-C1gVOX-K.js} +1 -1
  58. package/dist/client/assets/{XCircle-C4Z1TBLP.js → XCircle-D_WssbjQ.js} +1 -1
  59. package/dist/client/assets/{XClose-ByRUZPAd.js → XClose-CzgfsXpl.js} +1 -1
  60. package/dist/client/assets/{Zap-BdI1rdNQ.js → Zap-rjtLs8AB.js} +1 -1
  61. package/dist/client/assets/{agent-connections-preview-B3lSJXbc.js → agent-connections-preview-B2zSeYmN.js} +1 -1
  62. package/dist/client/assets/{agent-detail-BE2wTwjO.js → agent-detail-C1YSF6Hq.js} +1 -1
  63. package/dist/client/assets/{agents-v7yFskYw.js → agents-DXzQUsKT.js} +1 -1
  64. package/dist/client/assets/{alert-dialog-BzmriYXD.js → alert-dialog-wQYrtq_g.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-Cn7HOage.js → auth-catchall-BZlDikmp.js} +1 -1
  66. package/dist/client/assets/{automation-detail-3dPYUMP4.js → automation-detail-PwcSF1F0.js} +1 -1
  67. package/dist/client/assets/{automations-ByAliss3.js → automations-CTICk2Dp.js} +1 -1
  68. package/dist/client/assets/{avatar-VLsj4w_k.js → avatar-XKo1hvHY.js} +1 -1
  69. package/dist/client/assets/{badge-CQLalkEE.js → badge-BEyO0T03.js} +1 -1
  70. package/dist/client/assets/{binder-BCOcjrHc.js → binder-D-EP4Rws.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-CtHpt1Hj.js → breadcrumb-BSZlBaPP.js} +1 -1
  72. package/dist/client/assets/{card-Dg8bSF1g.js → card-Cq808vu1.js} +1 -1
  73. package/dist/client/assets/{chart-CIIYUfQq.js → chart-DNqGB3ic.js} +1 -1
  74. package/dist/client/assets/{checkbox-5OPx-kaV.js → checkbox-D1_FXNWD.js} +1 -1
  75. package/dist/client/assets/{collapsible-DLZfoTEM.js → collapsible-wDXCk9xP.js} +1 -1
  76. package/dist/client/assets/{collection-detail-Bb3JCZHo.js → collection-detail-CsiVX8xV.js} +1 -1
  77. package/dist/client/assets/{collection-display-button-DV49rNbI.js → collection-display-button-yOA8wYm8.js} +1 -1
  78. package/dist/client/assets/{collection-search-BHtDjvQL.js → collection-search-C0Xdyimh.js} +1 -1
  79. package/dist/client/assets/{collection-tab-C9b9XvN2.js → collection-tab-C4posZLi.js} +1 -1
  80. package/dist/client/assets/{collection-table-wrapper-BgavezLW.js → collection-table-wrapper-BjxWZ4Q4.js} +1 -1
  81. package/dist/client/assets/{collection-tabs-DMmhv_1g.js → collection-tabs-Bdn3rWHw.js} +1 -1
  82. package/dist/client/assets/{command-DDZ63V3H.js → command-BO0v9Sf_.js} +1 -1
  83. package/dist/client/assets/{connect-DVhMOx8A.js → connect-DFz_0Mcc.js} +1 -1
  84. package/dist/client/assets/{connection-card-B8Ku_xnQ.js → connection-card-Iw1tldfy.js} +1 -1
  85. package/dist/client/assets/{connection-detail-CRo734HG.js → connection-detail-BX76SiPq.js} +1 -1
  86. package/dist/client/assets/{connection-status-CHkDe4eX.js → connection-status-BPCtNzAX.js} +1 -1
  87. package/dist/client/assets/{connections-CcoPNKjM.js → connections-Dzct8UZO.js} +1 -1
  88. package/dist/client/assets/{constants-m_OMiYqO.js → constants-BJq0sg2N.js} +1 -1
  89. package/dist/client/assets/constants-CYoMn_-y.js +1 -0
  90. package/dist/client/assets/{context-CcNCVCjQ.js → context-30W0NRWC.js} +1 -1
  91. package/dist/client/assets/{create-organization-dialog-DI-d1926.js → create-organization-dialog-qEzwR9y0.js} +1 -1
  92. package/dist/client/assets/{create-project-dialog-DCdoTB_M.js → create-project-dialog-CL4W5SGR.js} +1 -1
  93. package/dist/client/assets/{danger-BxsYXYff.js → danger-C5I4O3c5.js} +1 -1
  94. package/dist/client/assets/{danger-zone-CtWw91XF.js → danger-zone-BRN9nPUd.js} +1 -1
  95. package/dist/client/assets/{dependencies-Bqe9XWvV.js → dependencies-BMgtEL4Y.js} +1 -1
  96. package/dist/client/assets/{dialog-CYxmdCAY.js → dialog-DtQJmLgU.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-B2-TC2ID.js → dropdown-menu-Dh14MX71.js} +1 -1
  98. package/dist/client/assets/{dynamic-plugin-layout-B179FmFO.js → dynamic-plugin-layout-BgreQ4An.js} +1 -1
  99. package/dist/client/assets/{editable-task-title-CboTctFV.js → editable-task-title-aeTfEW-D.js} +1 -1
  100. package/dist/client/assets/{empty-state-QAJJHSPh.js → empty-state-ChTznqc5.js} +1 -1
  101. package/dist/client/assets/{empty-state-DyAFrOdp.js → empty-state-DehivavO.js} +1 -1
  102. package/dist/client/assets/{env-vars-editor-C3IuaF3S.js → env-vars-editor-DuCm8QB_.js} +1 -1
  103. package/dist/client/assets/{extract-connection-data-Cir4onx8.js → extract-connection-data-is00SRVb.js} +1 -1
  104. package/dist/client/assets/{file-browser-B3Xjj9S3.js → file-browser-BGVmEICO.js} +2 -2
  105. package/dist/client/assets/{form-BD_Oipqm.js → form-AwZCFVNc.js} +1 -1
  106. package/dist/client/assets/{general-CYb7i3K7.js → general-FbFo9Qid.js} +1 -1
  107. package/dist/client/assets/{grid-view-sbwQx6r5.js → grid-view-BqKnb9Io.js} +1 -1
  108. package/dist/client/assets/{home-B_gsL057.js → home-B--5foK8.js} +1 -1
  109. package/dist/client/assets/{icon-picker-BRNi8Awo.js → icon-picker-DIH_A1bl.js} +1 -1
  110. package/dist/client/assets/{index-Bs1-6MBJ.js → index--v47KjFS.js} +3 -3
  111. package/dist/client/assets/{index-Brmwx3QP.js → index-23ha-EiC.js} +1 -1
  112. package/dist/client/assets/{index-BCllOtlC.js → index-B67pQy0t.js} +1 -1
  113. package/dist/client/assets/{index-Dnjtu_kb.js → index-C1rNFCdf.js} +1 -1
  114. package/dist/client/assets/{index-DB_UqrMB.js → index-CRBE07YF.js} +1 -1
  115. package/dist/client/assets/{index-CvQBntDd.js → index-CUQZow0Z.js} +1 -1
  116. package/dist/client/assets/{index-CqNVEhLV.js → index-DLQk7Ahb.js} +1 -1
  117. package/dist/client/assets/{index-Cta5OAsO.css → index-DmrxmdhV.css} +1 -1
  118. package/dist/client/assets/{index-Cy5NxMqm.js → index-DnEhhRJ4.js} +1 -1
  119. package/dist/client/assets/{index-BDDekZH-.js → index-DrRz1QdK.js} +1 -1
  120. package/dist/client/assets/{index-DJ850qZq.js → index-oFBA5kHq.js} +1 -1
  121. package/dist/client/assets/{infiniteQueryObserver-BCxJZiPx.js → infiniteQueryObserver-Bv6Q8uee.js} +1 -1
  122. package/dist/client/assets/{input-oo9dNDtJ.js → input-B43ueF_6.js} +1 -1
  123. package/dist/client/assets/{integration-icon-BxDprz4-.js → integration-icon-jSV9a6uH.js} +1 -1
  124. package/dist/client/assets/{label-Ow7deF1V.js → label-Bp2-MH_v.js} +1 -1
  125. package/dist/client/assets/{layout-D-gNHDgT.js → layout-CHhBOues.js} +1 -1
  126. package/dist/client/assets/{layout-0-CpWJ4q.js → layout-ChV6hmvw.js} +1 -1
  127. package/dist/client/assets/{login-DMiDY1PH.js → login-DujtqNSP.js} +1 -1
  128. package/dist/client/assets/{logo-upload-DGm5nNR_.js → logo-upload-CFiX7Ocr.js} +1 -1
  129. package/dist/client/assets/{markdown-CC_Pgtlw.js → markdown-CHm0rLGk.js} +1 -1
  130. package/dist/client/assets/{mcp-app-renderer-eiwTuNJm.js → mcp-app-renderer-C9PcNeIF.js} +1 -1
  131. package/dist/client/assets/{mcp-server-card-ZHSZs_kf.js → mcp-server-card-BVdsLKTg.js} +1 -1
  132. package/dist/client/assets/{mcp-server-detail-DjKWYtHQ.js → mcp-server-detail-hWzz0p7M.js} +2 -2
  133. package/dist/client/assets/{members-CGtMoiYA.js → members-Dw7k8W_H.js} +1 -1
  134. package/dist/client/assets/{monaco-editor-DFgX2f59.js → monaco-editor-O-cJeAC7.js} +1 -1
  135. package/dist/client/assets/{monitoring-CQa1Ybic.js → monitoring-C_GmEx18.js} +1 -1
  136. package/dist/client/assets/{monitoring-dashboard-edit-CtdirIJ7.js → monitoring-dashboard-edit-Db8dSzpX.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-BzmmgyM6.js → monitoring-dashboard-view-DncdutYs.js} +1 -1
  138. package/dist/client/assets/{oauth-callback-BBrt_ccP.js → oauth-callback-D-e5bR0R.js} +1 -1
  139. package/dist/client/assets/{oauth-callback-ai-provider-B0mK5DTc.js → oauth-callback-ai-provider-DfwJ0j8l.js} +1 -1
  140. package/dist/client/assets/{org-ai-providers-2oudOR3a.js → org-ai-providers-BB_Kk_yW.js} +1 -1
  141. package/dist/client/assets/{page-BpUENCQ3.js → page-BHcE-IsW.js} +1 -1
  142. package/dist/client/assets/{page-Cm8DLHRx.js → page-DIduNonD.js} +1 -1
  143. package/dist/client/assets/{plugin-empty-state-D4HrModi.js → plugin-empty-state-CGg9Zobz.js} +1 -1
  144. package/dist/client/assets/{plugin-empty-state-D4jNxBX5.js → plugin-empty-state-DF5DjKQn.js} +1 -1
  145. package/dist/client/assets/{plugin-header-Bd2q22iA.js → plugin-header-CwOisLLl.js} +1 -1
  146. package/dist/client/assets/{plugin-header-hexKC2z7.js → plugin-header-oOJ_SB7i.js} +1 -1
  147. package/dist/client/assets/plugins-D61XA0e1.js +1 -0
  148. package/dist/client/assets/{popover-BQwql0No.js → popover-CRGn9IqN.js} +1 -1
  149. package/dist/client/assets/{project-app-view-CWpHCZKH.js → project-app-view-C6bFj2jv.js} +1 -1
  150. package/dist/client/assets/{project-layout-CZw982Go.js → project-layout-xuVkDUgj.js} +1 -1
  151. package/dist/client/assets/{project-plugins-C6LqmbaN.js → project-plugins-BtJagofo.js} +1 -1
  152. package/dist/client/assets/{projects-list-n35yk1kw.js → projects-list-rUiZxv6z.js} +1 -1
  153. package/dist/client/assets/{readme-viewer-C4a15ScG.js → readme-viewer-CgvhJVTC.js} +1 -1
  154. package/dist/client/assets/{registry-layout-BXxLm88S.js → registry-layout-BYOMcr5d.js} +1 -1
  155. package/dist/client/assets/{registry-utils-8JbjeIg2.js → registry-utils-DRlaL1TA.js} +1 -1
  156. package/dist/client/assets/{reports-layout-DDT7TPDK.js → reports-layout-BZCASsb2.js} +1 -1
  157. package/dist/client/assets/{reset-password-C8mz9-pn.js → reset-password-ptCGMW1Q.js} +1 -1
  158. package/dist/client/assets/{resizable-BEGLyBcY.js → resizable-BipYny0A.js} +1 -1
  159. package/dist/client/assets/{save-actions-tJMaBMCr.js → save-actions-6CE1ypPt.js} +1 -1
  160. package/dist/client/assets/{scroll-area-zXI7Mnta.js → scroll-area-CvC7l56a.js} +1 -1
  161. package/dist/client/assets/{select-DE-s_uro.js → select-1qCYmo_Z.js} +1 -1
  162. package/dist/client/assets/{select-virtual-mcp-3UuH5RYu.js → select-virtual-mcp-t9uZXeiE.js} +1 -1
  163. package/dist/client/assets/shell-layout-DS537tct.js +3 -0
  164. package/dist/client/assets/{sidebar-settings-BleCcXqd.js → sidebar-settings-Gn9QDCS3.js} +1 -1
  165. package/dist/client/assets/{skeleton-FXjthcRm.js → skeleton-Vs0ahWNW.js} +1 -1
  166. package/dist/client/assets/{spinner-LkGFTHYs.js → spinner-DY37bQ6b.js} +1 -1
  167. package/dist/client/assets/{store-invite-DY166hBP.js → store-invite-CZ47dQJt.js} +1 -1
  168. package/dist/client/assets/{switch-CmbZgNTQ.js → switch-ChOmwFAU.js} +1 -1
  169. package/dist/client/assets/{table-DQFo79Pa.js → table-Ds5hcAfV.js} +1 -1
  170. package/dist/client/assets/{tabs-VJ4cZZ6Y.js → tabs-Dpw2g7MT.js} +1 -1
  171. package/dist/client/assets/{task-status-Cp67IvSc.js → task-status-BEYFiOcg.js} +21 -21
  172. package/dist/client/assets/tasks-CdG9QSFK.js +1 -0
  173. package/dist/client/assets/{tasks-panel-BcHTmaRp.js → tasks-panel-B9E0VzsT.js} +1 -1
  174. package/dist/client/assets/{textarea-_fKX6fkc.js → textarea-C-fRxR1X.js} +1 -1
  175. package/dist/client/assets/{time-range-picker-CwXbYm21.js → time-range-picker-DLfN0bYQ.js} +1 -1
  176. package/dist/client/assets/{toggle-group-CG-mSzeH.js → toggle-group-BwEgndSj.js} +1 -1
  177. package/dist/client/assets/{tools-list-BqjA8cpd.js → tools-list-DzGfMYwE.js} +1 -1
  178. package/dist/client/assets/{tooltip-DvMIj9Vl.js → tooltip-B2CdQ2bN.js} +1 -1
  179. package/dist/client/assets/{topbar-portal-8N6OCP_q.js → topbar-portal-C72-23Dd.js} +1 -1
  180. package/dist/client/assets/{types-co6EnWx4.js → types-CixwvVqB.js} +1 -1
  181. package/dist/client/assets/{use-automations-CmbPeGrO.js → use-automations-D8qaeage.js} +1 -1
  182. package/dist/client/assets/{use-binding-BDoLJ3NJ.js → use-binding-C6wyTPOH.js} +1 -1
  183. package/dist/client/assets/{use-collections-BWCPG3qv.js → use-collections-CobBqkkk.js} +1 -1
  184. package/dist/client/assets/{use-connection-DNxPUHEC.js → use-connection-CUBEGKKv.js} +1 -1
  185. package/dist/client/assets/{use-copy-B6Vhad-4.js → use-copy-CCW7WupY.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-CsD8b5oZ.js → use-create-virtual-mcp-44rNe9r4.js} +1 -1
  187. package/dist/client/assets/{use-install-from-registry-rVBF9_Ya.js → use-install-from-registry-B6Xy7L7O.js} +1 -1
  188. package/dist/client/assets/{use-list-state-CxptnZc8.js → use-list-state-DmSf1SxJ.js} +1 -1
  189. package/dist/client/assets/{use-llm-Cx0n4D2y.js → use-llm-CgNJSzil.js} +1 -1
  190. package/dist/client/assets/{use-local-storage-BO16s_mB.js → use-local-storage-B5rcvGp1.js} +1 -1
  191. package/dist/client/assets/{use-mcp-prompts-El8F9wfP.js → use-mcp-prompts-CWXp4Vto.js} +1 -1
  192. package/dist/client/assets/{use-mcp-resources-CQM51ISF.js → use-mcp-resources-CdviUNt8.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-CGAtxBQr.js → use-mcp-tools-DhfUlmve.js} +1 -1
  194. package/dist/client/assets/{use-members-C5Abj3Nl.js → use-members-D-zu9EQ4.js} +1 -1
  195. package/dist/client/assets/{use-mobile-CMPROSym.js → use-mobile-DfdfcC2T.js} +1 -1
  196. package/dist/client/assets/{use-project-D1HuJpb-.js → use-project-FOWgS7Lo.js} +1 -1
  197. package/dist/client/assets/{use-view-mode-DtcqFKqx.js → use-view-mode-bhKhl_no.js} +1 -1
  198. package/dist/client/assets/{use-virtual-mcp-HJi07IrH.js → use-virtual-mcp-D_pRY4Y5.js} +1 -1
  199. package/dist/client/assets/useInfiniteQuery-VDF7Rw4W.js +1 -0
  200. package/dist/client/assets/{useMutation-C7wTU_P1.js → useMutation-BK2VTSKG.js} +1 -1
  201. package/dist/client/assets/useQuery-WdhzaCOu.js +1 -0
  202. package/dist/client/assets/useSuspenseInfiniteQuery-B49n2iIj.js +1 -0
  203. package/dist/client/assets/{user-CL49YHal.js → user-D7ZGT9n7.js} +1 -1
  204. package/dist/client/assets/{workflow-se3doO0e.js → workflow-BlmkM3G6.js} +1 -1
  205. package/dist/client/index.html +2 -2
  206. package/dist/server/node_modules/pg/README.md +95 -0
  207. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  208. package/dist/server/node_modules/pg/lib/client.js +743 -0
  209. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  210. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  211. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  212. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  213. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  214. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  215. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  216. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  217. package/dist/server/node_modules/pg/lib/index.js +73 -0
  218. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  219. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  220. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  221. package/dist/server/node_modules/pg/lib/query.js +252 -0
  222. package/dist/server/node_modules/pg/lib/result.js +109 -0
  223. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  224. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  225. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  226. package/dist/server/node_modules/pg/package.json +76 -0
  227. package/dist/server/node_modules/postgres-date/index.js +116 -0
  228. package/dist/server/node_modules/{postgres-interval → postgres-date}/package.json +8 -11
  229. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  230. package/package.json +1 -1
  231. package/dist/client/assets/constants-BRaJPJag.js +0 -1
  232. package/dist/client/assets/plugins-BfhzI-KM.js +0 -1
  233. package/dist/client/assets/shell-layout-DwAcy6I2.js +0 -3
  234. package/dist/client/assets/tasks-D4G9J1eF.js +0 -1
  235. package/dist/client/assets/useInfiniteQuery-C05JDjpl.js +0 -1
  236. package/dist/client/assets/useQuery-wPyHm29j.js +0 -1
  237. package/dist/client/assets/useSuspenseInfiniteQuery-9yayOuFY.js +0 -1
  238. package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
  239. package/dist/server/node_modules/async-exit-hook/index.js +0 -171
  240. package/dist/server/node_modules/async-exit-hook/license +0 -21
  241. package/dist/server/node_modules/async-exit-hook/package.json +0 -66
  242. package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
  243. package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
  244. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
  245. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
  246. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  247. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
  248. package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
  249. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
  250. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
  251. package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
  252. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
  253. package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
  254. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
  255. package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
  256. package/dist/server/node_modules/pg-connection-string/README.md +0 -105
  257. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
  258. package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
  259. package/dist/server/node_modules/pg-connection-string/index.js +0 -231
  260. package/dist/server/node_modules/pg-connection-string/package.json +0 -52
  261. package/dist/server/node_modules/pg-types/.travis.yml +0 -7
  262. package/dist/server/node_modules/pg-types/Makefile +0 -14
  263. package/dist/server/node_modules/pg-types/README.md +0 -75
  264. package/dist/server/node_modules/pg-types/index.d.ts +0 -137
  265. package/dist/server/node_modules/pg-types/index.js +0 -47
  266. package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
  267. package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
  268. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
  269. package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
  270. package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
  271. package/dist/server/node_modules/pg-types/package.json +0 -42
  272. package/dist/server/node_modules/pg-types/test/index.js +0 -24
  273. package/dist/server/node_modules/pg-types/test/types.js +0 -597
  274. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  275. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  276. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  277. /package/dist/server/node_modules/{pg-cloudflare → pg}/LICENSE +0 -0
  278. /package/dist/server/node_modules/{postgres-interval → postgres-date}/license +0 -0
@@ -1,4 +1,4 @@
1
- import{bQ as nr,j as $,c as gi}from"./index-Bs1-6MBJ.js";function Uc(){}function qc(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function di(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ki={};function ct(e,t){return(ki.jsx?yi:xi).test(e)}const bi=/[ \t\n\f\r]/g;function wi(e){return typeof e=="object"?e.type==="text"?ft(e.value):!1:ft(e)}function ft(e){return e.replace(bi,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function tr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function zn(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let Si=0;const _=Ie(),Q=Ie(),Dn=Ie(),E=Ie(),Y=Ie(),Le=Ie(),re=Ie();function Ie(){return 2**++Si}const Ln=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:Q,commaOrSpaceSeparated:re,commaSeparated:Le,number:E,overloadedBoolean:Dn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(Ln);class Hn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),ht(this,"space",i),typeof r=="number")for(;++o<pn.length;){const l=pn[o];ht(this,pn[o],(r&Ln[l])===Ln[l])}}}Hn.prototype.defined=!0;function ht(e,t,n){n&&(e[t]=n)}function Re(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Hn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[zn(r)]=r,n[zn(o.attribute)]=r}return new Qe(t,n,e.space)}const rr=Re({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:E,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Q,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ir(e,t){return t in e?e[t]:t}function lr(e,t){return ir(e,t.toLowerCase())}const Ci=Re({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:Y,autoFocus:_,autoPlay:_,blocking:Y,capture:null,charSet:null,checked:_,cite:null,className:Y,cols:E,colSpan:null,content:null,contentEditable:Q,controls:_,controlsList:Y,coords:E|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Dn,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:Y,height:E,hidden:Dn,high:E,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:Y,itemRef:Y,itemScope:_,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:Y,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:Y,required:_,reversed:_,rows:E,rowSpan:E,sandbox:Y,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:Q,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:lr}),Ei=Re({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:re,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:Y,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ir}),or=Re({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ar=Re({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lr}),ur=Re({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ii={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ai=/[A-Z]/g,pt=/-[a-z]/g,Ti=/^data[-\w.:]+$/i;function Pi(e,t){const n=zn(t);let r=t,i=ne;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ti.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(pt,zi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!pt.test(o)){let l=o.replace(Ai,vi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Hn}return new i(r,t)}function vi(e){return"-"+e.toLowerCase()}function zi(e){return e.charAt(1).toUpperCase()}const Di=tr([rr,Ci,or,ar,ur],"html"),Un=tr([rr,Ei,or,ar,ur],"svg");function Vc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Li(e){return e.join(" ").trim()}var ve={},mn,mt;function Fi(){if(mt)return mn;mt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
1
+ import{bQ as nr,j as $,c as gi}from"./index--v47KjFS.js";function Uc(){}function qc(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function di(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ki={};function ct(e,t){return(ki.jsx?yi:xi).test(e)}const bi=/[ \t\n\f\r]/g;function wi(e){return typeof e=="object"?e.type==="text"?ft(e.value):!1:ft(e)}function ft(e){return e.replace(bi,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function tr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function zn(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let Si=0;const _=Ie(),Q=Ie(),Dn=Ie(),E=Ie(),Y=Ie(),Le=Ie(),re=Ie();function Ie(){return 2**++Si}const Ln=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:Q,commaOrSpaceSeparated:re,commaSeparated:Le,number:E,overloadedBoolean:Dn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(Ln);class Hn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),ht(this,"space",i),typeof r=="number")for(;++o<pn.length;){const l=pn[o];ht(this,pn[o],(r&Ln[l])===Ln[l])}}}Hn.prototype.defined=!0;function ht(e,t,n){n&&(e[t]=n)}function Re(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Hn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[zn(r)]=r,n[zn(o.attribute)]=r}return new Qe(t,n,e.space)}const rr=Re({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:E,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Q,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ir(e,t){return t in e?e[t]:t}function lr(e,t){return ir(e,t.toLowerCase())}const Ci=Re({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:Y,autoFocus:_,autoPlay:_,blocking:Y,capture:null,charSet:null,checked:_,cite:null,className:Y,cols:E,colSpan:null,content:null,contentEditable:Q,controls:_,controlsList:Y,coords:E|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Dn,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:Y,height:E,hidden:Dn,high:E,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:Y,itemRef:Y,itemScope:_,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:Y,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:Y,required:_,reversed:_,rows:E,rowSpan:E,sandbox:Y,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:Q,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:lr}),Ei=Re({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:re,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:Y,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ir}),or=Re({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ar=Re({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lr}),ur=Re({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ii={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ai=/[A-Z]/g,pt=/-[a-z]/g,Ti=/^data[-\w.:]+$/i;function Pi(e,t){const n=zn(t);let r=t,i=ne;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ti.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(pt,zi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!pt.test(o)){let l=o.replace(Ai,vi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Hn}return new i(r,t)}function vi(e){return"-"+e.toLowerCase()}function zi(e){return e.charAt(1).toUpperCase()}const Di=tr([rr,Ci,or,ar,ur],"html"),Un=tr([rr,Ei,or,ar,ur],"svg");function Vc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Li(e){return e.join(" ").trim()}var ve={},mn,mt;function Fi(){if(mt)return mn;mt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
2
2
  `,s="/",f="*",c="",p="comment",h="declaration";function d(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var I=1,C=1;function F(D){var T=D.match(t);T&&(I+=T.length);var q=D.lastIndexOf(u);C=~q?D.length-q:C+D.length}function R(){var D={line:I,column:C};return function(T){return T.position=new b(D),j(),T}}function b(D){this.start=D,this.end={line:I,column:C},this.source=x.source}b.prototype.content=S;function M(D){var T=new Error(x.source+":"+I+":"+C+": "+D);if(T.reason=D,T.filename=x.source,T.line=I,T.column=C,T.source=S,!x.silent)throw T}function H(D){var T=D.exec(S);if(T){var q=T[0];return F(q),S=S.slice(q.length),T}}function j(){H(n)}function y(D){var T;for(D=D||[];T=P();)T!==!1&&D.push(T);return D}function P(){var D=R();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return M("End of comment missing");var q=S.slice(2,T-2);return C+=2,F(q),S=S.slice(T),C+=2,D({type:p,comment:q})}}function v(){var D=R(),T=H(r);if(T){if(P(),!H(i))return M("property missing ':'");var q=H(o),X=D({type:h,property:w(T[0].replace(e,c)),value:q?w(q[0].replace(e,c)):c});return H(l),X}}function U(){var D=[];y(D);for(var T;T=v();)T!==!1&&(D.push(T),y(D));return D}return j(),U()}function w(S){return S?S.replace(a,c):c}return mn=d,mn}var gt;function Ri(){if(gt)return ve;gt=1;var e=ve&&ve.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=n;const t=e(Fi());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return ve}var Be={},dt;function _i(){if(dt)return Be;dt=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(t,l))};return Be.camelCase=u,Be}var je,xt;function Oi(){if(xt)return je;xt=1;var e=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Ri()),n=_i();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,u){a&&u&&(l[(0,n.camelCase)(a,o)]=u)}),l}return r.default=r,je=r,je}var Mi=Oi();const Ni=nr(Mi),sr=cr("end"),qn=cr("start");function cr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bi(e){const t=qn(e),n=sr(e);if(t&&n)return{start:t,end:n}}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yt(e.position):"start"in e||"end"in e?yt(e):"line"in e||"column"in e?Fn(e):""}function Fn(e){return kt(e&&e.line)+":"+kt(e&&e.column)}function yt(e){return Fn(e&&e.start)+"-"+Fn(e&&e.end)}function kt(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const Vn={}.hasOwnProperty,ji=new Map,Hi=/[A-Z]/g,Ui=new Set(["table","tbody","thead","tfoot","tr"]),qi=new Set(["td","th"]),fr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vi(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ji(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ki(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Un:Di,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=hr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function hr(e,t,n){if(t.type==="element")return $i(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wi(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qi(e,t,n);if(t.type==="mdxjsEsm")return Yi(e,t);if(t.type==="root")return Xi(e,t,n);if(t.type==="text")return Gi(e,t)}function $i(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=mr(e,t.tagName,!1),l=Zi(e,t);let a=Wn(e,t);return Ui.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!wi(u):!0})),pr(e,l,o,t),$n(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Wi(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}We(e,t.position)}function Yi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);We(e,t.position)}function Qi(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:mr(e,t.name,!0),l=el(e,t),a=Wn(e,t);return pr(e,l,o,t),$n(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Xi(e,t,n){const r={};return $n(r,Wn(e,t)),e.create(t,e.Fragment,r,n)}function Gi(e,t){return t.value}function pr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $n(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ki(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function Ji(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=qn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Zi(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Vn.call(t.properties,i)){const o=nl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&qi.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function el(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else We(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else We(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Wn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ji;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=hr(e,o,l);a!==void 0&&n.push(a)}return n}function nl(e,t,n){const r=Pi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?di(n):Li(n)),r.property==="style"){let i=typeof n=="object"?n:tl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=rl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ii[r.property]||r.property:r.attribute,n]}}function tl(e,t){try{return Ni(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new J("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=fr+"#cannot-parse-style-attribute",i}}function mr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=ct(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=ct(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Vn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);We(e)}function We(e,t){const n=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function rl(e){const t={};let n;for(n in e)Vn.call(e,n)&&(t[il(n)]=e[n]);return t}function il(e){let t=e.replace(Hi,ll);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ll(e){return"-"+e.toLowerCase()}const gn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ol={};function Yn(e,t){const n=ol,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gr(e,r,i)}function gr(e,t,n){if(al(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bt(e.children,t,n)}return Array.isArray(e)?bt(e,t,n):""}function bt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=gr(e[i],t,n);return r.join("")}function al(e){return!!(e&&typeof e=="object")}const wt=document.createElement("i");function Qn(e){const t="&"+e+";";wt.innerHTML=t;const n=wt.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ie(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function le(e,t){return e.length>0?(ie(e,e.length,0,t),e):t}const St={}.hasOwnProperty;function dr(e){const t={};let n=-1;for(;++n<e.length;)ul(t,e[n]);return t}function ul(e,t){let n;for(n in t){const i=(St.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){St.call(i,l)||(i[l]=[]);const a=o[l];sl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function sl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ie(e,0,0,r)}function xr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z=be(/[A-Za-z]/),K=be(/[\dA-Za-z]/),cl=be(/[#-'*+\--9=?A-Z^-~]/);function rn(e){return e!==null&&(e<32||e===127)}const Rn=be(/\d/),fl=be(/[\dA-Fa-f]/),hl=be(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function W(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const un=be(new RegExp("\\p{P}|\\p{S}","u")),Ee=be(/\s/);function be(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _e(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&K(e.charCodeAt(n+1))&&K(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return O(u)?(e.enter(n),a(u)):t(u)}function a(u){return O(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const pl={tokenize:ml};function ml(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const gl={tokenize:dl},Ct={tokenize:xl};function dl(e){const t=this,n=[];let r=0,i,o,l;return a;function a(C){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const F=t.events.length;let R=F,b;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){b=t.events[R][1].end;break}x(r);let M=F;for(;M<t.events.length;)t.events[M][1].end={...b},M++;return ie(t.events,R+1,0,t.events.slice(F)),t.events.length=M,s(C)}return a(C)}function s(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ct,f,c)(C)}function f(C){return i&&I(),x(r),p(C)}function c(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(C)}function p(C){return t.containerState={},e.attempt(Ct,h,d)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function d(C){if(C===null){i&&I(),x(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return z(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(C),w)}function S(C,F){const R=t.sliceStream(C);if(F&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const M=t.events.length;let H=M,j,y;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(j){y=t.events[H][1].end;break}j=!0}for(x(r),b=M;b<t.events.length;)t.events[b][1].end={...y},b++;ie(t.events,H+1,0,t.events.slice(M)),t.events.length=b}}function x(C){let F=n.length;for(;F-- >C;){const R=n[F];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xl(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fe(e){if(e===null||W(e)||Ee(e))return 1;if(un(e))return 2}function sn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const _n={name:"attention",resolveAll:yl,tokenize:kl};function yl(e,t){let n=-1,r,i,o,l,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Et(c,-u),Et(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=le(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=le(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=le(s,sn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=le(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=le(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ie(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function kl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fe(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Fe(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(u)}}function Et(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bl={name:"autolink",tokenize:wl};function wl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Z(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||K(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||K(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||rn(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):cl(h)?(e.consume(h),s):n(h)}function f(h){return K(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||K(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}const Xe={partial:!0,tokenize:Sl};function Sl(e,t,n){return r;function r(o){return O(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?t(o):n(o)}}const yr={continuation:{tokenize:El},exit:Il,name:"blockQuote",tokenize:Cl};function Cl(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return O(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function El(e,t,n){const r=this;return i;function i(l){return O(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(yr,t,n)(l)}}function Il(e){e.exit("blockQuote")}const kr={name:"characterEscape",tokenize:Al};function Al(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return hl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const br={name:"characterReference",tokenize:Tl};function Tl(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=K,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=fl,f):(e.enter("characterReferenceValue"),o=7,l=Rn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===K&&!Qn(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const It={partial:!0,tokenize:vl},At={concrete:!0,name:"codeFenced",tokenize:Pl};function Pl(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,l=0,a;return u;function u(b){return s(b)}function s(b){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),O(b)?B(e,c,"whitespace")(b):c(b))}function c(b){return b===null||z(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(It,w,F)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):O(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),p)}function h(b){return b===null||z(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),d)}function w(b){return e.attempt(i,F,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&O(b)?B(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||z(b)?e.check(It,w,F)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||z(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function F(b){return e.exit("codeFenced"),t(b)}function R(b,M,H){let j=0;return y;function y(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),P}function P(T){return b.enter("codeFencedFence"),O(T)?B(b,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):v(T)}function v(T){return T===a?(b.enter("codeFencedFenceSequence"),U(T)):H(T)}function U(T){return T===a?(j++,b.consume(T),U):j>=l?(b.exit("codeFencedFenceSequence"),O(T)?B(b,D,"whitespace")(T):D(T)):H(T)}function D(T){return T===null||z(T)?(b.exit("codeFencedFence"),M(T)):H(T)}}}function vl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const dn={name:"codeIndented",tokenize:Dl},zl={partial:!0,tokenize:Ll};function Dl(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):z(s)?e.attempt(zl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function Ll(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):z(l)?i(l):n(l)}}const Fl={name:"codeText",previous:_l,resolve:Rl,tokenize:Ol};function Rl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _l(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ol(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class Ml{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function wr(e){const t={};let n=-1,r,i,o,l,a,u,s;const f=new Ml(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Nl(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return ie(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Nl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=n,d=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const x=a.slice(S[p],S[p+1]),I=o.pop();u.push([I,I+x.length-1]),e.splice(I,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const Bl={resolve:Hl,tokenize:Ul},jl={partial:!0,tokenize:ql};function Hl(e){return wr(e),e}function Ul(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(jl,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ql(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||z(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Sr(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||rn(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||z(x)?n(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||W(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):f<s&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||rn(x)?n(x):(e.consume(x),x===92?S:w)}function S(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function Cr(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Er(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ve(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):O(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Vl={name:"definition",tokenize:Wl},$l={partial:!0,tokenize:Yl};function Wl(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Cr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return W(h)?Ve(e,s)(h):s(h)}function s(h){return Sr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt($l,c,c)(h)}function c(h){return O(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Yl(e,t,n){return r;function r(a){return W(a)?Ve(e,i)(a):n(a)}function i(a){return Er(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?t(a):n(a)}}const Ql={name:"hardBreakEscape",tokenize:Xl};function Xl(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Gl={name:"headingAtx",resolve:Kl,tokenize:Jl};function Kl(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ie(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Jl(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||W(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):O(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||W(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Zl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Tt=["pre","script","style","textarea"],eo={concrete:!0,name:"htmlFlow",resolveTo:ro,tokenize:io},no={partial:!0,tokenize:oo},to={partial:!0,tokenize:lo};function ro(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function io(e,t,n){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):Z(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const ue="CDATA[";return g===ue.charCodeAt(a++)?(e.consume(g),a===ue.length?r.interrupt?t:v:d):n(g)}function w(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||W(g)){const ue=g===47,we=l.toLowerCase();return!ue&&!o&&Tt.includes(we)?(i=1,r.interrupt?t(g):v(g)):Zl.includes(l.toLowerCase())?(i=6,ue?(e.consume(g),x):r.interrupt?t(g):v(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?I(g):C(g))}return g===45||K(g)?(e.consume(g),l+=String.fromCharCode(g),S):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:v):n(g)}function I(g){return O(g)?(e.consume(g),I):y(g)}function C(g){return g===47?(e.consume(g),y):g===58||g===95||Z(g)?(e.consume(g),F):O(g)?(e.consume(g),C):y(g)}function F(g){return g===45||g===46||g===58||g===95||K(g)?(e.consume(g),F):R(g)}function R(g){return g===61?(e.consume(g),b):O(g)?(e.consume(g),R):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,M):O(g)?(e.consume(g),b):H(g)}function M(g){return g===u?(e.consume(g),u=null,j):g===null||z(g)?n(g):(e.consume(g),M)}function H(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||W(g)?R(g):(e.consume(g),H)}function j(g){return g===47||g===62||O(g)?C(g):n(g)}function y(g){return g===62?(e.consume(g),P):n(g)}function P(g){return g===null||z(g)?v(g):O(g)?(e.consume(g),P):n(g)}function v(g){return g===45&&i===2?(e.consume(g),q):g===60&&i===1?(e.consume(g),X):g===62&&i===4?(e.consume(g),ae):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),pe):z(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(no,me,U)(g)):g===null||z(g)?(e.exit("htmlFlowData"),U(g)):(e.consume(g),v)}function U(g){return e.check(to,D,me)(g)}function D(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||z(g)?U(g):(e.enter("htmlFlowData"),v(g))}function q(g){return g===45?(e.consume(g),m):v(g)}function X(g){return g===47?(e.consume(g),l="",oe):v(g)}function oe(g){if(g===62){const ue=l.toLowerCase();return Tt.includes(ue)?(e.consume(g),ae):v(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),oe):v(g)}function pe(g){return g===93?(e.consume(g),m):v(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),m):v(g)}function ae(g){return g===null||z(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ae)}function me(g){return e.exit("htmlFlow"),t(g)}}function lo(e,t,n){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function oo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Xe,t,n)}}const ao={name:"htmlText",tokenize:uo};function uo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),R):m===63?(e.consume(m),C):Z(m)?(e.consume(m),H):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):Z(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):z(m)?(l=c,X(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?q(m):m===45?p(m):c(m)}function d(m){const ae="CDATA[";return m===ae.charCodeAt(o++)?(e.consume(m),o===ae.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):z(m)?(l=w,X(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?q(m):m===93?(e.consume(m),x):w(m)}function I(m){return m===null||m===62?q(m):z(m)?(l=I,X(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),F):z(m)?(l=C,X(m)):(e.consume(m),C)}function F(m){return m===62?q(m):C(m)}function R(m){return Z(m)?(e.consume(m),b):n(m)}function b(m){return m===45||K(m)?(e.consume(m),b):M(m)}function M(m){return z(m)?(l=M,X(m)):O(m)?(e.consume(m),M):q(m)}function H(m){return m===45||K(m)?(e.consume(m),H):m===47||m===62||W(m)?j(m):n(m)}function j(m){return m===47?(e.consume(m),q):m===58||m===95||Z(m)?(e.consume(m),y):z(m)?(l=j,X(m)):O(m)?(e.consume(m),j):q(m)}function y(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),y):P(m)}function P(m){return m===61?(e.consume(m),v):z(m)?(l=P,X(m)):O(m)?(e.consume(m),P):j(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,U):z(m)?(l=v,X(m)):O(m)?(e.consume(m),v):(e.consume(m),D)}function U(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):z(m)?(l=U,X(m)):(e.consume(m),U)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||W(m)?j(m):(e.consume(m),D)}function T(m){return m===47||m===62||W(m)?j(m):n(m)}function q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),oe}function oe(m){return O(m)?B(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),l(m)}}const Xn={name:"labelEnd",resolveAll:ho,resolveTo:po,tokenize:mo},so={tokenize:go},co={tokenize:xo},fo={tokenize:yo};function ho(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ie(e,0,e.length,n),e}function po(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=le(a,e.slice(o+1,o+r+3)),a=le(a,[["enter",f,t]]),a=le(a,sn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=le(a,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),a=le(a,e.slice(l+1)),a=le(a,[["exit",u,t]]),ie(e,o,e.length,a),e}function mo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ce(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(so,f,l?f:c)(p):p===91?e.attempt(co,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(fo,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function go(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return W(c)?Ve(e,o)(c):o(c)}function o(c){return c===41?f(c):Sr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return W(c)?Ve(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?Er(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return W(c)?Ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function xo(e,t,n){const r=this;return i;function i(a){return Cr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function yo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const ko={name:"labelStartImage",resolveAll:Xn.resolveAll,tokenize:bo};function bo(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const wo={name:"labelStartLink",resolveAll:Xn.resolveAll,tokenize:So};function So(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const xn={name:"lineEnding",tokenize:Co};function Co(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,t,"linePrefix")}}const tn={name:"thematicBreak",tokenize:Eo};function Eo(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),O(s)?B(e,a,"whitespace")(s):a(s))}}const ee={continuation:{tokenize:Po},exit:zo,name:"list",tokenize:To},Io={partial:!0,tokenize:Do},Ao={partial:!0,tokenize:vo};function To(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Rn(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(tn,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return Rn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Xe,r.interrupt?n:f,e.attempt(Io,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Po(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xe,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ao,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function vo(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function zo(e){e.exit(this.containerState.type)}function Do(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Pt={name:"setextUnderline",resolveTo:Lo,tokenize:Fo};function Lo(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Fo(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),O(s)?B(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||z(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const Ro={tokenize:_o};function _o(e){const t=this,n=e.attempt(Xe,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Bl,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Oo={resolveAll:Ar()},Mo=Ir("string"),No=Ir("text");function Ir(e){return{resolveAll:Ar(e==="text"?Bo:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ar(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Bo(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const jo={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:yr},Ho={91:Vl},Uo={[-2]:dn,[-1]:dn,32:dn},qo={35:Gl,42:tn,45:[Pt,tn],60:eo,61:Pt,95:tn,96:At,126:At},Vo={38:br,92:kr},$o={[-5]:xn,[-4]:xn,[-3]:xn,33:ko,38:br,42:_n,60:[bl,ao],91:wo,92:[Ql,kr],93:Xn,95:_n,96:Fl},Wo={null:[_n,Oo]},Yo={null:[42,95]},Qo={null:[]},Xo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Yo,contentInitial:Ho,disable:Qo,document:jo,flow:qo,flowInitial:Uo,insideSpan:Wo,string:Vo,text:$o},Symbol.toStringTag,{value:"Module"}));function Go(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:M(R),check:M(b),consume:I,enter:C,exit:F,interrupt:M(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function c(P){return l=le(l,P),S(),l[l.length-1]!==null?[]:(H(t,0),s.events=sn(o,s.events,s),s.events)}function p(P,v){return Jo(h(P),v)}function h(P){return Ko(l,P)}function d(){const{_bufferIndex:P,_index:v,line:U,column:D,offset:T}=r;return{_bufferIndex:P,_index:v,line:U,column:D,offset:T}}function w(P){i[P.line]=P.column,y()}function S(){let P;for(;r._index<l.length;){const v=l[r._index];if(typeof v=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<v.length;)x(v.charCodeAt(r._bufferIndex));else x(v)}}function x(P){f=f(P)}function I(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,y()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function C(P,v){const U=v||{};return U.type=P,U.start=d(),s.events.push(["enter",U,s]),a.push(U),U}function F(P){const v=a.pop();return v.end=d(),s.events.push(["exit",v,s]),v}function R(P,v){H(P,v.from)}function b(P,v){v.restore()}function M(P,v){return U;function U(D,T,q){let X,oe,pe,m;return Array.isArray(D)?me(D):"tokenize"in D?me([D]):ae(D);function ae(G){return Oe;function Oe(ye){const Ae=ye!==null&&G[ye],Te=ye!==null&&G.null,Ke=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return me(Ke)(ye)}}function me(G){return X=G,oe=0,G.length===0?q:g(G[oe])}function g(G){return Oe;function Oe(ye){return m=j(),pe=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?we():G.tokenize.call(v?Object.assign(Object.create(s),v):s,u,ue,we)(ye)}}function ue(G){return P(pe,m),T}function we(G){return m.restore(),++oe<X.length?g(X[oe]):q}}}function H(P,v){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&ie(s.events,v,s.events.length-v,P.resolve(s.events.slice(v),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function j(){const P=d(),v=s.previous,U=s.currentConstruct,D=s.events.length,T=Array.from(a);return{from:D,restore:q};function q(){r=P,s.previous=v,s.currentConstruct=U,s.events.length=D,a=T,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ko(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Jo(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
4
  `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Zo(e){const r={constructs:dr([Xo,...(e||{}).extensions||[]]),content:i(pl),defined:[],document:i(gl),flow:i(Ro),lazy:{},string:i(Mo),text:i(No)};return r;function i(o){return l;function l(a){return Go(r,o,a)}}}function ea(e){for(;!wr(e););return e}const vt=/[\0\t\n\r]/g;function na(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(vt.lastIndex=c,s=vt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ta=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ra(e){return e.replace(ta,ia)}function ia(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return xr(n.slice(o?2:1),o?16:10)}return Qn(n)||e}const Tr={}.hasOwnProperty;function la(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),oa(n)(ea(Zo(n).document().write(na()(e,t,!0))))}function oa(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ut),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(lt),blockQuote:o(Te),characterEscape:j,characterReference:j,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o(oi,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(ai),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ui),hardBreakEscape:o(ot),hardBreakTrailing:o(ot),htmlFlow:o(at,l),htmlFlowData:j,htmlText:o(at,l),htmlTextData:j,image:o(si),label:l,link:o(ut),listItem:o(ci),listItemValue:p,listOrdered:o(st,c),listUnordered:o(st),paragraph:o(fi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(lt),strong:o(hi),thematicBreak:o(mi)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:Ae,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:G,characterReference:Oe,codeFenced:u(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:y,codeIndented:u(x),codeText:u(T),codeTextData:y,data:y,definition:u(),definitionDestinationString:F,definitionLabelString:I,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(v),hardBreakTrailing:u(v),htmlFlow:u(U),htmlFlowData:y,htmlText:u(D),htmlTextData:y,image:u(X),label:pe,labelText:oe,lineEnding:P,link:u(q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:m,resourceTitleString:ae,resource:me,setextHeading:u(H),setextHeadingLineSequence:M,setextHeadingText:b,strong:u(),thematicBreak:u()}};Pr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(k){let A={type:"root",children:[]};const L={stack:[A],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},N=[];let V=-1;for(;++V<k.length;)if(k[V][1].type==="listOrdered"||k[V][1].type==="listUnordered")if(k[V][0]==="enter")N.push(V);else{const se=N.pop();V=i(k,se,V)}for(V=-1;++V<k.length;){const se=t[k[V][0]];Tr.call(se,k[V][1].type)&&se[k[V][1].type].call(Object.assign({sliceSerialize:k[V][2].sliceSerialize},L),k[V][1])}if(L.tokenStack.length>0){const se=L.tokenStack[L.tokenStack.length-1];(se[1]||zt).call(L,void 0,se[0])}for(A.position={start:ke(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:ke(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<t.transforms.length;)A=t.transforms[V](A)||A;return A}function i(k,A,L){let N=A-1,V=-1,se=!1,Se,ge,Me,Ne;for(;++N<=L;){const te=k[N];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?V++:V--,Ne=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(Se&&!Ne&&!V&&!Me&&(Me=N),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!V&&te[0]==="enter"&&te[1].type==="listItemPrefix"||V===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(Se){let Pe=N;for(ge=void 0;Pe--;){const de=k[Pe];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(k[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=Pe}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Me&&(!ge||Me<ge)&&(Se._spread=!0),Se.end=Object.assign({},ge?k[ge][1].start:te[1].end),k.splice(ge||N,0,["exit",Se,te[2]]),N++,L++}if(te[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};Se=Pe,k.splice(N,0,["enter",Pe,te[2]]),N++,L++,Me=void 0,Ne=!0}}}return k[A][1]._spread=se,L}function o(k,A){return L;function L(N){a.call(this,k(N),N),A&&A.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(k,A,L){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([A,L||void 0]),k.position={start:ke(A.start),end:void 0}}function u(k){return A;function A(L){k&&k.call(this,L),s.call(this,L)}}function s(k,A){const L=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==k.type&&(A?A.call(this,k,N[0]):(N[1]||zt).call(this,k,N[0]));else throw new Error("Cannot close `"+k.type+"` ("+qe({start:k.start,end:k.end})+"): it’s not open");L.position.end=ke(k.end)}function f(){return Yn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function h(){const k=this.resume(),A=this.stack[this.stack.length-1];A.lang=k}function d(){const k=this.resume(),A=this.stack[this.stack.length-1];A.meta=k}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const k=this.resume(),A=this.stack[this.stack.length-1];A.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const k=this.resume(),A=this.stack[this.stack.length-1];A.value=k.replace(/(\r?\n|\r)$/g,"")}function I(k){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ce(this.sliceSerialize(k)).toLowerCase()}function C(){const k=this.resume(),A=this.stack[this.stack.length-1];A.title=k}function F(){const k=this.resume(),A=this.stack[this.stack.length-1];A.url=k}function R(k){const A=this.stack[this.stack.length-1];if(!A.depth){const L=this.sliceSerialize(k).length;A.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function M(k){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function j(k){const L=this.stack[this.stack.length-1].children;let N=L[L.length-1];(!N||N.type!=="text")&&(N=pi(),N.position={start:ke(k.start),end:void 0},L.push(N)),this.stack.push(N)}function y(k){const A=this.stack.pop();A.value+=this.sliceSerialize(k),A.position.end=ke(k.end)}function P(k){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=A.children[A.children.length-1];L.position.end=ke(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(j.call(this,k),y.call(this,k))}function v(){this.data.atHardBreak=!0}function U(){const k=this.resume(),A=this.stack[this.stack.length-1];A.value=k}function D(){const k=this.resume(),A=this.stack[this.stack.length-1];A.value=k}function T(){const k=this.resume(),A=this.stack[this.stack.length-1];A.value=k}function q(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=A,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function X(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=A,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function oe(k){const A=this.sliceSerialize(k),L=this.stack[this.stack.length-2];L.label=ra(A),L.identifier=ce(A).toLowerCase()}function pe(){const k=this.stack[this.stack.length-1],A=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const N=k.children;L.children=N}else L.alt=A}function m(){const k=this.resume(),A=this.stack[this.stack.length-1];A.url=k}function ae(){const k=this.resume(),A=this.stack[this.stack.length-1];A.title=k}function me(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ue(k){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ce(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function we(k){this.data.characterReferenceType=k.type}function G(k){const A=this.sliceSerialize(k),L=this.data.characterReferenceType;let N;L?(N=xr(A,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Qn(A);const V=this.stack[this.stack.length-1];V.value+=N}function Oe(k){const A=this.stack.pop();A.position.end=ke(k.end)}function ye(k){y.call(this,k);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(k)}function Ae(k){y.call(this,k);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(k)}function Te(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function oi(){return{type:"inlineCode",value:""}}function ai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ui(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:0,children:[]}}function ot(){return{type:"break"}}function at(){return{type:"html",value:""}}function si(){return{type:"image",title:null,url:"",alt:null}}function ut(){return{type:"link",title:null,url:"",children:[]}}function st(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function ci(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function fi(){return{type:"paragraph",children:[]}}function hi(){return{type:"strong",children:[]}}function pi(){return{type:"text",value:""}}function mi(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Pr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Pr(e,r):aa(e,r)}}function aa(e,t){let n;for(n in t)if(Tr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function zt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+qe({start:t.start,end:t.end})+") is still open")}function ua(e){const t=this;t.parser=n;function n(r){return la(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sa(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ca(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -1,4 +1,4 @@
1
- import{r as O,c as V,z as _,j as d}from"./index-Bs1-6MBJ.js";import{u as Q}from"./use-mcp-resources-CQM51ISF.js";import{o as q,N as K,A as Y}from"./types-co6EnWx4.js";const $=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function G(o,e={}){const n=`<meta http-equiv="Content-Security-Policy" content="${X(e)}">`,s=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,c=o.match(s);if(c){const i=(c.index??0)+c[0].length;return o.slice(0,i)+`
1
+ import{r as O,c as V,z as _,j as d}from"./index--v47KjFS.js";import{u as Q}from"./use-mcp-resources-CdviUNt8.js";import{o as q,N as K,A as Y}from"./types-CixwvVqB.js";const $=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function G(o,e={}){const n=`<meta http-equiv="Content-Security-Policy" content="${X(e)}">`,s=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,c=o.match(s);if(c){const i=(c.index??0)+c[0].length;return o.slice(0,i)+`
2
2
  `+n+o.slice(i)}const a=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,r=o.match(a);if(r){const i=(r.index??0)+r[0].length;return o.slice(0,i)+`
3
3
  <head>
4
4
  `+n+`
@@ -1 +1 @@
1
- import{r as Z,c as V,z as H,j as n,B as J}from"./index-Bs1-6MBJ.js";import{a as K,T as Q,c as X}from"./tooltip-DvMIj9Vl.js";import{i as F}from"./CheckVerified02-CACpEsSD.js";import{s as Y}from"./Globe02-BY9KQM8G.js";import{i as ee}from"./Lock01-r4p0TJqu.js";import{s as te}from"./Plus-Cln26t9k.js";import{i as se}from"./Terminal-DcTm6ji-.js";import{C as le}from"./card-Dg8bSF1g.js";import{I as ie}from"./integration-icon-BxDprz4-.js";import{g as ne}from"./github-icon-Dp3wHhYE.js";const W=({size:s=24,color:e="currentColor",...i})=>Z.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},Z.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));W.displayName="Server01";function ae(s){if(!s.includes("/"))return s;const e=s.split("/"),i=e[0],l=e[1];if(!i||!l)return s;if(i.includes(".")){const a=i.split("."),r=a[a.length-1]||i,c=l.replace(/^mcp-?/,"").replace(/-?mcp$/,"").replace(/^server-?/,"").replace(/-?server$/,"");return!c||c.length<2?r:c}return l}function re(s){const e=V.c(2),{protocol:i,className:l}=s;let a;return e[0]!==l?(a={http:n.jsx(Y,{className:l}),sse:n.jsx(W,{className:l}),stdio:n.jsx(se,{className:l})},e[0]=l,e[1]=a):a=e[1],a[i]}function ce(s){switch(s){case"http":return"HTTP";case"sse":return"SSE";case"stdio":return"STDIO"}}function oe(s){const e=V.c(9),{protocol:i}=s;let l;e[0]!==i?(l=H("flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium shrink-0",{http:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",sse:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",stdio:"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400"}[i]),e[0]=i,e[1]=l):l=e[1];let a,r;e[2]!==i?(a=n.jsx(re,{protocol:i,className:"w-3 h-3"}),r=ce(i),e[2]=i,e[3]=a,e[4]=r):(a=e[3],r=e[4]);let c;return e[5]!==l||e[6]!==a||e[7]!==r?(c=n.jsxs("div",{className:l,children:[a,r]}),e[5]=l,e[6]=a,e[7]=r,e[8]=c):c=e[8],c}function me(s){const e=V.c(73),{icon:i,displayName:l,description:a,onClick:r}=s,t=(s.variant??"store")==="server",m=t?s.hostname:null,f=t?s.protocol:null,p=t?s.isInstalling:!1,x=t?s.actionLabel:void 0,d=t?null:s.scopeName,o=t?!1:s.isVerified,u=t?!1:s.isOfficial,h=t?!0:s.canInstall,R=t?"p-4":"p-6";let g;e[0]!==R?(g=H("cursor-pointer hover:bg-muted/50 transition-colors",R),e[0]=R,e[1]=g):g=e[1];const A=t?"gap-3":"gap-4";let v;e[2]!==A?(v=H("flex flex-col h-full relative",A),e[2]=A,e[3]=v):v=e[3];const G=t?"sm":"md";let j;e[4]!==l||e[5]!==i||e[6]!==G?(j=n.jsx(ie,{icon:i,name:l,size:G,className:"shadow-sm shrink-0"}),e[4]=l,e[5]=i,e[6]=G,e[7]=j):j=e[7];const U=t?"text-sm":"text-base";let N;e[8]!==U?(N=H("flex items-center gap-2 font-medium min-w-0",U),e[8]=U,e[9]=N):N=e[9];let C;e[10]!==l?(C=n.jsx("span",{className:"truncate",children:l}),e[10]=l,e[11]=C):C=e[11];let b;e[12]!==u||e[13]!==t?(b=!t&&u&&n.jsx(F,{size:16,className:"text-primary shrink-0"}),e[12]=u,e[13]=t,e[14]=b):b=e[14];let k;e[15]!==u||e[16]!==t||e[17]!==o?(k=!t&&!u&&o&&n.jsx(F,{size:16,className:"text-success shrink-0"}),e[15]=u,e[16]=t,e[17]=o,e[18]=k):k=e[18];let y;e[19]!==h||e[20]!==t?(y=!t&&!h&&n.jsx(ee,{size:16,className:"text-muted-foreground shrink-0"}),e[19]=h,e[20]=t,e[21]=y):y=e[21];let I;e[22]!==t||e[23]!==f?(I=t&&f&&n.jsx(oe,{protocol:f}),e[22]=t,e[23]=f,e[24]=I):I=e[24];let w;e[25]!==k||e[26]!==y||e[27]!==I||e[28]!==N||e[29]!==C||e[30]!==b?(w=n.jsx(K,{asChild:!0,children:n.jsxs("div",{className:N,children:[C,b,k,y,I]})}),e[25]=k,e[26]=y,e[27]=I,e[28]=N,e[29]=C,e[30]=b,e[31]=w):w=e[31];let S;e[32]!==l?(S=n.jsx("p",{children:l}),e[32]=l,e[33]=S):S=e[33];let $;e[34]!==h||e[35]!==t?($=!t&&!h&&n.jsx("p",{className:"text-xs mt-1",children:"No connection available"}),e[34]=h,e[35]=t,e[36]=$):$=e[36];let P;e[37]!==S||e[38]!==$?(P=n.jsxs(Q,{children:[S,$]}),e[37]=S,e[38]=$,e[39]=P):P=e[39];let T;e[40]!==w||e[41]!==P?(T=n.jsxs(X,{children:[w,P]}),e[40]=w,e[41]=P,e[42]=T):T=e[42];let _;e[43]!==m||e[44]!==t||e[45]!==d?(_=(d||m)&&n.jsx("div",{className:H("text-muted-foreground truncate",t?"text-xs mt-0.5":"text-sm"),children:d||m}),e[43]=m,e[44]=t,e[45]=d,e[46]=_):_=e[46];let z;e[47]!==T||e[48]!==_?(z=n.jsx("div",{className:"flex gap-2 items-start min-w-0 flex-1",children:n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]})}),e[47]=T,e[48]=_,e[49]=z):z=e[49];let D;e[50]!==z||e[51]!==j?(D=n.jsxs("div",{className:"flex gap-3",children:[j,z]}),e[50]=z,e[51]=j,e[52]=D):D=e[52];let E;e[53]!==a?(E=a&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:a}),e[53]=a,e[54]=E):E=e[54];let M;e[55]!==a||e[56]!==t?(M=!a&&!t&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:"No description available"}),e[55]=a,e[56]=t,e[57]=M):M=e[57];let L;e[58]!==x||e[59]!==p||e[60]!==t||e[61]!==r?(L=t&&n.jsxs(J,{variant:"outline",size:"sm",onClick:q=>{q.stopPropagation(),r()},disabled:p,className:"w-full mt-auto cursor-pointer",children:[n.jsx(te,{size:16}),p?"Connecting...":x||"Connect"]}),e[58]=x,e[59]=p,e[60]=t,e[61]=r,e[62]=L):L=e[62];let B;e[63]!==D||e[64]!==E||e[65]!==M||e[66]!==L||e[67]!==v?(B=n.jsxs("div",{className:v,children:[D,E,M,L]}),e[63]=D,e[64]=E,e[65]=M,e[66]=L,e[67]=v,e[68]=B):B=e[68];let O;return e[69]!==r||e[70]!==g||e[71]!==B?(O=n.jsx(le,{className:g,onClick:r,children:B}),e[69]=r,e[70]=g,e[71]=B,e[72]=O):O=e[72],O}function de(s){const e=s.server,i=s._meta?.["mcp.mesh"],l=i?.friendly_name||s.name||e?.title||s.title||s.id||"Unnamed Item",a=i?.short_description||i?.mesh_description||e?.description||s.description||null,r=e?.icons?.[0]?.src||ne(e?.repository)||null,c=i?.verified??!1,t=i?.official??!1,m=(e?.remotes?.length??0)>0,f=(e?.packages?.length??0)>0,p=m||f;let x=l,d=null;if(l.includes("/")){const o=l.split("/");o.length>=2&&(d=o[0]||null,x=ae(l))}if(!d){const o=i?.scopeName,u=i?.appName;o&&u?d=`${o}/${u}`:o&&(d=o)}return!d&&s.id?.includes("/")&&(d=s.id),i?.friendly_name&&(x=i.friendly_name),{icon:r,scopeName:d,displayName:x,description:a,isVerified:c,isOfficial:t,canInstall:p}}function ke(s){const e=V.c(19),{items:i,title:l,onItemClick:a}=s;let r,c,t,m,f;if(e[0]!==i||e[1]!==a||e[2]!==l){f=Symbol.for("react.early_return_sentinel");e:{const d=i.filter(fe);if(d.length===0){f=null;break e}t="flex flex-col gap-4",e[8]!==l?(m=l&&n.jsx("div",{className:"flex items-center justify-between w-max gap-2",children:n.jsx("h2",{className:"text-lg font-medium",children:l})}),e[8]=l,e[9]=m):m=e[9],r="grid grid-cols-4 gap-4";let o;e[10]!==a?(o=u=>{const h=de(u);return n.jsx(me,{...h,onClick:()=>a(u)},u.id)},e[10]=a,e[11]=o):o=e[11],c=d.map(o)}e[0]=i,e[1]=a,e[2]=l,e[3]=r,e[4]=c,e[5]=t,e[6]=m,e[7]=f}else r=e[3],c=e[4],t=e[5],m=e[6],f=e[7];if(f!==Symbol.for("react.early_return_sentinel"))return f;let p;e[12]!==r||e[13]!==c?(p=n.jsx("div",{className:r,children:c}),e[12]=r,e[13]=c,e[14]=p):p=e[14];let x;return e[15]!==t||e[16]!==m||e[17]!==p?(x=n.jsxs("div",{className:t,children:[m,p]}),e[15]=t,e[16]=m,e[17]=p,e[18]=x):x=e[18],x}function fe(s){return s!=null}export{ke as M,me as a,W as b,ae as e};
1
+ import{r as Z,c as V,z as H,j as n,B as J}from"./index--v47KjFS.js";import{a as K,T as Q,c as X}from"./tooltip-B2CdQ2bN.js";import{i as F}from"./CheckVerified02-Dvd1EdLV.js";import{s as Y}from"./Globe02-cnnmW-yP.js";import{i as ee}from"./Lock01-BtcVHLM1.js";import{s as te}from"./Plus-BPhP6AwU.js";import{i as se}from"./Terminal-DvdwlySH.js";import{C as le}from"./card-Cq808vu1.js";import{I as ie}from"./integration-icon-jSV9a6uH.js";import{g as ne}from"./github-icon-Dp3wHhYE.js";const W=({size:s=24,color:e="currentColor",...i})=>Z.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},Z.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));W.displayName="Server01";function ae(s){if(!s.includes("/"))return s;const e=s.split("/"),i=e[0],l=e[1];if(!i||!l)return s;if(i.includes(".")){const a=i.split("."),r=a[a.length-1]||i,c=l.replace(/^mcp-?/,"").replace(/-?mcp$/,"").replace(/^server-?/,"").replace(/-?server$/,"");return!c||c.length<2?r:c}return l}function re(s){const e=V.c(2),{protocol:i,className:l}=s;let a;return e[0]!==l?(a={http:n.jsx(Y,{className:l}),sse:n.jsx(W,{className:l}),stdio:n.jsx(se,{className:l})},e[0]=l,e[1]=a):a=e[1],a[i]}function ce(s){switch(s){case"http":return"HTTP";case"sse":return"SSE";case"stdio":return"STDIO"}}function oe(s){const e=V.c(9),{protocol:i}=s;let l;e[0]!==i?(l=H("flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium shrink-0",{http:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",sse:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",stdio:"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400"}[i]),e[0]=i,e[1]=l):l=e[1];let a,r;e[2]!==i?(a=n.jsx(re,{protocol:i,className:"w-3 h-3"}),r=ce(i),e[2]=i,e[3]=a,e[4]=r):(a=e[3],r=e[4]);let c;return e[5]!==l||e[6]!==a||e[7]!==r?(c=n.jsxs("div",{className:l,children:[a,r]}),e[5]=l,e[6]=a,e[7]=r,e[8]=c):c=e[8],c}function me(s){const e=V.c(73),{icon:i,displayName:l,description:a,onClick:r}=s,t=(s.variant??"store")==="server",m=t?s.hostname:null,f=t?s.protocol:null,p=t?s.isInstalling:!1,x=t?s.actionLabel:void 0,d=t?null:s.scopeName,o=t?!1:s.isVerified,u=t?!1:s.isOfficial,h=t?!0:s.canInstall,R=t?"p-4":"p-6";let g;e[0]!==R?(g=H("cursor-pointer hover:bg-muted/50 transition-colors",R),e[0]=R,e[1]=g):g=e[1];const A=t?"gap-3":"gap-4";let v;e[2]!==A?(v=H("flex flex-col h-full relative",A),e[2]=A,e[3]=v):v=e[3];const G=t?"sm":"md";let j;e[4]!==l||e[5]!==i||e[6]!==G?(j=n.jsx(ie,{icon:i,name:l,size:G,className:"shadow-sm shrink-0"}),e[4]=l,e[5]=i,e[6]=G,e[7]=j):j=e[7];const U=t?"text-sm":"text-base";let N;e[8]!==U?(N=H("flex items-center gap-2 font-medium min-w-0",U),e[8]=U,e[9]=N):N=e[9];let C;e[10]!==l?(C=n.jsx("span",{className:"truncate",children:l}),e[10]=l,e[11]=C):C=e[11];let b;e[12]!==u||e[13]!==t?(b=!t&&u&&n.jsx(F,{size:16,className:"text-primary shrink-0"}),e[12]=u,e[13]=t,e[14]=b):b=e[14];let k;e[15]!==u||e[16]!==t||e[17]!==o?(k=!t&&!u&&o&&n.jsx(F,{size:16,className:"text-success shrink-0"}),e[15]=u,e[16]=t,e[17]=o,e[18]=k):k=e[18];let y;e[19]!==h||e[20]!==t?(y=!t&&!h&&n.jsx(ee,{size:16,className:"text-muted-foreground shrink-0"}),e[19]=h,e[20]=t,e[21]=y):y=e[21];let I;e[22]!==t||e[23]!==f?(I=t&&f&&n.jsx(oe,{protocol:f}),e[22]=t,e[23]=f,e[24]=I):I=e[24];let w;e[25]!==k||e[26]!==y||e[27]!==I||e[28]!==N||e[29]!==C||e[30]!==b?(w=n.jsx(K,{asChild:!0,children:n.jsxs("div",{className:N,children:[C,b,k,y,I]})}),e[25]=k,e[26]=y,e[27]=I,e[28]=N,e[29]=C,e[30]=b,e[31]=w):w=e[31];let S;e[32]!==l?(S=n.jsx("p",{children:l}),e[32]=l,e[33]=S):S=e[33];let $;e[34]!==h||e[35]!==t?($=!t&&!h&&n.jsx("p",{className:"text-xs mt-1",children:"No connection available"}),e[34]=h,e[35]=t,e[36]=$):$=e[36];let P;e[37]!==S||e[38]!==$?(P=n.jsxs(Q,{children:[S,$]}),e[37]=S,e[38]=$,e[39]=P):P=e[39];let T;e[40]!==w||e[41]!==P?(T=n.jsxs(X,{children:[w,P]}),e[40]=w,e[41]=P,e[42]=T):T=e[42];let _;e[43]!==m||e[44]!==t||e[45]!==d?(_=(d||m)&&n.jsx("div",{className:H("text-muted-foreground truncate",t?"text-xs mt-0.5":"text-sm"),children:d||m}),e[43]=m,e[44]=t,e[45]=d,e[46]=_):_=e[46];let z;e[47]!==T||e[48]!==_?(z=n.jsx("div",{className:"flex gap-2 items-start min-w-0 flex-1",children:n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]})}),e[47]=T,e[48]=_,e[49]=z):z=e[49];let D;e[50]!==z||e[51]!==j?(D=n.jsxs("div",{className:"flex gap-3",children:[j,z]}),e[50]=z,e[51]=j,e[52]=D):D=e[52];let E;e[53]!==a?(E=a&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:a}),e[53]=a,e[54]=E):E=e[54];let M;e[55]!==a||e[56]!==t?(M=!a&&!t&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:"No description available"}),e[55]=a,e[56]=t,e[57]=M):M=e[57];let L;e[58]!==x||e[59]!==p||e[60]!==t||e[61]!==r?(L=t&&n.jsxs(J,{variant:"outline",size:"sm",onClick:q=>{q.stopPropagation(),r()},disabled:p,className:"w-full mt-auto cursor-pointer",children:[n.jsx(te,{size:16}),p?"Connecting...":x||"Connect"]}),e[58]=x,e[59]=p,e[60]=t,e[61]=r,e[62]=L):L=e[62];let B;e[63]!==D||e[64]!==E||e[65]!==M||e[66]!==L||e[67]!==v?(B=n.jsxs("div",{className:v,children:[D,E,M,L]}),e[63]=D,e[64]=E,e[65]=M,e[66]=L,e[67]=v,e[68]=B):B=e[68];let O;return e[69]!==r||e[70]!==g||e[71]!==B?(O=n.jsx(le,{className:g,onClick:r,children:B}),e[69]=r,e[70]=g,e[71]=B,e[72]=O):O=e[72],O}function de(s){const e=s.server,i=s._meta?.["mcp.mesh"],l=i?.friendly_name||s.name||e?.title||s.title||s.id||"Unnamed Item",a=i?.short_description||i?.mesh_description||e?.description||s.description||null,r=e?.icons?.[0]?.src||ne(e?.repository)||null,c=i?.verified??!1,t=i?.official??!1,m=(e?.remotes?.length??0)>0,f=(e?.packages?.length??0)>0,p=m||f;let x=l,d=null;if(l.includes("/")){const o=l.split("/");o.length>=2&&(d=o[0]||null,x=ae(l))}if(!d){const o=i?.scopeName,u=i?.appName;o&&u?d=`${o}/${u}`:o&&(d=o)}return!d&&s.id?.includes("/")&&(d=s.id),i?.friendly_name&&(x=i.friendly_name),{icon:r,scopeName:d,displayName:x,description:a,isVerified:c,isOfficial:t,canInstall:p}}function ke(s){const e=V.c(19),{items:i,title:l,onItemClick:a}=s;let r,c,t,m,f;if(e[0]!==i||e[1]!==a||e[2]!==l){f=Symbol.for("react.early_return_sentinel");e:{const d=i.filter(fe);if(d.length===0){f=null;break e}t="flex flex-col gap-4",e[8]!==l?(m=l&&n.jsx("div",{className:"flex items-center justify-between w-max gap-2",children:n.jsx("h2",{className:"text-lg font-medium",children:l})}),e[8]=l,e[9]=m):m=e[9],r="grid grid-cols-4 gap-4";let o;e[10]!==a?(o=u=>{const h=de(u);return n.jsx(me,{...h,onClick:()=>a(u)},u.id)},e[10]=a,e[11]=o):o=e[11],c=d.map(o)}e[0]=i,e[1]=a,e[2]=l,e[3]=r,e[4]=c,e[5]=t,e[6]=m,e[7]=f}else r=e[3],c=e[4],t=e[5],m=e[6],f=e[7];if(f!==Symbol.for("react.early_return_sentinel"))return f;let p;e[12]!==r||e[13]!==c?(p=n.jsx("div",{className:r,children:c}),e[12]=r,e[13]=c,e[14]=p):p=e[14];let x;return e[15]!==t||e[16]!==m||e[17]!==p?(x=n.jsxs("div",{className:t,children:[m,p]}),e[15]=t,e[16]=m,e[17]=p,e[18]=x):x=e[18],x}function fe(s){return s!=null}export{ke as M,me as a,W as b,ae as e};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bs1-6MBJ.js","assets/index-Cta5OAsO.css","assets/index-CvQBntDd.js","assets/use-collections-BWCPG3qv.js","assets/useMutation-C7wTU_P1.js","assets/constants-m_OMiYqO.js","assets/use-connection-DNxPUHEC.js","assets/use-mcp-tools-CGAtxBQr.js","assets/useQuery-wPyHm29j.js","assets/use-mcp-resources-CQM51ISF.js","assets/use-mcp-prompts-El8F9wfP.js","assets/use-virtual-mcp-HJi07IrH.js","assets/decopilot-events-Brt4gAR6.js","assets/usage-t6qWPVZ4.js"])))=>i.map(i=>d[i]);
2
- import{r as Y,c as G,j as t,B as se,w as me,z as ze,K as ue,c1 as fe,u as _e,e as Ie,O as ie,g as Fe,d as Oe,bh as He,f as Ge,F as qe}from"./index-Bs1-6MBJ.js";import{i as Ke}from"./AlertCircle-ClrGTaOd.js";import{i as ke}from"./Loading01-Ds_yIlBt.js";import{P as de}from"./index-Cy5NxMqm.js";import{b as We,c as Qe,a as Ye,T as Je}from"./tooltip-DvMIj9Vl.js";import{i as Xe}from"./Check-D47qqsWi.js";import{a as Ze}from"./Copy01-sKED-vLj.js";import{I as Te}from"./integration-icon-BxDprz4-.js";import{i as et}from"./CheckCircle-CM5PTjhy.js";import{t as tt}from"./ChevronDown-CmFoa-MN.js";import{s as ve}from"./Plus-Cln26t9k.js";import{a as st,c as rt,b as ot,D as nt}from"./dropdown-menu-B2-TC2ID.js";import{n as be}from"./LinkExternal01-Cjuepk2Y.js";import{E as it}from"./empty-state-QAJJHSPh.js";import{R as ye}from"./readme-viewer-C4a15ScG.js";import{u as pe}from"./useQuery-wPyHm29j.js";import{m as je}from"./marked.esm-BaswSlok.js";import{a as lt}from"./tools-list-BqjA8cpd.js";import{C as at}from"./collection-tabs-DMmhv_1g.js";import{s as ct}from"./Globe02-BY9KQM8G.js";import{a as dt,b as mt,e as ut}from"./mcp-server-card-ZHSZs_kf.js";import{i as ft}from"./Terminal-DcTm6ji-.js";import{B as pt,a as xt,b as Ne,d as ht,e as gt,c as vt}from"./breadcrumb-CtHpt1Hj.js";import{u as bt}from"./use-binding-BDoLJ3NJ.js";import{a as yt,b as jt,u as Nt}from"./use-connection-DNxPUHEC.js";import{u as wt}from"./constants-m_OMiYqO.js";import{u as Ct}from"./use-mcp-tools-CGAtxBQr.js";import{u as St}from"./use-local-storage-BO16s_mB.js";import{e as _t}from"./extract-connection-data-Cir4onx8.js";import{s as It}from"./slugify-CEUa2lfQ.js";import{e as kt,g as Tt}from"./github-icon-Dp3wHhYE.js";import{f as Lt,d as we,g as Pt,h as Mt}from"./registry-utils-8JbjeIg2.js";import{i as Rt}from"./InfoCircle-Cn8apf8U.js";import"./index-Brmwx3QP.js";import"./Container-BgIU6bWo.js";import"./ChevronRight-Ccc_Sjed.js";import"./File06-BMW8ao_w.js";import"./collection-display-button-DV49rNbI.js";import"./ArrowDown-DlYdW6Y7.js";import"./ArrowUp-BadPbvy3.js";import"./Grid01-kGaUg_cc.js";import"./List-Bz4PLQWX.js";import"./badge-CQLalkEE.js";import"./collection-search-BHtDjvQL.js";import"./SearchMd-C32DAy1s.js";import"./input-oo9dNDtJ.js";import"./collection-table-wrapper-BgavezLW.js";import"./table-DQFo79Pa.js";import"./card-Dg8bSF1g.js";import"./types-co6EnWx4.js";import"./Eye-BeIr8Vzd.js";import"./LayersTwo01-BTT9GgdG.js";import"./layout-0-CpWJ4q.js";import"./CheckVerified02-CACpEsSD.js";import"./Lock01-r4p0TJqu.js";import"./binder-BCOcjrHc.js";import"./use-collections-BWCPG3qv.js";import"./useMutation-C7wTU_P1.js";import"./constants-BRaJPJag.js";import"./generate-id-Dyweu44Y.js";const Le=({size:r=24,color:e="currentColor",...s})=>Y.createElement("svg",{viewBox:"0 0 24 24",width:r,height:r,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},Y.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));Le.displayName="SearchLg";function Dt(r){const e=G.c(3),{message:s}=r,o=s===void 0?"Loading MCP Server details...":s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ke,{size:48,className:"animate-spin mb-4"}),e[0]=n):n=e[0];let l;return e[1]!==o?(l=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,t.jsx("p",{className:"text-sm text-muted-foreground",children:o})]}),e[1]=o,e[2]=l):l=e[2],l}function Et(r){const e=G.c(9),{error:s,onBack:o}=r,n=s instanceof Error?s.message:s;let l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Ke,{size:48,className:"text-destructive mb-4"}),c=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading MCP Server"}),e[0]=l,e[1]=c):(l=e[0],c=e[1]);let m;e[2]!==n?(m=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:n}),e[2]=n,e[3]=m):m=e[3];let a;e[4]!==o?(a=t.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=o,e[5]=a):a=e[5];let d;return e[6]!==m||e[7]!==a?(d=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[l,c,m,a]}),e[6]=m,e[7]=a,e[8]=d):d=e[8],d}function Ut(r){const e=G.c(5),{onBack:s}=r;let o,n,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Le,{size:48,className:"text-muted-foreground mb-4"}),n=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"MCP Server not found"}),l=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The MCP Server you're looking for doesn't exist in this store."}),e[0]=o,e[1]=n,e[2]=l):(o=e[0],n=e[1],l=e[2]);let c;return e[3]!==s?(c=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o,n,l,t.jsx("button",{onClick:s,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=s,e[4]=c):c=e[4],c}function $t(r){const e=G.c(11),{breadcrumb:s,shareUrl:o}=r,[n,l]=Y.useState(!1);let c;e[0]!==o?(c=async()=>{o&&(await navigator.clipboard.writeText(o),l(!0),me.success("Share link copied to clipboard"),setTimeout(()=>l(!1),2e3))},e[0]=o,e[1]=c):c=e[1];const m=c;let a;e[2]!==s?(a=t.jsx(de.Header.Left,{children:s}),e[2]=s,e[3]=a):a=e[3];let d;e[4]!==n||e[5]!==m||e[6]!==o?(d=o&&t.jsx(de.Header.Right,{children:t.jsx(We,{children:t.jsxs(Qe,{children:[t.jsx(Ye,{asChild:!0,children:t.jsxs(se,{variant:"outline",size:"sm",onClick:m,className:"gap-1.5 cursor-pointer",children:[n?t.jsx(Xe,{size:16,className:"text-green-600"}):t.jsx(Ze,{size:16}),t.jsx("span",{children:n?"Copied!":"Share"})]})}),t.jsx(Je,{children:t.jsx("p",{children:"Copy a universal link anyone can use to find this MCP"})})]})})}),e[4]=n,e[5]=m,e[6]=o,e[7]=d):d=e[7];let w;return e[8]!==a||e[9]!==d?(w=t.jsxs(de.Header,{children:[a,d]}),e[8]=a,e[9]=d,e[10]=w):w=e[10],w}function Ce(r){const e=G.c(28),{versions:s,selectedIndex:o,onSelect:n,isInstalling:l,variant:c,showLabel:m}=r,a=l===void 0?!1:l,d=c===void 0?"default":c,w=m===void 0?!1:m,p=s[o],I=w?"sm":"default",f=d==="default"&&"rounded-l-none px-2 border-l-2 border-l-white/50";let v;e[0]!==f?(v=ze("shrink-0 cursor-pointer",f),e[0]=f,e[1]=v):v=e[1];let u;e[2]!==p?.server?.version||e[3]!==w?(u=w&&t.jsxs("span",{className:"mr-1",children:["v",p?.server?.version||"unknown"]}),e[2]=p?.server?.version,e[3]=w,e[4]=u):u=e[4];const N=w?14:20;let h;e[5]!==N?(h=t.jsx(tt,{size:N}),e[5]=N,e[6]=h):h=e[6];let y;e[7]!==a||e[8]!==I||e[9]!==v||e[10]!==u||e[11]!==h||e[12]!==d?(y=t.jsx(st,{asChild:!0,children:t.jsxs(se,{variant:d,disabled:a,size:I,className:v,children:[u,h]})}),e[7]=a,e[8]=I,e[9]=v,e[10]=u,e[11]=h,e[12]=d,e[13]=y):y=e[13];let j;if(e[14]!==a||e[15]!==n||e[16]!==o||e[17]!==s){let T;e[19]!==a||e[20]!==n||e[21]!==o?(T=(S,_)=>{const M=S._meta?.["io.modelcontextprotocol.registry/official"];return t.jsx(rt,{onClick:()=>n(_),disabled:a,className:"cursor-pointer",children:t.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("div",{className:"font-medium text-sm",children:["v",S.server?.version||"unknown"]}),M?.isLatest&&t.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),_===o&&t.jsx(et,{size:16,className:"text-muted-foreground shrink-0"})]})},_)},e[19]=a,e[20]=n,e[21]=o,e[22]=T):T=e[22],j=s.map(T),e[14]=a,e[15]=n,e[16]=o,e[17]=s,e[18]=j}else j=e[18];let g;e[23]!==j?(g=t.jsx(ot,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:j}),e[23]=j,e[24]=g):g=e[24];let L;return e[25]!==y||e[26]!==g?(L=t.jsxs(nt,{children:[y,g]}),e[25]=y,e[26]=g,e[27]=L):L=e[27],L}function Vt(r){const e=G.c(46),{data:s,itemVersions:o,onInstall:n,canInstall:l,isInstalling:c,hideInstallControls:m,selectedVersionIndex:a,onVersionChange:d}=r,w=l===void 0?!0:l,p=c===void 0?!1:c,I=m===void 0?!1:m,[f,v]=Y.useState(0),u=a??f;let N;e[0]!==d?(N=U=>{v(U),d?.(U)},e[0]=d,e[1]=N):N=e[1];const h=N,y=o[u]||o[0];let j;e[2]!==y?.server?.remotes?(j=y?.server?.remotes??[],e[2]=y?.server?.remotes,e[3]=j):j=e[3];const g=j;let L;e[4]!==y?.server?.packages?(L=y?.server?.packages??[],e[4]=y?.server?.packages,e[5]=L):L=e[5];const S=L.length>0,_=g.length>0,M=g.findIndex(Bt),x=M>=0?M:0;let J;e[6]!==x||e[7]!==S||e[8]!==_||e[9]!==n||e[10]!==u?(J=()=>{_?n(u,x,void 0):S&&n(u,void 0,0)},e[6]=x,e[7]=S,e[8]=_,e[9]=n,e[10]=u,e[11]=J):J=e[11];const b=J;let R;e[12]!==o||e[13]!==n||e[14]!==h?(R=U=>{h(U);const O=o[U],W=O?.server?.remotes??[],q=O?.server?.packages??[];if(W.length>0){const oe=W.findIndex(At);n(U,oe>=0?oe:0,void 0)}else q.length>0&&n(U,void 0,0)},e[12]=o,e[13]=n,e[14]=h,e[15]=R):R=e[15];const A=R;let B;e[16]!==s.icon||e[17]!==s.name?(B=t.jsx(Te,{icon:s.icon,name:s.name,size:"lg",className:"shrink-0 shadow-sm"}),e[16]=s.icon,e[17]=s.name,e[18]=B):B=e[18];let K;e[19]!==s.name?(K=t.jsx("h1",{className:"text-3xl font-medium",children:s.name}),e[19]=s.name,e[20]=K):K=e[20];let F;e[21]!==s.verified?(F=s.verified&&t.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[21]=s.verified,e[22]=F):F=e[22];let k;e[23]!==K||e[24]!==F?(k=t.jsxs("div",{className:"flex items-center gap-2",children:[K,F]}),e[23]=K,e[24]=F,e[25]=k):k=e[25];let C;e[26]!==s.shortDescription?(C=s.shortDescription&&t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s.shortDescription}),e[26]=s.shortDescription,e[27]=C):C=e[27];let V;e[28]!==k||e[29]!==C?(V=t.jsxs("div",{className:"flex-1 min-w-0",children:[k,C]}),e[28]=k,e[29]=C,e[30]=V):V=e[30];let D;e[31]!==w||e[32]!==b||e[33]!==A||e[34]!==I||e[35]!==p||e[36]!==o||e[37]!==u||e[38]!==h?(D=w&&!I?t.jsx("div",{className:"shrink-0 flex items-center gap-2",children:o.length>1?t.jsxs("div",{className:"flex",children:[t.jsxs(se,{variant:"default",size:"sm",onClick:b,disabled:p,className:"shrink-0 rounded-r-none cursor-pointer",children:[t.jsx(ve,{size:20}),p?"Connecting...":"Connect"]}),t.jsx(Ce,{versions:o,selectedIndex:u,onSelect:A,isInstalling:p,variant:"outline"})]}):t.jsxs(se,{variant:"default",size:"sm",onClick:b,disabled:o.length===0||p,className:"shrink-0 cursor-pointer",children:[t.jsx(ve,{size:20}),p?"Connecting...":"Connect"]})}):I?o.length>1?t.jsx("div",{className:"shrink-0",children:t.jsx(Ce,{versions:o,selectedIndex:u,onSelect:h,isInstalling:p,variant:"outline",showLabel:!0})}):null:t.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[31]=w,e[32]=b,e[33]=A,e[34]=I,e[35]=p,e[36]=o,e[37]=u,e[38]=h,e[39]=D):D=e[39];let E;e[40]!==V||e[41]!==D?(E=t.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[V,D]}),e[40]=V,e[41]=D,e[42]=E):E=e[42];let z;return e[43]!==E||e[44]!==B?(z=t.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[B,E]}),e[43]=E,e[44]=B,e[45]=z):z=e[45],z}function At(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function Bt(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function zt(r){if(!r)return"—";try{const e=new Date(r);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function Ft(r){const e=G.c(47),{data:s,publisherInfo:o,selectedItem:n}=r;let l;e[0]!==s.description?(l=s.description&&t.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[t.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.description})]}),e[0]=s.description,e[1]=l):l=e[1];const c=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher;let m;e[2]!==o.logo||e[3]!==c?(m=t.jsx(Te,{icon:o.logo,name:c,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=o.logo,e[3]=c,e[4]=m):m=e[4];let a;e[5]!==s.publisher?(a=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher.charAt(0).toUpperCase()+s.publisher.slice(1),e[5]=s.publisher,e[6]=a):a=e[6];let d;e[7]!==a?(d=t.jsx("div",{className:"font-medium",children:a}),e[7]=a,e[8]=d):d=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"text-xs text-muted-foreground",children:"Publisher"}),e[9]=w):w=e[9];let p;e[10]!==d?(p=t.jsxs("div",{children:[d,w]}),e[10]=d,e[11]=p):p=e[11];let I;e[12]!==m||e[13]!==p?(I=t.jsx("div",{className:"px-5 border-b border-border",children:t.jsxs("div",{className:"flex items-center gap-3 py-5",children:[m,p]})}),e[12]=m,e[13]=p,e[14]=I):I=e[14];let f;e[15]!==s.version?(f=s.version&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Version"}),t.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",s.version]})]}),e[15]=s.version,e[16]=f):f=e[16];let v;e[17]!==s.tags?(v=s.tags&&s.tags.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Tags"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.tags.map(Ht)})]}),e[17]=s.tags,e[18]=v):v=e[18];let u;e[19]!==s.categories?(u=s.categories&&s.categories.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Categories"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.categories.map(Ot)})]}),e[19]=s.categories,e[20]=u):u=e[20];let N;e[21]!==s.connectionType?(N=s.connectionType&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:s.connectionType})]}),e[21]=s.connectionType,e[22]=N):N=e[22];let h;e[23]!==s.schemaVersion?(h=s.schemaVersion&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),t.jsx("span",{className:"text-muted-foreground text-xs",children:s.schemaVersion})]}),e[23]=s.schemaVersion,e[24]=h):h=e[24];let y;e[25]!==s.websiteUrl?(y=s.websiteUrl&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Website"}),t.jsxs("a",{href:s.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"Visit"}),t.jsx(be,{size:14})]})]}),e[25]=s.websiteUrl,e[26]=y):y=e[26];let j;e[27]!==s.repository?(j=s.repository?.url&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Source"}),t.jsxs("a",{href:s.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"GitHub"}),t.jsx(be,{size:14})]})]}),e[27]=s.repository,e[28]=j):j=e[28];let g;e[29]!==v||e[30]!==u||e[31]!==N||e[32]!==h||e[33]!==y||e[34]!==j||e[35]!==f?(g=t.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[f,v,u,N,h,y,j]}),e[29]=v,e[30]=u,e[31]=N,e[32]=h,e[33]=y,e[34]=j,e[35]=f,e[36]=g):g=e[36];let L;e[37]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[37]=L):L=e[37];let T;e[38]!==n.updated_at?(T=zt(n.updated_at),e[38]=n.updated_at,e[39]=T):T=e[39];let S;e[40]!==T?(S=t.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[L,t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:T})]}),e[40]=T,e[41]=S):S=e[41];let _;return e[42]!==l||e[43]!==g||e[44]!==S||e[45]!==I?(_=t.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[l,I,g,S]}),e[42]=l,e[43]=g,e[44]=S,e[45]=I,e[46]=_):_=e[46],_}function Ot(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}function Ht(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}const Gt=[{value:"http",label:"HTTP"},{value:"sse",label:"SSE"},{value:"stdio",label:"STDIO"},{value:"all",label:"All"}],qt={docs:"Documentation",bindings:"Workers Bindings",builds:"Workers Builds",observability:"Observability",radar:"Radar",containers:"Containers",browser:"Browser Rendering",logs:"Logpush",autorag:"AutoRAG",auditlogs:"Audit Logs",graphql:"GraphQL",dex:"DEX Monitoring",casb:"CASB"};function Kt(r){if(!r)return"Local";try{return new URL(r).hostname}catch{return r}}function Wt(r){if(!r)return"local";try{const e=new URL(r).hostname;return e.split(".")[0]||e}catch{return"unknown"}}function Qt(r){const e=qt[r.toLowerCase()];return e||r.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function Yt(r){if(!r)return"http";const e=r.toLowerCase();return e==="sse"?"sse":e==="stdio"?"stdio":"http"}function Jt(r){return r.map((e,s)=>{const o=Yt(e.type),n=Kt(e.url),l=Wt(e.url),c=e.title||e.name||Qt(l);return{index:s,protocol:o,url:e.url,hostname:n,serviceName:l,displayName:c,name:e.name,title:e.title,description:e.description,_type:e._type,_index:e._index}})}function Xt(r){const e=G.c(2),{protocol:s,className:o}=r;let n;return e[0]!==o?(n={http:t.jsx(ct,{className:o}),sse:t.jsx(mt,{className:o}),stdio:t.jsx(ft,{className:o})},e[0]=o,e[1]=n):n=e[1],n[s]}function Zt(r){const e=G.c(10),{options:s,selected:o,onSelect:n}=r;if(s.length<=1)return null;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("span",{className:"text-sm text-muted-foreground",children:"Protocol:"}),e[0]=l):l=e[0];let c;if(e[1]!==n||e[2]!==s||e[3]!==o){let a;e[5]!==n||e[6]!==o?(a=d=>t.jsxs(se,{variant:o===d.value?"default":"outline",size:"sm",onClick:()=>n(d.value),className:"cursor-pointer",children:[t.jsx(Xt,{protocol:d.value==="all"?"http":d.value,className:"w-4 h-4 mr-1"}),d.label]},d.value),e[5]=n,e[6]=o,e[7]=a):a=e[7],c=s.map(a),e[1]=n,e[2]=s,e[3]=o,e[4]=c}else c=e[4];let m;return e[8]!==c?(m=t.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l,t.jsx("div",{className:"flex gap-1",children:c})]}),e[8]=c,e[9]=m):m=e[9],m}function es(r){const e=G.c(11),{servers:s,onInstall:o,isInstalling:n,icon:l,mcpName:c,showStdio:m}=r,a=n===void 0?!1:n,d=m===void 0?!1:m,w=d?s:s.filter(os),p=Jt(w),I=p.length<13?"all":"http",[f,v]=Y.useState(I);let u;e:{if(f==="all"){u="all";break e}let x;if(e[0]!==f?(x=b=>b.protocol===f,e[0]=f,e[1]=x):x=e[1],p.some(x)){u=f;break e}if(p.length<13){u="all";break e}u=p[0]?.protocol??"http"}const N=u,h=N==="all"?p:p.filter(x=>x.protocol===N),y=new Set(p.map(rs));let j=Gt.filter(x=>x.value==="all"||y.has(x.value));d||(j=j.filter(ss));const g=y.size<=1?j.filter(ts):j,L="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4";let T;e[2]!==l||e[3]!==a||e[4]!==c||e[5]!==o?(T=x=>t.jsx(dt,{variant:"server",icon:l??null,displayName:x.displayName,description:x.description??null,hostname:x.hostname,protocol:x.protocol,isInstalling:a,onClick:()=>o({type:x.protocol,url:x.url,name:x.name,title:x.title,description:x.description,_type:x._type,_index:x._index})},`${x.hostname}-${x.protocol}-${x.index}`),e[2]=l,e[3]=a,e[4]=c,e[5]=o,e[6]=T):T=e[6];const S=h.map(T);let _;e[7]!==S?(_=t.jsx("div",{className:L,children:S}),e[7]=S,e[8]=_):_=e[8];let M;return e[9]!==h.length?(M=h.length===0&&t.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No servers match the selected filter."}),e[9]=h.length,e[10]=M):M=e[10],t.jsxs("div",{className:"p-5",children:[t.jsx(Zt,{options:g,selected:N,onSelect:v}),_,M]})}function ts(r){return r.value!=="all"}function ss(r){return r.value!=="stdio"}function rs(r){return r.protocol}function os(r){return r.type?.toLowerCase()!=="stdio"}async function Se(r){return(await fe(async()=>{const{default:s}=await import("./purify.es-CovBOfck.js");return{default:s}},[])).default.sanitize(r,{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form"],FORBID_ATTR:["style"]})}function ns(r){const e=G.c(53),{data:s,availableTabs:o,effectiveActiveTabId:n,effectiveTools:l,isLoadingTools:c,onTabChange:m,servers:a,onInstallServer:d,isInstalling:w,mcpIcon:p,mcpName:I,showStdio:f}=r,v=c===void 0?!1:c;let u;e[0]!==a?(u=a===void 0?[]:a,e[0]=a,e[1]=u):u=e[1];const N=u,h=w===void 0?!1:w,y=f===void 0?!1:f;let j;e[2]!==s.readmeMarkdown?(j=s.readmeMarkdown?.trim(),e[2]=s.readmeMarkdown,e[3]=j):j=e[3];const g=!!j;let L;e[4]!==s.readmeUrl?(L=s.readmeUrl?.trim(),e[4]=s.readmeUrl,e[5]=L):L=e[5];const T=!!L;let S;e[6]!==s.readmeMarkdown?(S=ue.storeReadmeUrl(`embedded:${s.readmeMarkdown}`),e[6]=s.readmeMarkdown,e[7]=S):S=e[7];let _;e[8]!==s.readmeMarkdown?(_=async()=>{const q=je.parse(s.readmeMarkdown??"",{async:!1});return Se(q)},e[8]=s.readmeMarkdown,e[9]=_):_=e[9];let M;e[10]!==g||e[11]!==S||e[12]!==_?(M={queryKey:S,queryFn:_,enabled:g,staleTime:1/0},e[10]=g,e[11]=S,e[12]=_,e[13]=M):M=e[13];const{data:x,isLoading:J}=pe(M);let b;e[14]!==s.readmeUrl?(b=ue.storeReadmeUrl(s.readmeUrl),e[14]=s.readmeUrl,e[15]=b):b=e[15];let R;e[16]!==s.readmeUrl?(R=async()=>{if(!s.readmeUrl)return null;const q=await fetch(s.readmeUrl);if(!q.ok)throw new Error(`Failed to fetch README (${q.status})`);const re=await q.text();return Se(je.parse(re,{async:!1}))},e[16]=s.readmeUrl,e[17]=R):R=e[17];const A=T&&!g;let B;e[18]!==b||e[19]!==R||e[20]!==A?(B={queryKey:b,queryFn:R,enabled:A,staleTime:36e5,gcTime:864e5},e[18]=b,e[19]=R,e[20]=A,e[21]=B):B=e[21];const{data:K,isLoading:F}=pe(B),k=x??K??null,C=g&&J||!g&&F;let V;e[22]!==l?(V=l.map(is),e[22]=l,e[23]=V):V=e[23];const D=V;let E;e[24]!==o||e[25]!==n||e[26]!==m?(E=o.length>0&&t.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:t.jsx(at,{tabs:o,activeTab:n,onTabChange:m})}),e[24]=o,e[25]=n,e[26]=m,e[27]=E):E=e[27];let z;e[28]!==n||e[29]!==h||e[30]!==p||e[31]!==I||e[32]!==d||e[33]!==N||e[34]!==y?(z=n==="servers"&&N.length>0&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:t.jsx(es,{servers:N,onInstall:q=>d?.(q),isInstalling:h,icon:p,mcpName:I,showStdio:y})}),e[28]=n,e[29]=h,e[30]=p,e[31]=I,e[32]=d,e[33]=N,e[34]=y,e[35]=z):z=e[35];let U;e[36]!==n||e[37]!==l.length||e[38]!==v||e[39]!==D?(U=n==="tools"&&t.jsx("div",{className:"flex flex-col flex-1",children:v?t.jsxs("div",{className:"flex items-center justify-center p-8",children:[t.jsx(ke,{size:24,className:"animate-spin"}),t.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):l.length>0?t.jsx(lt,{tools:D,showToolbar:!1,emptyMessage:"This MCP Server doesn't have any tools."}):t.jsx(it,{image:null,title:"No tools available",description:"This MCP Server doesn't have any tools."})}),e[36]=n,e[37]=l.length,e[38]=v,e[39]=D,e[40]=U):U=e[40];let O;e[41]!==k||e[42]!==C||e[43]!==s.repository||e[44]!==n||e[45]!==g||e[46]!==T?(O=n==="readme"&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:g||T?t.jsx(ye,{html:k,isLoading:C}):t.jsx(ye,{repository:s?.repository})}),e[41]=k,e[42]=C,e[43]=s.repository,e[44]=n,e[45]=g,e[46]=T,e[47]=O):O=e[47];let W;return e[48]!==E||e[49]!==z||e[50]!==U||e[51]!==O?(W=t.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[E,z,U,O]}),e[48]=E,e[49]=z,e[50]=U,e[51]=O,e[52]=W):W=e[52],W}function is(r){const e=r;return{name:e.name||"",description:e.description||void 0}}function ls(r,e){if(!r||!e)return;const s=e.toLowerCase();return r.find(o=>o.app_name?.toLowerCase()===s||o.app_id?.toLowerCase()===s||o.title.toLowerCase()===s)||r.find(o=>o.title.toLowerCase().includes(s))}function as(r,e,s,o,n){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:o?.icon||void 0,count:n??r.length};const l=e.toLowerCase(),c=r.filter(a=>(a._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":a.publisher||a._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===l);return{logo:s?.icon||c[0]?.publisher_logo||c[0]?.icon||void 0,count:c.length}}function cs(r){const e=r._meta?.["mcp.mesh"],s=r._meta?.["io.modelcontextprotocol.registry/official"],o=r.server??{},n=Pt(o?.remotes?.[0]?.type),l=Mt(o?.$schema),c=r.id?.includes("/")?r.id.split("/")[0]:void 0,m=s?"io.modelcontextprotocol.registry/official":r.publisher||e?.scopeName||c||"Unknown",a=Tt(o.repository),d=r.icon||r.image||r.logo||o.icons?.[0]?.src||a||null,w=r.name||r.title||r.server?.title||"Unnamed Item",p=ut(w),I=e?.friendly_name||p,f=e?.mesh_description||r.description||r.summary||o?.description||"",v=e?.short_description||null,u=typeof e?.readme=="string"?e.readme:null,N=typeof e?.readme_url=="string"?e.readme_url:null,h=e?.tags||[],y=e?.categories||[];return{name:I,description:f,shortDescription:v,readmeMarkdown:u,readmeUrl:N,icon:d,verified:r.verified||e?.verified,publisher:m,version:o.version||null,websiteUrl:o.websiteUrl||null,repository:o.repository||null,schemaVersion:l??null,connectionType:n,connectionUrl:o?.remotes?.[0]?.url||null,remoteUrl:o?.remotes?.[0]?.url||null,tags:h,categories:y,tools:r.tools||o.tools||e?.tools||[],models:r.models||o.models||e?.models||[],emails:r.emails||o.emails||e?.emails||[],analytics:r.analytics||o.analytics||e?.analytics,cdn:r.cdn||o.cdn||e?.cdn}}class ds extends Y.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,s){console.error("Store MCP server detail error:",e,s)}render(){return this.state.hasError?t.jsx(Et,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function ms(){const{org:r}=_e(),e=Ie(),{appName:s}=Fe({strict:!1}),{registryId:o,serverName:n,stdio:l}=Oe({strict:!1}),[c,m]=St(He.storeShowStdio(),()=>!1),a=l==="true"?!0:l==="false"?!1:c;l!==void 0&&l==="true"!==c&&m(l==="true");const[d,w]=Y.useState(null),[p,I]=Y.useState(null),[f,v]=Y.useState(null),u=yt(),N=jt(),{data:h}=Ge.useSession(),y=bt(N),j=o||y[0]?.id||"",g=Nt(j),L=Lt(g?.tools),T=we(g?.tools??null,"_VERSIONS"),S=we(g?.tools??null,"_GET"),_=!!n;let M="",x={};_?(M=T||S,x={name:n}):(M=L,x={});const J=wt({connectionId:j||null,orgId:r.id}),{data:b}=Ct({client:J,toolName:M,toolArguments:x,select:i=>i.structuredContent??i});let R=[],A=[],B=null;if(b){if(Array.isArray(b))R=b;else if(typeof b=="object"&&b!==null)if("totalCount"in b&&typeof b.totalCount=="number"&&(B=b.totalCount),"item"in b&&b.item){const i=b.item;R=[{id:i.id||"",title:i.title,server:i.server,_meta:i._meta}]}else{let i;"versions"in b&&Array.isArray(b.versions)?i="versions":"servers"in b&&Array.isArray(b.servers)?i="servers":i=Object.keys(b).find(P=>Array.isArray(b[P])),i&&(R=b[i],(i==="versions"||M?.includes("VERSIONS"))&&(A=R))}}const K=(()=>{const i=A.findIndex(P=>P._meta?.["io.modelcontextprotocol.registry/official"]?.isLatest===!0);return i>=0?i:0})(),F=p??K;let k=R.find(i=>{const P=i.name||i.title||i.server?.title||"";return It(P)===s});!k&&n&&(k=R.find(i=>i.id===n||i.server?.name===n||i.name===n||i.title===n));const C=k?cs(k):null,V=(C?.tools?.length||0)>0,D=k?.server?.remotes?.[0]?.url||null,E=!V&&!!D,z=pe({queryKey:ue.remoteMcpTools(D),queryFn:async()=>{if(!D)return[];const{Client:i}=await fe(async()=>{const{Client:X}=await import("./index-Bs1-6MBJ.js").then($=>$.c$);return{Client:X}},__vite__mapDeps([0,1])),{StreamableHTTPClientTransport:P}=await fe(async()=>{const{StreamableHTTPClientTransport:X}=await import("./index-CvQBntDd.js");return{StreamableHTTPClientTransport:X}},__vite__mapDeps([2,0,1,3,4,5,6,7,8,9,10,11,12,13])),H=new i({name:"mesh-store",version:"1.0.0"}),Q=new P(new URL(D),{requestInit:{headers:{Accept:"application/json, text/event-stream","Content-Type":"application/json"}}});try{return await H.connect(Q),((await H.listTools()).tools||[]).map($=>({name:$.name,description:$.description}))}finally{await H.close().catch(console.error)}},enabled:E}),U=E&&z.isLoading,O=z.data??[],W=V?C?.tools||[]:O,q=ls(N,C?.publisher),re=C?as(R,C.publisher,q,g??null,B):{count:0},oe=C?.repository?kt(C.repository):null,Pe=k?.server?.remotes??[],Me=k?.server?.packages??[],le=[...Pe.map((i,P)=>({...i,_type:"remote",_index:P})),...Me.map((i,P)=>({type:"stdio",url:void 0,name:i.name||i.identifier,title:i.name||i.identifier?.replace(/^@[^/]+\//,""),description:i.environmentVariables?.length?`Requires ${i.environmentVariables.length} environment variable(s)`:void 0,_type:"package",_index:P}))],xe=a?le:le.filter(i=>i.type?.toLowerCase()!=="stdio"),he=xe.length>1,Z=[{id:"servers",label:"Servers",count:xe.length,visible:he},{id:"readme",label:"README",visible:!!C?.readmeMarkdown||!!C?.readmeUrl||!!C?.repository&&!!oe},{id:"tools",label:"Tools",count:W.length,visible:V||O.length>0||!!D}].filter(i=>i.visible),Re=Z.find(i=>i.id==="servers")?.id||Z.find(i=>i.id==="readme")?.id||Z[0]?.id||"overview",De=d&&Z.find(i=>i.id===d)?d:Re,ae=async(i,P,H,Q)=>{const X=A[i??0]||k;if(!X||!r||!h?.user?.id)return;const $=_t(X,r.id,h.user.id,{remoteIndex:H===void 0?P??0:void 0,packageIndex:H}),ee=$.connection_type==="STDIO",ne=!!$.connection_url,Be=ee&&$.connection_headers&&typeof $.connection_headers=="object"&&"command"in $.connection_headers;if(!ne&&!Be){me.error("This MCP Server cannot be connected: no connection method available");return}Q&&($.title=Q);try{const{id:te}=await u.create.mutateAsync($);e({to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:ie,connectionId:te}})}catch(te){me.error(`Failed to connect MCP Server: ${te instanceof Error?te.message:String(te)}`)}},ce=async(i,P,H)=>{const Q=A[i??0]||k;if(!Q)return;const X=Q.id??Q.title,$=N.filter(ee=>ee.app_name===X||ee.title===Q.title);if($.length>0){const ne=`${Q.title||"MCP Server"} (${$.length+1})`;v({step:"warning",existing:$,pendingArgs:[i,P,H],suggestedName:ne,customName:ne});return}ae(i,P,H)},Ee=()=>{e({to:"/$org/$project/store",params:{org:r.slug,project:ie}})};if(!k)return t.jsx(Ut,{onBack:Ee});if(!C)return null;const Ue=(k?.server?.remotes?.length??0)>0,$e=(k?.server?.packages?.length??0)>0,ge=Ue||$e,Ve=t.jsx(pt,{children:t.jsxs(xt,{children:[t.jsx(Ne,{children:t.jsx(ht,{asChild:!0,children:t.jsx(qe,{to:"/$org/$project/store",params:{org:r.slug,project:ie},children:"Store"})})}),t.jsx(gt,{}),t.jsx(Ne,{children:t.jsx(vt,{children:C.name})})]})}),Ae=(()=>{const i=new URL(`/store/${encodeURIComponent(s||"")}`,window.location.origin);return n&&i.searchParams.set("serverName",n),i.href})();return t.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[f&&t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:()=>v(null),children:t.jsx("div",{className:"bg-background border rounded-lg shadow-lg p-6 max-w-md w-full mx-4",onClick:i=>i.stopPropagation(),children:f.step==="warning"?t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"MCP Already Installed"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:["You already have"," ",t.jsx("strong",{children:f.existing.length})," instance",f.existing.length!==1?"s":""," of this MCP installed:"]}),t.jsx("ul",{className:"text-sm space-y-1 mb-4 max-h-32 overflow-auto",children:f.existing.map(i=>t.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("span",{className:"font-medium text-foreground",children:i.title}),t.jsxs("span",{className:"text-xs",children:["(",i.created_at?new Date(i.created_at).toLocaleDateString():"—",")"]})]},i.id))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>v(null),children:"Cancel"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>v({...f,step:"rename"}),children:"Install Anyway"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Choose a name"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Give this instance a different name to distinguish it, or keep the suggested one."}),t.jsx("input",{type:"text",className:"w-full rounded-md border bg-transparent px-3 py-2 text-sm mb-4 focus:outline-none focus:ring-2 focus:ring-primary",value:f.customName,onChange:i=>v({...f,customName:i.target.value}),onKeyDown:i=>{if(i.key==="Enter"){const P=f.customName.trim()||f.suggestedName,H=f.pendingArgs;v(null),ae(...H,P)}},autoFocus:!0}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>v({...f,step:"warning"}),children:"Back"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>{const i=f.customName.trim()||f.suggestedName,P=f.pendingArgs;v(null),ae(...P,i)},children:"Install"})]})]})})}),t.jsx($t,{breadcrumb:Ve,shareUrl:Ae}),t.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:t.jsx("div",{className:"h-full",children:t.jsxs("div",{className:"h-full",children:[!ge&&t.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[t.jsx(Rt,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t.jsx(Vt,{data:C,itemVersions:A.length>0?A:[k],onInstall:ce,canInstall:ge,isInstalling:u.create.isPending,hideInstallControls:he,selectedVersionIndex:F,onVersionChange:I}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[t.jsx(Ft,{data:C,publisherInfo:re,selectedItem:k}),t.jsx(ns,{data:C,availableTabs:Z,effectiveActiveTabId:De,effectiveTools:W,isLoadingTools:U,onTabChange:w,servers:le,onInstallServer:i=>{i._type==="remote"?ce(F,i._index,void 0):ce(F,void 0,i._index)},isInstalling:u.create.isPending,mcpIcon:C.icon,mcpName:C.name,showStdio:a})]})]})})})]})}function vr(){const r=G.c(6),{org:e}=_e(),s=Ie();let o;r[0]!==s||r[1]!==e.slug?(o=()=>{s({to:"/$org/$project/store",params:{org:e.slug,project:ie}})},r[0]=s,r[1]=e.slug,r[2]=o):o=r[2];const n=o;let l;r[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Y.Suspense,{fallback:t.jsx(Dt,{}),children:t.jsx(ms,{})}),r[3]=l):l=r[3];let c;return r[4]!==n?(c=t.jsx(ds,{onBack:n,children:l}),r[4]=n,r[5]=c):c=r[5],c}export{vr as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index--v47KjFS.js","assets/index-DmrxmdhV.css","assets/index-CUQZow0Z.js","assets/use-collections-CobBqkkk.js","assets/useMutation-BK2VTSKG.js","assets/constants-BJq0sg2N.js","assets/use-connection-CUBEGKKv.js","assets/use-mcp-tools-DhfUlmve.js","assets/useQuery-WdhzaCOu.js","assets/use-mcp-resources-CdviUNt8.js","assets/use-mcp-prompts-CWXp4Vto.js","assets/use-virtual-mcp-D_pRY4Y5.js","assets/decopilot-events-Brt4gAR6.js","assets/usage-t6qWPVZ4.js"])))=>i.map(i=>d[i]);
2
+ import{r as Y,c as G,j as t,B as se,w as me,z as ze,K as ue,c1 as fe,u as _e,e as Ie,O as ie,g as Fe,d as Oe,bh as He,f as Ge,F as qe}from"./index--v47KjFS.js";import{i as Ke}from"./AlertCircle-BoncS6LP.js";import{i as ke}from"./Loading01-R4lTIOmc.js";import{P as de}from"./index-DnEhhRJ4.js";import{b as We,c as Qe,a as Ye,T as Je}from"./tooltip-B2CdQ2bN.js";import{i as Xe}from"./Check-D28ZRrsv.js";import{a as Ze}from"./Copy01-D3an2EO3.js";import{I as Te}from"./integration-icon-jSV9a6uH.js";import{i as et}from"./CheckCircle-ItsEMznk.js";import{t as tt}from"./ChevronDown-D9EMTJdI.js";import{s as ve}from"./Plus-BPhP6AwU.js";import{a as st,c as rt,b as ot,D as nt}from"./dropdown-menu-Dh14MX71.js";import{n as be}from"./LinkExternal01-BiHdSj-G.js";import{E as it}from"./empty-state-ChTznqc5.js";import{R as ye}from"./readme-viewer-CgvhJVTC.js";import{u as pe}from"./useQuery-WdhzaCOu.js";import{m as je}from"./marked.esm-BaswSlok.js";import{a as lt}from"./tools-list-DzGfMYwE.js";import{C as at}from"./collection-tabs-Bdn3rWHw.js";import{s as ct}from"./Globe02-cnnmW-yP.js";import{a as dt,b as mt,e as ut}from"./mcp-server-card-BVdsLKTg.js";import{i as ft}from"./Terminal-DvdwlySH.js";import{B as pt,a as xt,b as Ne,d as ht,e as gt,c as vt}from"./breadcrumb-BSZlBaPP.js";import{u as bt}from"./use-binding-C6wyTPOH.js";import{a as yt,b as jt,u as Nt}from"./use-connection-CUBEGKKv.js";import{u as wt}from"./constants-BJq0sg2N.js";import{u as Ct}from"./use-mcp-tools-DhfUlmve.js";import{u as St}from"./use-local-storage-B5rcvGp1.js";import{e as _t}from"./extract-connection-data-is00SRVb.js";import{s as It}from"./slugify-CEUa2lfQ.js";import{e as kt,g as Tt}from"./github-icon-Dp3wHhYE.js";import{f as Lt,d as we,g as Pt,h as Mt}from"./registry-utils-DRlaL1TA.js";import{i as Rt}from"./InfoCircle-BzkuJise.js";import"./index-23ha-EiC.js";import"./Container-v7Lu1WNT.js";import"./ChevronRight-6oHy3GR0.js";import"./File06-9lDkVwq5.js";import"./collection-display-button-yOA8wYm8.js";import"./ArrowDown-C3BzPPYX.js";import"./ArrowUp-C6T9wa52.js";import"./Grid01-B8Hz8XFZ.js";import"./List-CCSmMits.js";import"./badge-BEyO0T03.js";import"./collection-search-C0Xdyimh.js";import"./SearchMd-DYtqpNhS.js";import"./input-B43ueF_6.js";import"./collection-table-wrapper-BjxWZ4Q4.js";import"./table-Ds5hcAfV.js";import"./card-Cq808vu1.js";import"./types-CixwvVqB.js";import"./Eye-BKxgN9Ci.js";import"./LayersTwo01-HSSB0HBk.js";import"./layout-ChV6hmvw.js";import"./CheckVerified02-Dvd1EdLV.js";import"./Lock01-BtcVHLM1.js";import"./binder-D-EP4Rws.js";import"./use-collections-CobBqkkk.js";import"./useMutation-BK2VTSKG.js";import"./constants-CYoMn_-y.js";import"./generate-id-Dyweu44Y.js";const Le=({size:r=24,color:e="currentColor",...s})=>Y.createElement("svg",{viewBox:"0 0 24 24",width:r,height:r,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},Y.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));Le.displayName="SearchLg";function Dt(r){const e=G.c(3),{message:s}=r,o=s===void 0?"Loading MCP Server details...":s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ke,{size:48,className:"animate-spin mb-4"}),e[0]=n):n=e[0];let l;return e[1]!==o?(l=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,t.jsx("p",{className:"text-sm text-muted-foreground",children:o})]}),e[1]=o,e[2]=l):l=e[2],l}function Et(r){const e=G.c(9),{error:s,onBack:o}=r,n=s instanceof Error?s.message:s;let l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Ke,{size:48,className:"text-destructive mb-4"}),c=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading MCP Server"}),e[0]=l,e[1]=c):(l=e[0],c=e[1]);let m;e[2]!==n?(m=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:n}),e[2]=n,e[3]=m):m=e[3];let a;e[4]!==o?(a=t.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=o,e[5]=a):a=e[5];let d;return e[6]!==m||e[7]!==a?(d=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[l,c,m,a]}),e[6]=m,e[7]=a,e[8]=d):d=e[8],d}function Ut(r){const e=G.c(5),{onBack:s}=r;let o,n,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Le,{size:48,className:"text-muted-foreground mb-4"}),n=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"MCP Server not found"}),l=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The MCP Server you're looking for doesn't exist in this store."}),e[0]=o,e[1]=n,e[2]=l):(o=e[0],n=e[1],l=e[2]);let c;return e[3]!==s?(c=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o,n,l,t.jsx("button",{onClick:s,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=s,e[4]=c):c=e[4],c}function $t(r){const e=G.c(11),{breadcrumb:s,shareUrl:o}=r,[n,l]=Y.useState(!1);let c;e[0]!==o?(c=async()=>{o&&(await navigator.clipboard.writeText(o),l(!0),me.success("Share link copied to clipboard"),setTimeout(()=>l(!1),2e3))},e[0]=o,e[1]=c):c=e[1];const m=c;let a;e[2]!==s?(a=t.jsx(de.Header.Left,{children:s}),e[2]=s,e[3]=a):a=e[3];let d;e[4]!==n||e[5]!==m||e[6]!==o?(d=o&&t.jsx(de.Header.Right,{children:t.jsx(We,{children:t.jsxs(Qe,{children:[t.jsx(Ye,{asChild:!0,children:t.jsxs(se,{variant:"outline",size:"sm",onClick:m,className:"gap-1.5 cursor-pointer",children:[n?t.jsx(Xe,{size:16,className:"text-green-600"}):t.jsx(Ze,{size:16}),t.jsx("span",{children:n?"Copied!":"Share"})]})}),t.jsx(Je,{children:t.jsx("p",{children:"Copy a universal link anyone can use to find this MCP"})})]})})}),e[4]=n,e[5]=m,e[6]=o,e[7]=d):d=e[7];let w;return e[8]!==a||e[9]!==d?(w=t.jsxs(de.Header,{children:[a,d]}),e[8]=a,e[9]=d,e[10]=w):w=e[10],w}function Ce(r){const e=G.c(28),{versions:s,selectedIndex:o,onSelect:n,isInstalling:l,variant:c,showLabel:m}=r,a=l===void 0?!1:l,d=c===void 0?"default":c,w=m===void 0?!1:m,p=s[o],I=w?"sm":"default",f=d==="default"&&"rounded-l-none px-2 border-l-2 border-l-white/50";let v;e[0]!==f?(v=ze("shrink-0 cursor-pointer",f),e[0]=f,e[1]=v):v=e[1];let u;e[2]!==p?.server?.version||e[3]!==w?(u=w&&t.jsxs("span",{className:"mr-1",children:["v",p?.server?.version||"unknown"]}),e[2]=p?.server?.version,e[3]=w,e[4]=u):u=e[4];const N=w?14:20;let h;e[5]!==N?(h=t.jsx(tt,{size:N}),e[5]=N,e[6]=h):h=e[6];let y;e[7]!==a||e[8]!==I||e[9]!==v||e[10]!==u||e[11]!==h||e[12]!==d?(y=t.jsx(st,{asChild:!0,children:t.jsxs(se,{variant:d,disabled:a,size:I,className:v,children:[u,h]})}),e[7]=a,e[8]=I,e[9]=v,e[10]=u,e[11]=h,e[12]=d,e[13]=y):y=e[13];let j;if(e[14]!==a||e[15]!==n||e[16]!==o||e[17]!==s){let T;e[19]!==a||e[20]!==n||e[21]!==o?(T=(S,_)=>{const M=S._meta?.["io.modelcontextprotocol.registry/official"];return t.jsx(rt,{onClick:()=>n(_),disabled:a,className:"cursor-pointer",children:t.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("div",{className:"font-medium text-sm",children:["v",S.server?.version||"unknown"]}),M?.isLatest&&t.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),_===o&&t.jsx(et,{size:16,className:"text-muted-foreground shrink-0"})]})},_)},e[19]=a,e[20]=n,e[21]=o,e[22]=T):T=e[22],j=s.map(T),e[14]=a,e[15]=n,e[16]=o,e[17]=s,e[18]=j}else j=e[18];let g;e[23]!==j?(g=t.jsx(ot,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:j}),e[23]=j,e[24]=g):g=e[24];let L;return e[25]!==y||e[26]!==g?(L=t.jsxs(nt,{children:[y,g]}),e[25]=y,e[26]=g,e[27]=L):L=e[27],L}function Vt(r){const e=G.c(46),{data:s,itemVersions:o,onInstall:n,canInstall:l,isInstalling:c,hideInstallControls:m,selectedVersionIndex:a,onVersionChange:d}=r,w=l===void 0?!0:l,p=c===void 0?!1:c,I=m===void 0?!1:m,[f,v]=Y.useState(0),u=a??f;let N;e[0]!==d?(N=U=>{v(U),d?.(U)},e[0]=d,e[1]=N):N=e[1];const h=N,y=o[u]||o[0];let j;e[2]!==y?.server?.remotes?(j=y?.server?.remotes??[],e[2]=y?.server?.remotes,e[3]=j):j=e[3];const g=j;let L;e[4]!==y?.server?.packages?(L=y?.server?.packages??[],e[4]=y?.server?.packages,e[5]=L):L=e[5];const S=L.length>0,_=g.length>0,M=g.findIndex(Bt),x=M>=0?M:0;let J;e[6]!==x||e[7]!==S||e[8]!==_||e[9]!==n||e[10]!==u?(J=()=>{_?n(u,x,void 0):S&&n(u,void 0,0)},e[6]=x,e[7]=S,e[8]=_,e[9]=n,e[10]=u,e[11]=J):J=e[11];const b=J;let R;e[12]!==o||e[13]!==n||e[14]!==h?(R=U=>{h(U);const O=o[U],W=O?.server?.remotes??[],q=O?.server?.packages??[];if(W.length>0){const oe=W.findIndex(At);n(U,oe>=0?oe:0,void 0)}else q.length>0&&n(U,void 0,0)},e[12]=o,e[13]=n,e[14]=h,e[15]=R):R=e[15];const A=R;let B;e[16]!==s.icon||e[17]!==s.name?(B=t.jsx(Te,{icon:s.icon,name:s.name,size:"lg",className:"shrink-0 shadow-sm"}),e[16]=s.icon,e[17]=s.name,e[18]=B):B=e[18];let K;e[19]!==s.name?(K=t.jsx("h1",{className:"text-3xl font-medium",children:s.name}),e[19]=s.name,e[20]=K):K=e[20];let F;e[21]!==s.verified?(F=s.verified&&t.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[21]=s.verified,e[22]=F):F=e[22];let k;e[23]!==K||e[24]!==F?(k=t.jsxs("div",{className:"flex items-center gap-2",children:[K,F]}),e[23]=K,e[24]=F,e[25]=k):k=e[25];let C;e[26]!==s.shortDescription?(C=s.shortDescription&&t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s.shortDescription}),e[26]=s.shortDescription,e[27]=C):C=e[27];let V;e[28]!==k||e[29]!==C?(V=t.jsxs("div",{className:"flex-1 min-w-0",children:[k,C]}),e[28]=k,e[29]=C,e[30]=V):V=e[30];let D;e[31]!==w||e[32]!==b||e[33]!==A||e[34]!==I||e[35]!==p||e[36]!==o||e[37]!==u||e[38]!==h?(D=w&&!I?t.jsx("div",{className:"shrink-0 flex items-center gap-2",children:o.length>1?t.jsxs("div",{className:"flex",children:[t.jsxs(se,{variant:"default",size:"sm",onClick:b,disabled:p,className:"shrink-0 rounded-r-none cursor-pointer",children:[t.jsx(ve,{size:20}),p?"Connecting...":"Connect"]}),t.jsx(Ce,{versions:o,selectedIndex:u,onSelect:A,isInstalling:p,variant:"outline"})]}):t.jsxs(se,{variant:"default",size:"sm",onClick:b,disabled:o.length===0||p,className:"shrink-0 cursor-pointer",children:[t.jsx(ve,{size:20}),p?"Connecting...":"Connect"]})}):I?o.length>1?t.jsx("div",{className:"shrink-0",children:t.jsx(Ce,{versions:o,selectedIndex:u,onSelect:h,isInstalling:p,variant:"outline",showLabel:!0})}):null:t.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[31]=w,e[32]=b,e[33]=A,e[34]=I,e[35]=p,e[36]=o,e[37]=u,e[38]=h,e[39]=D):D=e[39];let E;e[40]!==V||e[41]!==D?(E=t.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[V,D]}),e[40]=V,e[41]=D,e[42]=E):E=e[42];let z;return e[43]!==E||e[44]!==B?(z=t.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[B,E]}),e[43]=E,e[44]=B,e[45]=z):z=e[45],z}function At(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function Bt(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function zt(r){if(!r)return"—";try{const e=new Date(r);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function Ft(r){const e=G.c(47),{data:s,publisherInfo:o,selectedItem:n}=r;let l;e[0]!==s.description?(l=s.description&&t.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[t.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.description})]}),e[0]=s.description,e[1]=l):l=e[1];const c=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher;let m;e[2]!==o.logo||e[3]!==c?(m=t.jsx(Te,{icon:o.logo,name:c,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=o.logo,e[3]=c,e[4]=m):m=e[4];let a;e[5]!==s.publisher?(a=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher.charAt(0).toUpperCase()+s.publisher.slice(1),e[5]=s.publisher,e[6]=a):a=e[6];let d;e[7]!==a?(d=t.jsx("div",{className:"font-medium",children:a}),e[7]=a,e[8]=d):d=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"text-xs text-muted-foreground",children:"Publisher"}),e[9]=w):w=e[9];let p;e[10]!==d?(p=t.jsxs("div",{children:[d,w]}),e[10]=d,e[11]=p):p=e[11];let I;e[12]!==m||e[13]!==p?(I=t.jsx("div",{className:"px-5 border-b border-border",children:t.jsxs("div",{className:"flex items-center gap-3 py-5",children:[m,p]})}),e[12]=m,e[13]=p,e[14]=I):I=e[14];let f;e[15]!==s.version?(f=s.version&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Version"}),t.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",s.version]})]}),e[15]=s.version,e[16]=f):f=e[16];let v;e[17]!==s.tags?(v=s.tags&&s.tags.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Tags"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.tags.map(Ht)})]}),e[17]=s.tags,e[18]=v):v=e[18];let u;e[19]!==s.categories?(u=s.categories&&s.categories.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Categories"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.categories.map(Ot)})]}),e[19]=s.categories,e[20]=u):u=e[20];let N;e[21]!==s.connectionType?(N=s.connectionType&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:s.connectionType})]}),e[21]=s.connectionType,e[22]=N):N=e[22];let h;e[23]!==s.schemaVersion?(h=s.schemaVersion&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),t.jsx("span",{className:"text-muted-foreground text-xs",children:s.schemaVersion})]}),e[23]=s.schemaVersion,e[24]=h):h=e[24];let y;e[25]!==s.websiteUrl?(y=s.websiteUrl&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Website"}),t.jsxs("a",{href:s.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"Visit"}),t.jsx(be,{size:14})]})]}),e[25]=s.websiteUrl,e[26]=y):y=e[26];let j;e[27]!==s.repository?(j=s.repository?.url&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Source"}),t.jsxs("a",{href:s.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"GitHub"}),t.jsx(be,{size:14})]})]}),e[27]=s.repository,e[28]=j):j=e[28];let g;e[29]!==v||e[30]!==u||e[31]!==N||e[32]!==h||e[33]!==y||e[34]!==j||e[35]!==f?(g=t.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[f,v,u,N,h,y,j]}),e[29]=v,e[30]=u,e[31]=N,e[32]=h,e[33]=y,e[34]=j,e[35]=f,e[36]=g):g=e[36];let L;e[37]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[37]=L):L=e[37];let T;e[38]!==n.updated_at?(T=zt(n.updated_at),e[38]=n.updated_at,e[39]=T):T=e[39];let S;e[40]!==T?(S=t.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[L,t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:T})]}),e[40]=T,e[41]=S):S=e[41];let _;return e[42]!==l||e[43]!==g||e[44]!==S||e[45]!==I?(_=t.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[l,I,g,S]}),e[42]=l,e[43]=g,e[44]=S,e[45]=I,e[46]=_):_=e[46],_}function Ot(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}function Ht(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}const Gt=[{value:"http",label:"HTTP"},{value:"sse",label:"SSE"},{value:"stdio",label:"STDIO"},{value:"all",label:"All"}],qt={docs:"Documentation",bindings:"Workers Bindings",builds:"Workers Builds",observability:"Observability",radar:"Radar",containers:"Containers",browser:"Browser Rendering",logs:"Logpush",autorag:"AutoRAG",auditlogs:"Audit Logs",graphql:"GraphQL",dex:"DEX Monitoring",casb:"CASB"};function Kt(r){if(!r)return"Local";try{return new URL(r).hostname}catch{return r}}function Wt(r){if(!r)return"local";try{const e=new URL(r).hostname;return e.split(".")[0]||e}catch{return"unknown"}}function Qt(r){const e=qt[r.toLowerCase()];return e||r.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function Yt(r){if(!r)return"http";const e=r.toLowerCase();return e==="sse"?"sse":e==="stdio"?"stdio":"http"}function Jt(r){return r.map((e,s)=>{const o=Yt(e.type),n=Kt(e.url),l=Wt(e.url),c=e.title||e.name||Qt(l);return{index:s,protocol:o,url:e.url,hostname:n,serviceName:l,displayName:c,name:e.name,title:e.title,description:e.description,_type:e._type,_index:e._index}})}function Xt(r){const e=G.c(2),{protocol:s,className:o}=r;let n;return e[0]!==o?(n={http:t.jsx(ct,{className:o}),sse:t.jsx(mt,{className:o}),stdio:t.jsx(ft,{className:o})},e[0]=o,e[1]=n):n=e[1],n[s]}function Zt(r){const e=G.c(10),{options:s,selected:o,onSelect:n}=r;if(s.length<=1)return null;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("span",{className:"text-sm text-muted-foreground",children:"Protocol:"}),e[0]=l):l=e[0];let c;if(e[1]!==n||e[2]!==s||e[3]!==o){let a;e[5]!==n||e[6]!==o?(a=d=>t.jsxs(se,{variant:o===d.value?"default":"outline",size:"sm",onClick:()=>n(d.value),className:"cursor-pointer",children:[t.jsx(Xt,{protocol:d.value==="all"?"http":d.value,className:"w-4 h-4 mr-1"}),d.label]},d.value),e[5]=n,e[6]=o,e[7]=a):a=e[7],c=s.map(a),e[1]=n,e[2]=s,e[3]=o,e[4]=c}else c=e[4];let m;return e[8]!==c?(m=t.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l,t.jsx("div",{className:"flex gap-1",children:c})]}),e[8]=c,e[9]=m):m=e[9],m}function es(r){const e=G.c(11),{servers:s,onInstall:o,isInstalling:n,icon:l,mcpName:c,showStdio:m}=r,a=n===void 0?!1:n,d=m===void 0?!1:m,w=d?s:s.filter(os),p=Jt(w),I=p.length<13?"all":"http",[f,v]=Y.useState(I);let u;e:{if(f==="all"){u="all";break e}let x;if(e[0]!==f?(x=b=>b.protocol===f,e[0]=f,e[1]=x):x=e[1],p.some(x)){u=f;break e}if(p.length<13){u="all";break e}u=p[0]?.protocol??"http"}const N=u,h=N==="all"?p:p.filter(x=>x.protocol===N),y=new Set(p.map(rs));let j=Gt.filter(x=>x.value==="all"||y.has(x.value));d||(j=j.filter(ss));const g=y.size<=1?j.filter(ts):j,L="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4";let T;e[2]!==l||e[3]!==a||e[4]!==c||e[5]!==o?(T=x=>t.jsx(dt,{variant:"server",icon:l??null,displayName:x.displayName,description:x.description??null,hostname:x.hostname,protocol:x.protocol,isInstalling:a,onClick:()=>o({type:x.protocol,url:x.url,name:x.name,title:x.title,description:x.description,_type:x._type,_index:x._index})},`${x.hostname}-${x.protocol}-${x.index}`),e[2]=l,e[3]=a,e[4]=c,e[5]=o,e[6]=T):T=e[6];const S=h.map(T);let _;e[7]!==S?(_=t.jsx("div",{className:L,children:S}),e[7]=S,e[8]=_):_=e[8];let M;return e[9]!==h.length?(M=h.length===0&&t.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No servers match the selected filter."}),e[9]=h.length,e[10]=M):M=e[10],t.jsxs("div",{className:"p-5",children:[t.jsx(Zt,{options:g,selected:N,onSelect:v}),_,M]})}function ts(r){return r.value!=="all"}function ss(r){return r.value!=="stdio"}function rs(r){return r.protocol}function os(r){return r.type?.toLowerCase()!=="stdio"}async function Se(r){return(await fe(async()=>{const{default:s}=await import("./purify.es-CovBOfck.js");return{default:s}},[])).default.sanitize(r,{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form"],FORBID_ATTR:["style"]})}function ns(r){const e=G.c(53),{data:s,availableTabs:o,effectiveActiveTabId:n,effectiveTools:l,isLoadingTools:c,onTabChange:m,servers:a,onInstallServer:d,isInstalling:w,mcpIcon:p,mcpName:I,showStdio:f}=r,v=c===void 0?!1:c;let u;e[0]!==a?(u=a===void 0?[]:a,e[0]=a,e[1]=u):u=e[1];const N=u,h=w===void 0?!1:w,y=f===void 0?!1:f;let j;e[2]!==s.readmeMarkdown?(j=s.readmeMarkdown?.trim(),e[2]=s.readmeMarkdown,e[3]=j):j=e[3];const g=!!j;let L;e[4]!==s.readmeUrl?(L=s.readmeUrl?.trim(),e[4]=s.readmeUrl,e[5]=L):L=e[5];const T=!!L;let S;e[6]!==s.readmeMarkdown?(S=ue.storeReadmeUrl(`embedded:${s.readmeMarkdown}`),e[6]=s.readmeMarkdown,e[7]=S):S=e[7];let _;e[8]!==s.readmeMarkdown?(_=async()=>{const q=je.parse(s.readmeMarkdown??"",{async:!1});return Se(q)},e[8]=s.readmeMarkdown,e[9]=_):_=e[9];let M;e[10]!==g||e[11]!==S||e[12]!==_?(M={queryKey:S,queryFn:_,enabled:g,staleTime:1/0},e[10]=g,e[11]=S,e[12]=_,e[13]=M):M=e[13];const{data:x,isLoading:J}=pe(M);let b;e[14]!==s.readmeUrl?(b=ue.storeReadmeUrl(s.readmeUrl),e[14]=s.readmeUrl,e[15]=b):b=e[15];let R;e[16]!==s.readmeUrl?(R=async()=>{if(!s.readmeUrl)return null;const q=await fetch(s.readmeUrl);if(!q.ok)throw new Error(`Failed to fetch README (${q.status})`);const re=await q.text();return Se(je.parse(re,{async:!1}))},e[16]=s.readmeUrl,e[17]=R):R=e[17];const A=T&&!g;let B;e[18]!==b||e[19]!==R||e[20]!==A?(B={queryKey:b,queryFn:R,enabled:A,staleTime:36e5,gcTime:864e5},e[18]=b,e[19]=R,e[20]=A,e[21]=B):B=e[21];const{data:K,isLoading:F}=pe(B),k=x??K??null,C=g&&J||!g&&F;let V;e[22]!==l?(V=l.map(is),e[22]=l,e[23]=V):V=e[23];const D=V;let E;e[24]!==o||e[25]!==n||e[26]!==m?(E=o.length>0&&t.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:t.jsx(at,{tabs:o,activeTab:n,onTabChange:m})}),e[24]=o,e[25]=n,e[26]=m,e[27]=E):E=e[27];let z;e[28]!==n||e[29]!==h||e[30]!==p||e[31]!==I||e[32]!==d||e[33]!==N||e[34]!==y?(z=n==="servers"&&N.length>0&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:t.jsx(es,{servers:N,onInstall:q=>d?.(q),isInstalling:h,icon:p,mcpName:I,showStdio:y})}),e[28]=n,e[29]=h,e[30]=p,e[31]=I,e[32]=d,e[33]=N,e[34]=y,e[35]=z):z=e[35];let U;e[36]!==n||e[37]!==l.length||e[38]!==v||e[39]!==D?(U=n==="tools"&&t.jsx("div",{className:"flex flex-col flex-1",children:v?t.jsxs("div",{className:"flex items-center justify-center p-8",children:[t.jsx(ke,{size:24,className:"animate-spin"}),t.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):l.length>0?t.jsx(lt,{tools:D,showToolbar:!1,emptyMessage:"This MCP Server doesn't have any tools."}):t.jsx(it,{image:null,title:"No tools available",description:"This MCP Server doesn't have any tools."})}),e[36]=n,e[37]=l.length,e[38]=v,e[39]=D,e[40]=U):U=e[40];let O;e[41]!==k||e[42]!==C||e[43]!==s.repository||e[44]!==n||e[45]!==g||e[46]!==T?(O=n==="readme"&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:g||T?t.jsx(ye,{html:k,isLoading:C}):t.jsx(ye,{repository:s?.repository})}),e[41]=k,e[42]=C,e[43]=s.repository,e[44]=n,e[45]=g,e[46]=T,e[47]=O):O=e[47];let W;return e[48]!==E||e[49]!==z||e[50]!==U||e[51]!==O?(W=t.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[E,z,U,O]}),e[48]=E,e[49]=z,e[50]=U,e[51]=O,e[52]=W):W=e[52],W}function is(r){const e=r;return{name:e.name||"",description:e.description||void 0}}function ls(r,e){if(!r||!e)return;const s=e.toLowerCase();return r.find(o=>o.app_name?.toLowerCase()===s||o.app_id?.toLowerCase()===s||o.title.toLowerCase()===s)||r.find(o=>o.title.toLowerCase().includes(s))}function as(r,e,s,o,n){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:o?.icon||void 0,count:n??r.length};const l=e.toLowerCase(),c=r.filter(a=>(a._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":a.publisher||a._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===l);return{logo:s?.icon||c[0]?.publisher_logo||c[0]?.icon||void 0,count:c.length}}function cs(r){const e=r._meta?.["mcp.mesh"],s=r._meta?.["io.modelcontextprotocol.registry/official"],o=r.server??{},n=Pt(o?.remotes?.[0]?.type),l=Mt(o?.$schema),c=r.id?.includes("/")?r.id.split("/")[0]:void 0,m=s?"io.modelcontextprotocol.registry/official":r.publisher||e?.scopeName||c||"Unknown",a=Tt(o.repository),d=r.icon||r.image||r.logo||o.icons?.[0]?.src||a||null,w=r.name||r.title||r.server?.title||"Unnamed Item",p=ut(w),I=e?.friendly_name||p,f=e?.mesh_description||r.description||r.summary||o?.description||"",v=e?.short_description||null,u=typeof e?.readme=="string"?e.readme:null,N=typeof e?.readme_url=="string"?e.readme_url:null,h=e?.tags||[],y=e?.categories||[];return{name:I,description:f,shortDescription:v,readmeMarkdown:u,readmeUrl:N,icon:d,verified:r.verified||e?.verified,publisher:m,version:o.version||null,websiteUrl:o.websiteUrl||null,repository:o.repository||null,schemaVersion:l??null,connectionType:n,connectionUrl:o?.remotes?.[0]?.url||null,remoteUrl:o?.remotes?.[0]?.url||null,tags:h,categories:y,tools:r.tools||o.tools||e?.tools||[],models:r.models||o.models||e?.models||[],emails:r.emails||o.emails||e?.emails||[],analytics:r.analytics||o.analytics||e?.analytics,cdn:r.cdn||o.cdn||e?.cdn}}class ds extends Y.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,s){console.error("Store MCP server detail error:",e,s)}render(){return this.state.hasError?t.jsx(Et,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function ms(){const{org:r}=_e(),e=Ie(),{appName:s}=Fe({strict:!1}),{registryId:o,serverName:n,stdio:l}=Oe({strict:!1}),[c,m]=St(He.storeShowStdio(),()=>!1),a=l==="true"?!0:l==="false"?!1:c;l!==void 0&&l==="true"!==c&&m(l==="true");const[d,w]=Y.useState(null),[p,I]=Y.useState(null),[f,v]=Y.useState(null),u=yt(),N=jt(),{data:h}=Ge.useSession(),y=bt(N),j=o||y[0]?.id||"",g=Nt(j),L=Lt(g?.tools),T=we(g?.tools??null,"_VERSIONS"),S=we(g?.tools??null,"_GET"),_=!!n;let M="",x={};_?(M=T||S,x={name:n}):(M=L,x={});const J=wt({connectionId:j||null,orgId:r.id}),{data:b}=Ct({client:J,toolName:M,toolArguments:x,select:i=>i.structuredContent??i});let R=[],A=[],B=null;if(b){if(Array.isArray(b))R=b;else if(typeof b=="object"&&b!==null)if("totalCount"in b&&typeof b.totalCount=="number"&&(B=b.totalCount),"item"in b&&b.item){const i=b.item;R=[{id:i.id||"",title:i.title,server:i.server,_meta:i._meta}]}else{let i;"versions"in b&&Array.isArray(b.versions)?i="versions":"servers"in b&&Array.isArray(b.servers)?i="servers":i=Object.keys(b).find(P=>Array.isArray(b[P])),i&&(R=b[i],(i==="versions"||M?.includes("VERSIONS"))&&(A=R))}}const K=(()=>{const i=A.findIndex(P=>P._meta?.["io.modelcontextprotocol.registry/official"]?.isLatest===!0);return i>=0?i:0})(),F=p??K;let k=R.find(i=>{const P=i.name||i.title||i.server?.title||"";return It(P)===s});!k&&n&&(k=R.find(i=>i.id===n||i.server?.name===n||i.name===n||i.title===n));const C=k?cs(k):null,V=(C?.tools?.length||0)>0,D=k?.server?.remotes?.[0]?.url||null,E=!V&&!!D,z=pe({queryKey:ue.remoteMcpTools(D),queryFn:async()=>{if(!D)return[];const{Client:i}=await fe(async()=>{const{Client:X}=await import("./index--v47KjFS.js").then($=>$.c$);return{Client:X}},__vite__mapDeps([0,1])),{StreamableHTTPClientTransport:P}=await fe(async()=>{const{StreamableHTTPClientTransport:X}=await import("./index-CUQZow0Z.js");return{StreamableHTTPClientTransport:X}},__vite__mapDeps([2,0,1,3,4,5,6,7,8,9,10,11,12,13])),H=new i({name:"mesh-store",version:"1.0.0"}),Q=new P(new URL(D),{requestInit:{headers:{Accept:"application/json, text/event-stream","Content-Type":"application/json"}}});try{return await H.connect(Q),((await H.listTools()).tools||[]).map($=>({name:$.name,description:$.description}))}finally{await H.close().catch(console.error)}},enabled:E}),U=E&&z.isLoading,O=z.data??[],W=V?C?.tools||[]:O,q=ls(N,C?.publisher),re=C?as(R,C.publisher,q,g??null,B):{count:0},oe=C?.repository?kt(C.repository):null,Pe=k?.server?.remotes??[],Me=k?.server?.packages??[],le=[...Pe.map((i,P)=>({...i,_type:"remote",_index:P})),...Me.map((i,P)=>({type:"stdio",url:void 0,name:i.name||i.identifier,title:i.name||i.identifier?.replace(/^@[^/]+\//,""),description:i.environmentVariables?.length?`Requires ${i.environmentVariables.length} environment variable(s)`:void 0,_type:"package",_index:P}))],xe=a?le:le.filter(i=>i.type?.toLowerCase()!=="stdio"),he=xe.length>1,Z=[{id:"servers",label:"Servers",count:xe.length,visible:he},{id:"readme",label:"README",visible:!!C?.readmeMarkdown||!!C?.readmeUrl||!!C?.repository&&!!oe},{id:"tools",label:"Tools",count:W.length,visible:V||O.length>0||!!D}].filter(i=>i.visible),Re=Z.find(i=>i.id==="servers")?.id||Z.find(i=>i.id==="readme")?.id||Z[0]?.id||"overview",De=d&&Z.find(i=>i.id===d)?d:Re,ae=async(i,P,H,Q)=>{const X=A[i??0]||k;if(!X||!r||!h?.user?.id)return;const $=_t(X,r.id,h.user.id,{remoteIndex:H===void 0?P??0:void 0,packageIndex:H}),ee=$.connection_type==="STDIO",ne=!!$.connection_url,Be=ee&&$.connection_headers&&typeof $.connection_headers=="object"&&"command"in $.connection_headers;if(!ne&&!Be){me.error("This MCP Server cannot be connected: no connection method available");return}Q&&($.title=Q);try{const{id:te}=await u.create.mutateAsync($);e({to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:ie,connectionId:te}})}catch(te){me.error(`Failed to connect MCP Server: ${te instanceof Error?te.message:String(te)}`)}},ce=async(i,P,H)=>{const Q=A[i??0]||k;if(!Q)return;const X=Q.id??Q.title,$=N.filter(ee=>ee.app_name===X||ee.title===Q.title);if($.length>0){const ne=`${Q.title||"MCP Server"} (${$.length+1})`;v({step:"warning",existing:$,pendingArgs:[i,P,H],suggestedName:ne,customName:ne});return}ae(i,P,H)},Ee=()=>{e({to:"/$org/$project/store",params:{org:r.slug,project:ie}})};if(!k)return t.jsx(Ut,{onBack:Ee});if(!C)return null;const Ue=(k?.server?.remotes?.length??0)>0,$e=(k?.server?.packages?.length??0)>0,ge=Ue||$e,Ve=t.jsx(pt,{children:t.jsxs(xt,{children:[t.jsx(Ne,{children:t.jsx(ht,{asChild:!0,children:t.jsx(qe,{to:"/$org/$project/store",params:{org:r.slug,project:ie},children:"Store"})})}),t.jsx(gt,{}),t.jsx(Ne,{children:t.jsx(vt,{children:C.name})})]})}),Ae=(()=>{const i=new URL(`/store/${encodeURIComponent(s||"")}`,window.location.origin);return n&&i.searchParams.set("serverName",n),i.href})();return t.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[f&&t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:()=>v(null),children:t.jsx("div",{className:"bg-background border rounded-lg shadow-lg p-6 max-w-md w-full mx-4",onClick:i=>i.stopPropagation(),children:f.step==="warning"?t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"MCP Already Installed"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:["You already have"," ",t.jsx("strong",{children:f.existing.length})," instance",f.existing.length!==1?"s":""," of this MCP installed:"]}),t.jsx("ul",{className:"text-sm space-y-1 mb-4 max-h-32 overflow-auto",children:f.existing.map(i=>t.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("span",{className:"font-medium text-foreground",children:i.title}),t.jsxs("span",{className:"text-xs",children:["(",i.created_at?new Date(i.created_at).toLocaleDateString():"—",")"]})]},i.id))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>v(null),children:"Cancel"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>v({...f,step:"rename"}),children:"Install Anyway"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Choose a name"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Give this instance a different name to distinguish it, or keep the suggested one."}),t.jsx("input",{type:"text",className:"w-full rounded-md border bg-transparent px-3 py-2 text-sm mb-4 focus:outline-none focus:ring-2 focus:ring-primary",value:f.customName,onChange:i=>v({...f,customName:i.target.value}),onKeyDown:i=>{if(i.key==="Enter"){const P=f.customName.trim()||f.suggestedName,H=f.pendingArgs;v(null),ae(...H,P)}},autoFocus:!0}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>v({...f,step:"warning"}),children:"Back"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>{const i=f.customName.trim()||f.suggestedName,P=f.pendingArgs;v(null),ae(...P,i)},children:"Install"})]})]})})}),t.jsx($t,{breadcrumb:Ve,shareUrl:Ae}),t.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:t.jsx("div",{className:"h-full",children:t.jsxs("div",{className:"h-full",children:[!ge&&t.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[t.jsx(Rt,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t.jsx(Vt,{data:C,itemVersions:A.length>0?A:[k],onInstall:ce,canInstall:ge,isInstalling:u.create.isPending,hideInstallControls:he,selectedVersionIndex:F,onVersionChange:I}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[t.jsx(Ft,{data:C,publisherInfo:re,selectedItem:k}),t.jsx(ns,{data:C,availableTabs:Z,effectiveActiveTabId:De,effectiveTools:W,isLoadingTools:U,onTabChange:w,servers:le,onInstallServer:i=>{i._type==="remote"?ce(F,i._index,void 0):ce(F,void 0,i._index)},isInstalling:u.create.isPending,mcpIcon:C.icon,mcpName:C.name,showStdio:a})]})]})})})]})}function vr(){const r=G.c(6),{org:e}=_e(),s=Ie();let o;r[0]!==s||r[1]!==e.slug?(o=()=>{s({to:"/$org/$project/store",params:{org:e.slug,project:ie}})},r[0]=s,r[1]=e.slug,r[2]=o):o=r[2];const n=o;let l;r[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Y.Suspense,{fallback:t.jsx(Dt,{}),children:t.jsx(ms,{})}),r[3]=l):l=r[3];let c;return r[4]!==n?(c=t.jsx(ds,{onBack:n,children:l}),r[4]=n,r[5]=c):c=r[5],c}export{vr as default};