@intent-hq/web 2.381.2 → 2.383.1

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 (334) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.BmwjvpSF.css +1 -0
  3. package/web/app/immutable/chunks/{BeKKPzED.js → -K3ARgq0.js} +1 -1
  4. package/web/app/immutable/chunks/{pGhuLhmB.js → 0PdeE_M-.js} +1 -1
  5. package/web/app/immutable/chunks/{B1TqZZyd.js → 1WR8MecL.js} +3 -3
  6. package/web/app/immutable/chunks/{Bw803iNn.js → 469banqV.js} +3 -3
  7. package/web/app/immutable/chunks/{C9RagC2N.js → 518Fef2L.js} +1 -1
  8. package/web/app/immutable/chunks/{zOXOu59X.js → 6-uYidyP.js} +3 -3
  9. package/web/app/immutable/chunks/{CuMJ0LCw.js → 6Bqipt1r.js} +1 -1
  10. package/web/app/immutable/chunks/{BG_RlrpY.js → 6GlvsI2m.js} +1 -1
  11. package/web/app/immutable/chunks/{BD4C_b2Z.js → 7GuT70Sz.js} +1 -1
  12. package/web/app/immutable/chunks/{CyczJyMt.js → 7UPrdiE9.js} +1 -1
  13. package/web/app/immutable/chunks/A9niI_uA.js +1 -0
  14. package/web/app/immutable/chunks/{B4Uud3OJ.js → B-ef1MlI.js} +1 -1
  15. package/web/app/immutable/chunks/{DN6qgMae.js → B2Ym4lhl.js} +1 -1
  16. package/web/app/immutable/chunks/{CkEbA_As.js → B2nCyo89.js} +1 -1
  17. package/web/app/immutable/chunks/{D2MSvsFH.js → B3Bfek34.js} +1 -1
  18. package/web/app/immutable/chunks/{BmQQcH5z.js → B4SiDSWP.js} +1 -1
  19. package/web/app/immutable/chunks/{Dq39ODex.js → B4WuQori.js} +1 -1
  20. package/web/app/immutable/chunks/{B4K17hnI.js → B4xSB_Hx.js} +1 -1
  21. package/web/app/immutable/chunks/{BZKoidWB.js → B6S6VNu7.js} +1 -1
  22. package/web/app/immutable/chunks/{Bg4SPgrZ.js → B6STvYyK.js} +1 -1
  23. package/web/app/immutable/chunks/{BTQKLXYi.js → B6qvxAO7.js} +1 -1
  24. package/web/app/immutable/chunks/{qE-X6VV1.js → B8-Q1tED.js} +1 -1
  25. package/web/app/immutable/chunks/{Cy0xJYMG.js → B8VxRkn_.js} +1 -1
  26. package/web/app/immutable/chunks/{BIIYZtt3.js → B9oKJyXc.js} +1 -1
  27. package/web/app/immutable/chunks/{BX63FB9x.js → BAKPnd3w.js} +1 -1
  28. package/web/app/immutable/chunks/{ByhEuqgY.js → BAP-Km9w.js} +1 -1
  29. package/web/app/immutable/chunks/{CDnYwtBR.js → BAzzHP-D.js} +1 -1
  30. package/web/app/immutable/chunks/{CN0TD23u.js → BBws4Cyt.js} +1 -1
  31. package/web/app/immutable/chunks/{CHiOQIO1.js → BCS2G1TZ.js} +1 -1
  32. package/web/app/immutable/chunks/{D5Rd8qkd.js → BE6Cp7Qp.js} +1 -1
  33. package/web/app/immutable/chunks/{Bmt71DMB.js → BFEzojY2.js} +1 -1
  34. package/web/app/immutable/chunks/{CKFaA258.js → BFeEPayU.js} +1 -1
  35. package/web/app/immutable/chunks/{EfOpqeLT.js → BFgeFHTs.js} +1 -1
  36. package/web/app/immutable/chunks/{CVuT-llE.js → BGTRTFMR.js} +1 -1
  37. package/web/app/immutable/chunks/{_Juvw-ie.js → BI0hvS48.js} +3 -3
  38. package/web/app/immutable/chunks/{9mNi8996.js → BI3a2AWW.js} +2 -2
  39. package/web/app/immutable/chunks/BIVeXMBl.js +1 -0
  40. package/web/app/immutable/chunks/{Cgjp6r06.js → BK6a0pzX.js} +1 -1
  41. package/web/app/immutable/chunks/{DCfPUdw9.js → BLyGObAP.js} +3 -3
  42. package/web/app/immutable/chunks/{DVHfIJ_U.js → BNkpVy97.js} +1 -1
  43. package/web/app/immutable/chunks/{B3TTR8D_.js → BP3Sccje.js} +1 -1
  44. package/web/app/immutable/chunks/{xlIh55VB.js → BP5uGGO_.js} +1 -1
  45. package/web/app/immutable/chunks/{BavAnT42.js → BPL5Fo2b.js} +1 -1
  46. package/web/app/immutable/chunks/{BKMwkk7g.js → BPzekfWN.js} +1 -1
  47. package/web/app/immutable/chunks/{DnbNqDYS.js → BSKFIBj2.js} +1 -1
  48. package/web/app/immutable/chunks/{CkyY-zEo.js → BTrqJIJZ.js} +1 -1
  49. package/web/app/immutable/chunks/{bT3v1QYj.js → BTw9kxtg.js} +1 -1
  50. package/web/app/immutable/chunks/{DPCjIvYy.js → BUGeL7WE.js} +1 -1
  51. package/web/app/immutable/chunks/{Besc4d7d.js → BWYuMy_r.js} +1 -1
  52. package/web/app/immutable/chunks/{dzRbajCR.js → BX-0SVP7.js} +1 -1
  53. package/web/app/immutable/chunks/{jExJ4qw0.js → BXhT5rHA.js} +2 -2
  54. package/web/app/immutable/chunks/{COWdAscC.js → BY9RbRJy.js} +1 -1
  55. package/web/app/immutable/chunks/{CEUJ2SOA.js → BYP8ebQS.js} +1 -1
  56. package/web/app/immutable/chunks/{Bkn9MGZb.js → BYq9VtBF.js} +1 -1
  57. package/web/app/immutable/chunks/{DQdDAxOz.js → BaujsV9k.js} +1 -1
  58. package/web/app/immutable/chunks/{7Co-pRoL.js → BbvEB4jz.js} +1 -1
  59. package/web/app/immutable/chunks/{s7AiPAor.js → BcpfdNy8.js} +1 -1
  60. package/web/app/immutable/chunks/{BB82Eb4D.js → BeOwB_6G.js} +1 -1
  61. package/web/app/immutable/chunks/{DDHXn0gy.js → BfojStRz.js} +1 -1
  62. package/web/app/immutable/chunks/{IPb2sVOc.js → BjRQQ_jq.js} +4 -4
  63. package/web/app/immutable/chunks/{J4xkCilS.js → BkITif4J.js} +1 -1
  64. package/web/app/immutable/chunks/{DJS9lO4g.js → BlRYe00B.js} +1 -1
  65. package/web/app/immutable/chunks/{BR1_dE35.js → BlVYr5cA.js} +1 -1
  66. package/web/app/immutable/chunks/{Ah-onPNG.js → BmTMWrby.js} +1 -1
  67. package/web/app/immutable/chunks/{BzJwOhb5.js → Bq_wOSEp.js} +1 -1
  68. package/web/app/immutable/chunks/{D5zGpim8.js → Bs9K_x5H.js} +1 -1
  69. package/web/app/immutable/chunks/{HWtwQJMe.js → Bsh6nUhU.js} +1 -1
  70. package/web/app/immutable/chunks/{CTzwWQun.js → BsrrIQeo.js} +1 -1
  71. package/web/app/immutable/chunks/{CpxnRRai.js → BtHTHBJp.js} +1 -1
  72. package/web/app/immutable/chunks/{BWLItowS.js → Bty1UglO.js} +1 -1
  73. package/web/app/immutable/chunks/{B_TGsMEB.js → BvPbguyx.js} +1 -1
  74. package/web/app/immutable/chunks/{o9vqVVAE.js → BvbTU4IL.js} +1 -1
  75. package/web/app/immutable/chunks/{DwzqUxIw.js → Bvi-fRGz.js} +1 -1
  76. package/web/app/immutable/chunks/{zFOAQ-fV.js → BwhjiNjC.js} +1 -1
  77. package/web/app/immutable/chunks/{6eBy--fo.js → BwtFad5m.js} +2 -2
  78. package/web/app/immutable/chunks/{DLs0Gu12.js → BxEf7uwl.js} +1 -1
  79. package/web/app/immutable/chunks/{D1BWZmii.js → BxJ6X-Sl.js} +1 -1
  80. package/web/app/immutable/chunks/{ko5zX9YA.js → BxVnbYG1.js} +1 -1
  81. package/web/app/immutable/chunks/{CLbTxOfk.js → ByfS7UIX.js} +1 -1
  82. package/web/app/immutable/chunks/{BzWnUeNO.js → BypvqIQM.js} +1 -1
  83. package/web/app/immutable/chunks/{DAY78LgA.js → C-O59F9J.js} +2 -2
  84. package/web/app/immutable/chunks/C0QTy0Sy.js +1 -0
  85. package/web/app/immutable/chunks/{Bz7B58eG.js → C1EvfTg-.js} +1 -1
  86. package/web/app/immutable/chunks/{CtJr8Pwg.js → C45U06qp.js} +1 -1
  87. package/web/app/immutable/chunks/{DVkTXE2a.js → C4JXGtw1.js} +1 -1
  88. package/web/app/immutable/chunks/{C1hbmGxM.js → C4JbSg3f.js} +1 -1
  89. package/web/app/immutable/chunks/{Fh9R4BHC.js → C4QKwtCH.js} +1 -1
  90. package/web/app/immutable/chunks/{8OEJW7fY.js → C6Qw0raF.js} +1 -1
  91. package/web/app/immutable/chunks/{CsY5Dftt.js → C6mS8uZB.js} +1 -1
  92. package/web/app/immutable/chunks/{B3Muoj7H.js → C7LIHk5_.js} +1 -1
  93. package/web/app/immutable/chunks/{BUfNfMkk.js → C8JlOzbF.js} +1 -1
  94. package/web/app/immutable/chunks/{Da_Z6CgM.js → C8y9EItt.js} +1 -1
  95. package/web/app/immutable/chunks/{Dxv5pbru.js → C9h2rwKF.js} +1 -1
  96. package/web/app/immutable/chunks/{BE66F_G_.js → CAvYeStH.js} +1 -1
  97. package/web/app/immutable/chunks/{B-wL6Wzy.js → CBkpyV7r.js} +1 -1
  98. package/web/app/immutable/chunks/{Dy2ZTySC.js → CCqqosml.js} +1 -1
  99. package/web/app/immutable/chunks/{Bxk8XeS_.js → CDAoSo12.js} +1 -1
  100. package/web/app/immutable/chunks/{DaYz5Oxb.js → CDCEiDxP.js} +3 -3
  101. package/web/app/immutable/chunks/{KWmquGlL.js → CDK_hSiv.js} +1 -1
  102. package/web/app/immutable/chunks/{5DxHNwZe.js → CDNvYbvS.js} +1 -1
  103. package/web/app/immutable/chunks/{CXCeVP0_.js → CDjpuJh0.js} +1 -1
  104. package/web/app/immutable/chunks/{Yy6hnibL.js → CE7dsja4.js} +1 -1
  105. package/web/app/immutable/chunks/{Cr-iZ9Tf.js → CEOBX1Pf.js} +1 -1
  106. package/web/app/immutable/chunks/{RNoFqjp6.js → CFny5dMa.js} +1 -1
  107. package/web/app/immutable/chunks/{Ckr4n1ss.js → CGIQkN5K.js} +1 -1
  108. package/web/app/immutable/chunks/{C9K8tC7J.js → CHLX1QZz.js} +1 -1
  109. package/web/app/immutable/chunks/{CV9F7g3O.js → CHXhxB4Q.js} +1 -1
  110. package/web/app/immutable/chunks/{CxSmnqpJ.js → CI9sv_EP.js} +1 -1
  111. package/web/app/immutable/chunks/{Bwqr9iPo.js → CJ4Z96pe.js} +1 -1
  112. package/web/app/immutable/chunks/CJO6KBmw.js +1 -0
  113. package/web/app/immutable/chunks/{BROVaoRF.js → CJVoHxzN.js} +1 -1
  114. package/web/app/immutable/chunks/{Dk_2gwLu.js → CKXQrY3X.js} +1 -1
  115. package/web/app/immutable/chunks/{rdao0YQj.js → CL-lzPGU.js} +1 -1
  116. package/web/app/immutable/chunks/{B828qkf6.js → CMu-09q3.js} +1 -1
  117. package/web/app/immutable/chunks/{CYDXSK8a.js → CNAgTnv2.js} +1 -1
  118. package/web/app/immutable/chunks/{I_40sZHA.js → CO5zWp8I.js} +1 -1
  119. package/web/app/immutable/chunks/{BQzm8t-k.js → CRZZ_hOy.js} +1 -1
  120. package/web/app/immutable/chunks/{BFjAz9so.js → CSRYV6LQ.js} +1 -1
  121. package/web/app/immutable/chunks/{C7vw9rpc.js → CSVgdt55.js} +1 -1
  122. package/web/app/immutable/chunks/{F6tZeezN.js → CU5jKGma.js} +1 -1
  123. package/web/app/immutable/chunks/{BIGXb0qV.js → CUkDMZwP.js} +1 -1
  124. package/web/app/immutable/chunks/{wQP9H0b5.js → CY4fyoCV.js} +1 -1
  125. package/web/app/immutable/chunks/C_1hI7HP.js +1 -0
  126. package/web/app/immutable/chunks/{B2JbncL-.js → C_KuQ05a.js} +1 -1
  127. package/web/app/immutable/chunks/{CJotcdQg.js → CaNxJFJ1.js} +1 -1
  128. package/web/app/immutable/chunks/{B_L3BWUb.js → CbO3oDHw.js} +1 -1
  129. package/web/app/immutable/chunks/{C4Fxj3Dv.js → CbqxWBi7.js} +1 -1
  130. package/web/app/immutable/chunks/{CgbisBm3.js → CeHXXIxE.js} +1 -1
  131. package/web/app/immutable/chunks/{C9qmiGPA.js → Cf4fmkfL.js} +1 -1
  132. package/web/app/immutable/chunks/{P-6iyz0U.js → CiMmbOsB.js} +1 -1
  133. package/web/app/immutable/chunks/{B_9Y0vrL.js → CiSIqqOJ.js} +1 -1
  134. package/web/app/immutable/chunks/{CHDBPeiu.js → CjTo2K46.js} +1 -1
  135. package/web/app/immutable/chunks/{DVIpt_-b.js → CjpxPpfy.js} +1 -1
  136. package/web/app/immutable/chunks/{BORX4QsI.js → Ck2X3Rvg.js} +1 -1
  137. package/web/app/immutable/chunks/{76a0x163.js → CkA2ItLw.js} +1 -1
  138. package/web/app/immutable/chunks/{DYXQ0DvL.js → Ckb6le-m.js} +4 -4
  139. package/web/app/immutable/chunks/{CL_Wu5hL.js → CkmRZ_MC.js} +1 -1
  140. package/web/app/immutable/chunks/{hOsZO8to.js → CmrjfWYI.js} +1 -1
  141. package/web/app/immutable/chunks/{BgdV71H8.js → CnAbYuPp.js} +1 -1
  142. package/web/app/immutable/chunks/{BtCfKiJI.js → CnqJXAKo.js} +1 -1
  143. package/web/app/immutable/chunks/{CvmogvXF.js → Co4vj0dC.js} +1 -1
  144. package/web/app/immutable/chunks/{Cywj8P1v.js → Cofxvpdb.js} +1 -1
  145. package/web/app/immutable/chunks/{BzpQRjDP.js → Cqa6LF3b.js} +1 -1
  146. package/web/app/immutable/chunks/CqcqWJoa.js +1 -0
  147. package/web/app/immutable/chunks/CrD0jtXE.js +1 -0
  148. package/web/app/immutable/chunks/{D2ZHHwj-.js → CrFyLBfi.js} +2 -2
  149. package/web/app/immutable/chunks/{DLncssSx.js → Ctbo6mXV.js} +1 -1
  150. package/web/app/immutable/chunks/{dnTowHeA.js → CxFOqPFP.js} +3 -3
  151. package/web/app/immutable/chunks/{lEWu7gpF.js → Cxf6ur9F.js} +1 -1
  152. package/web/app/immutable/chunks/{BCl5zPXa.js → D-YGlaxj.js} +1 -1
  153. package/web/app/immutable/chunks/{CVQJ3G9r.js → D-dukRlA.js} +1 -1
  154. package/web/app/immutable/chunks/D-zjf2Af.js +1 -0
  155. package/web/app/immutable/chunks/{DhkuGmLb.js → D37getya.js} +1 -1
  156. package/web/app/immutable/chunks/{zdyRQTcF.js → D3C3nNLs.js} +1 -1
  157. package/web/app/immutable/chunks/{BgfkQ05m.js → D3p_bZm7.js} +1 -1
  158. package/web/app/immutable/chunks/{B6jOBMKj.js → D4FXvK9L.js} +3 -3
  159. package/web/app/immutable/chunks/{B6v6locT.js → D51XIZYq.js} +1 -1
  160. package/web/app/immutable/chunks/{BGr1zUsV.js → D5tDp1i8.js} +1 -1
  161. package/web/app/immutable/chunks/{DT_2ysGq.js → D6dlPeEM.js} +1 -1
  162. package/web/app/immutable/chunks/{CMzQ5CXp.js → D73nBZuu.js} +1 -1
  163. package/web/app/immutable/chunks/{Do7ouyXz.js → D8ohaX19.js} +1 -1
  164. package/web/app/immutable/chunks/{B4GJOofT.js → DA5opfEp.js} +1 -1
  165. package/web/app/immutable/chunks/{BOSZ-Hrc.js → DB7RVYiL.js} +1 -1
  166. package/web/app/immutable/chunks/{CfRm3l5p.js → DC8keNAk.js} +1 -1
  167. package/web/app/immutable/chunks/{C8SLclsn.js → DCK8dPAL.js} +1 -1
  168. package/web/app/immutable/chunks/{Bl3Cuor0.js → DCRuihKm.js} +2 -2
  169. package/web/app/immutable/chunks/{DsbDY3sD.js → DDJ_XVek.js} +2 -2
  170. package/web/app/immutable/chunks/{3BCA27_7.js → DEI5RmgA.js} +1 -1
  171. package/web/app/immutable/chunks/{mg5SY1J3.js → DIKTPgAK.js} +1 -1
  172. package/web/app/immutable/chunks/{BOzF_1jP.js → DJs4vEjF.js} +1 -1
  173. package/web/app/immutable/chunks/{CnT7X_Ka.js → DKHY8q_S.js} +1 -1
  174. package/web/app/immutable/chunks/{C4_TlGj0.js → DLwWVKiF.js} +1 -1
  175. package/web/app/immutable/chunks/{DkPs4gWX.js → DME_6OFx.js} +1 -1
  176. package/web/app/immutable/chunks/{SCoe-XeJ.js → DMlkDPxV.js} +1 -1
  177. package/web/app/immutable/chunks/{CmLRC7-r.js → DN6OUhsP.js} +1 -1
  178. package/web/app/immutable/chunks/{CPvBbiM1.js → DOUbieNj.js} +1 -1
  179. package/web/app/immutable/chunks/{CfHaUU8C.js → DOhJfAZG.js} +1 -1
  180. package/web/app/immutable/chunks/{tFT894m3.js → DPYlDye0.js} +1 -1
  181. package/web/app/immutable/chunks/{DRdEaij1.js → DPZcepbV.js} +1 -1
  182. package/web/app/immutable/chunks/{CE-ONoWm.js → DPyomP91.js} +1 -1
  183. package/web/app/immutable/chunks/{wJF9cAcZ.js → DPzOIlu9.js} +1 -1
  184. package/web/app/immutable/chunks/{BLCYnNxp.js → DQ_mNIfK.js} +1 -1
  185. package/web/app/immutable/chunks/{CZpxXUzD.js → DR4Kh2SL.js} +1 -1
  186. package/web/app/immutable/chunks/{DMhc83bo.js → DSAj_NCN.js} +1 -1
  187. package/web/app/immutable/chunks/{CrtOf2Rt.js → DTuql3Rj.js} +1 -1
  188. package/web/app/immutable/chunks/{BdSrsYxv.js → DUhA4bgN.js} +1 -1
  189. package/web/app/immutable/chunks/{CplGIhI5.js → DX-Wrapd.js} +1 -1
  190. package/web/app/immutable/chunks/{C1Zw9RUp.js → DXBEIeJu.js} +1 -1
  191. package/web/app/immutable/chunks/{CaBTNP9L.js → D_Xpj-6r.js} +1 -1
  192. package/web/app/immutable/chunks/{C-931TJ0.js → DaaqgDka.js} +1 -1
  193. package/web/app/immutable/chunks/{BnV5imkg.js → Ddq8SBEz.js} +1 -1
  194. package/web/app/immutable/chunks/{CHyLxrMv.js → DduCxuVq.js} +1 -1
  195. package/web/app/immutable/chunks/{aDC6CW-9.js → Dfg3lB2h.js} +1 -1
  196. package/web/app/immutable/chunks/{gWn9PDXZ.js → Dhzl8ugO.js} +1 -1
  197. package/web/app/immutable/chunks/{b16NDDfn.js → Di8eJPr0.js} +2 -2
  198. package/web/app/immutable/chunks/{3ozr1vad.js → Div5PXT-.js} +2 -2
  199. package/web/app/immutable/chunks/{CDGdQPZ3.js → DjHhZWUX.js} +1 -1
  200. package/web/app/immutable/chunks/{Cy1eIaf4.js → Djg1-55Y.js} +1 -1
  201. package/web/app/immutable/chunks/{DqfOHbUh.js → Djp7mdlG.js} +1 -1
  202. package/web/app/immutable/chunks/{oxrHj9WB.js → DlEmrQXN.js} +2 -2
  203. package/web/app/immutable/chunks/{BZRdDiLW.js → Dlk4BhFg.js} +1 -1
  204. package/web/app/immutable/chunks/{CngHTAnD.js → Dm7KqEFT.js} +13 -13
  205. package/web/app/immutable/chunks/{oLeo92vY.js → DmXAUF0G.js} +1 -1
  206. package/web/app/immutable/chunks/DmaEU7hb.js +2 -0
  207. package/web/app/immutable/chunks/{D6uQnPIb.js → DnJ4jlPB.js} +1 -1
  208. package/web/app/immutable/chunks/{Cg1tTx8i.js → DpMOdl0E.js} +1 -1
  209. package/web/app/immutable/chunks/{D2KaVfIR.js → DqMqjmmT.js} +2 -2
  210. package/web/app/immutable/chunks/{Bf8Z3F34.js → Dr0V5Z_Q.js} +1 -1
  211. package/web/app/immutable/chunks/{Ue-wYmxq.js → DrHfN5GT.js} +1 -1
  212. package/web/app/immutable/chunks/{CKt7lvPP.js → DrIA1Azf.js} +1 -1
  213. package/web/app/immutable/chunks/{BX43DT22.js → DrxfcnSy.js} +1 -1
  214. package/web/app/immutable/chunks/{CE095mBY.js → DsGUBv3k.js} +1 -1
  215. package/web/app/immutable/chunks/{DtV42LL1.js → DsT1iX_Q.js} +6 -6
  216. package/web/app/immutable/chunks/{BJGbabcl.js → Dsf8OM9-.js} +1 -1
  217. package/web/app/immutable/chunks/{DtqWU30y.js → Dsr4GELp.js} +1 -1
  218. package/web/app/immutable/chunks/DtF9DVpp.js +1 -0
  219. package/web/app/immutable/chunks/{vnEDE6VU.js → Du_rNq8q.js} +1 -1
  220. package/web/app/immutable/chunks/{Gi8kzv-V.js → DvUGkiYP.js} +1 -1
  221. package/web/app/immutable/chunks/{CLiKsUcS.js → DvYUfzNR.js} +1 -1
  222. package/web/app/immutable/chunks/{BIon5kwa.js → Dw8wIAFi.js} +1 -1
  223. package/web/app/immutable/chunks/{BiKalUOw.js → DwImHc9s.js} +1 -1
  224. package/web/app/immutable/chunks/{D4XZeMXl.js → DwL1A1su.js} +1 -1
  225. package/web/app/immutable/chunks/{B-4Cm2na.js → DzWZGIya.js} +1 -1
  226. package/web/app/immutable/chunks/{BkliVAqJ.js → Dzk9iuw9.js} +4 -4
  227. package/web/app/immutable/chunks/{D81Tox6K.js → EK6zOAHM.js} +1 -1
  228. package/web/app/immutable/chunks/{gtC5KXEz.js → Fdd73CJo.js} +1 -1
  229. package/web/app/immutable/chunks/{CESUeVmp.js → FzlZUztb.js} +1 -1
  230. package/web/app/immutable/chunks/{Bz8C2v0s.js → H9IjxeQk.js} +1 -1
  231. package/web/app/immutable/chunks/{DgW5R9bn.js → J8_M56d9.js} +1 -1
  232. package/web/app/immutable/chunks/{EW9Oxsda.js → KH7BHXXb.js} +1 -1
  233. package/web/app/immutable/chunks/{y7Ugu8WS.js → KHteWVFN.js} +1 -1
  234. package/web/app/immutable/chunks/{CfC-LCr9.js → KSLBBJRy.js} +1 -1
  235. package/web/app/immutable/chunks/{CxRJqvXa.js → KYuLFpkq.js} +1 -1
  236. package/web/app/immutable/chunks/{c5MBfH9F.js → L7j-Q29w.js} +1 -1
  237. package/web/app/immutable/chunks/{DvQWx7ZN.js → L_tYoUCb.js} +1 -1
  238. package/web/app/immutable/chunks/{Bt_5d6KS.js → M-TVgx-R.js} +1 -1
  239. package/web/app/immutable/chunks/{BQyGe_6f.js → MI7EtNv0.js} +1 -1
  240. package/web/app/immutable/chunks/{nMcdiCb6.js → MQBseMlG.js} +1 -1
  241. package/web/app/immutable/chunks/{BNrkXLIB.js → No1eCFy3.js} +1 -1
  242. package/web/app/immutable/chunks/{DEelt7b0.js → OFhgRaUm.js} +1 -1
  243. package/web/app/immutable/chunks/{Q7XiOE5T.js → OtomGvb3.js} +1 -1
  244. package/web/app/immutable/chunks/{3Tv2tBbo.js → P-T74LCo.js} +3 -3
  245. package/web/app/immutable/chunks/{DIQ23RZn.js → PIgqsYsQ.js} +1 -1
  246. package/web/app/immutable/chunks/{BCx2RJGr.js → QeBH-DWE.js} +1 -1
  247. package/web/app/immutable/chunks/{D7kKwL53.js → RFsxwSsB.js} +1 -1
  248. package/web/app/immutable/chunks/{BEGsYnq4.js → Rx5mQeGT.js} +4 -4
  249. package/web/app/immutable/chunks/{Be5foFms.js → S845NCb3.js} +1 -1
  250. package/web/app/immutable/chunks/{Dpd18D9E.js → Su2XS_Ru.js} +1 -1
  251. package/web/app/immutable/chunks/{H_09C3Qv.js → T8d_aLDP.js} +1 -1
  252. package/web/app/immutable/chunks/{DYltC5LY.js → TiuNiN7j.js} +1 -1
  253. package/web/app/immutable/chunks/{DQEQvBuM.js → U9jJmfYa.js} +1 -1
  254. package/web/app/immutable/chunks/{DgQzilAi.js → W7maz5hp.js} +1 -1
  255. package/web/app/immutable/chunks/{C__OzIly.js → WVvubfLN.js} +2 -2
  256. package/web/app/immutable/chunks/{DYTNWFlt.js → XCWZeNYo.js} +1 -1
  257. package/web/app/immutable/chunks/{CoHtEoLb.js → XHPDEELd.js} +1 -1
  258. package/web/app/immutable/chunks/{xAGiw113.js → Y5Ky10uA.js} +1 -1
  259. package/web/app/immutable/chunks/{DwlFFy2U.js → Zx9hB63s.js} +1 -1
  260. package/web/app/immutable/chunks/{Do1K3fjZ.js → _SYFiE9N.js} +1 -1
  261. package/web/app/immutable/chunks/{DdtN-mI9.js → a3TFelkn.js} +1 -1
  262. package/web/app/immutable/chunks/{CFhJzMqD.js → azpKokvz.js} +1 -1
  263. package/web/app/immutable/chunks/{CbUxbw3N.js → bF6PpsOD.js} +1 -1
  264. package/web/app/immutable/chunks/{Gpf-ce3t.js → bhKPSdq4.js} +1 -1
  265. package/web/app/immutable/chunks/{CcrFwPvM.js → c5QZsH9t.js} +1 -1
  266. package/web/app/immutable/chunks/{CYodIWBo.js → chjnSxvZ.js} +1 -1
  267. package/web/app/immutable/chunks/{Bfi3_8Hc.js → eElW3aeh.js} +1 -1
  268. package/web/app/immutable/chunks/{CNXu44c3.js → ebbVP0tp.js} +1 -1
  269. package/web/app/immutable/chunks/{0chz2rsS.js → f24VwgrA.js} +1 -1
  270. package/web/app/immutable/chunks/{BGozEqB2.js → fiz8N_zQ.js} +1 -1
  271. package/web/app/immutable/chunks/{D_2nAvGE.js → h06E2ICA.js} +1 -1
  272. package/web/app/immutable/chunks/{Cr4NRN2o.js → hHMYoFyG.js} +1 -1
  273. package/web/app/immutable/chunks/{Ba-gJiCF.js → haN7a3Sc.js} +1 -1
  274. package/web/app/immutable/chunks/{e9FnhdhA.js → i_QPvq4q.js} +1 -1
  275. package/web/app/immutable/chunks/{Cc08a9kX.js → kS6Z7jzP.js} +1 -1
  276. package/web/app/immutable/chunks/{D5CeMpEM.js → kjxbkPQZ.js} +1 -1
  277. package/web/app/immutable/chunks/{DwgOf6Jh.js → lJeex2Gh.js} +1 -1
  278. package/web/app/immutable/chunks/{DZTelE6-.js → nImP7yvb.js} +1 -1
  279. package/web/app/immutable/chunks/{De9e0mT0.js → nbomrtth.js} +1 -1
  280. package/web/app/immutable/chunks/{BFqSYY_K.js → oOhxfFIU.js} +1 -1
  281. package/web/app/immutable/chunks/{C5BT0KwE.js → ozVAo4aX.js} +1 -1
  282. package/web/app/immutable/chunks/{DlZ4XLhX.js → q6F-1__g.js} +1 -1
  283. package/web/app/immutable/chunks/{VtSYBFwm.js → tZyAiGvb.js} +1 -1
  284. package/web/app/immutable/chunks/{9xo585Vy.js → tr-2J8Mf.js} +1 -1
  285. package/web/app/immutable/chunks/{DhKLQ_6L.js → ujhgjK1k.js} +1 -1
  286. package/web/app/immutable/chunks/{CCHulQ4M.js → v0ybYtGc.js} +1 -1
  287. package/web/app/immutable/chunks/{Cf9FKQ2t.js → viB2mzAd.js} +1 -1
  288. package/web/app/immutable/chunks/{DQGxxGZP.js → wl2qP2wF.js} +1 -1
  289. package/web/app/immutable/chunks/{E-ElQTlm.js → x63yRqVE.js} +1 -1
  290. package/web/app/immutable/chunks/{DZldOwzL.js → yFcbscNn.js} +1 -1
  291. package/web/app/immutable/chunks/{CpCzAUi8.js → yaHL2zPw.js} +1 -1
  292. package/web/app/immutable/chunks/{DQzjOLwV.js → zHu1d_6X.js} +2 -2
  293. package/web/app/immutable/entry/app.CgYQGiwi.js +4 -0
  294. package/web/app/immutable/entry/start.C_kFKw1E.js +1 -0
  295. package/web/app/immutable/nodes/{0.XjTeJo8S.js → 0.DOOOI3Bo.js} +1 -1
  296. package/web/app/immutable/nodes/{1.WAn52SGO.js → 1.DCbWOuyY.js} +1 -1
  297. package/web/app/immutable/nodes/{10.BCt95gGF.js → 10.DkhUAhty.js} +5 -5
  298. package/web/app/immutable/nodes/{11.D9nZjMrf.js → 11.DDwWhO0Z.js} +1 -1
  299. package/web/app/immutable/nodes/{12.J0j9wF8Z.js → 12.BpXDHhXi.js} +1 -1
  300. package/web/app/immutable/nodes/{13.BGHXM182.js → 13.CCKyw-_o.js} +1 -1
  301. package/web/app/immutable/nodes/{14.BpDGhzOE.js → 14.BD92xFv4.js} +3 -3
  302. package/web/app/immutable/nodes/{15.DTHSLR65.js → 15.Dw1bH9Zl.js} +1 -1
  303. package/web/app/immutable/nodes/{16.WKc2P4l3.js → 16.CVCm-nfj.js} +1 -1
  304. package/web/app/immutable/nodes/{17.f0RTyi1E.js → 17.CjKvJw8X.js} +1 -1
  305. package/web/app/immutable/nodes/{18.BCr1DqlF.js → 18.DDY8Eqsn.js} +1 -1
  306. package/web/app/immutable/nodes/{19.kyknfcua.js → 19.BDZr-fpl.js} +2 -2
  307. package/web/app/immutable/nodes/{2.BhjQOmpc.js → 2.BXcXLNQd.js} +4 -4
  308. package/web/app/immutable/nodes/{20.DJSk2vW3.js → 20.CLsq1QLL.js} +1 -1
  309. package/web/app/immutable/nodes/{3.B5ONUR90.js → 3.DSd1hRZn.js} +1 -1
  310. package/web/app/immutable/nodes/{4.9E3WAn5x.js → 4.BkWwx_VF.js} +1 -1
  311. package/web/app/immutable/nodes/5.y9tMc2yb.js +1 -0
  312. package/web/app/immutable/nodes/{6.DC2CoHu2.js → 6.BosoYTZK.js} +1 -1
  313. package/web/app/immutable/nodes/{7.ipL23qll.js → 7.BX-dUHAQ.js} +1 -1
  314. package/web/app/immutable/nodes/{8.H6jtZ1r2.js → 8.DUR07SoM.js} +1 -1
  315. package/web/app/immutable/nodes/9.Cw56XQ1G.js +14 -0
  316. package/web/app/immutable/workers/html-file-preview.worker-BfFljPK-.js +1 -0
  317. package/web/app/version.json +1 -1
  318. package/web/generated/paraglide.js +46 -46
  319. package/web/index.html +19 -19
  320. package/web/app/immutable/assets/0.MRSSdFvi.css +0 -1
  321. package/web/app/immutable/chunks/B8JLAqaa.js +0 -1
  322. package/web/app/immutable/chunks/BEwMx-58.js +0 -1
  323. package/web/app/immutable/chunks/ChxY4HYP.js +0 -1
  324. package/web/app/immutable/chunks/DRhX_2TI.js +0 -1
  325. package/web/app/immutable/chunks/DWOJ689M.js +0 -1
  326. package/web/app/immutable/chunks/LCTocMEs.js +0 -1
  327. package/web/app/immutable/chunks/LNBns0B-.js +0 -1
  328. package/web/app/immutable/chunks/RXLk0Kpm.js +0 -1
  329. package/web/app/immutable/chunks/_FHZ2hc1.js +0 -2
  330. package/web/app/immutable/chunks/lZXQR9AV.js +0 -1
  331. package/web/app/immutable/entry/app.C9XhrjLK.js +0 -4
  332. package/web/app/immutable/entry/start.CkQDADa5.js +0 -1
  333. package/web/app/immutable/nodes/5.51b5Mc5a.js +0 -1
  334. package/web/app/immutable/nodes/9.qiIDO-mm.js +0 -12
@@ -1 +1 @@
1
- var ft=Object.defineProperty;var Ze=s=>{throw TypeError(s)};var gt=(s,e,t)=>e in s?ft(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var R=(s,e,t)=>gt(s,typeof e!="symbol"?e+"":e,t),We=(s,e,t)=>e.has(s)||Ze("Cannot "+t);var u=(s,e,t)=>(We(s,e,"read from private field"),t?t.call(s):e.get(s)),F=(s,e,t)=>e.has(s)?Ze("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),X=(s,e,t,i)=>(We(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),K=(s,e,t)=>(We(s,e,"access private method"),t);import{t as xe,bo as r,bw as Ee,b as He,br as Z,bp as Ve}from"./BEwMx-58.js";import{c9 as x,aD as c,bH as Q,bV as oe,bo as nt,bs as Te,a7 as P,ay as y,W as d,bn as De,aA as n,a5 as he,bf as $,bA as de,aB as st,ca as vt}from"./3SdAC2_C.js";import{s as G}from"./LNBns0B-.js";import{c as Ce}from"./BIGXb0qV.js";import{s as mt,i as Ct,h as Pt}from"./BX63FB9x.js";import{p as yt,u as Ot}from"./BmQQcH5z.js";import{h as _t,an as it,a8 as wt,aK as Be,aO as At,aP as Ke,aG as Ft,aF as at,a2 as $e,av as V,a$ as lt,D as bt,l as St,a6 as It,ar as xt,ay as Et,az as ke,aS as b,a0 as ut,$ as ct,aQ as ge,aH as Me,H as Ht,a1 as Tt}from"./CESUeVmp.js";import{i as ue}from"./Gpf-ce3t.js";import{b as fe,e as Dt}from"./CyczJyMt.js";import{b as Nt}from"./BCx2RJGr.js";import{c as Kt,u as kt,s as Mt}from"./D9tVylVS.js";import{O as et}from"./CXCeVP0_.js";const Ge=Et({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ye=new _t("Popover.Root");var Pe,ye,Oe,_e,we,Ae,Fe,ne,se,J,re;const je=class je{constructor(e){F(this,J);R(this,"opts");F(this,Pe,oe(null));R(this,"contentPresence");F(this,ye,oe(null));F(this,Oe,oe(null));R(this,"overlayPresence");F(this,_e,oe(!1));F(this,we,oe(!1));F(this,Ae,oe(!1));F(this,Fe,oe(0));F(this,ne,null);F(this,se,null);this.opts=e,this.contentPresence=new $e({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $e({ref:V(()=>this.overlayNode),open:this.opts.open}),lt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,K(this,J,re).call(this))})}static create(e){return Ye.set(new je(e))}get contentNode(){return c(u(this,Pe))}set contentNode(e){Q(u(this,Pe),e,!0)}get triggerNode(){return c(u(this,ye))}set triggerNode(e){Q(u(this,ye),e,!0)}get overlayNode(){return c(u(this,Oe))}set overlayNode(e){Q(u(this,Oe),e,!0)}get openedViaHover(){return c(u(this,_e))}set openedViaHover(e){Q(u(this,_e),e,!0)}get hasInteractedWithContent(){return c(u(this,we))}set hasInteractedWithContent(e){Q(u(this,we),e,!0)}get hoverCooldown(){return c(u(this,Ae))}set hoverCooldown(e){Q(u(this,Ae),e,!0)}get closeDelay(){return c(u(this,Fe))}set closeDelay(e){Q(u(this,Fe),e,!0)}setDomContext(e){X(this,se,e)}toggleOpen(){K(this,J,re).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){K(this,J,re).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){K(this,J,re).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(K(this,J,re).call(this),this.closeDelay<=0?this.opts.open.current=!1:u(this,se)&&X(this,ne,u(this,se).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),X(this,ne,null)},this.closeDelay))))}cancelDelayedClose(){K(this,J,re).call(this)}markInteraction(){this.hasInteractedWithContent=!0,K(this,J,re).call(this)}};Pe=new WeakMap,ye=new WeakMap,Oe=new WeakMap,_e=new WeakMap,we=new WeakMap,Ae=new WeakMap,Fe=new WeakMap,ne=new WeakMap,se=new WeakMap,J=new WeakSet,re=function(){u(this,ne)!==null&&u(this,se)&&(u(this,se).clearTimeout(u(this,ne)),X(this,ne,null))};let qe=je;var ie,ve,le,q,ze,Le,Qe,pt,be;const Je=class Je{constructor(e,t){F(this,q);R(this,"opts");R(this,"root");R(this,"attachment");R(this,"domContext");F(this,ie,null);F(this,ve,null);F(this,le,oe(!1));F(this,be,x(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":xt(this.root.opts.open.current),"data-state":at(this.root.opts.open.current),"aria-controls":K(this,q,pt).call(this),[Ge.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.triggerNode=i),this.domContext=new bt(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),lt(()=>this.opts.closeDelay.current,i=>{this.root.closeDelay=i})}static create(e){return new Je(e,Ye.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ke(e)||(Q(u(this,le),!0),K(this,q,Le).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():X(this,ie,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),X(this,ie,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ke(e)||(Q(u(this,le),!1),K(this,q,ze).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(K(this,q,Qe).call(this),c(u(this,le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}c(u(this,le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===St||e.key===It)&&(e.preventDefault(),K(this,q,Qe).call(this),this.root.toggleOpen())}get props(){return c(u(this,be))}set props(e){Q(u(this,be),e)}};ie=new WeakMap,ve=new WeakMap,le=new WeakMap,q=new WeakSet,ze=function(){u(this,ie)!==null&&(this.domContext.clearTimeout(u(this,ie)),X(this,ie,null))},Le=function(){u(this,ve)!==null&&(this.domContext.clearTimeout(u(this,ve)),X(this,ve,null))},Qe=function(){K(this,q,ze).call(this),K(this,q,Le).call(this)},pt=function(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id},be=new WeakMap;let tt=Je;var Se,Ie;const Xe=class Xe{constructor(e,t){R(this,"opts");R(this,"root");R(this,"attachment");R(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Be(e.target))return;const t=e.target.closest(Ge.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Be(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const i=document.querySelector(this.opts.customAnchor.current);if(i&&i.contains(e.target))return}}this.root.handleClose()}});R(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});F(this,Se,x(()=>({open:this.root.opts.open.current})));F(this,Ie,x(()=>({id:this.opts.id.current,tabindex:-1,"data-state":at(this.root.opts.open.current),...Ft(this.root.contentPresence.transitionStatus),[Ge.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));R(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.contentNode=i),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Xe(e,Ye.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;Be(t)&&At(t)&&this.root.markInteraction()}onpointerenter(e){Ke(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ke(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return c(u(this,Se))}set snippetProps(e){Q(u(this,Se),e)}get props(){return c(u(this,Ie))}set props(e){Q(u(this,Ie),e)}};Se=new WeakMap,Ie=new WeakMap;let Re=Xe;var Rt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),ot=st("<div><div><!></div></div>");function Ue(s,e){const t=nt();if(new.target)return xe({component:Ue,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onOpenAutoFocus",7,b),w=r(e,"onCloseAutoFocus",7,b),h=r(e,"onEscapeKeydown",7,b),E=r(e,"onInteractOutside",7,b),k=r(e,"trapFocus",7,!0),z=r(e,"preventScroll",7,!1),L=r(e,"customAnchor",7,null),g=r(e,"style",7),ee=Ve(e,Rt);const S=Re.create({id:V(()=>O()),ref:V(()=>f(),o=>f(o)),onInteractOutside:V(()=>E()),onEscapeKeydown:V(()=>h()),customAnchor:V(()=>L())}),te=x(()=>ge(ee,S.props)),ce=x(()=>k()&&S.shouldTrapFocus);function pe(o){S.shouldTrapFocus||o.preventDefault(),_()(o)}var me={get child(){return i()},set child(o){i(o),n()},get children(){return m()},set children(o){m(o),n()},get ref(){return f()},set ref(o=null){f(o),n()},get id(){return O()},set id(o=ke(t)){O(o),n()},get forceMount(){return p()},set forceMount(o=!1){p(o),n()},get onOpenAutoFocus(){return _()},set onOpenAutoFocus(o=b){_(o),n()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(o=b){w(o),n()},get onEscapeKeydown(){return h()},set onEscapeKeydown(o=b){h(o),n()},get onInteractOutside(){return E()},set onInteractOutside(o=b){E(o),n()},get trapFocus(){return k()},set trapFocus(o=!0){k(o),n()},get preventScroll(){return z()},set preventScroll(o=!1){z(o),n()},get customAnchor(){return L()},set customAnchor(o=null){L(o),n()},get style(){return g()},set style(o){g(o),n()},$set:Ee,$on:(o,N)=>He(e,o,N)},a=P(),l=y(a);{var H=o=>{ut(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!0,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))},U=o=>{ct(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get open(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!1,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))};ue(l,o=>{p()?o(H):p()||o(U,1)})}return d(s,a),De(me)}var Vt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","style"]),rt=st("<div><!></div>");function ht(s,e){const t=nt();if(new.target)return xe({component:ht,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onCloseAutoFocus",7,b),w=r(e,"onEscapeKeydown",7,b),h=r(e,"onInteractOutside",7,b),E=r(e,"trapFocus",7,!0),k=r(e,"preventScroll",7,!1),z=r(e,"style",7),L=Ve(e,Vt);const g=Re.create({id:V(()=>O()),ref:V(()=>f(),a=>f(a)),onInteractOutside:V(()=>h()),onEscapeKeydown:V(()=>w()),customAnchor:V(()=>null)}),ee=x(()=>ge(L,g.props));var S={get child(){return i()},set child(a){i(a),n()},get children(){return m()},set children(a){m(a),n()},get ref(){return f()},set ref(a=null){f(a),n()},get id(){return O()},set id(a=ke(t)){O(a),n()},get forceMount(){return p()},set forceMount(a=!1){p(a),n()},get onCloseAutoFocus(){return _()},set onCloseAutoFocus(a=b){_(a),n()},get onEscapeKeydown(){return w()},set onEscapeKeydown(a=b){w(a),n()},get onInteractOutside(){return h()},set onInteractOutside(a=b){h(a),n()},get trapFocus(){return E()},set trapFocus(a=!0){E(a),n()},get preventScroll(){return k()},set preventScroll(a=!1){k(a),n()},get style(){return z()},set style(a){z(a),n()},$set:Ee,$on:(a,l)=>He(e,a,l)},te=P(),ce=y(te);{var pe=a=>{ut(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get enabled(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!0,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))},me=a=>{ct(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get open(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!1,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))};ue(ce,a=>{p()?a(pe):p()||a(me,1)})}return d(s,te),De(S)}function dt(s,e){if(new.target)return xe({component:dt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"onOpenChange",7,b),m=r(e,"onOpenChangeComplete",7,b),f=r(e,"children",7);qe.create({open:V(()=>t(),p=>{t(p),i()(p)}),onOpenChangeComplete:V(()=>m())});var O={get open(){return t()},set open(p=!1){t(p),n()},get onOpenChange(){return i()},set onOpenChange(p=b){i(p),n()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(p=b){m(p),n()},get children(){return f()},set children(p){f(p),n()},$set:Ee,$on:(p,_)=>He(e,p,_)};return Ht(s,{children:(p,_)=>{var w=P(),h=y(w);G(h,()=>f()??$),d(p,w)},$$slots:{default:!0}}),De(O)}var Wt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Bt(s,e){if(new.target)return xe({component:Bt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"staticPosition",7,!1),m=r(e,"children",7),f=r(e,"onOpenChange",7),O=Ve(e,Wt);yt(()=>i()),mt(()=>{t(!1),f()?.(!1)});var p={get open(){return t()},set open(h=!1){t(h),n()},get staticPosition(){return i()},set staticPosition(h=!1){i(h),n()},get children(){return m()},set children(h){m(h),n()},get onOpenChange(){return f()},set onOpenChange(h){f(h),n()},$set:Ee,$on:(h,E)=>He(e,h,E)},_=P(),w=y(_);return Ce(w,()=>dt,(h,E)=>{E(h,Z({get onOpenChange(){return f()}},()=>O,{get open(){return t()},set open(k){t(k)},children:(k,z)=>{var L=P(),g=y(L);G(g,()=>m()??$),d(k,L)},$$slots:{default:!0}}))}),d(s,_),De(p)}var Gt=new Set(["$$slots","$$events","$$legacy","ref","class","portal","portalProps","staticPosition","sideOffset","collisionPadding","children"]);function qt(s,e){if(new.target)return xe({component:qt,...s});Te(e,!0);let t=r(e,"ref",15,null),i=r(e,"class",7),m=r(e,"portal",7,!0),f=r(e,"portalProps",7),O=r(e,"staticPosition",7),p=r(e,"sideOffset",7,4),_=r(e,"collisionPadding",7,et),w=r(e,"children",7),h=Ve(e,Gt);const E=Ct(),k=Pt();vt(()=>{const l=t();if(!(!l||!E))return E.register(l,k)});const z=Ot(),L=x(()=>O()??z()),g=Kt(kt()+2);Mt(g);const ee=x(()=>Dt(Nt(),i()));var S={get ref(){return t()},set ref(l=null){t(l),n()},get class(){return i()},set class(l){i(l),n()},get portal(){return m()},set portal(l=!0){m(l),n()},get portalProps(){return f()},set portalProps(l){f(l),n()},get staticPosition(){return O()},set staticPosition(l){O(l),n()},get sideOffset(){return p()},set sideOffset(l=4){p(l),n()},get collisionPadding(){return _()},set collisionPadding(l=et){_(l),n()},get children(){return w()},set children(l){w(l),n()},$set:Ee,$on:(l,H)=>He(e,l,H)},te=P(),ce=y(te);{var pe=l=>{var H=P(),U=y(H);Ce(U,()=>ht,(o,N)=>{N(o,Z({preventScroll:!1,trapFocus:!1,"data-slot":"popover-content","data-static-position":!0,get"data-surface-level"(){return g},get class(){return c(ee)}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)},me=l=>{var H=P(),U=y(H);{let o=x(()=>f()?.to??E?.target());Ce(U,()=>Tt,(N,A)=>{A(N,Z(f,{get to(){return c(o)},children:(W,M)=>{var T=P(),C=y(T);Ce(C,()=>Ue,(v,B)=>{B(v,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(Y){t(Y)},children:(Y,Ne)=>{var D=P(),I=y(D);G(I,()=>w()??$),d(Y,D)},$$slots:{default:!0}}))}),d(W,T)},$$slots:{default:!0}}))})}d(l,H)},a=l=>{var H=P(),U=y(H);Ce(U,()=>Ue,(o,N)=>{N(o,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)};ue(ce,l=>{c(L)?l(pe):m()?l(me,1):l(a,-1)})}return d(s,te),De(S)}export{dt as P,tt as a,Ue as b,qt as c,Bt as d};
1
+ var ft=Object.defineProperty;var Ze=s=>{throw TypeError(s)};var gt=(s,e,t)=>e in s?ft(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var R=(s,e,t)=>gt(s,typeof e!="symbol"?e+"":e,t),We=(s,e,t)=>e.has(s)||Ze("Cannot "+t);var u=(s,e,t)=>(We(s,e,"read from private field"),t?t.call(s):e.get(s)),F=(s,e,t)=>e.has(s)?Ze("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),X=(s,e,t,i)=>(We(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),K=(s,e,t)=>(We(s,e,"access private method"),t);import{t as xe,bo as r,bw as Ee,b as He,br as Z,bp as Ve}from"./C0QTy0Sy.js";import{c9 as x,aD as c,bH as Q,bV as oe,bo as nt,bs as Te,a7 as P,ay as y,W as d,bn as De,aA as n,a5 as he,bf as $,bA as de,aB as st,ca as vt}from"./3SdAC2_C.js";import{t as G}from"./CrD0jtXE.js";import{c as Ce}from"./CUkDMZwP.js";import{s as mt,i as Ct,h as Pt}from"./BAKPnd3w.js";import{p as yt,u as Ot}from"./B4SiDSWP.js";import{h as _t,an as it,a8 as wt,aK as Be,aO as At,aP as Ke,aG as Ft,aF as at,a2 as $e,av as V,a$ as lt,D as bt,l as St,a6 as It,ar as xt,ay as Et,az as ke,aS as b,a0 as ut,$ as ct,aQ as ge,aH as Me,H as Ht,a1 as Tt}from"./FzlZUztb.js";import{i as ue}from"./bhKPSdq4.js";import{b as fe,e as Dt}from"./7UPrdiE9.js";import{b as Nt}from"./QeBH-DWE.js";import{c as Kt,u as kt,s as Mt}from"./D9tVylVS.js";import{O as et}from"./CDjpuJh0.js";const Ge=Et({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ye=new _t("Popover.Root");var Pe,ye,Oe,_e,we,Ae,Fe,ne,se,J,re;const je=class je{constructor(e){F(this,J);R(this,"opts");F(this,Pe,oe(null));R(this,"contentPresence");F(this,ye,oe(null));F(this,Oe,oe(null));R(this,"overlayPresence");F(this,_e,oe(!1));F(this,we,oe(!1));F(this,Ae,oe(!1));F(this,Fe,oe(0));F(this,ne,null);F(this,se,null);this.opts=e,this.contentPresence=new $e({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $e({ref:V(()=>this.overlayNode),open:this.opts.open}),lt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,K(this,J,re).call(this))})}static create(e){return Ye.set(new je(e))}get contentNode(){return c(u(this,Pe))}set contentNode(e){Q(u(this,Pe),e,!0)}get triggerNode(){return c(u(this,ye))}set triggerNode(e){Q(u(this,ye),e,!0)}get overlayNode(){return c(u(this,Oe))}set overlayNode(e){Q(u(this,Oe),e,!0)}get openedViaHover(){return c(u(this,_e))}set openedViaHover(e){Q(u(this,_e),e,!0)}get hasInteractedWithContent(){return c(u(this,we))}set hasInteractedWithContent(e){Q(u(this,we),e,!0)}get hoverCooldown(){return c(u(this,Ae))}set hoverCooldown(e){Q(u(this,Ae),e,!0)}get closeDelay(){return c(u(this,Fe))}set closeDelay(e){Q(u(this,Fe),e,!0)}setDomContext(e){X(this,se,e)}toggleOpen(){K(this,J,re).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){K(this,J,re).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){K(this,J,re).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(K(this,J,re).call(this),this.closeDelay<=0?this.opts.open.current=!1:u(this,se)&&X(this,ne,u(this,se).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),X(this,ne,null)},this.closeDelay))))}cancelDelayedClose(){K(this,J,re).call(this)}markInteraction(){this.hasInteractedWithContent=!0,K(this,J,re).call(this)}};Pe=new WeakMap,ye=new WeakMap,Oe=new WeakMap,_e=new WeakMap,we=new WeakMap,Ae=new WeakMap,Fe=new WeakMap,ne=new WeakMap,se=new WeakMap,J=new WeakSet,re=function(){u(this,ne)!==null&&u(this,se)&&(u(this,se).clearTimeout(u(this,ne)),X(this,ne,null))};let qe=je;var ie,ve,le,q,ze,Le,Qe,pt,be;const Je=class Je{constructor(e,t){F(this,q);R(this,"opts");R(this,"root");R(this,"attachment");R(this,"domContext");F(this,ie,null);F(this,ve,null);F(this,le,oe(!1));F(this,be,x(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":xt(this.root.opts.open.current),"data-state":at(this.root.opts.open.current),"aria-controls":K(this,q,pt).call(this),[Ge.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.triggerNode=i),this.domContext=new bt(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),lt(()=>this.opts.closeDelay.current,i=>{this.root.closeDelay=i})}static create(e){return new Je(e,Ye.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ke(e)||(Q(u(this,le),!0),K(this,q,Le).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():X(this,ie,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),X(this,ie,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ke(e)||(Q(u(this,le),!1),K(this,q,ze).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(K(this,q,Qe).call(this),c(u(this,le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}c(u(this,le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===St||e.key===It)&&(e.preventDefault(),K(this,q,Qe).call(this),this.root.toggleOpen())}get props(){return c(u(this,be))}set props(e){Q(u(this,be),e)}};ie=new WeakMap,ve=new WeakMap,le=new WeakMap,q=new WeakSet,ze=function(){u(this,ie)!==null&&(this.domContext.clearTimeout(u(this,ie)),X(this,ie,null))},Le=function(){u(this,ve)!==null&&(this.domContext.clearTimeout(u(this,ve)),X(this,ve,null))},Qe=function(){K(this,q,ze).call(this),K(this,q,Le).call(this)},pt=function(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id},be=new WeakMap;let tt=Je;var Se,Ie;const Xe=class Xe{constructor(e,t){R(this,"opts");R(this,"root");R(this,"attachment");R(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Be(e.target))return;const t=e.target.closest(Ge.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Be(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const i=document.querySelector(this.opts.customAnchor.current);if(i&&i.contains(e.target))return}}this.root.handleClose()}});R(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});F(this,Se,x(()=>({open:this.root.opts.open.current})));F(this,Ie,x(()=>({id:this.opts.id.current,tabindex:-1,"data-state":at(this.root.opts.open.current),...Ft(this.root.contentPresence.transitionStatus),[Ge.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));R(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.contentNode=i),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Xe(e,Ye.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;Be(t)&&At(t)&&this.root.markInteraction()}onpointerenter(e){Ke(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ke(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return c(u(this,Se))}set snippetProps(e){Q(u(this,Se),e)}get props(){return c(u(this,Ie))}set props(e){Q(u(this,Ie),e)}};Se=new WeakMap,Ie=new WeakMap;let Re=Xe;var Rt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),ot=st("<div><div><!></div></div>");function Ue(s,e){const t=nt();if(new.target)return xe({component:Ue,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onOpenAutoFocus",7,b),w=r(e,"onCloseAutoFocus",7,b),h=r(e,"onEscapeKeydown",7,b),E=r(e,"onInteractOutside",7,b),k=r(e,"trapFocus",7,!0),z=r(e,"preventScroll",7,!1),L=r(e,"customAnchor",7,null),g=r(e,"style",7),ee=Ve(e,Rt);const S=Re.create({id:V(()=>O()),ref:V(()=>f(),o=>f(o)),onInteractOutside:V(()=>E()),onEscapeKeydown:V(()=>h()),customAnchor:V(()=>L())}),te=x(()=>ge(ee,S.props)),ce=x(()=>k()&&S.shouldTrapFocus);function pe(o){S.shouldTrapFocus||o.preventDefault(),_()(o)}var me={get child(){return i()},set child(o){i(o),n()},get children(){return m()},set children(o){m(o),n()},get ref(){return f()},set ref(o=null){f(o),n()},get id(){return O()},set id(o=ke(t)){O(o),n()},get forceMount(){return p()},set forceMount(o=!1){p(o),n()},get onOpenAutoFocus(){return _()},set onOpenAutoFocus(o=b){_(o),n()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(o=b){w(o),n()},get onEscapeKeydown(){return h()},set onEscapeKeydown(o=b){h(o),n()},get onInteractOutside(){return E()},set onInteractOutside(o=b){E(o),n()},get trapFocus(){return k()},set trapFocus(o=!0){k(o),n()},get preventScroll(){return z()},set preventScroll(o=!1){z(o),n()},get customAnchor(){return L()},set customAnchor(o=null){L(o),n()},get style(){return g()},set style(o){g(o),n()},$set:Ee,$on:(o,N)=>He(e,o,N)},a=P(),l=y(a);{var H=o=>{ut(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!0,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))},U=o=>{ct(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get open(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!1,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))};ue(l,o=>{p()?o(H):p()||o(U,1)})}return d(s,a),De(me)}var Vt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","style"]),rt=st("<div><!></div>");function ht(s,e){const t=nt();if(new.target)return xe({component:ht,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onCloseAutoFocus",7,b),w=r(e,"onEscapeKeydown",7,b),h=r(e,"onInteractOutside",7,b),E=r(e,"trapFocus",7,!0),k=r(e,"preventScroll",7,!1),z=r(e,"style",7),L=Ve(e,Vt);const g=Re.create({id:V(()=>O()),ref:V(()=>f(),a=>f(a)),onInteractOutside:V(()=>h()),onEscapeKeydown:V(()=>w()),customAnchor:V(()=>null)}),ee=x(()=>ge(L,g.props));var S={get child(){return i()},set child(a){i(a),n()},get children(){return m()},set children(a){m(a),n()},get ref(){return f()},set ref(a=null){f(a),n()},get id(){return O()},set id(a=ke(t)){O(a),n()},get forceMount(){return p()},set forceMount(a=!1){p(a),n()},get onCloseAutoFocus(){return _()},set onCloseAutoFocus(a=b){_(a),n()},get onEscapeKeydown(){return w()},set onEscapeKeydown(a=b){w(a),n()},get onInteractOutside(){return h()},set onInteractOutside(a=b){h(a),n()},get trapFocus(){return E()},set trapFocus(a=!0){E(a),n()},get preventScroll(){return k()},set preventScroll(a=!1){k(a),n()},get style(){return z()},set style(a){z(a),n()},$set:Ee,$on:(a,l)=>He(e,a,l)},te=P(),ce=y(te);{var pe=a=>{ut(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get enabled(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!0,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))},me=a=>{ct(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get open(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!1,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))};ue(ce,a=>{p()?a(pe):p()||a(me,1)})}return d(s,te),De(S)}function dt(s,e){if(new.target)return xe({component:dt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"onOpenChange",7,b),m=r(e,"onOpenChangeComplete",7,b),f=r(e,"children",7);qe.create({open:V(()=>t(),p=>{t(p),i()(p)}),onOpenChangeComplete:V(()=>m())});var O={get open(){return t()},set open(p=!1){t(p),n()},get onOpenChange(){return i()},set onOpenChange(p=b){i(p),n()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(p=b){m(p),n()},get children(){return f()},set children(p){f(p),n()},$set:Ee,$on:(p,_)=>He(e,p,_)};return Ht(s,{children:(p,_)=>{var w=P(),h=y(w);G(h,()=>f()??$),d(p,w)},$$slots:{default:!0}}),De(O)}var Wt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Bt(s,e){if(new.target)return xe({component:Bt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"staticPosition",7,!1),m=r(e,"children",7),f=r(e,"onOpenChange",7),O=Ve(e,Wt);yt(()=>i()),mt(()=>{t(!1),f()?.(!1)});var p={get open(){return t()},set open(h=!1){t(h),n()},get staticPosition(){return i()},set staticPosition(h=!1){i(h),n()},get children(){return m()},set children(h){m(h),n()},get onOpenChange(){return f()},set onOpenChange(h){f(h),n()},$set:Ee,$on:(h,E)=>He(e,h,E)},_=P(),w=y(_);return Ce(w,()=>dt,(h,E)=>{E(h,Z({get onOpenChange(){return f()}},()=>O,{get open(){return t()},set open(k){t(k)},children:(k,z)=>{var L=P(),g=y(L);G(g,()=>m()??$),d(k,L)},$$slots:{default:!0}}))}),d(s,_),De(p)}var Gt=new Set(["$$slots","$$events","$$legacy","ref","class","portal","portalProps","staticPosition","sideOffset","collisionPadding","children"]);function qt(s,e){if(new.target)return xe({component:qt,...s});Te(e,!0);let t=r(e,"ref",15,null),i=r(e,"class",7),m=r(e,"portal",7,!0),f=r(e,"portalProps",7),O=r(e,"staticPosition",7),p=r(e,"sideOffset",7,4),_=r(e,"collisionPadding",7,et),w=r(e,"children",7),h=Ve(e,Gt);const E=Ct(),k=Pt();vt(()=>{const l=t();if(!(!l||!E))return E.register(l,k)});const z=Ot(),L=x(()=>O()??z()),g=Kt(kt()+2);Mt(g);const ee=x(()=>Dt(Nt(),i()));var S={get ref(){return t()},set ref(l=null){t(l),n()},get class(){return i()},set class(l){i(l),n()},get portal(){return m()},set portal(l=!0){m(l),n()},get portalProps(){return f()},set portalProps(l){f(l),n()},get staticPosition(){return O()},set staticPosition(l){O(l),n()},get sideOffset(){return p()},set sideOffset(l=4){p(l),n()},get collisionPadding(){return _()},set collisionPadding(l=et){_(l),n()},get children(){return w()},set children(l){w(l),n()},$set:Ee,$on:(l,H)=>He(e,l,H)},te=P(),ce=y(te);{var pe=l=>{var H=P(),U=y(H);Ce(U,()=>ht,(o,N)=>{N(o,Z({preventScroll:!1,trapFocus:!1,"data-slot":"popover-content","data-static-position":!0,get"data-surface-level"(){return g},get class(){return c(ee)}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)},me=l=>{var H=P(),U=y(H);{let o=x(()=>f()?.to??E?.target());Ce(U,()=>Tt,(N,A)=>{A(N,Z(f,{get to(){return c(o)},children:(W,M)=>{var T=P(),C=y(T);Ce(C,()=>Ue,(v,B)=>{B(v,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(Y){t(Y)},children:(Y,Ne)=>{var D=P(),I=y(D);G(I,()=>w()??$),d(Y,D)},$$slots:{default:!0}}))}),d(W,T)},$$slots:{default:!0}}))})}d(l,H)},a=l=>{var H=P(),U=y(H);Ce(U,()=>Ue,(o,N)=>{N(o,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)};ue(ce,l=>{c(L)?l(pe):m()?l(me,1):l(a,-1)})}return d(s,te),De(S)}export{dt as P,tt as a,Ue as b,qt as c,Bt as d};
@@ -1 +1 @@
1
- import{aR as Q,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./BEwMx-58.js";import{i as re}from"./Gpf-ce3t.js";import{c as ue}from"./BIGXb0qV.js";import{s as Le}from"./CyczJyMt.js";import{t as Y}from"./P-6iyz0U.js";import{f as fe}from"./CESUeVmp.js";import"./Bl3Cuor0.js";import{k as De}from"./BeKKPzED.js";import{s as We}from"./LNBns0B-.js";import{Jv as ve,tY as Se,ph as Re}from"./9xo585Vy.js";import{s as ze,W as Ne}from"./I_40sZHA.js";import{i as Oe,n as Be,d as je}from"./DLs0Gu12.js";import{t as qe,s as Ve,l as Je,u as Ge}from"./DDHXn0gy.js";function yt(l,n){let e=null,u=Q;var v;if(Q){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==l);)s=oe(s);if(s===null)le(!1);else{var p=oe(s);s.remove(),ie(p)}}Q||(v=document.head.appendChild(Ie()));try{Ce(()=>{var i=Te(()=>n(v));i.f|=Ae,Q||(i.nodes===null?i.nodes={start:v,end:v,a:null,t:null}:i.nodes.end=v)})}finally{u&&(le(!0),ie(e))}}const we=3e4,Ke=3;function G(l){return l.type==="browser"&&typeof l.ownerAgentId=="string"&&l.ownerAgentId.length>0}function wt(l,n,e,u,v){return l?Xe(new Map,n,e,u,v):new Map}const Qe={ttlMs:we,maxInactiveTabs:Ke};function Ue(l={}){return{...Qe,...l}}function ht(l,n){if(l.size!==n.size)return!1;for(const[e,u]of l)if(n.get(e)!==u)return!1;return!0}function Xe(l,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Ue(v),i=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(G).map(a=>a.id)),c=new Map;for(const[a,k]of l)i.has(a)&&c.set(a,k);e&&i.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(l,n,e,u=we,v=[]){const s=new Set(v.filter(i=>i.type==="browser").map(i=>i.id));let p=null;for(const[i,d]of l){if(i===n||s.has(i))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ye=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ze=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(l,n){if(new.target)return ge({component:he,...l});pe(n,!0);const e=()=>X(a,"$view$",p),u=()=>X(K,"$loaded$",p),v=()=>X(k,"$canMove$",p),s=()=>X(W,"$waiting$",p),[p,i]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Je(g),K=Ge(g),S=J(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ze(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Z(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ye(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(l,q);var F=_e(te);return i(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(l,n){if(new.target)return ge({component:nt,...l});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),i=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=J(()=>(r(d),Y.get(e().type))),k=J(()=>(r(d),Y.getLoadedComponent(e().type))),W=J(()=>r(m)===e().type&&r(c)?r(c):s()||G(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||G(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Y.loadComponent(t).then(I=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function K(){Y.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return i()},set onFocus(t){i(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Z(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Z(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(b,T)},$$slots:{default:!0}})},F=J(()=>r(W)&&je(e())),o=_=>{var b=Z(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=U(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:K,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=U(C,!0),o=V(C,2),f=U(o,!0),I=V(o,2),_=U(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:K,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(l,P),_e(S)}export{Ke as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Xe as u};
1
+ import{aR as Q,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./C0QTy0Sy.js";import{i as re}from"./bhKPSdq4.js";import{c as ue}from"./CUkDMZwP.js";import{s as Le}from"./7UPrdiE9.js";import{t as Y}from"./CiMmbOsB.js";import{f as fe}from"./FzlZUztb.js";import"./DCRuihKm.js";import{k as De}from"./-K3ARgq0.js";import{t as We}from"./CrD0jtXE.js";import{Jv as ve,tY as Se,ph as Re}from"./tr-2J8Mf.js";import{s as ze,W as Ne}from"./CO5zWp8I.js";import{i as Oe,n as Be,d as je}from"./BxEf7uwl.js";import{t as qe,s as Ve,l as Je,u as Ge}from"./BfojStRz.js";function yt(l,n){let e=null,u=Q;var v;if(Q){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==l);)s=oe(s);if(s===null)le(!1);else{var p=oe(s);s.remove(),ie(p)}}Q||(v=document.head.appendChild(Ie()));try{Ce(()=>{var i=Te(()=>n(v));i.f|=Ae,Q||(i.nodes===null?i.nodes={start:v,end:v,a:null,t:null}:i.nodes.end=v)})}finally{u&&(le(!0),ie(e))}}const we=3e4,Ke=3;function G(l){return l.type==="browser"&&typeof l.ownerAgentId=="string"&&l.ownerAgentId.length>0}function wt(l,n,e,u,v){return l?Xe(new Map,n,e,u,v):new Map}const Qe={ttlMs:we,maxInactiveTabs:Ke};function Ue(l={}){return{...Qe,...l}}function ht(l,n){if(l.size!==n.size)return!1;for(const[e,u]of l)if(n.get(e)!==u)return!1;return!0}function Xe(l,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Ue(v),i=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(G).map(a=>a.id)),c=new Map;for(const[a,k]of l)i.has(a)&&c.set(a,k);e&&i.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(l,n,e,u=we,v=[]){const s=new Set(v.filter(i=>i.type==="browser").map(i=>i.id));let p=null;for(const[i,d]of l){if(i===n||s.has(i))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ye=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ze=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(l,n){if(new.target)return ge({component:he,...l});pe(n,!0);const e=()=>X(a,"$view$",p),u=()=>X(K,"$loaded$",p),v=()=>X(k,"$canMove$",p),s=()=>X(W,"$waiting$",p),[p,i]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Je(g),K=Ge(g),S=J(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ze(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Z(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ye(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(l,q);var F=_e(te);return i(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(l,n){if(new.target)return ge({component:nt,...l});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),i=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=J(()=>(r(d),Y.get(e().type))),k=J(()=>(r(d),Y.getLoadedComponent(e().type))),W=J(()=>r(m)===e().type&&r(c)?r(c):s()||G(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||G(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Y.loadComponent(t).then(I=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function K(){Y.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return i()},set onFocus(t){i(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Z(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Z(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(b,T)},$$slots:{default:!0}})},F=J(()=>r(W)&&je(e())),o=_=>{var b=Z(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=U(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:K,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=U(C,!0),o=V(C,2),f=U(o,!0),I=V(o,2),_=U(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:K,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(l,P),_e(S)}export{Ke as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Xe as u};
@@ -1 +1 @@
1
- import{t as mt,bo as h,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./BEwMx-58.js";import{bs as vt,ca as T,aD as e,bj as gt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as k,bS as bt,aB as $t}from"./3SdAC2_C.js";import{i as A}from"./Gpf-ce3t.js";import{k as q}from"./BeKKPzED.js";import{c as J}from"./BIGXb0qV.js";import{aw as wt,cS as It}from"./DQEQvBuM.js";import{dC as St,d_ as ht}from"./DQdDAxOz.js";import{S as kt,c as Ct}from"./jExJ4qw0.js";import{selectScriptById as xt,selectCanDeleteScript as yt}from"./Bt_5d6KS.js";import"./CyczJyMt.js";import"./LNBns0B-.js";import"./Bl3Cuor0.js";import"./BCx2RJGr.js";import{M as P}from"./KWmquGlL.js";import{g as Dt}from"./DWGXN6Nr.js";import{T as Tt}from"./Do1K3fjZ.js";import{t as At,e as Bt}from"./DDHXn0gy.js";import{Jv as B,Dw as Vt,vx as Wt,g$ as Rt}from"./9xo585Vy.js";var Ht=$t("<!> <!>",1);function Mt(V,c){if(new.target)return mt({component:Mt,...V});vt(c,!0);const $=()=>_(L,"$fullContext$",u),z=()=>_(U,"$canDeleteScript$",u),E=()=>_(N,"$scriptContext$",u),F=()=>_(Q,"$script$",u),W=()=>_(X,"$homeView$",u),[u,G]=ut(),K=t=>{var r=b(),n=m(r);{var f=v=>{var I=Ht(),O=m(I);{let g=i(()=>D.workspace_shell_showInBottomBar_tooltip());J(O,()=>P,(S,y)=>{y(S,{get icon(){return wt},get label(){return e(g)},onclick:Z,"data-move-to-bottom-bar":!0})})}var st=bt(O,2);{var nt=g=>{var S=b(),y=m(S);{let it=i(()=>D.scripts_delete_label()),ct=i(()=>z()?void 0:D.scripts_delete_disabled_description());J(y,()=>P,(lt,pt)=>{pt(lt,{get icon(){return It},get label(){return e(it)},destructive:!0,get disabledReason(){return e(ct)},onclick:Y})})}d(g,S)};A(st,g=>{e(o)&&g(nt)})}d(v,I)};A(n,v=>{$()&&v(f)})}d(t,r)};let s=h(c,"tab",7),a=h(c,"workspaceId",7),C=h(c,"layoutId",7),l=h(c,"isActive",7);const w=i(()=>s().terminalId),o=i(()=>s().scriptId),R=Dt(),p=j(""),x=j("");T(()=>p.set(a())),T(()=>x.set(e(o)??""));const L=St(p),N=ht(p),Q=xt(p,x),U=yt(p,x),X=At(p);let H=!0;gt(()=>{H=!1});function Y(){if(!e(o))return;const t=a(),r=e(o),n=s().id;return Ct(t,r,()=>H&&l()&&a()===t&&e(o)===r&&s().id===n)}function Z(){$()&&(e(o)&&B.dispatch(Vt(a(),e(o))),B.dispatch(Wt(a(),e(w))),B.dispatch(Rt(C()??a(),s().id)))}T(()=>{if(!(!R||!l()))return R.registerActions({actions:K})});var tt={get tab(){return s()},set tab(t){s(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return l()},set isActive(t){l(t),k()},$set:dt,$on:(t,r)=>ft(c,t,r)},M=b(),et=m(M);{var rt=t=>{var r=b(),n=m(r);q(n,()=>e(o),f=>{{let v=i(()=>W()?.unavailable===!0),I=i(()=>Bt(W()));kt(f,{get scriptId(){return e(o)},get workspaceId(){return a()},class:"h-full",get runDisabled(){return e(v)},get runDisabledReason(){return e(I)}})}}),d(t,r)},at=t=>{var r=b(),n=m(r);q(n,()=>e(w),f=>{Tt(f,{get terminalId(){return e(w)},get workspaceId(){return a()},class:"h-full"})}),d(t,r)};A(et,t=>{e(o)&&l()&&E()&&($()||F())?t(rt):e(w)&&l()&&$()&&t(at,1)})}d(V,M);var ot=_t(tt);return G(),ot}export{Mt as default};
1
+ import{t as mt,bo as h,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./C0QTy0Sy.js";import{bs as vt,ca as T,aD as e,bj as gt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as k,bS as bt,aB as $t}from"./3SdAC2_C.js";import{i as A}from"./bhKPSdq4.js";import{k as q}from"./-K3ARgq0.js";import{c as J}from"./CUkDMZwP.js";import{aw as wt,cS as It}from"./U9jJmfYa.js";import{dC as St,d_ as ht}from"./BaujsV9k.js";import{S as kt,c as Ct}from"./BXhT5rHA.js";import{selectScriptById as xt,selectCanDeleteScript as yt}from"./M-TVgx-R.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import"./DCRuihKm.js";import"./QeBH-DWE.js";import{M as P}from"./CDK_hSiv.js";import{g as Dt}from"./DWGXN6Nr.js";import{T as Tt}from"./_SYFiE9N.js";import{t as At,e as Bt}from"./BfojStRz.js";import{Jv as B,Dw as Vt,vx as Wt,g$ as Rt}from"./tr-2J8Mf.js";var Ht=$t("<!> <!>",1);function Mt(V,c){if(new.target)return mt({component:Mt,...V});vt(c,!0);const $=()=>_(L,"$fullContext$",u),z=()=>_(U,"$canDeleteScript$",u),E=()=>_(N,"$scriptContext$",u),F=()=>_(Q,"$script$",u),W=()=>_(X,"$homeView$",u),[u,G]=ut(),K=t=>{var r=b(),n=m(r);{var f=v=>{var I=Ht(),O=m(I);{let g=i(()=>D.workspace_shell_showInBottomBar_tooltip());J(O,()=>P,(S,y)=>{y(S,{get icon(){return wt},get label(){return e(g)},onclick:Z,"data-move-to-bottom-bar":!0})})}var st=bt(O,2);{var nt=g=>{var S=b(),y=m(S);{let it=i(()=>D.scripts_delete_label()),ct=i(()=>z()?void 0:D.scripts_delete_disabled_description());J(y,()=>P,(lt,pt)=>{pt(lt,{get icon(){return It},get label(){return e(it)},destructive:!0,get disabledReason(){return e(ct)},onclick:Y})})}d(g,S)};A(st,g=>{e(o)&&g(nt)})}d(v,I)};A(n,v=>{$()&&v(f)})}d(t,r)};let s=h(c,"tab",7),a=h(c,"workspaceId",7),C=h(c,"layoutId",7),l=h(c,"isActive",7);const w=i(()=>s().terminalId),o=i(()=>s().scriptId),R=Dt(),p=j(""),x=j("");T(()=>p.set(a())),T(()=>x.set(e(o)??""));const L=St(p),N=ht(p),Q=xt(p,x),U=yt(p,x),X=At(p);let H=!0;gt(()=>{H=!1});function Y(){if(!e(o))return;const t=a(),r=e(o),n=s().id;return Ct(t,r,()=>H&&l()&&a()===t&&e(o)===r&&s().id===n)}function Z(){$()&&(e(o)&&B.dispatch(Vt(a(),e(o))),B.dispatch(Wt(a(),e(w))),B.dispatch(Rt(C()??a(),s().id)))}T(()=>{if(!(!R||!l()))return R.registerActions({actions:K})});var tt={get tab(){return s()},set tab(t){s(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return l()},set isActive(t){l(t),k()},$set:dt,$on:(t,r)=>ft(c,t,r)},M=b(),et=m(M);{var rt=t=>{var r=b(),n=m(r);q(n,()=>e(o),f=>{{let v=i(()=>W()?.unavailable===!0),I=i(()=>Bt(W()));kt(f,{get scriptId(){return e(o)},get workspaceId(){return a()},class:"h-full",get runDisabled(){return e(v)},get runDisabledReason(){return e(I)}})}}),d(t,r)},at=t=>{var r=b(),n=m(r);q(n,()=>e(w),f=>{Tt(f,{get terminalId(){return e(w)},get workspaceId(){return a()},class:"h-full"})}),d(t,r)};A(et,t=>{e(o)&&l()&&E()&&($()||F())?t(rt):e(w)&&l()&&$()&&t(at,1)})}d(V,M);var ot=_t(tt);return G(),ot}export{Mt as default};
@@ -1 +1 @@
1
- var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./BEwMx-58.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./Gpf-ce3t.js";import{H as ur}from"./C4Fxj3Dv.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./CESUeVmp.js";import{s as K}from"./LNBns0B-.js";import{b as et}from"./CyczJyMt.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
1
+ var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./C0QTy0Sy.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./bhKPSdq4.js";import{H as ur}from"./CbqxWBi7.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./FzlZUztb.js";import{t as K}from"./CrD0jtXE.js";import{b as et}from"./7UPrdiE9.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
@@ -1 +1 @@
1
- import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./BEwMx-58.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./3SdAC2_C.js";import{i as p}from"./Gpf-ce3t.js";import{s as At}from"./LNBns0B-.js";import"./CyczJyMt.js";import"./LCTocMEs.js";import"./Bwqr9iPo.js";import{D as ht}from"./C1hbmGxM.js";import{l}from"./Yy6hnibL.js";import"./Bl3Cuor0.js";import"./DwgOf6Jh.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});bt(e,!0);let b=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),E=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),I=n(e,"mode",7,"delete"),m=n(e,"activeAgentCount",7,0),d=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),K=n(e,"onConfirm",7),L=n(e,"onCancel",7);const Y=C(()=>m()>0||d()>0||c()>0||_()>0);function Z(){b(!1),L()?.()}async function $(){await K()?.(),b(!1)}var tt={get open(){return b()},set open(t=!1){b(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return E()},set body(t){E(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return I()},set mode(t="delete"){I(t),o()},get activeAgentCount(){return m()},set activeAgentCount(t=0){m(t),o()},get activeHookCount(){return d()},set activeHookCount(t=0){d(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return K()},set onConfirm(t){K(t),o()},get onCancel(){return L()},set onCancel(t){L(t),o()},$set:Ct,$on:(t,O)=>pt(e,t,O)};{const t=j=>{var q=Bt(),M=z(q);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};p(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_agentsStopped_one({count:l(m())}):a.modals_deleteWarning_agentsStopped_many({count:l(m())})]),u(r,i)};p(B,r=>{m()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(d())}):a.modals_deleteWarning_hooksCancelled_many({count:l(d())})]),u(r,i)};p(Q,r=>{d()>0&&r(ct)})}var U=A(Q,2);{var mt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};p(U,r=>{c()>0&&r(mt)})}var dt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};p(v,R=>{I()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};p(dt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};p(N,f=>{g(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>E()??xt),G(q),u(j,q)};let O=C(()=>!x()),et=C(()=>x()&&y()==="confirm"),nt=C(()=>!x()||y()==="cancel"),ot=C(()=>y()==="cancel"?"ignore":"submit"),rt=C(()=>y()==="cancel"?"ignore":"submit"),at=C(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return g(O)},get canSubmit(){return x()},get focusSubmit(){return g(et)},get focusCancel(){return g(nt)},get enterKey(){return g(ot)},get modEnter(){return g(rt)},get destructive(){return g(at)},onConfirm:$,onCancel:Z,get open(){return b()},set open(j){b(j)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
1
+ import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./C0QTy0Sy.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./3SdAC2_C.js";import{i as p}from"./bhKPSdq4.js";import{t as At}from"./CrD0jtXE.js";import"./7UPrdiE9.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import{D as ht}from"./C4JbSg3f.js";import{l}from"./CE7dsja4.js";import"./DCRuihKm.js";import"./lJeex2Gh.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});bt(e,!0);let b=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),E=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),I=n(e,"mode",7,"delete"),m=n(e,"activeAgentCount",7,0),d=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),K=n(e,"onConfirm",7),L=n(e,"onCancel",7);const Y=C(()=>m()>0||d()>0||c()>0||_()>0);function Z(){b(!1),L()?.()}async function $(){await K()?.(),b(!1)}var tt={get open(){return b()},set open(t=!1){b(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return E()},set body(t){E(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return I()},set mode(t="delete"){I(t),o()},get activeAgentCount(){return m()},set activeAgentCount(t=0){m(t),o()},get activeHookCount(){return d()},set activeHookCount(t=0){d(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return K()},set onConfirm(t){K(t),o()},get onCancel(){return L()},set onCancel(t){L(t),o()},$set:Ct,$on:(t,O)=>pt(e,t,O)};{const t=j=>{var q=Bt(),M=z(q);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};p(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_agentsStopped_one({count:l(m())}):a.modals_deleteWarning_agentsStopped_many({count:l(m())})]),u(r,i)};p(B,r=>{m()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(d())}):a.modals_deleteWarning_hooksCancelled_many({count:l(d())})]),u(r,i)};p(Q,r=>{d()>0&&r(ct)})}var U=A(Q,2);{var mt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};p(U,r=>{c()>0&&r(mt)})}var dt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};p(v,R=>{I()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};p(dt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};p(N,f=>{g(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>E()??xt),G(q),u(j,q)};let O=C(()=>!x()),et=C(()=>x()&&y()==="confirm"),nt=C(()=>!x()||y()==="cancel"),ot=C(()=>y()==="cancel"?"ignore":"submit"),rt=C(()=>y()==="cancel"?"ignore":"submit"),at=C(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return g(O)},get canSubmit(){return x()},get focusSubmit(){return g(et)},get focusCancel(){return g(nt)},get enterKey(){return g(ot)},get modEnter(){return g(rt)},get destructive(){return g(at)},onConfirm:$,onCancel:Z,get open(){return b()},set open(j){b(j)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
@@ -1,4 +1,4 @@
1
- import{p as xt}from"./Cy1eIaf4.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./DYXQ0DvL.js";import{p as Bt}from"./CKFaA258.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
1
+ import{p as xt}from"./Djg1-55Y.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./Ckb6le-m.js";import{p as Bt}from"./BFeEPayU.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }
@@ -1 +1 @@
1
- import{Y as a,aM as e}from"./DQEQvBuM.js";const t={note:a,changes:e},c={note:"note",changes:"changes","local-changes":"changes","chat-changes":"changes","activity-changes":"changes"};function o(n){return c[n]??null}export{t as R,o as g};
1
+ import{Y as a,aM as e}from"./U9jJmfYa.js";const t={note:a,changes:e},c={note:"note",changes:"changes","local-changes":"changes","chat-changes":"changes","activity-changes":"changes"};function o(n){return c[n]??null}export{t as R,o as g};
@@ -1 +1 @@
1
- import{p as e}from"./CyczJyMt.js";const t=[{id:"textarea-state-matrix",title:"Textarea states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","auto-expand","max-height-scroll","long-content","light","dark","zoom-200","keyboard-focus","compact","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"textarea",source:"src/lib/components/ui/textarea/textarea.svelte",publicImport:"$lib/components/ui/textarea",legacyImports:["$lib/components/ui/textarea/textarea.svelte"],exports:["Textarea","textareaMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/conversation-goal/components/GoalEditorDialog.svelte","src/features/discussions/components/DiscussionThread.svelte","src/features/hud/components/dock-composer-media.preview.svelte","src/features/hud/media-editor/screenshot/ScreenshotCanvas.svelte","src/features/machine-rail/machine-rail.preview.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/chat/QueuedMessageList.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/modals/ReplaceAgentModal.svelte","src/lib/components/patterns/settings/SettingsTextarea.svelte","src/lib/components/patterns/settings/settings-textarea.preview.svelte","src/lib/components/tiptap/CommentDialog.svelte","src/lib/components/tiptap/LaunchFromSelectionDialog.svelte","src/lib/components/tiptap/MermaidBlockNodeView.svelte","src/lib/components/ui/ask-user-questions/ask-user-questions.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/sidebar-tabs.preview.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/textarea/textarea.test.ts",removalGate:"Retain while exported and binding, resize, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});
1
+ import{p as e}from"./7UPrdiE9.js";const t=[{id:"textarea-state-matrix",title:"Textarea states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","auto-expand","max-height-scroll","long-content","light","dark","zoom-200","keyboard-focus","compact","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"textarea",source:"src/lib/components/ui/textarea/textarea.svelte",publicImport:"$lib/components/ui/textarea",legacyImports:["$lib/components/ui/textarea/textarea.svelte"],exports:["Textarea","textareaMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/conversation-goal/components/GoalEditorDialog.svelte","src/features/discussions/components/DiscussionThread.svelte","src/features/hud/components/dock-composer-media.preview.svelte","src/features/hud/media-editor/screenshot/ScreenshotCanvas.svelte","src/features/machine-rail/machine-rail.preview.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/chat/QueuedMessageList.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/modals/ReplaceAgentModal.svelte","src/lib/components/patterns/settings/SettingsTextarea.svelte","src/lib/components/patterns/settings/settings-textarea.preview.svelte","src/lib/components/tiptap/CommentDialog.svelte","src/lib/components/tiptap/LaunchFromSelectionDialog.svelte","src/lib/components/tiptap/MermaidBlockNodeView.svelte","src/lib/components/ui/ask-user-questions/ask-user-questions.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/sidebar-tabs.preview.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/textarea/textarea.test.ts",removalGate:"Retain while exported and binding, resize, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});
@@ -1 +1 @@
1
- import{g as r}from"./B1TqZZyd.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
1
+ import{g as r}from"./1WR8MecL.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B4GJOofT.js","/app/immutable/chunks/9xo585Vy.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CplGIhI5.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/LNBns0B-.js","/app/immutable/chunks/BEwMx-58.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D81Tox6K.js"])))=>i.map(i=>d[i]);
2
- import{t as Yt,bo as J,bw as te,bs as M,bq as ee,b as re,bm as n,_ as se}from"./BEwMx-58.js";import{bo as ae,bs as ne,ca as C,bH as N,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as Z,aA as G,bl as R,bO as h,ay as wt,aB as y}from"./3SdAC2_C.js";import{i as I}from"./Gpf-ce3t.js";import{f as St,g as le,s as ce}from"./CyczJyMt.js";import{b as ue}from"./Dn334wJv.js";import{b as de}from"./D3yXvqwY.js";import{Jv as m,D1 as pe,CT as me,CS as fe,Jp as _e,CE as ve,iz as be,iZ as ge}from"./9xo585Vy.js";import{d as xe,T as he,D as ye,L as ke,o as we}from"./zOXOu59X.js";import{F as ct,d3 as Se,cb as $e,c$ as Ae}from"./DQEQvBuM.js";import{f as $t}from"./CESUeVmp.js";import{m as rt}from"./Ah-onPNG.js";import"./Bl3Cuor0.js";import"./LNBns0B-.js";import"./ChTqQfQN.js";import"./BmQQcH5z.js";import{r as Ce}from"./C5BT0KwE.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./Bt_5d6KS.js";import{g as De}from"./DvQWx7ZN.js";import{c4 as Re,d$ as Ie,dC as Ft}from"./DQdDAxOz.js";import"./LCTocMEs.js";import"./Bwqr9iPo.js";import"./DwgOf6Jh.js";import{e as Le}from"./0chz2rsS.js";import{v as Ot}from"./EfOpqeLT.js";var Dt=y("<!> ",1),Te=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Ee=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),qe=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Be=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Pe=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),ze=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),Me=y('<span class="sr-only"> </span>'),We=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),je=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Ue(_,c){const j=ae();if(new.target)return Yt({component:Ue,..._});ne(c,!0);const L=()=>M(zt,"$outputAuthority",T),u=()=>M(Tt,"$runtime$",T),v=()=>M(Et,"$output$",T),S=()=>M(Pt,"$codeFontFamilyCSS",T),W=()=>M(qt,"$retainedOutput$",T),Rt=()=>M(Bt,"$hidesAgentLifecycleActions$",T),dt=()=>M(Lt,"$script$",T),[T,It]=ee();let $=J(c,"scriptId",7),b=J(c,"workspaceId",7),st=J(c,"class",7,""),at=J(c,"runDisabled",7,!1),E=J(c,"runDisabledReason",7,null);const pt=Z(()=>at()||E()!==null),q=lt(""),U=lt(""),mt=lt("");let nt=kt(!1);C(()=>q.set(b())),C(()=>U.set($()));let B,i=null,H=null,Q=null,V=null,P=null,X=null;const Lt=ut(q,U),Tt=Fe(q,U),Et=At(q,U),qt=Oe(q,U,mt),Bt=Re(q),Pt=De(),zt=Ie(q),ft=crypto.randomUUID();C(()=>{const t=b();return $(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=$(),a=L(),s=u();if(!a||!t||!e)return;s.status,s.startedAt;const l=crypto.randomUUID();return mt.set(l),N(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,l)),()=>m.dispatch(fe(t,e,l))});let Y=kt(0);const Mt=Z(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function Wt(){if(!B||i)return;V=new he(B);const t=V.getCurrentTheme();i=new ye({allowProposedApi:!0,fontFamily:S(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),i.attachCustomKeyEventHandler(a=>{const s=a.metaKey||a.ctrlKey;return!(s&&a.key==="`"||s&&a.key==="j"||s&&a.key==="k")}),H=new we,i.loadAddon(H);const e=new ke((a,s)=>{try{const l=new URL(s);l.hostname==="localhost"||l.hostname==="127.0.0.1"?Ce(s).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./B4GJOofT.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(s,"_blank")}catch{window.open(s,"_blank")}});i.loadAddon(e),i.open(B),V.applyTheme(i),X=requestAnimationFrame(()=>{X=null,H?.fit()}),Q=new ResizeObserver(()=>{H?.fit()}),Q.observe(B),jt()}function jt(){if(!i)return;const t=At.select(m.state,b(),$());t.chunks.length>0&&i.write(t.chunks.map(e=>e.text).join("")),N(Y,t.dropped+t.chunks.length)}function _t(){P!==null&&(cancelAnimationFrame(P),P=null),X!==null&&(cancelAnimationFrame(X),X=null),Q?.disconnect(),Q=null,V?.dispose(),V=null;const t=i;i=null,H=null,N(Y,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Y)),a=t.dropped+t.chunks.length;if(!i||a<=e)return;const s=Math.max(e-t.dropped,0);i.write(t.chunks.slice(s).map(l=>l.text).join("")),N(Y,a)}),C(()=>{const t=S();i&&i.options.fontFamily!==t&&(i.options.fontFamily=t)});function Ut(){F(pt)||m.dispatch(_e(b(),$()))}function Ht(){if(!b()){rt.error(n.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),$(),W()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&B&&!i&&(P!==null&&cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=null,Wt()}))}),ie(()=>{_t()});var Vt={get scriptId(){return $()},set scriptId(t){$(t),G()},get workspaceId(){return b()},set workspaceId(t){b(t),G()},get class(){return st()},set class(t=""){st(t),G()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),G()},get runDisabledReason(){return E()},set runDisabledReason(t=null){E(t),G()},$set:te,$on:(t,e)=>re(c,t,e)},tt=je(),vt=O(tt);{var Xt=t=>{var e=Te(),a=O(e),s=O(a),l=O(s);ct(l,{get icon(){return Se},size:"xs"}),D(s);var g=p(s,2),k=R(g,!0);D(a);var A=p(a,2);{var d=r=>{$t(r,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Ht,children:(o,w)=>{var z=Dt(),K=wt(z);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>n.terminal_scriptOutput_askAiToFix_label()]),f(o,z)},$$slots:{default:!0}})};I(A,r=>{Rt()||r(d)})}D(e),x(r=>h(k,r),[()=>n.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};I(vt,t=>{F(Mt)&&t(Xt)})}var bt=p(vt,2);{var Kt=t=>{var e=Be(),a=O(e),s=R(a,!0),l=p(a,2),g=R(l,!0),k=p(l,2);{var A=r=>{var o=Ee();let w;var z=R(o,!0);x(()=>{w=le(o,"",w,{"font-family":S()}),h(z,W().text)}),f(r,o)},d=r=>{var o=qe(),w=R(o,!0);x(z=>h(w,z),[()=>W().status==="loading"?n.terminal_scriptOutput_retainedLoading_label():n.terminal_scriptOutput_retainedUnavailable_label()]),f(r,o)};I(k,r=>{W().status==="available"?r(A):r(d,-1)})}D(e),x((r,o)=>{h(s,r),h(g,o)},[()=>n.terminal_scriptOutput_retained_label(),()=>n.terminal_scriptOutput_retained_description()]),de("open","toggle",e,r=>N(nt,r),()=>F(nt)),f(t,e)};I(bt,t=>{W()&&t(Kt)})}var gt=p(bt,2);{var Jt=t=>{var e=Pe(),a=R(e,!0);x(s=>h(a,s),[()=>n.terminal_scriptOutput_live_label()]),f(t,e)};I(gt,t=>{v().chunks.length>0&&W()&&t(Jt)})}var xt=p(gt,2);{var Nt=t=>{var e=We(),a=O(e),s=p(O(a),2);{var l=d=>{var r=ze(),o=R(r,!0);x(w=>h(o,w),[()=>ve(dt())]),f(d,r)};I(s,d=>{dt()&&d(l)})}var g=p(s,2);{let d=Z(()=>E()??void 0),r=Z(()=>n.terminal_scriptOutput_run_label()),o=Z(()=>E()?j:void 0);$t(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(r)},get"aria-describedby"(){return F(o)},onclick:Ut,class:"text-muted-foreground hover:text-foreground",children:(w,z)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return $e},class:"h-3 w-3 mr-1"});var ot=p(et);x(Qt=>h(ot,` ${Qt??""}`),[()=>n.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var r=Me(),o=R(r,!0);x(()=>{ce(r,"id",j),h(o,E())}),f(d,r)};I(k,d=>{E()&&d(A)})}D(a),D(e),f(t,e)};I(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Nt)})}var it=p(xt,2);let ht;var Zt=O(it);ue(Zt,t=>B=t,()=>B),D(it),D(tt),x(()=>{St(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=St(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Gt=oe(Vt);return It(),Gt}async function fr(_,c,j){const L=ut.select(m.state,_,c);if(!L||!j()||!Ct.select(m.state,_,c))return;const u=Ot(L.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(n.workspace_client_accessChanged_error());return}if(!await Le({title:n.scripts_delete_title({name:L.name}),description:u?n.scripts_delete_running_description():n.scripts_delete_description(),confirmLabel:n.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(n.workspace_client_accessChanged_error());return}const S=ut.select(m.state,_,c);if(!j()||!S||S.createdAt!==L.createdAt||S.name!==L.name||!u&&Ot(S.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(n.scripts_delete_changed_error());return}m.dispatch(ge(_,c,n.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Ue as S,fr as c};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DA5opfEp.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/EK6zOAHM.js"])))=>i.map(i=>d[i]);
2
+ import{t as Yt,bo as J,bw as te,bs as M,bq as ee,b as re,bm as n,_ as se}from"./C0QTy0Sy.js";import{bo as ae,bs as ne,ca as C,bH as N,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as Z,aA as G,bl as R,bO as h,ay as wt,aB as y}from"./3SdAC2_C.js";import{i as I}from"./bhKPSdq4.js";import{f as St,g as le,s as ce}from"./7UPrdiE9.js";import{b as ue}from"./Dn334wJv.js";import{b as de}from"./D3yXvqwY.js";import{Jv as m,D1 as pe,CT as me,CS as fe,Jp as _e,CE as ve,iz as be,iZ as ge}from"./tr-2J8Mf.js";import{d as xe,T as he,D as ye,L as ke,o as we}from"./6-uYidyP.js";import{F as ct,d3 as Se,cb as $e,c$ as Ae}from"./U9jJmfYa.js";import{f as $t}from"./FzlZUztb.js";import{m as rt}from"./BmTMWrby.js";import"./DCRuihKm.js";import"./CrD0jtXE.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{r as Ce}from"./ozVAo4aX.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./M-TVgx-R.js";import{g as De}from"./L_tYoUCb.js";import{c4 as Re,d$ as Ie,dC as Ft}from"./BaujsV9k.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import"./lJeex2Gh.js";import{e as Le}from"./f24VwgrA.js";import{v as Ot}from"./BFgeFHTs.js";var Dt=y("<!> ",1),Te=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Ee=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),qe=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Be=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Pe=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),ze=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),Me=y('<span class="sr-only"> </span>'),We=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),je=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Ue(_,c){const j=ae();if(new.target)return Yt({component:Ue,..._});ne(c,!0);const L=()=>M(zt,"$outputAuthority",T),u=()=>M(Tt,"$runtime$",T),v=()=>M(Et,"$output$",T),S=()=>M(Pt,"$codeFontFamilyCSS",T),W=()=>M(qt,"$retainedOutput$",T),Rt=()=>M(Bt,"$hidesAgentLifecycleActions$",T),dt=()=>M(Lt,"$script$",T),[T,It]=ee();let $=J(c,"scriptId",7),b=J(c,"workspaceId",7),st=J(c,"class",7,""),at=J(c,"runDisabled",7,!1),E=J(c,"runDisabledReason",7,null);const pt=Z(()=>at()||E()!==null),q=lt(""),U=lt(""),mt=lt("");let nt=kt(!1);C(()=>q.set(b())),C(()=>U.set($()));let B,i=null,H=null,Q=null,V=null,P=null,X=null;const Lt=ut(q,U),Tt=Fe(q,U),Et=At(q,U),qt=Oe(q,U,mt),Bt=Re(q),Pt=De(),zt=Ie(q),ft=crypto.randomUUID();C(()=>{const t=b();return $(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=$(),a=L(),s=u();if(!a||!t||!e)return;s.status,s.startedAt;const l=crypto.randomUUID();return mt.set(l),N(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,l)),()=>m.dispatch(fe(t,e,l))});let Y=kt(0);const Mt=Z(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function Wt(){if(!B||i)return;V=new he(B);const t=V.getCurrentTheme();i=new ye({allowProposedApi:!0,fontFamily:S(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),i.attachCustomKeyEventHandler(a=>{const s=a.metaKey||a.ctrlKey;return!(s&&a.key==="`"||s&&a.key==="j"||s&&a.key==="k")}),H=new we,i.loadAddon(H);const e=new ke((a,s)=>{try{const l=new URL(s);l.hostname==="localhost"||l.hostname==="127.0.0.1"?Ce(s).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./DA5opfEp.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(s,"_blank")}catch{window.open(s,"_blank")}});i.loadAddon(e),i.open(B),V.applyTheme(i),X=requestAnimationFrame(()=>{X=null,H?.fit()}),Q=new ResizeObserver(()=>{H?.fit()}),Q.observe(B),jt()}function jt(){if(!i)return;const t=At.select(m.state,b(),$());t.chunks.length>0&&i.write(t.chunks.map(e=>e.text).join("")),N(Y,t.dropped+t.chunks.length)}function _t(){P!==null&&(cancelAnimationFrame(P),P=null),X!==null&&(cancelAnimationFrame(X),X=null),Q?.disconnect(),Q=null,V?.dispose(),V=null;const t=i;i=null,H=null,N(Y,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Y)),a=t.dropped+t.chunks.length;if(!i||a<=e)return;const s=Math.max(e-t.dropped,0);i.write(t.chunks.slice(s).map(l=>l.text).join("")),N(Y,a)}),C(()=>{const t=S();i&&i.options.fontFamily!==t&&(i.options.fontFamily=t)});function Ut(){F(pt)||m.dispatch(_e(b(),$()))}function Ht(){if(!b()){rt.error(n.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),$(),W()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&B&&!i&&(P!==null&&cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=null,Wt()}))}),ie(()=>{_t()});var Vt={get scriptId(){return $()},set scriptId(t){$(t),G()},get workspaceId(){return b()},set workspaceId(t){b(t),G()},get class(){return st()},set class(t=""){st(t),G()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),G()},get runDisabledReason(){return E()},set runDisabledReason(t=null){E(t),G()},$set:te,$on:(t,e)=>re(c,t,e)},tt=je(),vt=O(tt);{var Xt=t=>{var e=Te(),a=O(e),s=O(a),l=O(s);ct(l,{get icon(){return Se},size:"xs"}),D(s);var g=p(s,2),k=R(g,!0);D(a);var A=p(a,2);{var d=r=>{$t(r,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Ht,children:(o,w)=>{var z=Dt(),K=wt(z);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>n.terminal_scriptOutput_askAiToFix_label()]),f(o,z)},$$slots:{default:!0}})};I(A,r=>{Rt()||r(d)})}D(e),x(r=>h(k,r),[()=>n.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};I(vt,t=>{F(Mt)&&t(Xt)})}var bt=p(vt,2);{var Kt=t=>{var e=Be(),a=O(e),s=R(a,!0),l=p(a,2),g=R(l,!0),k=p(l,2);{var A=r=>{var o=Ee();let w;var z=R(o,!0);x(()=>{w=le(o,"",w,{"font-family":S()}),h(z,W().text)}),f(r,o)},d=r=>{var o=qe(),w=R(o,!0);x(z=>h(w,z),[()=>W().status==="loading"?n.terminal_scriptOutput_retainedLoading_label():n.terminal_scriptOutput_retainedUnavailable_label()]),f(r,o)};I(k,r=>{W().status==="available"?r(A):r(d,-1)})}D(e),x((r,o)=>{h(s,r),h(g,o)},[()=>n.terminal_scriptOutput_retained_label(),()=>n.terminal_scriptOutput_retained_description()]),de("open","toggle",e,r=>N(nt,r),()=>F(nt)),f(t,e)};I(bt,t=>{W()&&t(Kt)})}var gt=p(bt,2);{var Jt=t=>{var e=Pe(),a=R(e,!0);x(s=>h(a,s),[()=>n.terminal_scriptOutput_live_label()]),f(t,e)};I(gt,t=>{v().chunks.length>0&&W()&&t(Jt)})}var xt=p(gt,2);{var Nt=t=>{var e=We(),a=O(e),s=p(O(a),2);{var l=d=>{var r=ze(),o=R(r,!0);x(w=>h(o,w),[()=>ve(dt())]),f(d,r)};I(s,d=>{dt()&&d(l)})}var g=p(s,2);{let d=Z(()=>E()??void 0),r=Z(()=>n.terminal_scriptOutput_run_label()),o=Z(()=>E()?j:void 0);$t(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(r)},get"aria-describedby"(){return F(o)},onclick:Ut,class:"text-muted-foreground hover:text-foreground",children:(w,z)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return $e},class:"h-3 w-3 mr-1"});var ot=p(et);x(Qt=>h(ot,` ${Qt??""}`),[()=>n.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var r=Me(),o=R(r,!0);x(()=>{ce(r,"id",j),h(o,E())}),f(d,r)};I(k,d=>{E()&&d(A)})}D(a),D(e),f(t,e)};I(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Nt)})}var it=p(xt,2);let ht;var Zt=O(it);ue(Zt,t=>B=t,()=>B),D(it),D(tt),x(()=>{St(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=St(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Gt=oe(Vt);return It(),Gt}async function fr(_,c,j){const L=ut.select(m.state,_,c);if(!L||!j()||!Ct.select(m.state,_,c))return;const u=Ot(L.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(n.workspace_client_accessChanged_error());return}if(!await Le({title:n.scripts_delete_title({name:L.name}),description:u?n.scripts_delete_running_description():n.scripts_delete_description(),confirmLabel:n.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(n.workspace_client_accessChanged_error());return}const S=ut.select(m.state,_,c);if(!j()||!S||S.createdAt!==L.createdAt||S.name!==L.name||!u&&Ot(S.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(n.scripts_delete_changed_error());return}m.dispatch(ge(_,c,n.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Ue as S,fr as c};
@@ -1 +1 @@
1
- import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./BEwMx-58.js";import{bs as kt,ca as q,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./3SdAC2_C.js";import{i as L}from"./Gpf-ce3t.js";import{k as wt}from"./BeKKPzED.js";import{c as _t}from"./BIGXb0qV.js";import{t as Bt}from"./C-BsEdGZ.js";import{Jv as u,eJ as It,eK as Wt,K3 as Tt,Ki as Ut,K8 as Rt,vw as Dt,os as O}from"./9xo585Vy.js";import{g as Ht}from"./DWGXN6Nr.js";import{bO as At,bQ as Ft,dH as Kt}from"./DQdDAxOz.js";import{C as f}from"./DypB-Dwi.js";import"./CHyLxrMv.js";import"./CyczJyMt.js";import"./LNBns0B-.js";import{bg as Mt}from"./DQEQvBuM.js";import"./Bl3Cuor0.js";/* empty css */import{T as Nt}from"./CoHtEoLb.js";import"./BCx2RJGr.js";import{M as xt}from"./KWmquGlL.js";import{V as qt}from"./DWOJ689M.js";import{O as Et}from"./DkPs4gWX.js";import{bT as Lt,bN as Ot,b8 as Vt}from"./CpxnRRai.js";import{i as Jt}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function Qt(I,p){if(new.target)return pt({component:Qt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),V=()=>h(Z,"$ftCommits$",l),T=()=>h(z,"$foldUnchanged",l),U=()=>h(j,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,J]=Pt(),G=t=>{qt(t,{embedded:!0,get foldEnabled(){return T()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Tt())})},Q=t=>{var e=Gt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>xt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:jt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};L(s,m=>{n(k)&&m(d)})}_(t,e)},j=Lt(),z=Ot(),X=Vt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=At(C),Z=Ft(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ht(),et=Kt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);q(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),H=i(()=>a().data?.gitRootPath),v=i(()=>n(H)||n(nt)),k=i(()=>a().diffPath&&n(v)?Jt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function F(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of V())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const K=i(()=>a().diffPath?F(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=F(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(N))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(K))return n(K);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}q(()=>{!D||!b()||D.registerActions({display:G,actions:Q})});function dt(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},x=E(),mt=w(x);{var lt=t=>{var e=E(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return T()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(H)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};L(mt,t=>{a().diffPath&&t(lt)})}_(I,x);var gt=$t(ct);return J(),gt}export{Qt as default};
1
+ import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./C0QTy0Sy.js";import{bs as kt,ca as q,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./3SdAC2_C.js";import{i as L}from"./bhKPSdq4.js";import{k as wt}from"./-K3ARgq0.js";import{c as _t}from"./CUkDMZwP.js";import{t as Bt}from"./C-BsEdGZ.js";import{Jv as u,eJ as It,eK as Wt,K3 as Tt,Ki as Ut,K8 as Rt,vw as Dt,os as O}from"./tr-2J8Mf.js";import{g as Ht}from"./DWGXN6Nr.js";import{bO as At,bQ as Ft,dH as Kt}from"./BaujsV9k.js";import{C as f}from"./DypB-Dwi.js";import"./DduCxuVq.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import{bg as Mt}from"./U9jJmfYa.js";import"./DCRuihKm.js";/* empty css */import{T as Nt}from"./XHPDEELd.js";import"./QeBH-DWE.js";import{M as xt}from"./CDK_hSiv.js";import{V as qt}from"./CqcqWJoa.js";import{O as Et}from"./DME_6OFx.js";import{bT as Lt,bN as Ot,b8 as Vt}from"./BtHTHBJp.js";import{i as Jt}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function Qt(I,p){if(new.target)return pt({component:Qt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),V=()=>h(Z,"$ftCommits$",l),T=()=>h(z,"$foldUnchanged",l),U=()=>h(j,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,J]=Pt(),G=t=>{qt(t,{embedded:!0,get foldEnabled(){return T()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Tt())})},Q=t=>{var e=Gt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>xt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:jt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};L(s,m=>{n(k)&&m(d)})}_(t,e)},j=Lt(),z=Ot(),X=Vt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=At(C),Z=Ft(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ht(),et=Kt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);q(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),H=i(()=>a().data?.gitRootPath),v=i(()=>n(H)||n(nt)),k=i(()=>a().diffPath&&n(v)?Jt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function F(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of V())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const K=i(()=>a().diffPath?F(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=F(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(N))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(K))return n(K);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}q(()=>{!D||!b()||D.registerActions({display:G,actions:Q})});function dt(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},x=E(),mt=w(x);{var lt=t=>{var e=E(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return T()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(H)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};L(mt,t=>{a().diffPath&&t(lt)})}_(I,x);var gt=$t(ct);return J(),gt}export{Qt as default};