@p4code/cli 0.8.1 → 0.8.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 (378) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-mL63pmet.mjs → binCli-C1tFongj.mjs} +12 -36
  3. package/dist/client/.vite/manifest.json +2139 -2133
  4. package/dist/client/assets/{AnimatedHeight-CcLJhBdM.js → AnimatedHeight-PJxVEp27.js} +2 -2
  5. package/dist/client/assets/{AuthSurfaceShell-DV9IfxfT.js → AuthSurfaceShell-BrPHaco9.js} +2 -2
  6. package/dist/client/assets/{CSPContext-5fUBIm56.js → CSPContext-C7uwFl6f.js} +2 -2
  7. package/dist/client/assets/{ChatGptUsageButton-BjxGhmRJ.js → ChatGptUsageButton-7IZqWaQq.js} +2 -2
  8. package/dist/client/assets/{ChatMarkdown-S_dLZdsH.js → ChatMarkdown-D3ITm4U-.js} +7 -7
  9. package/dist/client/assets/CodexSetupSection.logic-DyTuN6tg.js +2 -0
  10. package/dist/client/assets/{ComboboxClear-DCanpiKf.js → ComboboxClear-BXGqqvsR.js} +2 -2
  11. package/dist/client/assets/{CommandBlock-CCY3uLti.js → CommandBlock-JrUX9e8E.js} +2 -2
  12. package/dist/client/assets/{ComposerPromptEditor-CTei4iV_.js → ComposerPromptEditor-Ba1dvqDN.js} +54 -54
  13. package/dist/client/assets/{CompositeRoot-Dz15SC7i.js → CompositeRoot-CW06ANMY.js} +2 -2
  14. package/dist/client/assets/{ConnectionStatusDot-BXxnqJgm.js → ConnectionStatusDot-Cjh57o6i.js} +2 -2
  15. package/dist/client/assets/{DevicePanel-hMvCLVG0.js → DevicePanel-zG3feCFw.js} +2 -2
  16. package/dist/client/assets/{DeviceSetup--U2_cth3.js → DeviceSetup-DccRVnjb.js} +2 -2
  17. package/dist/client/assets/{DialogTitle-CdRWiE23.js → DialogTitle-7tvQYVxE.js} +2 -2
  18. package/dist/client/assets/{DiffCommentAnnotation-BO9ZEof3.js → DiffCommentAnnotation-DDBZcMFv.js} +2 -2
  19. package/dist/client/assets/{DiffFileTree-DOh6vP89.js → DiffFileTree-BhSPT6m_.js} +2 -2
  20. package/dist/client/assets/{DiffPanel-BdHAXHTV.js → DiffPanel-D7QMWq_A.js} +2 -2
  21. package/dist/client/assets/{DiffWorkerPoolProvider-HxohyeGq.js → DiffWorkerPoolProvider-RcplgHGv.js} +3 -3
  22. package/dist/client/assets/{EnvironmentMachineIcon-DYqBsAxl.js → EnvironmentMachineIcon-DMZGa766.js} +2 -2
  23. package/dist/client/assets/{ExpandableText-B9MQs34j.js → ExpandableText-DfY-qqRW.js} +2 -2
  24. package/dist/client/assets/{FieldControl-DuWupdaP.js → FieldControl-C9UnFGZn.js} +2 -2
  25. package/dist/client/assets/{FileDiff-XdtrigfB.js → FileDiff-BXlBWSxx.js} +2 -2
  26. package/dist/client/assets/{FilePreviewPanel-Dj_tLsu8.js → FilePreviewPanel-CSKeM-xZ.js} +5 -5
  27. package/dist/client/assets/{FoldedSettingsSection-CJhrFR0_.js → FoldedSettingsSection-BJm8ZaTy.js} +2 -2
  28. package/dist/client/assets/{FormContext-DzMW0viI.js → FormContext-haYZgWIK.js} +2 -2
  29. package/dist/client/assets/{Icons-DJ824_3l.js → Icons-C12feMOO.js} +2 -2
  30. package/dist/client/assets/{KeybindingsSettings.logic-DBks3HZy.js → KeybindingsSettings.logic-DhXMdk5O.js} +2 -2
  31. package/dist/client/assets/{NoProjectsHero-DyYs0dvZ.js → NoProjectsHero-CDoSxJVV.js} +2 -2
  32. package/dist/client/assets/{PanelLayoutControls-DmAKKHlt.js → PanelLayoutControls-CCKUTh1H.js} +6 -6
  33. package/dist/client/assets/{PierreEntryIcon-uqPwKknu.js → PierreEntryIcon-7x50Pz_C.js} +2 -2
  34. package/dist/client/assets/{PreviewPanel-BQkFJlas.js → PreviewPanel-BEWZuH6o.js} +2 -2
  35. package/dist/client/assets/{ProjectDefaultsSettings-DglkVzkM.js → ProjectDefaultsSettings-BRRQlvgR.js} +2 -2
  36. package/dist/client/assets/{ProjectFavicon-CDpXbAhP.js → ProjectFavicon-ExMHrN16.js} +3 -3
  37. package/dist/client/assets/{ProjectIconPickerDialog-yxBKY_6V.js → ProjectIconPickerDialog-DXSyEGg8.js} +2 -2
  38. package/dist/client/assets/{ProjectMonogram-Dd6xeLhS.js → ProjectMonogram-um8sYqIi.js} +2 -2
  39. package/dist/client/assets/{ProviderAuthTerminal-DgUIYMm9.js → ProviderAuthTerminal-Tw3kH5vc.js} +2 -2
  40. package/dist/client/assets/ProviderModelPicker-CpgHpUCG.js +2 -0
  41. package/dist/client/assets/{ProviderSettingsForm-DGMc_kKy.js → ProviderSettingsForm-CaNO8FYK.js} +2 -2
  42. package/dist/client/assets/{PullRequestCodeTab-CXrKDJ3m.js → PullRequestCodeTab-DwqL4aAJ.js} +2 -2
  43. package/dist/client/assets/{ReadOnlySourcePreview-DkXxXiTJ.js → ReadOnlySourcePreview-Cw6lfMjA.js} +2 -2
  44. package/dist/client/assets/{RedactedSensitiveText-DtYR94zZ.js → RedactedSensitiveText-citJBx4E.js} +2 -2
  45. package/dist/client/assets/{RenderErrorBoundary-Dla4qj6V.js → RenderErrorBoundary-D21mPr47.js} +2 -2
  46. package/dist/client/assets/{ScheduledTasksSettings-2vzTutJz.js → ScheduledTasksSettings-BXOG7dPV.js} +4 -4
  47. package/dist/client/assets/{ScopedSwitch-BdMg8rKM.js → ScopedSwitch-2MBm4Srn.js} +2 -2
  48. package/dist/client/assets/{SettingsPanels-XjjE56Xl.js → SettingsPanels-DjzXV7Dm.js} +7 -7
  49. package/dist/client/assets/{SettingsPanels.logic-DSOfF88n.js → SettingsPanels.logic-DpdMN_lX.js} +2 -2
  50. package/dist/client/assets/{SettingsScopeNotice-um2bOG_J.js → SettingsScopeNotice-CdNfxmW3.js} +2 -2
  51. package/dist/client/assets/{T3ConnectAccountPages-Dx0LK6U5.js → T3ConnectAccountPages-C6qHq26m.js} +2 -2
  52. package/dist/client/assets/{T3ConnectSidebarSignIn-2r05ubXZ.js → T3ConnectSidebarSignIn-DewmE1PI.js} +2 -2
  53. package/dist/client/assets/ThemeEditorPanel-aEsLfkYx.js +5 -0
  54. package/dist/client/assets/{ThreadTerminalDrawer-BzElqolI.js → ThreadTerminalDrawer-C1NDkTSs.js} +4 -4
  55. package/dist/client/assets/{UsageLimits-B_IIjpyx.js → UsageLimits-BUS51Bjr.js} +2 -2
  56. package/dist/client/assets/{Virtualizer-DItXd38b.js → Virtualizer-B2BG0GB9.js} +2 -2
  57. package/dist/client/assets/{WorkspaceBreadcrumb-Y41aNu4D.js → WorkspaceBreadcrumb-DX3xH6tC.js} +2 -2
  58. package/dist/client/assets/{WorkspacePageContainer-D3YV5jc4.js → WorkspacePageContainer-BFo6qTGJ.js} +2 -2
  59. package/dist/client/assets/{WorkspacePageHeader-Dduxade-.js → WorkspacePageHeader-BCZXPSxj.js} +2 -2
  60. package/dist/client/assets/_chat-B3j3XTUJ.js +58 -0
  61. package/dist/client/assets/{_chat.index-BGOR58rk.js → _chat.index-7o1_qjfU.js} +2 -2
  62. package/dist/client/assets/{_chat.new-CioC4l4P.js → _chat.new-W2E0MZ4y.js} +2 -2
  63. package/dist/client/assets/{_chat.pull-requests-Cs7eiOH6.js → _chat.pull-requests-DnQ-MKRG.js} +2 -2
  64. package/dist/client/assets/{abnfDiagram-VCTEODGH-l9yoycqs.js → abnfDiagram-VCTEODGH-DJY5x2uS.js} +2 -2
  65. package/dist/client/assets/{alert-B49R80NU.js → alert-yllEf0yh.js} +2 -2
  66. package/dist/client/assets/app-window-D2LBv8RE.js +2 -0
  67. package/dist/client/assets/architecture-7GRP2DOG-nO5xG-8k.js +1 -0
  68. package/dist/client/assets/{architectureDiagram-5GKGNRK7-BQwAkSAo.js → architectureDiagram-5GKGNRK7-6YiKazHv.js} +2 -2
  69. package/dist/client/assets/arrow-left-yEW5WFYj.js +1 -0
  70. package/dist/client/assets/arrow-right-BzVZfSb7.js +1 -0
  71. package/dist/client/assets/arrow-up-down-DjL7trCL.js +1 -0
  72. package/dist/client/assets/{assets-CLIqG-m-.js → assets-BxSVuao2.js} +2 -2
  73. package/dist/client/assets/bell-ue7A6JFg.js +1 -0
  74. package/dist/client/assets/{blockDiagram-I7D4REHJ-C1YTuxst.js → blockDiagram-I7D4REHJ-D_EURhbV.js} +2 -2
  75. package/dist/client/assets/blocks-De0WwZYY.js +1 -0
  76. package/dist/client/assets/bot-_T9E-nkd.js +1 -0
  77. package/dist/client/assets/brain-CQYem3Oz.js +2 -0
  78. package/dist/client/assets/{browserHistoryStore-D6dhsqE8.js → browserHistoryStore-B-t3Vc_Z.js} +2 -2
  79. package/dist/client/assets/{browserLinkTarget-D0HujxdB.js → browserLinkTarget-CiQS1wUg.js} +2 -2
  80. package/dist/client/assets/{c4Diagram-7LVT6UL2-DpPcyaba.js → c4Diagram-7LVT6UL2-CmfPrrIj.js} +2 -2
  81. package/dist/client/assets/calendar-clock-DXFNSdXM.js +1 -0
  82. package/dist/client/assets/channel-BE0ymtNV.js +2 -0
  83. package/dist/client/assets/chart-no-axes-column-Dx_cyfN9.js +1 -0
  84. package/dist/client/assets/{checkbox-WRJ0D_10.js → checkbox-CIeee0-J.js} +2 -2
  85. package/dist/client/assets/chromium-BusoCgri.js +2 -0
  86. package/dist/client/assets/{chunk-4HAMMTFA-C0t_GKFv.js → chunk-4HAMMTFA-BdvKUuii.js} +2 -2
  87. package/dist/client/assets/{chunk-75Z2AOVW-B6rgeqZP.js → chunk-75Z2AOVW-DXz8BlJz.js} +2 -2
  88. package/dist/client/assets/{chunk-DU6HZSFF-BuYM0Cu8.js → chunk-DU6HZSFF-ebFBoLTT.js} +2 -2
  89. package/dist/client/assets/{chunk-F27PBJKO-CvPd3lcw.js → chunk-F27PBJKO-B1MlVcaX.js} +2 -2
  90. package/dist/client/assets/{chunk-GMAD6QVW-DbBkxyCE.js → chunk-GMAD6QVW-CEXqem_-.js} +2 -2
  91. package/dist/client/assets/{chunk-GVQU2GXP-CVZeJiG5.js → chunk-GVQU2GXP-wsgr7T0u.js} +2 -2
  92. package/dist/client/assets/{chunk-IMKFNOWR-CbY3DGV3.js → chunk-IMKFNOWR-Daxc_3WP.js} +2 -2
  93. package/dist/client/assets/{chunk-L3NEJ4N5-Bhkym4YW.js → chunk-L3NEJ4N5-C4NnipZ0.js} +2 -2
  94. package/dist/client/assets/{chunk-OSK3NFVY-B89_sN-h.js → chunk-OSK3NFVY-DDd2Ay5_.js} +2 -2
  95. package/dist/client/assets/{chunk-P2QGCYS3-zeIYnZbd.js → chunk-P2QGCYS3-I9iEYMEJ.js} +2 -2
  96. package/dist/client/assets/{chunk-POPQ4Y6H-Bv7ZWEJI.js → chunk-POPQ4Y6H-Cgwl0wkZ.js} +2 -2
  97. package/dist/client/assets/{chunk-PWAF6VOD-BnsKTwi6.js → chunk-PWAF6VOD-kBB0Jquc.js} +2 -2
  98. package/dist/client/assets/{chunk-SHT3W25Y-Daoidttm.js → chunk-SHT3W25Y-gtUoMWd0.js} +2 -2
  99. package/dist/client/assets/{chunk-SVP7TREG-BK4Qxtm6.js → chunk-SVP7TREG-CbL5vJ0z.js} +2 -2
  100. package/dist/client/assets/{chunk-TICWLB2K-CihSBYRG.js → chunk-TICWLB2K-CMgrptzc.js} +2 -2
  101. package/dist/client/assets/classDiagram-ZZMXUADV-YRduSbl9.js +2 -0
  102. package/dist/client/assets/classDiagram-v2-VYDZK3BY-YRduSbl9.js +2 -0
  103. package/dist/client/assets/{collapsible-DyaDJVJ5.js → collapsible-C3qenpEI.js} +2 -2
  104. package/dist/client/assets/{color-picker-BWffD8SG.js → color-picker-Cj2frYnP.js} +2 -2
  105. package/dist/client/assets/{combobox-zg5NNJOT.js → combobox-DixSlhgy.js} +2 -2
  106. package/dist/client/assets/{command-CBIpuXFt.js → command-B45LRbFT.js} +2 -2
  107. package/dist/client/assets/{connect-BVveo2H6.js → connect-CYM5DIkv.js} +2 -2
  108. package/dist/client/assets/{connect-agent-Rlpt-C4T.js → connect-agent-nn3QLMb4.js} +2 -2
  109. package/dist/client/assets/corner-left-up-DohBMTTI.js +1 -0
  110. package/dist/client/assets/{cynefin-OW5HDTMX-BTvkQvHj.js → cynefin-OW5HDTMX-CmLjrFzm.js} +1 -1
  111. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-glf_yMKF.js → cynefinDiagram-5FMLGOSQ-xQBevUIj.js} +2 -2
  112. package/dist/client/assets/{dagre-GXQ25YYZ-XUkjXaQW.js → dagre-GXQ25YYZ-Ck8BwJaT.js} +2 -2
  113. package/dist/client/assets/{device-Bu2mO4gL.js → device-BRhRKysY.js} +2 -2
  114. package/dist/client/assets/{diagram-S7CK7UJ4-CiNxlSJZ.js → diagram-S7CK7UJ4-Bl0e661x.js} +2 -2
  115. package/dist/client/assets/{diagram-UQ7AKVKN-C4_9QuDF.js → diagram-UQ7AKVKN-TO9a3uQI.js} +2 -2
  116. package/dist/client/assets/{diagram-VSXAHHWV-BoRcnfst.js → diagram-VSXAHHWV-BZ7xQ8wz.js} +2 -2
  117. package/dist/client/assets/{diagram-VX7I27RA-g5AlZjEL.js → diagram-VX7I27RA-C4cA30qa.js} +2 -2
  118. package/dist/client/assets/{diagram-Z3DM3KII-Crw_yJrX.js → diagram-Z3DM3KII-Hl3MmqeP.js} +2 -2
  119. package/dist/client/assets/{dialog-C5PVc2Dc.js → dialog-DhJeevKt.js} +2 -2
  120. package/dist/client/assets/{diffRendering-DVfiIxj4.js → diffRendering-QVeYVRDU.js} +2 -2
  121. package/dist/client/assets/{discovery-list-Bb2RP3-9.js → discovery-list-VoilmsP7.js} +2 -2
  122. package/dist/client/assets/{dist-BTyn8sKm.js → dist-CxgL3edJ.js} +3 -3
  123. package/dist/client/assets/download-B587khDU.js +1 -0
  124. package/dist/client/assets/{draft-input-CwdApNsc.js → draft-input-BrEXLyuj.js} +2 -2
  125. package/dist/client/assets/{duoViewer-BsAzTMk3.js → duoViewer-D-_bD3-L.js} +2 -2
  126. package/dist/client/assets/dynamic-R3OtJZHK.js +3 -0
  127. package/dist/client/assets/earth-26IFbzWm.js +1 -0
  128. package/dist/client/assets/{ebnfDiagram-PWID7BFC-Co02q3t2.js → ebnfDiagram-PWID7BFC-Bo_ALmgV.js} +2 -2
  129. package/dist/client/assets/ellipsis-BScTTB_n.js +1 -0
  130. package/dist/client/assets/{embeddedScripts-cxUGD6UP.js → embeddedScripts-DKKE5k7D.js} +2 -2
  131. package/dist/client/assets/{empty-B9cgefGv.js → empty-uoiaKPHo.js} +2 -2
  132. package/dist/client/assets/{entities-B0tFBQjY.js → entities-DNKDCsf2.js} +2 -2
  133. package/dist/client/assets/{erDiagram-RLTQ6QDP-BuoWr1gw.js → erDiagram-RLTQ6QDP-B38FLl2U.js} +2 -2
  134. package/dist/client/assets/eventmodeling-NTZA5JFV-6XFarcvj.js +1 -0
  135. package/dist/client/assets/eye-DTlv8Vet.js +1 -0
  136. package/dist/client/assets/file-search-gFHOfI6S.js +1 -0
  137. package/dist/client/assets/{fileLinks-BBnShh-N.js → fileLinks-VfyxNu8P.js} +2 -2
  138. package/dist/client/assets/{fileTreeExpansion-DaFd8SRp.js → fileTreeExpansion-BfMZMaRV.js} +2 -2
  139. package/dist/client/assets/flowDiagram-HODETNUW-DQXavjl4.js +1 -0
  140. package/dist/client/assets/fold-vertical-BNQMJ6gu.js +1 -0
  141. package/dist/client/assets/folder-git-2-6ON-nxul.js +1 -0
  142. package/dist/client/assets/folder-open-Rja0vZjv.js +1 -0
  143. package/dist/client/assets/folder-plus-CfJ5c8wa.js +1 -0
  144. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-CMAUkeMs.js → ganttDiagram-EL5Y4UJY-Cj0Kstgh.js} +2 -2
  145. package/dist/client/assets/{getDiffFileInput-D0WCXPuc.js → getDiffFileInput-XUe1xsym.js} +2 -2
  146. package/dist/client/assets/git-branch-BuWXMpmq.js +1 -0
  147. package/dist/client/assets/{gitGraph-4MIJSDKK-B22BskFD.js → gitGraph-4MIJSDKK-C84uaaYZ.js} +1 -1
  148. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-D9yz6pSR.js → gitGraphDiagram-WWUBYQGX-CvyimLfZ.js} +2 -2
  149. package/dist/client/assets/grip-vertical-qjSy6wXX.js +1 -0
  150. package/dist/client/assets/{guideRunStore-CPFfk-BJ.js → guideRunStore-DwmmS8D0.js} +2 -2
  151. package/dist/client/assets/hard-drive-DAxFba08.js +1 -0
  152. package/dist/client/assets/history-CrY611k2.js +1 -0
  153. package/dist/client/assets/house-CKS51Vx8.js +1 -0
  154. package/dist/client/assets/{htmlRender-Cdm053qU.js → htmlRender-DRfZ8nFp.js} +2 -2
  155. package/dist/client/assets/{index-TkyxWt2Q.js → index-G0rP4C-v.js} +3 -3
  156. package/dist/client/assets/{info-A6RAGUB7-CicHHROU.js → info-A6RAGUB7-AXJa674d.js} +1 -1
  157. package/dist/client/assets/{infoDiagram-27XIBGKW-DAFhUj2V.js → infoDiagram-27XIBGKW-CgaIIar7.js} +2 -2
  158. package/dist/client/assets/{input-group-CV0ZpOg5.js → input-group-DIOgVvbV.js} +2 -2
  159. package/dist/client/assets/{input-CN9xdIYL.js → input-u5qjnfMr.js} +2 -2
  160. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-CBEywTMi.js → ishikawaDiagram-5VMMS53U-DSDzMD_t.js} +2 -2
  161. package/dist/client/assets/{journeyDiagram-3NMN7TZE-BIKjvqRL.js → journeyDiagram-3NMN7TZE-Be6o5a7O.js} +2 -2
  162. package/dist/client/assets/{kanban-definition-UXKFOSKX-XOFfprGt.js → kanban-definition-UXKFOSKX-Fpr0ne16.js} +2 -2
  163. package/dist/client/assets/{kbd-Fa27fInv.js → kbd-D4mDfHPa.js} +2 -2
  164. package/dist/client/assets/{keybindings-C81QSEVL.js → keybindings-CzL-fWkh.js} +2 -2
  165. package/dist/client/assets/keyboard-Y7zJXIRo.js +1 -0
  166. package/dist/client/assets/{lazyRouteComponent-BTBK1UDq.js → lazyRouteComponent-dLOOuQ-r.js} +2 -2
  167. package/dist/client/assets/{line-CEyB3WPo.js → line-BXhbrPh0.js} +2 -2
  168. package/dist/client/assets/link-CbhoiCa8.js +1 -0
  169. package/dist/client/assets/{link-C1pmqztR.js → link-YLDgrmSN.js} +2 -2
  170. package/dist/client/assets/{linkedPrompt-B6Q0Cmi6.js → linkedPrompt-E32o3H76.js} +2 -2
  171. package/dist/client/assets/list-Cq4wtMwR.js +1 -0
  172. package/dist/client/assets/main-D9nJEeym.css +2 -0
  173. package/dist/client/assets/main-D9z9rMK1.js +27 -0
  174. package/dist/client/assets/{mediaReference-o1DLUGKI.js → mediaReference-C-grVzJf.js} +2 -2
  175. package/dist/client/assets/{mediaSource-Cfv5uiFj.js → mediaSource-CxVHZYDj.js} +2 -2
  176. package/dist/client/assets/{mermaid-parser.core-BT2QN4a3.js → mermaid-parser.core-BFPy42Wg.js} +4 -4
  177. package/dist/client/assets/{mermaid.core-EPDLhovC.js → mermaid.core-zK2u82e-.js} +5 -5
  178. package/dist/client/assets/message-circle-question-mark-BwzHSg4C.js +1 -0
  179. package/dist/client/assets/message-square-DcSgYDZ6.js +1 -0
  180. package/dist/client/assets/message-square-dashed-Cu56tC0F.js +1 -0
  181. package/dist/client/assets/messages-square-BNeF2306.js +2 -0
  182. package/dist/client/assets/{mindmap-definition-YA3MSWOX-aqL3ALYK.js → mindmap-definition-YA3MSWOX-RzkTvFrT.js} +2 -2
  183. package/dist/client/assets/mouse-pointer-2-DxhF1Woc.js +1 -0
  184. package/dist/client/assets/{number-field-BiWh0ioY.js → number-field-BLz8W5SU.js} +2 -2
  185. package/dist/client/assets/{observeResize-DBJpB0Hu.js → observeResize-WQaFQjbx.js} +2 -2
  186. package/dist/client/assets/{onboarding-gue-HaiI.js → onboarding-DNafmm6s.js} +2 -2
  187. package/dist/client/assets/{openFileInPreview-BuKYchiT.js → openFileInPreview-l6IXWIxV.js} +2 -2
  188. package/dist/client/assets/{p4ProjectFile-DH7qoFHx.js → p4ProjectFile-BzCYJ8I-.js} +2 -2
  189. package/dist/client/assets/{packet-AYTQ26CC-BkyzJMIf.js → packet-AYTQ26CC-rDYSbNWh.js} +1 -1
  190. package/dist/client/assets/{pair-DESVHftX.js → pair-nG9A6oxp.js} +2 -2
  191. package/dist/client/assets/palette-B79srcx1.js +1 -0
  192. package/dist/client/assets/panel-left-Bp59PK2R.js +1 -0
  193. package/dist/client/assets/{panel-tab-close-button-DKugpobT.js → panel-tab-close-button-B2GW1bDy.js} +2 -2
  194. package/dist/client/assets/panels-top-left-CC3HCiIs.js +1 -0
  195. package/dist/client/assets/{pegDiagram-XKGWAZYB-DilAu2aa.js → pegDiagram-XKGWAZYB-8wodyYDi.js} +2 -2
  196. package/dist/client/assets/{phoneViewer-xqyGZwKn.js → phoneViewer-Bei8FsYJ.js} +2 -2
  197. package/dist/client/assets/{pie-WAS4IAKB-DgPx2D64.js → pie-WAS4IAKB-Ce0_zpeP.js} +1 -1
  198. package/dist/client/assets/{pieDiagram-E7YTZNPT-D9PFl5qt.js → pieDiagram-E7YTZNPT-C3QJYWCY.js} +2 -2
  199. package/dist/client/assets/{pierre-icons-BVuUNHGs.js → pierre-icons-CsjmRq9p.js} +2 -2
  200. package/dist/client/assets/{popover-aTTlR6NX.js → popover-6BYEGLLK.js} +2 -2
  201. package/dist/client/assets/{preview-DgLUnqIn.js → preview-BpTu6A2K.js} +2 -2
  202. package/dist/client/assets/{preview-8KYmxrad.js → preview-DFDpDpup.js} +2 -2
  203. package/dist/client/assets/{previewMiniPlayerStore-CZUX4gpf.js → previewMiniPlayerStore-BfMwexwO.js} +2 -2
  204. package/dist/client/assets/{primary-GHQewxsn.js → primary-Cc8Am8Ju.js} +2 -2
  205. package/dist/client/assets/{primaryCloudLinkState-BS4O3v7M.js → primaryCloudLinkState-N7pLty-_.js} +2 -2
  206. package/dist/client/assets/{projectFilesQueryState-DmDFr3yJ.js → projectFilesQueryState-CrGsc81w.js} +2 -2
  207. package/dist/client/assets/projectScriptEditor-RR3KkKhh.js +2 -0
  208. package/dist/client/assets/{pullRequestDetail.logic-C6mxjZFd.js → pullRequestDetail.logic-CE7fVOsp.js} +2 -2
  209. package/dist/client/assets/{pullRequestReviewStore-VIPIhGsh.js → pullRequestReviewStore-BHEIYvsP.js} +2 -2
  210. package/dist/client/assets/{pullRequests-DEHxyBeZ.js → pullRequests-KhjrMCa0.js} +2 -2
  211. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-36GcvWjt.js → quadrantDiagram-AXDQQJYC-Cqx4Dcqi.js} +2 -2
  212. package/dist/client/assets/{queries-BAbZ6wRj.js → queries-Cn1FJB1_.js} +2 -2
  213. package/dist/client/assets/{query-gfas_Faw.js → query-CK8MOmXr.js} +2 -2
  214. package/dist/client/assets/{radar-RG4KPBEZ-B_1p1XBS.js → radar-RG4KPBEZ-DsccxBWq.js} +1 -1
  215. package/dist/client/assets/{radio-group-BcuemB8E.js → radio-group-CM6Ra-QS.js} +2 -2
  216. package/dist/client/assets/{railroad-74A4TZTK-DjaD7aBa.js → railroad-74A4TZTK-B-UN2mSQ.js} +1 -1
  217. package/dist/client/assets/railroad-abnf-HS5TGJTU-CIxA0Vp4.js +1 -0
  218. package/dist/client/assets/railroad-ebnf-LZEXJU2U-Czs81Kdn.js +1 -0
  219. package/dist/client/assets/railroad-peg-WCYAUIDC-B7O8OPsa.js +1 -0
  220. package/dist/client/assets/{railroadDiagram-O6MQD6OU-BfFU3IUU.js → railroadDiagram-O6MQD6OU-B_PdDy5r.js} +2 -2
  221. package/dist/client/assets/{renderScheduler-DE6WzqZi.js → renderScheduler-D1ml_j--.js} +2 -2
  222. package/dist/client/assets/{requirementDiagram-BXWQKSXE-WVgmezGx.js → requirementDiagram-BXWQKSXE-CKZ6HpQu.js} +2 -2
  223. package/dist/client/assets/{rightPanelStore-CsSGBQ8t.js → rightPanelStore-6LLb3GY0.js} +2 -2
  224. package/dist/client/assets/rotate-ccw-dcahmZQ2.js +1 -0
  225. package/dist/client/assets/rotate-cw-CIep6yNT.js +1 -0
  226. package/dist/client/assets/{runtime-C9evwoB9.js → runtime-BVgeNXTV.js} +2 -2
  227. package/dist/client/assets/{runtime-CxeCZPZ3.js → runtime-CCr9UADV.js} +3 -3
  228. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BsCi2aYb.js → sankeyDiagram-P5KCCOFB-BLF-VPcj.js} +2 -2
  229. package/dist/client/assets/{scheduledTasksSettings.logic-Bin7R9R3.js → scheduledTasksSettings.logic-ozIaTRfT.js} +2 -2
  230. package/dist/client/assets/{scroll-area-CRoS-lxP.js → scroll-area-CsrtHuL8.js} +2 -2
  231. package/dist/client/assets/{select-BXOHHCMJ.js → select-BiARKKgd.js} +2 -2
  232. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-C_qj_Szb.js → sequenceDiagram-WJ2MYXX4-BpJGkNAx.js} +2 -2
  233. package/dist/client/assets/{server-BBIVfjrf.js → server-B26doYv6.js} +2 -2
  234. package/dist/client/assets/{session-DZH3pyoG.js → session-CQXL-cTI.js} +2 -2
  235. package/dist/client/assets/{session-logic-RDMPhilH.js → session-logic-C0mrkZ0j.js} +2 -2
  236. package/dist/client/assets/settings-2-C2dIdVBr.js +1 -0
  237. package/dist/client/assets/{settings-0qbtr9oy.js → settings-B5Dj0jhP.js} +2 -2
  238. package/dist/client/assets/settings-DiBtchmK.js +1 -0
  239. package/dist/client/assets/{settings.appearance-CtG85Hzv.js → settings.appearance-Di8HZa2Q.js} +2 -2
  240. package/dist/client/assets/settings.archived-By34XjbG.js +2 -0
  241. package/dist/client/assets/settings.computer-use-DuW-mXPO.js +2 -0
  242. package/dist/client/assets/settings.connections-BJuKrJhl.js +2 -0
  243. package/dist/client/assets/settings.decisions-BO8hfyYm.js +2 -0
  244. package/dist/client/assets/{settings.diagnostics-Ct39tZgQ.js → settings.diagnostics-DSw1QN-I.js} +2 -2
  245. package/dist/client/assets/{settings.general-YgAeT2ec.js → settings.general-RyWWgxqp.js} +2 -2
  246. package/dist/client/assets/{settings.integrations-DIuNSxXg.js → settings.integrations--N8SMmw7.js} +2 -2
  247. package/dist/client/assets/{settings.keybindings-BHpTOm8T.js → settings.keybindings-BeQmUtKv.js} +2 -2
  248. package/dist/client/assets/{settings.open-source-licenses-Dlp4u1NR.js → settings.open-source-licenses-BmgFSigO.js} +2 -2
  249. package/dist/client/assets/{settings.projects-BZP8BJZK.js → settings.projects--jLA2A5b.js} +4 -4
  250. package/dist/client/assets/{settings.providers-Dad6hRGg.js → settings.providers-Cvt1-bmr.js} +3 -3
  251. package/dist/client/assets/{settings.scheduled-tasks-B1Q7wnRI.js → settings.scheduled-tasks-D5IG4nj_.js} +2 -2
  252. package/dist/client/assets/{settings.snap-shot-ZBGDHF90.js → settings.snap-shot-CUZNOX9M.js} +2 -2
  253. package/dist/client/assets/settings.source-control-R63Z9kEM.js +2 -0
  254. package/dist/client/assets/{settings.storage-Dl3cI_3U.js → settings.storage-J1kthey9.js} +2 -2
  255. package/dist/client/assets/{settingsLayout-DKjAOwp4.js → settingsLayout-BzyY4qHt.js} +2 -2
  256. package/dist/client/assets/shield-question-mark-l31p7uuJ.js +1 -0
  257. package/dist/client/assets/{sidebar-D6V5N0ZC.js → sidebar-Dj0htG-5.js} +2 -2
  258. package/dist/client/assets/{sidebarProjectGrouping-DVAIOuq4.js → sidebarProjectGrouping-DxzT7QCQ.js} +2 -2
  259. package/dist/client/assets/{skeleton-DuFqUDDw.js → skeleton-CtSxs1y1.js} +2 -2
  260. package/dist/client/assets/{sortable.esm-DdMawn0Y.js → sortable.esm-n8ce5zjO.js} +2 -2
  261. package/dist/client/assets/{sourceControl-U8x7jR8g.js → sourceControl-C3RSledt.js} +2 -2
  262. package/dist/client/assets/{spinner-C6X42yHv.js → spinner-BXr4m38K.js} +2 -2
  263. package/dist/client/assets/square-pen-CxvvUOOt.js +1 -0
  264. package/dist/client/assets/{standalone-page-hDUmjFb0.js → standalone-page-DSQDdNcR.js} +2 -2
  265. package/dist/client/assets/{stateDiagram-D77RDMKH-FdsqVfsR.js → stateDiagram-D77RDMKH-DFGb4Fx3.js} +2 -2
  266. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-BFcRJjAO.js +2 -0
  267. package/dist/client/assets/{swimlanes-42K2YHIH-D65Z1Od_.js → swimlanes-42K2YHIH-D0z9osG6.js} +2 -2
  268. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-B7z2b1Qv.js +9 -0
  269. package/dist/client/assets/{terminalSessions-DhPFaHUr.js → terminalSessions-3aynRXX1.js} +2 -2
  270. package/dist/client/assets/text-search-DsadxNJw.js +1 -0
  271. package/dist/client/assets/{textarea-CCFZJhy-.js → textarea-DZLyhzuZ.js} +2 -2
  272. package/dist/client/assets/{themePalette-CxbxrCEH.js → themePalette-BZeqG2Hu.js} +2 -2
  273. package/dist/client/assets/{threadSort-TlzPAte9.js → threadSort-BvhI6zOp.js} +2 -2
  274. package/dist/client/assets/{timeline-definition-24CTP7MA-DrXF0NCa.js → timeline-definition-24CTP7MA-oHM5IS4i.js} +2 -2
  275. package/dist/client/assets/{toast-B-l3XS_F.js → toast-Bm36EaG6.js} +2 -2
  276. package/dist/client/assets/{toggle-DOFhC9C7.js → toggle-BzIEPTf7.js} +2 -2
  277. package/dist/client/assets/{toggle-group-B1ghB_yR.js → toggle-group-_C7nJPTT.js} +2 -2
  278. package/dist/client/assets/{tooltip-CYNXW1Ow.js → tooltip-Df-4YKs5.js} +2 -2
  279. package/dist/client/assets/{treeView-Q6P3EWNA-D6bZIPSq.js → treeView-Q6P3EWNA-ONHv8oqx.js} +1 -1
  280. package/dist/client/assets/{treemap-WGGIJYW6-CJr_vK1t.js → treemap-WGGIJYW6-Go2hwkyn.js} +1 -1
  281. package/dist/client/assets/unfold-vertical--twzQtvn.js +1 -0
  282. package/dist/client/assets/{usage-1aJeDf79.js → usage-B26GT0RK.js} +2 -2
  283. package/dist/client/assets/{usageAccess-9ld15_dP.js → usageAccess-BNLOTFbF.js} +2 -2
  284. package/dist/client/assets/{usageFormat-D7uBkeaA.js → usageFormat-DKCO_wk0.js} +2 -2
  285. package/dist/client/assets/{usageShortcuts--2waLBa-.js → usageShortcuts-DxLRXv0W.js} +2 -2
  286. package/dist/client/assets/{use-atom-command-DdGPgtPS.js → use-atom-command-CiEeUGsC.js} +2 -2
  287. package/dist/client/assets/{useAriaLabelledBy-Bp_qmGgf.js → useAriaLabelledBy-CJjXf8Fd.js} +2 -2
  288. package/dist/client/assets/useHandleNewThread-DTz3ztCG.js +2 -0
  289. package/dist/client/assets/{useLocation-yjRHv-GS.js → useLocation-9axGTsrg.js} +2 -2
  290. package/dist/client/assets/useNavigate-BK_XZ1It.js +2 -0
  291. package/dist/client/assets/{useNavigateBack-NMRi6phK.js → useNavigateBack-AIHPN0Oo.js} +2 -2
  292. package/dist/client/assets/{useParams-OFLEf5Ub.js → useParams-CCV3vN4E.js} +2 -2
  293. package/dist/client/assets/{usePermissionStatus-D4K04nHy.js → usePermissionStatus-BnBF7CdE.js} +2 -2
  294. package/dist/client/assets/{usePullRequestActions-DyXuVFpA.js → usePullRequestActions-aKrHzIiJ.js} +2 -2
  295. package/dist/client/assets/{useRegisterFieldControl-QWoLGfik.js → useRegisterFieldControl-Daf1iBkI.js} +2 -2
  296. package/dist/client/assets/{useScopedModelAvailability-udJ9IYpQ.js → useScopedModelAvailability-IKTxpeQL.js} +2 -2
  297. package/dist/client/assets/{useSettings-C1hmCYRR.js → useSettings-CckatJFa.js} +2 -2
  298. package/dist/client/assets/{useT3ConnectAuthPrompt-NQ5SmnTg.js → useT3ConnectAuthPrompt-CK8il-7e.js} +2 -2
  299. package/dist/client/assets/{utils-Nv21__t3.js → utils-DmS758az.js} +5 -5
  300. package/dist/client/assets/{vcsRefInvalidation-CEbBuVCf.js → vcsRefInvalidation-lkYjTxah.js} +2 -2
  301. package/dist/client/assets/{vennDiagram-4TSXK5OY-BJt3j1aO.js → vennDiagram-4TSXK5OY-BwVRZPOj.js} +2 -2
  302. package/dist/client/assets/{wardley-WFR3VGLG-D_UZZZRB.js → wardley-WFR3VGLG-CYl4h3U-.js} +1 -1
  303. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-gZMVt8-K.js → wardleyDiagram-VM6X3IG4-yHMYVGhg.js} +2 -2
  304. package/dist/client/assets/{welcome-BRjof1AW.js → welcome-CGBWwWzE.js} +2 -2
  305. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-BwaDo7WT.js → xychartDiagram-S5SC5T6Z-Td7MQ_xN.js} +2 -2
  306. package/dist/client/index.html +1 -1
  307. package/package.json +1 -1
  308. package/dist/client/assets/CodexSetupSection.logic-CpyIRPfJ.js +0 -2
  309. package/dist/client/assets/ProviderModelPicker-lxEwYGAB.js +0 -2
  310. package/dist/client/assets/ThemeEditorPanel-CnhjGelD.js +0 -5
  311. package/dist/client/assets/_chat-B4G7pIId.js +0 -58
  312. package/dist/client/assets/app-window-CVIo0C1R.js +0 -2
  313. package/dist/client/assets/architecture-7GRP2DOG-B67w-l9F.js +0 -1
  314. package/dist/client/assets/arrow-left-D1nB4UjJ.js +0 -1
  315. package/dist/client/assets/arrow-right-Cbg5uZyw.js +0 -1
  316. package/dist/client/assets/arrow-up-down-DRcJBavW.js +0 -1
  317. package/dist/client/assets/bell-D5jiydSo.js +0 -1
  318. package/dist/client/assets/blocks-mHGBm843.js +0 -1
  319. package/dist/client/assets/bot-Db9dBVz5.js +0 -1
  320. package/dist/client/assets/brain-B_3rxsLd.js +0 -2
  321. package/dist/client/assets/calendar-clock-KAbrMUlv.js +0 -1
  322. package/dist/client/assets/channel-D8Is9vbt.js +0 -2
  323. package/dist/client/assets/chart-no-axes-column-CnM4ppv4.js +0 -1
  324. package/dist/client/assets/chromium-CvI58Z0o.js +0 -2
  325. package/dist/client/assets/classDiagram-ZZMXUADV-CxsiNRJs.js +0 -2
  326. package/dist/client/assets/classDiagram-v2-VYDZK3BY-CxsiNRJs.js +0 -2
  327. package/dist/client/assets/corner-left-up-DSgsQQJh.js +0 -1
  328. package/dist/client/assets/download-BrSkg4EE.js +0 -1
  329. package/dist/client/assets/dynamic-COZhF9Vt.js +0 -3
  330. package/dist/client/assets/earth-D0ZhOX9I.js +0 -1
  331. package/dist/client/assets/ellipsis-Dze-H3uy.js +0 -1
  332. package/dist/client/assets/eventmodeling-NTZA5JFV-jDgS08dP.js +0 -1
  333. package/dist/client/assets/eye-OVEPp8Os.js +0 -1
  334. package/dist/client/assets/file-search-Y-7Ql86o.js +0 -1
  335. package/dist/client/assets/flowDiagram-HODETNUW-DsHnGCQL.js +0 -1
  336. package/dist/client/assets/fold-vertical-BMLbHh0a.js +0 -2
  337. package/dist/client/assets/folder-git-2-DdgpEuW8.js +0 -1
  338. package/dist/client/assets/folder-open-B9DmXcog.js +0 -1
  339. package/dist/client/assets/folder-plus-CLFJj-Gh.js +0 -1
  340. package/dist/client/assets/git-branch-SJsNyJlB.js +0 -1
  341. package/dist/client/assets/grip-vertical-_2pxkeEI.js +0 -1
  342. package/dist/client/assets/hard-drive-DMfAIp4-.js +0 -1
  343. package/dist/client/assets/history-C7dJNEkM.js +0 -1
  344. package/dist/client/assets/house-BpsJcs6J.js +0 -1
  345. package/dist/client/assets/keyboard-C0H4XsBS.js +0 -1
  346. package/dist/client/assets/link-CsVCGX_A.js +0 -1
  347. package/dist/client/assets/list-BKOLPymO.js +0 -1
  348. package/dist/client/assets/main-CJvawsJJ.js +0 -27
  349. package/dist/client/assets/main-DjXoj7An.css +0 -2
  350. package/dist/client/assets/message-circle-question-mark-0PixhBRe.js +0 -1
  351. package/dist/client/assets/message-square-dashed-jX8EWVKo.js +0 -1
  352. package/dist/client/assets/message-square-xfL83Fxi.js +0 -1
  353. package/dist/client/assets/messages-square-DwkvqiPv.js +0 -1
  354. package/dist/client/assets/mouse-pointer-2-DbBU41il.js +0 -2
  355. package/dist/client/assets/palette-DvhXYFMC.js +0 -1
  356. package/dist/client/assets/panel-left-DCz3M7jv.js +0 -1
  357. package/dist/client/assets/panels-top-left-C1xu8Xiu.js +0 -1
  358. package/dist/client/assets/projectScriptEditor-DxxYqdMP.js +0 -2
  359. package/dist/client/assets/railroad-abnf-HS5TGJTU-CA1GF-5t.js +0 -1
  360. package/dist/client/assets/railroad-ebnf-LZEXJU2U-Beda5tl-.js +0 -1
  361. package/dist/client/assets/railroad-peg-WCYAUIDC-D2CRVbbY.js +0 -1
  362. package/dist/client/assets/rotate-ccw-CyPuoUiH.js +0 -1
  363. package/dist/client/assets/rotate-cw-B20Q7RJJ.js +0 -1
  364. package/dist/client/assets/settings-2-DmZK5Wif.js +0 -1
  365. package/dist/client/assets/settings-Br2yM9q3.js +0 -1
  366. package/dist/client/assets/settings.archived-D1CPem1-.js +0 -2
  367. package/dist/client/assets/settings.computer-use-DvBtreaX.js +0 -2
  368. package/dist/client/assets/settings.connections-CeSH1Y-S.js +0 -2
  369. package/dist/client/assets/settings.decisions-FBz5pyct.js +0 -2
  370. package/dist/client/assets/settings.source-control-BXuO43FQ.js +0 -2
  371. package/dist/client/assets/shield-question-mark-Cmz7w9_M.js +0 -1
  372. package/dist/client/assets/square-pen-Dew4fHbM.js +0 -1
  373. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-PvZEFfKe.js +0 -2
  374. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DIDrEY3U.js +0 -9
  375. package/dist/client/assets/text-search-Cchv2p-9.js +0 -1
  376. package/dist/client/assets/unfold-vertical-BLnEY4R7.js +0 -2
  377. package/dist/client/assets/useHandleNewThread-DtCuKpGU.js +0 -2
  378. package/dist/client/assets/useNavigate-DfvN7ISg.js +0 -2
@@ -1,2 +1,2 @@
1
- import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$i as r,Aa as i,Da as a,E as o,Gi as s,Mi as c,Oa as l,Oi as u,Qi as d,Rm as f,Rs as p,Sr as m,Ta as h,Tr as g,Wi as _,Xi as v,Yi as y,Zm as b,Zr as x,_i as S,_o as C,aa as w,cr as T,ea as E,hm as D,ho as O,ja as ee,ji as k,la as A,lo as j,ma as M,mo as N,oa as te,or as P,pa as F,qc as I,qi as L,sa as ne,t as R,ta as z,th as B,ui as re,uo as V,va as H,vo as U,wx as ie,yh as ae,yr as W,yt as oe}from"./utils-Nv21__t3.js";import{t as se}from"./archive-0Qz6rgBl.js";import{t as ce}from"./circle-alert-B83jEPoh.js";import{t as le}from"./circle-check-Y1T60J9X.js";import{t as ue}from"./clock-bc9N_wA2.js";import{t as de}from"./info-BHB-83EA.js";import{t as fe}from"./pin-DfMqpQHz.js";import{t as pe}from"./trash-2-CiyAV2xI.js";import{t as me}from"./triangle-alert-BiHUyRl3.js";import{t as he}from"./x-CSwbgjBe.js";import{An as ge}from"./runtime-CxeCZPZ3.js";import{c as _e,l as ve,u as ye}from"./tooltip-CYNXW1Ow.js";import{t as be}from"./spinner-C6X42yHv.js";import{t as xe}from"./useParams-OFLEf5Ub.js";var Se=ae(I);function Ce(e){return Se(e)&&e.bootstrapThreadDisposition===`deleted`}function we(e){return Se(e)&&e.bootstrapThreadDisposition===`not-created`}var Te=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,RegExp(`\\b(?:is not connected|disconnected|stopped responding|could not establish a WebSocket connection)\\.(?: ${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(ge)})?$`,`i`),/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function Ee(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&Te.some(e=>e.test(t))}function De(e){return Ee(e)?null:e??null}var G=e(n()),Oe=G.createContext(void 0);function ke(){let e=G.useContext(Oe);if(!e)throw Error(U(73));return e}var Ae=0;function je(e){return Ae+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ae}`}function Me(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ne(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Pe=e=>e.toastMetadata,K={toasts:S(e=>e.toasts),isEmpty:S(e=>e.toasts.length===0),toast:S(Pe,(e,t)=>e.get(t)?.value),toastIndex:S(Pe,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:S(Pe,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:S(Pe,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:S(e=>e.hovering),focused:S(e=>e.focused),expanded:S(e=>e.hovering||e.focused),expandedOrOutOfFocus:S(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:S(e=>e.prevFocusElement)},Fe=class extends re{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Ne(e.toasts)},{},K)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=K.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||je(`toast`);if(e.id){let t=K.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=K.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=K.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Ne(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Me(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Me(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Me(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=w.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=z(e);E(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!K.expandedOrOutOfFocus(this.state),a=i?w.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Ne(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=r(L(this.state.viewport));if(!this.state.viewport||!E(this.state.viewport,t)||!d(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=K.toasts(this.state),i=K.toastIndex(this.state,e),a=null,o=i+1;for(;o<n.length;){if(n[o].transitionStatus!==`ending`){a=n[o];break}o+=1}if(!a)for(o=i-1;o>=0;){if(n[o].transitionStatus!==`ending`){a=n[o];break}--o}a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},q=e(M()),Ie=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=C(()=>new Fe({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return F(a.disposeEffect),G.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,q.jsx)(Oe.Provider,{value:a,children:t})},Le=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),Re=G.forwardRef(function(e,t){let{render:n,className:a,style:o,children:c,...l}=e,u=ke(),f=te(),p=G.useRef(!1),m=G.useRef(!1),h=G.useRef(!1),g=u.useState(`isEmpty`),b=u.useState(`toasts`),x=u.useState(`focused`),S=u.useState(`expanded`),C=u.useState(`prevFocusElement`),w=b[0]?.height??0,T=G.useMemo(()=>b.some(e=>e.transitionStatus===`ending`),[b]),D=G.useMemo(()=>b.filter(e=>e.priority===`high`),[b]);G.useEffect(()=>{let e=u.state.viewport;if(!e)return;function t(t){g||t.key===`F6`&&z(t)!==e&&(t.preventDefault(),u.setPrevFocusElement(r(L(e))),e?.focus({preventScroll:!0}),u.pauseTimers(),u.setFocused(!0))}let n=i(e);return v(n,`keydown`,t)},[u,g]),G.useEffect(()=>{let e=u.state.viewport;if(!e||g)return;let t=i(e);function n(e){z(e)===t&&(u.setIsWindowFocused(!1),u.pauseTimers())}function a(n){if(n.relatedTarget)return;let i=z(n),a=r(L(e));(i===t||!E(e,i)||!d(a))&&u.resumeTimers(),f.start(0,()=>u.setIsWindowFocused(!0))}return y(v(t,`blur`,n,!0),v(t,`focus`,a,!0))},[u,f,g]),G.useEffect(()=>{let e=u.state.viewport;if(!e||g)return;let t=L(e);return v(t,`pointerdown`,u.handleDocumentPointerDown,!0)},[g,u]);function O(e){let t=u.state.viewport;t&&(p.current=!0,e.relatedTarget===t?b[0]?.ref?.current?.focus():u.restoreFocusToPrevElement())}function ee(e){e.key===`Tab`&&e.shiftKey&&z(e.nativeEvent)===u.state.viewport&&(e.preventDefault(),u.restoreFocusToPrevElement(),u.resumeTimers())}function k(){let e=u.state.toasts.some(e=>e.transitionStatus===`ending`);u.state.isWindowFocused&&!e&&!h.current&&m.current&&(u.resumeTimers(),u.setHovering(!1),m.current=!1)}G.useEffect(k,[T,u]);function A(){u.pauseTimers(),u.setHovering(!0),m.current=!1}function j(){T||h.current?m.current=!0:(u.resumeTimers(),u.setHovering(!1))}function M(e){e.pointerType===`touch`&&(h.current=!0)}function N(e){e.pointerType===`touch`&&(h.current=!1,k())}function P(){if(p.current){p.current=!1;return}x||d(r(L(u.state.viewport)))&&(u.setFocused(!0),u.pauseTimers())}function F(e){x&&!E(u.state.viewport,e.relatedTarget)&&(u.setFocused(!1),u.resumeTimers())}let I={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:A,onMouseMove:A,onMouseLeave:j,onFocus:P,onBlur:F,onKeyDown:ee,onClick:P,onPointerDown:M,onPointerUp:N,onPointerCancel:N},ne={expanded:S},R=V(`div`,e,{ref:[t,u.setViewport],state:ne,props:[I,{style:{[Le.frontmostHeight]:w?`${w}px`:void 0}},l,{children:(0,q.jsxs)(G.Fragment,{children:[!g&&C&&(0,q.jsx)(_,{onFocus:O}),c,!g&&C&&(0,q.jsx)(_,{onFocus:O})]})}]});return(0,q.jsxs)(G.Fragment,{children:[!g&&C&&(0,q.jsx)(_,{onFocus:O}),R,!x&&D.length>0&&(0,q.jsx)(`div`,{style:s,children:D.map(e=>(0,q.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,q.jsx)(`div`,{children:e.title}),(0,q.jsx)(`div`,{children:e.description})]},e.id))})]})}),ze=e(A()),Be=G.createContext(void 0);function Ve(){let e=G.useContext(Be);if(!e)throw Error(U(66));return e}var J=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({});function He(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Ue(e){let t=i(e).getComputedStyle(e).transform,n=0,r=0,a=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],a=t[0])}}return{x:n,y:r,scale:a}}var We={...j,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Ge=40,Ke=10,Y=.5,qe=1,Je=`${u},${k}`,Ye=G.forwardRef(function(e,t){let{toast:n,render:i,className:o,swipeDirection:s=[`down`,`right`],style:c,...u}=e,d=n.positionerProps?.anchor!==void 0,f=[];d||(f=Array.isArray(s)?s:[s]);let p=f.length>0,m=ke(),[h,_]=G.useState(void 0),[y,b]=G.useState(!1),[x,S]=G.useState(!1),[C,w]=G.useState(!1),[T,D]=G.useState({x:0,y:0}),[O,ee]=G.useState({x:0,y:0,scale:1}),[k,A]=G.useState(),[j,M]=G.useState(),[N,te]=G.useState(null),P=G.useRef(null),F=G.useRef({x:0,y:0}),I=G.useRef({x:0,y:0,scale:1}),R=G.useRef(void 0),B=G.useRef(0),re=G.useRef(!1),H=G.useRef({x:0,y:0}),U=G.useRef(!1),ie=G.useRef({x:0,y:0}),ae=G.useRef(null),W=G.useRef(null),oe=m.useState(`toastIndex`,n.id),se=m.useState(`toastVisibleIndex`,n.id),ce=m.useState(`toastOffsetY`,n.id),le=m.useState(`focused`),ue=m.useState(`expanded`);ne({open:n.transitionStatus!==`ending`,ref:P,onComplete(){n.transitionStatus===`ending`&&m.removeToast(n.id)}});let de=l((e=!1)=>{let t=P.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){m.updateToastInternal(n.id,{ref:P,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?ze.flushSync(a):a()});a(de,[de]);function fe(e){ie.current=e,D(e)}a(()=>()=>{W.current?.abort()},[]);function pe(e,t){let n=e,r=t;return!f.includes(`left`)&&!f.includes(`right`)?n=e>0?e**Y:-(Math.abs(e)**Y):(!f.includes(`right`)&&e>0&&(n=e**Y),!f.includes(`left`)&&e<0&&(n=-(Math.abs(e)**Y))),!f.includes(`up`)&&!f.includes(`down`)?r=t>0?t**Y:-(Math.abs(t)**Y):(!f.includes(`down`)&&t>0&&(r=t**Y),!f.includes(`up`)&&t<0&&(r=-(Math.abs(t)**Y))),{x:n,y:r}}let me=l(e=>{if(e.pointerId!==ae.current)return;ae.current=null,W.current?.abort(),W.current=null,b(!1),S(!1),te(null);let t=I.current;if(e.type===`pointercancel`||re.current){fe({x:t.x,y:t.y}),_(void 0);return}let r=!1,i=ie.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of f){switch(e){case`right`:a>Ge&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>Ge&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(_(s),w(!0),m.closeToast(n.id)):(fe({x:t.x,y:t.y}),_(void 0))});function he(e){if(e.button!==0)return;e.pointerType===`touch`&&m.pauseTimers();let t=z(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Je}`))return;if(re.current=!1,R.current=void 0,B.current=0,ae.current=e.pointerId,F.current={x:e.clientX,y:e.clientY},H.current=F.current,P.current){let e=Ue(P.current);I.current=e,ee(e),fe({x:e.x,y:e.y})}m.setHovering(!0),b(!0),S(!1),te(null),U.current=!0;let n=P.current;if(n){W.current?.abort();let t=new AbortController;W.current=t;let r=L(n);r.addEventListener(`pointerup`,me,{signal:t.signal}),r.addEventListener(`pointercancel`,me,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function ge(e){if(e.pointerId!==ae.current)return;e.preventDefault(),U.current&&=(F.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>H.current.y||i>0&&t<H.current.y)&&(H.current={x:H.current.x,y:t}),(r<0&&n>H.current.x||r>0&&n<H.current.x)&&(H.current={x:n,y:H.current.y});let a=n-F.current.x,o=t-F.current.y,s=t-H.current.y,c=n-H.current.x;if(!x&&Math.sqrt(a*a+o*o)>=qe&&(S(!0),N===null)){let e=f.includes(`left`)||f.includes(`right`),t=f.includes(`up`)||f.includes(`down`);e&&t&&te(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let l;if(!R.current)N===`vertical`?o>0?l=`down`:o<0&&(l=`up`):N===`horizontal`?a>0?l=`right`:a<0&&(l=`left`):l=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,l&&f.includes(l)&&(R.current=l,B.current=He(l,a,o),_(l));else{let e=R.current,t=He(e,c,s);t>Ge?(re.current=!1,_(e)):!(f.includes(`left`)&&f.includes(`right`))&&!(f.includes(`up`)&&f.includes(`down`))&&B.current-t>=Ke&&(re.current=!0)}let u=pe(a,o),d=I.current.x,p=I.current.y;N===`horizontal`?(f.includes(`left`)||f.includes(`right`))&&(d+=u.x):(N===`vertical`||(f.includes(`left`)||f.includes(`right`))&&(d+=u.x),(f.includes(`up`)||f.includes(`down`))&&(p+=u.y)),fe({x:d,y:p})}function _e(e){if(e.key===`Escape`){if(!P.current||!E(P.current,r(L(P.current))))return;m.closeToast(n.id)}}G.useEffect(()=>{if(!p)return;let e=P.current;if(!e)return;function t(t){E(e,z(t))&&t.preventDefault()}return v(e,`touchmove`,t,{passive:!1})},[p]);function ve(){if(!y&&T.x===O.x&&T.y===O.y&&!C)return{[J.swipeMovementX]:`0px`,[J.swipeMovementY]:`0px`};let e=T.x-O.x,t=T.y-O.y;return{transition:y?`none`:void 0,transform:y?`translateX(${T.x}px) translateY(${T.y}px) scale(${O.scale})`:void 0,[J.swipeMovementX]:`${e}px`,[J.swipeMovementY]:`${t}px`}}let ye=n.priority===`high`,be={role:ye?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":k,"aria-describedby":j,"aria-hidden":ye&&!le?!0:void 0,onPointerDown:p?he:void 0,onPointerMove:p?ge:void 0,onPointerUp:p?me:void 0,onPointerCancel:p?me:void 0,onKeyDown:_e,inert:g(n.limited),style:{...ve(),[J.index]:n.transitionStatus===`ending`?oe:se,[J.offsetY]:`${ce}px`,[J.height]:n.height?`${n.height}px`:void 0}},xe=G.useMemo(()=>({rootRef:P,toast:n,titleId:k,setTitleId:A,descriptionId:j,setDescriptionId:M,swiping:y,swipeDirection:h,recalculateHeight:de,index:oe,visibleIndex:se,expanded:ue}),[n,k,j,y,h,de,oe,se,ue]),Se={transitionStatus:n.transitionStatus,expanded:ue,limited:n.limited||!1,type:n.type,swiping:xe.swiping,swipeDirection:xe.swipeDirection},Ce=V(`div`,e,{ref:[t,xe.rootRef],state:Se,stateAttributesMapping:We,props:[be,u]});return(0,q.jsx)(Be.Provider,{value:xe,children:Ce})}),Xe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{visibleIndex:s,expanded:c,recalculateHeight:l}=Ve(),u=G.useRef(null);return a(()=>{let e=u.current;if(!e||(l(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>l(!0)),n=new MutationObserver(()=>l(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[l]),V(`div`,e,{ref:[t,u],state:{expanded:c,behind:s>0},props:o})}),Ze=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:s,...c}=e,{toast:l,setDescriptionId:u}=Ve(),d=s??l.description,f=!!d,p=H(o);a(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m={type:l.type},h=V(`p`,e,{ref:t,state:m,props:{...c,id:p,children:d}});return f?h:null}),Qe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:s,...c}=e,{toast:l,setTitleId:u}=Ve(),d=s??l.title,f=!!d,p=H(o);a(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m={type:l.type},h=V(`h2`,e,{ref:t,state:m,props:{...c,id:p,children:d}});return f?h:null}),$e=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=ke(),{toast:l}=Ve(),u=c.useState(`expanded`),[d,f]=G.useState(!1),{getButtonProps:p,buttonRef:m}=h({disabled:a,native:o}),g={type:l.type};return V(`button`,e,{ref:[t,m],state:g,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),et=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=Ve(),l=c.actionProps?.children??s.children,u=!!l,{getButtonProps:d,buttonRef:f}=h({disabled:a,native:o}),p={type:c.type},m=V(`button`,e,{ref:[t,f],state:p,props:[s,c.actionProps,d,{children:l}]});return u?m:null}),tt=ve,nt=G.createContext(void 0);function rt(){let e=G.useContext(nt);if(e===void 0)throw Error(U(84));return e}var it=G.forwardRef(function(e,t){let{toast:n,...r}=e,i=ke(),a=n.positionerProps??N,{render:o,className:s,anchor:l=a.anchor,positionMethod:u=a.positionMethod??`absolute`,side:d=a.side??`top`,align:f=a.align??`center`,sideOffset:p=a.sideOffset??0,alignOffset:h=a.alignOffset??0,collisionBoundary:g=a.collisionBoundary??`clipping-ancestors`,collisionPadding:_=a.collisionPadding??5,arrowPadding:v=a.arrowPadding??5,sticky:y=a.sticky??!1,disableAnchorTracking:b=a.disableAnchorTracking??!1,collisionAvoidance:S=a.collisionAvoidance??c,style:C,...w}=r,[T,E]=G.useState(null),D=i.useState(`toastIndex`,n.id),k=i.useState(`toastVisibleIndex`,n.id),A=ee(l)?l:null,j=x({open:!0,onOpenChange:O,elements:{floating:T,reference:A}}),M=m({anchor:A,positionMethod:u,floatingRootContext:j,mounted:!0,side:d,sideOffset:p,align:f,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:S}),te=G.useMemo(()=>({side:M.side,align:M.align,anchorHidden:M.anchorHidden}),[M.side,M.align,M.anchorHidden]),P=W(e,te,{styles:{...M.positionerStyles,[J.index]:n.transitionStatus===`ending`?D:k},transitionStatus:n.transitionStatus,props:w,refs:[t,E]});return(0,q.jsx)(nt.Provider,{value:M,children:P})}),at=G.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=rt();return V(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function ot(){let e=G.useContext(Oe);if(!e)throw Error(U(73));let t=e.useState(`toasts`);return G.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function st(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||je(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var ct=t({Action:()=>et,Arrow:()=>at,Close:()=>$e,Content:()=>Xe,Description:()=>Ze,Portal:()=>tt,Positioner:()=>it,Provider:()=>Ie,Root:()=>Ye,Title:()=>Qe,Viewport:()=>Re,createToastManager:()=>st,useToastManager:()=>ot});function lt(){let e=[],t=0,n=new Set,r=new Map,i=new Map,a=new Map,o=new Map,s=new Set,c=()=>n.forEach(e=>e()),l=e=>{clearTimeout(r.get(e)),r.delete(e);let t=a.get(e);t!==void 0&&(i.set(e,Math.max(0,(i.get(e)??0)-(Date.now()-t))),a.delete(e))},u=t=>{let n=e.find(e=>e.id===t);n&&(l(t),i.delete(t),o.delete(t),e=e.filter(e=>e.id!==t),c(),n.onDismiss?.())},d=e=>{s.size||o.get(e)?.size||r.has(e)||!i.has(e)||(a.set(e,Date.now()),r.set(e,setTimeout(()=>u(e),i.get(e))))},f=n=>{let r=n.id??`notification-${++t}`;l(r);let a={...n,id:r};e=[...e.filter(e=>e.id!==r),a];let o=n.durationMs??8e3;return o>0?i.set(r,o):i.delete(r),d(r),c(),r},p=(e,t)=>{let n=o.get(e)??new Set;n.add(t),o.set(e,n),l(e)},m=(e,t)=>{o.get(e)?.delete(t),d(e)};return{show:f,dismiss:u,pause:p,resume:m,getSnapshot:()=>e,subscribe:e=>(n.add(e),()=>{n.delete(e)}),setPaused:(t,n)=>{n?s.add(t):s.delete(t);for(let t of e)s.size?l(t.id):d(t.id)},performAction:async(t,n)=>{let r=e.find(e=>e.id===t),i=r?.actions?.find(e=>e.id===n);if(!r||!i||r.pendingActionId)return;let a={...r,pendingActionId:n};p(t,`action`),e=e.map(e=>e===r?a:e),c();try{await i.run(),e.includes(a)&&u(t)}catch(t){e.includes(a)&&f({...r,title:i.failureTitle??`Could not complete action`,description:t instanceof Error?t.message:`Please try again.`,tone:`error`})}finally{m(t,`action`)}}}}var X=lt(),Z=ie(),ut={archive:se,clock:ue,pin:fe,trash:pe};function dt(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,G.useEffect)(ft,t),null}function ft(){let e=!0,t=new Set,n=()=>{let n=X.getSnapshot();for(let e of t)n.some(t=>t.id===e)||(t.delete(e),$.close(`shared:${e}`));for(let r of n){let n=r.icon&&r.tone!==`error`?ut[r.icon]:null,i=r.actions??[],a=i.find(mt),o=e=>({children:e.label,disabled:!!r.pendingActionId,onClick:()=>{X.performAction(r.id,e.id)}}),s={title:r.title,description:r.description??null,type:r.tone??`info`,timeout:0,onClose:()=>{e&&X.getSnapshot().includes(r)&&X.dismiss(r.id)},actionProps:{children:null},data:{sharedToastId:r.id,leadingIcon:n?(0,q.jsx)(n,{className:`size-4`}):void 0,additionalActions:i.filter(e=>e!==a).map(e=>({id:e.id,props:o(e)})),...a?{secondaryActionProps:o(a)}:{},secondaryActionVariant:`soft`,hideCopyButton:!0}};t.has(r.id)?$.update(`shared:${r.id}`,s):(t.add(r.id),$.add({...s,id:`shared:${r.id}`}))}},r=X.subscribe(n),i=pt;return document.addEventListener(`visibilitychange`,i),i(),n(),()=>{e=!1,r(),document.removeEventListener(`visibilitychange`,i),X.setPaused(`web-hidden`,!1);for(let e of t)$.close(`shared:${e}`)}}function pt(){return X.setPaused(`web-hidden`,document.hidden)}function mt(e){return e.primary}var ht=class extends B()(`ClipboardApiUnavailableError`,{target:b}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},gt=class extends B()(`ClipboardWriteError`,{target:b,cause:f()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},_t=class extends B()(`ClipboardReadUnavailableError`,{target:b}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},vt=class extends B()(`ClipboardReadError`,{target:b,cause:f()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function yt(e,t){if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.setAttribute(`aria-hidden`,`true`),n.style.position=`fixed`,n.style.top=`0`,n.style.left=`0`,n.style.opacity=`0`,n.style.fontSize=`16px`;let r=document.activeElement,i=n=>{if(t&&n.clipboardData){n.clipboardData.setData(`text/plain`,e);for(let[e,r]of Object.entries(t))n.clipboardData.setData(e,r);n.preventDefault()}};document.body.appendChild(n),n.addEventListener(`copy`,i);try{return n.focus({preventScroll:!0}),n.select(),n.setSelectionRange(0,e.length),document.execCommand(`copy`)}catch{return!1}finally{n.removeEventListener(`copy`,i),n.remove();let e=r?.focus;typeof e==`function`&&e.call(r)}}async function bt(e,t=`text`,n){if(typeof window>`u`)throw new ht({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[D];if(r&&(n={...n,"text/html":oe(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(yt(e,n))return!0;throw new ht({target:t})}try{if(n&&typeof ClipboardItem<`u`&&navigator.clipboard.write)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,new Blob([t],{type:e})]))})]),!0}catch{let t=n[`text/html`];if(t)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),"text/html":new Blob([t],{type:`text/html`})})]),!0}catch{}}return await navigator.clipboard.writeText(e),!0}catch(e){throw new gt({target:t,cause:e})}}async function xt(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new _t({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new vt({target:e,cause:t})}}function St({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=G.useState(!1),s=G.useRef(null),c=G.useRef(n),l=G.useRef(r),u=G.useRef(t),d=G.useRef(e);c.current=n,l.current=r;let f=G.useRef(i);u.current=t,d.current=e,f.current=i;let p=G.useCallback((e,t)=>{bt(e,u.current,f.current).then(e=>{e&&(s.current&&clearTimeout(s.current),o(!0),c.current?.(t),d.current!==0&&(s.current=setTimeout(()=>{o(!1),s.current=null},d.current)))},e=>{console.error(e),l.current?.(e,t)})},[]);return G.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Ct(e){return e===`live`}function wt(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function Tt(e){return{environmentId:e.environmentId,threadId:e.threadId}}function Et(e){return{draftId:e}}function Dt(e){return!e.environmentId||!e.threadId?null:p(e.environmentId,e.threadId)}function Ot(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:p(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function kt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function At(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function jt(e,t){return t<=1?!1:e>0}function Mt(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=Nt(e.height);if(e.transitionStatus===`ending`){let r={toast:e,visibleIndex:t,offsetY:n};return n+=a,t+=1,r}let o={toast:e,visibleIndex:r,offsetY:i};return n+=a,t+=1,i+=a,r+=1,o});return{frontmostHeight:Nt(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function Nt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function Pt(e,t){if(e?.threadRef)return t!==null&&e.threadRef.environmentId===t.environmentId&&e.threadRef.threadId===t.threadId;let n=e?.threadId;return!n||t?.threadId===n}var Q=ye(),$=st(),Ft=st(),It=new Map,Lt={error:ce,info:de,loading:be,success:le,warning:me},Rt=180;function zt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Rt))return`line-clamp-4`}var Bt=`absolute z-20 -top-1.5 -right-1.5`,Vt=R(`inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/60 bg-popover/92 text-muted-foreground shadow-sm outline-none backdrop-blur-sm`,`transition-[color,background-color,box-shadow] hover:bg-popover hover:text-foreground`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`);function Ht(e,t,n){n?.(),e.close(t)}function Ut(e){let t=(0,Z.c)(13),{text:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={target:`error-message`},t[0]=r):r=t[0];let{copyToClipboard:i,isCopied:a}=St(r),o=a?`Copied error`:`Copy error`,s;t[1]!==i||t[2]!==n?(s=()=>i(n),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=a&&`text-success`,l;t[4]===c?l=t[5]:(l=R(`size-3`,c),t[4]=c,t[5]=l);let u=a?Q.Check:Q.Copy,d;t[6]!==l||t[7]!==u?(d=(0,q.jsx)(_e,{className:l,icon:u}),t[6]=l,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==o||t[10]!==s||t[11]!==d?(f=(0,q.jsx)(P,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o,className:`[--control-icon-color:currentColor] rounded-md text-muted-foreground/80 hover:bg-transparent hover:text-muted-foreground`,onClick:s,children:d}),t[9]=o,t[10]=s,t[11]=d,t[12]=f):f=t[12],f}var Wt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function Gt(e){let t=(0,Z.c)(13),{children:n,labels:r}=e,[i,a]=(0,G.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Kt),t[0]=c):c=t[0];let l=i?Q.ChevronUp:Q.ChevronDown,u;t[1]===l?u=t[2]:(u=(0,q.jsx)(_e,{className:`size-3.5 shrink-0 opacity-80`,icon:l,strokeWidth:2.25}),t[1]=l,t[2]=u);let d=i?s:o,f;t[3]!==i||t[4]!==u||t[5]!==d?(f=(0,q.jsxs)(`button`,{"aria-expanded":i,className:`inline-flex cursor-pointer items-center gap-1 rounded-md py-0.5 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,onClick:c,type:`button`,children:[u,d]}),t[3]=i,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]!==n||t[8]!==i?(p=i?(0,q.jsx)(`div`,{className:Wt,children:n}):null,t[7]=n,t[8]=i,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,q.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Kt(e){return!e}function qt(e){let t=(0,Z.c)(36),{toastData:n,toastDescription:r,toastType:i}=e,a=n?.expandableContent,o;t[0]===n?.expandableLabels?o=t[1]:(o=n?.expandableLabels??{},t[0]=n?.expandableLabels,t[1]=o);let s=o,c=n?.expandableDescriptionTrigger??!1,l;t[2]!==r||t[3]!==i?(l=R(`min-w-0 select-text wrap-break-word text-muted-foreground`,zt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,G.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,q.jsx)(Ze,{className:u,"data-slot":`toast-description`}),t[5]=u,t[6]=e),e}if(!c){let e;t[7]===u?e=t[8]:(e=(0,q.jsx)(Ze,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,q.jsx)(Gt,{labels:s,children:a}),t[9]=a,t[10]=s,t[11]=n):n=t[11];let r;return t[12]!==e||t[13]!==n?(r=(0,q.jsxs)(q.Fragment,{children:[e,n]}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}let p=s.expand??`Show details`,m=s.collapse??`Hide details`,h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>f(Jt),t[15]=h):h=t[15];let g=h,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},t[16]=_):_=t[16];let v=_,y=d?m:p,b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=R(`group flex min-w-0 w-full cursor-pointer select-none items-start gap-1.5 rounded-sm text-left outline-none ring-offset-background`,`transition-colors hover:bg-muted/40`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==i?(x=R(`min-w-0 select-none wrap-break-word text-muted-foreground`,zt(i,r),`underline-offset-2 decoration-muted-foreground/60 group-hover:underline`),t[18]=r,t[19]=i,t[20]=x):x=t[20];let S;t[21]===x?S=t[22]:(S=(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,q.jsx)(Ze,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?Q.ChevronUp:Q.ChevronDown,w;t[23]===C?w=t[24]:(w=(0,q.jsx)(_e,{"aria-hidden":!0,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80`,icon:C,strokeWidth:2.25}),t[23]=C,t[24]=w);let T;t[25]!==d||t[26]!==w||t[27]!==y||t[28]!==S?(T=(0,q.jsxs)(`div`,{"aria-label":y,"aria-expanded":d,className:b,onClick:g,onKeyDown:v,role:`button`,tabIndex:0,children:[S,w]}),t[25]=d,t[26]=w,t[27]=y,t[28]=S,t[29]=T):T=t[29];let E;t[30]!==a||t[31]!==d?(E=d?(0,q.jsx)(`div`,{className:Wt,children:a}):null,t[30]=a,t[31]=d,t[32]=E):E=t[32];let D;return t[33]!==T||t[34]!==E?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Jt(e){return!e}function Yt(e){let t=e.type?Lt[e.type]:null,n=At(e.actionProps)&&e.data?.actionLayout===`stacked-end`,r=e.data?.actionVariant??`default`,i=e.data?.secondaryActionVariant??`outline`,a=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,o=(e.data?.additionalActions?.length??0)>0,s=e.data?.secondaryActionProps!==void 0,c=a!==null||At(e.actionProps)||o||s;return{Icon:t,stackedActionLayout:n,actionVariant:r,secondaryActionVariant:i,copyErrorText:a,hasTrailingControls:c,inlineContentEndPad:c?`pr-6`:`pr-10`}}function Xt(e){let t=(0,Z.c)(38),{stackedActionLayout:n,Icon:r,copyErrorText:i,actionProps:a,actionVariant:o,secondaryActionVariant:s,hasTrailingControls:c,toastData:l,toastDescription:u,toastType:d}=e,f;t[0]===l?.additionalActions?f=t[1]:(f=l?.additionalActions??[],t[0]=l?.additionalActions,t[1]=f);let p=f,m=l?.secondaryActionProps,h=l?.leadingIcon,g;t[2]===m?g=t[3]:(g=m??{},t[2]=m,t[3]=g);let _,v;t[4]===g?(_=t[5],v=t[6]):({className:_,...v}=g,t[4]=g,t[5]=_,t[6]=v);let y=n?`pr-5`:`flex-1`,b;t[7]===y?b=t[8]:(b=R(`flex min-h-0 min-w-0 flex-col gap-0.5`,y),t[7]=y,t[8]=b);let x;t[9]!==r||t[10]!==h?(x=h?(0,q.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:h}):r?(0,q.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,q.jsx)(r,{className:`in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80`})}):null,t[9]=r,t[10]=h,t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,q.jsx)(Qe,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[12]=S):S=t[12];let C;t[13]===x?C=t[14]:(C=(0,q.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[x,S]}),t[13]=x,t[14]=C);let w;t[15]!==l||t[16]!==u||t[17]!==d?(w=(0,q.jsx)(qt,{toastData:l,toastDescription:u,toastType:d}),t[15]=l,t[16]=u,t[17]=d,t[18]=w):w=t[18];let E;t[19]!==b||t[20]!==C||t[21]!==w?(E=(0,q.jsxs)(`div`,{className:b,children:[C,w]}),t[19]=b,t[20]=C,t[21]=w,t[22]=E):E=t[22];let D;t[23]!==a||t[24]!==o||t[25]!==p||t[26]!==i||t[27]!==c||t[28]!==_||t[29]!==m||t[30]!==v||t[31]!==s||t[32]!==n||t[33]!==l?.sharedToastId?(D=c?(0,q.jsxs)(`div`,{className:R(`flex items-center gap-1.5`,n?`w-full justify-end`:`shrink-0`),children:[i===null?null:(0,q.jsx)(Ut,{text:i}),p.map(e=>{let{id:t,props:n}=e,{className:r,...i}=n;return(0,G.createElement)(P,{...i,className:r,key:t,size:`xs`,type:`button`,variant:s})}),m?(0,q.jsx)(P,{...v,className:_,size:`xs`,type:`button`,variant:l?.sharedToastId?`solid-neutral`:s}):null,At(a)?(0,q.jsx)(et,{className:R(T({size:`xs`,variant:o}),`shrink-0`),"data-slot":`toast-action`,children:a?.children}):null]}):null,t[23]=a,t[24]=o,t[25]=p,t[26]=i,t[27]=c,t[28]=_,t[29]=m,t[30]=v,t[31]=s,t[32]=n,t[33]=l?.sharedToastId,t[34]=D):D=t[34];let O;return t[35]!==D||t[36]!==E?(O=(0,q.jsxs)(q.Fragment,{children:[E,D]}),t[35]=D,t[36]=E,t[37]=O):O=t[37],O}function Zt(){let e=(0,Z.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:Qt},e[0]=t):t=e[0];let n=xe(t),r;e[1]===n?r=e[2]:(r=e=>n?.kind===`draft`?e.getDraftSession(n.draftId):null,e[1]=n,e[2]=r);let i=o(r),a;bb0:{if(n?.kind===`server`){a=n.threadRef;break bb0}if(n?.kind===`draft`&&i){let t;e[3]!==i.environmentId||e[4]!==i.threadId?(t={environmentId:i.environmentId,threadId:i.threadId},e[3]=i.environmentId,e[4]=i.threadId,e[5]=t):t=e[5],a=t;break bb0}a=null}return a}function Qt(e){return Ot(e)}function $t(e){let t=(0,Z.c)(4),{toastId:n,dismissAfterVisibleMs:r}=e,i,a;return t[0]!==r||t[1]!==n?(i=()=>{if(!r||r<=0||typeof window>`u`||typeof document>`u`)return;let e=It.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,It.delete(n),$.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),It.set(n,e))},l=()=>{if(!(a||t!==null)){if(e<=0){s();return}t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)}},u=()=>{if(document.visibilityState===`visible`&&document.hasFocus()){l();return}c()};return u(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`focus`,u),window.addEventListener(`blur`,u),()=>{document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`focus`,u),window.removeEventListener(`blur`,u),c(),o()}},a=[r,n],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,G.useEffect)(i,a),null}function en(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,position:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`top-center`:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(dt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,q.jsx)(tn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,q.jsxs)(Ie,{toastManager:$,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function tn(e){let t=(0,Z.c)(19),{position:n}=e,{toasts:r}=ot(),i=Zt(),a;t[0]===n?a=t[1]:(a=n.startsWith(`top`),t[0]=n,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=e=>Pt(e.data,i),t[2]=i,t[3]=s);let c=Mt(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(nn));for(let t of It.keys())e.has(t)||It.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,G.useEffect)(l,u);let d=ct,f=ct,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=R(`fixed z-100 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-header-offset:var(--workspace-topbar-height)] [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]`,`data-[position*=top]:top-[calc(var(--toast-inset)+var(--toast-header-offset))]`,`data-[position*=bottom]:bottom-(--toast-inset)`,`data-[position*=left]:left-(--toast-inset)`,`data-[position*=right]:right-(--toast-inset)`,`data-[position*=center]:-translate-x-1/2 data-[position*=center]:left-1/2`),t[7]=p):p=t[7];let m=`${c.frontmostHeight}px`,h;t[8]===m?h=t[9]:(h={"--toast-frontmost-height":m},t[8]=m,t[9]=h);let g=h,_=c.items.map(e=>{let{toast:t,visibleIndex:r,offsetY:i}=e,a=jt(r,c.items.length),s=Yt(t),{stackedActionLayout:l,inlineContentEndPad:u}=s;return(0,q.jsxs)(Ye,{className:R(`dropdown-glass absolute z-[calc(9999-var(--toast-index))] w-full overflow-visible select-none rounded-xl text-popover-foreground shadow-lg shadow-black/10 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] motion-reduce:transition-none`,`data-[position*=right]:right-0 data-[position*=right]:left-auto`,`data-[position*=left]:right-auto data-[position*=left]:left-0`,`data-[position*=center]:right-0 data-[position*=center]:left-0`,`data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top`,`data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom`,`after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full`,`data-[position*=top]:after:top-full`,`data-[position*=bottom]:after:bottom-full`,r>0?`not-data-expanded:[--toast-calc-height:var(--toast-frontmost-height)] data-expanded:[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`:`[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`,`[--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]`,r>0?`not-data-expanded:h-(--toast-calc-height) data-expanded:h-auto`:`h-auto`,`data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]`,`data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]`,`data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-limited:opacity-0`,`data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]`,`data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]`,`data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-starting-style:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:opacity-0`,`data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`),"data-position":n,onPointerEnter:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`pointer`)},onPointerLeave:()=>{t.data?.sharedToastId&&X.resume(t.data.sharedToastId,`pointer`)},onFocusCapture:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`focus`)},onBlurCapture:e=>{t.data?.sharedToastId&&!e.currentTarget.contains(e.relatedTarget)&&X.resume(t.data.sharedToastId,`focus`)},style:{"--toast-index":r,"--toast-offset-y":`${i}px`},swipeDirection:n.includes(`center`)?[o?`up`:`down`]:n.includes(`left`)?[`left`,o?`up`:`down`]:[`right`,o?`up`:`down`],toast:t,children:[(0,q.jsx)($t,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),!t.data?.sharedToastId&&(0,q.jsx)(`div`,{className:Bt,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Vt,"data-slot":`toast-close`,onClick:()=>Ht($,t.id,t.data?.onClose),type:`button`,children:(0,q.jsx)(he,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsxs)(Xe,{className:R(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,l?`flex flex-col gap-2 py-2.5 pr-3.5`:R(`py-3`,`flex items-center justify-between gap-2`,t.data?.sharedToastId?`pr-2`:u),a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,q.jsx)(Xt,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),t.data?.sharedToastId&&(0,q.jsx)(P,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,onClick:()=>X.dismiss(t.data.sharedToastId),children:(0,q.jsx)(he,{})})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,q.jsx)(f.Viewport,{className:p,"data-position":n,"data-slot":`toast-viewport`,style:g,children:_}),t[10]=n,t[11]=g,t[12]=_,t[13]=f.Viewport,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==d.Portal?(y=(0,q.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function nn(e){return e.id}function rn(e){let t=(0,Z.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,q.jsx)(an,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,q.jsxs)(Ie,{toastManager:Ft,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function an(){let e=(0,Z.c)(7),{toasts:t}=ot(),n=Zt(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>Pt(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(on),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,q.jsx)(tt,{"data-slot":`toast-portal-anchored`,children:(0,q.jsx)(Re,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function on(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=Yt(e),{stackedActionLayout:i,inlineContentEndPad:a}=r;return n?.anchor?(0,q.jsx)(it,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,q.jsx)(Ye,{className:R(`dropdown-glass relative overflow-visible text-balance text-popover-foreground text-xs shadow-xl shadow-black/25 transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,t?`rounded-md`:`rounded-lg`),"data-slot":`toast-popup`,toast:e,children:t?(0,q.jsx)(Xe,{className:`pointer-events-auto px-2 py-1`,children:(0,q.jsx)(Qe,{"data-slot":`toast-title`})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:Bt,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Vt,"data-slot":`toast-close`,onClick:()=>Ht(Ft,e.id,e.data?.onClose),type:`button`,children:(0,q.jsx)(he,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsx)(Xe,{className:R(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm [overflow-x:clip]`,i?`flex flex-col gap-2 py-2.5 pr-3.5`:R(`py-3`,`flex items-center justify-between gap-1.5`,a)),children:(0,q.jsx)(Xt,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type})})]})})},e.id):null}export{Ce as _,Et as a,kt as c,Ot as d,xt as f,De as g,X as h,$ as i,Dt as l,bt as m,en as n,Tt as o,St as p,Ft as r,Ct as s,rn as t,wt as u,we as v};
2
- //# sourceMappingURL=toast-B-l3XS_F.js.map
1
+ import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$i as r,Aa as i,Da as a,E as o,Gi as s,Mi as c,Oa as l,Oi as u,Qi as d,Rm as f,Rs as p,Sr as m,Ta as h,Tr as g,Wi as _,Xi as v,Yi as y,Zm as b,Zr as x,_i as S,_o as C,aa as w,cr as T,ea as E,hm as D,ho as O,ja as ee,ji as k,la as A,lo as j,ma as M,mo as N,oa as te,or as P,pa as F,qc as I,qi as L,sa as ne,t as R,ta as z,th as B,ui as re,uo as V,va as H,vo as U,wx as ie,yh as ae,yr as W,yt as oe}from"./utils-DmS758az.js";import{t as se}from"./archive-0Qz6rgBl.js";import{t as ce}from"./circle-alert-B83jEPoh.js";import{t as le}from"./circle-check-Y1T60J9X.js";import{t as ue}from"./clock-bc9N_wA2.js";import{t as de}from"./info-BHB-83EA.js";import{t as fe}from"./pin-DfMqpQHz.js";import{t as pe}from"./trash-2-CiyAV2xI.js";import{t as me}from"./triangle-alert-BiHUyRl3.js";import{t as he}from"./x-CSwbgjBe.js";import{An as ge}from"./runtime-CCr9UADV.js";import{c as _e,l as ve,u as ye}from"./tooltip-Df-4YKs5.js";import{t as be}from"./spinner-BXr4m38K.js";import{t as xe}from"./useParams-CCV3vN4E.js";var Se=ae(I);function Ce(e){return Se(e)&&e.bootstrapThreadDisposition===`deleted`}function we(e){return Se(e)&&e.bootstrapThreadDisposition===`not-created`}var Te=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,RegExp(`\\b(?:is not connected|disconnected|stopped responding|could not establish a WebSocket connection)\\.(?: ${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(ge)})?$`,`i`),/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function Ee(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&Te.some(e=>e.test(t))}function De(e){return Ee(e)?null:e??null}var G=e(n()),Oe=G.createContext(void 0);function ke(){let e=G.useContext(Oe);if(!e)throw Error(U(73));return e}var Ae=0;function je(e){return Ae+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ae}`}function Me(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ne(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Pe=e=>e.toastMetadata,K={toasts:S(e=>e.toasts),isEmpty:S(e=>e.toasts.length===0),toast:S(Pe,(e,t)=>e.get(t)?.value),toastIndex:S(Pe,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:S(Pe,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:S(Pe,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:S(e=>e.hovering),focused:S(e=>e.focused),expanded:S(e=>e.hovering||e.focused),expandedOrOutOfFocus:S(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:S(e=>e.prevFocusElement)},Fe=class extends re{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Ne(e.toasts)},{},K)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=K.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||je(`toast`);if(e.id){let t=K.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=K.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=K.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Ne(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Me(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Me(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Me(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=w.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=z(e);E(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!K.expandedOrOutOfFocus(this.state),a=i?w.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Ne(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=r(L(this.state.viewport));if(!this.state.viewport||!E(this.state.viewport,t)||!d(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=K.toasts(this.state),i=K.toastIndex(this.state,e),a=null,o=i+1;for(;o<n.length;){if(n[o].transitionStatus!==`ending`){a=n[o];break}o+=1}if(!a)for(o=i-1;o>=0;){if(n[o].transitionStatus!==`ending`){a=n[o];break}--o}a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},q=e(M()),Ie=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=C(()=>new Fe({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return F(a.disposeEffect),G.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,q.jsx)(Oe.Provider,{value:a,children:t})},Le=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),Re=G.forwardRef(function(e,t){let{render:n,className:a,style:o,children:c,...l}=e,u=ke(),f=te(),p=G.useRef(!1),m=G.useRef(!1),h=G.useRef(!1),g=u.useState(`isEmpty`),b=u.useState(`toasts`),x=u.useState(`focused`),S=u.useState(`expanded`),C=u.useState(`prevFocusElement`),w=b[0]?.height??0,T=G.useMemo(()=>b.some(e=>e.transitionStatus===`ending`),[b]),D=G.useMemo(()=>b.filter(e=>e.priority===`high`),[b]);G.useEffect(()=>{let e=u.state.viewport;if(!e)return;function t(t){g||t.key===`F6`&&z(t)!==e&&(t.preventDefault(),u.setPrevFocusElement(r(L(e))),e?.focus({preventScroll:!0}),u.pauseTimers(),u.setFocused(!0))}let n=i(e);return v(n,`keydown`,t)},[u,g]),G.useEffect(()=>{let e=u.state.viewport;if(!e||g)return;let t=i(e);function n(e){z(e)===t&&(u.setIsWindowFocused(!1),u.pauseTimers())}function a(n){if(n.relatedTarget)return;let i=z(n),a=r(L(e));(i===t||!E(e,i)||!d(a))&&u.resumeTimers(),f.start(0,()=>u.setIsWindowFocused(!0))}return y(v(t,`blur`,n,!0),v(t,`focus`,a,!0))},[u,f,g]),G.useEffect(()=>{let e=u.state.viewport;if(!e||g)return;let t=L(e);return v(t,`pointerdown`,u.handleDocumentPointerDown,!0)},[g,u]);function O(e){let t=u.state.viewport;t&&(p.current=!0,e.relatedTarget===t?b[0]?.ref?.current?.focus():u.restoreFocusToPrevElement())}function ee(e){e.key===`Tab`&&e.shiftKey&&z(e.nativeEvent)===u.state.viewport&&(e.preventDefault(),u.restoreFocusToPrevElement(),u.resumeTimers())}function k(){let e=u.state.toasts.some(e=>e.transitionStatus===`ending`);u.state.isWindowFocused&&!e&&!h.current&&m.current&&(u.resumeTimers(),u.setHovering(!1),m.current=!1)}G.useEffect(k,[T,u]);function A(){u.pauseTimers(),u.setHovering(!0),m.current=!1}function j(){T||h.current?m.current=!0:(u.resumeTimers(),u.setHovering(!1))}function M(e){e.pointerType===`touch`&&(h.current=!0)}function N(e){e.pointerType===`touch`&&(h.current=!1,k())}function P(){if(p.current){p.current=!1;return}x||d(r(L(u.state.viewport)))&&(u.setFocused(!0),u.pauseTimers())}function F(e){x&&!E(u.state.viewport,e.relatedTarget)&&(u.setFocused(!1),u.resumeTimers())}let I={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:A,onMouseMove:A,onMouseLeave:j,onFocus:P,onBlur:F,onKeyDown:ee,onClick:P,onPointerDown:M,onPointerUp:N,onPointerCancel:N},ne={expanded:S},R=V(`div`,e,{ref:[t,u.setViewport],state:ne,props:[I,{style:{[Le.frontmostHeight]:w?`${w}px`:void 0}},l,{children:(0,q.jsxs)(G.Fragment,{children:[!g&&C&&(0,q.jsx)(_,{onFocus:O}),c,!g&&C&&(0,q.jsx)(_,{onFocus:O})]})}]});return(0,q.jsxs)(G.Fragment,{children:[!g&&C&&(0,q.jsx)(_,{onFocus:O}),R,!x&&D.length>0&&(0,q.jsx)(`div`,{style:s,children:D.map(e=>(0,q.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,q.jsx)(`div`,{children:e.title}),(0,q.jsx)(`div`,{children:e.description})]},e.id))})]})}),ze=e(A()),Be=G.createContext(void 0);function Ve(){let e=G.useContext(Be);if(!e)throw Error(U(66));return e}var J=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({});function He(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Ue(e){let t=i(e).getComputedStyle(e).transform,n=0,r=0,a=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],a=t[0])}}return{x:n,y:r,scale:a}}var We={...j,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Ge=40,Ke=10,Y=.5,qe=1,Je=`${u},${k}`,Ye=G.forwardRef(function(e,t){let{toast:n,render:i,className:o,swipeDirection:s=[`down`,`right`],style:c,...u}=e,d=n.positionerProps?.anchor!==void 0,f=[];d||(f=Array.isArray(s)?s:[s]);let p=f.length>0,m=ke(),[h,_]=G.useState(void 0),[y,b]=G.useState(!1),[x,S]=G.useState(!1),[C,w]=G.useState(!1),[T,D]=G.useState({x:0,y:0}),[O,ee]=G.useState({x:0,y:0,scale:1}),[k,A]=G.useState(),[j,M]=G.useState(),[N,te]=G.useState(null),P=G.useRef(null),F=G.useRef({x:0,y:0}),I=G.useRef({x:0,y:0,scale:1}),R=G.useRef(void 0),B=G.useRef(0),re=G.useRef(!1),H=G.useRef({x:0,y:0}),U=G.useRef(!1),ie=G.useRef({x:0,y:0}),ae=G.useRef(null),W=G.useRef(null),oe=m.useState(`toastIndex`,n.id),se=m.useState(`toastVisibleIndex`,n.id),ce=m.useState(`toastOffsetY`,n.id),le=m.useState(`focused`),ue=m.useState(`expanded`);ne({open:n.transitionStatus!==`ending`,ref:P,onComplete(){n.transitionStatus===`ending`&&m.removeToast(n.id)}});let de=l((e=!1)=>{let t=P.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){m.updateToastInternal(n.id,{ref:P,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?ze.flushSync(a):a()});a(de,[de]);function fe(e){ie.current=e,D(e)}a(()=>()=>{W.current?.abort()},[]);function pe(e,t){let n=e,r=t;return!f.includes(`left`)&&!f.includes(`right`)?n=e>0?e**Y:-(Math.abs(e)**Y):(!f.includes(`right`)&&e>0&&(n=e**Y),!f.includes(`left`)&&e<0&&(n=-(Math.abs(e)**Y))),!f.includes(`up`)&&!f.includes(`down`)?r=t>0?t**Y:-(Math.abs(t)**Y):(!f.includes(`down`)&&t>0&&(r=t**Y),!f.includes(`up`)&&t<0&&(r=-(Math.abs(t)**Y))),{x:n,y:r}}let me=l(e=>{if(e.pointerId!==ae.current)return;ae.current=null,W.current?.abort(),W.current=null,b(!1),S(!1),te(null);let t=I.current;if(e.type===`pointercancel`||re.current){fe({x:t.x,y:t.y}),_(void 0);return}let r=!1,i=ie.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of f){switch(e){case`right`:a>Ge&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>Ge&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(_(s),w(!0),m.closeToast(n.id)):(fe({x:t.x,y:t.y}),_(void 0))});function he(e){if(e.button!==0)return;e.pointerType===`touch`&&m.pauseTimers();let t=z(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Je}`))return;if(re.current=!1,R.current=void 0,B.current=0,ae.current=e.pointerId,F.current={x:e.clientX,y:e.clientY},H.current=F.current,P.current){let e=Ue(P.current);I.current=e,ee(e),fe({x:e.x,y:e.y})}m.setHovering(!0),b(!0),S(!1),te(null),U.current=!0;let n=P.current;if(n){W.current?.abort();let t=new AbortController;W.current=t;let r=L(n);r.addEventListener(`pointerup`,me,{signal:t.signal}),r.addEventListener(`pointercancel`,me,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function ge(e){if(e.pointerId!==ae.current)return;e.preventDefault(),U.current&&=(F.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>H.current.y||i>0&&t<H.current.y)&&(H.current={x:H.current.x,y:t}),(r<0&&n>H.current.x||r>0&&n<H.current.x)&&(H.current={x:n,y:H.current.y});let a=n-F.current.x,o=t-F.current.y,s=t-H.current.y,c=n-H.current.x;if(!x&&Math.sqrt(a*a+o*o)>=qe&&(S(!0),N===null)){let e=f.includes(`left`)||f.includes(`right`),t=f.includes(`up`)||f.includes(`down`);e&&t&&te(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let l;if(!R.current)N===`vertical`?o>0?l=`down`:o<0&&(l=`up`):N===`horizontal`?a>0?l=`right`:a<0&&(l=`left`):l=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,l&&f.includes(l)&&(R.current=l,B.current=He(l,a,o),_(l));else{let e=R.current,t=He(e,c,s);t>Ge?(re.current=!1,_(e)):!(f.includes(`left`)&&f.includes(`right`))&&!(f.includes(`up`)&&f.includes(`down`))&&B.current-t>=Ke&&(re.current=!0)}let u=pe(a,o),d=I.current.x,p=I.current.y;N===`horizontal`?(f.includes(`left`)||f.includes(`right`))&&(d+=u.x):(N===`vertical`||(f.includes(`left`)||f.includes(`right`))&&(d+=u.x),(f.includes(`up`)||f.includes(`down`))&&(p+=u.y)),fe({x:d,y:p})}function _e(e){if(e.key===`Escape`){if(!P.current||!E(P.current,r(L(P.current))))return;m.closeToast(n.id)}}G.useEffect(()=>{if(!p)return;let e=P.current;if(!e)return;function t(t){E(e,z(t))&&t.preventDefault()}return v(e,`touchmove`,t,{passive:!1})},[p]);function ve(){if(!y&&T.x===O.x&&T.y===O.y&&!C)return{[J.swipeMovementX]:`0px`,[J.swipeMovementY]:`0px`};let e=T.x-O.x,t=T.y-O.y;return{transition:y?`none`:void 0,transform:y?`translateX(${T.x}px) translateY(${T.y}px) scale(${O.scale})`:void 0,[J.swipeMovementX]:`${e}px`,[J.swipeMovementY]:`${t}px`}}let ye=n.priority===`high`,be={role:ye?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":k,"aria-describedby":j,"aria-hidden":ye&&!le?!0:void 0,onPointerDown:p?he:void 0,onPointerMove:p?ge:void 0,onPointerUp:p?me:void 0,onPointerCancel:p?me:void 0,onKeyDown:_e,inert:g(n.limited),style:{...ve(),[J.index]:n.transitionStatus===`ending`?oe:se,[J.offsetY]:`${ce}px`,[J.height]:n.height?`${n.height}px`:void 0}},xe=G.useMemo(()=>({rootRef:P,toast:n,titleId:k,setTitleId:A,descriptionId:j,setDescriptionId:M,swiping:y,swipeDirection:h,recalculateHeight:de,index:oe,visibleIndex:se,expanded:ue}),[n,k,j,y,h,de,oe,se,ue]),Se={transitionStatus:n.transitionStatus,expanded:ue,limited:n.limited||!1,type:n.type,swiping:xe.swiping,swipeDirection:xe.swipeDirection},Ce=V(`div`,e,{ref:[t,xe.rootRef],state:Se,stateAttributesMapping:We,props:[be,u]});return(0,q.jsx)(Be.Provider,{value:xe,children:Ce})}),Xe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{visibleIndex:s,expanded:c,recalculateHeight:l}=Ve(),u=G.useRef(null);return a(()=>{let e=u.current;if(!e||(l(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>l(!0)),n=new MutationObserver(()=>l(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[l]),V(`div`,e,{ref:[t,u],state:{expanded:c,behind:s>0},props:o})}),Ze=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:s,...c}=e,{toast:l,setDescriptionId:u}=Ve(),d=s??l.description,f=!!d,p=H(o);a(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m={type:l.type},h=V(`p`,e,{ref:t,state:m,props:{...c,id:p,children:d}});return f?h:null}),Qe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:s,...c}=e,{toast:l,setTitleId:u}=Ve(),d=s??l.title,f=!!d,p=H(o);a(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m={type:l.type},h=V(`h2`,e,{ref:t,state:m,props:{...c,id:p,children:d}});return f?h:null}),$e=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=ke(),{toast:l}=Ve(),u=c.useState(`expanded`),[d,f]=G.useState(!1),{getButtonProps:p,buttonRef:m}=h({disabled:a,native:o}),g={type:l.type};return V(`button`,e,{ref:[t,m],state:g,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),et=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=Ve(),l=c.actionProps?.children??s.children,u=!!l,{getButtonProps:d,buttonRef:f}=h({disabled:a,native:o}),p={type:c.type},m=V(`button`,e,{ref:[t,f],state:p,props:[s,c.actionProps,d,{children:l}]});return u?m:null}),tt=ve,nt=G.createContext(void 0);function rt(){let e=G.useContext(nt);if(e===void 0)throw Error(U(84));return e}var it=G.forwardRef(function(e,t){let{toast:n,...r}=e,i=ke(),a=n.positionerProps??N,{render:o,className:s,anchor:l=a.anchor,positionMethod:u=a.positionMethod??`absolute`,side:d=a.side??`top`,align:f=a.align??`center`,sideOffset:p=a.sideOffset??0,alignOffset:h=a.alignOffset??0,collisionBoundary:g=a.collisionBoundary??`clipping-ancestors`,collisionPadding:_=a.collisionPadding??5,arrowPadding:v=a.arrowPadding??5,sticky:y=a.sticky??!1,disableAnchorTracking:b=a.disableAnchorTracking??!1,collisionAvoidance:S=a.collisionAvoidance??c,style:C,...w}=r,[T,E]=G.useState(null),D=i.useState(`toastIndex`,n.id),k=i.useState(`toastVisibleIndex`,n.id),A=ee(l)?l:null,j=x({open:!0,onOpenChange:O,elements:{floating:T,reference:A}}),M=m({anchor:A,positionMethod:u,floatingRootContext:j,mounted:!0,side:d,sideOffset:p,align:f,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:S}),te=G.useMemo(()=>({side:M.side,align:M.align,anchorHidden:M.anchorHidden}),[M.side,M.align,M.anchorHidden]),P=W(e,te,{styles:{...M.positionerStyles,[J.index]:n.transitionStatus===`ending`?D:k},transitionStatus:n.transitionStatus,props:w,refs:[t,E]});return(0,q.jsx)(nt.Provider,{value:M,children:P})}),at=G.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=rt();return V(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function ot(){let e=G.useContext(Oe);if(!e)throw Error(U(73));let t=e.useState(`toasts`);return G.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function st(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||je(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var ct=t({Action:()=>et,Arrow:()=>at,Close:()=>$e,Content:()=>Xe,Description:()=>Ze,Portal:()=>tt,Positioner:()=>it,Provider:()=>Ie,Root:()=>Ye,Title:()=>Qe,Viewport:()=>Re,createToastManager:()=>st,useToastManager:()=>ot});function lt(){let e=[],t=0,n=new Set,r=new Map,i=new Map,a=new Map,o=new Map,s=new Set,c=()=>n.forEach(e=>e()),l=e=>{clearTimeout(r.get(e)),r.delete(e);let t=a.get(e);t!==void 0&&(i.set(e,Math.max(0,(i.get(e)??0)-(Date.now()-t))),a.delete(e))},u=t=>{let n=e.find(e=>e.id===t);n&&(l(t),i.delete(t),o.delete(t),e=e.filter(e=>e.id!==t),c(),n.onDismiss?.())},d=e=>{s.size||o.get(e)?.size||r.has(e)||!i.has(e)||(a.set(e,Date.now()),r.set(e,setTimeout(()=>u(e),i.get(e))))},f=n=>{let r=n.id??`notification-${++t}`;l(r);let a={...n,id:r};e=[...e.filter(e=>e.id!==r),a];let o=n.durationMs??8e3;return o>0?i.set(r,o):i.delete(r),d(r),c(),r},p=(e,t)=>{let n=o.get(e)??new Set;n.add(t),o.set(e,n),l(e)},m=(e,t)=>{o.get(e)?.delete(t),d(e)};return{show:f,dismiss:u,pause:p,resume:m,getSnapshot:()=>e,subscribe:e=>(n.add(e),()=>{n.delete(e)}),setPaused:(t,n)=>{n?s.add(t):s.delete(t);for(let t of e)s.size?l(t.id):d(t.id)},performAction:async(t,n)=>{let r=e.find(e=>e.id===t),i=r?.actions?.find(e=>e.id===n);if(!r||!i||r.pendingActionId)return;let a={...r,pendingActionId:n};p(t,`action`),e=e.map(e=>e===r?a:e),c();try{await i.run(),e.includes(a)&&u(t)}catch(t){e.includes(a)&&f({...r,title:i.failureTitle??`Could not complete action`,description:t instanceof Error?t.message:`Please try again.`,tone:`error`})}finally{m(t,`action`)}}}}var X=lt(),Z=ie(),ut={archive:se,clock:ue,pin:fe,trash:pe};function dt(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,G.useEffect)(ft,t),null}function ft(){let e=!0,t=new Set,n=()=>{let n=X.getSnapshot();for(let e of t)n.some(t=>t.id===e)||(t.delete(e),$.close(`shared:${e}`));for(let r of n){let n=r.icon&&r.tone!==`error`?ut[r.icon]:null,i=r.actions??[],a=i.find(mt),o=e=>({children:e.label,disabled:!!r.pendingActionId,onClick:()=>{X.performAction(r.id,e.id)}}),s={title:r.title,description:r.description??null,type:r.tone??`info`,timeout:0,onClose:()=>{e&&X.getSnapshot().includes(r)&&X.dismiss(r.id)},actionProps:{children:null},data:{sharedToastId:r.id,leadingIcon:n?(0,q.jsx)(n,{className:`size-4`}):void 0,additionalActions:i.filter(e=>e!==a).map(e=>({id:e.id,props:o(e)})),...a?{secondaryActionProps:o(a)}:{},secondaryActionVariant:`soft`,hideCopyButton:!0}};t.has(r.id)?$.update(`shared:${r.id}`,s):(t.add(r.id),$.add({...s,id:`shared:${r.id}`}))}},r=X.subscribe(n),i=pt;return document.addEventListener(`visibilitychange`,i),i(),n(),()=>{e=!1,r(),document.removeEventListener(`visibilitychange`,i),X.setPaused(`web-hidden`,!1);for(let e of t)$.close(`shared:${e}`)}}function pt(){return X.setPaused(`web-hidden`,document.hidden)}function mt(e){return e.primary}var ht=class extends B()(`ClipboardApiUnavailableError`,{target:b}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},gt=class extends B()(`ClipboardWriteError`,{target:b,cause:f()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},_t=class extends B()(`ClipboardReadUnavailableError`,{target:b}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},vt=class extends B()(`ClipboardReadError`,{target:b,cause:f()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function yt(e,t){if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.setAttribute(`aria-hidden`,`true`),n.style.position=`fixed`,n.style.top=`0`,n.style.left=`0`,n.style.opacity=`0`,n.style.fontSize=`16px`;let r=document.activeElement,i=n=>{if(t&&n.clipboardData){n.clipboardData.setData(`text/plain`,e);for(let[e,r]of Object.entries(t))n.clipboardData.setData(e,r);n.preventDefault()}};document.body.appendChild(n),n.addEventListener(`copy`,i);try{return n.focus({preventScroll:!0}),n.select(),n.setSelectionRange(0,e.length),document.execCommand(`copy`)}catch{return!1}finally{n.removeEventListener(`copy`,i),n.remove();let e=r?.focus;typeof e==`function`&&e.call(r)}}async function bt(e,t=`text`,n){if(typeof window>`u`)throw new ht({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[D];if(r&&(n={...n,"text/html":oe(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(yt(e,n))return!0;throw new ht({target:t})}try{if(n&&typeof ClipboardItem<`u`&&navigator.clipboard.write)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,new Blob([t],{type:e})]))})]),!0}catch{let t=n[`text/html`];if(t)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),"text/html":new Blob([t],{type:`text/html`})})]),!0}catch{}}return await navigator.clipboard.writeText(e),!0}catch(e){throw new gt({target:t,cause:e})}}async function xt(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new _t({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new vt({target:e,cause:t})}}function St({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=G.useState(!1),s=G.useRef(null),c=G.useRef(n),l=G.useRef(r),u=G.useRef(t),d=G.useRef(e);c.current=n,l.current=r;let f=G.useRef(i);u.current=t,d.current=e,f.current=i;let p=G.useCallback((e,t)=>{bt(e,u.current,f.current).then(e=>{e&&(s.current&&clearTimeout(s.current),o(!0),c.current?.(t),d.current!==0&&(s.current=setTimeout(()=>{o(!1),s.current=null},d.current)))},e=>{console.error(e),l.current?.(e,t)})},[]);return G.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Ct(e){return e===`live`}function wt(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function Tt(e){return{environmentId:e.environmentId,threadId:e.threadId}}function Et(e){return{draftId:e}}function Dt(e){return!e.environmentId||!e.threadId?null:p(e.environmentId,e.threadId)}function Ot(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:p(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function kt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function At(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function jt(e,t){return t<=1?!1:e>0}function Mt(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=Nt(e.height);if(e.transitionStatus===`ending`){let r={toast:e,visibleIndex:t,offsetY:n};return n+=a,t+=1,r}let o={toast:e,visibleIndex:r,offsetY:i};return n+=a,t+=1,i+=a,r+=1,o});return{frontmostHeight:Nt(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function Nt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function Pt(e,t){if(e?.threadRef)return t!==null&&e.threadRef.environmentId===t.environmentId&&e.threadRef.threadId===t.threadId;let n=e?.threadId;return!n||t?.threadId===n}var Q=ye(),$=st(),Ft=st(),It=new Map,Lt={error:ce,info:de,loading:be,success:le,warning:me},Rt=180;function zt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Rt))return`line-clamp-4`}var Bt=`absolute z-20 -top-1.5 -right-1.5`,Vt=R(`inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/60 bg-popover/92 text-muted-foreground shadow-sm outline-none backdrop-blur-sm`,`transition-[color,background-color,box-shadow] hover:bg-popover hover:text-foreground`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`);function Ht(e,t,n){n?.(),e.close(t)}function Ut(e){let t=(0,Z.c)(13),{text:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={target:`error-message`},t[0]=r):r=t[0];let{copyToClipboard:i,isCopied:a}=St(r),o=a?`Copied error`:`Copy error`,s;t[1]!==i||t[2]!==n?(s=()=>i(n),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=a&&`text-success`,l;t[4]===c?l=t[5]:(l=R(`size-3`,c),t[4]=c,t[5]=l);let u=a?Q.Check:Q.Copy,d;t[6]!==l||t[7]!==u?(d=(0,q.jsx)(_e,{className:l,icon:u}),t[6]=l,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==o||t[10]!==s||t[11]!==d?(f=(0,q.jsx)(P,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o,className:`[--control-icon-color:currentColor] rounded-md text-muted-foreground/80 hover:bg-transparent hover:text-muted-foreground`,onClick:s,children:d}),t[9]=o,t[10]=s,t[11]=d,t[12]=f):f=t[12],f}var Wt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function Gt(e){let t=(0,Z.c)(13),{children:n,labels:r}=e,[i,a]=(0,G.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Kt),t[0]=c):c=t[0];let l=i?Q.ChevronUp:Q.ChevronDown,u;t[1]===l?u=t[2]:(u=(0,q.jsx)(_e,{className:`size-3.5 shrink-0 opacity-80`,icon:l,strokeWidth:2.25}),t[1]=l,t[2]=u);let d=i?s:o,f;t[3]!==i||t[4]!==u||t[5]!==d?(f=(0,q.jsxs)(`button`,{"aria-expanded":i,className:`inline-flex cursor-pointer items-center gap-1 rounded-md py-0.5 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,onClick:c,type:`button`,children:[u,d]}),t[3]=i,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]!==n||t[8]!==i?(p=i?(0,q.jsx)(`div`,{className:Wt,children:n}):null,t[7]=n,t[8]=i,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,q.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Kt(e){return!e}function qt(e){let t=(0,Z.c)(36),{toastData:n,toastDescription:r,toastType:i}=e,a=n?.expandableContent,o;t[0]===n?.expandableLabels?o=t[1]:(o=n?.expandableLabels??{},t[0]=n?.expandableLabels,t[1]=o);let s=o,c=n?.expandableDescriptionTrigger??!1,l;t[2]!==r||t[3]!==i?(l=R(`min-w-0 select-text wrap-break-word text-muted-foreground`,zt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,G.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,q.jsx)(Ze,{className:u,"data-slot":`toast-description`}),t[5]=u,t[6]=e),e}if(!c){let e;t[7]===u?e=t[8]:(e=(0,q.jsx)(Ze,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,q.jsx)(Gt,{labels:s,children:a}),t[9]=a,t[10]=s,t[11]=n):n=t[11];let r;return t[12]!==e||t[13]!==n?(r=(0,q.jsxs)(q.Fragment,{children:[e,n]}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}let p=s.expand??`Show details`,m=s.collapse??`Hide details`,h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>f(Jt),t[15]=h):h=t[15];let g=h,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},t[16]=_):_=t[16];let v=_,y=d?m:p,b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=R(`group flex min-w-0 w-full cursor-pointer select-none items-start gap-1.5 rounded-sm text-left outline-none ring-offset-background`,`transition-colors hover:bg-muted/40`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==i?(x=R(`min-w-0 select-none wrap-break-word text-muted-foreground`,zt(i,r),`underline-offset-2 decoration-muted-foreground/60 group-hover:underline`),t[18]=r,t[19]=i,t[20]=x):x=t[20];let S;t[21]===x?S=t[22]:(S=(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,q.jsx)(Ze,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?Q.ChevronUp:Q.ChevronDown,w;t[23]===C?w=t[24]:(w=(0,q.jsx)(_e,{"aria-hidden":!0,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80`,icon:C,strokeWidth:2.25}),t[23]=C,t[24]=w);let T;t[25]!==d||t[26]!==w||t[27]!==y||t[28]!==S?(T=(0,q.jsxs)(`div`,{"aria-label":y,"aria-expanded":d,className:b,onClick:g,onKeyDown:v,role:`button`,tabIndex:0,children:[S,w]}),t[25]=d,t[26]=w,t[27]=y,t[28]=S,t[29]=T):T=t[29];let E;t[30]!==a||t[31]!==d?(E=d?(0,q.jsx)(`div`,{className:Wt,children:a}):null,t[30]=a,t[31]=d,t[32]=E):E=t[32];let D;return t[33]!==T||t[34]!==E?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Jt(e){return!e}function Yt(e){let t=e.type?Lt[e.type]:null,n=At(e.actionProps)&&e.data?.actionLayout===`stacked-end`,r=e.data?.actionVariant??`default`,i=e.data?.secondaryActionVariant??`outline`,a=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,o=(e.data?.additionalActions?.length??0)>0,s=e.data?.secondaryActionProps!==void 0,c=a!==null||At(e.actionProps)||o||s;return{Icon:t,stackedActionLayout:n,actionVariant:r,secondaryActionVariant:i,copyErrorText:a,hasTrailingControls:c,inlineContentEndPad:c?`pr-6`:`pr-10`}}function Xt(e){let t=(0,Z.c)(38),{stackedActionLayout:n,Icon:r,copyErrorText:i,actionProps:a,actionVariant:o,secondaryActionVariant:s,hasTrailingControls:c,toastData:l,toastDescription:u,toastType:d}=e,f;t[0]===l?.additionalActions?f=t[1]:(f=l?.additionalActions??[],t[0]=l?.additionalActions,t[1]=f);let p=f,m=l?.secondaryActionProps,h=l?.leadingIcon,g;t[2]===m?g=t[3]:(g=m??{},t[2]=m,t[3]=g);let _,v;t[4]===g?(_=t[5],v=t[6]):({className:_,...v}=g,t[4]=g,t[5]=_,t[6]=v);let y=n?`pr-5`:`flex-1`,b;t[7]===y?b=t[8]:(b=R(`flex min-h-0 min-w-0 flex-col gap-0.5`,y),t[7]=y,t[8]=b);let x;t[9]!==r||t[10]!==h?(x=h?(0,q.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:h}):r?(0,q.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,q.jsx)(r,{className:`in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80`})}):null,t[9]=r,t[10]=h,t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,q.jsx)(Qe,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[12]=S):S=t[12];let C;t[13]===x?C=t[14]:(C=(0,q.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[x,S]}),t[13]=x,t[14]=C);let w;t[15]!==l||t[16]!==u||t[17]!==d?(w=(0,q.jsx)(qt,{toastData:l,toastDescription:u,toastType:d}),t[15]=l,t[16]=u,t[17]=d,t[18]=w):w=t[18];let E;t[19]!==b||t[20]!==C||t[21]!==w?(E=(0,q.jsxs)(`div`,{className:b,children:[C,w]}),t[19]=b,t[20]=C,t[21]=w,t[22]=E):E=t[22];let D;t[23]!==a||t[24]!==o||t[25]!==p||t[26]!==i||t[27]!==c||t[28]!==_||t[29]!==m||t[30]!==v||t[31]!==s||t[32]!==n||t[33]!==l?.sharedToastId?(D=c?(0,q.jsxs)(`div`,{className:R(`flex items-center gap-1.5`,n?`w-full justify-end`:`shrink-0`),children:[i===null?null:(0,q.jsx)(Ut,{text:i}),p.map(e=>{let{id:t,props:n}=e,{className:r,...i}=n;return(0,G.createElement)(P,{...i,className:r,key:t,size:`xs`,type:`button`,variant:s})}),m?(0,q.jsx)(P,{...v,className:_,size:`xs`,type:`button`,variant:l?.sharedToastId?`solid-neutral`:s}):null,At(a)?(0,q.jsx)(et,{className:R(T({size:`xs`,variant:o}),`shrink-0`),"data-slot":`toast-action`,children:a?.children}):null]}):null,t[23]=a,t[24]=o,t[25]=p,t[26]=i,t[27]=c,t[28]=_,t[29]=m,t[30]=v,t[31]=s,t[32]=n,t[33]=l?.sharedToastId,t[34]=D):D=t[34];let O;return t[35]!==D||t[36]!==E?(O=(0,q.jsxs)(q.Fragment,{children:[E,D]}),t[35]=D,t[36]=E,t[37]=O):O=t[37],O}function Zt(){let e=(0,Z.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:Qt},e[0]=t):t=e[0];let n=xe(t),r;e[1]===n?r=e[2]:(r=e=>n?.kind===`draft`?e.getDraftSession(n.draftId):null,e[1]=n,e[2]=r);let i=o(r),a;bb0:{if(n?.kind===`server`){a=n.threadRef;break bb0}if(n?.kind===`draft`&&i){let t;e[3]!==i.environmentId||e[4]!==i.threadId?(t={environmentId:i.environmentId,threadId:i.threadId},e[3]=i.environmentId,e[4]=i.threadId,e[5]=t):t=e[5],a=t;break bb0}a=null}return a}function Qt(e){return Ot(e)}function $t(e){let t=(0,Z.c)(4),{toastId:n,dismissAfterVisibleMs:r}=e,i,a;return t[0]!==r||t[1]!==n?(i=()=>{if(!r||r<=0||typeof window>`u`||typeof document>`u`)return;let e=It.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,It.delete(n),$.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),It.set(n,e))},l=()=>{if(!(a||t!==null)){if(e<=0){s();return}t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)}},u=()=>{if(document.visibilityState===`visible`&&document.hasFocus()){l();return}c()};return u(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`focus`,u),window.addEventListener(`blur`,u),()=>{document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`focus`,u),window.removeEventListener(`blur`,u),c(),o()}},a=[r,n],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,G.useEffect)(i,a),null}function en(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,position:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`top-center`:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(dt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,q.jsx)(tn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,q.jsxs)(Ie,{toastManager:$,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function tn(e){let t=(0,Z.c)(19),{position:n}=e,{toasts:r}=ot(),i=Zt(),a;t[0]===n?a=t[1]:(a=n.startsWith(`top`),t[0]=n,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=e=>Pt(e.data,i),t[2]=i,t[3]=s);let c=Mt(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(nn));for(let t of It.keys())e.has(t)||It.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,G.useEffect)(l,u);let d=ct,f=ct,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=R(`fixed z-100 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-header-offset:var(--workspace-topbar-height)] [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]`,`data-[position*=top]:top-[calc(var(--toast-inset)+var(--toast-header-offset))]`,`data-[position*=bottom]:bottom-(--toast-inset)`,`data-[position*=left]:left-(--toast-inset)`,`data-[position*=right]:right-(--toast-inset)`,`data-[position*=center]:-translate-x-1/2 data-[position*=center]:left-1/2`),t[7]=p):p=t[7];let m=`${c.frontmostHeight}px`,h;t[8]===m?h=t[9]:(h={"--toast-frontmost-height":m},t[8]=m,t[9]=h);let g=h,_=c.items.map(e=>{let{toast:t,visibleIndex:r,offsetY:i}=e,a=jt(r,c.items.length),s=Yt(t),{stackedActionLayout:l,inlineContentEndPad:u}=s;return(0,q.jsxs)(Ye,{className:R(`dropdown-glass absolute z-[calc(9999-var(--toast-index))] w-full overflow-visible select-none rounded-xl text-popover-foreground shadow-lg shadow-black/10 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] motion-reduce:transition-none`,`data-[position*=right]:right-0 data-[position*=right]:left-auto`,`data-[position*=left]:right-auto data-[position*=left]:left-0`,`data-[position*=center]:right-0 data-[position*=center]:left-0`,`data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top`,`data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom`,`after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full`,`data-[position*=top]:after:top-full`,`data-[position*=bottom]:after:bottom-full`,r>0?`not-data-expanded:[--toast-calc-height:var(--toast-frontmost-height)] data-expanded:[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`:`[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`,`[--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]`,r>0?`not-data-expanded:h-(--toast-calc-height) data-expanded:h-auto`:`h-auto`,`data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]`,`data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]`,`data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-limited:opacity-0`,`data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]`,`data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]`,`data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-starting-style:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:opacity-0`,`data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`),"data-position":n,onPointerEnter:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`pointer`)},onPointerLeave:()=>{t.data?.sharedToastId&&X.resume(t.data.sharedToastId,`pointer`)},onFocusCapture:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`focus`)},onBlurCapture:e=>{t.data?.sharedToastId&&!e.currentTarget.contains(e.relatedTarget)&&X.resume(t.data.sharedToastId,`focus`)},style:{"--toast-index":r,"--toast-offset-y":`${i}px`},swipeDirection:n.includes(`center`)?[o?`up`:`down`]:n.includes(`left`)?[`left`,o?`up`:`down`]:[`right`,o?`up`:`down`],toast:t,children:[(0,q.jsx)($t,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),!t.data?.sharedToastId&&(0,q.jsx)(`div`,{className:Bt,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Vt,"data-slot":`toast-close`,onClick:()=>Ht($,t.id,t.data?.onClose),type:`button`,children:(0,q.jsx)(he,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsxs)(Xe,{className:R(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,l?`flex flex-col gap-2 py-2.5 pr-3.5`:R(`py-3`,`flex items-center justify-between gap-2`,t.data?.sharedToastId?`pr-2`:u),a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,q.jsx)(Xt,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),t.data?.sharedToastId&&(0,q.jsx)(P,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,onClick:()=>X.dismiss(t.data.sharedToastId),children:(0,q.jsx)(he,{})})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,q.jsx)(f.Viewport,{className:p,"data-position":n,"data-slot":`toast-viewport`,style:g,children:_}),t[10]=n,t[11]=g,t[12]=_,t[13]=f.Viewport,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==d.Portal?(y=(0,q.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function nn(e){return e.id}function rn(e){let t=(0,Z.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,q.jsx)(an,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,q.jsxs)(Ie,{toastManager:Ft,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function an(){let e=(0,Z.c)(7),{toasts:t}=ot(),n=Zt(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>Pt(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(on),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,q.jsx)(tt,{"data-slot":`toast-portal-anchored`,children:(0,q.jsx)(Re,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function on(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=Yt(e),{stackedActionLayout:i,inlineContentEndPad:a}=r;return n?.anchor?(0,q.jsx)(it,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,q.jsx)(Ye,{className:R(`dropdown-glass relative overflow-visible text-balance text-popover-foreground text-xs shadow-xl shadow-black/25 transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,t?`rounded-md`:`rounded-lg`),"data-slot":`toast-popup`,toast:e,children:t?(0,q.jsx)(Xe,{className:`pointer-events-auto px-2 py-1`,children:(0,q.jsx)(Qe,{"data-slot":`toast-title`})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:Bt,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Vt,"data-slot":`toast-close`,onClick:()=>Ht(Ft,e.id,e.data?.onClose),type:`button`,children:(0,q.jsx)(he,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsx)(Xe,{className:R(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm [overflow-x:clip]`,i?`flex flex-col gap-2 py-2.5 pr-3.5`:R(`py-3`,`flex items-center justify-between gap-1.5`,a)),children:(0,q.jsx)(Xt,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type})})]})})},e.id):null}export{Ce as _,Et as a,kt as c,Ot as d,xt as f,De as g,X as h,$ as i,Dt as l,bt as m,en as n,Tt as o,St as p,Ft as r,Ct as s,rn as t,wt as u,we as v};
2
+ //# sourceMappingURL=toast-Bm36EaG6.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Cx as n,Na as r,Ta as i,Xa as a,_a as o,dr as s,ha as c,ma as l,t as u,uo as d,vo as f,wx as p}from"./utils-Nv21__t3.js";var m=e(t()),h=m.createContext(void 0);function g(e=!0){let t=m.useContext(h);if(t===void 0&&!e)throw Error(f(7));return t}var _=e(l()),v=m.forwardRef(function(e,t){let{className:n,defaultPressed:l=!1,disabled:u=!1,form:f,onPressedChange:p,pressed:m,render:h,type:v,value:y,nativeButton:b=!0,style:x,...S}=e,C=o(y||void 0),w=g(),T=w?.value??[],E=w?void 0:l,D=(u||w?.disabled)??!1,[O,k]=r({controlled:w?C!==void 0&&T.indexOf(C)>-1:m,default:E,name:`Toggle`,state:`pressed`}),{getButtonProps:A,buttonRef:j}=i({disabled:D,native:b}),M={disabled:D,pressed:O},N=[j,t],P=[{"aria-pressed":O,onClick(e){let t=!O,n=c(a,e.nativeEvent);C&&w?.setGroupValue?.(C,t,n),p?.(t,n),!n.isCanceled&&k(t)}},S,A],F=d(`button`,e,{enabled:!w,state:M,ref:N,props:P});return w?(0,_.jsx)(s,{tag:`button`,render:h,className:n,style:x,state:M,refs:N,props:P}):F}),y=p(),b=n(`[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base text-foreground outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 aria-disabled:opacity-64 data-pressed:bg-input/64 data-pressed:text-accent-foreground sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{compact:`h-7 min-w-7 rounded-md px-[calc(--spacing(1)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] [&_svg:not([class*='size-'])]:size-3.5`,default:`h-9 min-w-9 px-[calc(--spacing(2)-1px)] sm:h-8 sm:min-w-8`,lg:`h-10 min-w-10 px-[calc(--spacing(2.5)-1px)] sm:h-9 sm:min-w-9`,segmented:`h-6 min-w-0 rounded-md px-2.5 text-xs before:rounded-[calc(var(--radius-md)-1px)]`,sm:`h-8 min-w-8 px-[calc(--spacing(1.5)-1px)] sm:h-7 sm:min-w-7`,xs:`h-7 min-w-7 px-[calc(--spacing(1)-1px)] sm:h-6 sm:min-w-6 rounded-md`},variant:{default:`border-transparent`,pill:`border-transparent rounded-full px-3 font-normal text-muted-foreground data-pressed:text-foreground`,ghost:`border-transparent text-foreground shadow-none [:disabled,:active,[data-pressed]]:shadow-none before:shadow-none data-pressed:bg-accent data-pressed:text-accent-foreground disabled:opacity-100 disabled:text-muted-foreground disabled:[&_svg]:opacity-100`,outline:`border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:data-pressed:bg-input dark:hover:bg-input/64 dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/2%)] [:disabled,:active,[data-pressed]]:shadow-none`,segmented:`border-transparent text-muted-foreground shadow-none transition-colors before:shadow-none hover:bg-background/55 hover:text-foreground data-pressed:bg-background data-pressed:text-foreground data-pressed:shadow-xs/10 dark:hover:bg-input/32 dark:data-pressed:bg-input/72`}}});function x(e){let t=(0,y.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:a,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==n||t[6]!==i||t[7]!==a?(o=u(b({className:n,size:i,variant:a})),t[5]=n,t[6]=i,t[7]=a,t[8]=o):o=t[8];let s;return t[9]!==r||t[10]!==o?(s=(0,_.jsx)(v,{className:o,"data-slot":`toggle`,...r}),t[9]=r,t[10]=o,t[11]=s):s=t[11],s}export{h as n,x as t};
2
- //# sourceMappingURL=toggle-DOFhC9C7.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Cx as n,Na as r,Ta as i,Xa as a,_a as o,dr as s,ha as c,ma as l,t as u,uo as d,vo as f,wx as p}from"./utils-DmS758az.js";var m=e(t()),h=m.createContext(void 0);function g(e=!0){let t=m.useContext(h);if(t===void 0&&!e)throw Error(f(7));return t}var _=e(l()),v=m.forwardRef(function(e,t){let{className:n,defaultPressed:l=!1,disabled:u=!1,form:f,onPressedChange:p,pressed:m,render:h,type:v,value:y,nativeButton:b=!0,style:x,...S}=e,C=o(y||void 0),w=g(),T=w?.value??[],E=w?void 0:l,D=(u||w?.disabled)??!1,[O,k]=r({controlled:w?C!==void 0&&T.indexOf(C)>-1:m,default:E,name:`Toggle`,state:`pressed`}),{getButtonProps:A,buttonRef:j}=i({disabled:D,native:b}),M={disabled:D,pressed:O},N=[j,t],P=[{"aria-pressed":O,onClick(e){let t=!O,n=c(a,e.nativeEvent);C&&w?.setGroupValue?.(C,t,n),p?.(t,n),!n.isCanceled&&k(t)}},S,A],F=d(`button`,e,{enabled:!w,state:M,ref:N,props:P});return w?(0,_.jsx)(s,{tag:`button`,render:h,className:n,style:x,state:M,refs:N,props:P}):F}),y=p(),b=n(`[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base text-foreground outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 aria-disabled:opacity-64 data-pressed:bg-input/64 data-pressed:text-accent-foreground sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{compact:`h-7 min-w-7 rounded-md px-[calc(--spacing(1)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] [&_svg:not([class*='size-'])]:size-3.5`,default:`h-9 min-w-9 px-[calc(--spacing(2)-1px)] sm:h-8 sm:min-w-8`,lg:`h-10 min-w-10 px-[calc(--spacing(2.5)-1px)] sm:h-9 sm:min-w-9`,segmented:`h-6 min-w-0 rounded-md px-2.5 text-xs before:rounded-[calc(var(--radius-md)-1px)]`,sm:`h-8 min-w-8 px-[calc(--spacing(1.5)-1px)] sm:h-7 sm:min-w-7`,xs:`h-7 min-w-7 px-[calc(--spacing(1)-1px)] sm:h-6 sm:min-w-6 rounded-md`},variant:{default:`border-transparent`,pill:`border-transparent rounded-full px-3 font-normal text-muted-foreground data-pressed:text-foreground`,ghost:`border-transparent text-foreground shadow-none [:disabled,:active,[data-pressed]]:shadow-none before:shadow-none data-pressed:bg-accent data-pressed:text-accent-foreground disabled:opacity-100 disabled:text-muted-foreground disabled:[&_svg]:opacity-100`,outline:`border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:data-pressed:bg-input dark:hover:bg-input/64 dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/2%)] [:disabled,:active,[data-pressed]]:shadow-none`,segmented:`border-transparent text-muted-foreground shadow-none transition-colors before:shadow-none hover:bg-background/55 hover:text-foreground data-pressed:bg-background data-pressed:text-foreground data-pressed:shadow-xs/10 dark:hover:bg-input/32 dark:data-pressed:bg-input/72`}}});function x(e){let t=(0,y.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:a,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==n||t[6]!==i||t[7]!==a?(o=u(b({className:n,size:i,variant:a})),t[5]=n,t[6]=i,t[7]=a,t[8]=o):o=t[8];let s;return t[9]!==r||t[10]!==o?(s=(0,_.jsx)(v,{className:o,"data-slot":`toggle`,...r}),t[9]=r,t[10]=o,t[11]=s):s=t[11],s}export{h as n,x as t};
2
+ //# sourceMappingURL=toggle-BzIEPTf7.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Na as n,Oa as r,Ur as i,ma as a,po as o,t as s,uo as c,wx as l}from"./utils-Nv21__t3.js";import{t as u}from"./CompositeRoot-Dz15SC7i.js";import{n as d,t as f}from"./toggle-DOFhC9C7.js";var p=e(t()),m=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),h=e(a()),g={multiple(e){return e?{[m.multiple]:``}:null}},_=p.forwardRef(function(e,t){let{defaultValue:a,disabled:s=!1,loopFocus:l=!0,onValueChange:f,orientation:m=`horizontal`,multiple:_=!1,value:v,className:y,render:b,style:x,...S}=e,C=i(!0),w=p.useMemo(()=>v!==void 0||a!==void 0,[v,a]),T=(C?.disabled??!1)||s,[E,D]=n({controlled:v,default:v===void 0?a??o:void 0,name:`ToggleGroup`,state:`value`}),O=r((e,t,n)=>{let r;_?(r=E.slice(),t?r.push(e):r.splice(E.indexOf(e),1)):r=t?[e]:[],f?.(r,n),!n.isCanceled&&D(r)}),k={disabled:T,multiple:_,orientation:m},A=p.useMemo(()=>({disabled:T,orientation:m,setGroupValue:O,value:E,isValueInitialized:w}),[T,m,O,E,w]),j={role:`group`},M=c(`div`,e,{enabled:!!C,state:k,ref:t,props:[j,S],stateAttributesMapping:g});return(0,h.jsx)(d.Provider,{value:A,children:C?M:(0,h.jsx)(u,{render:b,className:y,style:x,state:k,refs:[t],props:[j,S],stateAttributesMapping:g,loopFocus:l,enableHomeAndEndKeys:!0,orientation:m})})}),v=l(),y=p.createContext({size:`default`,variant:`default`});function b({className:e,variant:t=`segmented`,size:n=t===`segmented`?`segmented`:`default`,orientation:r=`horizontal`,children:i,...a}){let o=p.useMemo(()=>({size:n,variant:t}),[n,t]);return(0,h.jsx)(_,{className:s(`flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input`,r===`horizontal`?`*:pointer-coarse:after:min-w-auto`:`*:pointer-coarse:after:min-h-auto`,t===`segmented`?`gap-0.5 rounded-lg bg-input/40 p-0.5`:t==="default"?`gap-0.5`:r===`horizontal`?`*:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none`:`*:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block`,e),"data-size":n,"data-slot":`toggle-group`,"data-variant":t,orientation:r,...a,children:(0,h.jsx)(y,{value:o,children:i})})}function x(e){let t=(0,v.c)(12),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=p.use(y),c=o??s.variant,l=a??s.size,u;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==l||t[10]!==c?(u=(0,h.jsx)(f,{className:r,"data-size":l,"data-variant":c,size:l,variant:c,...i,children:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=l,t[10]=c,t[11]=u):u=t[11],u}export{b as n,x as t};
2
- //# sourceMappingURL=toggle-group-B1ghB_yR.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Na as n,Oa as r,Ur as i,ma as a,po as o,t as s,uo as c,wx as l}from"./utils-DmS758az.js";import{t as u}from"./CompositeRoot-CW06ANMY.js";import{n as d,t as f}from"./toggle-BzIEPTf7.js";var p=e(t()),m=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),h=e(a()),g={multiple(e){return e?{[m.multiple]:``}:null}},_=p.forwardRef(function(e,t){let{defaultValue:a,disabled:s=!1,loopFocus:l=!0,onValueChange:f,orientation:m=`horizontal`,multiple:_=!1,value:v,className:y,render:b,style:x,...S}=e,C=i(!0),w=p.useMemo(()=>v!==void 0||a!==void 0,[v,a]),T=(C?.disabled??!1)||s,[E,D]=n({controlled:v,default:v===void 0?a??o:void 0,name:`ToggleGroup`,state:`value`}),O=r((e,t,n)=>{let r;_?(r=E.slice(),t?r.push(e):r.splice(E.indexOf(e),1)):r=t?[e]:[],f?.(r,n),!n.isCanceled&&D(r)}),k={disabled:T,multiple:_,orientation:m},A=p.useMemo(()=>({disabled:T,orientation:m,setGroupValue:O,value:E,isValueInitialized:w}),[T,m,O,E,w]),j={role:`group`},M=c(`div`,e,{enabled:!!C,state:k,ref:t,props:[j,S],stateAttributesMapping:g});return(0,h.jsx)(d.Provider,{value:A,children:C?M:(0,h.jsx)(u,{render:b,className:y,style:x,state:k,refs:[t],props:[j,S],stateAttributesMapping:g,loopFocus:l,enableHomeAndEndKeys:!0,orientation:m})})}),v=l(),y=p.createContext({size:`default`,variant:`default`});function b({className:e,variant:t=`segmented`,size:n=t===`segmented`?`segmented`:`default`,orientation:r=`horizontal`,children:i,...a}){let o=p.useMemo(()=>({size:n,variant:t}),[n,t]);return(0,h.jsx)(_,{className:s(`flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input`,r===`horizontal`?`*:pointer-coarse:after:min-w-auto`:`*:pointer-coarse:after:min-h-auto`,t===`segmented`?`gap-0.5 rounded-lg bg-input/40 p-0.5`:t==="default"?`gap-0.5`:r===`horizontal`?`*:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none`:`*:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block`,e),"data-size":n,"data-slot":`toggle-group`,"data-variant":t,orientation:r,...a,children:(0,h.jsx)(y,{value:o,children:i})})}function x(e){let t=(0,v.c)(12),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=p.use(y),c=o??s.variant,l=a??s.size,u;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==l||t[10]!==c?(u=(0,h.jsx)(f,{className:r,"data-size":l,"data-variant":c,size:l,variant:c,...i,children:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=l,t[10]=c,t[11]=u):u=t[11],u}export{b as n,x as t};
2
+ //# sourceMappingURL=toggle-group-_C7nJPTT.js.map
@@ -1,2 +1,2 @@
1
- import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$r as r,Aa as i,Ba as a,Cr as o,Da as s,Di as c,Er as l,Ji as u,Jr as d,La as f,Ma as p,Mi as m,Oa as h,Qr as g,Sr as _,Tr as v,Ui as y,Wr as b,Xa as x,Xi as S,Xr as C,Yr as w,Zi as T,_a as E,_i as D,aa as O,ai as k,ao as A,ca as j,ci as M,do as N,ea as P,ei as F,eo as I,fa as L,gr as R,ha as z,ho as B,ii as ee,io as V,ja as H,ka as U,la as te,li as ne,lo as re,ma as ie,mi as ae,mo as oe,na as se,ni as ce,oa as le,oi as ue,pi as de,qi as fe,qr as pe,r as me,ri as he,sa as ge,so as _e,t as ve,ta as ye,ti as be,to as xe,ui as Se,uo as Ce,vc as we,vo as Te,wr as Ee,wx as De,yi as Oe,yr as ke}from"./utils-Nv21__t3.js";import{t as Ae}from"./env-wK1YYxA8.js";var W=e(n()),G=e(ie()),je=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new O,currentIdRef:{current:null},currentContextRef:{current:null}});function Me(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=le();return(0,G.jsx)(je.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ne(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=W.useContext(je),[p,m]=W.useState(!1);return s(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),a.current=null,u.current=null,o.current=l.current}if(a.current&&!n&&a.current===i){if(m(!1),c){let t=i;return f.start(c,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{f.clear()}}e()}},[n,i,a,o,c,l,u,f,r]),s(()=>{if(!n)return;let e=u.current,t=a.current;f.clear(),u.current={onOpenChange:r.setOpen,setIsInstantPhase:m},a.current=i,o.current={open:0,close:T(l.current,`close`)},t!==null&&t!==i?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,z(x))):(m(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,l,u,f]),s(()=>()=>{u.current=null},[u]),W.useMemo(()=>({hasProvider:d,delayRef:o,isInstantPhase:p}),[d,o,p])}function Pe(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Fe(e){return e!=null&&e.clientX!=null}function Ie(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=W.useRef(!1),d=W.useRef(null),[f,p]=W.useState(),[m,g]=W.useState([]),_=h(e=>{a.set(`positionReference`,e)}),v=h((e,t,n)=>{u.current||(!l.current.openEvent||Fe(l.current.openEvent))&&a.set(`positionReference`,Pe(n??c,{x:e,y:t,axis:r,dataRef:l,pointerType:f}))}),y=h(e=>{o?d.current||(v(e.clientX,e.clientY,e.currentTarget),g([])):v(e.clientX,e.clientY,e.currentTarget)}),b=se(f)?s:o;W.useEffect(()=>{if(!n){_(c);return}if(!b)return;function e(){d.current?.(),d.current=null}let t=i(s);function r(t){let n=ye(t);P(s,n)?e():v(t.clientX,t.clientY)}return!l.current.openEvent||Fe(l.current.openEvent)?d.current=S(t,`mousemove`,r):_(c),e},[b,n,s,l,c,a,v,_,m]),W.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),W.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),W.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let x=W.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return W.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}var Le=De(),Re=e(te());function ze(e){let[t,n]=W.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function Be(e){let t=U(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=p(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(y(n)!==a||y(r)!==o)&&(n=a,r=o),{width:n,height:r}}var Ve=()=>!0;function He(e){let{popupElement:t,positionerElement:n,content:r,mounted:i,enabled:a=Ve,onMeasureLayout:o,onMeasureLayoutComplete:c,side:l,direction:u}=e,d=j(t,!0,!1),f=L(),p=W.useRef(null),m=W.useRef(null),g=W.useRef(!0),_=W.useRef(B),v=h(o),y=h(c),b=W.useMemo(()=>{let e=l===`top`,t=l===`left`;return u===`rtl`?(e||=l===`inline-end`,t||=l===`inline-end`):(e||=l===`inline-start`,t||=l===`inline-start`),e?{position:`absolute`,[l===`top`?`bottom`:`top`]:`0`,[t?`right`:`left`]:`0`}:oe},[l,u]);s(()=>{if(!i||!a()||typeof ResizeObserver!=`function`){_.current=B,g.current=!0,p.current=null,m.current=null;return}if(!t||!n)return;_.current=We(t,b);let e=new ResizeObserver(e=>{let t=e[0];t&&(m.current={width:Math.ceil(t.borderBoxSize[0].inlineSize),height:Math.ceil(t.borderBoxSize[0].blockSize)})});e.observe(t),Ge(t,`auto`);let r=Ue(t,`position`,`static`),o=Ue(t,`transform`,`none`),s=Ue(t,`scale`,`1`),c=We(n,{"--available-width":`max-content`,"--available-height":`max-content`});function l(){r(),o(),c()}function u(){l(),s()}if(v?.(),g.current||p.current===null){K(n,`max-content`);let r=Be(t);return p.current=r,K(n,r),u(),y?.(null,r),g.current=!1,()=>{e.disconnect(),_.current(),_.current=B}}Ge(t,`auto`),K(n,`max-content`);let h=p.current??m.current,x=Be(t);if(p.current=x,!h)return K(n,x),u(),y?.(null,x),()=>{e.disconnect(),f.cancel(),_.current(),_.current=B};Ge(t,h),u(),y?.(h,x),K(n,x);let S=new AbortController;return f.request(()=>{Ge(t,x),d(()=>{t.style.setProperty(`--popup-width`,`auto`),t.style.setProperty(`--popup-height`,`auto`)},S.signal)}),()=>{e.disconnect(),S.abort(),f.cancel(),_.current(),_.current=B}},[r,t,n,d,f,a,i,v,y,b])}function Ue(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function We(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(Ue(e,r,i));return n.length?()=>{n.forEach(e=>e())}:B}function Ge(e,t){let n=t===`auto`?`auto`:`${t.width}px`,r=t===`auto`?`auto`:`${t.height}px`;e.style.setProperty(`--popup-width`,n),e.style.setProperty(`--popup-height`,r)}function K(e,t){let n=t===`max-content`?`max-content`:`${t.width}px`,r=t===`max-content`?`max-content`:`${t.height}px`;e.style.setProperty(`--positioner-width`,n),e.style.setProperty(`--positioner-height`,r)}function Ke(e){let{store:t,side:n,cssVars:r,children:i}=e,a=Ee(),o=t.useState(`activeTriggerElement`),c=t.useState(`activeTriggerId`),l=t.useState(`open`),u=t.useState(`payload`),d=t.useState(`mounted`),f=t.useState(`popupElement`),p=t.useState(`positionerElement`),m=ze(l?o:null),g=Xe(c,u),_=W.useRef(null),[y,b]=W.useState(null),[x,S]=W.useState(null),C=W.useRef(null),w=W.useRef(null),T=j(C,!0,!1),E=L(),[D,O]=W.useState(null),[k,A]=W.useState(!1);s(()=>(t.set(`hasViewport`,!0),()=>{t.set(`hasViewport`,!1)}),[t]);let M=h(()=>{C.current?.style.setProperty(`animation`,`none`),C.current?.style.setProperty(`transition`,`none`),w.current?.style.setProperty(`display`,`none`)}),N=h(e=>{C.current?.style.removeProperty(`animation`),C.current?.style.removeProperty(`transition`),w.current?.style.removeProperty(`display`),e&&O(e)}),P=W.useRef(null);s(()=>{if(o&&m&&o!==m&&P.current!==o&&_.current){b(_.current),A(!0);let e=Ye(m,o);S(e),E.request(()=>{Re.flushSync(()=>{A(!1)}),T(()=>{b(null),O(null),_.current=null})}),P.current=o}},[o,m,y,T,E]),s(()=>{let e=C.current;if(!e)return;let t=fe(e).createElement(`div`);for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));_.current=t});let F=y!=null,I;I=F?(0,G.jsxs)(W.Fragment,{children:[(0,G.jsx)(`div`,{"data-previous":!0,inert:v(!0),ref:w,style:{...D?{[r.popupWidth]:`${D.width}px`,[r.popupHeight]:`${D.height}px`}:null,position:`absolute`},"data-ending-style":k?void 0:``},`previous`),(0,G.jsx)(`div`,{"data-current":!0,ref:C,"data-starting-style":k?``:void 0,children:i},g)]}):(0,G.jsx)(`div`,{"data-current":!0,ref:C,children:i},g),s(()=>{let e=w.current;e&&y&&e.replaceChildren(...Array.from(y.childNodes))},[y]),He({popupElement:f,positionerElement:p,mounted:d,content:u,onMeasureLayout:M,onMeasureLayoutComplete:N,side:n,direction:a});let R={activationDirection:qe(x),transitioning:F};return{children:I,state:R}}function qe(e){if(e)return`${Je(e.horizontal,5,`right`,`left`)} ${Je(e.vertical,5,`down`,`up`)}`}function Je(e,t,n,r){return e>t?n:e<-t?r:``}function Ye(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},a={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:a.x-i.x,vertical:a.y-i.y}}function Xe(e,t){let[n,r]=W.useState(0),i=W.useRef(e),a=W.useRef(t),o=W.useRef(!1);return s(()=>{let n=i.current,s=a.current,c=e!==n,l=t!==s;c?(r(e=>e+1),o.current=!l):o.current&&l&&(r(e=>e+1),o.current=!1),i.current=e,a.current=t},[e,t]),`${e??`current`}-${n}`}var Ze=t((e=>{e.Check=[[`path`,{d:`M20 6 9 17l-5-5`}]],e.ChevronDown=[[`path`,{d:`m6 9 6 6 6-6`}]],e.ChevronRight=[[`path`,{d:`m9 18 6-6-6-6`}]],e.ChevronUp=[[`path`,{d:`m18 15-6-6-6 6`}]],e.ChevronsDownUp=[[`path`,{d:`m7 20 5-5 5 5`}],[`path`,{d:`m7 4 5 5 5-5`}]],e.ChevronsUpDown=[[`path`,{d:`m7 15 5 5 5-5`}],[`path`,{d:`m7 9 5-5 5 5`}]],e.Circle=[[`circle`,{cx:`12`,cy:`12`,r:`10`}]],e.CircleAlert=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],e.CircleCheck=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m9 12 2 2 4-4`}]],e.Code2=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]],e.Copy=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]],e.CornerUpRight=[[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`}]],e.Eye=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],e.Folder=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],e.FolderClosed=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}],[`path`,{d:`M2 10h20`}]],e.Image=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]],e.Link=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],e.ListPlus=[[`path`,{d:`M16 5H3`}],[`path`,{d:`M11 12H3`}],[`path`,{d:`M16 19H3`}],[`path`,{d:`M18 9v6`}],[`path`,{d:`M21 12h-6`}]],e.Lock=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],e.LockOpen=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`}]],e.Maximize2=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]],e.Minimize2=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]],e.Minus=[[`path`,{d:`M5 12h14`}]],e.Moon=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],e.PanelLeft=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]],e.PanelLeftClose=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m16 15-3-3 3-3`}]],e.Plus=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],e.Sun=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]],e.Table2=[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`}]],e.Text=[[`path`,{d:`M21 5H3`}],[`path`,{d:`M15 12H3`}],[`path`,{d:`M17 19H3`}]],e.Volume2=[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`}]],e.VolumeOff=[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`}]]})),Qe=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:l,portalSubtree:u}=c({container:r,ref:t,componentProps:e,elementProps:s});return!u&&!l?null:(0,G.jsxs)(W.Fragment,{children:[u,l&&Re.createPortal(n,l)]})}),$e=`MmLlHhVvCcSsQqTtAaZz`;function et(e){let t=[],n=e.length,r=0,i=0,a=0,o=0,s=0,c=null,l=``,u=0,d=0,f=``,p=!1,m=e=>{throw Error(`morphicons: ${e} at d[${r}]`)},h=e=>e>=48&&e<=57,g=()=>{for(;r<n;){let t=e.charCodeAt(r);if(t===32||t===9||t===10||t===13||t===12||t===44)r++;else break}},_=()=>{g();let t=r;r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(r<n&&e[r]===`.`)for(r++;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(i||m(`expected number`),r<n&&(e[r]===`e`||e[r]===`E`)){let t=r;r++,r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;i||(r=t)}return Number(e.slice(t,r))},v=()=>{g();let t=e[r];return t===`0`||t===`1`?(r++,+(t===`1`)):m(`expected arc flag (0|1)`)},y=()=>(p||m(`path must start with M/m`),c||(c={x0:i,y0:a,segs:[],closed:!1},t.push(c)),c),b=!1,x=()=>_()+(b?i:0),S=()=>_()+(b?a:0);for(;g(),!(r>=n);){let n=e[r];switch($e.includes(n)?(l=n,r++):l===``?m(`path must start with M/m`):l===`M`?l=`L`:l===`m`?l=`l`:(l===`Z`||l===`z`)&&m(`stray data after Z`),b=l>=`a`,b?l.toUpperCase():l){case`M`:{p=!0;let e=x(),n=S();i=e,a=n,o=e,s=n,c={x0:e,y0:n,segs:[],closed:!1},t.push(c),f=``;break}case`L`:{let e=x(),t=S();y().segs.push([`L`,e,t]),i=e,a=t,f=``;break}case`H`:{let e=x();y().segs.push([`L`,e,a]),i=e,f=``;break}case`V`:{let e=S();y().segs.push([`L`,i,e]),a=e,f=``;break}case`C`:case`S`:{let e,t;l===`C`||l===`c`?(e=x(),t=S()):(e=f===`C`?2*i-u:i,t=f===`C`?2*a-d:a);let n=x(),r=S(),o=x(),s=S();y().segs.push([`C`,e,t,n,r,o,s]),u=n,d=r,i=o,a=s,f=`C`;break}case`Q`:case`T`:{let e,t;l===`Q`||l===`q`?(e=x(),t=S()):(e=f===`Q`?2*i-u:i,t=f===`Q`?2*a-d:a);let n=x(),r=S();y().segs.push([`Q`,e,t,n,r]),u=e,d=t,i=n,a=r,f=`Q`;break}case`A`:{let e=_(),t=_(),n=_(),r=v(),o=v(),s=x(),c=S();y().segs.push([`A`,e,t,n,r,o,s,c]),i=s,a=c,f=``;break}case`Z`:c&&=(c.closed=!0,null),i=o,a=s,f=``;break;default:m(`unsupported command "${l}"`)}}return t.filter(e=>e.segs.length>0)}function tt(e){return String(Math.round(e*100)/100)}function nt(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=i.length/2;n+=`M${tt(i[0])} ${tt(i[1])}`;for(let e=1;e<a;e++)n+=`L${tt(i[2*e])} ${tt(i[2*e+1])}`;t?.[r]&&(n+=`Z`)}return n}function q(e){return String(Math.round(e*1e4)/1e4)}function rt(e){let t=``;for(let{pts:n,closed:r}of e){t+=`M${q(n[0])} ${q(n[1])}`;for(let e=2;e<n.length;e+=6)t+=`C${q(n[e])} ${q(n[e+1])} ${q(n[e+2])} ${q(n[e+3])} ${q(n[e+4])} ${q(n[e+5])}`;r&&(t+=`Z`)}return t}var it=4/3*Math.tan(Math.PI/8),at=2*Math.PI;function J(e,t){let n=[e,t],r=e,i=t,a=(e,t,a,o,s,c)=>{n.push(e,t,a,o,s,c),r=s,i=c},o=(e,t)=>{Math.abs(e-r)<1e-12&&Math.abs(t-i)<1e-12||a(r+(e-r)/3,i+(t-i)/3,r+2*(e-r)/3,i+2*(t-i)/3,e,t)};return[a,o,(e,t,n,o)=>{a(r+2/3*(e-r),i+2/3*(t-i),n+2/3*(e-n),o+2/3*(t-o),n,o)},(e,t,n,s,c,l,u)=>{let d=r,f=i;if(Math.abs(l-d)<1e-12&&Math.abs(u-f)<1e-12)return;let p=Math.abs(e),m=Math.abs(t);if(p<1e-12||m<1e-12){o(l,u);return}let h=n*Math.PI/180,g=Math.cos(h),_=Math.sin(h),v=(d-l)/2,y=(f-u)/2,b=g*v+_*y,x=-_*v+g*y,S=b*b/(p*p)+x*x/(m*m);if(S>1){let e=Math.sqrt(S);p*=e,m*=e}let C=p*p,w=m*m,T=b*b,E=x*x,D=(C*w-C*E-w*T)/(C*E+w*T);D<0&&(D=0);let O=(s===c?-1:1)*Math.sqrt(D),k=O*p*x/m,A=-O*m*b/p,j=g*k-_*A+(d+l)/2,M=_*k+g*A+(f+u)/2,N=Math.atan2((x-A)/m,(b-k)/p),P=Math.atan2((-x-A)/m,(-b-k)/p)-N;c===0&&P>0?P-=at:c===1&&P<0&&(P+=at);let F=Math.max(1,Math.ceil(Math.abs(P)/(Math.PI/2)-1e-9)),I=P/F,L=4/3*Math.tan(I/4),R=e=>j+p*Math.cos(e)*g-m*Math.sin(e)*_,z=e=>M+p*Math.cos(e)*_+m*Math.sin(e)*g,B=e=>-p*Math.sin(e)*g-m*Math.cos(e)*_,ee=e=>-p*Math.sin(e)*_+m*Math.cos(e)*g,V=N,H=d,U=f;for(let e=1;e<=F;e++){let t=N+I*e,n=e===F?l:R(t),r=e===F?u:z(t);a(H+L*B(V),U+L*ee(V),n-L*B(t),r-L*ee(t),n,r),V=t,H=n,U=r}},e=>(e&&o(n[0],n[1]),n.length<8?null:{pts:Float64Array.from(n),closed:e})]}function ot(e){let[t,n,r,i,a]=J(e.x0,e.y0);for(let a of e.segs)switch(a[0]){case`L`:n(a[1],a[2]);break;case`C`:t(a[1],a[2],a[3],a[4],a[5],a[6]);break;case`Q`:r(a[1],a[2],a[3],a[4]);break;case`A`:i(a[1],a[2],a[3],a[4],a[5],a[6],a[7])}return a(e.closed)}function Y(e,t,n=0){let r=e[t];if(r===void 0)return n;let i=typeof r==`number`?r:Number(r);return Number.isFinite(i)?i:n}function st(e){let t=String(e??``).trim();if(!t)return[];let n=t.split(/[\s,]+/).map(Number);if(n.some(e=>!Number.isFinite(e)))throw Error(`morphicons: invalid points: "${t}"`);return n}function ct(e,t){if(e.length<4)return null;let[,n,,,r]=J(e[0],e[1]);for(let t=2;t+1<e.length;t+=2)n(e[t],e[t+1]);return r(t)}function lt(e,t,n,r){if(n<1e-12||r<1e-12)return null;let i=it*n,a=it*r,o=e+n,s=e-n,c=t+r,l=t-r,[u,,,,d]=J(o,t);return u(o,t+a,e+i,c,e,c),u(e-i,c,s,t+a,s,t),u(s,t-a,e-i,l,e,l),u(e+i,l,o,t-a,o,t),d(!0)}function ut(e){let t=Y(e,`x`),n=Y(e,`y`),r=Y(e,`width`),i=Y(e,`height`);if(r<1e-12||i<1e-12)return null;let a=Y(e,`rx`,NaN),o=Y(e,`ry`,NaN);if(Number.isNaN(a)&&(a=Number.isNaN(o)?0:o),Number.isNaN(o)&&(o=a),a=Math.min(Math.max(a,0),r/2),o=Math.min(Math.max(o,0),i/2),a<1e-12||o<1e-12)return ct([t,n,t+r,n,t+r,n+i,t,n+i],!0);let s=t+a,c=t+r-a,l=t+r,u=n+o,d=n+i-o,f=n+i,p=it*a,m=it*o,[h,g,,,_]=J(s,n);return g(c,n),h(c+p,n,l,u-m,l,u),g(l,d),h(l,d+m,c+p,f,c,f),g(s,f),h(s-p,f,t,d+m,t,d),g(t,u),h(t,u-m,s-p,n,s,n),_(!0)}function dt(e){let t=[],n=e=>{e&&t.push(e)};if(typeof e==`string`){for(let t of et(e))n(ot(t));return t}for(let[t,r]of e)switch(t){case`path`:for(let e of et(String(r.d??``)))n(ot(e));break;case`line`:{let[,e,,,t]=J(Y(r,`x1`),Y(r,`y1`));e(Y(r,`x2`),Y(r,`y2`)),n(t(!1));break}case`circle`:{let e=Y(r,`r`);n(lt(Y(r,`cx`),Y(r,`cy`),e,e));break}case`ellipse`:n(lt(Y(r,`cx`),Y(r,`cy`),Y(r,`rx`),Y(r,`ry`)));break;case`rect`:n(ut(r));break;case`polyline`:n(ct(st(r.points),!1));break;case`polygon`:n(ct(st(r.points),!0));break;default:throw Error(`morphicons: unsupported tag <${t}>`)}return t}function ft(e){return e.items.map(()=>new Float64Array(2*e.n))}function pt(e,t,n){for(let r=0;r<e.items.length;r++){let i=e.items[r],a=n[r],o=e.n,s=Math.exp(i.lnSigma*t),c=i.theta*t,l=Math.cos(c)*s,u=Math.sin(c)*s,d,f;if(i.block){let[e,n]=i.block.off,[r,a]=i.block.drift;d=i.ca[0]+r*t+(e*l-n*u-e),f=i.ca[1]+a*t+(e*u+n*l-n)}else d=i.ca[0]+(i.cb[0]-i.ca[0])*t,f=i.ca[1]+(i.cb[1]-i.ca[1])*t;for(let e=0;e<o;e++){let n=i.aC[2*e]+(i.bT[2*e]-i.aC[2*e])*t,r=i.aC[2*e+1]+(i.bT[2*e+1]-i.aC[2*e+1])*t;a[2*e]=d+n*l-r*u,a[2*e+1]=f+n*u+r*l}}}var mt=.35,ht=.05,gt=.005,_t=8,vt=1e5;function X(e){let t=e.length/2,n=0,r=0;for(let i=0;i<t;i++)n+=e[2*i],r+=e[2*i+1];return[n/t,r/t]}function yt(e){let t=e.length/2,n=0;for(let r=1;r<t;r++)n+=Math.hypot(e[2*r]-e[2*r-2],e[2*r+1]-e[2*r-1]);return n}function bt(e){let t=e.length/2,n=new Float64Array(2*t);for(let r=0;r<t;r++)n[2*r]=e[2*(t-1-r)],n[2*r+1]=e[2*(t-1-r)+1];return n}function xt(e,t){let n=e.length/2,r=new Float64Array(2*n);for(let i=0;i<n;i++){let a=(i+t)%n;r[2*i]=e[2*a],r[2*i+1]=e[2*a+1]}return r}function St(e,t,n,r){let i=e.length/2,a=0,o=0,s=0,c=0,l=0,u=0;for(let d=0;d<i;d++){let i=e[2*d]-n[0],f=e[2*d+1]-n[1],p=t[2*d]-r[0],m=t[2*d+1]-r[1];a+=i*p,c+=f*m,o+=i*m,s+=f*p,l+=i*i+f*f,u+=p*p+m*m}let d=Math.atan2(o-s,a+c),f=Math.cos(d)*(a+c)+Math.sin(d)*(o-s),p=l>1e-12?f/l:1;p>1e-6||(p=1e-6);let m=Math.max(0,p*p*l-2*p*f+u),h=u>1e-12?Math.sqrt(m/u):0;return{theta:d,sigma:p,res:h}}function Ct(e,t,n=!1,r=!1){let i=X(e),a=X(t),o=n&&!r,s=o?e:t,c=n||r?s.length/2:1,l=1/0,u=s,d={theta:0,sigma:1,res:0};for(let n=0;n<2;n++){let r=n?bt(s):s;for(let n=0;n<c;n++){let s=n?xt(r,n):r,c=o?St(s,t,i,a):St(e,s,i,a),f=c.res+ht*Math.abs(c.theta)/Math.PI;f<l&&(l=f,u=s,d=c)}}return o?{ca:i,cb:a,a:u,b:t,...d}:{ca:i,cb:a,a:e,b:u,...d}}function wt(e,t){let n=t.map(X),r=t.map(yt);return e.map(e=>{let t=X(e),i=yt(e);return n.map((e,n)=>Math.hypot(t[0]-e[0],t[1]-e[1])+mt*Math.abs(i-r[n]))})}function Tt(e){let t=e.length;if(t>_t){let n=[];for(let r=0;r<t;r++)for(let i=0;i<t;i++)n.push([e[r][i],r,i]);n.sort((e,t)=>e[0]-t[0]);let r=Array(t).fill(-1),i=Array(t).fill(!1);for(let[,e,t]of n)r[e]<0&&!i[t]&&(r[e]=t,i[t]=!0);return r}let n=Array.from({length:t},(e,t)=>t),r=n.slice(),i=1/0,a=(n,o,s)=>{if(!(s>=i)){if(o===t){i=s,r=n.slice();return}for(let r=o;r<t;r++)[n[o],n[r]]=[n[r],n[o]],a(n,o+1,s+e[o][n[o]]),[n[o],n[r]]=[n[r],n[o]]}};return a(n,0,0),r}function Et(e){let t=e.length,n=e[0].length;if(n**t>vt){let r=e.map(e=>{let t=0;for(let n=1;n<e.length;n++)e[n]<e[t]&&(t=n);return t}),i=Array(n).fill(0);for(let e of r)i[e]++;for(let a=0;a<n;a++){if(i[a]>0)continue;let n=-1,o=1/0;for(let s=0;s<t;s++){if(i[r[s]]<2)continue;let t=e[s][a]-e[s][r[s]];t<o&&(o=t,n=s)}i[r[n]]--,r[n]=a,i[a]++}return r}let r=null,i=1/0,a=Array(t),o=Array(n).fill(0),s=(c,l,u)=>{if(!(l>=i||n-u>t-c)){if(c===t){i=l,r=a.slice();return}for(let t=0;t<n;t++)a[c]=t,o[t]++,s(c+1,l+e[c][t],u+ +(o[t]===1)),o[t]--}};if(s(0,0,0),!r)throw Error(`morphicons: no valid surjection (B < S)`);return r}function Dt(e,t){let n=e.length*t,r=new Float64Array(2*n),i=new Float64Array(2*n);e.forEach((e,n)=>{r.set(e.a,2*t*n),i.set(e.bO,2*t*n)});let a=X(r),o=St(r,i,a,X(i));if(o.res>=gt)return;let s=Math.cos(-o.theta),c=Math.sin(-o.theta),l=Math.cos(o.theta),u=Math.sin(o.theta);for(let n of e){let e=0,r=0;for(let i=0;i<t;i++){let t=n.bO[2*i]-n.cb[0],a=n.bO[2*i+1]-n.cb[1];n.bT[2*i]=(t*s-a*c)/o.sigma,n.bT[2*i+1]=(t*c+a*s)/o.sigma;let d=o.sigma*(l*n.aC[2*i]-u*n.aC[2*i+1])-t,f=o.sigma*(u*n.aC[2*i]+l*n.aC[2*i+1])-a;e+=d*d+f*f,r+=t*t+a*a}n.theta=o.theta,n.lnSigma=Math.log(o.sigma),n.res=r>1e-12?Math.sqrt(e/r):0;let i=Math.exp(n.lnSigma),d=Math.cos(n.theta)*i,f=Math.sin(n.theta)*i,p=n.ca[0]-a[0],m=n.ca[1]-a[1],h=p*d-m*f-p,g=p*f+m*d-m;n.block={off:[p,m],drift:[n.cb[0]-n.ca[0]-h,n.cb[1]-n.ca[1]-g]}}}function Ot(e,t){let n=e.length,r=t.length;if(n===0||r===0)throw Error(`morphicons: icon has no subpaths`);let i=e.map(e=>e.pts),a=t.map(e=>e.pts),o=[];if(n===r){let e=Tt(wt(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}else if(n<r){let e=Et(wt(a,i));for(let t=0;t<r;t++)o.push([e[t],t])}else{let e=Et(wt(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}let s=i[0].length/2,c=o.map(([n,r])=>{let o=Ct(i[n],a[r],e[n].closed,t[r].closed),c=o.a,l=new Float64Array(2*s),u=new Float64Array(2*s),d=new Float64Array(2*s),f=Math.cos(-o.theta),p=Math.sin(-o.theta);for(let e=0;e<s;e++){l[2*e]=c[2*e]-o.ca[0],l[2*e+1]=c[2*e+1]-o.ca[1];let t=o.b[2*e]-o.cb[0],n=o.b[2*e+1]-o.cb[1];u[2*e]=(t*f-n*p)/o.sigma,u[2*e+1]=(t*p+n*f)/o.sigma,d[2*e]=o.b[2*e],d[2*e+1]=o.b[2*e+1]}return{a:c,aC:l,bT:u,bO:d,ca:o.ca,cb:o.cb,theta:o.theta,lnSigma:Math.log(o.sigma),res:o.res,closed:e[n].closed&&t[r].closed,block:null}});return c.length>1&&Dt(c,s),{items:c,n:s}}var kt=Math.PI/8,At=[.18343464249564978,.525532409916329,.7966664774136267,.9602898564975363],jt=[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626];function Mt(e,t,n){let r=6*t,i=1-n,a=3*i*i,o=6*i*n,s=3*n*n,c=a*(e[r+2]-e[r])+o*(e[r+4]-e[r+2])+s*(e[r+6]-e[r+4]),l=a*(e[r+3]-e[r+1])+o*(e[r+5]-e[r+3])+s*(e[r+7]-e[r+5]);return Math.hypot(c,l)}function Nt(e,t,n=1){let r=n/2,i=0;for(let n=0;n<4;n++)i+=jt[n]*(Mt(e,t,r+r*At[n])+Mt(e,t,r-r*At[n]));return i*r}function Pt(e,t,n,r,i){let a=6*t,o=1-n,s=o*o*o,c=3*o*o*n,l=3*o*n*n,u=n*n*n;r[i]=s*e[a]+c*e[a+2]+l*e[a+4]+u*e[a+6],r[i+1]=s*e[a+1]+c*e[a+3]+l*e[a+5]+u*e[a+7]}function Ft(e,t,n){let r=6*t,i=n?r+6:r,a=n?-1:1;for(let t of n?[4,2,0]:[2,4,6]){let n=a*(e[r+t]-e[i]),o=a*(e[r+t+1]-e[i+1]);if(n*n+o*o>1e-18)return[n,o]}return null}function It(e,t=kt){let n=e.pts,r=(n.length/2-1)/3,i=[];for(let e=0;e<r;e++)Nt(n,e)>1e-9&&i.push(e);if(i.length===0)return[];let a=new Set,o=(e,r)=>{let i=Ft(n,e,!0),o=Ft(n,r,!1);i&&o&&Math.abs(Math.atan2(i[0]*o[1]-i[1]*o[0],i[0]*o[0]+i[1]*o[1]))>t&&a.add(r)};for(let e=0;e+1<i.length;e++)o(i[e],i[e+1]);return e.closed&&i.length>1&&o(i[i.length-1],i[0]),[...a].sort((e,t)=>e-t)}function Lt(e,t,n,r){if(n<=0)return 0;if(n>=r)return 1;let i=0,a=1,o=n/r;for(let s=0;s<12;s++){let s=Nt(e,t,o)-n;if(Math.abs(s)<1e-10*r+1e-14)break;s>0?a=o:i=o;let c=Mt(e,t,o),l=c>1e-12?o-s/c:(i+a)/2;l>i&&l<a||(l=(i+a)/2),o=l}return o}function Rt(e,t=64,n=kt){let r=e.pts,i=(r.length/2-1)/3,a=new Float64Array(2*t),o=()=>{for(let e=0;e<t;e++)a[2*e]=r[0],a[2*e+1]=r[1];return a};if(i<1)return o();let s=Array(i),c=0;for(let e=0;e<i;e++)s[e]=Nt(r,e),c+=s[e];if(c<1e-12)return o();let l=It(e,n),u=e.closed?l.length>0?l:[0]:[...new Set([0,...l,i])].sort((e,t)=>e-t),d=[];if(e.closed)for(let e=0;e<u.length;e++){let t=u[e],n=e+1<u.length?u[e+1]:u[0]+i;d.push([t,n])}else for(let e=0;e+1<u.length;e++)d.push([u[e],u[e+1]]);let f=d.map(([e,t])=>{let n=0;for(let r=e;r<t;r++)n+=s[r%i];return n}),p=e.closed?t:t-1;if(d.length>p)throw Error(`morphicons: N=${t} too small (${d.length} runs)`);let m=f.reduce((e,t)=>e+t,0)||1,h=f.map(e=>p*e/m),g=h.map(e=>Math.max(1,Math.floor(e))),_=p-g.reduce((e,t)=>e+t,0);if(_>0){let e=h.map((e,t)=>[Math.round((e-Math.floor(e))*1e9),t]).sort((e,t)=>t[0]-e[0]||e[1]-t[1]);for(let t=0;t<_;t++)g[e[t%g.length][1]]++}for(;_<0;){let e=0;for(let t=1;t<g.length;t++)g[t]>g[e]&&(e=t);if(g[e]<=1)break;g[e]--,_++}let v=0;for(let e=0;e<d.length;e++){let[t,n]=d[e],o=g[e],c=f[e],l=t%i*6;a[2*v]=r[l],a[2*v+1]=r[l+1],v++;let u=t,p=0;for(let e=1;e<o;e++){let t=c*e/o;for(;u<n-1&&p+s[u%i]<t;)p+=s[u%i],u++;let l=u%i,d=s[l];Pt(r,l,d>1e-12?Lt(r,l,t-p,d):0,a,2*v),v++}}if(!e.closed){let e=6*i;a[2*v]=r[e],a[2*v+1]=r[e+1]}return a}function zt(e,t=64){return dt(e).map(e=>({pts:Rt(e,t),closed:e.closed}))}var Bt=class{x=1;v=0;k=250;c=24;config(e,t){this.k=e,this.c=t}start(){this.x=0,this.v>14&&(this.v=14),this.v<-14&&(this.v=-14)}step(e){let t=Math.max(1,Math.min(16,Math.ceil(e/(1/240)))),n=e/t;for(let e=0;e<t;e++){let e=this.k*(1-this.x)-this.c*this.v;this.v+=e*n,this.x+=this.v*n}return Math.abs(1-this.x)<.001&&Math.abs(this.v)<.02}},Vt={smooth:{k:170,c:26},snappy:{k:420,c:30},bouncy:{k:300,c:14}},Ht=new Set,Z=0,Q=-1;function Ut(e){let t=Q<0?0:Math.min(Math.max((e-Q)/1e3,0),.1);Q=e;for(let e of[...Ht])e(t);Ht.size>0?Z=requestAnimationFrame(Ut):(Z=0,Q=-1)}function Wt(e){Ht.add(e),Z===0&&(Q=-1,Z=requestAnimationFrame(Ut))}function Gt(e){Ht.delete(e),Ht.size===0&&Z!==0&&(cancelAnimationFrame(Z),Z=0,Q=-1)}var Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap;function $(e){if(typeof e==`string`)return zt(e);let t=Kt.get(e);return t||(t=zt(e),Kt.set(e,t)),t}function Yt(e){if(typeof e==`string`)return e;let t=qt.get(e);return t||(t=rt(dt(e)),qt.set(e,t)),t}function Xt(e,t){if(typeof e==`string`||typeof t==`string`)return Ot($(e),$(t));let n=Jt.get(e);n||(n=new WeakMap,Jt.set(e,n));let r=n.get(t);return r||(r=Ot($(e),$(t)),n.set(t,r)),r}function Zt(e){if(typeof e==`string`)return Vt[e];let t=Vt.snappy;return{k:e?.stiffness??t.k,c:e?.damping??t.c}}function Qt(e,t,n){let r=new Bt,i=n?.reducedMotion??`never`,a=t,o=!0,s=null,c=null,l=null,u=1,d=!1,f=!1;e.setAttribute(`d`,Yt(t));let p=t=>{let n=s,r=c,i=l;n&&r&&i&&(u=t,pt(n,t,r),e.setAttribute(`d`,nt(r,i)))},m=()=>{d&&(d=!1,Gt(h))},h=e=>{let t=r.step(e);p(r.x),t&&(m(),g())},g=()=>{o=!0,s=null,c=null,l=null,u=1,r.x=1,r.v=0,e.setAttribute(`d`,Yt(a))},_=()=>{let e=s,t=c;return o||!e||!t?$(a):t.map((t,n)=>({pts:Float64Array.from(t),closed:e.items[n].closed}))},v=e=>{s=o?Xt(a,e):Ot(_(),$(e)),c=ft(s),l=s.items.map(e=>e.closed),a=e,o=!1},y=e=>{m(),a=e,g()},b=()=>i===`always`?!0:i!==`user`||typeof matchMedia>`u`?!1:matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,x=(e,t)=>{if(f)return;let n=!o&&s!==null&&e===a;m(),r.v=0,n||v(e),p(t)};return{morphTo(e,t){if(f||e===a&&(o||d))return;if(b()){y(e);return}let{k:n,c:i}=Zt(t);r.config(n,i),v(e),r.start(),d||(d=!0,Wt(h))},set(e){f||y(e)},seek:x,get progress(){return o?1:u},set progress(e){f||x(a,e)},get reducedMotion(){return i},set reducedMotion(e){i=e},destroy(){m(),f=!0,s=null,c=null,l=null}}}var $t=typeof document>`u`?W.useEffect:W.useLayoutEffect;function en(e,t,n){if(n<=0)return Yt(e);if(n>=1)return Yt(t);let r=Ot(zt(e),zt(t)),i=ft(r);return pt(r,n,i),nt(i,r.items.map(e=>e.closed))}var tn=(0,W.forwardRef)(function(e,t){let{icon:n,from:r,to:i,progress:a,spring:o,reducedMotion:s,size:c=24,color:l=`currentColor`,strokeWidth:u=2,absoluteStrokeWidth:d,label:f,...p}=e,m=r!==void 0&&i!==void 0,h=n??r??i,[g]=(0,W.useState)(()=>m?en(r,i,a??0):h===void 0?``:Yt(h)),_=(0,W.useRef)(null),v=(0,W.useRef)(null),y=(0,W.useRef)(o);y.current=o;let b=(0,W.useRef)(s);b.current=s;let x=(0,W.useRef)(n),S=(0,W.useRef)(m),C=(0,W.useRef)(!1),w=(0,W.useRef)(!1),T=(0,W.useRef)(null),E=(0,W.useCallback)(e=>{if(v.current)return v.current;let t=_.current;return C.current||!t?null:(v.current=Qt(t,e,{reducedMotion:b.current}),v.current)},[]);$t(()=>{C.current=!1;let e=_.current;if(e&&h!==void 0){let t=Qt(e,m?r:h,{reducedMotion:b.current});if(v.current=t,m){T.current=[r,i];let e=a??0;e<=0?t.set(r):e>=1?t.set(i):(t.seek(i,e),w.current=!0)}}return()=>{C.current=!0,v.current?.destroy(),v.current=null,w.current=!1,T.current=null}},[]),(0,W.useEffect)(()=>{let e=v.current;e&&(e.reducedMotion=s??`never`)},[s]),(0,W.useEffect)(()=>{let e=S.current&&!m;S.current=m;let t=n!==x.current;if(x.current=n,m||n===void 0||!t&&!e)return;T.current=null,w.current=!1;let r=v.current;r?r.morphTo(n,y.current):E(n)},[n,m,E]),(0,W.useEffect)(()=>{if(!m)return;let e=v.current??E(r);if(!e)return;let t=a??0;(!T.current||T.current[0]!==r||T.current[1]!==i)&&(T.current=[r,i],w.current=!1),t<=0?(e.set(r),w.current=!1):t>=1?(e.set(i),w.current=!1):(w.current||=(e.set(r),!0),e.seek(i,t))},[m,r,i,a,E]),(0,W.useImperativeHandle)(t,()=>({morphTo:(e,t)=>{T.current=null,w.current=!1;let n=v.current;n?n.morphTo(e,t??y.current):E(e)},set:e=>{T.current=null,w.current=!1;let t=v.current;t?t.set(e):E(e)}}),[E]);let D=d?Number(u)*24/Number(c):u;return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:c,height:c,viewBox:`0 0 24 24`,fill:`none`,stroke:l,strokeWidth:D,strokeLinecap:`round`,strokeLinejoin:`round`,role:f?`img`:void 0,"aria-hidden":!f||void 0,...p,children:[f?(0,G.jsx)(`title`,{children:f}):null,(0,G.jsx)(`path`,{ref:_,d:g})]})});function nn(e){let t=(0,Le.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({reducedMotion:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?`user`:r,a;return t[3]!==n||t[4]!==i?(a=(0,G.jsx)(tn,{reducedMotion:i,...n}),t[3]=n,t[4]=i,t[5]=a):a=t[5],a}var rn=W.createContext(void 0);function an(e){let t=W.useContext(rn);if(t===void 0&&!e)throw Error(Te(72));return t}var on={...F,disabled:D(e=>e.disabled),instantType:D(e=>e.instantType),isInstantPhase:D(e=>e.isInstantPhase),trackCursorAxis:D(e=>e.trackCursorAxis),disableHoverablePopup:D(e=>e.disableHoverablePopup),lastOpenChangeReason:D(e=>e.openChangeReason),closeOnClick:D(e=>e.closeOnClick),closeDelay:D(e=>e.closeDelay),hasViewport:D(e=>e.hasViewport)},sn=class e extends Se{constructor(e,t,n=!1){let i=new be,a={...cn(),...e};a.floatingRootContext=r(i,t,n),super(a,{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},on)}setOpen=(e,t)=>{let n=t.reason,r=n===I,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),he(r,e,t.trigger),this.update(r)};r?Re.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,z(xe,e))}static useStore(t,n){return M(t,(t,r)=>new e(n,t,r)).store}};function cn(){return{...g(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var ln=de(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:o=`none`,actionsRef:c,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:m=null,children:h}=e,g=sn.useStore(d?.store,{open:n,openProp:r,activeTriggerId:m,triggerIdProp:p});R(()=>{r===void 0&&g.state.open===!1&&n===!0&&g.update({open:!0,activeTriggerId:m})}),g.useControlledProp(`openProp`,r),g.useControlledProp(`triggerIdProp`,p),g.useContextCallback(`onOpenChange`,l),g.useContextCallback(`onOpenChangeComplete`,u);let _=g.useState(`open`),v=!t&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:i}),g.useSyncedValue(`disabled`,t),ee(g);let{forceUnmount:S,transitionStatus:C}=k(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=W.useRef(null);s(()=>{_&&t&&g.setOpen(!1,z(f))},[_,t,g]),s(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),s(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=W.useCallback(()=>{g.setOpen(!1,z(a))},[g]);W.useImperativeHandle(c,()=>({unmount:S,close:O}),[S,O]);let A=v||b||!t&&o!==`none`;return(0,G.jsxs)(rn.Provider,{value:g,children:[A&&(0,G.jsx)(un,{store:g,disabled:t,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function un({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Oe(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Ie(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=W.useMemo(()=>N(a.reference,i.reference),[a.reference,i.reference]),s=W.useMemo(()=>N(a.trigger,i.trigger),[a.trigger,i.trigger]),c=W.useMemo(()=>N(ce,a.floating,i.floating),[a.floating,i.floating]);return ue(e,{activeTriggerProps:o,inactiveTriggerProps:s,popupProps:c}),null}var dn=W.createContext(void 0);function fn(){return W.useContext(dn)}var pn=function(e){return e[e.popupOpen=V.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),mn=`data-base-ui-tooltip-trigger`;function hn(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(H(n))return n}}let t=e.target;return H(t)?t:null}function gn(e){let t=e;for(;t;){if(t.hasAttribute(mn))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&H(n.host)?n.host:null}return null}var _n=ae(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:d,id:f,...p}=e,m=an(!0),h=a?.store??m;if(!h)throw Error(Te(82));let g=E(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),x=W.useRef(null),S=c??600,T=d??0,{registerTrigger:D,isMountedByThisTrigger:O}=ne(g,x,h,{payload:o,closeOnClick:l,closeDelay:T}),k=fn(),{delayRef:A,isInstantPhase:j,hasProvider:M}=Ne(y,{open:v}),N=w(y);h.useSyncedValue(`isInstantPhase`,j);let F=h.useState(`disabled`),L=s??F,R=u(L),B=h.useState(`trackCursorAxis`),ee=h.useState(`disableHoverablePopup`),V=W.useRef(!1),H=le(),U=W.useRef(void 0);function te(){let e=k?.delay,t=typeof A.current==`object`?A.current.open:void 0,n=S;return M&&(n=t===0?0:c??e??S),n}function re(e){let t=x.current;if(!t||!e)return!1;let n=gn(e);return n!==null&&n!==t&&P(t,n)}function ie(e){let t=re(e);return V.current=t,t&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,H.clear()),t}let ae=pe(y,{enabled:!L,mouseOnly:!0,move:!1,handleClose:!ee&&B!==`both`?b():null,restMs:te,delay(){let e=typeof A.current==`object`?A.current.close:void 0,t=T;return d==null&&M&&(t=e),{close:t}},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!V.current}}),oe=C(y,{enabled:!L}).reference,ce=e=>{let t=V.current,n=hn(e),r=ie(n),i=x.current,a=i&&n&&P(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`){h.setOpen(!1,z(I,e));return}if(t&&!r&&a&&!R.current&&!h.select(`open`)&&i&&se(U.current)){let t=()=>{!V.current&&!R.current&&!h.select(`open`)&&h.setOpen(!0,z(I,e,i))},n=te();n===0?(H.clear(),t()):H.start(n,t)}},ue=h.useState(`triggerProps`,O);return Ce(`button`,e,{state:{open:v},ref:[t,D,x],props:[ae,oe,O||B!==`none`?ue:void 0,{onMouseOver(e){ce(e.nativeEvent)},onFocus(e){re(hn(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){V.current=!1,H.clear(),U.current=void 0},onPointerEnter(e){U.current=e.pointerType},onPointerDown(e){U.current=e.pointerType,h.set(`closeOnClick`,l),l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[pn.triggerDisabled]:L?``:void 0,[mn]:L?void 0:``},p],stateAttributesMapping:_e})}),vn=W.createContext(void 0);function yn(){let e=W.useContext(vn);if(e===void 0)throw Error(Te(70));return e}var bn=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return an().useState(`mounted`)||n?(0,G.jsx)(vn.Provider,{value:n,children:(0,G.jsx)(Qe,{ref:t,...r})}):null}),xn=W.createContext(void 0);function Sn(){let e=W.useContext(xn);if(e===void 0)throw Error(Te(71));return e}var Cn=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:s=`top`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:v=m,style:y,...b}=e,x=an(),S=yn(),C=x.useState(`open`),w=x.useState(`mounted`),T=x.useState(`trackCursorAxis`),E=x.useState(`disableHoverablePopup`),D=x.useState(`floatingRootContext`),O=x.useState(`instantType`),k=x.useState(`transitionStatus`),A=x.useState(`hasViewport`),j=_({anchor:i,positionMethod:a,floatingRootContext:D,mounted:w,side:s,sideOffset:l,align:c,alignOffset:u,collisionBoundary:d,collisionPadding:f,sticky:h,arrowPadding:p,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:v,adaptiveOrigin:A?o:void 0}),M=W.useMemo(()=>({open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:T===`none`?O:`tracking-cursor`}),[C,j.side,j.align,j.anchorHidden,T,O]),N=ke(e,M,{styles:j.positionerStyles,transitionStatus:k,props:b,refs:[t,x.useStateSetter(`positionerElement`)],hidden:!w,inert:!C||T===`both`||E});return(0,G.jsx)(xn.Provider,{value:j,children:N})}),wn={...A,...re},Tn=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=an(),{side:s,align:c}=Sn(),u=o.useState(`open`),f=o.useState(`instantType`),p=o.useState(`transitionStatus`),m=o.useState(`popupProps`),h=o.useState(`floatingRootContext`),g=o.useState(`disabled`),_=o.useState(`closeDelay`);ge({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),d(h,{enabled:!g,closeDelay:_});let v=o.useStateSetter(`popupElement`);return Ce(`div`,e,{state:{open:u,side:s,align:c,instant:f,transitionStatus:p},ref:[t,o.context.popupRef,v],props:[m,l(p),a],stateAttributesMapping:wn})}),En=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,G.jsx)(dn.Provider,{value:i,children:(0,G.jsx)(Me,{delay:a,timeoutMs:r,children:e.children})})},Dn=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({}),On={activationDirection:e=>e?{"data-activation-direction":e}:null},kn=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=an(),c=Sn(),l=s.useState(`instantType`),{children:u,state:d}=Ke({store:s,side:c.side,cssVars:Dn,children:a}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:l};return Ce(`div`,e,{state:f,ref:t,props:[o,{children:u}],stateAttributesMapping:On})}),An=`wco`,jn=`electron`,Mn=`electron-windows`,Nn=52;function Pn(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Fn(){if(typeof document>`u`)return()=>{};let e=Pn(),t=()=>{document.documentElement.classList.toggle(An,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function In(e){let t=Pn();return t?.addEventListener(`geometrychange`,e),()=>t?.removeEventListener(`geometrychange`,e)}function Ln(){if(Ae&&we(navigator.platform))return Nn;let e=Pn();return e?.visible?e.getTitlebarAreaRect().bottom:0}function Rn(){return(0,W.useSyncExternalStore)(In,Ln,zn)}function zn(){return 0}function Bn(e){return me(e)?[jn,Mn]:[jn]}function Vn(e){if(typeof document>`u`)return()=>{};let t=Bn(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var Hn=5,Un=En,Wn=(0,W.createContext)(null),Gn=(0,W.createContext)(null);function Kn(e){let t=(0,Le.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({onScrollCapture:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=(0,W.useRef)(null),a;t[3]===n?a=t[4]:(a=e=>{n?.(e);let t=i.current;t&&!t.trigger.contains(t.trigger.ownerDocument.activeElement)&&(i.current=null,t.actionsRef.current?.close())},t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,G.jsx)(Gn,{value:i,children:(0,G.jsx)(`div`,{...r,onScrollCapture:a})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function qn(e){let t=(0,W.use)(Gn),n=(0,W.useRef)(null),r=e.actionsRef??n;return(0,W.useEffect)(()=>()=>{t?.current?.actionsRef===r&&(t.current=null)},[r,t]),t?(0,G.jsx)(Wn,{value:r,children:(0,G.jsx)(ln,{...e,actionsRef:r,onOpenChange:(n,i)=>{e.onOpenChange?.(n,i),!n&&!i.isCanceled&&t.current?.actionsRef===r&&(t.current=null)}})}):(0,G.jsx)(ln,{...e})}function Jn(e){let t=(0,W.use)(Gn),n=(0,W.use)(Wn);return!t||!n?(0,G.jsx)(_n,{"data-slot":`tooltip-trigger`,...e}):(0,G.jsx)(_n,{"data-slot":`tooltip-trigger`,...e,onMouseEnter:r=>{e.onMouseEnter?.(r),t.current={trigger:r.currentTarget,actionsRef:n}}})}function Yn(e){let t=(0,Le.c)(5),n=Hn+Rn(),r;t[0]===n?r=t[1]:(r={top:n,right:Hn,bottom:Hn,left:Hn},t[0]=n,t[1]=r);let i;return t[2]!==e||t[3]!==r?(i=(0,G.jsx)(Cn,{className:`pointer-events-none z-[140] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none`,collisionPadding:r,"data-slot":`tooltip-positioner`,...e}),t[2]=e,t[3]=r,t[4]=i):i=t[4],i}function Xn(e){let t=(0,Le.c)(25),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:i,align:o,sideOffset:s,side:c,variant:l,anchor:n,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=o===void 0?`center`:o,d=s===void 0?4:s,f=c===void 0?`top`:c,p=l===void 0?`default`:l,m=p===`glass`?`dropdown-glass shadow-xl shadow-black/25 before:hidden`:p===`inverse`?`rounded-xl border border-foreground bg-foreground text-background shadow-md/10 before:hidden`:`border bg-popover not-dark:bg-clip-padding shadow-md/5`,h=p===`code`?`max-w-120 wrap-anywhere text-left font-mono text-[11px] leading-relaxed`:`max-w-80 wrap-anywhere whitespace-normal leading-snug`,g;t[9]!==i||t[10]!==m||t[11]!==h?(g=ve(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md text-popover-foreground text-xs transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,m,h,i),t[9]=i,t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===r?_=t[14]:(_=(0,G.jsx)(kn,{className:`relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,"data-slot":`tooltip-viewport`,children:r}),t[13]=r,t[14]=_);let v;t[15]!==a||t[16]!==g||t[17]!==_?(v=(0,G.jsx)(Tn,{className:g,"data-slot":`tooltip-popup`,...a,children:_}),t[15]=a,t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;return t[19]!==u||t[20]!==n||t[21]!==f||t[22]!==d||t[23]!==v?(y=(0,G.jsx)(bn,{children:(0,G.jsx)(Yn,{align:u,anchor:n,side:f,sideOffset:d,children:v})}),t[19]=u,t[20]=n,t[21]=f,t[22]=d,t[23]=v,t[24]=y):y=t[24],y}export{Jn as a,nn as c,Ke as d,ze as f,Kn as i,Qe as l,Xn as n,Vn as o,Un as r,Fn as s,qn as t,Ze as u};
2
- //# sourceMappingURL=tooltip-CYNXW1Ow.js.map
1
+ import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$r as r,Aa as i,Ba as a,Cr as o,Da as s,Di as c,Er as l,Ji as u,Jr as d,La as f,Ma as p,Mi as m,Oa as h,Qr as g,Sr as _,Tr as v,Ui as y,Wr as b,Xa as x,Xi as S,Xr as C,Yr as w,Zi as T,_a as E,_i as D,aa as O,ai as k,ao as A,ca as j,ci as M,do as N,ea as P,ei as F,eo as I,fa as L,gr as R,ha as z,ho as B,ii as ee,io as V,ja as H,ka as U,la as te,li as ne,lo as re,ma as ie,mi as ae,mo as oe,na as se,ni as ce,oa as le,oi as ue,pi as de,qi as fe,qr as pe,r as me,ri as he,sa as ge,so as _e,t as ve,ta as ye,ti as be,to as xe,ui as Se,uo as Ce,vc as we,vo as Te,wr as Ee,wx as De,yi as Oe,yr as ke}from"./utils-DmS758az.js";import{t as Ae}from"./env-wK1YYxA8.js";var W=e(n()),G=e(ie()),je=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new O,currentIdRef:{current:null},currentContextRef:{current:null}});function Me(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=le();return(0,G.jsx)(je.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ne(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=W.useContext(je),[p,m]=W.useState(!1);return s(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),a.current=null,u.current=null,o.current=l.current}if(a.current&&!n&&a.current===i){if(m(!1),c){let t=i;return f.start(c,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{f.clear()}}e()}},[n,i,a,o,c,l,u,f,r]),s(()=>{if(!n)return;let e=u.current,t=a.current;f.clear(),u.current={onOpenChange:r.setOpen,setIsInstantPhase:m},a.current=i,o.current={open:0,close:T(l.current,`close`)},t!==null&&t!==i?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,z(x))):(m(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,l,u,f]),s(()=>()=>{u.current=null},[u]),W.useMemo(()=>({hasProvider:d,delayRef:o,isInstantPhase:p}),[d,o,p])}function Pe(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Fe(e){return e!=null&&e.clientX!=null}function Ie(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=W.useRef(!1),d=W.useRef(null),[f,p]=W.useState(),[m,g]=W.useState([]),_=h(e=>{a.set(`positionReference`,e)}),v=h((e,t,n)=>{u.current||(!l.current.openEvent||Fe(l.current.openEvent))&&a.set(`positionReference`,Pe(n??c,{x:e,y:t,axis:r,dataRef:l,pointerType:f}))}),y=h(e=>{o?d.current||(v(e.clientX,e.clientY,e.currentTarget),g([])):v(e.clientX,e.clientY,e.currentTarget)}),b=se(f)?s:o;W.useEffect(()=>{if(!n){_(c);return}if(!b)return;function e(){d.current?.(),d.current=null}let t=i(s);function r(t){let n=ye(t);P(s,n)?e():v(t.clientX,t.clientY)}return!l.current.openEvent||Fe(l.current.openEvent)?d.current=S(t,`mousemove`,r):_(c),e},[b,n,s,l,c,a,v,_,m]),W.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),W.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),W.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let x=W.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return W.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}var Le=De(),Re=e(te());function ze(e){let[t,n]=W.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function Be(e){let t=U(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=p(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(y(n)!==a||y(r)!==o)&&(n=a,r=o),{width:n,height:r}}var Ve=()=>!0;function He(e){let{popupElement:t,positionerElement:n,content:r,mounted:i,enabled:a=Ve,onMeasureLayout:o,onMeasureLayoutComplete:c,side:l,direction:u}=e,d=j(t,!0,!1),f=L(),p=W.useRef(null),m=W.useRef(null),g=W.useRef(!0),_=W.useRef(B),v=h(o),y=h(c),b=W.useMemo(()=>{let e=l===`top`,t=l===`left`;return u===`rtl`?(e||=l===`inline-end`,t||=l===`inline-end`):(e||=l===`inline-start`,t||=l===`inline-start`),e?{position:`absolute`,[l===`top`?`bottom`:`top`]:`0`,[t?`right`:`left`]:`0`}:oe},[l,u]);s(()=>{if(!i||!a()||typeof ResizeObserver!=`function`){_.current=B,g.current=!0,p.current=null,m.current=null;return}if(!t||!n)return;_.current=We(t,b);let e=new ResizeObserver(e=>{let t=e[0];t&&(m.current={width:Math.ceil(t.borderBoxSize[0].inlineSize),height:Math.ceil(t.borderBoxSize[0].blockSize)})});e.observe(t),Ge(t,`auto`);let r=Ue(t,`position`,`static`),o=Ue(t,`transform`,`none`),s=Ue(t,`scale`,`1`),c=We(n,{"--available-width":`max-content`,"--available-height":`max-content`});function l(){r(),o(),c()}function u(){l(),s()}if(v?.(),g.current||p.current===null){K(n,`max-content`);let r=Be(t);return p.current=r,K(n,r),u(),y?.(null,r),g.current=!1,()=>{e.disconnect(),_.current(),_.current=B}}Ge(t,`auto`),K(n,`max-content`);let h=p.current??m.current,x=Be(t);if(p.current=x,!h)return K(n,x),u(),y?.(null,x),()=>{e.disconnect(),f.cancel(),_.current(),_.current=B};Ge(t,h),u(),y?.(h,x),K(n,x);let S=new AbortController;return f.request(()=>{Ge(t,x),d(()=>{t.style.setProperty(`--popup-width`,`auto`),t.style.setProperty(`--popup-height`,`auto`)},S.signal)}),()=>{e.disconnect(),S.abort(),f.cancel(),_.current(),_.current=B}},[r,t,n,d,f,a,i,v,y,b])}function Ue(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function We(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(Ue(e,r,i));return n.length?()=>{n.forEach(e=>e())}:B}function Ge(e,t){let n=t===`auto`?`auto`:`${t.width}px`,r=t===`auto`?`auto`:`${t.height}px`;e.style.setProperty(`--popup-width`,n),e.style.setProperty(`--popup-height`,r)}function K(e,t){let n=t===`max-content`?`max-content`:`${t.width}px`,r=t===`max-content`?`max-content`:`${t.height}px`;e.style.setProperty(`--positioner-width`,n),e.style.setProperty(`--positioner-height`,r)}function Ke(e){let{store:t,side:n,cssVars:r,children:i}=e,a=Ee(),o=t.useState(`activeTriggerElement`),c=t.useState(`activeTriggerId`),l=t.useState(`open`),u=t.useState(`payload`),d=t.useState(`mounted`),f=t.useState(`popupElement`),p=t.useState(`positionerElement`),m=ze(l?o:null),g=Xe(c,u),_=W.useRef(null),[y,b]=W.useState(null),[x,S]=W.useState(null),C=W.useRef(null),w=W.useRef(null),T=j(C,!0,!1),E=L(),[D,O]=W.useState(null),[k,A]=W.useState(!1);s(()=>(t.set(`hasViewport`,!0),()=>{t.set(`hasViewport`,!1)}),[t]);let M=h(()=>{C.current?.style.setProperty(`animation`,`none`),C.current?.style.setProperty(`transition`,`none`),w.current?.style.setProperty(`display`,`none`)}),N=h(e=>{C.current?.style.removeProperty(`animation`),C.current?.style.removeProperty(`transition`),w.current?.style.removeProperty(`display`),e&&O(e)}),P=W.useRef(null);s(()=>{if(o&&m&&o!==m&&P.current!==o&&_.current){b(_.current),A(!0);let e=Ye(m,o);S(e),E.request(()=>{Re.flushSync(()=>{A(!1)}),T(()=>{b(null),O(null),_.current=null})}),P.current=o}},[o,m,y,T,E]),s(()=>{let e=C.current;if(!e)return;let t=fe(e).createElement(`div`);for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));_.current=t});let F=y!=null,I;I=F?(0,G.jsxs)(W.Fragment,{children:[(0,G.jsx)(`div`,{"data-previous":!0,inert:v(!0),ref:w,style:{...D?{[r.popupWidth]:`${D.width}px`,[r.popupHeight]:`${D.height}px`}:null,position:`absolute`},"data-ending-style":k?void 0:``},`previous`),(0,G.jsx)(`div`,{"data-current":!0,ref:C,"data-starting-style":k?``:void 0,children:i},g)]}):(0,G.jsx)(`div`,{"data-current":!0,ref:C,children:i},g),s(()=>{let e=w.current;e&&y&&e.replaceChildren(...Array.from(y.childNodes))},[y]),He({popupElement:f,positionerElement:p,mounted:d,content:u,onMeasureLayout:M,onMeasureLayoutComplete:N,side:n,direction:a});let R={activationDirection:qe(x),transitioning:F};return{children:I,state:R}}function qe(e){if(e)return`${Je(e.horizontal,5,`right`,`left`)} ${Je(e.vertical,5,`down`,`up`)}`}function Je(e,t,n,r){return e>t?n:e<-t?r:``}function Ye(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},a={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:a.x-i.x,vertical:a.y-i.y}}function Xe(e,t){let[n,r]=W.useState(0),i=W.useRef(e),a=W.useRef(t),o=W.useRef(!1);return s(()=>{let n=i.current,s=a.current,c=e!==n,l=t!==s;c?(r(e=>e+1),o.current=!l):o.current&&l&&(r(e=>e+1),o.current=!1),i.current=e,a.current=t},[e,t]),`${e??`current`}-${n}`}var Ze=t((e=>{e.Check=[[`path`,{d:`M20 6 9 17l-5-5`}]],e.ChevronDown=[[`path`,{d:`m6 9 6 6 6-6`}]],e.ChevronRight=[[`path`,{d:`m9 18 6-6-6-6`}]],e.ChevronUp=[[`path`,{d:`m18 15-6-6-6 6`}]],e.ChevronsDownUp=[[`path`,{d:`m7 20 5-5 5 5`}],[`path`,{d:`m7 4 5 5 5-5`}]],e.ChevronsUpDown=[[`path`,{d:`m7 15 5 5 5-5`}],[`path`,{d:`m7 9 5-5 5 5`}]],e.Circle=[[`circle`,{cx:`12`,cy:`12`,r:`10`}]],e.CircleAlert=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],e.CircleCheck=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m9 12 2 2 4-4`}]],e.Code2=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]],e.Copy=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]],e.CornerUpRight=[[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`}]],e.Eye=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],e.Folder=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],e.FolderClosed=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}],[`path`,{d:`M2 10h20`}]],e.Image=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]],e.Link=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],e.ListPlus=[[`path`,{d:`M16 5H3`}],[`path`,{d:`M11 12H3`}],[`path`,{d:`M16 19H3`}],[`path`,{d:`M18 9v6`}],[`path`,{d:`M21 12h-6`}]],e.Lock=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],e.LockOpen=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`}]],e.Maximize2=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]],e.Minimize2=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]],e.Minus=[[`path`,{d:`M5 12h14`}]],e.Moon=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],e.PanelLeft=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]],e.PanelLeftClose=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m16 15-3-3 3-3`}]],e.Plus=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],e.Sun=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]],e.Table2=[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`}]],e.Text=[[`path`,{d:`M21 5H3`}],[`path`,{d:`M15 12H3`}],[`path`,{d:`M17 19H3`}]],e.Volume2=[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`}]],e.VolumeOff=[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`}]]})),Qe=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:l,portalSubtree:u}=c({container:r,ref:t,componentProps:e,elementProps:s});return!u&&!l?null:(0,G.jsxs)(W.Fragment,{children:[u,l&&Re.createPortal(n,l)]})}),$e=`MmLlHhVvCcSsQqTtAaZz`;function et(e){let t=[],n=e.length,r=0,i=0,a=0,o=0,s=0,c=null,l=``,u=0,d=0,f=``,p=!1,m=e=>{throw Error(`morphicons: ${e} at d[${r}]`)},h=e=>e>=48&&e<=57,g=()=>{for(;r<n;){let t=e.charCodeAt(r);if(t===32||t===9||t===10||t===13||t===12||t===44)r++;else break}},_=()=>{g();let t=r;r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(r<n&&e[r]===`.`)for(r++;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(i||m(`expected number`),r<n&&(e[r]===`e`||e[r]===`E`)){let t=r;r++,r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;i||(r=t)}return Number(e.slice(t,r))},v=()=>{g();let t=e[r];return t===`0`||t===`1`?(r++,+(t===`1`)):m(`expected arc flag (0|1)`)},y=()=>(p||m(`path must start with M/m`),c||(c={x0:i,y0:a,segs:[],closed:!1},t.push(c)),c),b=!1,x=()=>_()+(b?i:0),S=()=>_()+(b?a:0);for(;g(),!(r>=n);){let n=e[r];switch($e.includes(n)?(l=n,r++):l===``?m(`path must start with M/m`):l===`M`?l=`L`:l===`m`?l=`l`:(l===`Z`||l===`z`)&&m(`stray data after Z`),b=l>=`a`,b?l.toUpperCase():l){case`M`:{p=!0;let e=x(),n=S();i=e,a=n,o=e,s=n,c={x0:e,y0:n,segs:[],closed:!1},t.push(c),f=``;break}case`L`:{let e=x(),t=S();y().segs.push([`L`,e,t]),i=e,a=t,f=``;break}case`H`:{let e=x();y().segs.push([`L`,e,a]),i=e,f=``;break}case`V`:{let e=S();y().segs.push([`L`,i,e]),a=e,f=``;break}case`C`:case`S`:{let e,t;l===`C`||l===`c`?(e=x(),t=S()):(e=f===`C`?2*i-u:i,t=f===`C`?2*a-d:a);let n=x(),r=S(),o=x(),s=S();y().segs.push([`C`,e,t,n,r,o,s]),u=n,d=r,i=o,a=s,f=`C`;break}case`Q`:case`T`:{let e,t;l===`Q`||l===`q`?(e=x(),t=S()):(e=f===`Q`?2*i-u:i,t=f===`Q`?2*a-d:a);let n=x(),r=S();y().segs.push([`Q`,e,t,n,r]),u=e,d=t,i=n,a=r,f=`Q`;break}case`A`:{let e=_(),t=_(),n=_(),r=v(),o=v(),s=x(),c=S();y().segs.push([`A`,e,t,n,r,o,s,c]),i=s,a=c,f=``;break}case`Z`:c&&=(c.closed=!0,null),i=o,a=s,f=``;break;default:m(`unsupported command "${l}"`)}}return t.filter(e=>e.segs.length>0)}function tt(e){return String(Math.round(e*100)/100)}function nt(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=i.length/2;n+=`M${tt(i[0])} ${tt(i[1])}`;for(let e=1;e<a;e++)n+=`L${tt(i[2*e])} ${tt(i[2*e+1])}`;t?.[r]&&(n+=`Z`)}return n}function q(e){return String(Math.round(e*1e4)/1e4)}function rt(e){let t=``;for(let{pts:n,closed:r}of e){t+=`M${q(n[0])} ${q(n[1])}`;for(let e=2;e<n.length;e+=6)t+=`C${q(n[e])} ${q(n[e+1])} ${q(n[e+2])} ${q(n[e+3])} ${q(n[e+4])} ${q(n[e+5])}`;r&&(t+=`Z`)}return t}var it=4/3*Math.tan(Math.PI/8),at=2*Math.PI;function J(e,t){let n=[e,t],r=e,i=t,a=(e,t,a,o,s,c)=>{n.push(e,t,a,o,s,c),r=s,i=c},o=(e,t)=>{Math.abs(e-r)<1e-12&&Math.abs(t-i)<1e-12||a(r+(e-r)/3,i+(t-i)/3,r+2*(e-r)/3,i+2*(t-i)/3,e,t)};return[a,o,(e,t,n,o)=>{a(r+2/3*(e-r),i+2/3*(t-i),n+2/3*(e-n),o+2/3*(t-o),n,o)},(e,t,n,s,c,l,u)=>{let d=r,f=i;if(Math.abs(l-d)<1e-12&&Math.abs(u-f)<1e-12)return;let p=Math.abs(e),m=Math.abs(t);if(p<1e-12||m<1e-12){o(l,u);return}let h=n*Math.PI/180,g=Math.cos(h),_=Math.sin(h),v=(d-l)/2,y=(f-u)/2,b=g*v+_*y,x=-_*v+g*y,S=b*b/(p*p)+x*x/(m*m);if(S>1){let e=Math.sqrt(S);p*=e,m*=e}let C=p*p,w=m*m,T=b*b,E=x*x,D=(C*w-C*E-w*T)/(C*E+w*T);D<0&&(D=0);let O=(s===c?-1:1)*Math.sqrt(D),k=O*p*x/m,A=-O*m*b/p,j=g*k-_*A+(d+l)/2,M=_*k+g*A+(f+u)/2,N=Math.atan2((x-A)/m,(b-k)/p),P=Math.atan2((-x-A)/m,(-b-k)/p)-N;c===0&&P>0?P-=at:c===1&&P<0&&(P+=at);let F=Math.max(1,Math.ceil(Math.abs(P)/(Math.PI/2)-1e-9)),I=P/F,L=4/3*Math.tan(I/4),R=e=>j+p*Math.cos(e)*g-m*Math.sin(e)*_,z=e=>M+p*Math.cos(e)*_+m*Math.sin(e)*g,B=e=>-p*Math.sin(e)*g-m*Math.cos(e)*_,ee=e=>-p*Math.sin(e)*_+m*Math.cos(e)*g,V=N,H=d,U=f;for(let e=1;e<=F;e++){let t=N+I*e,n=e===F?l:R(t),r=e===F?u:z(t);a(H+L*B(V),U+L*ee(V),n-L*B(t),r-L*ee(t),n,r),V=t,H=n,U=r}},e=>(e&&o(n[0],n[1]),n.length<8?null:{pts:Float64Array.from(n),closed:e})]}function ot(e){let[t,n,r,i,a]=J(e.x0,e.y0);for(let a of e.segs)switch(a[0]){case`L`:n(a[1],a[2]);break;case`C`:t(a[1],a[2],a[3],a[4],a[5],a[6]);break;case`Q`:r(a[1],a[2],a[3],a[4]);break;case`A`:i(a[1],a[2],a[3],a[4],a[5],a[6],a[7])}return a(e.closed)}function Y(e,t,n=0){let r=e[t];if(r===void 0)return n;let i=typeof r==`number`?r:Number(r);return Number.isFinite(i)?i:n}function st(e){let t=String(e??``).trim();if(!t)return[];let n=t.split(/[\s,]+/).map(Number);if(n.some(e=>!Number.isFinite(e)))throw Error(`morphicons: invalid points: "${t}"`);return n}function ct(e,t){if(e.length<4)return null;let[,n,,,r]=J(e[0],e[1]);for(let t=2;t+1<e.length;t+=2)n(e[t],e[t+1]);return r(t)}function lt(e,t,n,r){if(n<1e-12||r<1e-12)return null;let i=it*n,a=it*r,o=e+n,s=e-n,c=t+r,l=t-r,[u,,,,d]=J(o,t);return u(o,t+a,e+i,c,e,c),u(e-i,c,s,t+a,s,t),u(s,t-a,e-i,l,e,l),u(e+i,l,o,t-a,o,t),d(!0)}function ut(e){let t=Y(e,`x`),n=Y(e,`y`),r=Y(e,`width`),i=Y(e,`height`);if(r<1e-12||i<1e-12)return null;let a=Y(e,`rx`,NaN),o=Y(e,`ry`,NaN);if(Number.isNaN(a)&&(a=Number.isNaN(o)?0:o),Number.isNaN(o)&&(o=a),a=Math.min(Math.max(a,0),r/2),o=Math.min(Math.max(o,0),i/2),a<1e-12||o<1e-12)return ct([t,n,t+r,n,t+r,n+i,t,n+i],!0);let s=t+a,c=t+r-a,l=t+r,u=n+o,d=n+i-o,f=n+i,p=it*a,m=it*o,[h,g,,,_]=J(s,n);return g(c,n),h(c+p,n,l,u-m,l,u),g(l,d),h(l,d+m,c+p,f,c,f),g(s,f),h(s-p,f,t,d+m,t,d),g(t,u),h(t,u-m,s-p,n,s,n),_(!0)}function dt(e){let t=[],n=e=>{e&&t.push(e)};if(typeof e==`string`){for(let t of et(e))n(ot(t));return t}for(let[t,r]of e)switch(t){case`path`:for(let e of et(String(r.d??``)))n(ot(e));break;case`line`:{let[,e,,,t]=J(Y(r,`x1`),Y(r,`y1`));e(Y(r,`x2`),Y(r,`y2`)),n(t(!1));break}case`circle`:{let e=Y(r,`r`);n(lt(Y(r,`cx`),Y(r,`cy`),e,e));break}case`ellipse`:n(lt(Y(r,`cx`),Y(r,`cy`),Y(r,`rx`),Y(r,`ry`)));break;case`rect`:n(ut(r));break;case`polyline`:n(ct(st(r.points),!1));break;case`polygon`:n(ct(st(r.points),!0));break;default:throw Error(`morphicons: unsupported tag <${t}>`)}return t}function ft(e){return e.items.map(()=>new Float64Array(2*e.n))}function pt(e,t,n){for(let r=0;r<e.items.length;r++){let i=e.items[r],a=n[r],o=e.n,s=Math.exp(i.lnSigma*t),c=i.theta*t,l=Math.cos(c)*s,u=Math.sin(c)*s,d,f;if(i.block){let[e,n]=i.block.off,[r,a]=i.block.drift;d=i.ca[0]+r*t+(e*l-n*u-e),f=i.ca[1]+a*t+(e*u+n*l-n)}else d=i.ca[0]+(i.cb[0]-i.ca[0])*t,f=i.ca[1]+(i.cb[1]-i.ca[1])*t;for(let e=0;e<o;e++){let n=i.aC[2*e]+(i.bT[2*e]-i.aC[2*e])*t,r=i.aC[2*e+1]+(i.bT[2*e+1]-i.aC[2*e+1])*t;a[2*e]=d+n*l-r*u,a[2*e+1]=f+n*u+r*l}}}var mt=.35,ht=.05,gt=.005,_t=8,vt=1e5;function X(e){let t=e.length/2,n=0,r=0;for(let i=0;i<t;i++)n+=e[2*i],r+=e[2*i+1];return[n/t,r/t]}function yt(e){let t=e.length/2,n=0;for(let r=1;r<t;r++)n+=Math.hypot(e[2*r]-e[2*r-2],e[2*r+1]-e[2*r-1]);return n}function bt(e){let t=e.length/2,n=new Float64Array(2*t);for(let r=0;r<t;r++)n[2*r]=e[2*(t-1-r)],n[2*r+1]=e[2*(t-1-r)+1];return n}function xt(e,t){let n=e.length/2,r=new Float64Array(2*n);for(let i=0;i<n;i++){let a=(i+t)%n;r[2*i]=e[2*a],r[2*i+1]=e[2*a+1]}return r}function St(e,t,n,r){let i=e.length/2,a=0,o=0,s=0,c=0,l=0,u=0;for(let d=0;d<i;d++){let i=e[2*d]-n[0],f=e[2*d+1]-n[1],p=t[2*d]-r[0],m=t[2*d+1]-r[1];a+=i*p,c+=f*m,o+=i*m,s+=f*p,l+=i*i+f*f,u+=p*p+m*m}let d=Math.atan2(o-s,a+c),f=Math.cos(d)*(a+c)+Math.sin(d)*(o-s),p=l>1e-12?f/l:1;p>1e-6||(p=1e-6);let m=Math.max(0,p*p*l-2*p*f+u),h=u>1e-12?Math.sqrt(m/u):0;return{theta:d,sigma:p,res:h}}function Ct(e,t,n=!1,r=!1){let i=X(e),a=X(t),o=n&&!r,s=o?e:t,c=n||r?s.length/2:1,l=1/0,u=s,d={theta:0,sigma:1,res:0};for(let n=0;n<2;n++){let r=n?bt(s):s;for(let n=0;n<c;n++){let s=n?xt(r,n):r,c=o?St(s,t,i,a):St(e,s,i,a),f=c.res+ht*Math.abs(c.theta)/Math.PI;f<l&&(l=f,u=s,d=c)}}return o?{ca:i,cb:a,a:u,b:t,...d}:{ca:i,cb:a,a:e,b:u,...d}}function wt(e,t){let n=t.map(X),r=t.map(yt);return e.map(e=>{let t=X(e),i=yt(e);return n.map((e,n)=>Math.hypot(t[0]-e[0],t[1]-e[1])+mt*Math.abs(i-r[n]))})}function Tt(e){let t=e.length;if(t>_t){let n=[];for(let r=0;r<t;r++)for(let i=0;i<t;i++)n.push([e[r][i],r,i]);n.sort((e,t)=>e[0]-t[0]);let r=Array(t).fill(-1),i=Array(t).fill(!1);for(let[,e,t]of n)r[e]<0&&!i[t]&&(r[e]=t,i[t]=!0);return r}let n=Array.from({length:t},(e,t)=>t),r=n.slice(),i=1/0,a=(n,o,s)=>{if(!(s>=i)){if(o===t){i=s,r=n.slice();return}for(let r=o;r<t;r++)[n[o],n[r]]=[n[r],n[o]],a(n,o+1,s+e[o][n[o]]),[n[o],n[r]]=[n[r],n[o]]}};return a(n,0,0),r}function Et(e){let t=e.length,n=e[0].length;if(n**t>vt){let r=e.map(e=>{let t=0;for(let n=1;n<e.length;n++)e[n]<e[t]&&(t=n);return t}),i=Array(n).fill(0);for(let e of r)i[e]++;for(let a=0;a<n;a++){if(i[a]>0)continue;let n=-1,o=1/0;for(let s=0;s<t;s++){if(i[r[s]]<2)continue;let t=e[s][a]-e[s][r[s]];t<o&&(o=t,n=s)}i[r[n]]--,r[n]=a,i[a]++}return r}let r=null,i=1/0,a=Array(t),o=Array(n).fill(0),s=(c,l,u)=>{if(!(l>=i||n-u>t-c)){if(c===t){i=l,r=a.slice();return}for(let t=0;t<n;t++)a[c]=t,o[t]++,s(c+1,l+e[c][t],u+ +(o[t]===1)),o[t]--}};if(s(0,0,0),!r)throw Error(`morphicons: no valid surjection (B < S)`);return r}function Dt(e,t){let n=e.length*t,r=new Float64Array(2*n),i=new Float64Array(2*n);e.forEach((e,n)=>{r.set(e.a,2*t*n),i.set(e.bO,2*t*n)});let a=X(r),o=St(r,i,a,X(i));if(o.res>=gt)return;let s=Math.cos(-o.theta),c=Math.sin(-o.theta),l=Math.cos(o.theta),u=Math.sin(o.theta);for(let n of e){let e=0,r=0;for(let i=0;i<t;i++){let t=n.bO[2*i]-n.cb[0],a=n.bO[2*i+1]-n.cb[1];n.bT[2*i]=(t*s-a*c)/o.sigma,n.bT[2*i+1]=(t*c+a*s)/o.sigma;let d=o.sigma*(l*n.aC[2*i]-u*n.aC[2*i+1])-t,f=o.sigma*(u*n.aC[2*i]+l*n.aC[2*i+1])-a;e+=d*d+f*f,r+=t*t+a*a}n.theta=o.theta,n.lnSigma=Math.log(o.sigma),n.res=r>1e-12?Math.sqrt(e/r):0;let i=Math.exp(n.lnSigma),d=Math.cos(n.theta)*i,f=Math.sin(n.theta)*i,p=n.ca[0]-a[0],m=n.ca[1]-a[1],h=p*d-m*f-p,g=p*f+m*d-m;n.block={off:[p,m],drift:[n.cb[0]-n.ca[0]-h,n.cb[1]-n.ca[1]-g]}}}function Ot(e,t){let n=e.length,r=t.length;if(n===0||r===0)throw Error(`morphicons: icon has no subpaths`);let i=e.map(e=>e.pts),a=t.map(e=>e.pts),o=[];if(n===r){let e=Tt(wt(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}else if(n<r){let e=Et(wt(a,i));for(let t=0;t<r;t++)o.push([e[t],t])}else{let e=Et(wt(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}let s=i[0].length/2,c=o.map(([n,r])=>{let o=Ct(i[n],a[r],e[n].closed,t[r].closed),c=o.a,l=new Float64Array(2*s),u=new Float64Array(2*s),d=new Float64Array(2*s),f=Math.cos(-o.theta),p=Math.sin(-o.theta);for(let e=0;e<s;e++){l[2*e]=c[2*e]-o.ca[0],l[2*e+1]=c[2*e+1]-o.ca[1];let t=o.b[2*e]-o.cb[0],n=o.b[2*e+1]-o.cb[1];u[2*e]=(t*f-n*p)/o.sigma,u[2*e+1]=(t*p+n*f)/o.sigma,d[2*e]=o.b[2*e],d[2*e+1]=o.b[2*e+1]}return{a:c,aC:l,bT:u,bO:d,ca:o.ca,cb:o.cb,theta:o.theta,lnSigma:Math.log(o.sigma),res:o.res,closed:e[n].closed&&t[r].closed,block:null}});return c.length>1&&Dt(c,s),{items:c,n:s}}var kt=Math.PI/8,At=[.18343464249564978,.525532409916329,.7966664774136267,.9602898564975363],jt=[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626];function Mt(e,t,n){let r=6*t,i=1-n,a=3*i*i,o=6*i*n,s=3*n*n,c=a*(e[r+2]-e[r])+o*(e[r+4]-e[r+2])+s*(e[r+6]-e[r+4]),l=a*(e[r+3]-e[r+1])+o*(e[r+5]-e[r+3])+s*(e[r+7]-e[r+5]);return Math.hypot(c,l)}function Nt(e,t,n=1){let r=n/2,i=0;for(let n=0;n<4;n++)i+=jt[n]*(Mt(e,t,r+r*At[n])+Mt(e,t,r-r*At[n]));return i*r}function Pt(e,t,n,r,i){let a=6*t,o=1-n,s=o*o*o,c=3*o*o*n,l=3*o*n*n,u=n*n*n;r[i]=s*e[a]+c*e[a+2]+l*e[a+4]+u*e[a+6],r[i+1]=s*e[a+1]+c*e[a+3]+l*e[a+5]+u*e[a+7]}function Ft(e,t,n){let r=6*t,i=n?r+6:r,a=n?-1:1;for(let t of n?[4,2,0]:[2,4,6]){let n=a*(e[r+t]-e[i]),o=a*(e[r+t+1]-e[i+1]);if(n*n+o*o>1e-18)return[n,o]}return null}function It(e,t=kt){let n=e.pts,r=(n.length/2-1)/3,i=[];for(let e=0;e<r;e++)Nt(n,e)>1e-9&&i.push(e);if(i.length===0)return[];let a=new Set,o=(e,r)=>{let i=Ft(n,e,!0),o=Ft(n,r,!1);i&&o&&Math.abs(Math.atan2(i[0]*o[1]-i[1]*o[0],i[0]*o[0]+i[1]*o[1]))>t&&a.add(r)};for(let e=0;e+1<i.length;e++)o(i[e],i[e+1]);return e.closed&&i.length>1&&o(i[i.length-1],i[0]),[...a].sort((e,t)=>e-t)}function Lt(e,t,n,r){if(n<=0)return 0;if(n>=r)return 1;let i=0,a=1,o=n/r;for(let s=0;s<12;s++){let s=Nt(e,t,o)-n;if(Math.abs(s)<1e-10*r+1e-14)break;s>0?a=o:i=o;let c=Mt(e,t,o),l=c>1e-12?o-s/c:(i+a)/2;l>i&&l<a||(l=(i+a)/2),o=l}return o}function Rt(e,t=64,n=kt){let r=e.pts,i=(r.length/2-1)/3,a=new Float64Array(2*t),o=()=>{for(let e=0;e<t;e++)a[2*e]=r[0],a[2*e+1]=r[1];return a};if(i<1)return o();let s=Array(i),c=0;for(let e=0;e<i;e++)s[e]=Nt(r,e),c+=s[e];if(c<1e-12)return o();let l=It(e,n),u=e.closed?l.length>0?l:[0]:[...new Set([0,...l,i])].sort((e,t)=>e-t),d=[];if(e.closed)for(let e=0;e<u.length;e++){let t=u[e],n=e+1<u.length?u[e+1]:u[0]+i;d.push([t,n])}else for(let e=0;e+1<u.length;e++)d.push([u[e],u[e+1]]);let f=d.map(([e,t])=>{let n=0;for(let r=e;r<t;r++)n+=s[r%i];return n}),p=e.closed?t:t-1;if(d.length>p)throw Error(`morphicons: N=${t} too small (${d.length} runs)`);let m=f.reduce((e,t)=>e+t,0)||1,h=f.map(e=>p*e/m),g=h.map(e=>Math.max(1,Math.floor(e))),_=p-g.reduce((e,t)=>e+t,0);if(_>0){let e=h.map((e,t)=>[Math.round((e-Math.floor(e))*1e9),t]).sort((e,t)=>t[0]-e[0]||e[1]-t[1]);for(let t=0;t<_;t++)g[e[t%g.length][1]]++}for(;_<0;){let e=0;for(let t=1;t<g.length;t++)g[t]>g[e]&&(e=t);if(g[e]<=1)break;g[e]--,_++}let v=0;for(let e=0;e<d.length;e++){let[t,n]=d[e],o=g[e],c=f[e],l=t%i*6;a[2*v]=r[l],a[2*v+1]=r[l+1],v++;let u=t,p=0;for(let e=1;e<o;e++){let t=c*e/o;for(;u<n-1&&p+s[u%i]<t;)p+=s[u%i],u++;let l=u%i,d=s[l];Pt(r,l,d>1e-12?Lt(r,l,t-p,d):0,a,2*v),v++}}if(!e.closed){let e=6*i;a[2*v]=r[e],a[2*v+1]=r[e+1]}return a}function zt(e,t=64){return dt(e).map(e=>({pts:Rt(e,t),closed:e.closed}))}var Bt=class{x=1;v=0;k=250;c=24;config(e,t){this.k=e,this.c=t}start(){this.x=0,this.v>14&&(this.v=14),this.v<-14&&(this.v=-14)}step(e){let t=Math.max(1,Math.min(16,Math.ceil(e/(1/240)))),n=e/t;for(let e=0;e<t;e++){let e=this.k*(1-this.x)-this.c*this.v;this.v+=e*n,this.x+=this.v*n}return Math.abs(1-this.x)<.001&&Math.abs(this.v)<.02}},Vt={smooth:{k:170,c:26},snappy:{k:420,c:30},bouncy:{k:300,c:14}},Ht=new Set,Z=0,Q=-1;function Ut(e){let t=Q<0?0:Math.min(Math.max((e-Q)/1e3,0),.1);Q=e;for(let e of[...Ht])e(t);Ht.size>0?Z=requestAnimationFrame(Ut):(Z=0,Q=-1)}function Wt(e){Ht.add(e),Z===0&&(Q=-1,Z=requestAnimationFrame(Ut))}function Gt(e){Ht.delete(e),Ht.size===0&&Z!==0&&(cancelAnimationFrame(Z),Z=0,Q=-1)}var Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap;function $(e){if(typeof e==`string`)return zt(e);let t=Kt.get(e);return t||(t=zt(e),Kt.set(e,t)),t}function Yt(e){if(typeof e==`string`)return e;let t=qt.get(e);return t||(t=rt(dt(e)),qt.set(e,t)),t}function Xt(e,t){if(typeof e==`string`||typeof t==`string`)return Ot($(e),$(t));let n=Jt.get(e);n||(n=new WeakMap,Jt.set(e,n));let r=n.get(t);return r||(r=Ot($(e),$(t)),n.set(t,r)),r}function Zt(e){if(typeof e==`string`)return Vt[e];let t=Vt.snappy;return{k:e?.stiffness??t.k,c:e?.damping??t.c}}function Qt(e,t,n){let r=new Bt,i=n?.reducedMotion??`never`,a=t,o=!0,s=null,c=null,l=null,u=1,d=!1,f=!1;e.setAttribute(`d`,Yt(t));let p=t=>{let n=s,r=c,i=l;n&&r&&i&&(u=t,pt(n,t,r),e.setAttribute(`d`,nt(r,i)))},m=()=>{d&&(d=!1,Gt(h))},h=e=>{let t=r.step(e);p(r.x),t&&(m(),g())},g=()=>{o=!0,s=null,c=null,l=null,u=1,r.x=1,r.v=0,e.setAttribute(`d`,Yt(a))},_=()=>{let e=s,t=c;return o||!e||!t?$(a):t.map((t,n)=>({pts:Float64Array.from(t),closed:e.items[n].closed}))},v=e=>{s=o?Xt(a,e):Ot(_(),$(e)),c=ft(s),l=s.items.map(e=>e.closed),a=e,o=!1},y=e=>{m(),a=e,g()},b=()=>i===`always`?!0:i!==`user`||typeof matchMedia>`u`?!1:matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,x=(e,t)=>{if(f)return;let n=!o&&s!==null&&e===a;m(),r.v=0,n||v(e),p(t)};return{morphTo(e,t){if(f||e===a&&(o||d))return;if(b()){y(e);return}let{k:n,c:i}=Zt(t);r.config(n,i),v(e),r.start(),d||(d=!0,Wt(h))},set(e){f||y(e)},seek:x,get progress(){return o?1:u},set progress(e){f||x(a,e)},get reducedMotion(){return i},set reducedMotion(e){i=e},destroy(){m(),f=!0,s=null,c=null,l=null}}}var $t=typeof document>`u`?W.useEffect:W.useLayoutEffect;function en(e,t,n){if(n<=0)return Yt(e);if(n>=1)return Yt(t);let r=Ot(zt(e),zt(t)),i=ft(r);return pt(r,n,i),nt(i,r.items.map(e=>e.closed))}var tn=(0,W.forwardRef)(function(e,t){let{icon:n,from:r,to:i,progress:a,spring:o,reducedMotion:s,size:c=24,color:l=`currentColor`,strokeWidth:u=2,absoluteStrokeWidth:d,label:f,...p}=e,m=r!==void 0&&i!==void 0,h=n??r??i,[g]=(0,W.useState)(()=>m?en(r,i,a??0):h===void 0?``:Yt(h)),_=(0,W.useRef)(null),v=(0,W.useRef)(null),y=(0,W.useRef)(o);y.current=o;let b=(0,W.useRef)(s);b.current=s;let x=(0,W.useRef)(n),S=(0,W.useRef)(m),C=(0,W.useRef)(!1),w=(0,W.useRef)(!1),T=(0,W.useRef)(null),E=(0,W.useCallback)(e=>{if(v.current)return v.current;let t=_.current;return C.current||!t?null:(v.current=Qt(t,e,{reducedMotion:b.current}),v.current)},[]);$t(()=>{C.current=!1;let e=_.current;if(e&&h!==void 0){let t=Qt(e,m?r:h,{reducedMotion:b.current});if(v.current=t,m){T.current=[r,i];let e=a??0;e<=0?t.set(r):e>=1?t.set(i):(t.seek(i,e),w.current=!0)}}return()=>{C.current=!0,v.current?.destroy(),v.current=null,w.current=!1,T.current=null}},[]),(0,W.useEffect)(()=>{let e=v.current;e&&(e.reducedMotion=s??`never`)},[s]),(0,W.useEffect)(()=>{let e=S.current&&!m;S.current=m;let t=n!==x.current;if(x.current=n,m||n===void 0||!t&&!e)return;T.current=null,w.current=!1;let r=v.current;r?r.morphTo(n,y.current):E(n)},[n,m,E]),(0,W.useEffect)(()=>{if(!m)return;let e=v.current??E(r);if(!e)return;let t=a??0;(!T.current||T.current[0]!==r||T.current[1]!==i)&&(T.current=[r,i],w.current=!1),t<=0?(e.set(r),w.current=!1):t>=1?(e.set(i),w.current=!1):(w.current||=(e.set(r),!0),e.seek(i,t))},[m,r,i,a,E]),(0,W.useImperativeHandle)(t,()=>({morphTo:(e,t)=>{T.current=null,w.current=!1;let n=v.current;n?n.morphTo(e,t??y.current):E(e)},set:e=>{T.current=null,w.current=!1;let t=v.current;t?t.set(e):E(e)}}),[E]);let D=d?Number(u)*24/Number(c):u;return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:c,height:c,viewBox:`0 0 24 24`,fill:`none`,stroke:l,strokeWidth:D,strokeLinecap:`round`,strokeLinejoin:`round`,role:f?`img`:void 0,"aria-hidden":!f||void 0,...p,children:[f?(0,G.jsx)(`title`,{children:f}):null,(0,G.jsx)(`path`,{ref:_,d:g})]})});function nn(e){let t=(0,Le.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({reducedMotion:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?`user`:r,a;return t[3]!==n||t[4]!==i?(a=(0,G.jsx)(tn,{reducedMotion:i,...n}),t[3]=n,t[4]=i,t[5]=a):a=t[5],a}var rn=W.createContext(void 0);function an(e){let t=W.useContext(rn);if(t===void 0&&!e)throw Error(Te(72));return t}var on={...F,disabled:D(e=>e.disabled),instantType:D(e=>e.instantType),isInstantPhase:D(e=>e.isInstantPhase),trackCursorAxis:D(e=>e.trackCursorAxis),disableHoverablePopup:D(e=>e.disableHoverablePopup),lastOpenChangeReason:D(e=>e.openChangeReason),closeOnClick:D(e=>e.closeOnClick),closeDelay:D(e=>e.closeDelay),hasViewport:D(e=>e.hasViewport)},sn=class e extends Se{constructor(e,t,n=!1){let i=new be,a={...cn(),...e};a.floatingRootContext=r(i,t,n),super(a,{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},on)}setOpen=(e,t)=>{let n=t.reason,r=n===I,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),he(r,e,t.trigger),this.update(r)};r?Re.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,z(xe,e))}static useStore(t,n){return M(t,(t,r)=>new e(n,t,r)).store}};function cn(){return{...g(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var ln=de(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:o=`none`,actionsRef:c,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:m=null,children:h}=e,g=sn.useStore(d?.store,{open:n,openProp:r,activeTriggerId:m,triggerIdProp:p});R(()=>{r===void 0&&g.state.open===!1&&n===!0&&g.update({open:!0,activeTriggerId:m})}),g.useControlledProp(`openProp`,r),g.useControlledProp(`triggerIdProp`,p),g.useContextCallback(`onOpenChange`,l),g.useContextCallback(`onOpenChangeComplete`,u);let _=g.useState(`open`),v=!t&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:i}),g.useSyncedValue(`disabled`,t),ee(g);let{forceUnmount:S,transitionStatus:C}=k(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=W.useRef(null);s(()=>{_&&t&&g.setOpen(!1,z(f))},[_,t,g]),s(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),s(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=W.useCallback(()=>{g.setOpen(!1,z(a))},[g]);W.useImperativeHandle(c,()=>({unmount:S,close:O}),[S,O]);let A=v||b||!t&&o!==`none`;return(0,G.jsxs)(rn.Provider,{value:g,children:[A&&(0,G.jsx)(un,{store:g,disabled:t,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function un({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Oe(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Ie(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=W.useMemo(()=>N(a.reference,i.reference),[a.reference,i.reference]),s=W.useMemo(()=>N(a.trigger,i.trigger),[a.trigger,i.trigger]),c=W.useMemo(()=>N(ce,a.floating,i.floating),[a.floating,i.floating]);return ue(e,{activeTriggerProps:o,inactiveTriggerProps:s,popupProps:c}),null}var dn=W.createContext(void 0);function fn(){return W.useContext(dn)}var pn=function(e){return e[e.popupOpen=V.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),mn=`data-base-ui-tooltip-trigger`;function hn(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(H(n))return n}}let t=e.target;return H(t)?t:null}function gn(e){let t=e;for(;t;){if(t.hasAttribute(mn))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&H(n.host)?n.host:null}return null}var _n=ae(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:d,id:f,...p}=e,m=an(!0),h=a?.store??m;if(!h)throw Error(Te(82));let g=E(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),x=W.useRef(null),S=c??600,T=d??0,{registerTrigger:D,isMountedByThisTrigger:O}=ne(g,x,h,{payload:o,closeOnClick:l,closeDelay:T}),k=fn(),{delayRef:A,isInstantPhase:j,hasProvider:M}=Ne(y,{open:v}),N=w(y);h.useSyncedValue(`isInstantPhase`,j);let F=h.useState(`disabled`),L=s??F,R=u(L),B=h.useState(`trackCursorAxis`),ee=h.useState(`disableHoverablePopup`),V=W.useRef(!1),H=le(),U=W.useRef(void 0);function te(){let e=k?.delay,t=typeof A.current==`object`?A.current.open:void 0,n=S;return M&&(n=t===0?0:c??e??S),n}function re(e){let t=x.current;if(!t||!e)return!1;let n=gn(e);return n!==null&&n!==t&&P(t,n)}function ie(e){let t=re(e);return V.current=t,t&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,H.clear()),t}let ae=pe(y,{enabled:!L,mouseOnly:!0,move:!1,handleClose:!ee&&B!==`both`?b():null,restMs:te,delay(){let e=typeof A.current==`object`?A.current.close:void 0,t=T;return d==null&&M&&(t=e),{close:t}},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!V.current}}),oe=C(y,{enabled:!L}).reference,ce=e=>{let t=V.current,n=hn(e),r=ie(n),i=x.current,a=i&&n&&P(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`){h.setOpen(!1,z(I,e));return}if(t&&!r&&a&&!R.current&&!h.select(`open`)&&i&&se(U.current)){let t=()=>{!V.current&&!R.current&&!h.select(`open`)&&h.setOpen(!0,z(I,e,i))},n=te();n===0?(H.clear(),t()):H.start(n,t)}},ue=h.useState(`triggerProps`,O);return Ce(`button`,e,{state:{open:v},ref:[t,D,x],props:[ae,oe,O||B!==`none`?ue:void 0,{onMouseOver(e){ce(e.nativeEvent)},onFocus(e){re(hn(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){V.current=!1,H.clear(),U.current=void 0},onPointerEnter(e){U.current=e.pointerType},onPointerDown(e){U.current=e.pointerType,h.set(`closeOnClick`,l),l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[pn.triggerDisabled]:L?``:void 0,[mn]:L?void 0:``},p],stateAttributesMapping:_e})}),vn=W.createContext(void 0);function yn(){let e=W.useContext(vn);if(e===void 0)throw Error(Te(70));return e}var bn=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return an().useState(`mounted`)||n?(0,G.jsx)(vn.Provider,{value:n,children:(0,G.jsx)(Qe,{ref:t,...r})}):null}),xn=W.createContext(void 0);function Sn(){let e=W.useContext(xn);if(e===void 0)throw Error(Te(71));return e}var Cn=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:s=`top`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:v=m,style:y,...b}=e,x=an(),S=yn(),C=x.useState(`open`),w=x.useState(`mounted`),T=x.useState(`trackCursorAxis`),E=x.useState(`disableHoverablePopup`),D=x.useState(`floatingRootContext`),O=x.useState(`instantType`),k=x.useState(`transitionStatus`),A=x.useState(`hasViewport`),j=_({anchor:i,positionMethod:a,floatingRootContext:D,mounted:w,side:s,sideOffset:l,align:c,alignOffset:u,collisionBoundary:d,collisionPadding:f,sticky:h,arrowPadding:p,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:v,adaptiveOrigin:A?o:void 0}),M=W.useMemo(()=>({open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:T===`none`?O:`tracking-cursor`}),[C,j.side,j.align,j.anchorHidden,T,O]),N=ke(e,M,{styles:j.positionerStyles,transitionStatus:k,props:b,refs:[t,x.useStateSetter(`positionerElement`)],hidden:!w,inert:!C||T===`both`||E});return(0,G.jsx)(xn.Provider,{value:j,children:N})}),wn={...A,...re},Tn=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=an(),{side:s,align:c}=Sn(),u=o.useState(`open`),f=o.useState(`instantType`),p=o.useState(`transitionStatus`),m=o.useState(`popupProps`),h=o.useState(`floatingRootContext`),g=o.useState(`disabled`),_=o.useState(`closeDelay`);ge({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),d(h,{enabled:!g,closeDelay:_});let v=o.useStateSetter(`popupElement`);return Ce(`div`,e,{state:{open:u,side:s,align:c,instant:f,transitionStatus:p},ref:[t,o.context.popupRef,v],props:[m,l(p),a],stateAttributesMapping:wn})}),En=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,G.jsx)(dn.Provider,{value:i,children:(0,G.jsx)(Me,{delay:a,timeoutMs:r,children:e.children})})},Dn=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({}),On={activationDirection:e=>e?{"data-activation-direction":e}:null},kn=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=an(),c=Sn(),l=s.useState(`instantType`),{children:u,state:d}=Ke({store:s,side:c.side,cssVars:Dn,children:a}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:l};return Ce(`div`,e,{state:f,ref:t,props:[o,{children:u}],stateAttributesMapping:On})}),An=`wco`,jn=`electron`,Mn=`electron-windows`,Nn=52;function Pn(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Fn(){if(typeof document>`u`)return()=>{};let e=Pn(),t=()=>{document.documentElement.classList.toggle(An,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function In(e){let t=Pn();return t?.addEventListener(`geometrychange`,e),()=>t?.removeEventListener(`geometrychange`,e)}function Ln(){if(Ae&&we(navigator.platform))return Nn;let e=Pn();return e?.visible?e.getTitlebarAreaRect().bottom:0}function Rn(){return(0,W.useSyncExternalStore)(In,Ln,zn)}function zn(){return 0}function Bn(e){return me(e)?[jn,Mn]:[jn]}function Vn(e){if(typeof document>`u`)return()=>{};let t=Bn(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var Hn=5,Un=En,Wn=(0,W.createContext)(null),Gn=(0,W.createContext)(null);function Kn(e){let t=(0,Le.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({onScrollCapture:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=(0,W.useRef)(null),a;t[3]===n?a=t[4]:(a=e=>{n?.(e);let t=i.current;t&&!t.trigger.contains(t.trigger.ownerDocument.activeElement)&&(i.current=null,t.actionsRef.current?.close())},t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,G.jsx)(Gn,{value:i,children:(0,G.jsx)(`div`,{...r,onScrollCapture:a})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function qn(e){let t=(0,W.use)(Gn),n=(0,W.useRef)(null),r=e.actionsRef??n;return(0,W.useEffect)(()=>()=>{t?.current?.actionsRef===r&&(t.current=null)},[r,t]),t?(0,G.jsx)(Wn,{value:r,children:(0,G.jsx)(ln,{...e,actionsRef:r,onOpenChange:(n,i)=>{e.onOpenChange?.(n,i),!n&&!i.isCanceled&&t.current?.actionsRef===r&&(t.current=null)}})}):(0,G.jsx)(ln,{...e})}function Jn(e){let t=(0,W.use)(Gn),n=(0,W.use)(Wn);return!t||!n?(0,G.jsx)(_n,{"data-slot":`tooltip-trigger`,...e}):(0,G.jsx)(_n,{"data-slot":`tooltip-trigger`,...e,onMouseEnter:r=>{e.onMouseEnter?.(r),t.current={trigger:r.currentTarget,actionsRef:n}}})}function Yn(e){let t=(0,Le.c)(5),n=Hn+Rn(),r;t[0]===n?r=t[1]:(r={top:n,right:Hn,bottom:Hn,left:Hn},t[0]=n,t[1]=r);let i;return t[2]!==e||t[3]!==r?(i=(0,G.jsx)(Cn,{className:`pointer-events-none z-[140] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none`,collisionPadding:r,"data-slot":`tooltip-positioner`,...e}),t[2]=e,t[3]=r,t[4]=i):i=t[4],i}function Xn(e){let t=(0,Le.c)(25),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:i,align:o,sideOffset:s,side:c,variant:l,anchor:n,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=o===void 0?`center`:o,d=s===void 0?4:s,f=c===void 0?`top`:c,p=l===void 0?`default`:l,m=p===`glass`?`dropdown-glass shadow-xl shadow-black/25 before:hidden`:p===`inverse`?`rounded-xl border border-foreground bg-foreground text-background shadow-md/10 before:hidden`:`border bg-popover not-dark:bg-clip-padding shadow-md/5`,h=p===`code`?`max-w-120 wrap-anywhere text-left font-mono text-[11px] leading-relaxed`:`max-w-80 wrap-anywhere whitespace-normal leading-snug`,g;t[9]!==i||t[10]!==m||t[11]!==h?(g=ve(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md text-popover-foreground text-xs transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,m,h,i),t[9]=i,t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===r?_=t[14]:(_=(0,G.jsx)(kn,{className:`relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,"data-slot":`tooltip-viewport`,children:r}),t[13]=r,t[14]=_);let v;t[15]!==a||t[16]!==g||t[17]!==_?(v=(0,G.jsx)(Tn,{className:g,"data-slot":`tooltip-popup`,...a,children:_}),t[15]=a,t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;return t[19]!==u||t[20]!==n||t[21]!==f||t[22]!==d||t[23]!==v?(y=(0,G.jsx)(bn,{children:(0,G.jsx)(Yn,{align:u,anchor:n,side:f,sideOffset:d,children:v})}),t[19]=u,t[20]=n,t[21]=f,t[22]=d,t[23]=v,t[24]=y):y=t[24],y}export{Jn as a,nn as c,Ke as d,ze as f,Kn as i,Qe as l,Xn as n,Vn as o,Un as r,Fn as s,qn as t,Ze as u};
2
+ //# sourceMappingURL=tooltip-Df-4YKs5.js.map
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{c as e}from"./mermaid-parser.core-BT2QN4a3.js";export{e as createTreeViewServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{c as e}from"./mermaid-parser.core-BFPy42Wg.js";export{e as createTreeViewServices};
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{o as e}from"./mermaid-parser.core-BT2QN4a3.js";export{e as createTreemapServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{o as e}from"./mermaid-parser.core-BFPy42Wg.js";export{e as createTreemapServices};
@@ -0,0 +1 @@
1
+ import{La as e,Ra as t}from"./main-D9z9rMK1.js";export{t as __iconNode,e as default};