@vellumai/web 0.10.12 → 0.11.0-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/assets/{AnimatePresence-3WpfAWHe.js → AnimatePresence-DPfyu3ET.js} +1 -1
  2. package/dist/assets/{BundleConfirmPage-CDklssHh.js → BundleConfirmPage-CChUOtcg.js} +1 -1
  3. package/dist/assets/{a2a-invite-DUYZLVQb.js → a2a-invite-pyBtaaeG.js} +1 -1
  4. package/dist/assets/{about-page-CT70Pgvf.js → about-page-DGUK5p8j.js} +1 -1
  5. package/dist/assets/access-DS79PSR3.js +1 -0
  6. package/dist/assets/{account-page-D5cJIu1-.js → account-page-D3ERiewh.js} +1 -1
  7. package/dist/assets/{account-shell-C_IH8r44.js → account-shell-Dk4aC-Ls.js} +1 -1
  8. package/dist/assets/{acp-run-actions-CAjb0Wcm.js → acp-run-actions-BH8wuBAL.js} +1 -1
  9. package/dist/assets/{acp-run-detail-panel-DqzZdPiN.js → acp-run-detail-panel-dqVK6rPq.js} +1 -1
  10. package/dist/assets/{acp-run-store-C6n-XeY_.js → acp-run-store-B_eDLRwl.js} +1 -1
  11. package/dist/assets/{activity-steps-panel-BzHQOJsQ.js → activity-steps-panel-xxl2hu3E.js} +1 -1
  12. package/dist/assets/add-credential-modal-CY_--m8L.js +1 -0
  13. package/dist/assets/{add-credits-modal-CCEMf2_U.js → add-credits-modal-fT_gTTP5.js} +1 -1
  14. package/dist/assets/ai-page-B02NwVRu.js +1 -0
  15. package/dist/assets/animated-avatar-BcgncPkc.js +1 -0
  16. package/dist/assets/api-C3QSs67k.js +1 -0
  17. package/dist/assets/{api-XwdNiVE9.js → api-LG8zI3nK.js} +1 -1
  18. package/dist/assets/{api-key-screen-BXn2F-lQ.js → api-key-screen-CvBdN6Ae.js} +1 -1
  19. package/dist/assets/{app-card-Uowaj1kh.js → app-card-CAaFL1oB.js} +1 -1
  20. package/dist/assets/{archive-redirect-page-CpKvFqvX.js → archive-redirect-page-BH7h0Lk7.js} +1 -1
  21. package/dist/assets/{assistant-feature-flag-store-CLqMw4mK.js → assistant-feature-flag-store-CAdgpPiS.js} +1 -1
  22. package/dist/assets/{assistant-status-panel-DKnWIr7_.js → assistant-status-panel-BTnD-jhG.js} +1 -1
  23. package/dist/assets/auth-store-5qq59BAN.js +2 -0
  24. package/dist/assets/avatar-random-BMSYTcJK.js +1 -0
  25. package/dist/assets/{avatar-renderer-DK54o2kQ.js → avatar-renderer-ClUVcQmf.js} +1 -1
  26. package/dist/assets/{background-task-actions-CmYMPa2o.js → background-task-actions-DmP5s0oO.js} +1 -1
  27. package/dist/assets/{background-task-detail-panel-KDqjs7i2.js → background-task-detail-panel-BCYAElGc.js} +1 -1
  28. package/dist/assets/{background-task-store-DFS8MP5D.js → background-task-store-DMP8ByUq.js} +1 -1
  29. package/dist/assets/billing-page-B5j5TW_S.js +3 -0
  30. package/dist/assets/{billing-redirect-page-BRcj5q0u.js → billing-redirect-page-B1o1rsQZ.js} +1 -1
  31. package/dist/assets/{bookmarks-page-fFnFzh4F.js → bookmarks-page-D_Jr-a4Q.js} +1 -1
  32. package/dist/assets/{browser-CNL8hh8H.js → browser-CTZVDjOL.js} +2 -2
  33. package/dist/assets/build-state-m0LQ5Iis.js +1 -0
  34. package/dist/assets/channels-page-route-BYP9SOw5.js +9 -0
  35. package/dist/assets/chat-avatar-CvEA6z0H.js +1 -0
  36. package/dist/assets/chat-markdown-message-rxPKNeTx.js +2 -0
  37. package/dist/assets/{checkbox-BY0BDJjm.js → checkbox-CRmgkYah.js} +1 -1
  38. package/dist/assets/checkout-continuation-U3Pd2nxi.js +1 -0
  39. package/dist/assets/checkout-page-C5_9GbP-.js +1 -0
  40. package/dist/assets/checkout-return-target-DI6Hb-9L.js +1 -0
  41. package/dist/assets/client-feature-flag-store-CMncoan8.js +1 -0
  42. package/dist/assets/{client-identity-BS5mQsaQ.js → client-identity-DhkdvP5w.js} +1 -1
  43. package/dist/assets/{command-palette-CsRPcIM-.js → command-palette-BTaT__fo.js} +1 -1
  44. package/dist/assets/{command-palette-window-page-BzQ_oDaq.js → command-palette-window-page-gq0zowBe.js} +1 -1
  45. package/dist/assets/{community-page-mlhk4LsN.js → community-page-CsEKt9wX.js} +1 -1
  46. package/dist/assets/{connect-page-PuRyFup0.js → connect-page-B4aTS7Yj.js} +1 -1
  47. package/dist/assets/{consent-controls-BOFoWAYO.js → consent-controls-OcgxuxS0.js} +1 -1
  48. package/dist/assets/consent-hzYg-zbh.js +1 -0
  49. package/dist/assets/{contacts-gateway-C5OljhCC.js → contacts-gateway-B6OrAmU3.js} +1 -1
  50. package/dist/assets/{contacts-page-route-VBlklzVL.js → contacts-page-route-DNoCUXE7.js} +1 -1
  51. package/dist/assets/{conversation-cache-CqCkWHT6.js → conversation-cache-DKvwwWNo.js} +1 -1
  52. package/dist/assets/{conversation-list-fetchers-D84gJs6f.js → conversation-list-fetchers-DM-Y61u5.js} +1 -1
  53. package/dist/assets/conversation-navigation-DsN0hcpL.js +1 -0
  54. package/dist/assets/{conversation-queries-Ba_1sW5M.js → conversation-queries-CWvK6RLK.js} +1 -1
  55. package/dist/assets/{credential-entry-page-Bfrl1sD_.js → credential-entry-page-CHinHO85.js} +1 -1
  56. package/dist/assets/credentials-page-BsJFuOc9.js +1 -0
  57. package/dist/assets/{danger-zone-redirect-page-DKfrmf_o.js → danger-zone-redirect-page-SU45WI74.js} +1 -1
  58. package/dist/assets/debug-page-BziypDgA.js +4 -0
  59. package/dist/assets/{deploy-dialogs-BNMcZzII.js → deploy-dialogs-DZSd5o9b.js} +1 -1
  60. package/dist/assets/{deploy-store-CxnShfQj.js → deploy-store-D6snB1j5.js} +1 -1
  61. package/dist/assets/{detail-card-CwtjhGfi.js → detail-card-Du8OuE3q.js} +1 -1
  62. package/dist/assets/{detail-panel-stop-button-C1rystDS.js → detail-panel-stop-button-BNuh6N0s.js} +1 -1
  63. package/dist/assets/{detail-shell-DcNnOqM_.js → detail-shell-Cyqr5FXJ.js} +1 -1
  64. package/dist/assets/{developer-page-Bu7HBiPJ.js → developer-page-QMFEIyBS.js} +1 -1
  65. package/dist/assets/{devices-redirect-page-Cvt_H5ig.js → devices-redirect-page-B14wK98N.js} +1 -1
  66. package/dist/assets/{diagnostics-Dva51gYK.js → diagnostics-T_96Uyh5.js} +1 -1
  67. package/dist/assets/doctor-handoff-store-CYjL1S0n.js +1 -0
  68. package/dist/assets/document-viewer-container-B7TEDeV0.js +2 -0
  69. package/dist/assets/{document-viewer-page-kV6TCXu0.js → document-viewer-page-3Eq8L562.js} +1 -1
  70. package/dist/assets/effective-timezone-CmcoXrio.js +1 -0
  71. package/dist/assets/{emails-page-D9E3uXkG.js → emails-page-Wr4wPSYl.js} +1 -1
  72. package/dist/assets/{esm-BWFeAIOX.js → esm-BKewCp71.js} +2 -2
  73. package/dist/assets/{esm-DKdDWqsF.js → esm-Deuay4YU.js} +2 -2
  74. package/dist/assets/{esm-C6-ZMSya.js → esm-Dk6A-sQ0.js} +2 -2
  75. package/dist/assets/{esm-BQjZqfJZ.js → esm-IoT87yZe.js} +2 -2
  76. package/dist/assets/{esm-BTyZM-kf.js → esm-PYpy75OW.js} +2 -2
  77. package/dist/assets/esm-xItcektK.js +2 -0
  78. package/dist/assets/{eye-bbox-DXmmg9ML.js → eye-bbox-C_V87iLg.js} +1 -1
  79. package/dist/assets/feature-flag-catalog-I9-eJQP_.js +1 -0
  80. package/dist/assets/file-markdown-DaflJFk7.js +2 -0
  81. package/dist/assets/{first-run-scope-BoT9LMYw.js → first-run-scope-CL5YbC3b.js} +1 -1
  82. package/dist/assets/{funnel-events-CK938pi2.js → funnel-events-n2IVlwTo.js} +1 -1
  83. package/dist/assets/general-page-lbkufqHg.js +1 -0
  84. package/dist/assets/{get-memory-stats-ERcqnC0Q.js → get-memory-stats-BCYSpBF6.js} +1 -1
  85. package/dist/assets/{haptics-D9eNTUq-.js → haptics-DvWjk9Fg.js} +2 -2
  86. package/dist/assets/hatching-screen-D81diZoa.js +1 -0
  87. package/dist/assets/{home-page-route-BOCisuYY.js → home-page-route-CHe8eoLz.js} +1 -1
  88. package/dist/assets/{hosting-screen-6xIW6q02.js → hosting-screen-D9atAksQ.js} +1 -1
  89. package/dist/assets/{identity-page-route-qWwRSRld.js → identity-page-route-CK3YsXCN.js} +1 -1
  90. package/dist/assets/index-0f48hi7h.js +11 -0
  91. package/dist/assets/index-UKZ4bO6i.css +2 -0
  92. package/dist/assets/{ingest-DGkxw0Go.js → ingest-BizI657K.js} +1 -1
  93. package/dist/assets/{inspect-page-CRBfQ5WU.js → inspect-page-COwvbHtX.js} +3 -3
  94. package/dist/assets/{installed-plugins-query-C29LGAEV.js → installed-plugins-query-Cgek0q7G.js} +1 -1
  95. package/dist/assets/{integration-icon-Dvjn3ytY.js → integration-icon-dv-9Zzx3.js} +1 -1
  96. package/dist/assets/integrations-page-CJOBwxXp.js +1 -0
  97. package/dist/assets/{intelligence-layout-DP9zklR6.js → intelligence-layout-MNoGhi-l.js} +1 -1
  98. package/dist/assets/{invalidate-plugin-queries-DamxiwYv.js → invalidate-plugin-queries-C3NTXkCX.js} +1 -1
  99. package/dist/assets/{keyboard-shortcuts-redirect-page--bCvhp62.js → keyboard-shortcuts-redirect-page-CBI_mZIL.js} +1 -1
  100. package/dist/assets/{latest-assistant-text-D5WR-o6J.js → latest-assistant-text-DOepZ_Io.js} +2 -2
  101. package/dist/assets/{library-detail-page-pviljaQw.js → library-detail-page-DVwI94NZ.js} +1 -1
  102. package/dist/assets/{library-page-CYYuLywk.js → library-page-CNA794WY.js} +1 -1
  103. package/dist/assets/local-mode-BTovbt13.js +39 -0
  104. package/dist/assets/{local-runtime-upgrade-BggVMXfW.js → local-runtime-upgrade-Bqn3d7Q7.js} +1 -1
  105. package/dist/assets/login-flow-CD9tyuFG.js +1 -0
  106. package/dist/assets/{login-page-DdHXGGAt.js → login-page-BNStrcnU.js} +1 -1
  107. package/dist/assets/{logout-page-DjihP6Qk.js → logout-page-CpFeuLA_.js} +1 -1
  108. package/dist/assets/{logs-layout-C84-h0Hn.js → logs-layout-BUiPeZ4I.js} +1 -1
  109. package/dist/assets/{machine-sizes-DAflIPTM.js → machine-sizes-DO8duvpy.js} +1 -1
  110. package/dist/assets/{memory-page-route-dGWTWCWF.js → memory-page-route-C0cBV7HD.js} +1 -1
  111. package/dist/assets/{memory-router-playground-page-CjUiz_bH.js → memory-router-playground-page-D4UIq8mw.js} +1 -1
  112. package/dist/assets/{messages-Dl5_cjD9.js → messages-CFcAW4iz.js} +2 -2
  113. package/dist/assets/{metric-card-CkAD9RpC.js → metric-card-05a5slPx.js} +1 -1
  114. package/dist/assets/{mobile-sidebar-drawer-CbJ5JfXT.js → mobile-sidebar-drawer-DtKU2vlu.js} +1 -1
  115. package/dist/assets/native-anchor-CeekjwVy.js +1 -0
  116. package/dist/assets/native-biometric-BAMIyaSS.js +6 -0
  117. package/dist/assets/{native-file-B6_oAU2Q.js → native-file-ySSv1sQ7.js} +2 -2
  118. package/dist/assets/navigation-resolver-DPJxzx0h.js +1 -0
  119. package/dist/assets/{not-found-DV3iLBwm.js → not-found-OqaWNmdx.js} +1 -1
  120. package/dist/assets/{notifications-page-B9vnqyB1.js → notifications-page-ClfcJeLf.js} +1 -1
  121. package/dist/assets/{oauth-complete-page-BSxiDbQm.js → oauth-complete-page-rVmA2Cl8.js} +1 -1
  122. package/dist/assets/{oauth-connection-utils-DbcihBL8.js → oauth-connection-utils-CWPUW4MK.js} +1 -1
  123. package/dist/assets/{oauth-popup-complete-page-CyYbqLoK.js → oauth-popup-complete-page-DBsOvLES.js} +1 -1
  124. package/dist/assets/{onboarding-layout-Dd5fPfE7.js → onboarding-layout-DLs1hfp_.js} +1 -1
  125. package/dist/assets/onboarding-store-bZ2qYISk.js +1 -0
  126. package/dist/assets/open-workspace-file-DtK3a84K.js +2 -0
  127. package/dist/assets/{page-empty-state-BA3_YQN2.js → page-empty-state-DT-tC1u6.js} +1 -1
  128. package/dist/assets/{page-shell-_QxBKTK3.js → page-shell-C7SUgga9.js} +1 -1
  129. package/dist/assets/{pairing-page-DPfIgf3F.js → pairing-page-ZkFipOSH.js} +1 -1
  130. package/dist/assets/{password-reset-page-D55bGMVy.js → password-reset-page-iASQZawH.js} +1 -1
  131. package/dist/assets/{personality-page-fJJd-i4s.js → personality-page-BJpW3UXD.js} +1 -1
  132. package/dist/assets/plans-page-BDKqdYNM.js +1 -0
  133. package/dist/assets/{platform-detection-CMiRPRCq.js → platform-detection-XEAAu4c-.js} +1 -1
  134. package/dist/assets/{platform-login-notice-BG9TFAJa.js → platform-login-notice-CdYiKsE8.js} +1 -1
  135. package/dist/assets/{platform-loopback-page-DunGLusR.js → platform-loopback-page-D0gXCm2S.js} +1 -1
  136. package/dist/assets/{plugin-detail-page-BngHrN8T.js → plugin-detail-page-Bx2wzKEf.js} +1 -1
  137. package/dist/assets/{plugins-page-DD0t1_pE.js → plugins-page-B2zQ2iGh.js} +1 -1
  138. package/dist/assets/{prefs-BZnS5vR_.js → prefs-bw85lYLp.js} +1 -1
  139. package/dist/assets/{privacy-page-nZvfh3dh.js → privacy-page-B0QN4qZO.js} +1 -1
  140. package/dist/assets/privacy-screen-vp4uUpm6.js +1 -0
  141. package/dist/assets/{provider-callback-page-BwANEd-K.js → provider-callback-page-BH6DES7c.js} +1 -1
  142. package/dist/assets/{provider-key-B3R8SlMJ.js → provider-key-D2Nsf9zh.js} +1 -1
  143. package/dist/assets/{provider-signup-page-Cz2DP-jP.js → provider-signup-page-BAPcG_iJ.js} +1 -1
  144. package/dist/assets/provisioning-targets-BTjyR9nk.js +1 -0
  145. package/dist/assets/{quick-input-page-CF2MJnCE.js → quick-input-page-Dq-0BGrJ.js} +1 -1
  146. package/dist/assets/{react-query.gen-r3I6j8-1.js → react-query.gen-C5c1Acuq.js} +1 -1
  147. package/dist/assets/{remote-gateway-session-BHjZ9gQ6.js → remote-gateway-session-yRYdsfDx.js} +1 -1
  148. package/dist/assets/{research-mock-page-DnbQpZcp.js → research-mock-page-BJEpxdMv.js} +1 -1
  149. package/dist/assets/research-onboarding-route-CFL3q__m.js +50 -0
  150. package/dist/assets/{research-results-view-CxhTn2J7.js → research-results-view-C4sIw2gK.js} +1 -1
  151. package/dist/assets/{resolved-assistants-store-C-PdxK8f.js → resolved-assistants-store-Dw5UuGyB.js} +1 -1
  152. package/dist/assets/retire-confirm-dialog-CsSY2-T8.js +1 -0
  153. package/dist/assets/review-terms-screen-BhyRQBjl.js +1 -0
  154. package/dist/assets/{risk-C_bbPQPd.js → risk-CdT92Vqr.js} +2 -2
  155. package/dist/assets/routes-CaP5Tqj7.js +23 -0
  156. package/dist/assets/routes-D9sNqB_o.js +1 -0
  157. package/dist/assets/{runtime-upgrade-banner-DQI-l3Yc.js → runtime-upgrade-banner-DPqzKtZU.js} +2 -2
  158. package/dist/assets/{schedules-DF5cTXBf.js → schedules-6hzhR_C_.js} +1 -1
  159. package/dist/assets/schedules-page-DVnUeaoB.js +1 -0
  160. package/dist/assets/{sdk.gen-BVAVE6A_.js → sdk.gen-BHZ0fJla.js} +1 -1
  161. package/dist/assets/{security-redirect-page-BEohiPDW.js → security-redirect-page-4DKqyPsf.js} +1 -1
  162. package/dist/assets/{select-assistant-screen-C2q8wO2f.js → select-assistant-screen-CVV3iqMy.js} +1 -1
  163. package/dist/assets/{settings-divider-CXIrJieH.js → settings-divider-Ro7lPCkV.js} +1 -1
  164. package/dist/assets/settings-layout-B_4PKJr9.js +1 -0
  165. package/dist/assets/settings-navigation-CSG7jiyJ.js +1 -0
  166. package/dist/assets/{share-feedback-modal-B05-nKgu.js → share-feedback-modal-BoWCg4KH.js} +1 -1
  167. package/dist/assets/{sidebar-tree-ByF78JHW.js → sidebar-tree-C_PPNHe5.js} +1 -1
  168. package/dist/assets/{signup-page-CGauGszD.js → signup-page-D0S_8XYw.js} +1 -1
  169. package/dist/assets/{signup-shell-Bw6r9tWP.js → signup-shell-CMsBZ8vG.js} +1 -1
  170. package/dist/assets/{site-favicon-CCyX9r-Z.js → site-favicon-BB1pYWLF.js} +1 -1
  171. package/dist/assets/skill-detail-page-CTobyK6L.js +1 -0
  172. package/dist/assets/{skill-detail-panel-crqCBZbU.js → skill-detail-panel-CNzionF7.js} +1 -1
  173. package/dist/assets/{skills-C1CAcW7T.js → skills-Cum1XWT2.js} +1 -1
  174. package/dist/assets/{skills-page-BikP-AR7.js → skills-page-DZVxAbua.js} +1 -1
  175. package/dist/assets/slack-setup-wizard-DK2F8LXc.js +1 -0
  176. package/dist/assets/{sound-manager-xEbUgFv-.js → sound-manager-Bx-OcMAz.js} +1 -1
  177. package/dist/assets/{sounds-page-9_otQ97S.js → sounds-page-C45-RF4i.js} +1 -1
  178. package/dist/assets/{src-D89CNeuT.js → src-te3YTBG-.js} +4 -4
  179. package/dist/assets/{start-screen-DSF3melT.js → start-screen-CkJiCl9b.js} +1 -1
  180. package/dist/assets/{subagent-detail-panel-q0g4JWAX.js → subagent-detail-panel-DyyMdaNO.js} +1 -1
  181. package/dist/assets/subagent-store-MDi6lBXs.js +3 -0
  182. package/dist/assets/{superpowers-page-UgdWFWsF.js → superpowers-page-CaLzK5D-.js} +1 -1
  183. package/dist/assets/{system-events-page-Bw94HLwx.js → system-events-page-DXAU01ZO.js} +1 -1
  184. package/dist/assets/{system-events-redirect-page-BGZQC8-K.js → system-events-redirect-page-Bm9bipNo.js} +1 -1
  185. package/dist/assets/{theme-stage-page-bEZxHTyN.js → theme-stage-page-BDTCmutO.js} +1 -1
  186. package/dist/assets/{threshold-presets-BO8En2q0.js → threshold-presets-BdTTHCnm.js} +1 -1
  187. package/dist/assets/{tiptap-document-editor-CyY1HRzV.js → tiptap-document-editor-CHn2wCDv.js} +1 -1
  188. package/dist/assets/{tool-detail-panel-DFMOphDJ.js → tool-detail-panel-DFrWEWKG.js} +1 -1
  189. package/dist/assets/{transcript-message-body-shared-nWAkSzar.js → transcript-message-body-shared-D9_d2c2X.js} +1 -1
  190. package/dist/assets/{trust-rules-api-C0-hkXT2.js → trust-rules-api-B5lfygCA.js} +1 -1
  191. package/dist/assets/{upgrade-cancel-page-DwxI6NLL.js → upgrade-cancel-page-eiJEAvFz.js} +1 -1
  192. package/dist/assets/{upgrade-success-page-SO92J-Rf.js → upgrade-success-page-Cb1Gl4MM.js} +1 -1
  193. package/dist/assets/{usage-redirect-page-BJBkecYr.js → usage-redirect-page-BOfJ7uot.js} +1 -1
  194. package/dist/assets/{use-active-assistant-id-Cjbsk2Q3.js → use-active-assistant-id-CldxA_-M.js} +1 -1
  195. package/dist/assets/{use-app-theme-Q42fO5Nz.js → use-app-theme-Dg8A6vPA.js} +1 -1
  196. package/dist/assets/{use-assistant-avatar-DSu2_Mzi.js → use-assistant-avatar-bwLHcMz4.js} +1 -1
  197. package/dist/assets/{use-assistant-capability-gxe56K48.js → use-assistant-capability-CDS7GbSO.js} +1 -1
  198. package/dist/assets/{use-assistant-identity-details-CpHkzjrI.js → use-assistant-identity-details-9JRWxXTQ.js} +1 -1
  199. package/dist/assets/{use-avatar-accent-var-PV9tsBJj.js → use-avatar-accent-var-vpakP1ce.js} +1 -1
  200. package/dist/assets/{use-bookmarks-BbJtKyHe.js → use-bookmarks-CK-nOiT-.js} +1 -1
  201. package/dist/assets/{use-bundled-avatar-components-Gp_YaD6o.js → use-bundled-avatar-components-Bbs4vCnX.js} +2 -2
  202. package/dist/assets/use-checkout-dismiss-refresh-CqGR_OsB.js +1 -0
  203. package/dist/assets/use-command-palette-sections-CkpUaAKs.js +1 -0
  204. package/dist/assets/{use-edge-swipe-DVeTYbmY.js → use-edge-swipe-Wm9pU2HX.js} +1 -1
  205. package/dist/assets/{use-edge-swipe-back-DDq-N20h.js → use-edge-swipe-back-BcSHNCwS.js} +1 -1
  206. package/dist/assets/{use-edit-app-DfFIonqZ.js → use-edit-app-B_Nequzs.js} +1 -1
  207. package/dist/assets/{use-effective-timezone-LqzBqHBy.js → use-effective-timezone-Dqs8OaXJ.js} +1 -1
  208. package/dist/assets/use-invite-link-dialog-CPPOduk8.js +1 -0
  209. package/dist/assets/{use-ios-app-nudge-BO8jWfr0.js → use-ios-app-nudge-B-ojl-b1.js} +1 -1
  210. package/dist/assets/use-is-org-ready-C5xlYywh.js +1 -0
  211. package/dist/assets/use-onboarding-login-DI5gvqEG.js +1 -0
  212. package/dist/assets/use-platform-assistant-id-DOsSt6k1.js +1 -0
  213. package/dist/assets/use-platform-gate-C65D14xY.js +1 -0
  214. package/dist/assets/{use-reduced-motion-Se97jRQ-.js → use-reduced-motion-W1fCe3vS.js} +1 -1
  215. package/dist/assets/{use-save-twilio-credentials-CUQ6gdIj.js → use-save-twilio-credentials-c9xG9RPK.js} +1 -1
  216. package/dist/assets/{use-skill-actions-DgK7Nmt1.js → use-skill-actions-BAAx1Eia.js} +1 -1
  217. package/dist/assets/{use-skill-detail-files-_v4zUF6S.js → use-skill-detail-files-BvOKvY0-.js} +1 -1
  218. package/dist/assets/use-sticky-profiles-CdWX0mgI.js +1 -0
  219. package/dist/assets/{use-subagent-card-data-YbAN73Fw.js → use-subagent-card-data-DHuNtSy9.js} +1 -1
  220. package/dist/assets/use-supports-credentials-settings-BbfghcWq.js +1 -0
  221. package/dist/assets/{use-swipe-engine-DRvffOuu.js → use-swipe-engine-6PcZZMVD.js} +1 -1
  222. package/dist/assets/{utils-BtC1KiH4.js → utils-B0rBxtYP.js} +1 -1
  223. package/dist/assets/{viewer-store-BDpZVbcr.js → viewer-store-DLk-jp8U.js} +1 -1
  224. package/dist/assets/{voice-list-DJeZeHuA.js → voice-list-CW8mzaHU.js} +1 -1
  225. package/dist/assets/{voice-page-DQcyxaPl.js → voice-page-0zsCIOdT.js} +1 -1
  226. package/dist/assets/{voice-picker-modal-BXMvQihh.js → voice-picker-modal-PdsZwrsV.js} +1 -1
  227. package/dist/assets/{weather-forecast-display-D2sn4QD4.js → weather-forecast-display-BAAnrNdd.js} +1 -1
  228. package/dist/assets/{web-Bj8XUknF.js → web-B3Q8ntoM.js} +1 -1
  229. package/dist/assets/{web-BE7l06mM.js → web-BlvxItuO.js} +1 -1
  230. package/dist/assets/{welcome-screen-n-cGiojh.js → welcome-screen-DwOAZpZS.js} +1 -1
  231. package/dist/assets/{workflow-detail-panel-Cq3AwWXE.js → workflow-detail-panel-DGL2BZSr.js} +1 -1
  232. package/dist/assets/{workflow-store-QV5aMjTt.js → workflow-store-lM7yKbUo.js} +1 -1
  233. package/dist/assets/workspace-page-D4NvhCv1.js +1 -0
  234. package/dist/assets/workspace-tree-query-B1A-efgV.js +1 -0
  235. package/dist/index.html +144 -141
  236. package/package.json +1 -1
  237. package/dist/assets/access-D3fUSyFH.js +0 -1
  238. package/dist/assets/ai-page-BznkOakE.js +0 -1
  239. package/dist/assets/animated-avatar-DzfEDnTh.js +0 -1
  240. package/dist/assets/api-CJFoPWHm.js +0 -1
  241. package/dist/assets/auth-store-D9BqFncz.js +0 -2
  242. package/dist/assets/billing-page-Cc5fHBn2.js +0 -3
  243. package/dist/assets/build-state-WR9nlRgM.js +0 -1
  244. package/dist/assets/channels-page-route-wxREzs6W.js +0 -9
  245. package/dist/assets/chat-avatar-DIDq1Jt5.js +0 -1
  246. package/dist/assets/chat-markdown-message-ERK48E1Z.js +0 -2
  247. package/dist/assets/client-feature-flag-store-oTfL8Oiz.js +0 -1
  248. package/dist/assets/consent-DbD2Hcbf.js +0 -1
  249. package/dist/assets/conversation-navigation-Wm7_pLFs.js +0 -1
  250. package/dist/assets/credentials-page-B-AJyMvk.js +0 -1
  251. package/dist/assets/debug-page-DWEIExMH.js +0 -4
  252. package/dist/assets/document-viewer-container-Cl4jDmfx.js +0 -2
  253. package/dist/assets/effective-timezone-qiooajmO.js +0 -1
  254. package/dist/assets/esm-CDPcGg-B.js +0 -2
  255. package/dist/assets/feature-flag-catalog-BAyJlRMY.js +0 -1
  256. package/dist/assets/file-Ddp9Dqgl.js +0 -1
  257. package/dist/assets/file-markdown-CLmQTpqL.js +0 -2
  258. package/dist/assets/general-page-DpKVqj5t.js +0 -1
  259. package/dist/assets/hatching-screen-d3SWqFKY.js +0 -1
  260. package/dist/assets/index-B0l9Wjpj.css +0 -2
  261. package/dist/assets/index-BOC87TAq.js +0 -11
  262. package/dist/assets/integrations-page-D5KWY6v-.js +0 -1
  263. package/dist/assets/local-mode-Ckii2tmN.js +0 -39
  264. package/dist/assets/login-flow-BCNBNLzu.js +0 -1
  265. package/dist/assets/native-anchor-CVNubOIm.js +0 -1
  266. package/dist/assets/native-biometric-CntdlaL-.js +0 -6
  267. package/dist/assets/onboarding-store-DutUn1E3.js +0 -1
  268. package/dist/assets/open-workspace-file-CpveqBim.js +0 -2
  269. package/dist/assets/plans-page-C-JyEPT_.js +0 -1
  270. package/dist/assets/privacy-screen-D2aDT6E6.js +0 -1
  271. package/dist/assets/research-onboarding-route-yg2iKw6i.js +0 -50
  272. package/dist/assets/retire-confirm-dialog--eF_pXhA.js +0 -1
  273. package/dist/assets/review-terms-screen-Dpk-gyJE.js +0 -1
  274. package/dist/assets/routes-BBFM42ft.js +0 -23
  275. package/dist/assets/routes-vE-2hncW.js +0 -1
  276. package/dist/assets/schedules-page-Dgu-znOf.js +0 -1
  277. package/dist/assets/settings-layout-b7iBWIT-.js +0 -1
  278. package/dist/assets/settings-navigation-BGdjm0Ki.js +0 -1
  279. package/dist/assets/skill-detail-page-GlV5JRzQ.js +0 -1
  280. package/dist/assets/slack-setup-wizard-DKj1_XdA.js +0 -1
  281. package/dist/assets/stream-watchdog-BafbDdX9.js +0 -1
  282. package/dist/assets/subagent-store-D-GPthdC.js +0 -3
  283. package/dist/assets/use-checkout-dismiss-refresh-kdxxDNpF.js +0 -1
  284. package/dist/assets/use-command-palette-sections-BWjxkwKB.js +0 -1
  285. package/dist/assets/use-invite-link-dialog-DX58-LWY.js +0 -1
  286. package/dist/assets/use-is-org-ready-X_98Cnx9.js +0 -1
  287. package/dist/assets/use-onboarding-login-B8rpbSEh.js +0 -1
  288. package/dist/assets/use-platform-gate-Dry0Nv4f.js +0 -1
  289. package/dist/assets/use-sticky-profiles-B0zVD3uk.js +0 -1
  290. package/dist/assets/workspace-page-CL9z2Jrs.js +0 -1
  291. /package/dist/assets/{app-info-qQex8Ndg.js → app-info-DefDjPEl.js} +0 -0
  292. /package/dist/assets/{app-types-CBg2__YH.js → app-types-DSkgEmV3.js} +0 -0
  293. /package/dist/assets/{apple-logo-poQac1tY.js → apple-logo--8ZT6Umn.js} +0 -0
  294. /package/dist/assets/{avatar-bundled-components-CecbESCk.js → avatar-bundled-components-DPqbVXi9.js} +0 -0
  295. /package/dist/assets/{avatar-subagent-C9WTTUjI.js → avatar-subagent-CRA2B82x.js} +0 -0
  296. /package/dist/assets/{avatar-svg-compositor-FtVPqzlC.js → avatar-svg-compositor-Dl-ckXRE.js} +0 -0
  297. /package/dist/assets/{avatar-tone-CMoWR2JX.js → avatar-tone-BKwvoDSj.js} +0 -0
  298. /package/dist/assets/{browser-timezone-C_0jBUid.js → browser-timezone-CGwaX5Uv.js} +0 -0
  299. /package/dist/assets/{build.umd-59c0EvgO.js → build.umd-Bixyt_xE.js} +0 -0
  300. /package/dist/assets/{by-tool-use-id-index-aoRP6d51.js → by-tool-use-id-index-M50wYE1f.js} +0 -0
  301. /package/dist/assets/{chat-BrL0k2UY.js → chat-CDFCY8f0.js} +0 -0
  302. /package/dist/assets/{chat-layout-slots-store-C2IFeZFr.js → chat-layout-slots-store-BJfYGnd7.js} +0 -0
  303. /package/dist/assets/{conversation-selection-3EKkKt0G.js → conversation-selection-oJy8Oht3.js} +0 -0
  304. /package/dist/assets/{conversation-store-bshB7nDP.js → conversation-store-C--wWMNW.js} +0 -0
  305. /package/dist/assets/{definitions-PikNVFdS.js → definitions-D_AmTPWg.js} +0 -0
  306. /package/dist/assets/{definitions-OhJf_HMS.js → definitions-JF3PcEff.js} +0 -0
  307. /package/dist/assets/{dictation-overlay-page-zpoNqudq.js → dictation-overlay-page-DtgaXzdF.js} +0 -0
  308. /package/dist/assets/{edge-swipe-arbiter-store-DyemvsR-.js → edge-swipe-arbiter-store-CQnDi2yf.js} +0 -0
  309. /package/dist/assets/{edit-chat-session-yPtopwB6.js → edit-chat-session-D37Qx6ol.js} +0 -0
  310. /package/dist/assets/{emoji-catalog-data-COLzb2Wj.js → emoji-catalog-data-BCc1YNMR.js} +0 -0
  311. /package/dist/assets/{environment-store-BFVmN-OW.js → environment-store-Bft0lpgv.js} +0 -0
  312. /package/dist/assets/{esm-DEY-lP80.js → esm-DNvorKcw.js} +0 -0
  313. /package/dist/assets/{external-urls-BYwuIdYk.js → external-urls-_vjsdj2L.js} +0 -0
  314. /package/dist/assets/{file-editor-DpNdd7HZ.js → file-editor-phorJEVv.js} +0 -0
  315. /package/dist/assets/{format-date-RZ9mCDCy.js → format-date-BGnM4mqL.js} +0 -0
  316. /package/dist/assets/{format-file-size-CQaPE33p.js → format-file-size-BgMTiWPt.js} +0 -0
  317. /package/dist/assets/{hard-navigate-DZlpL1No.js → hard-navigate-DyUrcxe0.js} +0 -0
  318. /package/dist/assets/{link-click-BoSQACXo.js → link-click-DLYgWZdo.js} +0 -0
  319. /package/dist/assets/{misc-DckBb5zz.js → misc-CuYswARt.js} +0 -0
  320. /package/dist/assets/{mutation-error-CwYvaYnb.js → mutation-error-DEknRDAQ.js} +0 -0
  321. /package/dist/assets/{native-deep-link-PvbVHiPM.js → native-deep-link-DCBJ-Rw0.js} +0 -0
  322. /package/dist/assets/{oauth-popup-DZEqljdC.js → oauth-popup-OhSYYlQF.js} +0 -0
  323. /package/dist/assets/{onboarding-step-layout-CURfuoh4.js → onboarding-step-layout-D9rghAjS.js} +0 -0
  324. /package/dist/assets/{optimistic-lifecycle-C2a6IJ7E.js → optimistic-lifecycle-BINTsVFx.js} +0 -0
  325. /package/dist/assets/{pdf-IQXtc7_x.js → pdf-BlwLcQAc.js} +0 -0
  326. /package/dist/assets/{plugin-attribution-DCFEMRUF.js → plugin-attribution-DrwveSW_.js} +0 -0
  327. /package/dist/assets/{plugins-surface-D4i2vqBz.js → plugins-surface-B43Op43l.js} +0 -0
  328. /package/dist/assets/{pointer-RLpjGG7A.js → pointer-BbPfN86L.js} +0 -0
  329. /package/dist/assets/{prechat-DIuViPZk.js → prechat-CeL4a_1i.js} +0 -0
  330. /package/dist/assets/{profile-metadata-h4CTeMKT.js → profile-metadata-BhqRdqUJ.js} +0 -0
  331. /package/dist/assets/{proxy-RtD8704m.js → proxy-D7UPVac3.js} +0 -0
  332. /package/dist/assets/{public-asset-CbDDcomC.js → public-asset-BBVUuTT_.js} +0 -0
  333. /package/dist/assets/{react-query.gen-Mwd5l-vZ.js → react-query.gen-BC3STDmV.js} +0 -0
  334. /package/dist/assets/{research-facts-UIXXE8D6.js → research-facts-B7Ev1zv0.js} +0 -0
  335. /package/dist/assets/{research-onboarding-persistence-CceFfAqE.js → research-onboarding-persistence-51lJoYJ2.js} +0 -0
  336. /package/dist/assets/{sandbox-bridge-DgDrAWv3.js → sandbox-bridge-BxW8HZq_.js} +0 -0
  337. /package/dist/assets/{sdk.gen-DPKrJeho.js → sdk.gen-B5ygTzyg.js} +0 -0
  338. /package/dist/assets/{setting-row-0LXvW7Kh.js → setting-row-BwXKepmJ.js} +0 -0
  339. /package/dist/assets/{status-badge-pill-z1OKPW3B.js → status-badge-pill-wJPMXQk1.js} +0 -0
  340. /package/dist/assets/{theme-preferences-ln8xC5zH.js → theme-preferences-Bb2pPRXa.js} +0 -0
  341. /package/dist/assets/{three-dot-indicator-SJcKW5cG.js → three-dot-indicator-BMvKQ_On.js} +0 -0
  342. /package/dist/assets/{use-bus-subscription-Cu4Y9DQi.js → use-bus-subscription-nUrbz9Mu.js} +0 -0
  343. /package/dist/assets/{use-copy-to-clipboard-DBVpNZOl.js → use-copy-to-clipboard-cF7ZSilD.js} +0 -0
  344. /package/dist/assets/{use-is-mobile-Bz2l7wPL.js → use-is-mobile-BlQuzI5Z.js} +0 -0
  345. /package/dist/assets/{web-7I6Bn0iP.js → web-9Cwi5jnT.js} +0 -0
  346. /package/dist/assets/{web-CBluPLFP.js → web-Bi-BvsRt.js} +0 -0
  347. /package/dist/assets/{web-Cmg3AbZk.js → web-D486_dlv.js} +0 -0
  348. /package/dist/assets/{web-DHVjLzid.js → web-DUb4LJ2M.js} +0 -0
  349. /package/dist/assets/{web-BEpNr5_U.js → web-l9DWMZeA.js} +0 -0
  350. /package/dist/assets/{web-BPyURh2Z.js → web-sr1ba6fP.js} +0 -0
  351. /package/dist/assets/{workflow-status-DXdUkbSd.js → workflow-status-HyIIhMBP.js} +0 -0
  352. /package/dist/assets/{workspace-theme-tokens-J8dqkK9n.js → workspace-theme-tokens-DNNwX-XS.js} +0 -0
  353. /package/dist/assets/{xterm-CdT0HObJ.js → xterm-DgGqTfet.js} +0 -0
  354. /package/dist/assets/{xterm-addon-fit-CPcVj1i5.js → xterm-addon-fit-BVObYBMM.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{o as e,r as t,t as n}from"./chunk-jRWAZmH_.js";import{t as r}from"./react-BFJW0bSv.js";import{F as i,M as a,N as o,O as s,P as c,a as l,j as u,m as d,n as f,o as p,s as m,t as h}from"./button-Dy5001j6.js";import{t as g}from"./jsx-runtime-D3ZM-ToX.js";import{a as _,t as v}from"./cn-CJf7MmLX.js";import{t as y}from"./typography-DEI9Ra9z.js";import"./card-DRIctGVs.js";import{t as b}from"./check-sC49_hjU.js";import{t as x}from"./chevron-right-HU6H84S0.js";import{C as S,S as ee,_ as te,a as C,b as w,c as ne,d as re,f as ie,g as ae,h as oe,i as se,l as ce,m as le,n as ue,o as de,p as fe,r as pe,s as me,u as he,v as ge,w as _e,x as ve,y as ye}from"./menu-BvjhxZo7.js";import{a as be,i as xe,o as Se,r as Ce}from"./list-row-B1wPb2Au.js";import"./checkbox-BY0BDJjm.js";import"./notice-BMK7xqUw.js";import"./progress-bar-C_T5_pf2.js";import"./tag-NXcyiTkK.js";import"./popover-BRpYVASI.js";import"./input-hw3el2GJ.js";import"./toggle-lfnhEAcN.js";import{a as we,i as Te,o as Ee,r as De,s as Oe,t as ke}from"./dist-jXSU-ejH.js";import{t as Ae}from"./dist-CaYJ736y.js";import{a as je,i as Me,n as Ne,r as Pe,t as Fe}from"./dist-oCfq2a_n.js";import"./modal-BR4CUFBd.js";import"./panel-item-CrtoJCrd.js";import"./toast-LgLp4obE.js";import"./confirm-dialog-UYFm4osC.js";import"./dropdown-BCfnSdIZ.js";var T=e(r(),1),E=g(),Ie=8;function Le(e,t){if(!e||typeof window>`u`)return null;try{let n=localStorage.getItem(e);if(n==null)return null;let r=Number(n);return Number.isFinite(r)?Math.max(t,r):null}catch{return null}}function Re({left:e,right:t,defaultLeftWidth:n=400,defaultLeftPercent:r,defaultRightWidth:i,minLeftWidth:a=300,minRightWidth:o=300,onWidthChange:s,storageKey:c,hideDivider:l=!1,className:u,...d}){let f=(0,T.useRef)(null),[p,m]=(0,T.useState)(()=>Le(c,a)??n),h=(0,T.useRef)(null),[g,_]=(0,T.useState)(!1),y=(0,T.useCallback)(e=>{let t=f.current;if(!t||t.offsetWidth<=0)return e;let n=t.offsetWidth-o;return Math.max(a,Math.min(e,n))},[a,o]),b=(0,T.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),h.current={startX:e.clientX,startWidth:p},_(!0)},[p]),x=(0,T.useCallback)(e=>{if(!h.current)return;let t=e.clientX-h.current.startX,n=y(h.current.startWidth+t);m(n),s?.(n)},[y,s]),S=(0,T.useCallback)(e=>{if(!h.current)return;e.target.releasePointerCapture(e.pointerId);let t=y(h.current.startWidth+(e.clientX-h.current.startX));if(h.current=null,_(!1),c)try{localStorage.setItem(c,String(t))}catch{}},[y,c]);return(0,T.useEffect)(()=>{m(e=>y(e));function e(){m(e=>y(e))}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[y]),(0,T.useLayoutEffect)(()=>{if(Le(c,a)!==null)return;let e=f.current;if(!e)return;let t=e.offsetWidth;if(t<=0)return;let n=null;r==null?i!=null&&(n=t-i-Ie):n=t*r/100,n!=null&&m(y(n))},[r,i,c,a,y]),(0,E.jsxs)(`div`,{...d,ref:f,"data-slot":`resizable-panel`,className:v(`flex h-full w-full overflow-hidden`,u),children:[(0,E.jsx)(`div`,{className:`flex h-full shrink-0 flex-col overflow-hidden`,style:{width:p},children:e}),(0,E.jsxs)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:v(`group relative z-10 flex h-full w-2 shrink-0 cursor-col-resize items-center justify-center`,g&&`select-none`),onPointerDown:b,onPointerMove:x,onPointerUp:S,onPointerCancel:S,children:[(0,E.jsx)(`div`,{className:v(`h-full w-px`,l?`bg-transparent`:`bg-[var(--border-base)]`)}),(0,E.jsx)(`div`,{className:v(`absolute h-8 w-1 rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity`,`group-hover:opacity-100`,g&&`opacity-100`)})]}),(0,E.jsx)(`div`,{className:`h-full min-w-0 flex-1 overflow-auto`,children:t})]})}function ze({children:e,orientation:t=`vertical`,size:n=24,offset:r=0,isEnabled:i=!0,hideScrollBar:a=!1,className:o,ref:s}){let c=(0,T.useRef)(null),l=(0,T.useRef)(null),[u,d]=(0,T.useState)({start:!1,end:!1}),f=(0,T.useCallback)(e=>{c.current=e,typeof s==`function`?s(e):s&&(s.current=e)},[s]),p=(0,T.useCallback)(()=>{let e=c.current;if(!e||!i){d(e=>!e.start&&!e.end?e:{start:!1,end:!1});return}let n=t===`vertical`,a=n?e.scrollTop:e.scrollLeft,o=n?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,s=a>r,l=a<o-r;d(e=>e.start===s&&e.end===l?e:{start:s,end:l})},[i,t,r]);(0,T.useLayoutEffect)(()=>{p()}),(0,T.useEffect)(()=>{let e=c.current;if(!e)return;e.addEventListener(`scroll`,p,{passive:!0});let t=typeof ResizeObserver<`u`?new ResizeObserver(p):null;return t?.observe(e),l.current&&t?.observe(l.current),()=>{e.removeEventListener(`scroll`,p),t?.disconnect()}},[p]);let m=i?Be(t,n,u):void 0;return(0,E.jsx)(`div`,{ref:f,"data-slot":`scroll-shadow`,"data-orientation":t,className:v(t===`vertical`?`overflow-y-auto`:`overflow-x-auto`,a&&`[scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,o),style:m?{maskImage:m,WebkitMaskImage:m}:void 0,children:(0,E.jsx)(`div`,{ref:l,className:t===`horizontal`?`w-max`:void 0,children:e})})}function Be(e,t,n){return`linear-gradient(${e===`vertical`?`to bottom`:`to right`}, ${n.start?`transparent`:`#000`}, #000 ${t}px, #000 calc(100% - ${t}px), ${n.end?`transparent`:`#000`})`}var Ve=`Radio`,[He,Ue]=u(Ve),[We,Ge]=He(Ve);function Ke(e){let{__scopeRadio:t,checked:n=!1,children:r,disabled:i,form:a,name:o,onCheck:s,required:c,value:l=`on`,internal_do_not_use_render:u}=e,[d,f]=T.useState(null),[p,m]=T.useState(null),h={checked:n,disabled:i,required:c,name:o,form:a,value:l,control:d,setControl:f,hasConsumerStoppedPropagationRef:T.useRef(!1),isFormControl:d?!!a||!!d.closest(`form`):!0,bubbleInput:p,setBubbleInput:m,onCheck:()=>s?.()};return(0,E.jsx)(We,{scope:t,...h,children:et(u)?u(h):r})}var qe=`RadioTrigger`,Je=T.forwardRef(({__scopeRadio:e,onClick:t,...n},r)=>{let{checked:i,disabled:c,value:l,setControl:u,onCheck:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Ge(qe,e),h=a(r,u);return(0,E.jsx)(s.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":tt(i),"data-disabled":c?``:void 0,disabled:c,value:l,...n,ref:h,onClick:o(t,e=>{i||d(),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});Je.displayName=qe;var Ye=T.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i,required:a,disabled:o,value:s,onCheck:c,form:l,...u}=e;return(0,E.jsx)(Ke,{__scopeRadio:n,checked:i,disabled:o,required:a,onCheck:c,name:r,form:l,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Je,{...u,ref:t,__scopeRadio:n}),e&&(0,E.jsx)($e,{__scopeRadio:n})]})})});Ye.displayName=Ve;var Xe=`RadioIndicator`,Ze=T.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Ge(Xe,n);return(0,E.jsx)(m,{present:r||a.checked,children:(0,E.jsx)(s.span,{"data-state":tt(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});Ze.displayName=Xe;var Qe=`RadioBubbleInput`,$e=T.forwardRef(({__scopeRadio:e,...t},n)=>{let{control:r,checked:i,required:o,disabled:c,name:l,value:u,form:f,bubbleInput:p,setBubbleInput:m,hasConsumerStoppedPropagationRef:h}=Ge(Qe,e),g=a(n,m),_=je(i),v=d(r);T.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!h.current;if(_!==i&&n){let t=new Event(`click`,{bubbles:r});n.call(e,i),e.dispatchEvent(t)}},[p,_,i,h]);let y=T.useRef(i);return(0,E.jsx)(s.input,{type:`radio`,"aria-hidden":!0,defaultChecked:y.current,required:o,disabled:c,name:l,value:u,form:f,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});$e.displayName=Qe;function et(e){return typeof e==`function`}function tt(e){return e?`checked`:`unchecked`}var nt=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],rt=`RadioGroup`,[it,at]=u(rt,[S,Ue]),ot=S(),st=Ue(),[ct,lt]=it(rt),ut=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...m}=e,h=ot(n),g=Ae(u),[_,v]=p({prop:a,defaultProp:i??null,onChange:f,caller:rt});return(0,E.jsx)(ct,{scope:n,name:r,required:o,disabled:c,value:_,onValueChange:v,children:(0,E.jsx)(ee,{asChild:!0,...h,orientation:l,dir:g,loop:d,children:(0,E.jsx)(s.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":l,"data-disabled":c?``:void 0,dir:g,...m,ref:t})})})});ut.displayName=rt;var dt=`RadioGroupItem`,ft=`RadioGroupItemProvider`,pt=`RadioGroupItemTrigger`,mt=`RadioGroupItemBubbleInput`;function ht(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:a}=e,o=lt(ft,t),s=st(t),c=o.disabled||r;return(0,E.jsx)(Ke,{...s,checked:o.value===n,disabled:c,required:o.required,name:o.name,value:n,onCheck:()=>o.onValueChange(n),internal_do_not_use_render:a,children:i})}var gt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=ot(n),s=st(n),{checked:c,disabled:l}=Ge(pt,s.__scopeRadio),u=T.useRef(null),d=a(t,u),f=T.useRef(!1);return T.useEffect(()=>{let e=e=>{nt.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,E.jsx)(ve,{asChild:!0,...i,focusable:!l,active:c,children:(0,E.jsx)(Je,{...s,...r,ref:d,onKeyDown:o(r.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(r.onFocus,()=>{f.current&&u.current?.click()})})})});gt.displayName=pt;var _t=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,value:r,disabled:i,...a}=e;return(0,E.jsx)(ht,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(gt,{...a,ref:t,__scopeRadioGroup:n}),e&&(0,E.jsx)(vt,{__scopeRadioGroup:n})]})})});_t.displayName=dt;var vt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,E.jsx)($e,{...st(n),...r,ref:t})});vt.displayName=mt;var yt=`RadioGroupIndicator`,bt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,E.jsx)(Ze,{...st(n),...r,ref:t})});bt.displayName=yt;function xt({value:e,onValueChange:t,name:n,disabled:r,orientation:i=`vertical`,required:a,className:o,style:s,children:c,"aria-label":l,"aria-labelledby":u}){let d=i===`horizontal`?`flex flex-row flex-wrap items-center gap-4`:`flex flex-col gap-2.5`;return(0,E.jsx)(ut,{value:e,onValueChange:e=>t(e),name:n,disabled:r,required:a,orientation:i,className:v(d,o),style:s,"aria-label":l,"aria-labelledby":u,"data-slot":`radio-group`,children:c})}function St({value:e,label:t,helperText:n,disabled:r,id:i,className:a,"aria-label":o}){let s=(0,T.useId)(),c=i??`radio-${s}`,l=n?`${c}-helper`:void 0,u=r?`var(--content-disabled)`:`var(--radio-checked-bg, var(--system-positive-strong))`,d=r?`var(--surface-overlay)`:`var(--radio-checked-dot, var(--aux-white))`,f=r?`var(--surface-overlay)`:`transparent`;return(0,E.jsxs)(`div`,{"data-slot":`radio`,className:v(`flex gap-2`,n?`items-start`:`items-center`,a),children:[(0,E.jsx)(_t,{id:c,value:e,disabled:r,"aria-label":t?void 0:o,"aria-describedby":l,className:v(`relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border transition-colors`,`border-[color:var(--radio-border)]`,`[--radio-border:var(--border-element)]`,`data-[state=checked]:border-transparent`,`disabled:[--radio-border:var(--content-disabled)]`,`disabled:cursor-not-allowed`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-offset-1`,`keyboard-focus:ring-[color-mix(in_srgb,var(--system-positive-strong)_30%,transparent)]`),style:{background:f},children:(0,E.jsx)(bt,{forceMount:!0,className:`flex h-full w-full items-center justify-center rounded-full data-[state=unchecked]:opacity-0`,style:{background:u},children:(0,E.jsx)(`span`,{"aria-hidden":!0,className:`block h-2 w-2 rounded-full`,style:{background:d}})})}),(t||n)&&(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[t?(0,E.jsx)(y,{as:`label`,variant:`body-medium-lighter`,htmlFor:c,className:v(r?`cursor-not-allowed`:`cursor-pointer`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-default)]`),children:t}):null,n?(0,E.jsx)(y,{as:`span`,variant:`body-small-default`,id:l,className:v(`leading-4`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-tertiary)]`),children:n}):null]})]})}function Ct(e,t,n){let r=e.find(e=>e.value===n);return!r||r.disabled||r.value===t?null:r.value}function wt(e,t,n){let r=e.length,i=(t+n+r)%r,a=0;for(;e[i]?.disabled&&a<r;)i=(i+n+r)%r,a++;return i}function Tt({items:e,value:t,onChange:n,ariaLabel:r,iconOnly:i=!1,showTooltips:a=!0,className:o}){let s=(0,T.useRef)(null),c=(0,T.useCallback)(r=>{let i=e.findIndex(e=>e.value===t),a=null;switch(r.key){case`ArrowRight`:case`ArrowDown`:a=wt(e,i,1);break;case`ArrowLeft`:case`ArrowUp`:a=wt(e,i===-1?0:i,-1);break;case`Home`:a=wt(e,e.length-1,1);break;case`End`:a=wt(e,0,-1);break;default:return}r.preventDefault();let o=e[a];!o||o.disabled||(o.value!==t&&n(o.value),(s.current?.querySelectorAll(`[role="radio"]`))?.[a]?.focus())},[e,t,n]),l=e.findIndex(e=>e.value===t),u=l===-1?e.findIndex(e=>!e.disabled):l,d=!i&&e.some(e=>e.sublabel!=null);return(0,E.jsx)(`div`,{ref:s,role:`radiogroup`,"aria-label":r,"data-slot":`segment-control`,onKeyDown:c,className:v(`inline-flex rounded-md bg-[var(--surface-active)] p-0.5`,!i&&`w-full`,o),children:e.map((r,o)=>{let s=r.value===t,c=!!r.disabled;return(0,E.jsxs)(h,{variant:`ghost`,role:`radio`,"aria-checked":s,"aria-label":i?r.label:void 0,tooltip:i&&a?r.label:void 0,disabled:c,tabIndex:o===u?0:-1,onClick:()=>{let i=Ct(e,t,r.value);i!==null&&n(i)},className:v(`min-w-[30px] cursor-pointer justify-center gap-1.5 rounded-[6px] border-0 text-body-medium-default`,d?`h-auto py-1.5`:`h-7`,i?`px-2 max-md:h-9 max-md:min-w-9 max-md:px-2`:`flex-1 px-3`,s?`bg-[var(--surface-overlay)] text-[var(--content-emphasised)] shadow-sm hover:bg-[var(--surface-overlay)]`:`bg-transparent text-[var(--content-tertiary)] hover:bg-transparent hover:text-[var(--content-emphasised)]`),children:[r.icon,!i&&(r.sublabel==null?r.label:(0,E.jsxs)(`span`,{className:`flex flex-col items-center gap-0.5`,children:[(0,E.jsx)(`span`,{children:r.label}),(0,E.jsx)(`span`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:r.sublabel})]}))]},r.value)})})}var Et=c(`-mb-px inline-flex items-center whitespace-nowrap border-b-2 border-transparent pb-2 text-body-medium-default transition-colors`,{variants:{status:{active:`border-[var(--primary-base)] text-[var(--content-strong)]`,completed:`text-[var(--content-default)]`,upcoming:`text-[var(--content-disabled)]`},navigable:{true:`cursor-pointer outline-none hover:text-[var(--content-strong)] keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,false:`cursor-default`}},defaultVariants:{status:`upcoming`,navigable:!1}});function Dt({steps:e,current:t,onStepSelect:n,disabled:r=!1,className:i,...a}){return(0,E.jsx)(`nav`,{"data-slot":`stepper`,className:v(`flex items-center gap-4 border-b border-[var(--border-base)]`,i),...a,children:e.map((e,i)=>{let a=i===t?`active`:i<t?`completed`:`upcoming`;return a===`completed`&&!r&&n?(0,E.jsx)(`button`,{type:`button`,"data-slot":`stepper-step`,onClick:()=>n?.(i),className:Et({status:a,navigable:!0}),children:e.label},e.id):(0,E.jsx)(`span`,{"data-slot":`stepper-step`,"aria-current":a===`active`?`step`:void 0,className:Et({status:a}),children:e.label},e.id)})})}function Ot(e){return Array.isArray(e)}function kt(e){return Ot(e)?[e[0],e[1]]:[e]}function At(e,t,n,r){return t?[e[0]??n,e[1]??r]:e[0]??n}function jt(e){return Ot(e)?`${e[0]} – ${e[1]}`:String(e)}function Mt({value:e,onValueChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,label:o,showValue:s=!1,formatValue:c,name:l,id:u,"aria-label":d,className:f}){let p=(0,T.useId)(),m=u??p,h=o?`${m}-label`:void 0,g=Ot(e),_=kt(e),y=e=>{t(At(e,g,n,r))},b=c?c(e):jt(e),x=v(`block h-4 w-4 rounded-full bg-[var(--aux-white)]`,`border-2 border-[var(--system-positive-strong)]`,`shadow-sm transition-colors`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,a?`cursor-not-allowed border-[var(--border-disabled)]`:`cursor-grab active:cursor-grabbing`);return(0,E.jsxs)(`div`,{"data-slot":`slider`,className:v(`flex flex-col gap-1.5`,f),children:[(o||s)&&(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[o?(0,E.jsx)(`span`,{id:h,className:v(`text-body-medium-default`,a?`text-[var(--content-disabled)]`:`text-[var(--content-default)]`),children:o}):(0,E.jsx)(`span`,{}),s?(0,E.jsx)(`span`,{className:v(`text-body-medium-lighter tabular-nums`,a?`text-[var(--content-disabled)]`:`text-[var(--content-secondary)]`),children:b}):null]}),(0,E.jsxs)(Fe,{id:m,name:l,value:_,onValueChange:y,min:n,max:r,step:i,disabled:a,"aria-label":o?void 0:d,"aria-labelledby":o?h:void 0,className:v(`relative flex w-full touch-none items-center select-none`,`h-5`,a&&`opacity-60`),children:[(0,E.jsx)(Me,{className:v(`relative h-1 w-full grow overflow-hidden rounded-full`,`bg-[var(--border-disabled)]`),children:(0,E.jsx)(Ne,{className:v(`absolute h-full rounded-full`,a?`bg-[var(--border-element)]`:`bg-[var(--system-positive-strong)]`)})}),(0,E.jsx)(Pe,{className:x}),g?(0,E.jsx)(Pe,{className:x}):null]})]})}var Nt=`ContextMenu`,[Pt,Ft]=u(Nt,[w]),It=w(),[Lt,Rt]=Pt(Nt),zt=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=T.useRef(!1);{let e=T.useRef(!1);T.useEffect(()=>{i===!0&&!s.current&&!e.current&&(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[i])}let[c,l]=p({prop:i,defaultProp:!1,onChange:r,caller:Nt}),u=It(t);return(0,E.jsx)(Lt,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,E.jsx)(oe,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})};zt.displayName=Nt;var Bt=`ContextMenuTrigger`,Vt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Rt(Bt,n),c=It(n),l=T.useRef({x:0,y:0}),u=T.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),d=T.useRef(0),f=T.useCallback(()=>window.clearTimeout(d.current),[]),p=e=>{a.hasInteractedRef.current=!0,l.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return T.useEffect(()=>f,[f]),T.useEffect(()=>void(r&&f()),[r,f]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(se,{...c,virtualRef:u}),(0,E.jsx)(s.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:o(e.onContextMenu,e=>{f(),p(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:o(e.onPointerDown,_n(e=>{f(),a.open&&a.onOpenChange(!1),d.current=window.setTimeout(()=>p(e),700)})),onPointerMove:r?e.onPointerMove:o(e.onPointerMove,_n(f)),onPointerCancel:r?e.onPointerCancel:o(e.onPointerCancel,_n(f)),onPointerUp:r?e.onPointerUp:o(e.onPointerUp,_n(f))})]})});Vt.displayName=Bt;var Ht=`ContextMenuPortal`,Ut=e=>{let{__scopeContextMenu:t,...n}=e,r=It(t);return(0,E.jsx)(ie,{...r,...n})};Ut.displayName=Ht;var Wt=`ContextMenuContent`,Gt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Rt(Wt,n),a=It(n),o=T.useRef(!1);return(0,E.jsx)(me,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Gt.displayName=Wt;var Kt=`ContextMenuGroup`,qt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ne,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`ContextMenuLabel`,Yt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(re,{...i,...r,ref:t})});Yt.displayName=Jt;var Xt=`ContextMenuItem`,Zt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ce,{...i,...r,ref:t})});Zt.displayName=Xt;var Qt=`ContextMenuCheckboxItem`,$t=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(de,{...i,...r,ref:t})});$t.displayName=Qt;var en=`ContextMenuRadioGroup`,tn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(fe,{...i,...r,ref:t})});tn.displayName=en;var nn=`ContextMenuRadioItem`,rn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(le,{...i,...r,ref:t})});rn.displayName=nn;var an=`ContextMenuItemIndicator`,on=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(he,{...i,...r,ref:t})});on.displayName=an;var sn=`ContextMenuSeparator`,cn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ae,{...i,...r,ref:t})});cn.displayName=sn;var ln=`ContextMenuArrow`,un=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(C,{...i,...r,ref:t})});un.displayName=ln;var dn=`ContextMenuSub`,fn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=It(t),[s,c]=p({prop:i,defaultProp:a??!1,onChange:r,caller:dn});return(0,E.jsx)(te,{...o,open:s,onOpenChange:c,children:n})};fn.displayName=dn;var pn=`ContextMenuSubTrigger`,mn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ye,{...i,...r,ref:t})});mn.displayName=pn;var hn=`ContextMenuSubContent`,gn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ge,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});gn.displayName=hn;function _n(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var vn=zt,yn=Vt,bn=Ut,xn=Gt,Sn=Yt,Cn=Zt,wn=$t,Tn=tn,En=rn,Dn=on,On=cn,kn=fn,An=mn,jn=gn,Mn=vn;function Nn({asChild:e=!0,...t}){return(0,E.jsx)(yn,{"data-slot":`context-menu-trigger`,asChild:e,...t})}function Pn({className:e,collisionPadding:t=8,ref:n,...r}){let i=l();return(0,E.jsx)(bn,{container:i??void 0,children:(0,E.jsx)(xn,{ref:n,"data-slot":`context-menu-content`,collisionPadding:t,className:v(ue,e),...r})})}function Fn({className:e,children:t,leftIcon:n,shortcut:r,ref:i,...a}){return(0,E.jsxs)(Cn,{ref:i,"data-slot":`context-menu-item`,className:v(pe,e),...a,children:[n?(0,E.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function In({className:e,children:t,checked:n,shortcut:r,ref:i,...a}){return(0,E.jsxs)(wn,{ref:i,checked:n,"data-slot":`context-menu-checkbox-item`,className:v(pe,`pl-7`,e),...a,children:[(0,E.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,E.jsx)(Dn,{children:(0,E.jsx)(b,{className:`h-3.5 w-3.5 text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function Ln({ref:e,...t}){return(0,E.jsx)(Tn,{ref:e,"data-slot":`context-menu-radio-group`,...t})}function Rn({className:e,children:t,shortcut:n,ref:r,...i}){return(0,E.jsxs)(En,{ref:r,"data-slot":`context-menu-radio-item`,className:v(pe,`pl-7`,e),...i,children:[(0,E.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,E.jsx)(Dn,{children:(0,E.jsx)(_e,{className:`h-2 w-2 fill-current text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:n}):null]})}function zn({className:e,ref:t,...n}){return(0,E.jsx)(On,{ref:t,"data-slot":`context-menu-separator`,className:v(`my-1 h-px bg-[var(--border-base)]`,e),...n})}function Bn({className:e,ref:t,...n}){return(0,E.jsx)(Sn,{ref:t,"data-slot":`context-menu-label`,className:v(`px-2 py-1.5 text-body-small-default uppercase tracking-wide`,`text-[var(--content-tertiary)]`,e),...n})}var Vn=kn;function Hn({className:e,children:t,leftIcon:n,ref:r,...i}){return(0,E.jsxs)(An,{ref:r,"data-slot":`context-menu-sub-trigger`,className:v(pe,`data-[state=open]:bg-[var(--surface-hover)]`,`data-[state=open]:text-[var(--content-emphasised)]`,e),...i,children:[n?(0,E.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),(0,E.jsx)(x,{className:`ml-auto h-3.5 w-3.5 text-[var(--content-tertiary)]`,"aria-hidden":!0})]})}function Un({className:e,ref:t,...n}){let r=l();return(0,E.jsx)(bn,{container:r??void 0,children:(0,E.jsx)(jn,{ref:t,"data-slot":`context-menu-sub-content`,className:v(ue,e),...n})})}var Wn={Root:Mn,Trigger:Nn,Content:Pn,Item:Fn,CheckboxItem:In,RadioGroup:Ln,RadioItem:Rn,Separator:zn,Label:Bn,Sub:Vn,SubTrigger:Hn,SubContent:Un};function Gn(){}function Kn(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function qn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Jn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Zn(e,t){return((t||Xn).jsx?Yn:Jn).test(e)}var Qn=/[ \t\n\f\r]/g;function $n(e){return typeof e==`object`?e.type===`text`?er(e.value):!1:er(e)}function er(e){return e.replace(Qn,``)===``}var tr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};tr.prototype.normal={},tr.prototype.property={},tr.prototype.space=void 0;function nr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tr(n,r,t)}function rr(e){return e.toLowerCase()}var ir=class{constructor(e,t){this.attribute=t,this.property=e}};ir.prototype.attribute=``,ir.prototype.booleanish=!1,ir.prototype.boolean=!1,ir.prototype.commaOrSpaceSeparated=!1,ir.prototype.commaSeparated=!1,ir.prototype.defined=!1,ir.prototype.mustUseProperty=!1,ir.prototype.number=!1,ir.prototype.overloadedBoolean=!1,ir.prototype.property=``,ir.prototype.spaceSeparated=!1,ir.prototype.space=void 0;var ar=t({boolean:()=>D,booleanish:()=>sr,commaOrSpaceSeparated:()=>dr,commaSeparated:()=>ur,number:()=>O,overloadedBoolean:()=>cr,spaceSeparated:()=>lr}),or=0,D=fr(),sr=fr(),cr=fr(),O=fr(),lr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.keys(ar),mr=class extends ir{constructor(e,t,n,r){let i=-1;if(super(e,t),hr(this,`space`,r),typeof n==`number`)for(;++i<pr.length;){let e=pr[i];hr(this,pr[i],(n&ar[e])===ar[e])}}};mr.prototype.defined=!0;function hr(e,t,n){n&&(e[t]=n)}function gr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new mr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[rr(r)]=r,n[rr(a.attribute)]=r}return new tr(t,n,e.space)}var _r=gr({properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:lr,ariaCurrent:null,ariaDescribedBy:lr,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:lr,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:lr,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lr,ariaLevel:O,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:lr,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:lr,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:sr,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function vr(e,t){return t in e?e[t]:t}function yr(e,t){return vr(e,t.toLowerCase())}var br=gr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ur,acceptCharset:lr,accessKey:lr,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alpha:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:lr,autoFocus:D,autoPlay:D,blocking:lr,capture:null,charSet:null,checked:D,cite:null,className:lr,closedBy:null,colorSpace:null,cols:O,colSpan:O,command:null,commandFor:null,content:null,contentEditable:sr,controls:D,controlsList:lr,coords:O|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:cr,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:lr,height:O,hidden:cr,high:O,href:null,hrefLang:null,htmlFor:lr,httpEquiv:lr,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:lr,itemRef:lr,itemScope:D,itemType:lr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,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:D,optimum:O,pattern:null,ping:lr,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:lr,required:D,reversed:D,rows:O,rowSpan:O,sandbox:lr,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootCustomElementRegistry:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shadowRootSerializable:D,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:sr,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lr,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:D,disablePictureInPicture:D,disableRemotePlayback:D,exportParts:ur,part:lr,prefix:null,property:null,results:O,security:null,unselectable:null},space:`html`,transform:yr}),xr=gr({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`,maskType:`mask-type`,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:dr,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:lr,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:vr}),Sr=gr({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()}}),Cr=gr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:yr}),wr=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Tr={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`},Er=/[A-Z]/g,Dr=/-[a-z]/g,Or=/^data[-\w.:]+$/i;function kr(e,t){let n=rr(t),r=t,i=ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Or.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Dr,jr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Dr.test(e)){let n=e.replace(Er,Ar);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=mr}return new i(r,t)}function Ar(e){return`-`+e.toLowerCase()}function jr(e){return e.charAt(1).toUpperCase()}var Mr=nr([_r,br,Sr,Cr,wr],`html`),Nr=nr([_r,xr,Sr,Cr,wr],`svg`);function Pr(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Fr(e){return e.join(` `).trim()}var Ir=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
1
+ import{o as e,r as t,t as n}from"./chunk-jRWAZmH_.js";import{t as r}from"./react-BFJW0bSv.js";import{F as i,M as a,N as o,O as s,P as c,a as l,j as u,m as d,n as f,o as p,s as m,t as h}from"./button-Dy5001j6.js";import{t as g}from"./jsx-runtime-D3ZM-ToX.js";import{a as _,t as v}from"./cn-CJf7MmLX.js";import{t as y}from"./typography-DEI9Ra9z.js";import"./card-DRIctGVs.js";import{t as b}from"./check-sC49_hjU.js";import{t as x}from"./chevron-right-HU6H84S0.js";import{C as S,S as ee,_ as te,a as C,b as w,c as ne,d as re,f as ie,g as ae,h as oe,i as se,l as ce,m as le,n as ue,o as de,p as fe,r as pe,s as me,u as he,v as ge,w as _e,x as ve,y as ye}from"./menu-BvjhxZo7.js";import{a as be,i as xe,o as Se,r as Ce}from"./list-row-B1wPb2Au.js";import"./checkbox-CRmgkYah.js";import"./notice-BMK7xqUw.js";import"./progress-bar-C_T5_pf2.js";import"./tag-NXcyiTkK.js";import"./popover-BRpYVASI.js";import"./input-hw3el2GJ.js";import"./toggle-lfnhEAcN.js";import{a as we,i as Te,o as Ee,r as De,s as Oe,t as ke}from"./dist-jXSU-ejH.js";import{t as Ae}from"./dist-CaYJ736y.js";import{a as je,i as Me,n as Ne,r as Pe,t as Fe}from"./dist-oCfq2a_n.js";import"./modal-BR4CUFBd.js";import"./panel-item-CrtoJCrd.js";import"./toast-LgLp4obE.js";import"./confirm-dialog-UYFm4osC.js";import"./dropdown-BCfnSdIZ.js";var T=e(r(),1),E=g(),Ie=8;function Le(e,t){if(!e||typeof window>`u`)return null;try{let n=localStorage.getItem(e);if(n==null)return null;let r=Number(n);return Number.isFinite(r)?Math.max(t,r):null}catch{return null}}function Re({left:e,right:t,defaultLeftWidth:n=400,defaultLeftPercent:r,defaultRightWidth:i,minLeftWidth:a=300,minRightWidth:o=300,onWidthChange:s,storageKey:c,hideDivider:l=!1,className:u,...d}){let f=(0,T.useRef)(null),[p,m]=(0,T.useState)(()=>Le(c,a)??n),h=(0,T.useRef)(null),[g,_]=(0,T.useState)(!1),y=(0,T.useCallback)(e=>{let t=f.current;if(!t||t.offsetWidth<=0)return e;let n=t.offsetWidth-o;return Math.max(a,Math.min(e,n))},[a,o]),b=(0,T.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),h.current={startX:e.clientX,startWidth:p},_(!0)},[p]),x=(0,T.useCallback)(e=>{if(!h.current)return;let t=e.clientX-h.current.startX,n=y(h.current.startWidth+t);m(n),s?.(n)},[y,s]),S=(0,T.useCallback)(e=>{if(!h.current)return;e.target.releasePointerCapture(e.pointerId);let t=y(h.current.startWidth+(e.clientX-h.current.startX));if(h.current=null,_(!1),c)try{localStorage.setItem(c,String(t))}catch{}},[y,c]);return(0,T.useEffect)(()=>{m(e=>y(e));function e(){m(e=>y(e))}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[y]),(0,T.useLayoutEffect)(()=>{if(Le(c,a)!==null)return;let e=f.current;if(!e)return;let t=e.offsetWidth;if(t<=0)return;let n=null;r==null?i!=null&&(n=t-i-Ie):n=t*r/100,n!=null&&m(y(n))},[r,i,c,a,y]),(0,E.jsxs)(`div`,{...d,ref:f,"data-slot":`resizable-panel`,className:v(`flex h-full w-full overflow-hidden`,u),children:[(0,E.jsx)(`div`,{className:`flex h-full shrink-0 flex-col overflow-hidden`,style:{width:p},children:e}),(0,E.jsxs)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:v(`group relative z-10 flex h-full w-2 shrink-0 cursor-col-resize items-center justify-center`,g&&`select-none`),onPointerDown:b,onPointerMove:x,onPointerUp:S,onPointerCancel:S,children:[(0,E.jsx)(`div`,{className:v(`h-full w-px`,l?`bg-transparent`:`bg-[var(--border-base)]`)}),(0,E.jsx)(`div`,{className:v(`absolute h-8 w-1 rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity`,`group-hover:opacity-100`,g&&`opacity-100`)})]}),(0,E.jsx)(`div`,{className:`h-full min-w-0 flex-1 overflow-auto`,children:t})]})}function ze({children:e,orientation:t=`vertical`,size:n=24,offset:r=0,isEnabled:i=!0,hideScrollBar:a=!1,className:o,ref:s}){let c=(0,T.useRef)(null),l=(0,T.useRef)(null),[u,d]=(0,T.useState)({start:!1,end:!1}),f=(0,T.useCallback)(e=>{c.current=e,typeof s==`function`?s(e):s&&(s.current=e)},[s]),p=(0,T.useCallback)(()=>{let e=c.current;if(!e||!i){d(e=>!e.start&&!e.end?e:{start:!1,end:!1});return}let n=t===`vertical`,a=n?e.scrollTop:e.scrollLeft,o=n?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,s=a>r,l=a<o-r;d(e=>e.start===s&&e.end===l?e:{start:s,end:l})},[i,t,r]);(0,T.useLayoutEffect)(()=>{p()}),(0,T.useEffect)(()=>{let e=c.current;if(!e)return;e.addEventListener(`scroll`,p,{passive:!0});let t=typeof ResizeObserver<`u`?new ResizeObserver(p):null;return t?.observe(e),l.current&&t?.observe(l.current),()=>{e.removeEventListener(`scroll`,p),t?.disconnect()}},[p]);let m=i?Be(t,n,u):void 0;return(0,E.jsx)(`div`,{ref:f,"data-slot":`scroll-shadow`,"data-orientation":t,className:v(t===`vertical`?`overflow-y-auto`:`overflow-x-auto`,a&&`[scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,o),style:m?{maskImage:m,WebkitMaskImage:m}:void 0,children:(0,E.jsx)(`div`,{ref:l,className:t===`horizontal`?`w-max`:void 0,children:e})})}function Be(e,t,n){return`linear-gradient(${e===`vertical`?`to bottom`:`to right`}, ${n.start?`transparent`:`#000`}, #000 ${t}px, #000 calc(100% - ${t}px), ${n.end?`transparent`:`#000`})`}var Ve=`Radio`,[He,Ue]=u(Ve),[We,Ge]=He(Ve);function Ke(e){let{__scopeRadio:t,checked:n=!1,children:r,disabled:i,form:a,name:o,onCheck:s,required:c,value:l=`on`,internal_do_not_use_render:u}=e,[d,f]=T.useState(null),[p,m]=T.useState(null),h={checked:n,disabled:i,required:c,name:o,form:a,value:l,control:d,setControl:f,hasConsumerStoppedPropagationRef:T.useRef(!1),isFormControl:d?!!a||!!d.closest(`form`):!0,bubbleInput:p,setBubbleInput:m,onCheck:()=>s?.()};return(0,E.jsx)(We,{scope:t,...h,children:et(u)?u(h):r})}var qe=`RadioTrigger`,Je=T.forwardRef(({__scopeRadio:e,onClick:t,...n},r)=>{let{checked:i,disabled:c,value:l,setControl:u,onCheck:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Ge(qe,e),h=a(r,u);return(0,E.jsx)(s.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":tt(i),"data-disabled":c?``:void 0,disabled:c,value:l,...n,ref:h,onClick:o(t,e=>{i||d(),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});Je.displayName=qe;var Ye=T.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i,required:a,disabled:o,value:s,onCheck:c,form:l,...u}=e;return(0,E.jsx)(Ke,{__scopeRadio:n,checked:i,disabled:o,required:a,onCheck:c,name:r,form:l,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Je,{...u,ref:t,__scopeRadio:n}),e&&(0,E.jsx)($e,{__scopeRadio:n})]})})});Ye.displayName=Ve;var Xe=`RadioIndicator`,Ze=T.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Ge(Xe,n);return(0,E.jsx)(m,{present:r||a.checked,children:(0,E.jsx)(s.span,{"data-state":tt(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});Ze.displayName=Xe;var Qe=`RadioBubbleInput`,$e=T.forwardRef(({__scopeRadio:e,...t},n)=>{let{control:r,checked:i,required:o,disabled:c,name:l,value:u,form:f,bubbleInput:p,setBubbleInput:m,hasConsumerStoppedPropagationRef:h}=Ge(Qe,e),g=a(n,m),_=je(i),v=d(r);T.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!h.current;if(_!==i&&n){let t=new Event(`click`,{bubbles:r});n.call(e,i),e.dispatchEvent(t)}},[p,_,i,h]);let y=T.useRef(i);return(0,E.jsx)(s.input,{type:`radio`,"aria-hidden":!0,defaultChecked:y.current,required:o,disabled:c,name:l,value:u,form:f,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});$e.displayName=Qe;function et(e){return typeof e==`function`}function tt(e){return e?`checked`:`unchecked`}var nt=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],rt=`RadioGroup`,[it,at]=u(rt,[S,Ue]),ot=S(),st=Ue(),[ct,lt]=it(rt),ut=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...m}=e,h=ot(n),g=Ae(u),[_,v]=p({prop:a,defaultProp:i??null,onChange:f,caller:rt});return(0,E.jsx)(ct,{scope:n,name:r,required:o,disabled:c,value:_,onValueChange:v,children:(0,E.jsx)(ee,{asChild:!0,...h,orientation:l,dir:g,loop:d,children:(0,E.jsx)(s.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":l,"data-disabled":c?``:void 0,dir:g,...m,ref:t})})})});ut.displayName=rt;var dt=`RadioGroupItem`,ft=`RadioGroupItemProvider`,pt=`RadioGroupItemTrigger`,mt=`RadioGroupItemBubbleInput`;function ht(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:a}=e,o=lt(ft,t),s=st(t),c=o.disabled||r;return(0,E.jsx)(Ke,{...s,checked:o.value===n,disabled:c,required:o.required,name:o.name,value:n,onCheck:()=>o.onValueChange(n),internal_do_not_use_render:a,children:i})}var gt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=ot(n),s=st(n),{checked:c,disabled:l}=Ge(pt,s.__scopeRadio),u=T.useRef(null),d=a(t,u),f=T.useRef(!1);return T.useEffect(()=>{let e=e=>{nt.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,E.jsx)(ve,{asChild:!0,...i,focusable:!l,active:c,children:(0,E.jsx)(Je,{...s,...r,ref:d,onKeyDown:o(r.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(r.onFocus,()=>{f.current&&u.current?.click()})})})});gt.displayName=pt;var _t=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,value:r,disabled:i,...a}=e;return(0,E.jsx)(ht,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(gt,{...a,ref:t,__scopeRadioGroup:n}),e&&(0,E.jsx)(vt,{__scopeRadioGroup:n})]})})});_t.displayName=dt;var vt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,E.jsx)($e,{...st(n),...r,ref:t})});vt.displayName=mt;var yt=`RadioGroupIndicator`,bt=T.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,E.jsx)(Ze,{...st(n),...r,ref:t})});bt.displayName=yt;function xt({value:e,onValueChange:t,name:n,disabled:r,orientation:i=`vertical`,required:a,className:o,style:s,children:c,"aria-label":l,"aria-labelledby":u}){let d=i===`horizontal`?`flex flex-row flex-wrap items-center gap-4`:`flex flex-col gap-2.5`;return(0,E.jsx)(ut,{value:e,onValueChange:e=>t(e),name:n,disabled:r,required:a,orientation:i,className:v(d,o),style:s,"aria-label":l,"aria-labelledby":u,"data-slot":`radio-group`,children:c})}function St({value:e,label:t,helperText:n,disabled:r,id:i,className:a,"aria-label":o}){let s=(0,T.useId)(),c=i??`radio-${s}`,l=n?`${c}-helper`:void 0,u=r?`var(--content-disabled)`:`var(--radio-checked-bg, var(--system-positive-strong))`,d=r?`var(--surface-overlay)`:`var(--radio-checked-dot, var(--aux-white))`,f=r?`var(--surface-overlay)`:`transparent`;return(0,E.jsxs)(`div`,{"data-slot":`radio`,className:v(`flex gap-2`,n?`items-start`:`items-center`,a),children:[(0,E.jsx)(_t,{id:c,value:e,disabled:r,"aria-label":t?void 0:o,"aria-describedby":l,className:v(`relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border transition-colors`,`border-[color:var(--radio-border)]`,`[--radio-border:var(--border-element)]`,`data-[state=checked]:border-transparent`,`disabled:[--radio-border:var(--content-disabled)]`,`disabled:cursor-not-allowed`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-offset-1`,`keyboard-focus:ring-[color-mix(in_srgb,var(--system-positive-strong)_30%,transparent)]`),style:{background:f},children:(0,E.jsx)(bt,{forceMount:!0,className:`flex h-full w-full items-center justify-center rounded-full data-[state=unchecked]:opacity-0`,style:{background:u},children:(0,E.jsx)(`span`,{"aria-hidden":!0,className:`block h-2 w-2 rounded-full`,style:{background:d}})})}),(t||n)&&(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[t?(0,E.jsx)(y,{as:`label`,variant:`body-medium-lighter`,htmlFor:c,className:v(r?`cursor-not-allowed`:`cursor-pointer`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-default)]`),children:t}):null,n?(0,E.jsx)(y,{as:`span`,variant:`body-small-default`,id:l,className:v(`leading-4`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-tertiary)]`),children:n}):null]})]})}function Ct(e,t,n){let r=e.find(e=>e.value===n);return!r||r.disabled||r.value===t?null:r.value}function wt(e,t,n){let r=e.length,i=(t+n+r)%r,a=0;for(;e[i]?.disabled&&a<r;)i=(i+n+r)%r,a++;return i}function Tt({items:e,value:t,onChange:n,ariaLabel:r,iconOnly:i=!1,showTooltips:a=!0,className:o}){let s=(0,T.useRef)(null),c=(0,T.useCallback)(r=>{let i=e.findIndex(e=>e.value===t),a=null;switch(r.key){case`ArrowRight`:case`ArrowDown`:a=wt(e,i,1);break;case`ArrowLeft`:case`ArrowUp`:a=wt(e,i===-1?0:i,-1);break;case`Home`:a=wt(e,e.length-1,1);break;case`End`:a=wt(e,0,-1);break;default:return}r.preventDefault();let o=e[a];!o||o.disabled||(o.value!==t&&n(o.value),(s.current?.querySelectorAll(`[role="radio"]`))?.[a]?.focus())},[e,t,n]),l=e.findIndex(e=>e.value===t),u=l===-1?e.findIndex(e=>!e.disabled):l,d=!i&&e.some(e=>e.sublabel!=null);return(0,E.jsx)(`div`,{ref:s,role:`radiogroup`,"aria-label":r,"data-slot":`segment-control`,onKeyDown:c,className:v(`inline-flex rounded-md bg-[var(--surface-active)] p-0.5`,!i&&`w-full`,o),children:e.map((r,o)=>{let s=r.value===t,c=!!r.disabled;return(0,E.jsxs)(h,{variant:`ghost`,role:`radio`,"aria-checked":s,"aria-label":i?r.label:void 0,tooltip:i&&a?r.label:void 0,disabled:c,tabIndex:o===u?0:-1,onClick:()=>{let i=Ct(e,t,r.value);i!==null&&n(i)},className:v(`min-w-[30px] cursor-pointer justify-center gap-1.5 rounded-[6px] border-0 text-body-medium-default`,d?`h-auto py-1.5`:`h-7`,i?`px-2 max-md:h-9 max-md:min-w-9 max-md:px-2`:`flex-1 px-3`,s?`bg-[var(--surface-overlay)] text-[var(--content-emphasised)] shadow-sm hover:bg-[var(--surface-overlay)]`:`bg-transparent text-[var(--content-tertiary)] hover:bg-transparent hover:text-[var(--content-emphasised)]`),children:[r.icon,!i&&(r.sublabel==null?r.label:(0,E.jsxs)(`span`,{className:`flex flex-col items-center gap-0.5`,children:[(0,E.jsx)(`span`,{children:r.label}),(0,E.jsx)(`span`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:r.sublabel})]}))]},r.value)})})}var Et=c(`-mb-px inline-flex items-center whitespace-nowrap border-b-2 border-transparent pb-2 text-body-medium-default transition-colors`,{variants:{status:{active:`border-[var(--primary-base)] text-[var(--content-strong)]`,completed:`text-[var(--content-default)]`,upcoming:`text-[var(--content-disabled)]`},navigable:{true:`cursor-pointer outline-none hover:text-[var(--content-strong)] keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,false:`cursor-default`}},defaultVariants:{status:`upcoming`,navigable:!1}});function Dt({steps:e,current:t,onStepSelect:n,disabled:r=!1,className:i,...a}){return(0,E.jsx)(`nav`,{"data-slot":`stepper`,className:v(`flex items-center gap-4 border-b border-[var(--border-base)]`,i),...a,children:e.map((e,i)=>{let a=i===t?`active`:i<t?`completed`:`upcoming`;return a===`completed`&&!r&&n?(0,E.jsx)(`button`,{type:`button`,"data-slot":`stepper-step`,onClick:()=>n?.(i),className:Et({status:a,navigable:!0}),children:e.label},e.id):(0,E.jsx)(`span`,{"data-slot":`stepper-step`,"aria-current":a===`active`?`step`:void 0,className:Et({status:a}),children:e.label},e.id)})})}function Ot(e){return Array.isArray(e)}function kt(e){return Ot(e)?[e[0],e[1]]:[e]}function At(e,t,n,r){return t?[e[0]??n,e[1]??r]:e[0]??n}function jt(e){return Ot(e)?`${e[0]} – ${e[1]}`:String(e)}function Mt({value:e,onValueChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,label:o,showValue:s=!1,formatValue:c,name:l,id:u,"aria-label":d,className:f}){let p=(0,T.useId)(),m=u??p,h=o?`${m}-label`:void 0,g=Ot(e),_=kt(e),y=e=>{t(At(e,g,n,r))},b=c?c(e):jt(e),x=v(`block h-4 w-4 rounded-full bg-[var(--aux-white)]`,`border-2 border-[var(--system-positive-strong)]`,`shadow-sm transition-colors`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,a?`cursor-not-allowed border-[var(--border-disabled)]`:`cursor-grab active:cursor-grabbing`);return(0,E.jsxs)(`div`,{"data-slot":`slider`,className:v(`flex flex-col gap-1.5`,f),children:[(o||s)&&(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[o?(0,E.jsx)(`span`,{id:h,className:v(`text-body-medium-default`,a?`text-[var(--content-disabled)]`:`text-[var(--content-default)]`),children:o}):(0,E.jsx)(`span`,{}),s?(0,E.jsx)(`span`,{className:v(`text-body-medium-lighter tabular-nums`,a?`text-[var(--content-disabled)]`:`text-[var(--content-secondary)]`),children:b}):null]}),(0,E.jsxs)(Fe,{id:m,name:l,value:_,onValueChange:y,min:n,max:r,step:i,disabled:a,"aria-label":o?void 0:d,"aria-labelledby":o?h:void 0,className:v(`relative flex w-full touch-none items-center select-none`,`h-5`,a&&`opacity-60`),children:[(0,E.jsx)(Me,{className:v(`relative h-1 w-full grow overflow-hidden rounded-full`,`bg-[var(--border-disabled)]`),children:(0,E.jsx)(Ne,{className:v(`absolute h-full rounded-full`,a?`bg-[var(--border-element)]`:`bg-[var(--system-positive-strong)]`)})}),(0,E.jsx)(Pe,{className:x}),g?(0,E.jsx)(Pe,{className:x}):null]})]})}var Nt=`ContextMenu`,[Pt,Ft]=u(Nt,[w]),It=w(),[Lt,Rt]=Pt(Nt),zt=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=T.useRef(!1);{let e=T.useRef(!1);T.useEffect(()=>{i===!0&&!s.current&&!e.current&&(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[i])}let[c,l]=p({prop:i,defaultProp:!1,onChange:r,caller:Nt}),u=It(t);return(0,E.jsx)(Lt,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,E.jsx)(oe,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})};zt.displayName=Nt;var Bt=`ContextMenuTrigger`,Vt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Rt(Bt,n),c=It(n),l=T.useRef({x:0,y:0}),u=T.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),d=T.useRef(0),f=T.useCallback(()=>window.clearTimeout(d.current),[]),p=e=>{a.hasInteractedRef.current=!0,l.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return T.useEffect(()=>f,[f]),T.useEffect(()=>void(r&&f()),[r,f]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(se,{...c,virtualRef:u}),(0,E.jsx)(s.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:o(e.onContextMenu,e=>{f(),p(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:o(e.onPointerDown,_n(e=>{f(),a.open&&a.onOpenChange(!1),d.current=window.setTimeout(()=>p(e),700)})),onPointerMove:r?e.onPointerMove:o(e.onPointerMove,_n(f)),onPointerCancel:r?e.onPointerCancel:o(e.onPointerCancel,_n(f)),onPointerUp:r?e.onPointerUp:o(e.onPointerUp,_n(f))})]})});Vt.displayName=Bt;var Ht=`ContextMenuPortal`,Ut=e=>{let{__scopeContextMenu:t,...n}=e,r=It(t);return(0,E.jsx)(ie,{...r,...n})};Ut.displayName=Ht;var Wt=`ContextMenuContent`,Gt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Rt(Wt,n),a=It(n),o=T.useRef(!1);return(0,E.jsx)(me,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Gt.displayName=Wt;var Kt=`ContextMenuGroup`,qt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ne,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`ContextMenuLabel`,Yt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(re,{...i,...r,ref:t})});Yt.displayName=Jt;var Xt=`ContextMenuItem`,Zt=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ce,{...i,...r,ref:t})});Zt.displayName=Xt;var Qt=`ContextMenuCheckboxItem`,$t=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(de,{...i,...r,ref:t})});$t.displayName=Qt;var en=`ContextMenuRadioGroup`,tn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(fe,{...i,...r,ref:t})});tn.displayName=en;var nn=`ContextMenuRadioItem`,rn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(le,{...i,...r,ref:t})});rn.displayName=nn;var an=`ContextMenuItemIndicator`,on=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(he,{...i,...r,ref:t})});on.displayName=an;var sn=`ContextMenuSeparator`,cn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ae,{...i,...r,ref:t})});cn.displayName=sn;var ln=`ContextMenuArrow`,un=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(C,{...i,...r,ref:t})});un.displayName=ln;var dn=`ContextMenuSub`,fn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=It(t),[s,c]=p({prop:i,defaultProp:a??!1,onChange:r,caller:dn});return(0,E.jsx)(te,{...o,open:s,onOpenChange:c,children:n})};fn.displayName=dn;var pn=`ContextMenuSubTrigger`,mn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ye,{...i,...r,ref:t})});mn.displayName=pn;var hn=`ContextMenuSubContent`,gn=T.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=It(n);return(0,E.jsx)(ge,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});gn.displayName=hn;function _n(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var vn=zt,yn=Vt,bn=Ut,xn=Gt,Sn=Yt,Cn=Zt,wn=$t,Tn=tn,En=rn,Dn=on,On=cn,kn=fn,An=mn,jn=gn,Mn=vn;function Nn({asChild:e=!0,...t}){return(0,E.jsx)(yn,{"data-slot":`context-menu-trigger`,asChild:e,...t})}function Pn({className:e,collisionPadding:t=8,ref:n,...r}){let i=l();return(0,E.jsx)(bn,{container:i??void 0,children:(0,E.jsx)(xn,{ref:n,"data-slot":`context-menu-content`,collisionPadding:t,className:v(ue,e),...r})})}function Fn({className:e,children:t,leftIcon:n,shortcut:r,ref:i,...a}){return(0,E.jsxs)(Cn,{ref:i,"data-slot":`context-menu-item`,className:v(pe,e),...a,children:[n?(0,E.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function In({className:e,children:t,checked:n,shortcut:r,ref:i,...a}){return(0,E.jsxs)(wn,{ref:i,checked:n,"data-slot":`context-menu-checkbox-item`,className:v(pe,`pl-7`,e),...a,children:[(0,E.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,E.jsx)(Dn,{children:(0,E.jsx)(b,{className:`h-3.5 w-3.5 text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function Ln({ref:e,...t}){return(0,E.jsx)(Tn,{ref:e,"data-slot":`context-menu-radio-group`,...t})}function Rn({className:e,children:t,shortcut:n,ref:r,...i}){return(0,E.jsxs)(En,{ref:r,"data-slot":`context-menu-radio-item`,className:v(pe,`pl-7`,e),...i,children:[(0,E.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,E.jsx)(Dn,{children:(0,E.jsx)(_e,{className:`h-2 w-2 fill-current text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n?(0,E.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:n}):null]})}function zn({className:e,ref:t,...n}){return(0,E.jsx)(On,{ref:t,"data-slot":`context-menu-separator`,className:v(`my-1 h-px bg-[var(--border-base)]`,e),...n})}function Bn({className:e,ref:t,...n}){return(0,E.jsx)(Sn,{ref:t,"data-slot":`context-menu-label`,className:v(`px-2 py-1.5 text-body-small-default uppercase tracking-wide`,`text-[var(--content-tertiary)]`,e),...n})}var Vn=kn;function Hn({className:e,children:t,leftIcon:n,ref:r,...i}){return(0,E.jsxs)(An,{ref:r,"data-slot":`context-menu-sub-trigger`,className:v(pe,`data-[state=open]:bg-[var(--surface-hover)]`,`data-[state=open]:text-[var(--content-emphasised)]`,e),...i,children:[n?(0,E.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,E.jsx)(`span`,{className:`flex-1 truncate`,children:t}),(0,E.jsx)(x,{className:`ml-auto h-3.5 w-3.5 text-[var(--content-tertiary)]`,"aria-hidden":!0})]})}function Un({className:e,ref:t,...n}){let r=l();return(0,E.jsx)(bn,{container:r??void 0,children:(0,E.jsx)(jn,{ref:t,"data-slot":`context-menu-sub-content`,className:v(ue,e),...n})})}var Wn={Root:Mn,Trigger:Nn,Content:Pn,Item:Fn,CheckboxItem:In,RadioGroup:Ln,RadioItem:Rn,Separator:zn,Label:Bn,Sub:Vn,SubTrigger:Hn,SubContent:Un};function Gn(){}function Kn(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function qn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Jn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Zn(e,t){return((t||Xn).jsx?Yn:Jn).test(e)}var Qn=/[ \t\n\f\r]/g;function $n(e){return typeof e==`object`?e.type===`text`?er(e.value):!1:er(e)}function er(e){return e.replace(Qn,``)===``}var tr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};tr.prototype.normal={},tr.prototype.property={},tr.prototype.space=void 0;function nr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tr(n,r,t)}function rr(e){return e.toLowerCase()}var ir=class{constructor(e,t){this.attribute=t,this.property=e}};ir.prototype.attribute=``,ir.prototype.booleanish=!1,ir.prototype.boolean=!1,ir.prototype.commaOrSpaceSeparated=!1,ir.prototype.commaSeparated=!1,ir.prototype.defined=!1,ir.prototype.mustUseProperty=!1,ir.prototype.number=!1,ir.prototype.overloadedBoolean=!1,ir.prototype.property=``,ir.prototype.spaceSeparated=!1,ir.prototype.space=void 0;var ar=t({boolean:()=>D,booleanish:()=>sr,commaOrSpaceSeparated:()=>dr,commaSeparated:()=>ur,number:()=>O,overloadedBoolean:()=>cr,spaceSeparated:()=>lr}),or=0,D=fr(),sr=fr(),cr=fr(),O=fr(),lr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.keys(ar),mr=class extends ir{constructor(e,t,n,r){let i=-1;if(super(e,t),hr(this,`space`,r),typeof n==`number`)for(;++i<pr.length;){let e=pr[i];hr(this,pr[i],(n&ar[e])===ar[e])}}};mr.prototype.defined=!0;function hr(e,t,n){n&&(e[t]=n)}function gr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new mr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[rr(r)]=r,n[rr(a.attribute)]=r}return new tr(t,n,e.space)}var _r=gr({properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:lr,ariaCurrent:null,ariaDescribedBy:lr,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:lr,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:lr,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lr,ariaLevel:O,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:lr,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:lr,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:sr,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function vr(e,t){return t in e?e[t]:t}function yr(e,t){return vr(e,t.toLowerCase())}var br=gr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ur,acceptCharset:lr,accessKey:lr,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alpha:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:lr,autoFocus:D,autoPlay:D,blocking:lr,capture:null,charSet:null,checked:D,cite:null,className:lr,closedBy:null,colorSpace:null,cols:O,colSpan:O,command:null,commandFor:null,content:null,contentEditable:sr,controls:D,controlsList:lr,coords:O|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:cr,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:lr,height:O,hidden:cr,high:O,href:null,hrefLang:null,htmlFor:lr,httpEquiv:lr,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:lr,itemRef:lr,itemScope:D,itemType:lr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,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:D,optimum:O,pattern:null,ping:lr,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:lr,required:D,reversed:D,rows:O,rowSpan:O,sandbox:lr,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootCustomElementRegistry:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shadowRootSerializable:D,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:sr,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lr,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:D,disablePictureInPicture:D,disableRemotePlayback:D,exportParts:ur,part:lr,prefix:null,property:null,results:O,security:null,unselectable:null},space:`html`,transform:yr}),xr=gr({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`,maskType:`mask-type`,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:dr,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:lr,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:vr}),Sr=gr({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()}}),Cr=gr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:yr}),wr=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Tr={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`},Er=/[A-Z]/g,Dr=/-[a-z]/g,Or=/^data[-\w.:]+$/i;function kr(e,t){let n=rr(t),r=t,i=ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Or.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Dr,jr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Dr.test(e)){let n=e.replace(Er,Ar);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=mr}return new i(r,t)}function Ar(e){return`-`+e.toLowerCase()}function jr(e){return e.charAt(1).toUpperCase()}var Mr=nr([_r,br,Sr,Cr,wr],`html`),Nr=nr([_r,xr,Sr,Cr,wr],`svg`);function Pr(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Fr(e){return e.join(` `).trim()}var Ir=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
2
2
  `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),ee(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function ee(){S(i)}function te(e){var t;for(e||=[];t=C();)t!==!1&&e.push(t);return e}function C(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function w(){var e=y(),t=S(a);if(t){if(C(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ne(){var e=[];te(e);for(var t;t=w();)t!==!1&&(e.push(t),te(e));return e}return ee(),ne()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Lr=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Ir());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Rr=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),zr=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Lr()),r=Rr();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Br=Hr(`end`),Vr=Hr(`start`);function Hr(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ur(e){let t=Vr(e),n=Br(e);if(t&&n)return{start:t,end:n}}function Wr(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Kr(e.position):`start`in e||`end`in e?Kr(e):`line`in e||`column`in e?Gr(e):``}function Gr(e){return qr(e&&e.line)+`:`+qr(e&&e.column)}function Kr(e){return Gr(e&&e.start)+`-`+Gr(e&&e.end)}function qr(e){return e&&typeof e==`number`?e:1}var Jr=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Wr(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Jr.prototype.file=``,Jr.prototype.name=``,Jr.prototype.reason=``,Jr.prototype.message=``,Jr.prototype.stack=``,Jr.prototype.column=void 0,Jr.prototype.line=void 0,Jr.prototype.ancestors=void 0,Jr.prototype.cause=void 0,Jr.prototype.fatal=void 0,Jr.prototype.place=void 0,Jr.prototype.ruleId=void 0,Jr.prototype.source=void 0;var Yr=e(zr(),1),Xr={}.hasOwnProperty,Zr=new Map,Qr=/[A-Z]/g,$r=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),ei=new Set([`td`,`th`]),ti=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function ni(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=pi(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=fi(n,t.jsx,t.jsxs)}let 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`?Nr:Mr,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ri(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ri(e,t,n){if(t.type===`element`)return ii(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return ai(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return si(e,t,n);if(t.type===`mdxjsEsm`)return oi(e,t);if(t.type===`root`)return ci(e,t,n);if(t.type===`text`)return li(e,t)}function ii(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Nr,e.schema=i),e.ancestors.push(t);let a=yi(e,t.tagName,!1),o=mi(e,t),s=gi(e,t);return $r.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!$n(e):!0})),ui(e,o,a,t),di(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ai(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}bi(e,t.position)}function oi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bi(e,t.position)}function si(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Nr,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:yi(e,t.name,!0),o=hi(e,t),s=gi(e,t);return ui(e,o,a,t),di(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ci(e,t,n){let r={};return di(r,gi(e,t)),e.create(t,e.Fragment,r,n)}function li(e,t){return t.value}function ui(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function di(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function fi(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function pi(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Vr(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function mi(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Xr.call(t.properties,i)){let a=_i(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&ei.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function hi(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else bi(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else bi(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function gi(e,t){let n=[],r=-1,i=e.passKeys?new Map:Zr;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=ri(e,a,o);s!==void 0&&n.push(s)}return n}function _i(e,t,n){let r=kr(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qn(n):Fr(n)),r.property===`style`){let t=typeof n==`object`?n:vi(e,String(n));return e.stylePropertyNameCase===`css`&&(t=xi(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Tr[r.property]||r.property:r.attribute,n]}}function vi(e,t){try{return(0,Yr.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Jr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=ti+`#cannot-parse-style-attribute`,r}}function yi(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Zn(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Zn(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Xr.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);bi(e)}function bi(e,t){let n=new Jr("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=ti+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function xi(e){let t={},n;for(n in e)Xr.call(e,n)&&(t[Si(n)]=e[n]);return t}function Si(e){let t=e.replace(Qr,Ci);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Ci(e){return`-`+e.toLowerCase()}var wi={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`]},Ti={};function Ei(e,t){let n=t||Ti;return Di(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function Di(e,t,n){if(ki(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 Oi(e.children,t,n)}return Array.isArray(e)?Oi(e,t,n):``}function Oi(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Di(e[i],t,n);return r.join(``)}function ki(e){return!!(e&&typeof e==`object`)}var Ai=document.createElement(`i`);function ji(e){let t=`&`+e+`;`;Ai.innerHTML=t;let n=Ai.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function Mi(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ni(e,t){return e.length>0?(Mi(e,e.length,0,t),e):t}var Pi={}.hasOwnProperty;function Fi(e){let t={},n=-1;for(;++n<e.length;)Ii(t,e[n]);return t}function Ii(e,t){let n;for(n in t){let r=(Pi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Pi.call(r,a)||(r[a]=[]);let e=i[a];Li(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Li(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Mi(e,0,0,r)}function Ri(e,t){let 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 zi(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Bi=Zi(/[A-Za-z]/),Vi=Zi(/[\dA-Za-z]/),Hi=Zi(/[#-'*+\--9=?A-Z^-~]/);function Ui(e){return e!==null&&(e<32||e===127)}var Wi=Zi(/\d/),Gi=Zi(/[\dA-Fa-f]/),Ki=Zi(/[!-/:-@[-`{-~]/);function k(e){return e!==null&&e<-2}function qi(e){return e!==null&&(e<0||e===32)}function Ji(e){return e===-2||e===-1||e===32}var Yi=Zi(/\p{P}|\p{S}/u),Xi=Zi(/\s/);function Zi(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Qi(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Vi(e.charCodeAt(n+1))&&Vi(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function $i(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Ji(r)?(e.enter(n),s(r)):t(r)}function s(r){return Ji(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var ea={tokenize:ta};function ta(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$i(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return k(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var na={tokenize:ia},ra={tokenize:aa};function ia(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Mi(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ra,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(ra,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return k(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Mi(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function aa(e,t,n){return $i(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function oa(e){if(e===null||qi(e)||Xi(e))return 1;if(Yi(e))return 2}function sa(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var ca={name:`attention`,resolveAll:la,tokenize:ua};function la(e,t){let n=-1,r,i,a,o,s,c,l,u;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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};da(d,-c),da(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ni(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Ni(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Ni(l,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ni(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Ni(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Mi(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function ua(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=oa(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=oa(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function da(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var fa={name:`autolink`,tokenize:pa};function pa(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Bi(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Vi(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Vi(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Ui(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Hi(t)?(e.consume(t),l):n(t)}function u(e){return Vi(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Vi(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ma={partial:!0,tokenize:ha};function ha(e,t,n){return r;function r(t){return Ji(t)?$i(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||k(e)?t(e):n(e)}}var ga={continuation:{tokenize:va},exit:ya,name:`blockQuote`,tokenize:_a};function _a(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Ji(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function va(e,t,n){let r=this;return i;function i(t){return Ji(t)?$i(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ga,t,n)(r)}}function ya(e){e.exit(`blockQuote`)}var ba={name:`characterEscape`,tokenize:xa};function xa(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ki(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Sa={name:`characterReference`,tokenize:Ca};function Ca(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Vi,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Gi,u):(e.enter(`characterReferenceValue`),a=7,o=Wi,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Vi&&!ji(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var wa={partial:!0,tokenize:Da},Ta={concrete:!0,name:`codeFenced`,tokenize:Ea};function Ea(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Ji(t)?$i(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||k(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(wa,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||k(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Ji(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),$i(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||k(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||k(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Ji(t)?$i(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||k(t)?e.check(wa,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||k(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Ji(t)?$i(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Ji(t)?$i(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||k(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Da(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Oa={name:`codeIndented`,tokenize:Aa},ka={partial:!0,tokenize:ja};function Aa(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),$i(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):k(t)?e.attempt(ka,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||k(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function ja(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):$i(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):k(e)?i(e):n(e)}}var Ma={name:`codeText`,previous:Pa,resolve:Na,tokenize:Fa};function Na(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 Pa(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Fa(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||k(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Ia=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&La(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),La(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),La(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);La(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);La(this.left,t.reverse())}}};function La(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 Ra(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Ia(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,za(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Mi(e,0,1/0,u.slice(0)),!l}function za(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Ba={resolve:Ha,tokenize:Ua},Va={partial:!0,tokenize:Wa};function Ha(e){return Ra(e),e}function Ua(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):k(t)?e.check(Va,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Wa(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$i(e,a,`linePrefix`)}function a(i){if(i===null||k(i))return n(i);let 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(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Ga(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Ui(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||k(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||qi(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Ui(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Ka(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):k(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||k(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Ji(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function qa(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$i(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||k(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ja(e,t){let n;return r;function r(i){return k(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Ji(i)?$i(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ya={name:`definition`,tokenize:Za},Xa={partial:!0,tokenize:Qa};function Za(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Ka.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=zi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return qi(t)?Ja(e,l)(t):l(t)}function l(t){return Ga(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Xa,d,d)(t)}function d(t){return Ji(t)?$i(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||k(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Qa(e,t,n){return r;function r(t){return qi(t)?Ja(e,i)(t):n(t)}function i(t){return qa(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Ji(t)?$i(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||k(e)?t(e):n(e)}}var $a={name:`hardBreakEscape`,tokenize:eo};function eo(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return k(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var to={name:`headingAtx`,resolve:no,tokenize:ro};function no(e,t){let n=e.length-2,r=3,i,a;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},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Mi(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function ro(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||qi(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||k(n)?(e.exit(`atxHeading`),t(n)):Ji(n)?$i(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||qi(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var io=`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`.split(`.`),ao=[`pre`,`script`,`style`,`textarea`],oo={concrete:!0,name:`htmlFlow`,resolveTo:lo,tokenize:uo},so={partial:!0,tokenize:po},co={partial:!0,tokenize:fo};function lo(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 uo(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:de):Bi(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Bi(a)?(e.consume(a),i=4,r.interrupt?t:de):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:de):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:re:m):n(i)}function h(t){return Bi(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||qi(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&ao.includes(l)?(i=1,r.interrupt?t(s):re(s)):io.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):re(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Vi(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:re):n(i)}function v(t){return Ji(t)?(e.consume(t),v):w(t)}function y(t){return t===47?(e.consume(t),w):t===58||t===95||Bi(t)?(e.consume(t),b):Ji(t)?(e.consume(t),y):w(t)}function b(t){return t===45||t===46||t===58||t===95||Vi(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Ji(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,ee):Ji(t)?(e.consume(t),S):te(t)}function ee(t){return t===c?(e.consume(t),c=null,C):t===null||k(t)?n(t):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||qi(t)?x(t):(e.consume(t),te)}function C(e){return e===47||e===62||Ji(e)?y(e):n(e)}function w(t){return t===62?(e.consume(t),ne):n(t)}function ne(t){return t===null||k(t)?re(t):Ji(t)?(e.consume(t),ne):n(t)}function re(t){return t===45&&i===2?(e.consume(t),se):t===60&&i===1?(e.consume(t),ce):t===62&&i===4?(e.consume(t),fe):t===63&&i===3?(e.consume(t),de):t===93&&i===5?(e.consume(t),ue):k(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(so,pe,ie)(t)):t===null||k(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(t){return e.check(co,ae,pe)(t)}function ae(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return t===null||k(t)?ie(t):(e.enter(`htmlFlowData`),re(t))}function se(t){return t===45?(e.consume(t),de):re(t)}function ce(t){return t===47?(e.consume(t),o=``,le):re(t)}function le(t){if(t===62){let n=o.toLowerCase();return ao.includes(n)?(e.consume(t),fe):re(t)}return Bi(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),le):re(t)}function ue(t){return t===93?(e.consume(t),de):re(t)}function de(t){return t===62?(e.consume(t),fe):t===45&&i===2?(e.consume(t),de):re(t)}function fe(t){return t===null||k(t)?(e.exit(`htmlFlowData`),pe(t)):(e.consume(t),fe)}function pe(n){return e.exit(`htmlFlow`),t(n)}}function fo(e,t,n){let r=this;return i;function i(t){return k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function po(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ma,t,n)}}var mo={name:`htmlText`,tokenize:ho};function ho(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Bi(t)?(e.consume(t),te):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Bi(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):k(t)?(o=d,ce(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?se(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):k(t)?(o=h,ce(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?se(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?se(t):k(t)?(o=v,ce(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):k(t)?(o=y,ce(t)):(e.consume(t),y)}function b(e){return e===62?se(e):y(e)}function x(t){return Bi(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Vi(t)?(e.consume(t),S):ee(t)}function ee(t){return k(t)?(o=ee,ce(t)):Ji(t)?(e.consume(t),ee):se(t)}function te(t){return t===45||Vi(t)?(e.consume(t),te):t===47||t===62||qi(t)?C(t):n(t)}function C(t){return t===47?(e.consume(t),se):t===58||t===95||Bi(t)?(e.consume(t),w):k(t)?(o=C,ce(t)):Ji(t)?(e.consume(t),C):se(t)}function w(t){return t===45||t===46||t===58||t===95||Vi(t)?(e.consume(t),w):ne(t)}function ne(t){return t===61?(e.consume(t),re):k(t)?(o=ne,ce(t)):Ji(t)?(e.consume(t),ne):C(t)}function re(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ie):k(t)?(o=re,ce(t)):Ji(t)?(e.consume(t),re):(e.consume(t),ae)}function ie(t){return t===i?(e.consume(t),i=void 0,oe):t===null?n(t):k(t)?(o=ie,ce(t)):(e.consume(t),ie)}function ae(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||qi(t)?C(t):(e.consume(t),ae)}function oe(e){return e===47||e===62||qi(e)?C(e):n(e)}function se(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ce(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),le}function le(t){return Ji(t)?$i(e,ue,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ue(t)}function ue(t){return e.enter(`htmlTextData`),o(t)}}var go={name:`labelEnd`,resolveAll:bo,resolveTo:xo,tokenize:So},_o={tokenize:Co},vo={tokenize:wo},yo={tokenize:To};function bo(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Mi(e,0,e.length,n),e}function xo(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Ni(s,e.slice(a+1,a+r+3)),s=Ni(s,[[`enter`,u,t]]),s=Ni(s,sa(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ni(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Ni(s,e.slice(o+1)),s=Ni(s,[[`exit`,c,t]]),Mi(e,a,e.length,s),e}function So(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(zi(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(_o,u,o?u:d)(t):t===91?e.attempt(vo,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(yo,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Co(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return qi(t)?Ja(e,a)(t):a(t)}function a(t){return t===41?u(t):Ga(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return qi(t)?Ja(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?qa(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return qi(t)?Ja(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function wo(e,t,n){let r=this;return i;function i(t){return Ka.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(zi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function To(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Eo={name:`labelStartImage`,resolveAll:go.resolveAll,tokenize:Do};function Do(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Oo={name:`labelStartLink`,resolveAll:go.resolveAll,tokenize:ko};function ko(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ao={name:`lineEnding`,tokenize:jo};function jo(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$i(e,t,`linePrefix`)}}var Mo={name:`thematicBreak`,tokenize:No};function No(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||k(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Ji(t)?$i(e,s,`whitespace`)(t):s(t))}}var Po={continuation:{tokenize:Ro},exit:Bo,name:`list`,tokenize:Lo},Fo={partial:!0,tokenize:Vo},Io={partial:!0,tokenize:zo};function Lo(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Wi(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Mo,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Wi(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ma,r.interrupt?n:u,e.attempt(Fo,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Ji(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ro(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ma,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$i(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ji(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Io,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,$i(e,e.attempt(Po,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function zo(e,t,n){let r=this;return $i(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Bo(e){e.exit(this.containerState.type)}function Vo(e,t,n){let r=this;return $i(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Ji(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ho={name:`setextUnderline`,resolveTo:Uo,tokenize:Wo};function Uo(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Wo(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Ji(t)?$i(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||k(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Go={tokenize:Ko};function Ko(e){let t=this,n=e.attempt(ma,r,e.attempt(this.parser.constructs.flowInitial,i,$i(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ba,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var qo={resolveAll:Zo()},Jo=Xo(`string`),Yo=Xo(`text`);function Xo(e){return{resolveAll:Zo(e===`text`?Qo:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Zo(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Qo(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var $o=t({attentionMarkers:()=>ss,contentInitial:()=>ts,disable:()=>cs,document:()=>es,flow:()=>rs,flowInitial:()=>ns,insideSpan:()=>os,string:()=>is,text:()=>as}),es={42:Po,43:Po,45:Po,48:Po,49:Po,50:Po,51:Po,52:Po,53:Po,54:Po,55:Po,56:Po,57:Po,62:ga},ts={91:Ya},ns={[-2]:Oa,[-1]:Oa,32:Oa},rs={35:to,42:Mo,45:[Ho,Mo],60:oo,61:Ho,95:Mo,96:Ta,126:Ta},is={38:Sa,92:ba},as={[-5]:Ao,[-4]:Ao,[-3]:Ao,33:Eo,38:Sa,42:ca,60:[fa,mo],91:Oo,92:[$a,ba],93:go,95:ca,96:Ma},os={null:[ca,qo]},ss={null:[42,95]},cs={null:[]};function ls(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:ee(x),check:ee(S),consume:v,enter:y,exit:b,interrupt:ee(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Ni(o,e),g(),o[o.length-1]===null?(te(t,0),l.events=sa(a,l.events,l),l.events):[]}function f(e,t){return ds(p(e),t)}function p(e){return us(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,w()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){k(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,w()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){te(e,t.from)}function S(e,t){t.restore()}function ee(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=C(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function te(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Mi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function C(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function us(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ds(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
3
3
  `;break;case-3:o=`\r
4
4
  `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function fs(e){let t={constructs:Fi([$o,...(e||{}).extensions||[]]),content:n(ea),defined:[],document:n(na),flow:n(Go),lazy:{},string:n(Jo),text:n(Yo)};return t;function n(e){return n;function n(n){return ls(t,e,n)}}}function ps(e){for(;!Ra(e););return e}var ms=/[\0\t\n\r]/g;function hs(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(ms.lastIndex=u,c=ms.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var gs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _s(e){return e.replace(gs,vs)}function vs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Ri(n.slice(t?2:1),t?16:10)}return ji(n)||e}var ys={}.hasOwnProperty;function bs(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),xs(n)(ps(fs(n).document().write(hs()(e,t,!0))))}function xs(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ae),autolinkProtocol:C,autolinkEmail:C,atxHeading:a(Ee),blockQuote:a(xe),characterEscape:C,characterReference:C,codeFenced:a(Se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Se,o),codeText:a(Ce,o),codeTextData:C,data:C,codeFlowValue:C,definition:a(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Te),hardBreakEscape:a(De),hardBreakTrailing:a(De),htmlFlow:a(Oe,o),htmlFlowData:C,htmlText:a(Oe,o),htmlTextData:C,image:a(ke),label:o,link:a(Ae),listItem:a(Me),listItemValue:f,listOrdered:a(je,d),listUnordered:a(je),paragraph:a(Ne),reference:me,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ee),strong:a(Pe),thematicBreak:a(T)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:be,autolinkProtocol:ye,blockQuote:c(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:_e,characterReference:ve,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:w,codeIndented:c(_),codeText:c(oe),codeTextData:w,data:w,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(re),hardBreakTrailing:c(re),htmlFlow:c(ie),htmlFlowData:w,htmlText:c(ae),htmlTextData:w,image:c(ce),label:ue,labelText:le,lineEnding:ne,link:c(se),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:he,resourceDestinationString:de,resourceTitleString:fe,resource:pe,setextHeading:c(te),setextHeadingLineSequence:ee,setextHeadingText:S,strong:c(),thematicBreak:c()}};Cs(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];ys.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ts).call(a,void 0,e[0])}for(r.position={start:Ss(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ss(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ss(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ts).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Wr({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Ss(e.end)}function u(){return Ei(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=zi(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function ee(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function C(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Fe(),n.position={start:Ss(e.start),end:void 0},t.push(n)),this.stack.push(n)}function w(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ss(e.end)}function ne(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Ss(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(C.call(this,e),w.call(this,e))}function re(){this.data.atHardBreak=!0}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function se(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ce(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function le(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=_s(t),n.identifier=zi(t).toLowerCase()}function ue(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function de(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function pe(){this.data.inReference=void 0}function me(){this.data.referenceType=`collapsed`}function he(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=zi(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ge(e){this.data.characterReferenceType=e.type}function _e(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Ri(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=ji(t);let i=this.stack[this.stack.length-1];i.value+=r}function ve(e){let t=this.stack.pop();t.position.end=Ss(e.end)}function ye(e){w.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function be(e){w.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function xe(){return{type:`blockquote`,children:[]}}function Se(){return{type:`code`,lang:null,meta:null,value:``}}function Ce(){return{type:`inlineCode`,value:``}}function we(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function Te(){return{type:`emphasis`,children:[]}}function Ee(){return{type:`heading`,depth:0,children:[]}}function De(){return{type:`break`}}function Oe(){return{type:`html`,value:``}}function ke(){return{type:`image`,title:null,url:``,alt:null}}function Ae(){return{type:`link`,title:null,url:``,children:[]}}function je(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Me(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ne(){return{type:`paragraph`,children:[]}}function Pe(){return{type:`strong`,children:[]}}function Fe(){return{type:`text`,value:``}}function T(){return{type:`thematicBreak`}}}function Ss(e){return{line:e.line,column:e.column,offset:e.offset}}function Cs(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Cs(e,r):ws(e,r)}}function ws(e,t){let n;for(n in t)if(ys.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Ts(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Wr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wr({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Wr({start:t.start,end:t.end})+`) is still open`)}function Es(e){let t=this;t.parser=n;function n(n){return bs(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Ds(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Os(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
@@ -288,6 +288,6 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
288
288
  `,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(B_(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
289
289
  `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
290
290
  `),i&&(c+=a.move(i+`
291
- `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var Wy={tokenize:Ky,concrete:!0,name:`mathFlow`},Gy={tokenize:qy,partial:!0};function Ky(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),$i(e,l,`whitespace`)(t))}function l(t){return t===null||k(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||k(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(Gy,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?$i(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):k(t)?e.attempt(Gy,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||k(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return $i(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),$i(e,c,`whitespace`)(t))}function c(r){return r===null||k(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function qy(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Jy(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Yy,previous:Xy,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||k(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Yy(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===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,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=`mathTextData`,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 Xy(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Zy(e){return{flow:{36:Wy},text:{36:Jy(e)}}}var Qy={};function $y(e){let t=this,n=e||Qy,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Zy(n)),a.push(Hy()),o.push(Uy(n))}var eb=400,tb=v(`mx-0 mt-0 mb-3 flex w-full items-center gap-3 rounded-md bg-[var(--surface-sunken)] px-3 py-2.5 text-body-small-lighter text-[var(--content-secondary)] last:mb-0`),nb=`w-0.5 shrink-0 self-stretch rounded-full bg-[var(--content-tertiary)]`,rb=`min-w-0 flex-1 [&_p]:mb-0`;function ib({visible:e,onClick:t,copied:n}){return(0,E.jsx)(`button`,{type:`button`,onClick:t,title:n?`Copied!`:`Copy`,className:v(`flex h-6 w-6 cursor-pointer items-center justify-center rounded-md bg-stone-200/80 text-[var(--content-tertiary)] transition-[opacity] duration-150 ease-out hover:bg-stone-300 hover:text-[var(--content-secondary)] [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100 dark:bg-moss-600/80 dark:hover:bg-moss-500 dark:hover:text-stone-200`,e?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`),children:(0,E.jsxs)(`div`,{className:`relative h-3.5 w-3.5`,children:[(0,E.jsx)(b,{className:v(`absolute inset-0 h-3.5 w-3.5 text-[var(--system-positive-strong)] transition-opacity duration-150 ease-out`,n?`opacity-100`:`opacity-0`)}),(0,E.jsx)(Se,{className:v(`absolute inset-0 h-3.5 w-3.5 transition-opacity duration-150 ease-out`,n?`opacity-0`:`opacity-100`)})]})})}function ab({children:e}){let[t,n]=(0,T.useState)(!1),[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(!1),s=(0,T.useRef)(null),c=(0,T.useRef)(null);(0,T.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let l=T.Children.toArray(e).find(e=>(0,T.isValidElement)(e)&&e.props.className?.startsWith(`language-`)),u=(0,T.isValidElement)(l)?l.props.className?.replace(`language-`,``):void 0,d=(0,T.useCallback)(()=>{let e=c.current?.textContent??``;navigator.clipboard.writeText(e).then(()=>{n(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{n(!1),s.current=null},1500)}).catch(()=>{})},[]),f=r||a;return(0,E.jsxs)(`div`,{className:`group/code relative mb-2 overflow-hidden rounded-md bg-stone-100 last:mb-0 dark:bg-moss-800`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||o(!1)},children:[u&&(0,E.jsxs)(`div`,{className:`flex items-center justify-between px-3 pt-2`,children:[(0,E.jsx)(`span`,{className:`font-mono text-xs font-medium uppercase text-[var(--content-tertiary)]`,children:u}),(0,E.jsx)(ib,{visible:f,onClick:d,copied:t})]}),(0,E.jsx)(`pre`,{ref:c,className:`overflow-auto p-3`,style:{maxHeight:eb},children:e}),!u&&(0,E.jsx)(`div`,{className:`absolute right-2 top-2`,children:(0,E.jsx)(ib,{visible:f,onClick:d,copied:t})})]})}function ob({href:e,children:t}){return(0,E.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-forest-600 underline hover:text-forest-700 dark:text-forest-400 dark:hover:text-forest-300`,children:t})}var sb=/\p{Emoji_Presentation}/u,cb=/\p{Extended_Pictographic}/u,lb=`️`,ub=`︎`;function db(e){return e.includes(lb)?!0:e.includes(ub)?!1:sb.test(e)}var fb=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function pb(e){if(!cb.test(e)&&!e.includes(lb)||!fb)return e;let t=[],n=``,r=!1,i=0,a=()=>{n&&=(t.push(r?(0,E.jsx)(`span`,{style:{fontStyle:`normal`},children:n},i++):n),``)};for(let{segment:t}of fb.segment(e)){let e=db(t);n&&e!==r&&a(),r=e,n+=t}return a(),t.length===1&&typeof t[0]==`string`?t[0]:t}function mb(e){return typeof e==`string`?pb(e):T.Children.map(e,e=>typeof e==`string`?pb(e):e)}function hb(e,t){return{p:({children:e})=>(0,E.jsx)(`p`,{className:`mb-6 last:mb-0`,children:e}),h1:({children:e})=>(0,E.jsx)(`h1`,{className:`mb-2 mt-3 text-title-medium !font-bold first:mt-0`,children:e}),h2:({children:e})=>(0,E.jsx)(`h2`,{className:`mb-2 mt-3 text-title-small !font-bold first:mt-0`,children:e}),h3:({children:e})=>(0,E.jsx)(`h3`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),ul:({children:e})=>(0,E.jsx)(`ul`,{className:`mb-2 list-disc pl-5 last:mb-0`,children:e}),ol:({children:e,start:t})=>(0,E.jsx)(`ol`,{start:t,className:`mb-2 list-decimal pl-5 last:mb-0`,children:e}),h4:({children:e})=>(0,E.jsx)(`h4`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),h5:({children:e})=>(0,E.jsx)(`h5`,{className:`mb-1 mt-2 text-body-small-lighter !font-bold first:mt-0`,children:e}),h6:({children:e})=>(0,E.jsx)(`h6`,{className:`mb-1 mt-2 text-body-small-lighter !font-bold text-[var(--content-secondary)] first:mt-0`,children:e}),li:({children:e,value:t})=>(0,E.jsx)(`li`,{value:t,className:`mb-0.5`,children:e}),a:({href:t,children:n})=>(0,E.jsx)(e,{href:t,children:n}),code:({className:e,children:t,...n})=>e?.startsWith(`language-`)?(0,E.jsx)(`code`,{className:v(`block w-max min-w-full font-mono text-body-small-lighter`,e),...n,children:t}):(0,E.jsx)(`code`,{className:`rounded bg-stone-100 px-1 py-0.5 font-mono text-body-small-lighter dark:bg-moss-800`,children:t}),pre:({children:e})=>(0,E.jsx)(ab,{children:e}),em:({children:e})=>(0,E.jsx)(`em`,{children:mb(e)}),blockquote:({children:e})=>(0,E.jsxs)(`blockquote`,{className:tb,children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:nb}),(0,E.jsx)(`div`,{className:rb,children:e})]}),table:({children:e})=>(0,E.jsx)(`div`,{className:`mb-2 overflow-x-auto last:mb-0`,children:(0,E.jsx)(`table`,{className:`min-w-full border-collapse text-body-small-lighter`,children:e})}),thead:({children:e})=>(0,E.jsx)(`thead`,{className:`bg-[var(--surface-sunken)]`,children:e}),th:({children:e})=>(0,E.jsx)(`th`,{className:`border border-stone-200 px-2 py-1 text-left font-semibold [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone dark:border-moss-600`,children:e}),td:({children:e})=>(0,E.jsx)(`td`,{className:`border border-stone-200 px-2 py-1 [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone dark:border-moss-600`,children:e}),hr:()=>(0,E.jsx)(`hr`,{className:`my-3 border-[var(--border-subtle)]`}),img:({src:e,alt:n})=>{let r=typeof e==`string`?e:``,i=typeof n==`string`?n:``;return!r||r.startsWith(`/`)||r.startsWith(`data:`)||r.startsWith(`blob:`)||r.startsWith(`.`)?(0,E.jsx)(`img`,{src:r,alt:i,className:`my-1 max-w-full rounded`}):t?(0,E.jsx)(t,{src:r,alt:i}):(0,E.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-stone-100 px-1.5 py-0.5 text-body-small-default text-stone-500 dark:bg-moss-800 dark:text-stone-400`,children:[`🔗 External image not rendered (`,i||r,`)`]})}}}var gb=/\$(\d[\d,]*(?:\.\d+)?(?:bn|tn|trn|[KMBT])?\+?)(?=$|[\s).,;:!?%"'’\]}/–—-]|&)/gi,_b=hl().use(Es).use(Vy);function vb(e){let t=_b.parse(e),n=[],r=e=>{if(e.type===`text`){let t=e.position?.start.offset,r=e.position?.end.offset;typeof t==`number`&&typeof r==`number`&&n.push([t,r]);return}if(Array.isArray(e.children))for(let t of e.children)r(t)};return r(t),n}function yb(e,t,n){let r=``,i=0;for(let[a,o]of t)a<i||(r+=e.slice(i,a),r+=n(e.slice(a,o),a),i=o);return r+=e.slice(i),r}function bb(e){if(!/\$\d/.test(e))return e;let t=vb(e);return t.length===0?e:yb(e,t,(t,n)=>t.replace(gb,(r,i,a)=>{let o=a>0?t[a-1]:n>0?e[n-1]:``;return o===`$`||o===`\\`?r:`\\$${i}`}))}function xb(e){if(!e.includes(`
292
- `))return e;let t=vb(e);return t.length===0?e:yb(e,t,e=>e.replace(/\n/g,`
293
- `))}var Sb=/^\s{0,3}(\d{1,9})[.)]/;function Cb(){return(e,t)=>{let n=String(t),r=e=>{if(e.type===`list`&&e.ordered&&Array.isArray(e.children)){let t=e.start??1;for(let r of e.children){let e=r,i=e.position?.start.offset,a=t;if(typeof i==`number`){let e=Sb.exec(n.slice(i,i+16));e&&(a=Number(e[1]))}a!==t&&(e.data??={},e.data.hProperties??={},e.data.hProperties.value=a),t=a+1}}if(Array.isArray(e.children))for(let t of e.children)r(t)};r(e)}}function wb({content:e,className:t,hardLineBreaks:n,linkComponent:r,imageComponent:i,urlTransform:a,extraRehypePlugins:o,extraComponents:s}){let c=(0,T.useMemo)(()=>{let t=bb(e);return n?xb(t):t},[e,n]),l=r??ob,u=(0,T.useMemo)(()=>({...hb(l,i),...s}),[l,i,s]),d=(0,T.useMemo)(()=>[Vg,...o??[]],[o]);return(0,E.jsx)(`div`,{"data-slot":`markdown-message`,className:v(`text-chat text-[var(--content-default)]`,t),children:(0,E.jsx)(kl,{remarkPlugins:[Vy,$y,Cb],rehypePlugins:d,components:u,urlTransform:a,children:c})})}var Tb=(0,T.createContext)({collapsed:!1,contentCollapsed:!1,variant:`rail`});function Eb(){return(0,T.useContext)(Tb)}function Db(e){return e.variant===`rail`&&e.contentCollapsed}var Ob=[`flex flex-col`,`bg-[var(--surface-overlay)]`,`text-[color:var(--content-default)]`,`overflow-hidden`].join(` `),kb=`border border-[var(--border-base)]`,Ab=[kb,`w-[230px]`,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),jb=[kb,`w-[48px]`,`rounded-[12px]`,`pt-4 px-2 pb-2`].join(` `),Mb=[kb,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),Nb=[`w-full`,`rounded-none`,`p-4`].join(` `),Pb=150,Fb=`transition-[width,padding] duration-[150ms] ease-in-out`;function Ib(e,t,n){return e===`overlay`?Nb:v(t?jb:n?Mb:Ab,Fb)}function Lb({ariaLabel:e,collapsed:t=!1,variant:n=`rail`,width:r,onWidthChange:i,minWidth:a=220,maxWidth:o=400,className:s,children:c,ref:l,style:u,...d}){let f=n===`overlay`?!1:t,p=n===`rail`&&i!=null,m=p&&!f,[h,g]=(0,T.useState)(f);!f&&h&&g(!1),(0,T.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>g(!0),Pb);return()=>clearTimeout(e)},[f]);let _=(0,T.useRef)(null),y=(0,T.useCallback)(e=>{if(!i)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.closest(`[data-slot="side-menu"]`);t&&(_.current={nav:t,startX:e.clientX,startWidth:t.getBoundingClientRect().width},t.style.transition=`none`,document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`)},[i]),b=(0,T.useCallback)(e=>{let t=_.current;if(!t)return;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));t.nav.style.width=`${r}px`},[a,o]),x=(0,T.useCallback)(e=>{let t=_.current;if(!t)return;e.currentTarget.releasePointerCapture(e.pointerId),_.current=null,t.nav.style.transition=``,document.body.style.cursor=``,document.body.style.userSelect=``;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));i?.(r)},[i,a,o]);(0,T.useEffect)(()=>()=>{_.current&&(_.current=null,document.body.style.cursor=``,document.body.style.userSelect=``)},[]);let S=p&&!f&&r!=null?{...u,width:r}:u;return(0,E.jsx)(Tb,{value:{collapsed:f,contentCollapsed:h,variant:n},children:(0,E.jsxs)(`nav`,{ref:l,"data-slot":`side-menu`,role:`navigation`,"aria-label":e,className:v(Ob,m&&`relative`,Ib(n,f,p),s),style:S,...d,children:[c,m?(0,E.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 z-10 w-[6px] cursor-col-resize group/resize`,onPointerDown:y,onPointerMove:b,onPointerUp:x,onPointerCancel:x,children:(0,E.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-2 bottom-2 w-[2px] rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity group-hover/resize:opacity-100`})}):null]})})}function Rb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-header`,className:v(`flex flex-col gap-2`,e),...r,children:t})}function zb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-body`,className:v(`flex flex-1 flex-col gap-3 overflow-y-auto overflow-x-hidden`,e),...r,children:t})}function Bb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-footer`,className:v(`mt-auto flex flex-col gap-2 pt-2`,e),...r,children:t})}function Vb({className:e,ref:t,...n}){return(0,E.jsx)(`hr`,{ref:t,"data-slot":`side-menu-separator`,className:v(`my-1 h-px w-full border-0 bg-[var(--border-base)]`,e),...n})}function Hb({title:e,actions:t,className:n,children:r,ref:i,...a}){let o=Db(Eb());return(0,E.jsxs)(`div`,{ref:i,"data-slot":`side-menu-section`,className:v(`flex flex-col gap-2`,n),...a,children:[!o&&(e||t)?(0,E.jsxs)(`div`,{className:`flex h-[30px] items-center justify-between px-[6px]`,children:[e?(0,E.jsx)(y,{variant:`body-medium-default`,as:`span`,className:`text-[color:var(--content-tertiary)]`,children:e}):(0,E.jsx)(`span`,{}),t?(0,E.jsx)(`div`,{className:`flex items-center gap-[4px]`,children:t}):null]}):null,r]})}function Ub({className:e,children:t,ref:n,...r}){return Db(Eb())?null:(0,E.jsx)(`ul`,{ref:n,"data-slot":`side-menu-sub-list`,className:v(`flex flex-col gap-[4px] list-none p-0 m-0`,e),...r,children:t})}function Wb({icon:e,indent:t,active:n,collapsed:r}){return t?(0,E.jsx)(`span`,{"aria-hidden":!0,className:`inline-block h-[14px] w-[14px] shrink-0`}):e?typeof e==`string`?(0,E.jsx)(`span`,{"aria-hidden":!0,className:v(`inline-flex h-[14px] w-[14px] shrink-0 items-center justify-center text-[14px] leading-none`,r?`mx-auto`:void 0),children:e}):(0,E.jsx)(e,{size:14,"aria-hidden":!0,className:v(`shrink-0`,n?`text-[color:var(--content-default)]`:`text-[color:var(--content-tertiary)]`,r?`mx-auto`:void 0)}):null}function Gb({children:e}){return(0,E.jsx)(`span`,{className:v(`inline-flex items-center justify-center`,`px-[4px] py-[2px] rounded-[4px]`,`bg-[var(--surface-base)]`,`text-label-small-default`,`text-[color:var(--content-tertiary)]`),children:e})}function Kb({icon:e,label:t,showCollapsedTooltip:n=!1,tooltip:r,badge:i,trailingIcon:a,trailingIconClassName:o,indent:s=!1,active:c=!1,emphasized:l=!1,size:u=`default`,onSelect:d,href:p,className:m,ref:h,...g}){let _=Db(Eb()),y=v(`group relative flex w-full items-center`,`rounded-[6px]`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,`cursor-pointer select-none`,`transition-colors`,`h-[30px] max-md:h-auto gap-[6px] p-[6px]`,_?`justify-center`:`justify-start`,u===`compact`?`text-body-small-default max-md:text-body-large-default`:`text-body-medium-lighter max-md:py-3 max-md:text-body-large-default`,l?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,c?`bg-[var(--surface-active)] text-[color:var(--content-emphasised)]`:`hover:bg-[var(--surface-hover)]`,m),b=_?null:(0,E.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left text-optical-center`,children:t}),x=_||!i?null:(0,E.jsx)(Gb,{children:i}),S=_||!a?null:(0,E.jsx)(a,{size:14,"aria-hidden":!0,className:v(`shrink-0 text-[color:var(--content-tertiary)]`,o)}),ee=(0,E.jsx)(Wb,{icon:e,indent:s,active:c,collapsed:_}),te=r??(n?t:void 0),C=_&&te!=null,w=_&&!C?t:void 0,ne=c?`page`:void 0,re=e=>C?(0,E.jsx)(f,{content:te,side:`right`,children:e}):e;if(p){let{onClick:e,...t}=g;return re((0,E.jsxs)(`a`,{ref:h,"data-slot":`side-menu-item`,href:p,title:w,"aria-current":ne,className:y,onClick:t=>{e?.(t),t.defaultPrevented||d?.()},...t,children:[ee,b,x,S]}))}let{onClick:ie,onKeyDown:ae,...oe}=g;return re((0,E.jsxs)(`button`,{ref:h,"data-slot":`side-menu-item`,type:`button`,title:w,"aria-current":ne,className:y,onClick:e=>{ie?.(e),e.defaultPrevented||d?.()},onKeyDown:ae,...oe,children:[ee,b,x,S]}))}var qb=Lb;qb.Header=Rb,qb.Body=zb,qb.Footer=Bb,qb.Section=Hb,qb.SubList=Ub,qb.Item=Kb,qb.Separator=Vb;var Jb=e(i(),1),Yb=0,Xb=1,Zb=2,Qb=4;function $b(e){return()=>e}function ex(e){e()}function tx(e,t){return n=>e(t(n))}function nx(e,t){return()=>e(t)}function rx(e,t){return n=>e(t,n)}function ix(e){return e!==void 0}function ax(...e){return()=>{e.map(ex)}}function ox(){}function sx(e,t){return t(e),e}function cx(e,t){return t(e)}function lx(...e){return e}function ux(e,t){return e(Xb,t)}function dx(e,t){e(Yb,t)}function fx(e){e(Zb)}function px(e){return e(Qb)}function q(e,t){return ux(e,rx(t,Yb))}function mx(e,t){let n=e(Xb,e=>{n(),t(e)});return n}function hx(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function gx(e,t){return e===t}function _x(e=gx){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function J(e){return t=>n=>{e(n)&&t(n)}}function Y(e){return t=>tx(t,e)}function vx(e){return t=>()=>{t(e)}}function X(e,...t){let n=Cx(...t);return((t,r)=>{switch(t){case Zb:fx(e);return;case Xb:return ux(e,n(r))}})}function yx(e,t){return n=>r=>{n(t=e(t,r))}}function bx(e){return t=>n=>{e>0?e--:t(n)}}function xx(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Sx(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;ux(e,e=>{let s=n;n|=o,t[a]=e,s!==i&&n===i&&r&&(r(),r=null)})}),e=>a=>{let o=()=>{e([a].concat(t))};n===i?o():r=o}}function Cx(...e){return t=>e.reduceRight(cx,t)}function wx(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case Xb:return a?n===a?void 0:(r(),n=a,t=ux(e,a),t):(r(),ox);case Zb:r(),n=null;return}}}function Z(e){let t=e,n=Ex();return((e,r)=>{switch(e){case Yb:t=r;break;case Xb:r(t);break;case Qb:return t}return n(e,r)})}function Tx(e,t){return sx(Z(t),t=>q(e,t))}function Ex(){let e=[];return((t,n)=>{switch(t){case Yb:e.slice().forEach(e=>{e(n)});return;case Zb:e.splice(0,e.length);return;case Xb:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function Dx(e){return sx(Ex(),t=>q(e,t))}function Ox(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:kx(),singleton:n}}var kx=()=>Symbol();function Ax(e){let t=new Map,n=({constructor:e,dependencies:r,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);let o=e(r.map(e=>n(e)));return a&&t.set(i,o),o};return n(e)}function jx(...e){let t=Ex(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;ux(e,e=>{n[a]=e,r|=o,r===i&&dx(t,n)})}),function(e,a){switch(e){case Zb:fx(t);return;case Xb:return r===i&&a(n),ux(t,a)}}}function Q(e,t=gx){return X(e,_x(t))}function Mx(...e){return function(t,n){switch(t){case Zb:return;case Xb:return ax(...e.map(e=>ux(e,n)))}}}var Nx={DEBUG:0,INFO:1,WARN:2,ERROR:3},Px={[Nx.DEBUG]:`debug`,[Nx.ERROR]:`error`,[Nx.INFO]:`log`,[Nx.WARN]:`warn`},Fx=()=>typeof globalThis>`u`?window:globalThis,Ix=Ox(()=>{let e=Z(Nx.ERROR);return{log:Z((t,n,r=Nx.INFO)=>{r>=(Fx().VIRTUOSO_LOG_LEVEL??px(e))&&console[Px[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0}),Lx=new WeakMap;function Rx(e){return`self`in e?e.document.documentElement:e}function zx(e){let t=Rx(e),n=Lx.get(t);if(n!==void 0)return n;let r=t.ownerDocument.defaultView.getComputedStyle(t).direction===`rtl`;return Lx.set(t,r),r}function Bx(e){Lx.delete(Rx(e))}function Vx(e,t){return zx(e)?-t:t}var Hx=Vx;function Ux(e,t){return Vx(e,t)}function Wx(e,t,n){return Gx(e,t,n).callbackRef}function Gx(e,t,n){let r=T.useRef(null),i=e=>{},a=T.useMemo(()=>typeof ResizeObserver<`u`?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;n.offsetParent!==null&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(a?.observe(e),r.current=e):(r.current&&a?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function Kx(e,t,n,r,i,a,o,s,c){return Gx(T.useCallback(n=>{let c=qx(n.children,t,s?`offsetWidth`:`offsetHeight`,i),l=n.parentElement;for(;l.dataset.virtuosoScroller===void 0;)l=l.parentElement;let u=l.lastElementChild.dataset.viewportType===`window`,d;u&&(d=l.ownerDocument.defaultView);let f=o?s?o.scrollWidth:o.scrollHeight:u?s?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:s?l.scrollWidth:l.scrollHeight,p=o?s?o.offsetWidth:o.offsetHeight:u?s?d.innerWidth:d.innerHeight:s?l.offsetWidth:l.offsetHeight,m=o?s?Hx(o,o.scrollLeft):o.scrollTop:u?s?Hx(d,d.scrollX||d.document.documentElement.scrollLeft):d.scrollY||d.document.documentElement.scrollTop:s?Hx(l,l.scrollLeft):l.scrollTop;r({scrollHeight:f,scrollTop:Math.max(m,0),viewportHeight:p}),a?.(s?Jx(`column-gap`,getComputedStyle(n).columnGap,i):Jx(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function qx(e,t,n,r){let i=e.length;if(i===0)return null;let a=[];for(let o=0;o<i;o++){let i=e.item(o);if(i.dataset.index===void 0)continue;let s=parseInt(i.dataset.index),c=parseFloat(i.dataset.knownSize),l=t(i,n);if(l===0&&r(`Zero-sized element, this should not happen`,{child:i},Nx.ERROR),l===c)continue;let u=a[a.length-1];a.length===0||u.size!==l||u.endIndex!==s-1?a.push({endIndex:s,size:l,startIndex:s}):a[a.length-1].endIndex++}return a}function Jx(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Nx.WARN),t===`normal`?0:parseInt(t??`0`,10)}function Yx(e,t,n){let r=T.useRef(null),i=T.useCallback(n=>{if(!n?.offsetParent)return;let i=n.getBoundingClientRect(),a=i.width,s,c;if(t){let e=t.getBoundingClientRect(),n=i.top-e.top;c=e.height-Math.max(0,n),s=n+t.scrollTop}else{let e=o.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,i.top),s=i.top+e.scrollY}r.current={listHeight:i.height,offsetTop:s,visibleHeight:c,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:a,ref:o}=Gx(i,!0,n),s=T.useCallback(()=>{i(o.current)},[i,o]);return T.useEffect(()=>{if(t){t.addEventListener(`scroll`,s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener(`scroll`,s),e.unobserve(t)}}let e=o.current?.ownerDocument.defaultView;return e?.addEventListener(`scroll`,s),e?.addEventListener(`resize`,s),()=>{e?.removeEventListener(`scroll`,s),e?.removeEventListener(`resize`,s)}},[s,t,o]),a}var Xx=Ox(()=>{let e=Ex(),t=Ex(),n=Z(0),r=Ex(),i=Z(0),a=Ex(),o=Ex(),s=Z(0),c=Z(0),l=Z(0),u=Z(0),d=Ex(),f=Ex(),p=Z(!1),m=Z(!1),h=Z(!1);return q(X(e,Y(({scrollTop:e})=>e)),t),q(X(e,Y(({scrollHeight:e})=>e)),o),q(t,i),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:p,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:h,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:a}},[],{singleton:!0}),Zx={lvl:0};function Qx(e,t){let n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]),a=[];for(let o=1;o<n;o++){let{index:n,value:s}=t(e[o]);a.push({end:n-1,start:r,value:i}),r=n,i=s}return a.push({end:1/0,start:r,value:i}),a}function $x(e){return e===Zx}function eS(e,t){if(!$x(e))return t===e.k?e.v:t<e.k?eS(e.l,t):eS(e.r,t)}function tS(e,t,n=`k`){if($x(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=tS(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return tS(e.l,t,n)}function nS(e,t,n){return $x(e)?pS(t,n,1):t===e.k?lS(e,{k:t,v:n}):t<e.k?mS(lS(e,{l:nS(e.l,t,n)})):mS(lS(e,{r:nS(e.r,t,n)}))}function rS(){return Zx}function iS(e,t,n){if($x(e))return[];let r=tS(e,t)[0];return _S(sS(e,r,n))}function aS(e,t){if($x(e))return Zx;let{k:n,l:r,r:i}=e;if(t===n){if($x(r))return i;if($x(i))return r;let[t,n]=fS(r);return cS(lS(e,{k:t,l:uS(r),v:n}))}return cS(t<n?lS(e,{l:aS(r,t)}):lS(e,{r:aS(i,t)}))}function oS(e){return $x(e)?[]:[...oS(e.l),{k:e.k,v:e.v},...oS(e.r)]}function sS(e,t,n){if($x(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(sS(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(sS(a,t,n))),s}function cS(e){let{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(dS(t))return hS(lS(e,{lvl:n-1}));if(!$x(t)&&!$x(t.r))return lS(t.r,{l:lS(t,{r:t.r.l}),lvl:n,r:lS(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(dS(e))return gS(lS(e,{lvl:n-1}));if(!$x(r)&&!$x(r.l)){let t=r.l,i=dS(t)?r.lvl-1:r.lvl;return lS(t,{l:lS(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:gS(lS(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function lS(e,t){return pS(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function uS(e){return $x(e.r)?e.l:cS(lS(e,{r:uS(e.r)}))}function dS(e){return $x(e)||e.lvl>e.r.lvl}function fS(e){return $x(e.r)?[e.k,e.v]:fS(e.r)}function pS(e,t,n,r=Zx,i=Zx){return{k:e,l:r,lvl:n,r:i,v:t}}function mS(e){return gS(hS(e))}function hS(e){let{l:t}=e;return!$x(t)&&t.lvl===e.lvl?lS(t,{r:lS(e,{l:t.r})}):e}function gS(e){let{lvl:t,r:n}=e;return!$x(n)&&!$x(n.r)&&n.lvl===t&&n.r.lvl===t?lS(n,{l:lS(e,{r:n.l}),lvl:t+1}):e}function _S(e){return Qx(e,({k:e,v:t})=>({index:e,value:t}))}function vS(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function yS(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var bS=Ox(()=>({recalcInProgress:Z(!1)}),[],{singleton:!0});function xS(e,t,n){return e[SS(e,t,n)]}function SS(e,t,n,r=0){let i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw Error(`Failed binary finding record in array - ${e.join(`,`)}, searched for ${t}`)}function CS(e,t,n,r){let i=SS(e,t,r),a=SS(e,n,r,i);return e.slice(i,a+1)}function wS(e,t){return Math.round(e.getBoundingClientRect()[t])}function TS(e){return!$x(e.groupOffsetTree)}function ES({index:e},t){return t===e?0:t<e?-1:1}function DS(){return{groupIndices:[],groupOffsetTree:rS(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:rS()}}function OS(e,t){let n=$x(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),$x(e)){e=nS(e,0,i);continue}let o=iS(e,a-1,t+1);if(o.some(BS(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=aS(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=nS(e,t+1,a));c&&(e=nS(e,a,i))}return[e,n]}function kS(e){return typeof e.groupIndex<`u`}function AS({offset:e},t){return t===e?0:t<e?-1:1}function jS(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=xS(t,e,ES),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function MS(e,t){if(!TS(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function NS(e,t,n){if(kS(e))return t.groupIndices[e.groupIndex]+1;let r=MS(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function PS(e,t,n,r=0){return r>0&&(t=Math.max(t,xS(e,r,ES).offset)),Qx(CS(e,t,n,AS),zS)}function FS(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,Nx.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&$x(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>nS(nS(t,n,e),n+1,r),o)}else [o,s]=OS(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=RS(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>nS(e,t,jS(t,d,i)),rS()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function IS(e){return oS(e).map(({k:e,v:t},n,r)=>{let i=r[n+1];return{endIndex:i===void 0?1/0:i.k-1,size:t,startIndex:e}})}function LS(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function RS(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=SS(i,t-1,ES),s=i[c].offset;let e=tS(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===tS(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of iS(n,t,1/0)){let t=e-a,n=t*o+s+t*r;i.push({index:e,offset:n,size:c}),a=e,s=n,o=c}return{lastIndex:a,lastOffset:s,lastSize:o,offsetTree:i}}function zS(e){return{index:e.index,value:e}}function BS(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}var VS={offsetHeight:`height`,offsetWidth:`width`},HS=Ox(([{log:e},{recalcInProgress:t}])=>{let n=Ex(),r=Ex(),i=Tx(r,0),a=Ex(),o=Ex(),s=Z(0),c=Z([]),l=Z(void 0),u=Z(void 0),d=Z(void 0),f=Z(void 0),p=Z((e,t)=>wS(e,VS[t])),m=Z(void 0),h=Z(0),g=DS(),_=Tx(X(n,Sx(c,e,h),yx(FS,g),_x()),g),v=Tx(X(c,_x(),yx((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),Y(({prev:e})=>e)),[]);q(X(c,J(e=>e.length>0),Sx(_,h),Y(([e,t,n])=>{let r=e.reduce((e,r,i)=>nS(e,r,jS(r,t.offsetTree,n)||i),rS());return{...t,groupIndices:e,groupOffsetTree:r}})),_),q(X(r,Sx(_),J(([e,{lastIndex:t}])=>e<t),Y(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),q(l,u);let y=Tx(X(l,Y(e=>e===void 0)),!0);q(X(u,J(e=>e!==void 0&&$x(px(_).sizeTree)),Y(e=>{let t=px(d),n=px(c).length>0;return t!==void 0&&t!==0?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),q(X(f,J(e=>e!==void 0&&e.length>0&&$x(px(_).sizeTree)),Y(e=>{let t=[],n=e[0],r=0;for(let i=1;i<e.length;i++){let a=e[i];a!==n&&(t.push({endIndex:i-1,size:n,startIndex:r}),n=a,r=i)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),q(X(c,Sx(d,u),J(([,e,t])=>e!==void 0&&t!==void 0),Y(([e,t,n])=>{let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];r.push({startIndex:a,endIndex:a,size:t}),o!==void 0&&r.push({startIndex:a+1,endIndex:o-1,size:n})}return r})),n);let b=Dx(X(n,Sx(_),yx(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),Y(e=>e.changed)));ux(X(s,yx((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),Y(e=>e.diff)),e=>{let{groupIndices:n}=px(_);if(e>0)dx(t,!0),dx(a,e+LS(e,n));else if(e<0){let t=px(v);t.length>0&&(e-=LS(-e,t)),dx(o,e)}}),ux(X(s,Sx(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},Nx.ERROR)});let x=Dx(a);q(X(a,Sx(_),Y(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=eS(t.sizeTree,0),a=0,o=0;for(;a<e;){let e=t.groupIndices[o],s=t.groupIndices.length===o+1?1/0:t.groupIndices[o+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:i,startIndex:e+1}),o++,a+=s+1}let s=oS(t.sizeTree);return a!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let i=t.ranges;return t.prevSize!==0&&(i=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:i}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return oS(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:i,ranges:[]}).ranges})),n);let S=Dx(X(o,Sx(_,h),Y(([e,{offsetTree:t},n])=>jS(-e,t,n))));return q(X(o,Sx(_,h),Y(([e,t,n])=>{if(t.groupIndices.length>0){if($x(t.sizeTree))return t;let r=rS(),i=px(v),a=0,o=0,s=0;for(;a<-e;){s=i[o];let e=i[o+1]-s-1;o++,a+=e+1}if(r=oS(t.sizeTree).reduce((t,{k:n,v:r})=>nS(t,Math.max(0,n+e),r),r),a!==-e){let n=eS(t.sizeTree,s);r=nS(r,0,n);let i=tS(t.sizeTree,-e+1)[1];r=nS(r,1,i)}return{...t,sizeTree:r,...RS(t.offsetTree,0,r,n)}}let r=oS(t.sizeTree).reduce((t,{k:n,v:r})=>nS(t,Math.max(0,n+e),r),rS());return{...t,sizeTree:r,...RS(t.offsetTree,0,r,n)}})),_),{beforeUnshiftWith:x,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,fixedGroupSize:d,gap:h,groupIndices:c,heightEstimates:f,itemSize:p,listRefresh:b,shiftWith:o,shiftWithOffset:S,sizeRanges:n,sizes:_,statefulTotalCount:i,totalCount:r,trackItemSizes:y,unshiftWith:a}},lx(Ix,bS),{singleton:!0});function US(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var WS=Ox(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=Ex(),o=Ex(),s=Dx(X(a,Y(US)));return q(X(s,Y(e=>e.totalCount)),n),q(X(s,Y(e=>e.groupIndices)),e),q(X(jx(i,t,r),J(([e,t])=>TS(t)),Y(([e,t,n])=>tS(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),_x(),Y(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},lx(HS,Xx)),GS=Ox(([{log:e}])=>{let t=Z(!1),n=Dx(X(t,J(e=>e),_x()));return ux(t,t=>{t&&px(e)(`props updated`,{},Nx.DEBUG)}),{didMount:n,propsReady:t}},lx(Ix),{singleton:!0}),KS=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function qS(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!KS)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var JS=Ox(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:a,footerHeight:o,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{let p=Ex(),m=Ex(),h=Z(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),dx(c,!1)}return q(X(p,Sx(n,d,r,h,s,o,f),Sx(e,a,i),Y(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=qS(e),{align:x,behavior:S,offset:ee}=b,te=i-1,C=NS(b,n,te),w=jS(C,n.offsetTree,d)+o;x===`end`?(w+=f+tS(n.sizeTree,C)[1]-r+h,C===te&&(w+=s)):x===`center`?w+=(f+tS(n.sizeTree,C)[1]-r+h)/2:w-=a,ee!==void 0&&ee!==0&&(w+=ee);let ne=t=>{y(),t?(l(`retrying to scroll to`,{location:e},Nx.DEBUG),dx(p,e)):(dx(m,!0),l(`list did not change, scroll successful`,{},Nx.DEBUG))};if(y(),S===`smooth`){let e=!1;v=ux(t,t=>{e||=t}),g=mx(u,()=>{ne(e)})}else g=mx(X(t,YS(150)),ne);return _=setTimeout(()=>{y()},1200),dx(c,!0),l(`scrolling from index to`,{behavior:S,index:C,top:w},Nx.DEBUG),{behavior:S,top:w}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},lx(HS,Xx,Ix),{singleton:!0});function YS(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function XS(e,t){e===0?t():requestAnimationFrame(()=>{XS(e-1,t)})}function ZS(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var QS=Ox(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=Z(!0),c=Z(0),l=Z(!0);return q(X(o,Sx(c),J(([e,t])=>t!==0),vx(!1)),s),q(X(o,Sx(c),J(([e,t])=>t!==0),vx(!1)),l),ux(X(jx(t,o),Sx(s,n,e,l),J(([[,e],t,{sizeTree:n},r,i])=>e&&(!$x(n)||ix(r))&&!t&&!i),Sx(c)),([,e])=>{mx(i,()=>{dx(l,!0)}),XS(4,()=>{mx(r,()=>{dx(s,!0)}),dx(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},lx(HS,Xx,JS,GS),{singleton:!0});function $S(e,t){return Math.abs(e-t)<1.01}var eC=`up`,tC=`down`,nC=`none`,rC={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},iC=0,aC=Ox(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=Z(!1),s=Z(!0),c=Ex(),l=Ex(),u=Z(4),d=Z(iC),f=Tx(X(Mx(X(Q(i),bx(1),vx(!0)),X(Q(i),bx(1),vx(!1),hx(100))),_x()),!1),p=Tx(X(Mx(X(n,vx(!0)),X(n,vx(!1),hx(200))),_x()),!1);q(X(jx(Q(i),Q(d)),Y(([e,t])=>e<=t),_x()),s),q(X(s,xx(50)),l);let m=Dx(X(jx(r,Q(a),Q(t),Q(e),Q(u)),yx((e,[{scrollHeight:t,scrollTop:n},r,i,a,o])=>{let s=n+r-t>-o,c={scrollHeight:t,scrollTop:n,viewportHeight:r};if(s){let t,r;return n>e.state.scrollTop?(t=`SCROLLED_DOWN`,r=e.state.scrollTop-n):(t=`SIZE_DECREASED`,r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:c}}let l;return l=c.scrollHeight>e.state.scrollHeight?`SIZE_INCREASED`:r<e.state.viewportHeight?`VIEWPORT_HEIGHT_DECREASING`:n<e.state.scrollTop?`SCROLLING_UPWARDS`:`NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM`,{atBottom:!1,notAtBottomBecause:l,state:c}},rC),_x((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=Tx(X(r,yx((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!$S(e.scrollHeight,t)){let i=t-(n+r)<1;return e.scrollTop!==n&&i?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),J(e=>e.changed),Y(e=>e.jump)),0);q(X(m,Y(e=>e.atBottom)),o),q(X(o,xx(50)),c);let g=Z(tC);q(X(r,Y(({scrollTop:e})=>e),_x(),yx((e,t)=>px(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?eC:tC,prevScrollTop:t},{direction:tC,prevScrollTop:0}),Y(e=>e.direction)),g),q(X(r,xx(50),vx(nC)),g);let _=Z(0);return q(X(f,J(e=>!e),vx(0)),_),q(X(i,xx(100),Sx(f),J(([e,t])=>t),yx(([e,t],[n])=>[t,n],[0,0]),Y(([e,t])=>t-e)),_),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:h,scrollDirection:g,scrollVelocity:_}},lx(Xx)),oC=`top`,sC=`bottom`,cC=`none`;function lC(e,t,n){return typeof e==`number`?n===eC&&t===oC||n===tC&&t===sC?e:0:n===eC?t===oC?e.main:e.reverse:t===sC?e.main:e.reverse}function uC(e,t){return typeof e==`number`?e:e[t]??0}var dC=Ox(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=Ex(),o=Z(0),s=Z(0),c=Z(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:Tx(X(jx(Q(r),Q(i),Q(n),Q(a,yS),Q(c),Q(o),Q(t),Q(e),Q(s)),Y(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=cC,m=uC(l,oC),h=uC(l,sC);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=eC),i<e-f+t+h&&(p=tC),p===cC?null:[Math.max(u-n-lC(a,oC,p)-m,0),u-f-s+t+lC(a,sC,p)+h]}),J(e=>e!==null),_x(yS)),[0,0])}},lx(Xx),{singleton:!0});function fC(e,t,n){if(TS(t)){let r=MS(e,t);return[{index:tS(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}var pC={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function mC(e,t,n,r,i,a){let{lastIndex:o,lastOffset:s,lastSize:c}=i,l=0,u=0;if(e.length>0){l=e[0].offset;let t=e[e.length-1];u=t.offset+t.size}let d=n-o,f=s+d*c+(d-1)*r,p=l,m=f-u;return{bottom:u,firstItemIndex:a,items:gC(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:gC(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function hC(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-o>=e)break;o++}let s=e+o,c=ZS(t,s);return mC(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function gC(e,t,n){if(e.length===0)return[];if(!TS(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,i=e[e.length-1].index,a=[],o=iS(t.groupOffsetTree,r,i),s,c=0;for(let r of e){(!s||s.end<r.index)&&(s=o.shift(),c=t.groupIndices.indexOf(s.start));let e;e=r.index===s.start?{index:c,type:`group`}:{groupIndex:c,index:r.index-(c+1)+n},a.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return a}function _C(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var vC=Ox(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},a,{listBoundary:o,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:p},{recalcInProgress:m}])=>{let h=Z([]),g=Z(0),_=Ex(),v=Z(0);q(a.topItemsIndexes,h);let y=Tx(X(jx(p,m,Q(c,yS),Q(i),Q(r),Q(l),u,Q(h),Q(t),Q(n),Q(v),e),J(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),Y(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=px(g);if(n===0)return{...pC,totalCount:n};if(e===0&&t===0)return m===0?{...pC,totalCount:n}:hC(m,i,r,s,c,u||[]);if($x(p))return m>0?null:mC(fC(ZS(i,n),d,u),[],n,c,d,s);let h=[];if(o.length>0){let e=o[0],t=o[o.length-1],n=0;for(let r of iS(p,e,t)){let i=r.value,a=Math.max(r.start,e),o=Math.min(r.end,t);for(let e=a;e<=o;e++)h.push({data:u?.[e],index:e,offset:n,size:i}),n+=i}}if(!a)return mC([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=PS(f,e,t,_);if(v.length===0)return null;let y=n-1,b=sx([],n=>{for(let r of v){let i=r.value,a=i.offset,o=r.start,s=i.size;if(i.offset<e){o+=Math.floor((e-i.offset+c)/(s+c));let t=o-r.start;a+=t*s+t*c}o<_&&(a+=(_-o)*s,o=_);let l=Math.min(r.end,y);for(let e=o;e<=l&&!(a>=t);e++)n.push({data:u?.[e],index:e,offset:a,size:s}),a+=s+c}}),x=_C(l,oC),S=_C(l,sC);if(b.length>0&&(x>0||S>0)){let e=b[0],t=b[b.length-1];if(x>0&&e.index>_){let t=Math.min(x,e.index-_),n=[],r=e.offset;for(let i=e.index-1;i>=e.index-t;i--){let t=iS(p,i,i)[0]?.value??e.size;r-=t+c,n.unshift({data:u?.[i],index:i,offset:r,size:t})}b.unshift(...n)}if(S>0&&t.index<y){let e=Math.min(S,y-t.index),n=t.offset+t.size+c;for(let r=t.index+1;r<=t.index+e;r++){let e=iS(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return mC(b,h,n,c,d,s)}),J(e=>e!==null),_x()),pC);q(X(e,J(ix),Y(e=>e?.length)),i),q(X(y,Y(e=>e.topListHeight)),d),q(d,s),q(X(y,Y(e=>[e.top,e.bottom])),o),q(X(y,Y(e=>e.items)),_);let b=Dx(X(y,J(({items:e})=>e.length>0),Sx(i,e),J(([{items:e},t])=>e[e.length-1].originalIndex===t-1),Y(([,e,t])=>[e-1,t]),_x(yS),Y(([e])=>e))),x=Dx(X(y,xx(200),J(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),Y(({items:e})=>e[0].index),_x()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:Dx(X(y,J(({items:e})=>e.length>0),Y(({items:e})=>{let t=0,n=e.length-1;for(;e[t].type===`group`&&t<n;)t++;for(;e[n].type===`group`&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),_x(vS))),startReached:x,topItemsIndexes:h,...f}},lx(HS,WS,dC,QS,JS,aC,GS,bS),{singleton:!0}),yC=Ox(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=Ex(),o=Tx(X(jx(n,e,r,t,i),Y(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return q(Q(o),a),{totalListHeight:o,totalListHeightChanged:a}},lx(Xx,vC),{singleton:!0}),bC=Ox(([{viewportHeight:e},{totalListHeight:t}])=>{let n=Z(!1);return{alignToBottom:n,paddingTopAddition:Tx(X(jx(n,e,t),J(([e])=>e),Y(([,e,t])=>Math.max(0,e-t)),xx(0),_x()),0)}},lx(Xx,yC),{singleton:!0}),xC=Ox(()=>({context:Z(null)})),SC=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:a,viewportTop:o})=>t<o?{...i,align:n??`start`,...r===void 0?{}:{behavior:r}}:e>a?{...i,align:n??`end`,...r===void 0?{}:{behavior:r}}:null,CC=Ox(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=Ex();return q(X(u,Sx(t,c,n,a,i,r,s),Sx(e),Y(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=SC,done:d,...f}=e,p=NS(e,t,r-1),m=jS(p,t.offsetTree,l)+i+a,h=m+tS(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&mx(X(o,J(e=>!e),bx(px(o)?1:2)),d),_}),J(e=>e!==null)),l),{scrollIntoView:u}},lx(HS,Xx,JS,vC,Ix),{singleton:!0});function wC(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var TC=(e,t)=>typeof e==`function`?wC(e(t)):t&&wC(e),EC=Ox(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:s},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:p}])=>{let m=Z(!1),h=Ex(),g=null;function _(e){dx(o,{align:`end`,behavior:e,index:`LAST`})}ux(X(jx(X(Q(t),bx(1)),c),Sx(Q(m),a,s,d),Y(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=TC(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),J(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),px(n)===void 0?g=mx(e,()=>{px(u)(`following output to `,{totalCount:r},Nx.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{px(u)(`following output to `,{totalCount:r},Nx.DEBUG),_(t)})});function v(e){let t=mx(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(px(u)(`scrolling to bottom due to increased size`,{},Nx.DEBUG),_(`auto`))});setTimeout(t,100)}ux(X(jx(Q(m),t,l),J(([e,,t])=>e!==!1&&t),yx(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),J(({refreshed:e})=>e),Sx(m,t)),([,e])=>{px(s)&&v(e!==!1)}),ux(h,()=>{v(px(m)!==!1)}),ux(jx(Q(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=Z(null),b=Ex();return q(Mx(X(Q(r),Y(e=>e?.length??0)),X(Q(t))),b),ux(X(jx(X(b,bx(1)),c),Sx(Q(y),s,d,f),Y(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),J(e=>!!e),xx(0)),t=>{g!==null&&(g(),g=null),px(n)===void 0?g=mx(e,()=>{px(u)(`scrolling into view`,{}),dx(p,t),g=null}):requestAnimationFrame(()=>{px(u)(`scrolling into view`,{}),dx(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},lx(HS,aC,JS,QS,GS,Ix,Xx,xC,CC)),DC=Ox(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(q(X(s,Sx(a),J(([,e])=>e!==0),Sx(i,r,t,n,e),Y(([[,e],t,n,r,i,a=[]])=>hC(e,t,n,r,i,a))),o),{}),lx(HS,QS,vC,GS),{singleton:!0}),OC=Ox(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=Z(0);return ux(X(e,Sx(r),J(([,e])=>e!==0),Y(([,e])=>({top:e}))),e=>{mx(X(n,bx(1),J(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{dx(t,e)})})}),{initialScrollTop:r}},lx(GS,Xx,vC),{singleton:!0}),kC=Ox(([{scrollVelocity:e}])=>{let t=Z(!1),n=Ex(),r=Z(!1);return q(X(e,Sx(r,t,n),J(([e,t])=>t!==!1&&t!==void 0),Y(([e,t,n,r])=>{let{enter:i,exit:a}=t;if(n){if(a(e,r))return!1}else if(i(e,r))return!0;return n}),_x()),t),ux(X(jx(t,e,n),Sx(r)),([[e,t,n],r])=>{e&&r!==!1&&r!==void 0&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},lx(aC),{singleton:!0}),AC=Ox(([{scrollContainerState:e,scrollTo:t}])=>{let n=Ex(),r=Ex(),i=Ex(),a=Z(!1),o=Z(void 0);return q(X(jx(n,r),Y(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),q(X(t,Sx(r),Y(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},lx(Xx)),jC=Ox(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=Ex(),u=Z(void 0),d=Z(null),f=Z(null);return q(s,d),q(c,f),ux(X(l,Sx(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=IS(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),q(X(u,J(ix),Y(MC)),i),q(X(a,Sx(u),J(([,e])=>e!==void 0),_x(),Y(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},lx(HS,Xx,QS,GS,AC));function MC(e){return{align:`start`,index:0,offset:e.scrollTop}}var NC=Ox(([{topItemsIndexes:e}])=>{let t=Z(0);return q(X(t,J(e=>e>=0),Y(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},lx(vC));function PC(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var FC=PC(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),IC=Ox(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:a,groupIndices:o,heightEstimates:s,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:p},{initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g},_,v,y,b,{scrollToIndex:x},S,{topItemCount:ee},{groupCounts:te},C])=>{let{listState:w,minOverscanItemCount:ne,topItemsIndexes:re,rangeChanged:ie,...ae}=b;return q(ie,C.scrollSeekRangeChanged),q(X(C.windowViewportRect,Y(e=>e.visibleHeight)),_.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:a,groupCounts:te,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g,sizeRanges:l,topItemCount:ee,topItemsIndexes:re,totalCount:f,...y,groupIndices:o,itemSize:c,listState:w,minOverscanItemCount:ne,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:ie,...ae,...C,..._,sizes:u,...v}},lx(HS,QS,Xx,jC,EC,vC,JS,Ox(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:p},{recalcInProgress:m}])=>{let h=Dx(X(c,Sx(o),yx(([,e,t,n],[{bottom:r,items:i,offsetBottom:a,totalCount:o},s])=>{let c=r+a,l=0;return t===o&&e.length>0&&i.length>0&&(i[0].originalIndex===0&&e[0].originalIndex===0||(l=c-n,l!==0&&(l+=s))),[l,i,o,c]},[0,[],0,0]),J(([e])=>e!==0),Sx(r,s,n,i,p,m),J(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===eC),Y(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},Nx.DEBUG),e))));function g(n){n>0?(dx(t,{behavior:`auto`,top:-n}),dx(e,0)):(dx(e,0),dx(t,{behavior:`auto`,top:-n}))}return ux(X(h,Sx(e,a)),([t,n,r])=>{r&&FC()?dx(e,n-t):g(-t)}),ux(X(jx(Tx(a,!1),e,m),J(([e,t,n])=>!e&&!n&&t!==0),Y(([e,t])=>t),xx(1)),g),q(X(d,Y(e=>({top:-e}))),t),ux(X(l,Sx(f,u),Y(([e,{groupIndices:t,lastSize:n,sizeTree:r},i])=>{function a(e){return e*(n+i)}if(t.length===0)return a(e);let o=0,s=eS(r,0),c=0,l=0;for(;c<e;){c++,o+=s;let n=t.length===l+1?1/0:t[l+1]-t[l]-1;c+n>e&&(o-=s,n=e-c+1),c+=n,o+=a(n),l++}return o})),n=>{dx(e,n),requestAnimationFrame(()=>{dx(t,{top:n}),requestAnimationFrame(()=>{dx(e,0),dx(m,!1)})})}),{deviation:e}},lx(Xx,aC,vC,HS,Ix,bS)),NC,WS,Ox(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),lx(dC,DC,GS,kC,yC,OC,bC,AC,CC,Ix,xC))));function LC(e,t){let n={},r={},i=0,a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}var RC=typeof document<`u`?T.useLayoutEffect:T.useEffect;function zC(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=T.createContext({});function c(e,n){e.propsReady!==void 0&&dx(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];dx(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];dx(i,n[r])}e.propsReady!==void 0&&dx(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];dx(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=wx(e[t.events[r]]),n),{})}return{Component:T.forwardRef(function(t,a){let{children:d,...f}=t,[p]=T.useState(()=>sx(Ax(e),e=>{c(e,f)})),[m]=T.useState(nx(u,p));RC(()=>{for(let e of o)e in f&&ux(m[e],f[e]);return()=>{Object.values(m).map(fx)}},[f,m,p]),RC(()=>{c(p,f)}),T.useImperativeHandle(a,$b(l(p)));let h=n;return(0,E.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,E.jsx)(h,{...LC([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=T.useContext(s)[e];RC(()=>ux(n,t),[t,n])},useEmitterValue:e=>{let t=T.useContext(s)[e],n=T.useCallback(e=>ux(t,e),[t]);return T.useSyncExternalStore(n,()=>px(t),()=>px(t))},usePublisher:e=>{let t=T.useContext(s);return T.useCallback(n=>{dx(t[e],n)},[t,e])}}}var BC=T.createContext(void 0),VC=T.createContext(void 0),HC=`-webkit-sticky`,UC=`sticky`,WC=PC(()=>{if(typeof document>`u`)return UC;let e=document.createElement(`div`);return e.style.position=HC,e.style.position===HC?HC:UC}),GC=typeof document<`u`?T.useLayoutEffect:T.useEffect;function KC(e){return`self`in e}function qC(e){return`body`in e}function JC(e,t,n,r=ox,i,a){let o=T.useRef(null),s=T.useRef(null),c=T.useRef(null),l=T.useCallback(n=>{let r,i,o,l=n.target;if(qC(l)||KC(l)){let e=KC(l)?l:l.defaultView;o=a===!0?Hx(e,e.scrollX):e.scrollY,r=a===!0?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=a===!0?e.innerWidth:e.innerHeight}else o=a===!0?Hx(l,l.scrollLeft):l.scrollTop,r=a===!0?l.scrollWidth:l.scrollHeight,i=a===!0?l.offsetWidth:l.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(o,0),viewportHeight:i})};n.suppressFlushSync===!0?u():Jb.flushSync(u),s.current!==null&&(o===s.current||o<=0||o===r-i)&&(s.current=null,t(!0),c.current&&=(clearTimeout(c.current),null))},[e,t,a]);T.useEffect(()=>{let e=i||o.current;return Bx(e),r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{Bx(e),r(null),e.removeEventListener(`scroll`,l)}},[o,l,n,r,i]);function u(n){let r=o.current;if(!r||(a===!0?`offsetWidth`in r&&r.offsetWidth===0:`offsetHeight`in r&&r.offsetHeight===0))return;let i=n.behavior===`smooth`,l,u,d;KC(r)?(u=Math.max(wS(r.document.documentElement,a===!0?`width`:`height`),a===!0?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),l=a===!0?r.innerWidth:r.innerHeight,d=a===!0?Hx(r,r.scrollX):r.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=wS(r,a===!0?`width`:`height`),d=a===!0?Hx(r,r.scrollLeft):r.scrollTop);let f=u-l;if(n.top===void 0){r.scrollTo(n);return}let p=Math.ceil(Math.max(Math.min(f,n.top),0));if(n.top=p,$S(l,u)||p===d){e({scrollHeight:u,scrollTop:d,viewportHeight:l}),i&&t(!0);return}i?(s.current=p,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,s.current=null,t(!0)},1e3)):s.current=null,a===!0&&(n={...n.behavior===void 0?{}:{behavior:n.behavior},left:Ux(r,p)}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:Ux(o.current,e.top)}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function YC(e){return e}var XC=Ox(([e,t])=>({...e,...t}),lx(IC,Ox(()=>{let e=Z(e=>`Item ${e}`),t=Z(e=>`Group ${e}`),n=Z({}),r=Z(YC),i=Z(`div`),a=Z(ox),o=(e,t=null)=>Tx(X(n,Y(t=>t[e]),_x()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:o(`EmptyPlaceholder`),FooterComponent:o(`Footer`),GroupComponent:o(`Group`,`div`),groupContent:t,HeaderComponent:o(`Header`),HeaderFooterTag:i,ItemComponent:o(`Item`,`div`),itemContent:e,ListComponent:o(`List`,`div`),ScrollerComponent:o(`Scroller`,`div`),scrollerRef:a,ScrollSeekPlaceholder:o(`ScrollSeekPlaceholder`),TopItemListComponent:o(`TopItemList`)}}))),ZC=({height:e})=>(0,E.jsx)(`div`,{style:{height:e}}),QC={overflowAnchor:`none`,position:WC(),zIndex:1},$C={overflowAnchor:`none`},ew={...$C,display:`inline-block`,height:`100%`},tw=T.memo(function({showTopList:e=!1}){let t=$(`listState`),n=vw(`sizeRanges`),r=$(`useWindowScroll`),i=$(`customScrollParent`),a=vw(`windowScrollContainerState`),o=vw(`scrollContainerState`),s=i||r?a:o,c=$(`itemContent`),l=$(`context`),u=$(`groupContent`),d=$(`trackItemSizes`),f=$(`itemSize`),p=$(`log`),m=vw(`gap`),h=$(`horizontalDirection`),{callbackRef:g}=Kx(n,f,d,e?ox:s,p,m,i,h,$(`skipAnimationFrameInResizeObserver`)),[_,v]=T.useState(0);_w(`deviation`,e=>{_!==e&&v(e)});let y=$(`EmptyPlaceholder`),b=$(`ScrollSeekPlaceholder`)??ZC,x=$(`ListComponent`),S=$(`ItemComponent`),ee=$(`GroupComponent`),te=$(`computeItemKey`),C=$(`isSeeking`),w=$(`groupIndices`).length>0,ne=$(`alignToBottom`),re=$(`initialItemFinalLocationReached`),ie=e?{}:{boxSizing:`border-box`,...h?{display:`inline-block`,height:`100%`,marginInlineStart:_===0?ne?`auto`:0:_,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:`nowrap`}:{marginTop:_===0?ne?`auto`:0:_,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...re?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,E.jsx)(y,{...sw(y,l)}):(0,E.jsx)(x,{...sw(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:ie,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=te(n+t.firstItemIndex,e.data,l);return C?(0,T.createElement)(b,{...sw(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,T.createElement)(ee,{...sw(ee,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:QC},u(e.index,l)):(0,T.createElement)(S,{...sw(S,l),...cw(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:h?ew:$C},w?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),nw={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},rw={outline:`none`,overflowX:`auto`,position:`relative`},iw=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),aw=(e,t,n=0)=>({...iw(e),position:t?`relative`:`absolute`,top:t?-n:0}),ow={position:WC(),top:0,width:`100%`,zIndex:1};function sw(e,t){if(typeof e!=`string`)return{context:t}}function cw(e,t){return{item:typeof e==`string`?void 0:t}}var lw=T.memo(function(){let e=$(`HeaderComponent`),t=vw(`headerHeight`),n=$(`HeaderFooterTag`),r=Wx(T.useMemo(()=>e=>{t(wS(e,`height`))},[t]),!0,$(`skipAnimationFrameInResizeObserver`)),i=$(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...sw(e,i)})})}),uw=T.memo(function(){let e=$(`FooterComponent`),t=vw(`footerHeight`),n=$(`HeaderFooterTag`),r=Wx(T.useMemo(()=>e=>{t(wS(e,`height`))},[t]),!0,$(`skipAnimationFrameInResizeObserver`)),i=$(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...sw(e,i)})})});function dw({useEmitter:e,useEmitterValue:t,usePublisher:n}){return T.memo(function({children:r,style:i,context:a,...o}){let s=n(`scrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`scrollerRef`),d=t(`horizontalDirection`)||!1,{scrollByCallback:f,scrollerRef:p,scrollToCallback:m}=JC(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,E.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?rw:nw,...i},tabIndex:0,...o,...sw(c,a),children:r})})}function fw({useEmitter:e,useEmitterValue:t,usePublisher:n}){return T.memo(function({children:r,style:i,context:a,...o}){let s=n(`windowScrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`totalListHeight`),d=t(`deviation`),f=t(`customScrollParent`),p=T.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=JC(s,l,c,t(`scrollerRef`),f);return GC(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,E.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...sw(c,a),children:r})})}var pw=({children:e})=>{let t=T.useContext(BC),n=vw(`viewportHeight`),r=vw(`fixedItemHeight`),i=$(`alignToBottom`),a=$(`horizontalDirection`),o=Wx(T.useMemo(()=>tx(n,e=>wS(e,a?`width`:`height`)),[n,a]),!0,$(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:iw(i),children:e})},mw=({children:e})=>{let t=T.useContext(BC),n=vw(`windowViewportRect`),r=vw(`fixedItemHeight`),i=$(`customScrollParent`),a=$(`useWindowScroll`),o=$(`topListHeight`),s=Yx(n,i,$(`skipAnimationFrameInResizeObserver`)),c=$(`alignToBottom`);return T.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`window`,ref:s,style:aw(c,a,o),children:e})},hw=({children:e})=>{let t=$(`TopItemListComponent`)??`div`,n=$(`headerHeight`);return(0,E.jsx)(t,{style:{...ow,marginTop:`${n}px`},...sw(t,$(`context`)),children:e})},{Component:gw,useEmitter:_w,useEmitterValue:$,usePublisher:vw}=zC(XC,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,scrollIntoViewOnChange:`scrollIntoViewOnChange`,itemContent:`itemContent`,groupContent:`groupContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,groupCounts:`groupCounts`,topItemCount:`topItemCount`,firstItemIndex:`firstItemIndex`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,heightEstimates:`heightEstimates`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`HeaderFooterTag`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,horizontalDirection:`horizontalDirection`,skipAnimationFrameInResizeObserver:`skipAnimationFrameInResizeObserver`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,autoscrollToBottom:`autoscrollToBottom`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},T.memo(function(e){let t=$(`useWindowScroll`),n=$(`topItemsIndexes`).length>0,r=$(`customScrollParent`),i=$(`context`);return(0,E.jsxs)(r||t?bw:yw,{...e,context:i,children:[n&&(0,E.jsx)(hw,{children:(0,E.jsx)(tw,{showTopList:!0})}),(0,E.jsxs)(r||t?mw:pw,{children:[(0,E.jsx)(lw,{}),(0,E.jsx)(tw,{}),(0,E.jsx)(uw,{})]})]})})),yw=dw({useEmitter:_w,useEmitterValue:$,usePublisher:vw}),bw=fw({useEmitter:_w,useEmitterValue:$,usePublisher:vw}),xw=gw,Sw=Ox(([e,t])=>({...e,...t}),lx(IC,Ox(()=>{let e=Z(e=>(0,E.jsxs)(`td`,{children:[`Item $`,e]})),t=Z(null),n=Z(e=>(0,E.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=Z(null),i=Z(null),a=Z({}),o=Z(YC),s=Z(ox),c=(e,t=null)=>Tx(X(a,Y(t=>t[e]),_x()),t);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c(`EmptyPlaceholder`),FillerRow:c(`FillerRow`),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`),TableBodyComponent:c(`TableBody`,`tbody`),TableComponent:c(`Table`,`table`),TableFooterComponent:c(`TableFoot`,`tfoot`),TableHeadComponent:c(`TableHead`,`thead`),TableRowComponent:c(`TableRow`,`tr`),GroupComponent:c(`Group`,`tr`)}}))),Cw=({height:e})=>(0,E.jsx)(`tr`,{children:(0,E.jsx)(`td`,{style:{height:e}})}),ww=({height:e})=>(0,E.jsx)(`tr`,{children:(0,E.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),Tw={overflowAnchor:`none`},Ew={position:WC(),zIndex:2,overflowAnchor:`none`},Dw=T.memo(function({showTopList:e=!1}){let t=Nw(`listState`),n=Nw(`computeItemKey`),r=Nw(`firstItemIndex`),i=Nw(`context`),a=Nw(`isSeeking`),o=Nw(`fixedHeaderHeight`),s=Nw(`groupIndices`).length>0,c=Nw(`itemContent`),l=Nw(`groupContent`),u=Nw(`ScrollSeekPlaceholder`)??Cw,d=Nw(`GroupComponent`),f=Nw(`TableRowComponent`),p=(e?t.topItems:[]).reduce((e,t,n)=>(n===0?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,h=n(m+r,t.data,i),g=e?m===0?0:p[m-1]:0;return a?(0,T.createElement)(u,{...sw(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,T.createElement)(d,{...sw(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...Ew,top:o}},l(t.index,i)):(0,T.createElement)(f,{...sw(f,i),...cw(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:h,style:e?{...Ew,top:o+g}:Tw},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),Ow=T.memo(function(){let e=Nw(`listState`),t=Nw(`topItemsIndexes`).length>0,n=Pw(`sizeRanges`),r=Nw(`useWindowScroll`),i=Nw(`customScrollParent`),a=Pw(`windowScrollContainerState`),o=Pw(`scrollContainerState`),s=i||r?a:o,c=Nw(`trackItemSizes`),{callbackRef:l,ref:u}=Kx(n,Nw(`itemSize`),c,s,Nw(`log`),void 0,i,!1,Nw(`skipAnimationFrameInResizeObserver`)),[d,f]=T.useState(0);Mw(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=Nw(`EmptyPlaceholder`),m=Nw(`FillerRow`)??ww,h=Nw(`TableBodyComponent`),g=Nw(`paddingTopAddition`),_=Nw(`statefulTotalCount`),v=Nw(`context`);if(_===0&&p!=null)return(0,E.jsx)(p,{...sw(p,v)});let y=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),b=e.offsetTop+g+d-y,x=e.offsetBottom,S=b>0?(0,E.jsx)(m,{context:v,height:b},`padding-top`):null,ee=x>0?(0,E.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,E.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...sw(h,v),children:[S,t&&(0,E.jsx)(Dw,{showTopList:!0}),(0,E.jsx)(Dw,{}),ee]})}),kw=({children:e})=>{let t=T.useContext(BC),n=Pw(`viewportHeight`),r=Pw(`fixedItemHeight`),i=Wx(T.useMemo(()=>tx(n,e=>wS(e,`height`)),[n]),!0,Nw(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:iw(!1),children:e})},Aw=({children:e})=>{let t=T.useContext(BC),n=Pw(`windowViewportRect`),r=Pw(`fixedItemHeight`),i=Nw(`customScrollParent`),a=Nw(`useWindowScroll`),o=Yx(n,i,Nw(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`window`,ref:o,style:aw(!1,a),children:e})},{Component:jw,useEmitter:Mw,useEmitterValue:Nw,usePublisher:Pw}=zC(Sw,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,firstItemIndex:`firstItemIndex`,itemContent:`itemContent`,groupContent:`groupContent`,fixedHeaderContent:`fixedHeaderContent`,fixedFooterContent:`fixedFooterContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,topItemCount:`topItemCount`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,groupCounts:`groupCounts`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},T.memo(function(e){let t=Nw(`useWindowScroll`),n=Nw(`customScrollParent`),r=Pw(`fixedHeaderHeight`),i=Pw(`fixedFooterHeight`),a=Nw(`fixedHeaderContent`),o=Nw(`fixedFooterContent`),s=Nw(`context`),c=Wx(T.useMemo(()=>tx(r,e=>wS(e,`height`)),[r]),!0,Nw(`skipAnimationFrameInResizeObserver`)),l=Wx(T.useMemo(()=>tx(i,e=>wS(e,`height`)),[i]),!0,Nw(`skipAnimationFrameInResizeObserver`)),u=n||t?Iw:Fw,d=n||t?Aw:kw,f=Nw(`TableComponent`),p=Nw(`TableHeadComponent`),m=Nw(`TableFooterComponent`),h=a?(0,E.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...sw(p,s),children:a()},`TableHead`):null,g=o?(0,E.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...sw(m,s),children:o()},`TableFoot`):null;return(0,E.jsx)(u,{...e,...sw(u,s),children:(0,E.jsx)(d,{children:(0,E.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...sw(f,s),children:[h,(0,E.jsx)(Ow,{},`TableBody`),g]})})})})),Fw=dw({useEmitter:Mw,useEmitterValue:Nw,usePublisher:Pw}),Iw=fw({useEmitter:Mw,useEmitterValue:Nw,usePublisher:Pw}),Lw={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},Rw={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:zw,floor:Bw,max:Vw,min:Hw,round:Uw}=Math;function Ww(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function Gw(e){return{...Rw,items:e}}function Kw(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function qw(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var Jw=Ox(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:a,scrollBy:o,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,p,{didMount:m,propsReady:h},{customScrollParent:g,useWindowScroll:_,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b},x])=>{let S=Z(0),ee=Z(0),te=Z(Lw),C=Z({height:0,width:0}),w=Z({height:0,width:0}),ne=Ex(),re=Ex(),ie=Z(0),ae=Z(null),oe=Z({column:0,row:0}),se=Ex(),ce=Ex(),le=Z(!1),ue=Z(0),de=Z(!0),fe=Z(!1),pe=Z(!1);ux(X(m,Sx(ue),J(([e,t])=>t!==0)),()=>{dx(de,!1)}),ux(X(jx(m,de,w,C,ue,fe),J(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{dx(fe,!0),XS(1,()=>{dx(ne,e)}),mx(X(l),()=>{dx(t,[0,0]),dx(de,!0)})}),q(X(ce,J(e=>e!=null&&e.scrollTop>0),vx(0)),ee),ux(X(m,Sx(ce),J(([,e])=>e!=null)),([,e])=>{e&&(dx(C,e.viewport),dx(w,e.item),dx(oe,e.gap),e.scrollTop>0&&(dx(le,!0),mx(X(l,bx(1)),e=>{dx(le,!1)}),dx(c,{top:e.scrollTop})))}),q(X(C,Y(({height:e})=>e)),d),q(X(jx(Q(C,Kw),Q(w,Kw),Q(oe,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),Q(l)),Y(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),se),q(X(jx(Q(S),r,Q(oe,qw),Q(w,Kw),Q(C,Kw),Q(ae),Q(ee),Q(le),Q(de),Q(ue)),J(([,,,,,,,e])=>!e),Y(([e,[t,n],r,i,a,o,s,,c,l])=>{let{column:u,row:d}=r,{height:f,width:p}=i,{width:m}=a;if(s===0&&(e===0||m===0))return Lw;if(p===0){let t=ZS(l,e);return Gw(Ww(t,t+Math.max(s-1,0),o))}let h=Yw(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*Bw((t+d)/(f+d)),_=h*zw((n+d)/(f+d))-1,_=Hw(e-1,Vw(_,h-1)),g=Hw(_,Vw(0,g))):(g=0,_=-1);let v=Ww(g,_,o),{bottom:y,top:b}=Xw(a,r,i,v),x=zw(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),te),q(X(ae,J(e=>e!==null),Y(e=>e.length)),S),q(X(jx(C,w,te,oe),J(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),Y(([e,t,{items:n},r])=>{let{bottom:i,top:a}=Xw(e,r,t,n);return[a,i]}),_x(yS)),t);let me=Z(!1);q(X(l,Sx(me),Y(([e,t])=>t||e!==0)),me);let he=Dx(X(jx(te,S),J(([{items:e}])=>e.length>0),Sx(me),J(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&e.offsetBottom===0&&e.items.length===t)&&r}),Y(([[,e]])=>e-1),_x())),ge=Dx(X(Q(te),J(({items:e})=>e.length>0&&e[0].index===0),vx(0),_x())),_e=Dx(X(Q(te),Sx(le),J(([{items:e},t])=>e.length>0&&!t),Y(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),_x(vS),xx(0)));q(_e,p.scrollSeekRangeChanged),q(X(ne,Sx(C,w,S,oe),Y(([e,t,n,r,i])=>{let a=qS(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=Vw(0,l,Hw(r-1,l));let u=Zw(t,i,n,l);return o===`end`?u=Uw(u-t.height+n.height):o===`center`&&(u=Uw(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let ve=Tx(X(te,Y(e=>e.offsetBottom+e.bottom)),0);return q(X(b,Y(e=>({height:e.visibleHeight,width:e.visibleWidth}))),C),{customScrollParent:g,data:ae,deviation:ie,footerHeight:i,gap:oe,headerHeight:a,increaseViewportBy:e,initialItemCount:ee,itemDimensions:w,overscan:n,restoreStateFrom:ce,scrollBy:o,scrollContainerState:s,scrollHeight:re,scrollTo:c,scrollToIndex:ne,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:C,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:te,horizontalDirection:pe,initialTopMostItemIndex:ue,totalListHeight:ve,...f,endReached:he,propsReady:h,rangeChanged:_e,startReached:ge,stateChanged:se,stateRestoreInProgress:le,...x}},lx(dC,Xx,aC,kC,GS,AC,Ix));function Yw(e,t,n){return Vw(1,Bw((e+n)/(Bw(t)+n)))}function Xw(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=Zw(e,t,n,r[0].index);return{bottom:Zw(e,t,n,r[r.length-1].index)+i,top:a}}function Zw(e,t,n,r){let i=Bw(r/Yw(e.width,n.width,t.column)),a=i*n.height+Vw(0,i-1)*t.row;return a>0?a+t.row:a}var Qw=Ox(([e,t])=>({...e,...t}),lx(Jw,Ox(()=>{let e=Z(e=>`Item ${e}`),t=Z({}),n=Z(null),r=Z(`virtuoso-grid-item`),i=Z(`virtuoso-grid-list`),a=Z(YC),o=Z(`div`),s=Z(ox),c=(e,n=null)=>Tx(X(t,Y(t=>t[e]),_x()),n),l=Z(!1),u=Z(!1);return q(Q(u),l),{components:t,computeItemKey:a,context:n,FooterComponent:c(`Footer`),HeaderComponent:c(`Header`),headerFooterTag:o,itemClassName:r,ItemComponent:c(`Item`,`div`),itemContent:e,listClassName:i,ListComponent:c(`List`,`div`),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`,`div`)}}))),$w=T.memo(function(){let e=oT(`gridState`),t=oT(`listClassName`),n=oT(`itemClassName`),r=oT(`itemContent`),i=oT(`computeItemKey`),a=oT(`isSeeking`),o=sT(`scrollHeight`),s=oT(`ItemComponent`),c=oT(`ListComponent`),l=oT(`ScrollSeekPlaceholder`),u=oT(`context`),d=sT(`itemDimensions`),f=sT(`gap`),p=oT(`log`),m=oT(`stateRestoreInProgress`),h=sT(`reportReadyState`),g=Wx(T.useMemo(()=>e=>{let t=e.parentElement.parentElement.scrollHeight;o(t);let n=e.firstChild;if(n!==null){let{height:e,width:t}=n.getBoundingClientRect();d({height:e,width:t})}f({column:uT(`column-gap`,getComputedStyle(e).columnGap,p),row:uT(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return GC(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,E.jsx)(c,{className:t,ref:g,...sw(c,u),"data-testid":`virtuoso-item-list`,style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let o=i(t.index,t.data,u);return a?(0,E.jsx)(l,{...sw(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,T.createElement)(s,{...sw(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),eT=T.memo(function(){let e=oT(`HeaderComponent`),t=sT(`headerHeight`),n=oT(`headerFooterTag`),r=Wx(T.useMemo(()=>e=>{t(wS(e,`height`))},[t]),!0,!1),i=oT(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...sw(e,i)})})}),tT=T.memo(function(){let e=oT(`FooterComponent`),t=sT(`footerHeight`),n=oT(`headerFooterTag`),r=Wx(T.useMemo(()=>e=>{t(wS(e,`height`))},[t]),!0,!1),i=oT(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...sw(e,i)})})}),nT=({children:e})=>{let t=T.useContext(VC),n=sT(`itemDimensions`),r=sT(`viewportDimensions`),i=Wx(T.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return T.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,E.jsx)(`div`,{ref:i,style:iw(!1),children:e})},rT=({children:e})=>{let t=T.useContext(VC),n=sT(`windowViewportRect`),r=sT(`itemDimensions`),i=oT(`customScrollParent`),a=oT(`useWindowScroll`),o=Yx(n,i,!1);return T.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,E.jsx)(`div`,{ref:o,style:aw(!1,a),children:e})},{Component:iT,useEmitter:aT,useEmitterValue:oT,usePublisher:sT}=zC(Qw,{optional:{context:`context`,totalCount:`totalCount`,overscan:`overscan`,itemContent:`itemContent`,components:`components`,computeItemKey:`computeItemKey`,data:`data`,initialItemCount:`initialItemCount`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`headerFooterTag`,listClassName:`listClassName`,itemClassName:`itemClassName`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,restoreStateFrom:`restoreStateFrom`,initialTopMostItemIndex:`initialTopMostItemIndex`,increaseViewportBy:`increaseViewportBy`},methods:{scrollTo:`scrollTo`,scrollBy:`scrollBy`,scrollToIndex:`scrollToIndex`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,stateChanged:`stateChanged`,readyStateChanged:`readyStateChanged`}},T.memo(function({...e}){let t=oT(`useWindowScroll`),n=oT(`customScrollParent`),r=n||t?lT:cT,i=n||t?rT:nT,a=oT(`context`);return(0,E.jsx)(r,{...e,...sw(r,a),children:(0,E.jsxs)(i,{children:[(0,E.jsx)(eT,{}),(0,E.jsx)($w,{}),(0,E.jsx)(tT,{})]})})})),cT=dw({useEmitter:aT,useEmitterValue:oT,usePublisher:sT}),lT=fw({useEmitter:aT,useEmitterValue:oT,usePublisher:sT});function uT(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Nx.WARN),t===`normal`?0:parseInt(t??`0`,10)}var dT=64;function fT(e){if(!e)return;let t=e===`smooth`?`smooth`:!0;return e=>e?t:!1}function pT(e){if(e!==void 0)return e===`LAST`?{index:`LAST`,align:`end`}:e}function mT({items:e,itemContent:t,computeItemKey:n,followOutput:r,atBottomStateChange:i,atBottomThreshold:a=dT,firstItemIndex:o,startReached:s,endReached:c,initialTopMostItemIndex:l,overscan:u,increaseViewportBy:d,className:f,ref:p}){let m=(0,T.useRef)(null),h=(0,T.useRef)(null);(0,T.useImperativeHandle)(p,()=>({scrollToIndex({index:e,behavior:t,align:n}){m.current?.scrollToIndex({index:e,behavior:t,align:n})},scrollToBottom(e){m.current?.scrollToIndex({index:`LAST`,align:`end`,behavior:e?.behavior})},getScrollElement(){return h.current}}),[]);let g=(0,T.useMemo)(()=>fT(r),[r]),_=(0,T.useMemo)(()=>pT(l),[l]);return(0,E.jsx)(xw,{ref:m,"data-slot":`virtual-list`,className:v(`bg-[var(--surface-base)]`,f),data:e,itemContent:t,computeItemKey:n,followOutput:g,atBottomStateChange:i,atBottomThreshold:a,startReached:s,endReached:c,scrollerRef:e=>{h.current=e&&`nodeType`in e?e:null},...o===void 0?{}:{firstItemIndex:o},..._===void 0?{}:{initialTopMostItemIndex:_},...u===void 0?{}:{overscan:u},...d===void 0?{}:{increaseViewportBy:d}})}var hT=`Collapsible`,[gT,_T]=Oe(hT),[vT,yT]=gT(hT),bT=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Te({prop:r,defaultProp:i??!1,onChange:o,caller:hT});return(0,E.jsx)(vT,{scope:n,disabled:a,contentId:xe(),open:c,onOpenToggle:T.useCallback(()=>l(e=>!e),[l]),children:(0,E.jsx)(ke.div,{"data-state":ET(c),"data-disabled":a?``:void 0,...s,ref:t})})});bT.displayName=hT;var xT=`CollapsibleTrigger`,ST=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=yT(xT,n);return(0,E.jsx)(ke.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ET(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:Ee(e.onClick,i.onOpenToggle)})});ST.displayName=xT;var CT=`CollapsibleContent`,wT=T.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=yT(CT,e.__scopeCollapsible);return(0,E.jsx)(De,{present:n||i.open,children:({present:e})=>(0,E.jsx)(TT,{...r,ref:t,present:e})})});wT.displayName=CT;var TT=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=yT(CT,n),[s,c]=T.useState(r),l=T.useRef(null),u=_(t,l),d=T.useRef(0),f=d.current,p=T.useRef(0),m=p.current,h=o.open||s,g=T.useRef(h),v=T.useRef(void 0);return T.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),we(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,E.jsx)(ke.div,{"data-state":ET(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function ET(e){return e?`open`:`closed`}var DT=bT,OT=ST,kT=wT,AT=`Accordion`,jT=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[MT,NT,PT]=be(AT),[FT,IT]=Oe(AT,[PT,_T]),LT=_T(),RT=T.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,E.jsx)(MT.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,E.jsx)(WT,{...a,ref:t}):(0,E.jsx)(UT,{...i,ref:t})})});RT.displayName=AT;var[zT,BT]=FT(AT),[VT,HT]=FT(AT,{collapsible:!1}),UT=T.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=Te({prop:n,defaultProp:r??``,onChange:i,caller:AT});return(0,E.jsx)(zT,{scope:e.__scopeAccordion,value:T.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:T.useCallback(()=>a&&c(``),[a,c]),children:(0,E.jsx)(VT,{scope:e.__scopeAccordion,collapsible:a,children:(0,E.jsx)(qT,{...o,ref:t})})})}),WT=T.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=Te({prop:n,defaultProp:r??[],onChange:i,caller:AT}),c=T.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=T.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,E.jsx)(zT,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,E.jsx)(VT,{scope:e.__scopeAccordion,collapsible:!0,children:(0,E.jsx)(qT,{...a,ref:t})})})}),[GT,KT]=FT(AT),qT=T.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=_(T.useRef(null),t),c=NT(n),l=Ce(i)===`ltr`,u=Ee(e.onKeyDown,e=>{if(!jT.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,E.jsx)(GT,{scope:n,disabled:r,direction:i,orientation:a,children:(0,E.jsx)(MT.Slot,{scope:n,children:(0,E.jsx)(ke.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),JT=`AccordionItem`,[YT,XT]=FT(JT),ZT=T.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=KT(JT,n),o=BT(JT,n),s=LT(n),c=xe(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,E.jsx)(YT,{scope:n,open:l,disabled:u,triggerId:c,children:(0,E.jsx)(DT,{"data-orientation":a.orientation,"data-state":iE(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});ZT.displayName=JT;var QT=`AccordionHeader`,$T=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=KT(AT,n),a=XT(QT,n);return(0,E.jsx)(ke.h3,{"data-orientation":i.orientation,"data-state":iE(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});$T.displayName=QT;var eE=`AccordionTrigger`,tE=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=KT(AT,n),a=XT(eE,n),o=HT(eE,n),s=LT(n);return(0,E.jsx)(MT.ItemSlot,{scope:n,children:(0,E.jsx)(OT,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});tE.displayName=eE;var nE=`AccordionContent`,rE=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=KT(AT,n),a=XT(nE,n),o=LT(n);return(0,E.jsx)(kT,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});rE.displayName=nE;function iE(e){return e?`open`:`closed`}var aE=RT,oE=ZT,sE=$T,cE=tE,lE=rE;function uE({className:e,ref:t,...n}){return(0,E.jsx)(aE,{ref:t,"data-slot":`collapsible`,className:v(`flex w-full flex-col`,e),...n})}function dE({className:e,ref:t,...n}){return(0,E.jsx)(oE,{ref:t,"data-slot":`collapsible-item`,className:v(`flex flex-col`,e),...n})}function fE({className:e,ref:t,...n}){return(0,E.jsx)(sE,{"data-slot":`collapsible-header`,className:`flex`,children:(0,E.jsx)(cE,{ref:t,"data-slot":`collapsible-trigger`,className:v(`flex min-w-0 flex-1 items-center`,`cursor-pointer select-none`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,e),...n})})}function pE({className:e,ref:t,children:n,...r}){return(0,E.jsx)(lE,{ref:t,"data-slot":`collapsible-content`,className:v(`collapsible-content overflow-hidden`,e),...r,children:n})}var mE={Root:uE,Item:dE,Trigger:fE,Content:pE},hE={default:`text-[var(--content-default)]`,negative:`text-[var(--system-negative-strong)]`,muted:`text-[var(--content-tertiary)]`};function gE({icon:e,value:t,label:n,tone:r=`default`,className:i,ref:a,...o}){return(0,E.jsxs)(`div`,{...o,ref:a,"data-slot":`stat-square`,className:v(`flex flex-1 items-center gap-3 rounded-xl bg-[var(--surface-base)] p-3`,i),children:[e?(0,E.jsx)(`span`,{"aria-hidden":!0,className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--surface-lift)] text-[var(--content-emphasised)]`,children:e}):null,(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,E.jsx)(`span`,{className:v(`text-title-small leading-none`,hE[r]),children:t}),(0,E.jsx)(`span`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:n})]})]})}var _E={command:`⌘`,cmd:`⌘`,commandorcontrol:`⌘`,cmdorctrl:`⌘`,super:`⌘`,meta:`⌘`,control:`⌃`,ctrl:`⌃`,alt:`⌥`,option:`⌥`,altgr:`⌥`,shift:`⇧`},vE={up:`↑`,down:`↓`,left:`←`,right:`→`,return:`↩`,enter:`↩`,space:`␣`,backspace:`⌫`,delete:`⌦`,escape:`⎋`,esc:`⎋`,tab:`⇥`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`,plus:`+`},yE=e=>{let t=e.split(`+`),n=[];for(let e=0;e<t.length;e+=1){let r=t[e];r===``&&e===t.length-1&&n.length>0?n.push(`+`):r!==``&&n.push(r)}return n},bE=e=>{let t=e.toLowerCase();return _E[t]??vE[t]??e.toUpperCase()},xE=e=>yE(e).map(bE);function SE({accelerator:e,className:t,ref:n,...r}){let i=xE(e);return(0,E.jsx)(`span`,{...r,ref:n,"data-slot":`shortcut-keys`,className:v(`inline-flex items-center gap-1`,t),children:i.map((e,t)=>(0,E.jsx)(`kbd`,{className:v(`inline-flex items-center justify-center`,`min-w-5 h-5 px-1 rounded-[4px]`,`text-body-small-emphasised leading-none`,`bg-[var(--tag-bg-neutral)] text-[color:var(--content-default)]`),children:e},`${e}-${t}`))})}var CE=!1;function wE(){CE||typeof document>`u`||(CE=!0,document.documentElement.dataset.modality=`keyboard`,document.addEventListener(`pointerdown`,()=>{document.documentElement.dataset.modality=`pointer`},!0),document.addEventListener(`keydown`,e=>{(e.key===`Tab`||e.key===`ArrowUp`||e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(document.documentElement.dataset.modality=`keyboard`)},!0))}export{Dt as A,Mr as C,Gn as D,qn as E,Re as F,St as M,xt as N,Wn as O,ze as P,Fr as S,kr as T,Mc as _,mT as a,Vr as b,nb as c,Vy as d,Kl as f,Nl as g,kl as h,mE as i,Tt as j,Mt as k,tb as l,Gl as m,SE as n,qb as o,Wl as p,gE as r,wb as s,wE as t,rb as u,gc as v,Nr as w,Ur as x,Br as y};
291
+ `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var Wy={tokenize:Ky,concrete:!0,name:`mathFlow`},Gy={tokenize:qy,partial:!0};function Ky(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),$i(e,l,`whitespace`)(t))}function l(t){return t===null||k(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||k(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(Gy,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?$i(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):k(t)?e.attempt(Gy,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||k(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return $i(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),$i(e,c,`whitespace`)(t))}function c(r){return r===null||k(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function qy(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Jy(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Yy,previous:Xy,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||k(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Yy(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===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,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=`mathTextData`,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 Xy(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Zy(e){return{flow:{36:Wy},text:{36:Jy(e)}}}var Qy={};function $y(e){let t=this,n=e||Qy,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Zy(n)),a.push(Hy()),o.push(Uy(n))}var eb=400,tb=v(`mx-0 mt-0 mb-3 flex w-full items-center gap-3 rounded-md bg-[var(--surface-sunken)] px-3 py-2.5 text-body-small-lighter text-[var(--content-secondary)] last:mb-0`),nb=`w-0.5 shrink-0 self-stretch rounded-full bg-[var(--content-tertiary)]`,rb=`min-w-0 flex-1 [&_p]:mb-0`,ib=`rounded bg-stone-100 px-1 py-0.5 font-mono text-body-small-lighter dark:bg-moss-800`;function ab({visible:e,onClick:t,copied:n}){return(0,E.jsx)(`button`,{type:`button`,onClick:t,title:n?`Copied!`:`Copy`,className:v(`flex h-6 w-6 cursor-pointer items-center justify-center rounded-md bg-stone-200/80 text-[var(--content-tertiary)] transition-[opacity] duration-150 ease-out hover:bg-stone-300 hover:text-[var(--content-secondary)] [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100 dark:bg-moss-600/80 dark:hover:bg-moss-500 dark:hover:text-stone-200`,e?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`),children:(0,E.jsxs)(`div`,{className:`relative h-3.5 w-3.5`,children:[(0,E.jsx)(b,{className:v(`absolute inset-0 h-3.5 w-3.5 text-[var(--system-positive-strong)] transition-opacity duration-150 ease-out`,n?`opacity-100`:`opacity-0`)}),(0,E.jsx)(Se,{className:v(`absolute inset-0 h-3.5 w-3.5 transition-opacity duration-150 ease-out`,n?`opacity-0`:`opacity-100`)})]})})}function ob({children:e}){let[t,n]=(0,T.useState)(!1),[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(!1),s=(0,T.useRef)(null),c=(0,T.useRef)(null);(0,T.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let l=T.Children.toArray(e).find(e=>(0,T.isValidElement)(e)&&e.props.className?.startsWith(`language-`)),u=(0,T.isValidElement)(l)?l.props.className?.replace(`language-`,``):void 0,d=(0,T.useCallback)(()=>{let e=c.current?.textContent??``;navigator.clipboard.writeText(e).then(()=>{n(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{n(!1),s.current=null},1500)}).catch(()=>{})},[]),f=r||a;return(0,E.jsxs)(`div`,{className:`group/code relative mb-2 overflow-hidden rounded-md bg-stone-100 last:mb-0 dark:bg-moss-800`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||o(!1)},children:[u&&(0,E.jsxs)(`div`,{className:`flex items-center justify-between px-3 pt-2`,children:[(0,E.jsx)(`span`,{className:`font-mono text-xs font-medium uppercase text-[var(--content-tertiary)]`,children:u}),(0,E.jsx)(ab,{visible:f,onClick:d,copied:t})]}),(0,E.jsx)(`pre`,{ref:c,className:`overflow-auto p-3`,style:{maxHeight:eb},children:e}),!u&&(0,E.jsx)(`div`,{className:`absolute right-2 top-2`,children:(0,E.jsx)(ab,{visible:f,onClick:d,copied:t})})]})}function sb({href:e,children:t}){return(0,E.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-forest-600 underline hover:text-forest-700 dark:text-forest-400 dark:hover:text-forest-300`,children:t})}var cb=/\p{Emoji_Presentation}/u,lb=/\p{Extended_Pictographic}/u,ub=`️`,db=`︎`;function fb(e){return e.includes(ub)?!0:e.includes(db)?!1:cb.test(e)}var pb=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function mb(e){if(!lb.test(e)&&!e.includes(ub)||!pb)return e;let t=[],n=``,r=!1,i=0,a=()=>{n&&=(t.push(r?(0,E.jsx)(`span`,{style:{fontStyle:`normal`},children:n},i++):n),``)};for(let{segment:t}of pb.segment(e)){let e=fb(t);n&&e!==r&&a(),r=e,n+=t}return a(),t.length===1&&typeof t[0]==`string`?t[0]:t}function hb(e){return typeof e==`string`?mb(e):T.Children.map(e,e=>typeof e==`string`?mb(e):e)}function gb(e,t){return{p:({children:e})=>(0,E.jsx)(`p`,{className:`mb-6 last:mb-0`,children:e}),h1:({children:e})=>(0,E.jsx)(`h1`,{className:`mb-2 mt-3 text-title-medium !font-bold first:mt-0`,children:e}),h2:({children:e})=>(0,E.jsx)(`h2`,{className:`mb-2 mt-3 text-title-small !font-bold first:mt-0`,children:e}),h3:({children:e})=>(0,E.jsx)(`h3`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),ul:({children:e})=>(0,E.jsx)(`ul`,{className:`mb-2 list-disc pl-5 last:mb-0`,children:e}),ol:({children:e,start:t})=>(0,E.jsx)(`ol`,{start:t,className:`mb-2 list-decimal pl-5 last:mb-0`,children:e}),h4:({children:e})=>(0,E.jsx)(`h4`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),h5:({children:e})=>(0,E.jsx)(`h5`,{className:`mb-1 mt-2 text-body-small-lighter !font-bold first:mt-0`,children:e}),h6:({children:e})=>(0,E.jsx)(`h6`,{className:`mb-1 mt-2 text-body-small-lighter !font-bold text-[var(--content-secondary)] first:mt-0`,children:e}),li:({children:e,value:t})=>(0,E.jsx)(`li`,{value:t,className:`mb-0.5`,children:e}),a:({href:t,children:n})=>(0,E.jsx)(e,{href:t,children:n}),code:({className:e,children:t,...n})=>e?.startsWith(`language-`)?(0,E.jsx)(`code`,{className:v(`block w-max min-w-full font-mono text-body-small-lighter`,e),...n,children:t}):(0,E.jsx)(`code`,{className:ib,children:t}),pre:({children:e})=>(0,E.jsx)(ob,{children:e}),em:({children:e})=>(0,E.jsx)(`em`,{children:hb(e)}),blockquote:({children:e})=>(0,E.jsxs)(`blockquote`,{className:tb,children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:nb}),(0,E.jsx)(`div`,{className:rb,children:e})]}),table:({children:e})=>(0,E.jsx)(`div`,{className:`mb-2 overflow-x-auto last:mb-0`,children:(0,E.jsx)(`table`,{className:`min-w-full border-collapse text-body-small-lighter`,children:e})}),thead:({children:e})=>(0,E.jsx)(`thead`,{className:`bg-[var(--surface-sunken)]`,children:e}),th:({children:e})=>(0,E.jsx)(`th`,{className:`border border-stone-200 px-2 py-1 text-left font-semibold [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone dark:border-moss-600`,children:e}),td:({children:e})=>(0,E.jsx)(`td`,{className:`border border-stone-200 px-2 py-1 [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone dark:border-moss-600`,children:e}),hr:()=>(0,E.jsx)(`hr`,{className:`my-3 border-[var(--border-subtle)]`}),img:({src:e,alt:n})=>{let r=typeof e==`string`?e:``,i=typeof n==`string`?n:``;return!r||r.startsWith(`/`)||r.startsWith(`data:`)||r.startsWith(`blob:`)||r.startsWith(`.`)?(0,E.jsx)(`img`,{src:r,alt:i,className:`my-1 max-w-full rounded`}):t?(0,E.jsx)(t,{src:r,alt:i}):(0,E.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-stone-100 px-1.5 py-0.5 text-body-small-default text-stone-500 dark:bg-moss-800 dark:text-stone-400`,children:[`🔗 External image not rendered (`,i||r,`)`]})}}}var _b=/\$(\d[\d,]*(?:\.\d+)?(?:bn|tn|trn|[KMBT])?\+?)(?=$|[\s).,;:!?%"'’\]}/–—-]|&)/gi,vb=hl().use(Es).use(Vy);function yb(e){let t=vb.parse(e),n=[],r=e=>{if(e.type===`text`){let t=e.position?.start.offset,r=e.position?.end.offset;typeof t==`number`&&typeof r==`number`&&n.push([t,r]);return}if(Array.isArray(e.children))for(let t of e.children)r(t)};return r(t),n}function bb(e,t,n){let r=``,i=0;for(let[a,o]of t)a<i||(r+=e.slice(i,a),r+=n(e.slice(a,o),a),i=o);return r+=e.slice(i),r}function xb(e){if(!/\$\d/.test(e))return e;let t=yb(e);return t.length===0?e:bb(e,t,(t,n)=>t.replace(_b,(r,i,a)=>{let o=a>0?t[a-1]:n>0?e[n-1]:``;return o===`$`||o===`\\`?r:`\\$${i}`}))}function Sb(e){if(!e.includes(`
292
+ `))return e;let t=yb(e);return t.length===0?e:bb(e,t,e=>e.replace(/\n/g,`
293
+ `))}var Cb=/^\s{0,3}(\d{1,9})[.)]/;function wb(){return(e,t)=>{let n=String(t),r=e=>{if(e.type===`list`&&e.ordered&&Array.isArray(e.children)){let t=e.start??1;for(let r of e.children){let e=r,i=e.position?.start.offset,a=t;if(typeof i==`number`){let e=Cb.exec(n.slice(i,i+16));e&&(a=Number(e[1]))}a!==t&&(e.data??={},e.data.hProperties??={},e.data.hProperties.value=a),t=a+1}}if(Array.isArray(e.children))for(let t of e.children)r(t)};r(e)}}function Tb({content:e,className:t,hardLineBreaks:n,linkComponent:r,imageComponent:i,urlTransform:a,extraRehypePlugins:o,extraComponents:s}){let c=(0,T.useMemo)(()=>{let t=xb(e);return n?Sb(t):t},[e,n]),l=r??sb,u=(0,T.useMemo)(()=>({...gb(l,i),...s}),[l,i,s]),d=(0,T.useMemo)(()=>[Vg,...o??[]],[o]);return(0,E.jsx)(`div`,{"data-slot":`markdown-message`,className:v(`text-chat text-[var(--content-default)]`,t),children:(0,E.jsx)(kl,{remarkPlugins:[Vy,$y,wb],rehypePlugins:d,components:u,urlTransform:a,children:c})})}var Eb=(0,T.createContext)({collapsed:!1,contentCollapsed:!1,variant:`rail`});function Db(){return(0,T.useContext)(Eb)}function Ob(e){return e.variant===`rail`&&e.contentCollapsed}var kb=[`flex flex-col`,`bg-[var(--surface-overlay)]`,`text-[color:var(--content-default)]`,`overflow-hidden`].join(` `),Ab=`border border-[var(--border-base)]`,jb=[Ab,`w-[230px]`,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),Mb=[Ab,`w-[48px]`,`rounded-[12px]`,`pt-4 px-2 pb-2`].join(` `),Nb=[Ab,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),Pb=[`w-full`,`rounded-none`,`p-4`].join(` `),Fb=150,Ib=`transition-[width,padding] duration-[150ms] ease-in-out`;function Lb(e,t,n){return e===`overlay`?Pb:v(t?Mb:n?Nb:jb,Ib)}function Rb({ariaLabel:e,collapsed:t=!1,variant:n=`rail`,width:r,onWidthChange:i,minWidth:a=220,maxWidth:o=400,className:s,children:c,ref:l,style:u,...d}){let f=n===`overlay`?!1:t,p=n===`rail`&&i!=null,m=p&&!f,[h,g]=(0,T.useState)(f);!f&&h&&g(!1),(0,T.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>g(!0),Fb);return()=>clearTimeout(e)},[f]);let _=(0,T.useRef)(null),y=(0,T.useCallback)(e=>{if(!i)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.closest(`[data-slot="side-menu"]`);t&&(_.current={nav:t,startX:e.clientX,startWidth:t.getBoundingClientRect().width},t.style.transition=`none`,document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`)},[i]),b=(0,T.useCallback)(e=>{let t=_.current;if(!t)return;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));t.nav.style.width=`${r}px`},[a,o]),x=(0,T.useCallback)(e=>{let t=_.current;if(!t)return;e.currentTarget.releasePointerCapture(e.pointerId),_.current=null,t.nav.style.transition=``,document.body.style.cursor=``,document.body.style.userSelect=``;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));i?.(r)},[i,a,o]);(0,T.useEffect)(()=>()=>{_.current&&(_.current=null,document.body.style.cursor=``,document.body.style.userSelect=``)},[]);let S=p&&!f&&r!=null?{...u,width:r}:u;return(0,E.jsx)(Eb,{value:{collapsed:f,contentCollapsed:h,variant:n},children:(0,E.jsxs)(`nav`,{ref:l,"data-slot":`side-menu`,role:`navigation`,"aria-label":e,className:v(kb,m&&`relative`,Lb(n,f,p),s),style:S,...d,children:[c,m?(0,E.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 z-10 w-[6px] cursor-col-resize group/resize`,onPointerDown:y,onPointerMove:b,onPointerUp:x,onPointerCancel:x,children:(0,E.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-2 bottom-2 w-[2px] rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity group-hover/resize:opacity-100`})}):null]})})}function zb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-header`,className:v(`flex flex-col gap-2`,e),...r,children:t})}function Bb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-body`,className:v(`flex flex-1 flex-col gap-3 overflow-y-auto overflow-x-hidden`,e),...r,children:t})}function Vb({className:e,children:t,ref:n,...r}){return(0,E.jsx)(`div`,{ref:n,"data-slot":`side-menu-footer`,className:v(`mt-auto flex flex-col gap-2 pt-2`,e),...r,children:t})}function Hb({className:e,ref:t,...n}){return(0,E.jsx)(`hr`,{ref:t,"data-slot":`side-menu-separator`,className:v(`my-1 h-px w-full border-0 bg-[var(--border-base)]`,e),...n})}function Ub({title:e,actions:t,className:n,children:r,ref:i,...a}){let o=Ob(Db());return(0,E.jsxs)(`div`,{ref:i,"data-slot":`side-menu-section`,className:v(`flex flex-col gap-2`,n),...a,children:[!o&&(e||t)?(0,E.jsxs)(`div`,{className:`flex h-[30px] items-center justify-between px-[6px]`,children:[e?(0,E.jsx)(y,{variant:`body-medium-default`,as:`span`,className:`text-[color:var(--content-tertiary)]`,children:e}):(0,E.jsx)(`span`,{}),t?(0,E.jsx)(`div`,{className:`flex items-center gap-[4px]`,children:t}):null]}):null,r]})}function Wb({className:e,children:t,ref:n,...r}){return Ob(Db())?null:(0,E.jsx)(`ul`,{ref:n,"data-slot":`side-menu-sub-list`,className:v(`flex flex-col gap-[4px] list-none p-0 m-0`,e),...r,children:t})}function Gb({icon:e,indent:t,active:n,collapsed:r}){return t?(0,E.jsx)(`span`,{"aria-hidden":!0,className:`inline-block h-[14px] w-[14px] shrink-0`}):e?typeof e==`string`?(0,E.jsx)(`span`,{"aria-hidden":!0,className:v(`inline-flex h-[14px] w-[14px] shrink-0 items-center justify-center text-[14px] leading-none`,r?`mx-auto`:void 0),children:e}):(0,E.jsx)(e,{size:14,"aria-hidden":!0,className:v(`shrink-0`,n?`text-[color:var(--content-default)]`:`text-[color:var(--content-tertiary)]`,r?`mx-auto`:void 0)}):null}function Kb({children:e}){return(0,E.jsx)(`span`,{className:v(`inline-flex items-center justify-center`,`px-[4px] py-[2px] rounded-[4px]`,`bg-[var(--surface-base)]`,`text-label-small-default`,`text-[color:var(--content-tertiary)]`),children:e})}function qb({icon:e,label:t,showCollapsedTooltip:n=!1,tooltip:r,badge:i,trailingIcon:a,trailingIconClassName:o,indent:s=!1,active:c=!1,emphasized:l=!1,size:u=`default`,onSelect:d,href:p,className:m,ref:h,...g}){let _=Ob(Db()),y=v(`group relative flex w-full items-center`,`rounded-[6px]`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,`cursor-pointer select-none`,`transition-colors`,`h-[30px] max-md:h-auto gap-[6px] p-[6px]`,_?`justify-center`:`justify-start`,u===`compact`?`text-body-small-default max-md:text-body-large-default`:`text-body-medium-lighter max-md:py-3 max-md:text-body-large-default`,l?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,c?`bg-[var(--surface-active)] text-[color:var(--content-emphasised)]`:`hover:bg-[var(--surface-hover)]`,m),b=_?null:(0,E.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left text-optical-center`,children:t}),x=_||!i?null:(0,E.jsx)(Kb,{children:i}),S=_||!a?null:(0,E.jsx)(a,{size:14,"aria-hidden":!0,className:v(`shrink-0 text-[color:var(--content-tertiary)]`,o)}),ee=(0,E.jsx)(Gb,{icon:e,indent:s,active:c,collapsed:_}),te=r??(n?t:void 0),C=_&&te!=null,w=_&&!C?t:void 0,ne=c?`page`:void 0,re=e=>C?(0,E.jsx)(f,{content:te,side:`right`,children:e}):e;if(p){let{onClick:e,...t}=g;return re((0,E.jsxs)(`a`,{ref:h,"data-slot":`side-menu-item`,href:p,title:w,"aria-current":ne,className:y,onClick:t=>{e?.(t),t.defaultPrevented||d?.()},...t,children:[ee,b,x,S]}))}let{onClick:ie,onKeyDown:ae,...oe}=g;return re((0,E.jsxs)(`button`,{ref:h,"data-slot":`side-menu-item`,type:`button`,title:w,"aria-current":ne,className:y,onClick:e=>{ie?.(e),e.defaultPrevented||d?.()},onKeyDown:ae,...oe,children:[ee,b,x,S]}))}var Jb=Rb;Jb.Header=zb,Jb.Body=Bb,Jb.Footer=Vb,Jb.Section=Ub,Jb.SubList=Wb,Jb.Item=qb,Jb.Separator=Hb;var Yb=e(i(),1),Xb=0,Zb=1,Qb=2,$b=4;function ex(e){return()=>e}function tx(e){e()}function nx(e,t){return n=>e(t(n))}function rx(e,t){return()=>e(t)}function ix(e,t){return n=>e(t,n)}function ax(e){return e!==void 0}function ox(...e){return()=>{e.map(tx)}}function sx(){}function cx(e,t){return t(e),e}function lx(e,t){return t(e)}function ux(...e){return e}function dx(e,t){return e(Zb,t)}function fx(e,t){e(Xb,t)}function px(e){e(Qb)}function mx(e){return e($b)}function q(e,t){return dx(e,ix(t,Xb))}function hx(e,t){let n=e(Zb,e=>{n(),t(e)});return n}function gx(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function _x(e,t){return e===t}function vx(e=_x){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function J(e){return t=>n=>{e(n)&&t(n)}}function Y(e){return t=>nx(t,e)}function yx(e){return t=>()=>{t(e)}}function X(e,...t){let n=wx(...t);return((t,r)=>{switch(t){case Qb:px(e);return;case Zb:return dx(e,n(r))}})}function bx(e,t){return n=>r=>{n(t=e(t,r))}}function xx(e){return t=>n=>{e>0?e--:t(n)}}function Sx(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Cx(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;dx(e,e=>{let s=n;n|=o,t[a]=e,s!==i&&n===i&&r&&(r(),r=null)})}),e=>a=>{let o=()=>{e([a].concat(t))};n===i?o():r=o}}function wx(...e){return t=>e.reduceRight(lx,t)}function Tx(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case Zb:return a?n===a?void 0:(r(),n=a,t=dx(e,a),t):(r(),sx);case Qb:r(),n=null;return}}}function Z(e){let t=e,n=Dx();return((e,r)=>{switch(e){case Xb:t=r;break;case Zb:r(t);break;case $b:return t}return n(e,r)})}function Ex(e,t){return cx(Z(t),t=>q(e,t))}function Dx(){let e=[];return((t,n)=>{switch(t){case Xb:e.slice().forEach(e=>{e(n)});return;case Qb:e.splice(0,e.length);return;case Zb:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function Ox(e){return cx(Dx(),t=>q(e,t))}function kx(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:Ax(),singleton:n}}var Ax=()=>Symbol();function jx(e){let t=new Map,n=({constructor:e,dependencies:r,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);let o=e(r.map(e=>n(e)));return a&&t.set(i,o),o};return n(e)}function Mx(...e){let t=Dx(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;dx(e,e=>{n[a]=e,r|=o,r===i&&fx(t,n)})}),function(e,a){switch(e){case Qb:px(t);return;case Zb:return r===i&&a(n),dx(t,a)}}}function Q(e,t=_x){return X(e,vx(t))}function Nx(...e){return function(t,n){switch(t){case Qb:return;case Zb:return ox(...e.map(e=>dx(e,n)))}}}var Px={DEBUG:0,INFO:1,WARN:2,ERROR:3},Fx={[Px.DEBUG]:`debug`,[Px.ERROR]:`error`,[Px.INFO]:`log`,[Px.WARN]:`warn`},Ix=()=>typeof globalThis>`u`?window:globalThis,Lx=kx(()=>{let e=Z(Px.ERROR);return{log:Z((t,n,r=Px.INFO)=>{r>=(Ix().VIRTUOSO_LOG_LEVEL??mx(e))&&console[Fx[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0}),Rx=new WeakMap;function zx(e){return`self`in e?e.document.documentElement:e}function Bx(e){let t=zx(e),n=Rx.get(t);if(n!==void 0)return n;let r=t.ownerDocument.defaultView.getComputedStyle(t).direction===`rtl`;return Rx.set(t,r),r}function Vx(e){Rx.delete(zx(e))}function Hx(e,t){return Bx(e)?-t:t}var Ux=Hx;function Wx(e,t){return Hx(e,t)}function Gx(e,t,n){return Kx(e,t,n).callbackRef}function Kx(e,t,n){let r=T.useRef(null),i=e=>{},a=T.useMemo(()=>typeof ResizeObserver<`u`?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;n.offsetParent!==null&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(a?.observe(e),r.current=e):(r.current&&a?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function qx(e,t,n,r,i,a,o,s,c){return Kx(T.useCallback(n=>{let c=Jx(n.children,t,s?`offsetWidth`:`offsetHeight`,i),l=n.parentElement;for(;l.dataset.virtuosoScroller===void 0;)l=l.parentElement;let u=l.lastElementChild.dataset.viewportType===`window`,d;u&&(d=l.ownerDocument.defaultView);let f=o?s?o.scrollWidth:o.scrollHeight:u?s?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:s?l.scrollWidth:l.scrollHeight,p=o?s?o.offsetWidth:o.offsetHeight:u?s?d.innerWidth:d.innerHeight:s?l.offsetWidth:l.offsetHeight,m=o?s?Ux(o,o.scrollLeft):o.scrollTop:u?s?Ux(d,d.scrollX||d.document.documentElement.scrollLeft):d.scrollY||d.document.documentElement.scrollTop:s?Ux(l,l.scrollLeft):l.scrollTop;r({scrollHeight:f,scrollTop:Math.max(m,0),viewportHeight:p}),a?.(s?Yx(`column-gap`,getComputedStyle(n).columnGap,i):Yx(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function Jx(e,t,n,r){let i=e.length;if(i===0)return null;let a=[];for(let o=0;o<i;o++){let i=e.item(o);if(i.dataset.index===void 0)continue;let s=parseInt(i.dataset.index),c=parseFloat(i.dataset.knownSize),l=t(i,n);if(l===0&&r(`Zero-sized element, this should not happen`,{child:i},Px.ERROR),l===c)continue;let u=a[a.length-1];a.length===0||u.size!==l||u.endIndex!==s-1?a.push({endIndex:s,size:l,startIndex:s}):a[a.length-1].endIndex++}return a}function Yx(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Px.WARN),t===`normal`?0:parseInt(t??`0`,10)}function Xx(e,t,n){let r=T.useRef(null),i=T.useCallback(n=>{if(!n?.offsetParent)return;let i=n.getBoundingClientRect(),a=i.width,s,c;if(t){let e=t.getBoundingClientRect(),n=i.top-e.top;c=e.height-Math.max(0,n),s=n+t.scrollTop}else{let e=o.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,i.top),s=i.top+e.scrollY}r.current={listHeight:i.height,offsetTop:s,visibleHeight:c,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:a,ref:o}=Kx(i,!0,n),s=T.useCallback(()=>{i(o.current)},[i,o]);return T.useEffect(()=>{if(t){t.addEventListener(`scroll`,s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener(`scroll`,s),e.unobserve(t)}}let e=o.current?.ownerDocument.defaultView;return e?.addEventListener(`scroll`,s),e?.addEventListener(`resize`,s),()=>{e?.removeEventListener(`scroll`,s),e?.removeEventListener(`resize`,s)}},[s,t,o]),a}var Zx=kx(()=>{let e=Dx(),t=Dx(),n=Z(0),r=Dx(),i=Z(0),a=Dx(),o=Dx(),s=Z(0),c=Z(0),l=Z(0),u=Z(0),d=Dx(),f=Dx(),p=Z(!1),m=Z(!1),h=Z(!1);return q(X(e,Y(({scrollTop:e})=>e)),t),q(X(e,Y(({scrollHeight:e})=>e)),o),q(t,i),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:p,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:h,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:a}},[],{singleton:!0}),Qx={lvl:0};function $x(e,t){let n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]),a=[];for(let o=1;o<n;o++){let{index:n,value:s}=t(e[o]);a.push({end:n-1,start:r,value:i}),r=n,i=s}return a.push({end:1/0,start:r,value:i}),a}function eS(e){return e===Qx}function tS(e,t){if(!eS(e))return t===e.k?e.v:t<e.k?tS(e.l,t):tS(e.r,t)}function nS(e,t,n=`k`){if(eS(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=nS(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return nS(e.l,t,n)}function rS(e,t,n){return eS(e)?mS(t,n,1):t===e.k?uS(e,{k:t,v:n}):t<e.k?hS(uS(e,{l:rS(e.l,t,n)})):hS(uS(e,{r:rS(e.r,t,n)}))}function iS(){return Qx}function aS(e,t,n){if(eS(e))return[];let r=nS(e,t)[0];return vS(cS(e,r,n))}function oS(e,t){if(eS(e))return Qx;let{k:n,l:r,r:i}=e;if(t===n){if(eS(r))return i;if(eS(i))return r;let[t,n]=pS(r);return lS(uS(e,{k:t,l:dS(r),v:n}))}return lS(t<n?uS(e,{l:oS(r,t)}):uS(e,{r:oS(i,t)}))}function sS(e){return eS(e)?[]:[...sS(e.l),{k:e.k,v:e.v},...sS(e.r)]}function cS(e,t,n){if(eS(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(cS(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(cS(a,t,n))),s}function lS(e){let{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(fS(t))return gS(uS(e,{lvl:n-1}));if(!eS(t)&&!eS(t.r))return uS(t.r,{l:uS(t,{r:t.r.l}),lvl:n,r:uS(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(fS(e))return _S(uS(e,{lvl:n-1}));if(!eS(r)&&!eS(r.l)){let t=r.l,i=fS(t)?r.lvl-1:r.lvl;return uS(t,{l:uS(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:_S(uS(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function uS(e,t){return mS(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function dS(e){return eS(e.r)?e.l:lS(uS(e,{r:dS(e.r)}))}function fS(e){return eS(e)||e.lvl>e.r.lvl}function pS(e){return eS(e.r)?[e.k,e.v]:pS(e.r)}function mS(e,t,n,r=Qx,i=Qx){return{k:e,l:r,lvl:n,r:i,v:t}}function hS(e){return _S(gS(e))}function gS(e){let{l:t}=e;return!eS(t)&&t.lvl===e.lvl?uS(t,{r:uS(e,{l:t.r})}):e}function _S(e){let{lvl:t,r:n}=e;return!eS(n)&&!eS(n.r)&&n.lvl===t&&n.r.lvl===t?uS(n,{l:uS(e,{r:n.l}),lvl:t+1}):e}function vS(e){return $x(e,({k:e,v:t})=>({index:e,value:t}))}function yS(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function bS(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var xS=kx(()=>({recalcInProgress:Z(!1)}),[],{singleton:!0});function SS(e,t,n){return e[CS(e,t,n)]}function CS(e,t,n,r=0){let i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw Error(`Failed binary finding record in array - ${e.join(`,`)}, searched for ${t}`)}function wS(e,t,n,r){let i=CS(e,t,r),a=CS(e,n,r,i);return e.slice(i,a+1)}function TS(e,t){return Math.round(e.getBoundingClientRect()[t])}function ES(e){return!eS(e.groupOffsetTree)}function DS({index:e},t){return t===e?0:t<e?-1:1}function OS(){return{groupIndices:[],groupOffsetTree:iS(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:iS()}}function kS(e,t){let n=eS(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),eS(e)){e=rS(e,0,i);continue}let o=aS(e,a-1,t+1);if(o.some(VS(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=oS(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=rS(e,t+1,a));c&&(e=rS(e,a,i))}return[e,n]}function AS(e){return typeof e.groupIndex<`u`}function jS({offset:e},t){return t===e?0:t<e?-1:1}function MS(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=SS(t,e,DS),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function NS(e,t){if(!ES(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function PS(e,t,n){if(AS(e))return t.groupIndices[e.groupIndex]+1;let r=NS(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function FS(e,t,n,r=0){return r>0&&(t=Math.max(t,SS(e,r,DS).offset)),$x(wS(e,t,n,jS),BS)}function IS(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,Px.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&eS(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>rS(rS(t,n,e),n+1,r),o)}else [o,s]=kS(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=zS(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>rS(e,t,MS(t,d,i)),iS()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function LS(e){return sS(e).map(({k:e,v:t},n,r)=>{let i=r[n+1];return{endIndex:i===void 0?1/0:i.k-1,size:t,startIndex:e}})}function RS(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function zS(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=CS(i,t-1,DS),s=i[c].offset;let e=nS(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===nS(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of aS(n,t,1/0)){let t=e-a,n=t*o+s+t*r;i.push({index:e,offset:n,size:c}),a=e,s=n,o=c}return{lastIndex:a,lastOffset:s,lastSize:o,offsetTree:i}}function BS(e){return{index:e.index,value:e}}function VS(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}var HS={offsetHeight:`height`,offsetWidth:`width`},US=kx(([{log:e},{recalcInProgress:t}])=>{let n=Dx(),r=Dx(),i=Ex(r,0),a=Dx(),o=Dx(),s=Z(0),c=Z([]),l=Z(void 0),u=Z(void 0),d=Z(void 0),f=Z(void 0),p=Z((e,t)=>TS(e,HS[t])),m=Z(void 0),h=Z(0),g=OS(),_=Ex(X(n,Cx(c,e,h),bx(IS,g),vx()),g),v=Ex(X(c,vx(),bx((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),Y(({prev:e})=>e)),[]);q(X(c,J(e=>e.length>0),Cx(_,h),Y(([e,t,n])=>{let r=e.reduce((e,r,i)=>rS(e,r,MS(r,t.offsetTree,n)||i),iS());return{...t,groupIndices:e,groupOffsetTree:r}})),_),q(X(r,Cx(_),J(([e,{lastIndex:t}])=>e<t),Y(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),q(l,u);let y=Ex(X(l,Y(e=>e===void 0)),!0);q(X(u,J(e=>e!==void 0&&eS(mx(_).sizeTree)),Y(e=>{let t=mx(d),n=mx(c).length>0;return t!==void 0&&t!==0?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),q(X(f,J(e=>e!==void 0&&e.length>0&&eS(mx(_).sizeTree)),Y(e=>{let t=[],n=e[0],r=0;for(let i=1;i<e.length;i++){let a=e[i];a!==n&&(t.push({endIndex:i-1,size:n,startIndex:r}),n=a,r=i)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),q(X(c,Cx(d,u),J(([,e,t])=>e!==void 0&&t!==void 0),Y(([e,t,n])=>{let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];r.push({startIndex:a,endIndex:a,size:t}),o!==void 0&&r.push({startIndex:a+1,endIndex:o-1,size:n})}return r})),n);let b=Ox(X(n,Cx(_),bx(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),Y(e=>e.changed)));dx(X(s,bx((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),Y(e=>e.diff)),e=>{let{groupIndices:n}=mx(_);if(e>0)fx(t,!0),fx(a,e+RS(e,n));else if(e<0){let t=mx(v);t.length>0&&(e-=RS(-e,t)),fx(o,e)}}),dx(X(s,Cx(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},Px.ERROR)});let x=Ox(a);q(X(a,Cx(_),Y(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=tS(t.sizeTree,0),a=0,o=0;for(;a<e;){let e=t.groupIndices[o],s=t.groupIndices.length===o+1?1/0:t.groupIndices[o+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:i,startIndex:e+1}),o++,a+=s+1}let s=sS(t.sizeTree);return a!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let i=t.ranges;return t.prevSize!==0&&(i=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:i}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return sS(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:i,ranges:[]}).ranges})),n);let S=Ox(X(o,Cx(_,h),Y(([e,{offsetTree:t},n])=>MS(-e,t,n))));return q(X(o,Cx(_,h),Y(([e,t,n])=>{if(t.groupIndices.length>0){if(eS(t.sizeTree))return t;let r=iS(),i=mx(v),a=0,o=0,s=0;for(;a<-e;){s=i[o];let e=i[o+1]-s-1;o++,a+=e+1}if(r=sS(t.sizeTree).reduce((t,{k:n,v:r})=>rS(t,Math.max(0,n+e),r),r),a!==-e){let n=tS(t.sizeTree,s);r=rS(r,0,n);let i=nS(t.sizeTree,-e+1)[1];r=rS(r,1,i)}return{...t,sizeTree:r,...zS(t.offsetTree,0,r,n)}}let r=sS(t.sizeTree).reduce((t,{k:n,v:r})=>rS(t,Math.max(0,n+e),r),iS());return{...t,sizeTree:r,...zS(t.offsetTree,0,r,n)}})),_),{beforeUnshiftWith:x,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,fixedGroupSize:d,gap:h,groupIndices:c,heightEstimates:f,itemSize:p,listRefresh:b,shiftWith:o,shiftWithOffset:S,sizeRanges:n,sizes:_,statefulTotalCount:i,totalCount:r,trackItemSizes:y,unshiftWith:a}},ux(Lx,xS),{singleton:!0});function WS(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var GS=kx(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=Dx(),o=Dx(),s=Ox(X(a,Y(WS)));return q(X(s,Y(e=>e.totalCount)),n),q(X(s,Y(e=>e.groupIndices)),e),q(X(Mx(i,t,r),J(([e,t])=>ES(t)),Y(([e,t,n])=>nS(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),vx(),Y(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},ux(US,Zx)),KS=kx(([{log:e}])=>{let t=Z(!1),n=Ox(X(t,J(e=>e),vx()));return dx(t,t=>{t&&mx(e)(`props updated`,{},Px.DEBUG)}),{didMount:n,propsReady:t}},ux(Lx),{singleton:!0}),qS=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function JS(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!qS)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var YS=kx(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:a,footerHeight:o,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{let p=Dx(),m=Dx(),h=Z(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),fx(c,!1)}return q(X(p,Cx(n,d,r,h,s,o,f),Cx(e,a,i),Y(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=JS(e),{align:x,behavior:S,offset:ee}=b,te=i-1,C=PS(b,n,te),w=MS(C,n.offsetTree,d)+o;x===`end`?(w+=f+nS(n.sizeTree,C)[1]-r+h,C===te&&(w+=s)):x===`center`?w+=(f+nS(n.sizeTree,C)[1]-r+h)/2:w-=a,ee!==void 0&&ee!==0&&(w+=ee);let ne=t=>{y(),t?(l(`retrying to scroll to`,{location:e},Px.DEBUG),fx(p,e)):(fx(m,!0),l(`list did not change, scroll successful`,{},Px.DEBUG))};if(y(),S===`smooth`){let e=!1;v=dx(t,t=>{e||=t}),g=hx(u,()=>{ne(e)})}else g=hx(X(t,XS(150)),ne);return _=setTimeout(()=>{y()},1200),fx(c,!0),l(`scrolling from index to`,{behavior:S,index:C,top:w},Px.DEBUG),{behavior:S,top:w}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},ux(US,Zx,Lx),{singleton:!0});function XS(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function ZS(e,t){e===0?t():requestAnimationFrame(()=>{ZS(e-1,t)})}function QS(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var $S=kx(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=Z(!0),c=Z(0),l=Z(!0);return q(X(o,Cx(c),J(([e,t])=>t!==0),yx(!1)),s),q(X(o,Cx(c),J(([e,t])=>t!==0),yx(!1)),l),dx(X(Mx(t,o),Cx(s,n,e,l),J(([[,e],t,{sizeTree:n},r,i])=>e&&(!eS(n)||ax(r))&&!t&&!i),Cx(c)),([,e])=>{hx(i,()=>{fx(l,!0)}),ZS(4,()=>{hx(r,()=>{fx(s,!0)}),fx(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},ux(US,Zx,YS,KS),{singleton:!0});function eC(e,t){return Math.abs(e-t)<1.01}var tC=`up`,nC=`down`,rC=`none`,iC={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},aC=0,oC=kx(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=Z(!1),s=Z(!0),c=Dx(),l=Dx(),u=Z(4),d=Z(aC),f=Ex(X(Nx(X(Q(i),xx(1),yx(!0)),X(Q(i),xx(1),yx(!1),gx(100))),vx()),!1),p=Ex(X(Nx(X(n,yx(!0)),X(n,yx(!1),gx(200))),vx()),!1);q(X(Mx(Q(i),Q(d)),Y(([e,t])=>e<=t),vx()),s),q(X(s,Sx(50)),l);let m=Ox(X(Mx(r,Q(a),Q(t),Q(e),Q(u)),bx((e,[{scrollHeight:t,scrollTop:n},r,i,a,o])=>{let s=n+r-t>-o,c={scrollHeight:t,scrollTop:n,viewportHeight:r};if(s){let t,r;return n>e.state.scrollTop?(t=`SCROLLED_DOWN`,r=e.state.scrollTop-n):(t=`SIZE_DECREASED`,r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:c}}let l;return l=c.scrollHeight>e.state.scrollHeight?`SIZE_INCREASED`:r<e.state.viewportHeight?`VIEWPORT_HEIGHT_DECREASING`:n<e.state.scrollTop?`SCROLLING_UPWARDS`:`NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM`,{atBottom:!1,notAtBottomBecause:l,state:c}},iC),vx((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=Ex(X(r,bx((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!eC(e.scrollHeight,t)){let i=t-(n+r)<1;return e.scrollTop!==n&&i?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),J(e=>e.changed),Y(e=>e.jump)),0);q(X(m,Y(e=>e.atBottom)),o),q(X(o,Sx(50)),c);let g=Z(nC);q(X(r,Y(({scrollTop:e})=>e),vx(),bx((e,t)=>mx(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?tC:nC,prevScrollTop:t},{direction:nC,prevScrollTop:0}),Y(e=>e.direction)),g),q(X(r,Sx(50),yx(rC)),g);let _=Z(0);return q(X(f,J(e=>!e),yx(0)),_),q(X(i,Sx(100),Cx(f),J(([e,t])=>t),bx(([e,t],[n])=>[t,n],[0,0]),Y(([e,t])=>t-e)),_),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:h,scrollDirection:g,scrollVelocity:_}},ux(Zx)),sC=`top`,cC=`bottom`,lC=`none`;function uC(e,t,n){return typeof e==`number`?n===tC&&t===sC||n===nC&&t===cC?e:0:n===tC?t===sC?e.main:e.reverse:t===cC?e.main:e.reverse}function dC(e,t){return typeof e==`number`?e:e[t]??0}var fC=kx(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=Dx(),o=Z(0),s=Z(0),c=Z(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:Ex(X(Mx(Q(r),Q(i),Q(n),Q(a,bS),Q(c),Q(o),Q(t),Q(e),Q(s)),Y(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=lC,m=dC(l,sC),h=dC(l,cC);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=tC),i<e-f+t+h&&(p=nC),p===lC?null:[Math.max(u-n-uC(a,sC,p)-m,0),u-f-s+t+uC(a,cC,p)+h]}),J(e=>e!==null),vx(bS)),[0,0])}},ux(Zx),{singleton:!0});function pC(e,t,n){if(ES(t)){let r=NS(e,t);return[{index:nS(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}var mC={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function hC(e,t,n,r,i,a){let{lastIndex:o,lastOffset:s,lastSize:c}=i,l=0,u=0;if(e.length>0){l=e[0].offset;let t=e[e.length-1];u=t.offset+t.size}let d=n-o,f=s+d*c+(d-1)*r,p=l,m=f-u;return{bottom:u,firstItemIndex:a,items:_C(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:_C(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function gC(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-o>=e)break;o++}let s=e+o,c=QS(t,s);return hC(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function _C(e,t,n){if(e.length===0)return[];if(!ES(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,i=e[e.length-1].index,a=[],o=aS(t.groupOffsetTree,r,i),s,c=0;for(let r of e){(!s||s.end<r.index)&&(s=o.shift(),c=t.groupIndices.indexOf(s.start));let e;e=r.index===s.start?{index:c,type:`group`}:{groupIndex:c,index:r.index-(c+1)+n},a.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return a}function vC(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var yC=kx(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},a,{listBoundary:o,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:p},{recalcInProgress:m}])=>{let h=Z([]),g=Z(0),_=Dx(),v=Z(0);q(a.topItemsIndexes,h);let y=Ex(X(Mx(p,m,Q(c,bS),Q(i),Q(r),Q(l),u,Q(h),Q(t),Q(n),Q(v),e),J(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),Y(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=mx(g);if(n===0)return{...mC,totalCount:n};if(e===0&&t===0)return m===0?{...mC,totalCount:n}:gC(m,i,r,s,c,u||[]);if(eS(p))return m>0?null:hC(pC(QS(i,n),d,u),[],n,c,d,s);let h=[];if(o.length>0){let e=o[0],t=o[o.length-1],n=0;for(let r of aS(p,e,t)){let i=r.value,a=Math.max(r.start,e),o=Math.min(r.end,t);for(let e=a;e<=o;e++)h.push({data:u?.[e],index:e,offset:n,size:i}),n+=i}}if(!a)return hC([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=FS(f,e,t,_);if(v.length===0)return null;let y=n-1,b=cx([],n=>{for(let r of v){let i=r.value,a=i.offset,o=r.start,s=i.size;if(i.offset<e){o+=Math.floor((e-i.offset+c)/(s+c));let t=o-r.start;a+=t*s+t*c}o<_&&(a+=(_-o)*s,o=_);let l=Math.min(r.end,y);for(let e=o;e<=l&&!(a>=t);e++)n.push({data:u?.[e],index:e,offset:a,size:s}),a+=s+c}}),x=vC(l,sC),S=vC(l,cC);if(b.length>0&&(x>0||S>0)){let e=b[0],t=b[b.length-1];if(x>0&&e.index>_){let t=Math.min(x,e.index-_),n=[],r=e.offset;for(let i=e.index-1;i>=e.index-t;i--){let t=aS(p,i,i)[0]?.value??e.size;r-=t+c,n.unshift({data:u?.[i],index:i,offset:r,size:t})}b.unshift(...n)}if(S>0&&t.index<y){let e=Math.min(S,y-t.index),n=t.offset+t.size+c;for(let r=t.index+1;r<=t.index+e;r++){let e=aS(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return hC(b,h,n,c,d,s)}),J(e=>e!==null),vx()),mC);q(X(e,J(ax),Y(e=>e?.length)),i),q(X(y,Y(e=>e.topListHeight)),d),q(d,s),q(X(y,Y(e=>[e.top,e.bottom])),o),q(X(y,Y(e=>e.items)),_);let b=Ox(X(y,J(({items:e})=>e.length>0),Cx(i,e),J(([{items:e},t])=>e[e.length-1].originalIndex===t-1),Y(([,e,t])=>[e-1,t]),vx(bS),Y(([e])=>e))),x=Ox(X(y,Sx(200),J(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),Y(({items:e})=>e[0].index),vx()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:Ox(X(y,J(({items:e})=>e.length>0),Y(({items:e})=>{let t=0,n=e.length-1;for(;e[t].type===`group`&&t<n;)t++;for(;e[n].type===`group`&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),vx(yS))),startReached:x,topItemsIndexes:h,...f}},ux(US,GS,fC,$S,YS,oC,KS,xS),{singleton:!0}),bC=kx(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=Dx(),o=Ex(X(Mx(n,e,r,t,i),Y(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return q(Q(o),a),{totalListHeight:o,totalListHeightChanged:a}},ux(Zx,yC),{singleton:!0}),xC=kx(([{viewportHeight:e},{totalListHeight:t}])=>{let n=Z(!1);return{alignToBottom:n,paddingTopAddition:Ex(X(Mx(n,e,t),J(([e])=>e),Y(([,e,t])=>Math.max(0,e-t)),Sx(0),vx()),0)}},ux(Zx,bC),{singleton:!0}),SC=kx(()=>({context:Z(null)})),CC=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:a,viewportTop:o})=>t<o?{...i,align:n??`start`,...r===void 0?{}:{behavior:r}}:e>a?{...i,align:n??`end`,...r===void 0?{}:{behavior:r}}:null,wC=kx(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=Dx();return q(X(u,Cx(t,c,n,a,i,r,s),Cx(e),Y(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=CC,done:d,...f}=e,p=PS(e,t,r-1),m=MS(p,t.offsetTree,l)+i+a,h=m+nS(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&hx(X(o,J(e=>!e),xx(mx(o)?1:2)),d),_}),J(e=>e!==null)),l),{scrollIntoView:u}},ux(US,Zx,YS,yC,Lx),{singleton:!0});function TC(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var EC=(e,t)=>typeof e==`function`?TC(e(t)):t&&TC(e),DC=kx(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:s},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:p}])=>{let m=Z(!1),h=Dx(),g=null;function _(e){fx(o,{align:`end`,behavior:e,index:`LAST`})}dx(X(Mx(X(Q(t),xx(1)),c),Cx(Q(m),a,s,d),Y(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=EC(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),J(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),mx(n)===void 0?g=hx(e,()=>{mx(u)(`following output to `,{totalCount:r},Px.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{mx(u)(`following output to `,{totalCount:r},Px.DEBUG),_(t)})});function v(e){let t=hx(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(mx(u)(`scrolling to bottom due to increased size`,{},Px.DEBUG),_(`auto`))});setTimeout(t,100)}dx(X(Mx(Q(m),t,l),J(([e,,t])=>e!==!1&&t),bx(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),J(({refreshed:e})=>e),Cx(m,t)),([,e])=>{mx(s)&&v(e!==!1)}),dx(h,()=>{v(mx(m)!==!1)}),dx(Mx(Q(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=Z(null),b=Dx();return q(Nx(X(Q(r),Y(e=>e?.length??0)),X(Q(t))),b),dx(X(Mx(X(b,xx(1)),c),Cx(Q(y),s,d,f),Y(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),J(e=>!!e),Sx(0)),t=>{g!==null&&(g(),g=null),mx(n)===void 0?g=hx(e,()=>{mx(u)(`scrolling into view`,{}),fx(p,t),g=null}):requestAnimationFrame(()=>{mx(u)(`scrolling into view`,{}),fx(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},ux(US,oC,YS,$S,KS,Lx,Zx,SC,wC)),OC=kx(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(q(X(s,Cx(a),J(([,e])=>e!==0),Cx(i,r,t,n,e),Y(([[,e],t,n,r,i,a=[]])=>gC(e,t,n,r,i,a))),o),{}),ux(US,$S,yC,KS),{singleton:!0}),kC=kx(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=Z(0);return dx(X(e,Cx(r),J(([,e])=>e!==0),Y(([,e])=>({top:e}))),e=>{hx(X(n,xx(1),J(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{fx(t,e)})})}),{initialScrollTop:r}},ux(KS,Zx,yC),{singleton:!0}),AC=kx(([{scrollVelocity:e}])=>{let t=Z(!1),n=Dx(),r=Z(!1);return q(X(e,Cx(r,t,n),J(([e,t])=>t!==!1&&t!==void 0),Y(([e,t,n,r])=>{let{enter:i,exit:a}=t;if(n){if(a(e,r))return!1}else if(i(e,r))return!0;return n}),vx()),t),dx(X(Mx(t,e,n),Cx(r)),([[e,t,n],r])=>{e&&r!==!1&&r!==void 0&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},ux(oC),{singleton:!0}),jC=kx(([{scrollContainerState:e,scrollTo:t}])=>{let n=Dx(),r=Dx(),i=Dx(),a=Z(!1),o=Z(void 0);return q(X(Mx(n,r),Y(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),q(X(t,Cx(r),Y(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},ux(Zx)),MC=kx(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=Dx(),u=Z(void 0),d=Z(null),f=Z(null);return q(s,d),q(c,f),dx(X(l,Cx(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=LS(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),q(X(u,J(ax),Y(NC)),i),q(X(a,Cx(u),J(([,e])=>e!==void 0),vx(),Y(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},ux(US,Zx,$S,KS,jC));function NC(e){return{align:`start`,index:0,offset:e.scrollTop}}var PC=kx(([{topItemsIndexes:e}])=>{let t=Z(0);return q(X(t,J(e=>e>=0),Y(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},ux(yC));function FC(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var IC=FC(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),LC=kx(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:a,groupIndices:o,heightEstimates:s,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:p},{initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g},_,v,y,b,{scrollToIndex:x},S,{topItemCount:ee},{groupCounts:te},C])=>{let{listState:w,minOverscanItemCount:ne,topItemsIndexes:re,rangeChanged:ie,...ae}=b;return q(ie,C.scrollSeekRangeChanged),q(X(C.windowViewportRect,Y(e=>e.visibleHeight)),_.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:a,groupCounts:te,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g,sizeRanges:l,topItemCount:ee,topItemsIndexes:re,totalCount:f,...y,groupIndices:o,itemSize:c,listState:w,minOverscanItemCount:ne,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:ie,...ae,...C,..._,sizes:u,...v}},ux(US,$S,Zx,MC,DC,yC,YS,kx(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:p},{recalcInProgress:m}])=>{let h=Ox(X(c,Cx(o),bx(([,e,t,n],[{bottom:r,items:i,offsetBottom:a,totalCount:o},s])=>{let c=r+a,l=0;return t===o&&e.length>0&&i.length>0&&(i[0].originalIndex===0&&e[0].originalIndex===0||(l=c-n,l!==0&&(l+=s))),[l,i,o,c]},[0,[],0,0]),J(([e])=>e!==0),Cx(r,s,n,i,p,m),J(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===tC),Y(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},Px.DEBUG),e))));function g(n){n>0?(fx(t,{behavior:`auto`,top:-n}),fx(e,0)):(fx(e,0),fx(t,{behavior:`auto`,top:-n}))}return dx(X(h,Cx(e,a)),([t,n,r])=>{r&&IC()?fx(e,n-t):g(-t)}),dx(X(Mx(Ex(a,!1),e,m),J(([e,t,n])=>!e&&!n&&t!==0),Y(([e,t])=>t),Sx(1)),g),q(X(d,Y(e=>({top:-e}))),t),dx(X(l,Cx(f,u),Y(([e,{groupIndices:t,lastSize:n,sizeTree:r},i])=>{function a(e){return e*(n+i)}if(t.length===0)return a(e);let o=0,s=tS(r,0),c=0,l=0;for(;c<e;){c++,o+=s;let n=t.length===l+1?1/0:t[l+1]-t[l]-1;c+n>e&&(o-=s,n=e-c+1),c+=n,o+=a(n),l++}return o})),n=>{fx(e,n),requestAnimationFrame(()=>{fx(t,{top:n}),requestAnimationFrame(()=>{fx(e,0),fx(m,!1)})})}),{deviation:e}},ux(Zx,oC,yC,US,Lx,xS)),PC,GS,kx(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),ux(fC,OC,KS,AC,bC,kC,xC,jC,wC,Lx,SC))));function RC(e,t){let n={},r={},i=0,a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}var zC=typeof document<`u`?T.useLayoutEffect:T.useEffect;function BC(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=T.createContext({});function c(e,n){e.propsReady!==void 0&&fx(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];fx(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];fx(i,n[r])}e.propsReady!==void 0&&fx(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];fx(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=Tx(e[t.events[r]]),n),{})}return{Component:T.forwardRef(function(t,a){let{children:d,...f}=t,[p]=T.useState(()=>cx(jx(e),e=>{c(e,f)})),[m]=T.useState(rx(u,p));zC(()=>{for(let e of o)e in f&&dx(m[e],f[e]);return()=>{Object.values(m).map(px)}},[f,m,p]),zC(()=>{c(p,f)}),T.useImperativeHandle(a,ex(l(p)));let h=n;return(0,E.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,E.jsx)(h,{...RC([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=T.useContext(s)[e];zC(()=>dx(n,t),[t,n])},useEmitterValue:e=>{let t=T.useContext(s)[e],n=T.useCallback(e=>dx(t,e),[t]);return T.useSyncExternalStore(n,()=>mx(t),()=>mx(t))},usePublisher:e=>{let t=T.useContext(s);return T.useCallback(n=>{fx(t[e],n)},[t,e])}}}var VC=T.createContext(void 0),HC=T.createContext(void 0),UC=`-webkit-sticky`,WC=`sticky`,GC=FC(()=>{if(typeof document>`u`)return WC;let e=document.createElement(`div`);return e.style.position=UC,e.style.position===UC?UC:WC}),KC=typeof document<`u`?T.useLayoutEffect:T.useEffect;function qC(e){return`self`in e}function JC(e){return`body`in e}function YC(e,t,n,r=sx,i,a){let o=T.useRef(null),s=T.useRef(null),c=T.useRef(null),l=T.useCallback(n=>{let r,i,o,l=n.target;if(JC(l)||qC(l)){let e=qC(l)?l:l.defaultView;o=a===!0?Ux(e,e.scrollX):e.scrollY,r=a===!0?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=a===!0?e.innerWidth:e.innerHeight}else o=a===!0?Ux(l,l.scrollLeft):l.scrollTop,r=a===!0?l.scrollWidth:l.scrollHeight,i=a===!0?l.offsetWidth:l.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(o,0),viewportHeight:i})};n.suppressFlushSync===!0?u():Yb.flushSync(u),s.current!==null&&(o===s.current||o<=0||o===r-i)&&(s.current=null,t(!0),c.current&&=(clearTimeout(c.current),null))},[e,t,a]);T.useEffect(()=>{let e=i||o.current;return Vx(e),r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{Vx(e),r(null),e.removeEventListener(`scroll`,l)}},[o,l,n,r,i]);function u(n){let r=o.current;if(!r||(a===!0?`offsetWidth`in r&&r.offsetWidth===0:`offsetHeight`in r&&r.offsetHeight===0))return;let i=n.behavior===`smooth`,l,u,d;qC(r)?(u=Math.max(TS(r.document.documentElement,a===!0?`width`:`height`),a===!0?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),l=a===!0?r.innerWidth:r.innerHeight,d=a===!0?Ux(r,r.scrollX):r.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=TS(r,a===!0?`width`:`height`),d=a===!0?Ux(r,r.scrollLeft):r.scrollTop);let f=u-l;if(n.top===void 0){r.scrollTo(n);return}let p=Math.ceil(Math.max(Math.min(f,n.top),0));if(n.top=p,eC(l,u)||p===d){e({scrollHeight:u,scrollTop:d,viewportHeight:l}),i&&t(!0);return}i?(s.current=p,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,s.current=null,t(!0)},1e3)):s.current=null,a===!0&&(n={...n.behavior===void 0?{}:{behavior:n.behavior},left:Wx(r,p)}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:Wx(o.current,e.top)}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function XC(e){return e}var ZC=kx(([e,t])=>({...e,...t}),ux(LC,kx(()=>{let e=Z(e=>`Item ${e}`),t=Z(e=>`Group ${e}`),n=Z({}),r=Z(XC),i=Z(`div`),a=Z(sx),o=(e,t=null)=>Ex(X(n,Y(t=>t[e]),vx()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:o(`EmptyPlaceholder`),FooterComponent:o(`Footer`),GroupComponent:o(`Group`,`div`),groupContent:t,HeaderComponent:o(`Header`),HeaderFooterTag:i,ItemComponent:o(`Item`,`div`),itemContent:e,ListComponent:o(`List`,`div`),ScrollerComponent:o(`Scroller`,`div`),scrollerRef:a,ScrollSeekPlaceholder:o(`ScrollSeekPlaceholder`),TopItemListComponent:o(`TopItemList`)}}))),QC=({height:e})=>(0,E.jsx)(`div`,{style:{height:e}}),$C={overflowAnchor:`none`,position:GC(),zIndex:1},ew={overflowAnchor:`none`},tw={...ew,display:`inline-block`,height:`100%`},nw=T.memo(function({showTopList:e=!1}){let t=$(`listState`),n=yw(`sizeRanges`),r=$(`useWindowScroll`),i=$(`customScrollParent`),a=yw(`windowScrollContainerState`),o=yw(`scrollContainerState`),s=i||r?a:o,c=$(`itemContent`),l=$(`context`),u=$(`groupContent`),d=$(`trackItemSizes`),f=$(`itemSize`),p=$(`log`),m=yw(`gap`),h=$(`horizontalDirection`),{callbackRef:g}=qx(n,f,d,e?sx:s,p,m,i,h,$(`skipAnimationFrameInResizeObserver`)),[_,v]=T.useState(0);vw(`deviation`,e=>{_!==e&&v(e)});let y=$(`EmptyPlaceholder`),b=$(`ScrollSeekPlaceholder`)??QC,x=$(`ListComponent`),S=$(`ItemComponent`),ee=$(`GroupComponent`),te=$(`computeItemKey`),C=$(`isSeeking`),w=$(`groupIndices`).length>0,ne=$(`alignToBottom`),re=$(`initialItemFinalLocationReached`),ie=e?{}:{boxSizing:`border-box`,...h?{display:`inline-block`,height:`100%`,marginInlineStart:_===0?ne?`auto`:0:_,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:`nowrap`}:{marginTop:_===0?ne?`auto`:0:_,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...re?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,E.jsx)(y,{...cw(y,l)}):(0,E.jsx)(x,{...cw(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:ie,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=te(n+t.firstItemIndex,e.data,l);return C?(0,T.createElement)(b,{...cw(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,T.createElement)(ee,{...cw(ee,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:$C},u(e.index,l)):(0,T.createElement)(S,{...cw(S,l),...lw(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:h?tw:ew},w?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),rw={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},iw={outline:`none`,overflowX:`auto`,position:`relative`},aw=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),ow=(e,t,n=0)=>({...aw(e),position:t?`relative`:`absolute`,top:t?-n:0}),sw={position:GC(),top:0,width:`100%`,zIndex:1};function cw(e,t){if(typeof e!=`string`)return{context:t}}function lw(e,t){return{item:typeof e==`string`?void 0:t}}var uw=T.memo(function(){let e=$(`HeaderComponent`),t=yw(`headerHeight`),n=$(`HeaderFooterTag`),r=Gx(T.useMemo(()=>e=>{t(TS(e,`height`))},[t]),!0,$(`skipAnimationFrameInResizeObserver`)),i=$(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...cw(e,i)})})}),dw=T.memo(function(){let e=$(`FooterComponent`),t=yw(`footerHeight`),n=$(`HeaderFooterTag`),r=Gx(T.useMemo(()=>e=>{t(TS(e,`height`))},[t]),!0,$(`skipAnimationFrameInResizeObserver`)),i=$(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...cw(e,i)})})});function fw({useEmitter:e,useEmitterValue:t,usePublisher:n}){return T.memo(function({children:r,style:i,context:a,...o}){let s=n(`scrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`scrollerRef`),d=t(`horizontalDirection`)||!1,{scrollByCallback:f,scrollerRef:p,scrollToCallback:m}=YC(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,E.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?iw:rw,...i},tabIndex:0,...o,...cw(c,a),children:r})})}function pw({useEmitter:e,useEmitterValue:t,usePublisher:n}){return T.memo(function({children:r,style:i,context:a,...o}){let s=n(`windowScrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`totalListHeight`),d=t(`deviation`),f=t(`customScrollParent`),p=T.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=YC(s,l,c,t(`scrollerRef`),f);return KC(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,E.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...cw(c,a),children:r})})}var mw=({children:e})=>{let t=T.useContext(VC),n=yw(`viewportHeight`),r=yw(`fixedItemHeight`),i=$(`alignToBottom`),a=$(`horizontalDirection`),o=Gx(T.useMemo(()=>nx(n,e=>TS(e,a?`width`:`height`)),[n,a]),!0,$(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:aw(i),children:e})},hw=({children:e})=>{let t=T.useContext(VC),n=yw(`windowViewportRect`),r=yw(`fixedItemHeight`),i=$(`customScrollParent`),a=$(`useWindowScroll`),o=$(`topListHeight`),s=Xx(n,i,$(`skipAnimationFrameInResizeObserver`)),c=$(`alignToBottom`);return T.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`window`,ref:s,style:ow(c,a,o),children:e})},gw=({children:e})=>{let t=$(`TopItemListComponent`)??`div`,n=$(`headerHeight`);return(0,E.jsx)(t,{style:{...sw,marginTop:`${n}px`},...cw(t,$(`context`)),children:e})},{Component:_w,useEmitter:vw,useEmitterValue:$,usePublisher:yw}=BC(ZC,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,scrollIntoViewOnChange:`scrollIntoViewOnChange`,itemContent:`itemContent`,groupContent:`groupContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,groupCounts:`groupCounts`,topItemCount:`topItemCount`,firstItemIndex:`firstItemIndex`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,heightEstimates:`heightEstimates`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`HeaderFooterTag`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,horizontalDirection:`horizontalDirection`,skipAnimationFrameInResizeObserver:`skipAnimationFrameInResizeObserver`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,autoscrollToBottom:`autoscrollToBottom`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},T.memo(function(e){let t=$(`useWindowScroll`),n=$(`topItemsIndexes`).length>0,r=$(`customScrollParent`),i=$(`context`);return(0,E.jsxs)(r||t?xw:bw,{...e,context:i,children:[n&&(0,E.jsx)(gw,{children:(0,E.jsx)(nw,{showTopList:!0})}),(0,E.jsxs)(r||t?hw:mw,{children:[(0,E.jsx)(uw,{}),(0,E.jsx)(nw,{}),(0,E.jsx)(dw,{})]})]})})),bw=fw({useEmitter:vw,useEmitterValue:$,usePublisher:yw}),xw=pw({useEmitter:vw,useEmitterValue:$,usePublisher:yw}),Sw=_w,Cw=kx(([e,t])=>({...e,...t}),ux(LC,kx(()=>{let e=Z(e=>(0,E.jsxs)(`td`,{children:[`Item $`,e]})),t=Z(null),n=Z(e=>(0,E.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=Z(null),i=Z(null),a=Z({}),o=Z(XC),s=Z(sx),c=(e,t=null)=>Ex(X(a,Y(t=>t[e]),vx()),t);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c(`EmptyPlaceholder`),FillerRow:c(`FillerRow`),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`),TableBodyComponent:c(`TableBody`,`tbody`),TableComponent:c(`Table`,`table`),TableFooterComponent:c(`TableFoot`,`tfoot`),TableHeadComponent:c(`TableHead`,`thead`),TableRowComponent:c(`TableRow`,`tr`),GroupComponent:c(`Group`,`tr`)}}))),ww=({height:e})=>(0,E.jsx)(`tr`,{children:(0,E.jsx)(`td`,{style:{height:e}})}),Tw=({height:e})=>(0,E.jsx)(`tr`,{children:(0,E.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),Ew={overflowAnchor:`none`},Dw={position:GC(),zIndex:2,overflowAnchor:`none`},Ow=T.memo(function({showTopList:e=!1}){let t=Pw(`listState`),n=Pw(`computeItemKey`),r=Pw(`firstItemIndex`),i=Pw(`context`),a=Pw(`isSeeking`),o=Pw(`fixedHeaderHeight`),s=Pw(`groupIndices`).length>0,c=Pw(`itemContent`),l=Pw(`groupContent`),u=Pw(`ScrollSeekPlaceholder`)??ww,d=Pw(`GroupComponent`),f=Pw(`TableRowComponent`),p=(e?t.topItems:[]).reduce((e,t,n)=>(n===0?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,h=n(m+r,t.data,i),g=e?m===0?0:p[m-1]:0;return a?(0,T.createElement)(u,{...cw(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,T.createElement)(d,{...cw(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...Dw,top:o}},l(t.index,i)):(0,T.createElement)(f,{...cw(f,i),...lw(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:h,style:e?{...Dw,top:o+g}:Ew},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),kw=T.memo(function(){let e=Pw(`listState`),t=Pw(`topItemsIndexes`).length>0,n=Fw(`sizeRanges`),r=Pw(`useWindowScroll`),i=Pw(`customScrollParent`),a=Fw(`windowScrollContainerState`),o=Fw(`scrollContainerState`),s=i||r?a:o,c=Pw(`trackItemSizes`),{callbackRef:l,ref:u}=qx(n,Pw(`itemSize`),c,s,Pw(`log`),void 0,i,!1,Pw(`skipAnimationFrameInResizeObserver`)),[d,f]=T.useState(0);Nw(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=Pw(`EmptyPlaceholder`),m=Pw(`FillerRow`)??Tw,h=Pw(`TableBodyComponent`),g=Pw(`paddingTopAddition`),_=Pw(`statefulTotalCount`),v=Pw(`context`);if(_===0&&p!=null)return(0,E.jsx)(p,{...cw(p,v)});let y=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),b=e.offsetTop+g+d-y,x=e.offsetBottom,S=b>0?(0,E.jsx)(m,{context:v,height:b},`padding-top`):null,ee=x>0?(0,E.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,E.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...cw(h,v),children:[S,t&&(0,E.jsx)(Ow,{showTopList:!0}),(0,E.jsx)(Ow,{}),ee]})}),Aw=({children:e})=>{let t=T.useContext(VC),n=Fw(`viewportHeight`),r=Fw(`fixedItemHeight`),i=Gx(T.useMemo(()=>nx(n,e=>TS(e,`height`)),[n]),!0,Pw(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:aw(!1),children:e})},jw=({children:e})=>{let t=T.useContext(VC),n=Fw(`windowViewportRect`),r=Fw(`fixedItemHeight`),i=Pw(`customScrollParent`),a=Pw(`useWindowScroll`),o=Xx(n,i,Pw(`skipAnimationFrameInResizeObserver`));return T.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,E.jsx)(`div`,{"data-viewport-type":`window`,ref:o,style:ow(!1,a),children:e})},{Component:Mw,useEmitter:Nw,useEmitterValue:Pw,usePublisher:Fw}=BC(Cw,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,firstItemIndex:`firstItemIndex`,itemContent:`itemContent`,groupContent:`groupContent`,fixedHeaderContent:`fixedHeaderContent`,fixedFooterContent:`fixedFooterContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,topItemCount:`topItemCount`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,groupCounts:`groupCounts`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},T.memo(function(e){let t=Pw(`useWindowScroll`),n=Pw(`customScrollParent`),r=Fw(`fixedHeaderHeight`),i=Fw(`fixedFooterHeight`),a=Pw(`fixedHeaderContent`),o=Pw(`fixedFooterContent`),s=Pw(`context`),c=Gx(T.useMemo(()=>nx(r,e=>TS(e,`height`)),[r]),!0,Pw(`skipAnimationFrameInResizeObserver`)),l=Gx(T.useMemo(()=>nx(i,e=>TS(e,`height`)),[i]),!0,Pw(`skipAnimationFrameInResizeObserver`)),u=n||t?Lw:Iw,d=n||t?jw:Aw,f=Pw(`TableComponent`),p=Pw(`TableHeadComponent`),m=Pw(`TableFooterComponent`),h=a?(0,E.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...cw(p,s),children:a()},`TableHead`):null,g=o?(0,E.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...cw(m,s),children:o()},`TableFoot`):null;return(0,E.jsx)(u,{...e,...cw(u,s),children:(0,E.jsx)(d,{children:(0,E.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...cw(f,s),children:[h,(0,E.jsx)(kw,{},`TableBody`),g]})})})})),Iw=fw({useEmitter:Nw,useEmitterValue:Pw,usePublisher:Fw}),Lw=pw({useEmitter:Nw,useEmitterValue:Pw,usePublisher:Fw}),Rw={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},zw={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Bw,floor:Vw,max:Hw,min:Uw,round:Ww}=Math;function Gw(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function Kw(e){return{...zw,items:e}}function qw(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function Jw(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var Yw=kx(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:a,scrollBy:o,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,p,{didMount:m,propsReady:h},{customScrollParent:g,useWindowScroll:_,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b},x])=>{let S=Z(0),ee=Z(0),te=Z(Rw),C=Z({height:0,width:0}),w=Z({height:0,width:0}),ne=Dx(),re=Dx(),ie=Z(0),ae=Z(null),oe=Z({column:0,row:0}),se=Dx(),ce=Dx(),le=Z(!1),ue=Z(0),de=Z(!0),fe=Z(!1),pe=Z(!1);dx(X(m,Cx(ue),J(([e,t])=>t!==0)),()=>{fx(de,!1)}),dx(X(Mx(m,de,w,C,ue,fe),J(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{fx(fe,!0),ZS(1,()=>{fx(ne,e)}),hx(X(l),()=>{fx(t,[0,0]),fx(de,!0)})}),q(X(ce,J(e=>e!=null&&e.scrollTop>0),yx(0)),ee),dx(X(m,Cx(ce),J(([,e])=>e!=null)),([,e])=>{e&&(fx(C,e.viewport),fx(w,e.item),fx(oe,e.gap),e.scrollTop>0&&(fx(le,!0),hx(X(l,xx(1)),e=>{fx(le,!1)}),fx(c,{top:e.scrollTop})))}),q(X(C,Y(({height:e})=>e)),d),q(X(Mx(Q(C,qw),Q(w,qw),Q(oe,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),Q(l)),Y(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),se),q(X(Mx(Q(S),r,Q(oe,Jw),Q(w,qw),Q(C,qw),Q(ae),Q(ee),Q(le),Q(de),Q(ue)),J(([,,,,,,,e])=>!e),Y(([e,[t,n],r,i,a,o,s,,c,l])=>{let{column:u,row:d}=r,{height:f,width:p}=i,{width:m}=a;if(s===0&&(e===0||m===0))return Rw;if(p===0){let t=QS(l,e);return Kw(Gw(t,t+Math.max(s-1,0),o))}let h=Xw(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*Vw((t+d)/(f+d)),_=h*Bw((n+d)/(f+d))-1,_=Uw(e-1,Hw(_,h-1)),g=Uw(_,Hw(0,g))):(g=0,_=-1);let v=Gw(g,_,o),{bottom:y,top:b}=Zw(a,r,i,v),x=Bw(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),te),q(X(ae,J(e=>e!==null),Y(e=>e.length)),S),q(X(Mx(C,w,te,oe),J(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),Y(([e,t,{items:n},r])=>{let{bottom:i,top:a}=Zw(e,r,t,n);return[a,i]}),vx(bS)),t);let me=Z(!1);q(X(l,Cx(me),Y(([e,t])=>t||e!==0)),me);let he=Ox(X(Mx(te,S),J(([{items:e}])=>e.length>0),Cx(me),J(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&e.offsetBottom===0&&e.items.length===t)&&r}),Y(([[,e]])=>e-1),vx())),ge=Ox(X(Q(te),J(({items:e})=>e.length>0&&e[0].index===0),yx(0),vx())),_e=Ox(X(Q(te),Cx(le),J(([{items:e},t])=>e.length>0&&!t),Y(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),vx(yS),Sx(0)));q(_e,p.scrollSeekRangeChanged),q(X(ne,Cx(C,w,S,oe),Y(([e,t,n,r,i])=>{let a=JS(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=Hw(0,l,Uw(r-1,l));let u=Qw(t,i,n,l);return o===`end`?u=Ww(u-t.height+n.height):o===`center`&&(u=Ww(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let ve=Ex(X(te,Y(e=>e.offsetBottom+e.bottom)),0);return q(X(b,Y(e=>({height:e.visibleHeight,width:e.visibleWidth}))),C),{customScrollParent:g,data:ae,deviation:ie,footerHeight:i,gap:oe,headerHeight:a,increaseViewportBy:e,initialItemCount:ee,itemDimensions:w,overscan:n,restoreStateFrom:ce,scrollBy:o,scrollContainerState:s,scrollHeight:re,scrollTo:c,scrollToIndex:ne,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:C,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:te,horizontalDirection:pe,initialTopMostItemIndex:ue,totalListHeight:ve,...f,endReached:he,propsReady:h,rangeChanged:_e,startReached:ge,stateChanged:se,stateRestoreInProgress:le,...x}},ux(fC,Zx,oC,AC,KS,jC,Lx));function Xw(e,t,n){return Hw(1,Vw((e+n)/(Vw(t)+n)))}function Zw(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=Qw(e,t,n,r[0].index);return{bottom:Qw(e,t,n,r[r.length-1].index)+i,top:a}}function Qw(e,t,n,r){let i=Vw(r/Xw(e.width,n.width,t.column)),a=i*n.height+Hw(0,i-1)*t.row;return a>0?a+t.row:a}var $w=kx(([e,t])=>({...e,...t}),ux(Yw,kx(()=>{let e=Z(e=>`Item ${e}`),t=Z({}),n=Z(null),r=Z(`virtuoso-grid-item`),i=Z(`virtuoso-grid-list`),a=Z(XC),o=Z(`div`),s=Z(sx),c=(e,n=null)=>Ex(X(t,Y(t=>t[e]),vx()),n),l=Z(!1),u=Z(!1);return q(Q(u),l),{components:t,computeItemKey:a,context:n,FooterComponent:c(`Footer`),HeaderComponent:c(`Header`),headerFooterTag:o,itemClassName:r,ItemComponent:c(`Item`,`div`),itemContent:e,listClassName:i,ListComponent:c(`List`,`div`),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`,`div`)}}))),eT=T.memo(function(){let e=sT(`gridState`),t=sT(`listClassName`),n=sT(`itemClassName`),r=sT(`itemContent`),i=sT(`computeItemKey`),a=sT(`isSeeking`),o=cT(`scrollHeight`),s=sT(`ItemComponent`),c=sT(`ListComponent`),l=sT(`ScrollSeekPlaceholder`),u=sT(`context`),d=cT(`itemDimensions`),f=cT(`gap`),p=sT(`log`),m=sT(`stateRestoreInProgress`),h=cT(`reportReadyState`),g=Gx(T.useMemo(()=>e=>{let t=e.parentElement.parentElement.scrollHeight;o(t);let n=e.firstChild;if(n!==null){let{height:e,width:t}=n.getBoundingClientRect();d({height:e,width:t})}f({column:dT(`column-gap`,getComputedStyle(e).columnGap,p),row:dT(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return KC(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,E.jsx)(c,{className:t,ref:g,...cw(c,u),"data-testid":`virtuoso-item-list`,style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let o=i(t.index,t.data,u);return a?(0,E.jsx)(l,{...cw(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,T.createElement)(s,{...cw(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),tT=T.memo(function(){let e=sT(`HeaderComponent`),t=cT(`headerHeight`),n=sT(`headerFooterTag`),r=Gx(T.useMemo(()=>e=>{t(TS(e,`height`))},[t]),!0,!1),i=sT(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...cw(e,i)})})}),nT=T.memo(function(){let e=sT(`FooterComponent`),t=cT(`footerHeight`),n=sT(`headerFooterTag`),r=Gx(T.useMemo(()=>e=>{t(TS(e,`height`))},[t]),!0,!1),i=sT(`context`);return e==null?null:(0,E.jsx)(n,{ref:r,children:(0,E.jsx)(e,{...cw(e,i)})})}),rT=({children:e})=>{let t=T.useContext(HC),n=cT(`itemDimensions`),r=cT(`viewportDimensions`),i=Gx(T.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return T.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,E.jsx)(`div`,{ref:i,style:aw(!1),children:e})},iT=({children:e})=>{let t=T.useContext(HC),n=cT(`windowViewportRect`),r=cT(`itemDimensions`),i=sT(`customScrollParent`),a=sT(`useWindowScroll`),o=Xx(n,i,!1);return T.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,E.jsx)(`div`,{ref:o,style:ow(!1,a),children:e})},{Component:aT,useEmitter:oT,useEmitterValue:sT,usePublisher:cT}=BC($w,{optional:{context:`context`,totalCount:`totalCount`,overscan:`overscan`,itemContent:`itemContent`,components:`components`,computeItemKey:`computeItemKey`,data:`data`,initialItemCount:`initialItemCount`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`headerFooterTag`,listClassName:`listClassName`,itemClassName:`itemClassName`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,restoreStateFrom:`restoreStateFrom`,initialTopMostItemIndex:`initialTopMostItemIndex`,increaseViewportBy:`increaseViewportBy`},methods:{scrollTo:`scrollTo`,scrollBy:`scrollBy`,scrollToIndex:`scrollToIndex`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,stateChanged:`stateChanged`,readyStateChanged:`readyStateChanged`}},T.memo(function({...e}){let t=sT(`useWindowScroll`),n=sT(`customScrollParent`),r=n||t?uT:lT,i=n||t?iT:rT,a=sT(`context`);return(0,E.jsx)(r,{...e,...cw(r,a),children:(0,E.jsxs)(i,{children:[(0,E.jsx)(tT,{}),(0,E.jsx)(eT,{}),(0,E.jsx)(nT,{})]})})})),lT=fw({useEmitter:oT,useEmitterValue:sT,usePublisher:cT}),uT=pw({useEmitter:oT,useEmitterValue:sT,usePublisher:cT});function dT(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Px.WARN),t===`normal`?0:parseInt(t??`0`,10)}var fT=64;function pT(e){if(!e)return;let t=e===`smooth`?`smooth`:!0;return e=>e?t:!1}function mT(e){if(e!==void 0)return e===`LAST`?{index:`LAST`,align:`end`}:e}function hT({items:e,itemContent:t,computeItemKey:n,followOutput:r,atBottomStateChange:i,atBottomThreshold:a=fT,firstItemIndex:o,startReached:s,endReached:c,initialTopMostItemIndex:l,overscan:u,increaseViewportBy:d,className:f,ref:p}){let m=(0,T.useRef)(null),h=(0,T.useRef)(null);(0,T.useImperativeHandle)(p,()=>({scrollToIndex({index:e,behavior:t,align:n}){m.current?.scrollToIndex({index:e,behavior:t,align:n})},scrollToBottom(e){m.current?.scrollToIndex({index:`LAST`,align:`end`,behavior:e?.behavior})},getScrollElement(){return h.current}}),[]);let g=(0,T.useMemo)(()=>pT(r),[r]),_=(0,T.useMemo)(()=>mT(l),[l]);return(0,E.jsx)(Sw,{ref:m,"data-slot":`virtual-list`,className:v(`bg-[var(--surface-base)]`,f),data:e,itemContent:t,computeItemKey:n,followOutput:g,atBottomStateChange:i,atBottomThreshold:a,startReached:s,endReached:c,scrollerRef:e=>{h.current=e&&`nodeType`in e?e:null},...o===void 0?{}:{firstItemIndex:o},..._===void 0?{}:{initialTopMostItemIndex:_},...u===void 0?{}:{overscan:u},...d===void 0?{}:{increaseViewportBy:d}})}var gT=`Collapsible`,[_T,vT]=Oe(gT),[yT,bT]=_T(gT),xT=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Te({prop:r,defaultProp:i??!1,onChange:o,caller:gT});return(0,E.jsx)(yT,{scope:n,disabled:a,contentId:xe(),open:c,onOpenToggle:T.useCallback(()=>l(e=>!e),[l]),children:(0,E.jsx)(ke.div,{"data-state":DT(c),"data-disabled":a?``:void 0,...s,ref:t})})});xT.displayName=gT;var ST=`CollapsibleTrigger`,CT=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=bT(ST,n);return(0,E.jsx)(ke.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":DT(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:Ee(e.onClick,i.onOpenToggle)})});CT.displayName=ST;var wT=`CollapsibleContent`,TT=T.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=bT(wT,e.__scopeCollapsible);return(0,E.jsx)(De,{present:n||i.open,children:({present:e})=>(0,E.jsx)(ET,{...r,ref:t,present:e})})});TT.displayName=wT;var ET=T.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=bT(wT,n),[s,c]=T.useState(r),l=T.useRef(null),u=_(t,l),d=T.useRef(0),f=d.current,p=T.useRef(0),m=p.current,h=o.open||s,g=T.useRef(h),v=T.useRef(void 0);return T.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),we(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,E.jsx)(ke.div,{"data-state":DT(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function DT(e){return e?`open`:`closed`}var OT=xT,kT=CT,AT=TT,jT=`Accordion`,MT=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[NT,PT,FT]=be(jT),[IT,LT]=Oe(jT,[FT,vT]),RT=vT(),zT=T.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,E.jsx)(NT.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,E.jsx)(GT,{...a,ref:t}):(0,E.jsx)(WT,{...i,ref:t})})});zT.displayName=jT;var[BT,VT]=IT(jT),[HT,UT]=IT(jT,{collapsible:!1}),WT=T.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=Te({prop:n,defaultProp:r??``,onChange:i,caller:jT});return(0,E.jsx)(BT,{scope:e.__scopeAccordion,value:T.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:T.useCallback(()=>a&&c(``),[a,c]),children:(0,E.jsx)(HT,{scope:e.__scopeAccordion,collapsible:a,children:(0,E.jsx)(JT,{...o,ref:t})})})}),GT=T.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=Te({prop:n,defaultProp:r??[],onChange:i,caller:jT}),c=T.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=T.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,E.jsx)(BT,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,E.jsx)(HT,{scope:e.__scopeAccordion,collapsible:!0,children:(0,E.jsx)(JT,{...a,ref:t})})})}),[KT,qT]=IT(jT),JT=T.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=_(T.useRef(null),t),c=PT(n),l=Ce(i)===`ltr`,u=Ee(e.onKeyDown,e=>{if(!MT.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,E.jsx)(KT,{scope:n,disabled:r,direction:i,orientation:a,children:(0,E.jsx)(NT.Slot,{scope:n,children:(0,E.jsx)(ke.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),YT=`AccordionItem`,[XT,ZT]=IT(YT),QT=T.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=qT(YT,n),o=VT(YT,n),s=RT(n),c=xe(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,E.jsx)(XT,{scope:n,open:l,disabled:u,triggerId:c,children:(0,E.jsx)(OT,{"data-orientation":a.orientation,"data-state":aE(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});QT.displayName=YT;var $T=`AccordionHeader`,eE=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=qT(jT,n),a=ZT($T,n);return(0,E.jsx)(ke.h3,{"data-orientation":i.orientation,"data-state":aE(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});eE.displayName=$T;var tE=`AccordionTrigger`,nE=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=qT(jT,n),a=ZT(tE,n),o=UT(tE,n),s=RT(n);return(0,E.jsx)(NT.ItemSlot,{scope:n,children:(0,E.jsx)(kT,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});nE.displayName=tE;var rE=`AccordionContent`,iE=T.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=qT(jT,n),a=ZT(rE,n),o=RT(n);return(0,E.jsx)(AT,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});iE.displayName=rE;function aE(e){return e?`open`:`closed`}var oE=zT,sE=QT,cE=eE,lE=nE,uE=iE;function dE({className:e,ref:t,...n}){return(0,E.jsx)(oE,{ref:t,"data-slot":`collapsible`,className:v(`flex w-full flex-col`,e),...n})}function fE({className:e,ref:t,...n}){return(0,E.jsx)(sE,{ref:t,"data-slot":`collapsible-item`,className:v(`flex flex-col`,e),...n})}function pE({className:e,ref:t,...n}){return(0,E.jsx)(cE,{"data-slot":`collapsible-header`,className:`flex`,children:(0,E.jsx)(lE,{ref:t,"data-slot":`collapsible-trigger`,className:v(`flex min-w-0 flex-1 items-center`,`cursor-pointer select-none`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,e),...n})})}function mE({className:e,ref:t,children:n,...r}){return(0,E.jsx)(uE,{ref:t,"data-slot":`collapsible-content`,className:v(`collapsible-content overflow-hidden`,e),...r,children:n})}var hE={Root:dE,Item:fE,Trigger:pE,Content:mE},gE={default:`text-[var(--content-default)]`,negative:`text-[var(--system-negative-strong)]`,muted:`text-[var(--content-tertiary)]`};function _E({icon:e,value:t,label:n,tone:r=`default`,className:i,ref:a,...o}){return(0,E.jsxs)(`div`,{...o,ref:a,"data-slot":`stat-square`,className:v(`flex flex-1 items-center gap-3 rounded-xl bg-[var(--surface-base)] p-3`,i),children:[e?(0,E.jsx)(`span`,{"aria-hidden":!0,className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--surface-lift)] text-[var(--content-emphasised)]`,children:e}):null,(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,E.jsx)(`span`,{className:v(`text-title-small leading-none`,gE[r]),children:t}),(0,E.jsx)(`span`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:n})]})]})}var vE={command:`⌘`,cmd:`⌘`,commandorcontrol:`⌘`,cmdorctrl:`⌘`,super:`⌘`,meta:`⌘`,control:`⌃`,ctrl:`⌃`,alt:`⌥`,option:`⌥`,altgr:`⌥`,shift:`⇧`},yE={up:`↑`,down:`↓`,left:`←`,right:`→`,return:`↩`,enter:`↩`,space:`␣`,backspace:`⌫`,delete:`⌦`,escape:`⎋`,esc:`⎋`,tab:`⇥`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`,plus:`+`},bE=e=>{let t=e.split(`+`),n=[];for(let e=0;e<t.length;e+=1){let r=t[e];r===``&&e===t.length-1&&n.length>0?n.push(`+`):r!==``&&n.push(r)}return n},xE=e=>{let t=e.toLowerCase();return vE[t]??yE[t]??e.toUpperCase()},SE=e=>bE(e).map(xE);function CE({accelerator:e,className:t,ref:n,...r}){let i=SE(e);return(0,E.jsx)(`span`,{...r,ref:n,"data-slot":`shortcut-keys`,className:v(`inline-flex items-center gap-1`,t),children:i.map((e,t)=>(0,E.jsx)(`kbd`,{className:v(`inline-flex items-center justify-center`,`min-w-5 h-5 px-1 rounded-[4px]`,`text-body-small-emphasised leading-none`,`bg-[var(--tag-bg-neutral)] text-[color:var(--content-default)]`),children:e},`${e}-${t}`))})}var wE=!1;function TE(){wE||typeof document>`u`||(wE=!0,document.documentElement.dataset.modality=`keyboard`,document.addEventListener(`pointerdown`,()=>{document.documentElement.dataset.modality=`pointer`},!0),document.addEventListener(`keydown`,e=>{(e.key===`Tab`||e.key===`ArrowUp`||e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(document.documentElement.dataset.modality=`keyboard`)},!0))}export{Mt as A,Fr as C,qn as D,kr as E,ze as F,Re as I,Tt as M,St as N,Gn as O,xt as P,Ur as S,Nr as T,Nl as _,hT as a,Br as b,Tb as c,rb as d,Vy as f,kl as g,Gl as h,hE as i,Dt as j,Wn as k,nb as l,Wl as m,CE as n,Jb as o,Kl as p,_E as r,ib as s,TE as t,tb as u,Mc as v,Mr as w,Vr as x,gc as y};