@intent-hq/web 2.362.0 → 2.362.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 (327) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{jd2Q-_wb.js → 0Go2CbyU.js} +1 -1
  3. package/web/app/immutable/chunks/{DF45Lcog.js → 1nRBQ8GP.js} +1 -1
  4. package/web/app/immutable/chunks/{BMwhw1Uq.js → 23XOeMSz.js} +1 -1
  5. package/web/app/immutable/chunks/{zyhN-MWp.js → 2YXwswD5.js} +1 -1
  6. package/web/app/immutable/chunks/{D0klBhhG.js → 2hni5UX1.js} +1 -1
  7. package/web/app/immutable/chunks/{BomJfUuH.js → 4iYH6029.js} +1 -1
  8. package/web/app/immutable/chunks/{CeVJyslc.js → 55cMcX02.js} +1 -1
  9. package/web/app/immutable/chunks/{DiqO4Muj.js → 6b8eTysf.js} +1 -1
  10. package/web/app/immutable/chunks/{DrYNp4pq.js → 6zG0ROGL.js} +1 -1
  11. package/web/app/immutable/chunks/{Dg1sjsED.js → 8VBKAONs.js} +2 -2
  12. package/web/app/immutable/chunks/{DrRkoSeq.js → AWaLRNq4.js} +1 -1
  13. package/web/app/immutable/chunks/{DDVZx1NH.js → B-DzvqX1.js} +1 -1
  14. package/web/app/immutable/chunks/{u9TRZTyq.js → B1nPoFt8.js} +1 -1
  15. package/web/app/immutable/chunks/{BILh4U9K.js → B1rImF8u.js} +1 -1
  16. package/web/app/immutable/chunks/{vVxVtKpW.js → B2U6zHXn.js} +1 -1
  17. package/web/app/immutable/chunks/{1gFj_z6C.js → B2y4Ey03.js} +1 -1
  18. package/web/app/immutable/chunks/{ByAb1cmM.js → B3jM95Fp.js} +1 -1
  19. package/web/app/immutable/chunks/{42eDZto7.js → B3sqRIS9.js} +1 -1
  20. package/web/app/immutable/chunks/{C8YPd-6H.js → B43yoCDN.js} +1 -1
  21. package/web/app/immutable/chunks/{B8XPpKv7.js → B5nay5Hl.js} +3 -3
  22. package/web/app/immutable/chunks/{iQseBcjp.js → B6XV-wYf.js} +1 -1
  23. package/web/app/immutable/chunks/{B6ovWwJ_.js → B6lDfWDz.js} +1 -1
  24. package/web/app/immutable/chunks/{nIMiMGnC.js → B6qAtTdf.js} +1 -1
  25. package/web/app/immutable/chunks/{Bept5Hnm.js → B7ZiQt9B.js} +1 -1
  26. package/web/app/immutable/chunks/{CvAmKg2X.js → B7he-vwJ.js} +1 -1
  27. package/web/app/immutable/chunks/{BW6IwFyw.js → BAS5Ei9a.js} +4 -4
  28. package/web/app/immutable/chunks/{CY5L4aNw.js → BBXi6eZS.js} +1 -1
  29. package/web/app/immutable/chunks/{DnUPJZ7Y.js → BBeX3tt3.js} +1 -1
  30. package/web/app/immutable/chunks/{BA1Q6PPR.js → BFNGEzf6.js} +1 -1
  31. package/web/app/immutable/chunks/{D3YyaVry.js → BIBmWYIa.js} +1 -1
  32. package/web/app/immutable/chunks/{D9wnkmBu.js → BIQ9eVuf.js} +1 -1
  33. package/web/app/immutable/chunks/{BWcEoYRV.js → BKSdTbM0.js} +1 -1
  34. package/web/app/immutable/chunks/{DK8BxGVr.js → BKW-24eH.js} +1 -1
  35. package/web/app/immutable/chunks/{B2tn4QvC.js → BMXpCN2Z.js} +1 -1
  36. package/web/app/immutable/chunks/BNq3scG4.js +4 -0
  37. package/web/app/immutable/chunks/{DQ21wdjk.js → BPWzrv4n.js} +1 -1
  38. package/web/app/immutable/chunks/{VfrZWr4H.js → BPu2GADH.js} +1 -1
  39. package/web/app/immutable/chunks/{CRKBkpOe.js → BQi1vxhj.js} +1 -1
  40. package/web/app/immutable/chunks/{i9nNzXN1.js → BR6IlpMz.js} +1 -1
  41. package/web/app/immutable/chunks/{DpinIuVV.js → BRPvhipI.js} +2 -2
  42. package/web/app/immutable/chunks/{DwVWq9Mg.js → BSiWAL4B.js} +1 -1
  43. package/web/app/immutable/chunks/{BfYNlt8G.js → BTPstSq4.js} +1 -1
  44. package/web/app/immutable/chunks/{CEJtWBth.js → BULwUgGm.js} +1 -1
  45. package/web/app/immutable/chunks/{Dc2OgodD.js → BUNb3q2A.js} +1 -1
  46. package/web/app/immutable/chunks/{T-q_OSSy.js → BU_WdKEZ.js} +1 -1
  47. package/web/app/immutable/chunks/{Cd0j3msa.js → BUansWOB.js} +1 -1
  48. package/web/app/immutable/chunks/{qdH_r52r.js → BV4hVkqh.js} +1 -1
  49. package/web/app/immutable/chunks/{C_DRWbBT.js → BWxyJyKV.js} +1 -1
  50. package/web/app/immutable/chunks/{D4rtf9eK.js → BZMuFhDq.js} +2 -2
  51. package/web/app/immutable/chunks/{C2jMmBZH.js → BZaxCCc-.js} +3 -3
  52. package/web/app/immutable/chunks/{DhHBMk2S.js → B_Qscghg.js} +4 -4
  53. package/web/app/immutable/chunks/{CTuEdhIK.js → BbNaXeCx.js} +1 -1
  54. package/web/app/immutable/chunks/{DEz0iQL-.js → Bctp9lP7.js} +1 -1
  55. package/web/app/immutable/chunks/{BHi5IZAX.js → Bd3N9n0H.js} +1 -1
  56. package/web/app/immutable/chunks/{BIeyZqbO.js → Be0mmWcA.js} +6 -6
  57. package/web/app/immutable/chunks/{BLN77Nun.js → BeQ5cBZr.js} +1 -1
  58. package/web/app/immutable/chunks/{D-HbS-OO.js → BedgIvkT.js} +1 -1
  59. package/web/app/immutable/chunks/{CGq1dL3z.js → Bei3Ber-.js} +1 -1
  60. package/web/app/immutable/chunks/{AlKC0Ocb.js → Bg85AeOE.js} +1 -1
  61. package/web/app/immutable/chunks/{ButwRe61.js → BgO8l4RL.js} +1 -1
  62. package/web/app/immutable/chunks/{C5gI3OmS.js → Bh9XFM6t.js} +1 -1
  63. package/web/app/immutable/chunks/{Do-7hUG3.js → Bhsd_vBR.js} +1 -1
  64. package/web/app/immutable/chunks/{B64Wa5S6.js → Bi_5p9qD.js} +1 -1
  65. package/web/app/immutable/chunks/{BJBg5aea.js → BjhYYm97.js} +1 -1
  66. package/web/app/immutable/chunks/{Moy2Fnv7.js → BlbxSj1X.js} +1 -1
  67. package/web/app/immutable/chunks/{B_F2KAss.js → BluA3DZF.js} +1 -1
  68. package/web/app/immutable/chunks/{BRRZ-rdF.js → BluWIyqL.js} +1 -1
  69. package/web/app/immutable/chunks/{ConZf1Xc.js → BmH3z8uN.js} +1 -1
  70. package/web/app/immutable/chunks/{DGgxtq4s.js → Bo-zVBuZ.js} +1 -1
  71. package/web/app/immutable/chunks/{fBGaFk7o.js → Bpl_qBuR.js} +3 -3
  72. package/web/app/immutable/chunks/{Bbp04L_p.js → Bq9n6Tla.js} +1 -1
  73. package/web/app/immutable/chunks/{CLD_-K5U.js → BqGa1t8L.js} +1 -1
  74. package/web/app/immutable/chunks/{CHVebKY7.js → BqzT4O7L.js} +3 -3
  75. package/web/app/immutable/chunks/{BxEYTNET.js → Br53KhNC.js} +1 -1
  76. package/web/app/immutable/chunks/{alfd90bM.js → BrfrzpId.js} +1 -1
  77. package/web/app/immutable/chunks/{BhKKK-kE.js → BszkqKbM.js} +1 -1
  78. package/web/app/immutable/chunks/{BGAw0soA.js → BtoR1PxE.js} +1 -1
  79. package/web/app/immutable/chunks/{ryY3ARJp.js → Bu1TNEzu.js} +1 -1
  80. package/web/app/immutable/chunks/{BkJlUIRT.js → BuWwi-OB.js} +1 -1
  81. package/web/app/immutable/chunks/{Cm_3RFg5.js → BvEWkly-.js} +1 -1
  82. package/web/app/immutable/chunks/{C_xs3Po8.js → BwV7CRGN.js} +1 -1
  83. package/web/app/immutable/chunks/{Dv_zibKv.js → BwsZanfL.js} +1 -1
  84. package/web/app/immutable/chunks/{PgqRte-r.js → Bxs2oudl.js} +1 -1
  85. package/web/app/immutable/chunks/{BWX_OVAE.js → ByTn8oHf.js} +1 -1
  86. package/web/app/immutable/chunks/{DJQwKIJU.js → BykIeP0g.js} +1 -1
  87. package/web/app/immutable/chunks/{Di3oOarF.js → Bz3tuC8r.js} +2 -2
  88. package/web/app/immutable/chunks/{U10EozJE.js → BzQ3ATRh.js} +2 -2
  89. package/web/app/immutable/chunks/{BK_ocHH_.js → C-Reftw2.js} +1 -1
  90. package/web/app/immutable/chunks/{EAmw13pe.js → C-hb5nbb.js} +1 -1
  91. package/web/app/immutable/chunks/{D24Cy14e.js → C0RmcaXo.js} +1 -1
  92. package/web/app/immutable/chunks/{CokgYiLR.js → C1T-qy7I.js} +1 -1
  93. package/web/app/immutable/chunks/{BghGxAUO.js → C1o3spBY.js} +1 -1
  94. package/web/app/immutable/chunks/C2wAzMR4.js +176 -0
  95. package/web/app/immutable/chunks/{DHuPiSx5.js → C3UeOegI.js} +1 -1
  96. package/web/app/immutable/chunks/{DYBIQz8Q.js → C4GIXttQ.js} +1 -1
  97. package/web/app/immutable/chunks/{n_DC9aJx.js → C4_rKMDp.js} +13 -13
  98. package/web/app/immutable/chunks/{DA_NmGws.js → C4ndhNfG.js} +1 -1
  99. package/web/app/immutable/chunks/{DABONrQm.js → C4pyVvwk.js} +1 -1
  100. package/web/app/immutable/chunks/{CVAjc0yi.js → C6NQnjdC.js} +1 -1
  101. package/web/app/immutable/chunks/{D19QUWJk.js → C6XOSM-4.js} +1 -1
  102. package/web/app/immutable/chunks/{CGAW_CqO.js → C6pmzcFd.js} +1 -1
  103. package/web/app/immutable/chunks/{CLEN2qBh.js → C6sQTdfe.js} +1 -1
  104. package/web/app/immutable/chunks/{BV6tz7in.js → C6vubJsO.js} +1 -1
  105. package/web/app/immutable/chunks/{DNbGju-D.js → C7XLe6Fq.js} +1 -1
  106. package/web/app/immutable/chunks/{2f17jIS_.js → C8b1hAiZ.js} +1 -1
  107. package/web/app/immutable/chunks/{_yja1RDN.js → C9YJ2_w0.js} +1 -1
  108. package/web/app/immutable/chunks/{DBzwbLy-.js → C9nffMna.js} +1 -1
  109. package/web/app/immutable/chunks/{C1rlyspR.js → CAEXUpGf.js} +1 -1
  110. package/web/app/immutable/chunks/{elqYuZ6s.js → CAqlFYYX.js} +1 -1
  111. package/web/app/immutable/chunks/{jCb2rWV2.js → CBgqNyOn.js} +1 -1
  112. package/web/app/immutable/chunks/{B7D3Z-Y4.js → CCBDeIiF.js} +1 -1
  113. package/web/app/immutable/chunks/{C79wLg62.js → CCDDqQJs.js} +1 -1
  114. package/web/app/immutable/chunks/{DP4Ph7EA.js → CCm0OKl5.js} +1 -1
  115. package/web/app/immutable/chunks/CDNiWmce.js +1 -0
  116. package/web/app/immutable/chunks/{7QQiv-wr.js → CDSuKhpz.js} +1 -1
  117. package/web/app/immutable/chunks/{BUG9TrVX.js → CE2LFl-Z.js} +1 -1
  118. package/web/app/immutable/chunks/CE9WteXp.js +1 -0
  119. package/web/app/immutable/chunks/{Q1GArL_y.js → CFidbeSw.js} +1 -1
  120. package/web/app/immutable/chunks/{Dw_UfDsA.js → CFtRsKmm.js} +1 -1
  121. package/web/app/immutable/chunks/{DLLVCgsV.js → CGDxdR4I.js} +1 -1
  122. package/web/app/immutable/chunks/{DDy_8zbA.js → CH6-PW8d.js} +1 -1
  123. package/web/app/immutable/chunks/{XHWmx2fo.js → CI4L9sp8.js} +1 -1
  124. package/web/app/immutable/chunks/{DV6XB2ci.js → CJ9TjlSl.js} +1 -1
  125. package/web/app/immutable/chunks/{Vm4nXzsi.js → CJAHD8Av.js} +1 -1
  126. package/web/app/immutable/chunks/{CC7j966i.js → CKwXUgM5.js} +1 -1
  127. package/web/app/immutable/chunks/{nXQJ8vXX.js → CLDOuGzT.js} +1 -1
  128. package/web/app/immutable/chunks/{DR2SVCXR.js → CLG5hs6R.js} +1 -1
  129. package/web/app/immutable/chunks/{C8i00JgJ.js → CMQcQe3J.js} +1 -1
  130. package/web/app/immutable/chunks/{Be7gn9X-.js → CMmAwBL2.js} +1 -1
  131. package/web/app/immutable/chunks/{BG3WACU1.js → CORIYKie.js} +1 -1
  132. package/web/app/immutable/chunks/{Bff_Rbbv.js → CQ0hCG0n.js} +1 -1
  133. package/web/app/immutable/chunks/{D2jeSuJo.js → CQ2XnxCv.js} +1 -1
  134. package/web/app/immutable/chunks/{_1FSfiRe.js → CQBcB58U.js} +1 -1
  135. package/web/app/immutable/chunks/{CiSSCgqR.js → CQocjKjX.js} +1 -1
  136. package/web/app/immutable/chunks/{CC7Uzavp.js → CR6eaDMw.js} +1 -1
  137. package/web/app/immutable/chunks/{flRZVSKn.js → CRLV4RHy.js} +1 -1
  138. package/web/app/immutable/chunks/{8DKB8YcU.js → CTcdcUyj.js} +1 -1
  139. package/web/app/immutable/chunks/{CXq2AoEa.js → CThSE8LQ.js} +1 -1
  140. package/web/app/immutable/chunks/{CZlp_xaa.js → CXEzZ2hR.js} +1 -1
  141. package/web/app/immutable/chunks/{Dkq3_GD2.js → CXfsvSt9.js} +1 -1
  142. package/web/app/immutable/chunks/{DcS7tCp_.js → CYKcOC1a.js} +1 -1
  143. package/web/app/immutable/chunks/{CZScRu8r.js → CYP3WRBZ.js} +1 -1
  144. package/web/app/immutable/chunks/{DbF4GEUt.js → CZLC2BGb.js} +1 -1
  145. package/web/app/immutable/chunks/{D7W8zNV0.js → Ca-5qIPO.js} +1 -1
  146. package/web/app/immutable/chunks/{_5QQ1P8H.js → CaD-rr4v.js} +1 -1
  147. package/web/app/immutable/chunks/{BVZHN8O1.js → CcNWV5oe.js} +1 -1
  148. package/web/app/immutable/chunks/{DOB06fXT.js → CfsrLxYu.js} +1 -1
  149. package/web/app/immutable/chunks/CgZG1QkR.js +1 -0
  150. package/web/app/immutable/chunks/{DI85QvsH.js → Ch4PqakC.js} +1 -1
  151. package/web/app/immutable/chunks/{BZvzMoRv.js → ChXvhbof.js} +1 -1
  152. package/web/app/immutable/chunks/{B-7yIMT_.js → ChpnaSsg.js} +1 -1
  153. package/web/app/immutable/chunks/CiTaZNiG.js +1 -0
  154. package/web/app/immutable/chunks/{DzsS0_p_.js → CjuG-F5E.js} +1 -1
  155. package/web/app/immutable/chunks/{DG5HQEoF.js → Ck9E0Ysi.js} +1 -1
  156. package/web/app/immutable/chunks/{4uhoMHE_.js → Ckre-sgD.js} +1 -1
  157. package/web/app/immutable/chunks/{CL7qDIdV.js → ClEAI4g1.js} +3 -3
  158. package/web/app/immutable/chunks/{Cqru5LxS.js → ClI6BjKq.js} +1 -1
  159. package/web/app/immutable/chunks/{CJeXodn0.js → CmUp-Sqv.js} +1 -1
  160. package/web/app/immutable/chunks/{C0iYgKNx.js → Cng0L1r4.js} +1 -1
  161. package/web/app/immutable/chunks/{BvgeBoe1.js → Cp1SIa9c.js} +1 -1
  162. package/web/app/immutable/chunks/{nPXXKIa-.js → CpUG4uWd.js} +1 -1
  163. package/web/app/immutable/chunks/{DNmf6q32.js → CqSZC6ch.js} +1 -1
  164. package/web/app/immutable/chunks/{zB1IXbXb.js → CrgKt6cz.js} +1 -1
  165. package/web/app/immutable/chunks/{D1BBZ1Su.js → CsC9zelV.js} +1 -1
  166. package/web/app/immutable/chunks/{EAy3xyVJ.js → CvQjTi4D.js} +2 -2
  167. package/web/app/immutable/chunks/{CuNeyUoC.js → CyRyIWdG.js} +1 -1
  168. package/web/app/immutable/chunks/{CvFqJ3aj.js → Cyk2Y411.js} +1 -1
  169. package/web/app/immutable/chunks/{D01RaHSK.js → D-qx9bcE.js} +1 -1
  170. package/web/app/immutable/chunks/{ByTueQZz.js → D1tVMvmo.js} +1 -1
  171. package/web/app/immutable/chunks/{CVBzfNwe.js → D2NUq8UU.js} +1 -1
  172. package/web/app/immutable/chunks/{DmEF8CQK.js → D2c3A473.js} +1 -1
  173. package/web/app/immutable/chunks/{CUYJI5X_.js → D31UPrBJ.js} +1 -1
  174. package/web/app/immutable/chunks/{DVGWHR1H.js → D4nLWqqO.js} +1 -1
  175. package/web/app/immutable/chunks/{1MVyJ09_.js → D67FZ5Lv.js} +1 -1
  176. package/web/app/immutable/chunks/{BkDiy3qO.js → D7WbMK4o.js} +1 -1
  177. package/web/app/immutable/chunks/{CgeqCnG6.js → D7niCCgo.js} +1 -1
  178. package/web/app/immutable/chunks/{CsQLAzr5.js → D9yIi5KK.js} +1 -1
  179. package/web/app/immutable/chunks/{D7sOTjCO.js → DA9Mdvxh.js} +1 -1
  180. package/web/app/immutable/chunks/{DSYQunl3.js → DAw72DZa.js} +1 -1
  181. package/web/app/immutable/chunks/{BNH_hD0i.js → DC8uF3lu.js} +1 -1
  182. package/web/app/immutable/chunks/{Zq02JorO.js → DD5eVBJb.js} +1 -1
  183. package/web/app/immutable/chunks/{CGPTsmEd.js → DDXthoba.js} +1 -1
  184. package/web/app/immutable/chunks/{CJSinxIK.js → DDaa7h_m.js} +1 -1
  185. package/web/app/immutable/chunks/{CdNWk-Bu.js → DEHoDrdd.js} +1 -1
  186. package/web/app/immutable/chunks/{Bo32wczA.js → DFNql_nS.js} +1 -1
  187. package/web/app/immutable/chunks/{kQoy32cr.js → DFYNZGf0.js} +1 -1
  188. package/web/app/immutable/chunks/{T940uwQN.js → DHffIWwt.js} +3 -3
  189. package/web/app/immutable/chunks/{vbGVPT6S.js → DHgdHC6B.js} +1 -1
  190. package/web/app/immutable/chunks/{C1a72gDa.js → DIKaua7R.js} +1 -1
  191. package/web/app/immutable/chunks/{DXJvf4ja.js → DIuXteuM.js} +1 -1
  192. package/web/app/immutable/chunks/{DQloJDQl.js → DJWDj1lZ.js} +1 -1
  193. package/web/app/immutable/chunks/{-Yzk2rdh.js → DJcIRc5D.js} +1 -1
  194. package/web/app/immutable/chunks/{NuBvLfzz.js → DK7i7mSH.js} +1 -1
  195. package/web/app/immutable/chunks/{DywT6cR_.js → DMSGpXyL.js} +2 -2
  196. package/web/app/immutable/chunks/{CIjzTMjk.js → DOaNjGx3.js} +1 -1
  197. package/web/app/immutable/chunks/{plzucQew.js → DP1vd71f.js} +1 -1
  198. package/web/app/immutable/chunks/{BsQjFYUU.js → DQmIdOy5.js} +1 -1
  199. package/web/app/immutable/chunks/{BNXO9e-K.js → DUa7Jvhz.js} +2 -2
  200. package/web/app/immutable/chunks/{CdYki3Ne.js → DUaHJCzY.js} +1 -1
  201. package/web/app/immutable/chunks/{CrG8QfjF.js → DUzPWaFA.js} +1 -1
  202. package/web/app/immutable/chunks/{D8hpao6N.js → DVxqmkFy.js} +1 -1
  203. package/web/app/immutable/chunks/{CaFfZGOK.js → DWEDgLOm.js} +1 -1
  204. package/web/app/immutable/chunks/{DfIwRMMx.js → DWbtFEwH.js} +1 -1
  205. package/web/app/immutable/chunks/{epeXa5Nl.js → DYaRWcpg.js} +1 -1
  206. package/web/app/immutable/chunks/{DdQ2Ee-5.js → DZSVN5v8.js} +1 -1
  207. package/web/app/immutable/chunks/{ClcIbYyp.js → DZtCGZgy.js} +1 -1
  208. package/web/app/immutable/chunks/{yYJfu2JX.js → DaNGy3D8.js} +1 -1
  209. package/web/app/immutable/chunks/{CUPNFNnH.js → DcR44gq9.js} +1 -1
  210. package/web/app/immutable/chunks/{CBM6AzvV.js → DgNEPBVe.js} +1 -1
  211. package/web/app/immutable/chunks/{Cc_mAvF5.js → Dh1ev8RB.js} +1 -1
  212. package/web/app/immutable/chunks/{vojGrKrS.js → DizljkHL.js} +1 -1
  213. package/web/app/immutable/chunks/{COBWKiGh.js → DjY1surq.js} +1 -1
  214. package/web/app/immutable/chunks/{D-37OIYf.js → DjeFU-Mu.js} +1 -1
  215. package/web/app/immutable/chunks/{BVZsZXmm.js → Dk5qPA5a.js} +1 -1
  216. package/web/app/immutable/chunks/{DSQMj_om.js → Dkw1IBph.js} +1 -1
  217. package/web/app/immutable/chunks/{wsJnb2w5.js → DnDBa5Or.js} +4 -4
  218. package/web/app/immutable/chunks/{D8JHIZfM.js → Dqi9bJNf.js} +1 -1
  219. package/web/app/immutable/chunks/{CrrPK0Iv.js → DrLx8OXO.js} +1 -1
  220. package/web/app/immutable/chunks/{Jbhi_cxP.js → DrSdReTn.js} +1 -1
  221. package/web/app/immutable/chunks/{Db_IhgBX.js → DrhiSb3J.js} +3 -3
  222. package/web/app/immutable/chunks/{D-QSPFPS.js → Dtxuz85W.js} +1 -1
  223. package/web/app/immutable/chunks/{D4ILfrQP.js → Du4MGCS4.js} +2 -2
  224. package/web/app/immutable/chunks/{BpOFfIvt.js → Du7ytJ4P.js} +1 -1
  225. package/web/app/immutable/chunks/{CbmUPEyZ.js → DuJdf9UG.js} +1 -1
  226. package/web/app/immutable/chunks/{CqDJmhHZ.js → DuOIvAqY.js} +2 -2
  227. package/web/app/immutable/chunks/{D73fvKXP.js → Dv3pGERg.js} +1 -1
  228. package/web/app/immutable/chunks/{DkPeQV3c.js → DvIus6kU.js} +1 -1
  229. package/web/app/immutable/chunks/{DwzYDj81.js → DwhPYiCJ.js} +1 -1
  230. package/web/app/immutable/chunks/{By1IjcbO.js → Dx9DzOqr.js} +1 -1
  231. package/web/app/immutable/chunks/{KkoOm1V0.js → DxFZ9gq2.js} +1 -1
  232. package/web/app/immutable/chunks/{C0-eX4eQ.js → DxM_2tEs.js} +1 -1
  233. package/web/app/immutable/chunks/{CBRPyq3u.js → Dx_cihQo.js} +3 -3
  234. package/web/app/immutable/chunks/{C8LXsE7b.js → DxgNlamv.js} +1 -1
  235. package/web/app/immutable/chunks/{LSzEWm4Q.js → DyYAxHE8.js} +1 -1
  236. package/web/app/immutable/chunks/{3RdDKrNK.js → DzCzYdRR.js} +1 -1
  237. package/web/app/immutable/chunks/{BVZ3OidP.js → EENIG6sq.js} +1 -1
  238. package/web/app/immutable/chunks/{B5jBKY1h.js → ETRy7Ggy.js} +1 -1
  239. package/web/app/immutable/chunks/{CeXu7r8X.js → F4cRH-lc.js} +1 -1
  240. package/web/app/immutable/chunks/{DMAUyJ2P.js → FkFkR8K2.js} +1 -1
  241. package/web/app/immutable/chunks/{NOaXnPaj.js → G87kWWA0.js} +2 -2
  242. package/web/app/immutable/chunks/{BCaye4Uu.js → HRcGzcZS.js} +1 -1
  243. package/web/app/immutable/chunks/{CrgZFb5y.js → IfYdwdBR.js} +1 -1
  244. package/web/app/immutable/chunks/{N6kzLiXM.js → J04upo63.js} +1 -1
  245. package/web/app/immutable/chunks/{DLxYdmRB.js → J1LWsTd9.js} +1 -1
  246. package/web/app/immutable/chunks/{Bult6xm-.js → JAWGj4Yi.js} +2 -2
  247. package/web/app/immutable/chunks/{g9ZlPi9F.js → Jf_R-Aac.js} +2 -2
  248. package/web/app/immutable/chunks/{CE6pj9s3.js → KYr22_OD.js} +1 -1
  249. package/web/app/immutable/chunks/{oxDrPxDU.js → KilK2UOM.js} +1 -1
  250. package/web/app/immutable/chunks/{DtvdPXC0.js → LwSSBtxX.js} +1 -1
  251. package/web/app/immutable/chunks/{BV1K6wKe.js → M2GCPKoA.js} +1 -1
  252. package/web/app/immutable/chunks/{ByQw5PSS.js → O-SiHQ6R.js} +1 -1
  253. package/web/app/immutable/chunks/{CoaHiAox.js → Or_TQbr1.js} +1 -1
  254. package/web/app/immutable/chunks/{D9tcLZ_Y.js → Qb3uerTr.js} +1 -1
  255. package/web/app/immutable/chunks/{BgyYCiyL.js → Qizor3xZ.js} +1 -1
  256. package/web/app/immutable/chunks/{CpbmyPj0.js → Qm-MZg2p.js} +1 -1
  257. package/web/app/immutable/chunks/{zgekXgkJ.js → QnpVdYT5.js} +1 -1
  258. package/web/app/immutable/chunks/{D2-mq7g4.js → R19W582_.js} +1 -1
  259. package/web/app/immutable/chunks/{DyCS2A-K.js → RGmB-SjS.js} +1 -1
  260. package/web/app/immutable/chunks/{BNZHgKSk.js → UWQdg-A2.js} +1 -1
  261. package/web/app/immutable/chunks/{nK5lgmDU.js → UfUfpfpL.js} +1 -1
  262. package/web/app/immutable/chunks/{N7qvIOuv.js → W_r4iRxt.js} +1 -1
  263. package/web/app/immutable/chunks/{0FRtEAk_.js → WvbffGVg.js} +1 -1
  264. package/web/app/immutable/chunks/{BrQE9aYr.js → Xu7DniMQ.js} +1 -1
  265. package/web/app/immutable/chunks/{CSRsy1MH.js → XvnVMArq.js} +1 -1
  266. package/web/app/immutable/chunks/{CIW89ENH.js → ZTWlL5zM.js} +1 -1
  267. package/web/app/immutable/chunks/{BDq2t_9P.js → _3XbzhXe.js} +1 -1
  268. package/web/app/immutable/chunks/{Bkg1yy3c.js → aa7X5cNm.js} +1 -1
  269. package/web/app/immutable/chunks/{Bzd2CMX7.js → awTIGLLj.js} +1 -1
  270. package/web/app/immutable/chunks/{DM4O8kyl.js → bP8UGzws.js} +1 -1
  271. package/web/app/immutable/chunks/{CvBqgDaO.js → c4H2cXzd.js} +1 -1
  272. package/web/app/immutable/chunks/{CPnsz9Hs.js → cH4zbEq8.js} +1 -1
  273. package/web/app/immutable/chunks/{BChgcxXb.js → cn1R3ng9.js} +3 -3
  274. package/web/app/immutable/chunks/{DOpB1zPF.js → dDu7RcXM.js} +1 -1
  275. package/web/app/immutable/chunks/{zAJ7GuqN.js → dVG3dMki.js} +1 -1
  276. package/web/app/immutable/chunks/{zGpo4Blc.js → dZVNnMZs.js} +3 -3
  277. package/web/app/immutable/chunks/{9M4Pl7xy.js → dqo-Nkop.js} +1 -1
  278. package/web/app/immutable/chunks/{CdZoWikL.js → gHustHEr.js} +1 -1
  279. package/web/app/immutable/chunks/{DlKmdKxb.js → jLuOcx2N.js} +1 -1
  280. package/web/app/immutable/chunks/{D6iZo_ET.js → jhvKFO58.js} +1 -1
  281. package/web/app/immutable/chunks/{DCbtEZw8.js → l-VTMc_p.js} +1 -1
  282. package/web/app/immutable/chunks/{ByW7bxEK.js → qD_x_a7m.js} +1 -1
  283. package/web/app/immutable/chunks/{BNJBQg5K.js → sYvdi7eG.js} +1 -1
  284. package/web/app/immutable/chunks/{BQDjmnIn.js → stD6q5ZD.js} +1 -1
  285. package/web/app/immutable/chunks/{DiCNp-8B.js → u_sm9GBc.js} +1 -1
  286. package/web/app/immutable/chunks/{DiuuSzCC.js → vf6pveFy.js} +1 -1
  287. package/web/app/immutable/chunks/{CIu-y8lY.js → wAO5YQrd.js} +1 -1
  288. package/web/app/immutable/chunks/{hwmpZCuz.js → xQ1tvRyj.js} +1 -1
  289. package/web/app/immutable/chunks/{wM5E_fWg.js → xnUCUXHt.js} +1 -1
  290. package/web/app/immutable/chunks/{PtztmcML.js → yQ7GpLm3.js} +1 -1
  291. package/web/app/immutable/chunks/{1Kd2V6Ma.js → yVGqQrjf.js} +1 -1
  292. package/web/app/immutable/chunks/{LYm3QdT8.js → yyRLwoJz.js} +1 -1
  293. package/web/app/immutable/chunks/{DAg74Tfa.js → zHH7Kw4o.js} +1 -1
  294. package/web/app/immutable/entry/{app.D2bTUfu9.js → app.CMLUt8-K.js} +3 -3
  295. package/web/app/immutable/entry/start.D1qRxQ8x.js +1 -0
  296. package/web/app/immutable/nodes/{0.CPawR9BC.js → 0.BYH6vQW3.js} +1 -1
  297. package/web/app/immutable/nodes/{1.BlDqJU7r.js → 1.BAkbiSMg.js} +1 -1
  298. package/web/app/immutable/nodes/{10.BAMGMKNX.js → 10.DqnjBdnF.js} +5 -5
  299. package/web/app/immutable/nodes/{11.-7mABFeH.js → 11.mfKuarNN.js} +1 -1
  300. package/web/app/immutable/nodes/{12.CjcrqPFZ.js → 12.B8dwNd6E.js} +1 -1
  301. package/web/app/immutable/nodes/{13.Bc2gRY3E.js → 13.5M8H2X4b.js} +1 -1
  302. package/web/app/immutable/nodes/{14.W7UKKBbJ.js → 14.BzYka-40.js} +3 -3
  303. package/web/app/immutable/nodes/15.BcZNrBDb.js +3 -0
  304. package/web/app/immutable/nodes/{16.nAu8Tcun.js → 16.BZoPxych.js} +1 -1
  305. package/web/app/immutable/nodes/{17.BmHoggX-.js → 17.Cqw6uBts.js} +1 -1
  306. package/web/app/immutable/nodes/{18.CDqK9mtR.js → 18.Bhk-SJCV.js} +1 -1
  307. package/web/app/immutable/nodes/{19.BLC2e5Ym.js → 19.CKvaRxuS.js} +2 -2
  308. package/web/app/immutable/nodes/{2.CclojtZK.js → 2.BQJHslkB.js} +4 -4
  309. package/web/app/immutable/nodes/{20.DR7-1biV.js → 20.Dwc7t9AX.js} +1 -1
  310. package/web/app/immutable/nodes/{3.9s7e_J-v.js → 3.BLUctLcc.js} +1 -1
  311. package/web/app/immutable/nodes/{4.B6oC0aEI.js → 4.7Oh8cVZj.js} +1 -1
  312. package/web/app/immutable/nodes/{5.BhdMAH02.js → 5.C8XFrbrE.js} +1 -1
  313. package/web/app/immutable/nodes/{6.cb_yhLRO.js → 6.BfVTL0z7.js} +1 -1
  314. package/web/app/immutable/nodes/{7.CW5VpJ10.js → 7.B5PW7bVT.js} +1 -1
  315. package/web/app/immutable/nodes/{8.BCzBaaLq.js → 8.gpXKsW1b.js} +1 -1
  316. package/web/app/immutable/nodes/{9.CUYXVSxZ.js → 9.Do91vdif.js} +4 -4
  317. package/web/app/version.json +1 -1
  318. package/web/generated/paraglide.js +49 -49
  319. package/web/index.html +18 -18
  320. package/web/app/immutable/chunks/B0MfNWkm.js +0 -1
  321. package/web/app/immutable/chunks/BfX15qhw.js +0 -1
  322. package/web/app/immutable/chunks/C1QwTBKK.js +0 -176
  323. package/web/app/immutable/chunks/CBVyphqp.js +0 -1
  324. package/web/app/immutable/chunks/DDSNlYGe.js +0 -4
  325. package/web/app/immutable/chunks/Or0TMIv9.js +0 -1
  326. package/web/app/immutable/entry/start.BjNeM0go.js +0 -1
  327. package/web/app/immutable/nodes/15.B7EMAryy.js +0 -3
@@ -1 +1 @@
1
- import{t as Me,bo as u,bw as Ae,b as Se}from"./BfX15qhw.js";import{ai as He,bs as Re,ca as ze,aD as n,bk as Le,a7 as Oe,ay as Ie,W as D,bn as Ve,bV as J,c0 as We,aA as f,a5 as K,bf as Q,bA as X,bH as R,b_ as Y,aw as N,aj as k,aB as ye,c9 as q}from"./CJxGDkBm.js";import{i as Be}from"./CdNWk-Bu.js";import{s as Z}from"./CXq2AoEa.js";import{n as F,l as ge,c as pe}from"./i9nNzXN1.js";import{s as P,f as $,g as ve}from"./DLxYdmRB.js";import{b as ee}from"./NtFyWdpR.js";import{P as Te}from"./BUG9TrVX.js";import{s as De}from"./BsieX9dN.js";import{c as Ne,u as ke,s as qe,a as Fe}from"./DJfJ5NWH.js";var Ue=ye('<div data-static-position="" role="tooltip"><!></div>'),be=ye('<div role="tooltip"><!></div>');function je(te,a){if(new.target)return Me({component:je,...te});Re(a,!0);let C=u(a,"id",7),h=u(a,"anchor",7),r=u(a,"position",7,"right"),b=u(a,"absolute",7,!1),w=u(a,"anchorElement",7,null),y=u(a,"staticPosition",7,!1),E=u(a,"class",7,""),M=u(a,"children",7),z=u(a,"onmouseenter",7),L=u(a,"onmouseleave",7),O=u(a,"onfocusin",7),I=u(a,"onfocusout",7);const A=Ne(ke()+2);qe(A);const U=Fe(A),d=8,m=4;let l=J(null),ne=J(""),oe=J(void 0);const S=q(()=>r()==="bottom-right"||r()==="bottom-left"),g=q(()=>r()==="top"),j=q(()=>y()?"relative":b()?"absolute":"fixed"),re=q(()=>r()==="right"?{x:-4,y:0}:r()==="bottom"?{x:4,y:0}:n(g)?{x:0,y:4}:{x:0,y:-4});function se(t,e,c){return Math.max(e,Math.min(c,t))}let p=null,ie=null;function ae(){return!p?.isConnected||ie!==h()?!1:p.style.getPropertyValue("anchor-name").includes(h())||getComputedStyle(p).getPropertyValue("anchor-name").includes(h())}function le(){return w()?w():(ae()||(p=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(t=>{const e=t.style.getPropertyValue("anchor-name"),c=getComputedStyle(t).getPropertyValue("anchor-name");return e.includes(h())||c.includes(h())})??null,ie=p?h():null),p)}function ce(){if(y()||b()||!n(l))return;const t=le();if(!t)return;const e=t.getBoundingClientRect(),c=n(l).getBoundingClientRect(),o=window.innerWidth||document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight,v=c.width||n(l).offsetWidth,i=c.height||n(l).offsetHeight,W=Math.max(0,e.top-m-d),B=Math.max(0,s-e.bottom-m-d),me=n(g)?!(W<i&&B>W):n(S)&&B<i&&W>B;let x=e.left,_=e.bottom+m,T=me?W:B;if(r()==="right"){const Ee=e.left-m-d,he=o-e.right-m-d;x=he>=v||he>=Ee?e.right+m:e.left-v-m,_=e.top,T=Math.max(0,s-d*2)}else r()==="bottom"?(x=e.left-v-m,_=e.bottom-i):(n(g)||n(S))&&(r()==="bottom-left"?x=e.right-v:n(g)&&(x=e.left+e.width/2-v/2),_=me?e.top-Math.min(i,T)-m:e.bottom+m);x=se(x,d,Math.max(d,o-v-d)),_=se(_,d,Math.max(d,s-Math.min(i,T)-d)),R(oe,`${T}px`),R(ne,`left: ${x}px; top: ${_}px;`)}let G=!1;async function ue(){G||(G=!0,await We(),G=!1,ce())}let H=null;function V(){H||(H=De(()=>{H=null,ce()}))}function fe(t){const e=w()??(ae()?p:null);e&&t.target instanceof Node&&!t.target.contains(e)||V()}ze(()=>{const t=n(l),e=w();y()||b()||!t||!e||ue()}),Le(()=>{if(y())return;let t=null;return ue().then(()=>{if(!b()&&typeof ResizeObserver<"u"){t=new ResizeObserver(V),n(l)&&t.observe(n(l));const e=le();e&&t.observe(e)}}),window.addEventListener("resize",V),window.addEventListener("scroll",fe,!0),()=>{t?.disconnect(),window.removeEventListener("resize",V),window.removeEventListener("scroll",fe,!0),H?.(),H=null}});var xe={get id(){return C()},set id(t){C(t),f()},get anchor(){return h()},set anchor(t){h(t),f()},get position(){return r()},set position(t="right"){r(t),f()},get absolute(){return b()},set absolute(t=!1){b(t),f()},get anchorElement(){return w()},set anchorElement(t=null){w(t),f()},get staticPosition(){return y()},set staticPosition(t=!1){y(t),f()},get class(){return E()},set class(t=""){E(t),f()},get children(){return M()},set children(t){M(t),f()},get onmouseenter(){return z()},set onmouseenter(t){z(t),f()},get onmouseleave(){return L()},set onmouseleave(t){L(t),f()},get onfocusin(){return O()},set onfocusin(t){O(t),f()},get onfocusout(){return I()},set onfocusout(t){I(t),f()},$set:Ae,$on:(t,e)=>Se(a,t,e)},de=Oe(),we=Ie(de);{var _e=t=>{var e=Ue(),c=K(e);Z(c,()=>M()??Q),X(e),ee(e,o=>R(l,o),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(e,"data-surface-level",A)}),D(t,e)},Pe=t=>{var e=be();let c;var o=K(e);Z(o,()=>M()??Q),X(e),ee(e,s=>R(l,s),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${U} `+E()),P(e,"data-surface-level",A),c=ve(e,"",c,{"position-anchor":h(),right:r()==="bottom"?"anchor(left)":void 0,left:r()==="right"?"anchor(right)":n(S)?"anchor(left)":n(g)?"anchor(center)":void 0,top:r()==="right"?"anchor(top)":n(S)?"anchor(bottom)":void 0,bottom:r()==="bottom"?"anchor(bottom)":n(g)?"anchor(top)":void 0,"margin-right":r()==="bottom"?"8px":void 0,"margin-left":r()==="right"?"8px":void 0,"margin-top":n(S)?"4px":void 0,"margin-bottom":n(g)?"4px":void 0,translate:n(g)?"-50% 0":void 0})}),N("mouseenter",e,function(...s){z()?.apply(this,s)}),N("mouseleave",e,function(...s){L()?.apply(this,s)}),k("focusin",e,function(...s){O()?.apply(this,s)}),k("focusout",e,function(...s){I()?.apply(this,s)}),F(1,e,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,e,()=>pe,()=>({tier:"fast"})),D(t,e)},Ce=t=>{Te(t,{zIndex:50,children:(e,c)=>{var o=be();let s;var v=K(o);Z(v,()=>M()??Q),X(o),ee(o,i=>R(l,i),()=>n(l)),Y(()=>{P(o,"id",C()),$(o,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(o,"data-surface-level",A),s=ve(o,n(ne),s,{"max-height":n(oe)})}),N("mouseenter",o,function(...i){z()?.apply(this,i)}),N("mouseleave",o,function(...i){L()?.apply(this,i)}),k("focusin",o,function(...i){O()?.apply(this,i)}),k("focusout",o,function(...i){I()?.apply(this,i)}),F(1,o,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,o,()=>pe,()=>({tier:"fast"})),D(e,o)},$$slots:{default:!0}})};Be(we,t=>{y()?t(_e):b()?t(Pe,1):t(Ce,-1)})}return D(te,de),Ve(xe)}He(["focusin","focusout"]);export{je as H};
1
+ import{t as Me,bo as u,bw as Ae,b as Se}from"./CDNiWmce.js";import{ai as He,bs as Re,ca as ze,aD as n,bk as Le,a7 as Oe,ay as Ie,W as D,bn as Ve,bV as J,c0 as We,aA as f,a5 as K,bf as Q,bA as X,bH as R,b_ as Y,aw as N,aj as k,aB as ye,c9 as q}from"./CJxGDkBm.js";import{i as Be}from"./DEHoDrdd.js";import{s as Z}from"./CThSE8LQ.js";import{n as F,l as ge,c as pe}from"./BR6IlpMz.js";import{s as P,f as $,g as ve}from"./J1LWsTd9.js";import{b as ee}from"./NtFyWdpR.js";import{P as Te}from"./CE2LFl-Z.js";import{s as De}from"./BsieX9dN.js";import{c as Ne,u as ke,s as qe,a as Fe}from"./DJfJ5NWH.js";var Ue=ye('<div data-static-position="" role="tooltip"><!></div>'),be=ye('<div role="tooltip"><!></div>');function je(te,a){if(new.target)return Me({component:je,...te});Re(a,!0);let C=u(a,"id",7),h=u(a,"anchor",7),r=u(a,"position",7,"right"),b=u(a,"absolute",7,!1),w=u(a,"anchorElement",7,null),y=u(a,"staticPosition",7,!1),E=u(a,"class",7,""),M=u(a,"children",7),z=u(a,"onmouseenter",7),L=u(a,"onmouseleave",7),O=u(a,"onfocusin",7),I=u(a,"onfocusout",7);const A=Ne(ke()+2);qe(A);const U=Fe(A),d=8,m=4;let l=J(null),ne=J(""),oe=J(void 0);const S=q(()=>r()==="bottom-right"||r()==="bottom-left"),g=q(()=>r()==="top"),j=q(()=>y()?"relative":b()?"absolute":"fixed"),re=q(()=>r()==="right"?{x:-4,y:0}:r()==="bottom"?{x:4,y:0}:n(g)?{x:0,y:4}:{x:0,y:-4});function se(t,e,c){return Math.max(e,Math.min(c,t))}let p=null,ie=null;function ae(){return!p?.isConnected||ie!==h()?!1:p.style.getPropertyValue("anchor-name").includes(h())||getComputedStyle(p).getPropertyValue("anchor-name").includes(h())}function le(){return w()?w():(ae()||(p=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(t=>{const e=t.style.getPropertyValue("anchor-name"),c=getComputedStyle(t).getPropertyValue("anchor-name");return e.includes(h())||c.includes(h())})??null,ie=p?h():null),p)}function ce(){if(y()||b()||!n(l))return;const t=le();if(!t)return;const e=t.getBoundingClientRect(),c=n(l).getBoundingClientRect(),o=window.innerWidth||document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight,v=c.width||n(l).offsetWidth,i=c.height||n(l).offsetHeight,W=Math.max(0,e.top-m-d),B=Math.max(0,s-e.bottom-m-d),me=n(g)?!(W<i&&B>W):n(S)&&B<i&&W>B;let x=e.left,_=e.bottom+m,T=me?W:B;if(r()==="right"){const Ee=e.left-m-d,he=o-e.right-m-d;x=he>=v||he>=Ee?e.right+m:e.left-v-m,_=e.top,T=Math.max(0,s-d*2)}else r()==="bottom"?(x=e.left-v-m,_=e.bottom-i):(n(g)||n(S))&&(r()==="bottom-left"?x=e.right-v:n(g)&&(x=e.left+e.width/2-v/2),_=me?e.top-Math.min(i,T)-m:e.bottom+m);x=se(x,d,Math.max(d,o-v-d)),_=se(_,d,Math.max(d,s-Math.min(i,T)-d)),R(oe,`${T}px`),R(ne,`left: ${x}px; top: ${_}px;`)}let G=!1;async function ue(){G||(G=!0,await We(),G=!1,ce())}let H=null;function V(){H||(H=De(()=>{H=null,ce()}))}function fe(t){const e=w()??(ae()?p:null);e&&t.target instanceof Node&&!t.target.contains(e)||V()}ze(()=>{const t=n(l),e=w();y()||b()||!t||!e||ue()}),Le(()=>{if(y())return;let t=null;return ue().then(()=>{if(!b()&&typeof ResizeObserver<"u"){t=new ResizeObserver(V),n(l)&&t.observe(n(l));const e=le();e&&t.observe(e)}}),window.addEventListener("resize",V),window.addEventListener("scroll",fe,!0),()=>{t?.disconnect(),window.removeEventListener("resize",V),window.removeEventListener("scroll",fe,!0),H?.(),H=null}});var xe={get id(){return C()},set id(t){C(t),f()},get anchor(){return h()},set anchor(t){h(t),f()},get position(){return r()},set position(t="right"){r(t),f()},get absolute(){return b()},set absolute(t=!1){b(t),f()},get anchorElement(){return w()},set anchorElement(t=null){w(t),f()},get staticPosition(){return y()},set staticPosition(t=!1){y(t),f()},get class(){return E()},set class(t=""){E(t),f()},get children(){return M()},set children(t){M(t),f()},get onmouseenter(){return z()},set onmouseenter(t){z(t),f()},get onmouseleave(){return L()},set onmouseleave(t){L(t),f()},get onfocusin(){return O()},set onfocusin(t){O(t),f()},get onfocusout(){return I()},set onfocusout(t){I(t),f()},$set:Ae,$on:(t,e)=>Se(a,t,e)},de=Oe(),we=Ie(de);{var _e=t=>{var e=Ue(),c=K(e);Z(c,()=>M()??Q),X(e),ee(e,o=>R(l,o),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(e,"data-surface-level",A)}),D(t,e)},Pe=t=>{var e=be();let c;var o=K(e);Z(o,()=>M()??Q),X(e),ee(e,s=>R(l,s),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${U} `+E()),P(e,"data-surface-level",A),c=ve(e,"",c,{"position-anchor":h(),right:r()==="bottom"?"anchor(left)":void 0,left:r()==="right"?"anchor(right)":n(S)?"anchor(left)":n(g)?"anchor(center)":void 0,top:r()==="right"?"anchor(top)":n(S)?"anchor(bottom)":void 0,bottom:r()==="bottom"?"anchor(bottom)":n(g)?"anchor(top)":void 0,"margin-right":r()==="bottom"?"8px":void 0,"margin-left":r()==="right"?"8px":void 0,"margin-top":n(S)?"4px":void 0,"margin-bottom":n(g)?"4px":void 0,translate:n(g)?"-50% 0":void 0})}),N("mouseenter",e,function(...s){z()?.apply(this,s)}),N("mouseleave",e,function(...s){L()?.apply(this,s)}),k("focusin",e,function(...s){O()?.apply(this,s)}),k("focusout",e,function(...s){I()?.apply(this,s)}),F(1,e,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,e,()=>pe,()=>({tier:"fast"})),D(t,e)},Ce=t=>{Te(t,{zIndex:50,children:(e,c)=>{var o=be();let s;var v=K(o);Z(v,()=>M()??Q),X(o),ee(o,i=>R(l,i),()=>n(l)),Y(()=>{P(o,"id",C()),$(o,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(o,"data-surface-level",A),s=ve(o,n(ne),s,{"max-height":n(oe)})}),N("mouseenter",o,function(...i){z()?.apply(this,i)}),N("mouseleave",o,function(...i){L()?.apply(this,i)}),k("focusin",o,function(...i){O()?.apply(this,i)}),k("focusout",o,function(...i){I()?.apply(this,i)}),F(1,o,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,o,()=>pe,()=>({tier:"fast"})),D(e,o)},$$slots:{default:!0}})};Be(we,t=>{y()?t(_e):b()?t(Pe,1):t(Ce,-1)})}return D(te,de),Ve(xe)}He(["focusin","focusout"]);export{je as H};
@@ -1,2 +1,2 @@
1
- import{b as e,ay as s,aX as o,B as i}from"./wsJnb2w5.js";import{p as g}from"./BLN77Nun.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
1
+ import{b as e,ay as s,aX as o,B as i}from"./DnDBa5Or.js";import{p as g}from"./BeQ5cBZr.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},b={parser:p,db:m,renderer:f};export{b as diagram};
@@ -1 +1 @@
1
- import{bn as h,e as p}from"./ByW7bxEK.js";import{S as b,U as g}from"./BJBg5aea.js";import{h as c}from"./PVXvIyE8.js";function k(e){switch(e?.state){case"pending":return{phase:"preparing"};case"running":return{phase:"runningSetup"};case"failed":{const t=e.error?.startsWith("node-setup-timeout")===!0;return e.exitCode===void 0&&!e.startedAt&&!t?{phase:"openFailed",error:e.error?.trim()||null}:{phase:"setupFailed",exitCode:e.exitCode??null,timedOut:t,error:e.exitCode===void 0&&!t&&e.error?.trim()||null}}default:return null}}function w(e){switch(e){case"attached":return"attached";case"detached":return"detached";case"moving":return"moving";case"starting":return"starting";default:return"unknown"}}function l(e){const t=e?.home;if(!t)return null;const n=w(t.state),o=n==="starting",a=n==="detached"||n==="moving",i=n==="attached"?k(t.setup):null,m=i?i.phase==="openFailed"||i.phase==="setupFailed"?"setupFailed":"opening":null,f=n==="attached"?m??(t.backupWarning===!0?"backupWarning":null):a?n:null;return{name:t.name,state:t.state,starting:o,unknownState:n==="unknown",unavailable:n!=="attached",lastBackupAt:t.lastBackupAt??null,banner:f,marker:a?n:null,canWait:n==="detached",canMove:n!=="moving",moveWarning:n==="detached",setup:i}}const I=12e3,v={workspaceId:null,generation:0,usableSince:null,waited:!1};function B(e,t){if(!t.loaded)return e;const n=e.workspaceId===t.workspaceId?e:{...v,workspaceId:t.workspaceId,generation:e.generation};return t.unavailable?n.waited?n:n.usableSince===null||t.now-n.usableSince<=I?{...n,usableSince:null,waited:!0}:n:n.waited?{...n,generation:t.contentLoaded?n.generation:n.generation+1,usableSince:t.now,waited:!1}:n.usableSince===null?{...n,usableSince:t.now}:n}const r="agent:",s="machine:",d="cloud:";function u(e){return"agentId"in e?`${r}${e.agentId}`:e.kind==="machine"?`${s}${e.nodeId}`:`${d}${e.cloudMachineId}`}function R(e){const t=n=>e.startsWith(n)?e.slice(n.length):"";return t(r)?{agentId:t(r)}:t(s)?{kind:"machine",nodeId:t(s)}:t(d)?{kind:"cloud",cloudMachineId:t(d)}:null}function S(e){return!e.nodeId||e.placementError||e.status===p.Deleted||e.retiredAt?!1:e.nodeState===void 0||e.nodeState==="ready"}function O({agents:e,machineRows:t}){const n=e.filter(S).map(a=>({key:u({agentId:String(a.id)}),kind:"agent",label:a.name,machineName:a.nodeName?.trim()||void 0,nodeId:a.nodeId,platform:null,disabled:!1})),o=t.filter(a=>a.id!==b).map(a=>{const i=g(a.id);return{key:u(i?{kind:"cloud",cloudMachineId:i}:{kind:"machine",nodeId:a.id}),kind:i?"cloud":"machine",label:a.label,platform:a.platform,disabled:a.disabled,...a.reason?{reason:a.reason}:{}}});return[...n,...o]}const E=new Set(["homes-unsupported","home-moving","home-target-unavailable","machine-update-required"]);function _(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t===-32003)return"forbidden";const o=n?.code;return typeof o=="string"&&E.has(o)?o:null}function C(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t!==-32603||!n||typeof n!="object")return null;const o=n;return o.code!=="home-unavailable"?null:{name:typeof o.name=="string"?o.name:"",lastBackupAt:typeof o.lastBackupAt=="string"?o.lastBackupAt:null,state:o.starting===!0?"starting":o.moving===!0?"moving":"detached"}}function H(e){const t={homeId:"",name:e.name,state:e.state,since:"",...e.lastBackupAt?{lastBackupAt:e.lastBackupAt}:{}};return{...l({home:t}),canWait:!1}}const T=new Set(["file","diff","terminal","changes","local-changes","code-review","chat-changes","activity-changes"]);function A(e){return T.has(e)}function F(e){return e.type==="terminal"&&e.scriptId?!1:A(e.type)}function q(e,t){return t&&e?.status!==h.Retired&&l(e)?.canMove===!0}const N=c("tabWindow/openTabInOwnWindowRequested"),D=c("tabWindow/moveTabBackRequested"),$=c("tabWindow/closeTabWindowTabRequested");export{u as a,C as b,$ as c,F as d,O as e,D as f,H as h,v as i,q as m,B as n,N as o,R as p,_ as s,l as w};
1
+ import{bn as h,e as p}from"./qD_x_a7m.js";import{S as b,U as g}from"./BjhYYm97.js";import{h as c}from"./PVXvIyE8.js";function k(e){switch(e?.state){case"pending":return{phase:"preparing"};case"running":return{phase:"runningSetup"};case"failed":{const t=e.error?.startsWith("node-setup-timeout")===!0;return e.exitCode===void 0&&!e.startedAt&&!t?{phase:"openFailed",error:e.error?.trim()||null}:{phase:"setupFailed",exitCode:e.exitCode??null,timedOut:t,error:e.exitCode===void 0&&!t&&e.error?.trim()||null}}default:return null}}function w(e){switch(e){case"attached":return"attached";case"detached":return"detached";case"moving":return"moving";case"starting":return"starting";default:return"unknown"}}function l(e){const t=e?.home;if(!t)return null;const n=w(t.state),o=n==="starting",a=n==="detached"||n==="moving",i=n==="attached"?k(t.setup):null,m=i?i.phase==="openFailed"||i.phase==="setupFailed"?"setupFailed":"opening":null,f=n==="attached"?m??(t.backupWarning===!0?"backupWarning":null):a?n:null;return{name:t.name,state:t.state,starting:o,unknownState:n==="unknown",unavailable:n!=="attached",lastBackupAt:t.lastBackupAt??null,banner:f,marker:a?n:null,canWait:n==="detached",canMove:n!=="moving",moveWarning:n==="detached",setup:i}}const I=12e3,v={workspaceId:null,generation:0,usableSince:null,waited:!1};function B(e,t){if(!t.loaded)return e;const n=e.workspaceId===t.workspaceId?e:{...v,workspaceId:t.workspaceId,generation:e.generation};return t.unavailable?n.waited?n:n.usableSince===null||t.now-n.usableSince<=I?{...n,usableSince:null,waited:!0}:n:n.waited?{...n,generation:t.contentLoaded?n.generation:n.generation+1,usableSince:t.now,waited:!1}:n.usableSince===null?{...n,usableSince:t.now}:n}const r="agent:",s="machine:",d="cloud:";function u(e){return"agentId"in e?`${r}${e.agentId}`:e.kind==="machine"?`${s}${e.nodeId}`:`${d}${e.cloudMachineId}`}function R(e){const t=n=>e.startsWith(n)?e.slice(n.length):"";return t(r)?{agentId:t(r)}:t(s)?{kind:"machine",nodeId:t(s)}:t(d)?{kind:"cloud",cloudMachineId:t(d)}:null}function S(e){return!e.nodeId||e.placementError||e.status===p.Deleted||e.retiredAt?!1:e.nodeState===void 0||e.nodeState==="ready"}function O({agents:e,machineRows:t}){const n=e.filter(S).map(a=>({key:u({agentId:String(a.id)}),kind:"agent",label:a.name,machineName:a.nodeName?.trim()||void 0,nodeId:a.nodeId,platform:null,disabled:!1})),o=t.filter(a=>a.id!==b).map(a=>{const i=g(a.id);return{key:u(i?{kind:"cloud",cloudMachineId:i}:{kind:"machine",nodeId:a.id}),kind:i?"cloud":"machine",label:a.label,platform:a.platform,disabled:a.disabled,...a.reason?{reason:a.reason}:{}}});return[...n,...o]}const E=new Set(["homes-unsupported","home-moving","home-target-unavailable","machine-update-required"]);function _(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t===-32003)return"forbidden";const o=n?.code;return typeof o=="string"&&E.has(o)?o:null}function C(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t!==-32603||!n||typeof n!="object")return null;const o=n;return o.code!=="home-unavailable"?null:{name:typeof o.name=="string"?o.name:"",lastBackupAt:typeof o.lastBackupAt=="string"?o.lastBackupAt:null,state:o.starting===!0?"starting":o.moving===!0?"moving":"detached"}}function H(e){const t={homeId:"",name:e.name,state:e.state,since:"",...e.lastBackupAt?{lastBackupAt:e.lastBackupAt}:{}};return{...l({home:t}),canWait:!1}}const T=new Set(["file","diff","terminal","changes","local-changes","code-review","chat-changes","activity-changes"]);function A(e){return T.has(e)}function F(e){return e.type==="terminal"&&e.scriptId?!1:A(e.type)}function q(e,t){return t&&e?.status!==h.Retired&&l(e)?.canMove===!0}const N=c("tabWindow/openTabInOwnWindowRequested"),D=c("tabWindow/moveTabBackRequested"),$=c("tabWindow/closeTabWindowTabRequested");export{u as a,C as b,$ as c,F as d,O as e,D as f,H as h,v as i,q as m,B as n,N as o,R as p,_ as s,l as w};
@@ -1 +1 @@
1
- import{t as E,bw as R,bs as p,bq as B,b as K}from"./BfX15qhw.js";import{bs as L,ca as c,bk as W,bn as j}from"./CJxGDkBm.js";import{q as h,p as m,s as y,m as V}from"./DEz0iQL-.js";import"./DLxYdmRB.js";import"./CXq2AoEa.js";import"./Dg1sjsED.js";import"./ChTqQfQN.js";import"./BG3WACU1.js";import{I_ as t,Iw as b,oR as a,qK as z,kc as g}from"./ByW7bxEK.js";function F(N,T){if(new.target)return E({component:F,...N});L(T,!0);const r=()=>p(v,"$ownsNotice$",l),D=()=>p(x,"$toastVisible$",l),u=()=>p(O,"$status$",l),S=()=>p(k,"$dismissedAt$",l),[l,U]=B(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),v=o(),x=h(),O=m(),k=y(),A=1440*60*1e3;let i,w;const I=new Set;function _(s){I.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&_(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(I.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(_(i),i=void 0)}c(()=>{r()&&D()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),w=void 0;return}if(s!==w){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),w=s}}),c(()=>{u()==="downloaded"&&!D()&&S()!==null&&n()}),c(()=>{const s=u(),e=S();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,$=A-d;if($<=0)return;const M=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},$);return()=>clearTimeout(M)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(z()),()=>{n()}));var q={$set:R,$on:(s,e)=>K(T,s,e)},C=j(q);return U(),C}export{F as default};
1
+ import{t as E,bw as R,bs as p,bq as B,b as K}from"./CDNiWmce.js";import{bs as L,ca as c,bk as W,bn as j}from"./CJxGDkBm.js";import{q as h,p as m,s as y,m as V}from"./Bctp9lP7.js";import"./J1LWsTd9.js";import"./CThSE8LQ.js";import"./8VBKAONs.js";import"./ChTqQfQN.js";import"./CORIYKie.js";import{I_ as t,Iw as b,oR as a,qK as z,kc as g}from"./qD_x_a7m.js";function F(N,T){if(new.target)return E({component:F,...N});L(T,!0);const r=()=>p(v,"$ownsNotice$",l),D=()=>p(x,"$toastVisible$",l),u=()=>p(O,"$status$",l),S=()=>p(k,"$dismissedAt$",l),[l,U]=B(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),v=o(),x=h(),O=m(),k=y(),A=1440*60*1e3;let i,w;const I=new Set;function _(s){I.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&_(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(I.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(_(i),i=void 0)}c(()=>{r()&&D()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),w=void 0;return}if(s!==w){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),w=s}}),c(()=>{u()==="downloaded"&&!D()&&S()!==null&&n()}),c(()=>{const s=u(),e=S();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,$=A-d;if($<=0)return;const M=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},$);return()=>clearTimeout(M)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(z()),()=>{n()}));var q={$set:R,$on:(s,e)=>K(T,s,e)},C=j(q);return U(),C}export{F as default};
@@ -1 +1 @@
1
- import{t as re,bo as n,bw as oe,b as se,br as Y,bp as fe}from"./BfX15qhw.js";import{bs as ae,a7 as x,ay as M,W as _,bn as ue,aA as r,bf as z,bo as ve,aD as C,c9 as k,a5 as $,bA as ee,aB as _e,ca as Oe,bI as Te,aG as ze,c0 as Qe,bS as Ce}from"./CJxGDkBm.js";import{c as ie}from"./CrrPK0Iv.js";import{s as Xe,b as je,g as Je}from"./DpqAXGKG.js";import{p as Ze,u as $e}from"./BG3WACU1.js";import{s as T}from"./CXq2AoEa.js";import{aS as A,V as et,av as K,R as tt,H as nt,az as de,N as Ke,a0 as Re,$ as Ne,aQ as ne,aH as he,k as rt,f as ot,a1 as st}from"./Dc2OgodD.js";import"./Dg1sjsED.js";import{b as te,e as De}from"./DLxYdmRB.js";import{i as Z}from"./CdNWk-Bu.js";import{F as at,O as Fe,M as we}from"./ryY3ARJp.js";import{b as ut}from"./Bo32wczA.js";import{c as lt,u as it,s as ct}from"./DJfJ5NWH.js";import{c as dt}from"./Cn4uSlRl.js";function He(s,e){if(new.target)return re({component:He,...s});ae(e,!0);let l=n(e,"open",15,!1),u=n(e,"dir",7,"ltr"),o=n(e,"onOpenChange",7,A),f=n(e,"onOpenChangeComplete",7,A),p=n(e,"_internal_variant",7,"dropdown-menu"),h=n(e,"_internal_should_skip_exit_animation",7,void 0),P=n(e,"children",7);const m=et.create({variant:K(()=>p()),dir:K(()=>u()),onClose:()=>{l(!1),o()(!1)},shouldSkipExitAnimation:()=>h()?.()??!1});tt.create({open:K(()=>l(),i=>{l(i),o()(i)}),onOpenChangeComplete:K(()=>f())},m);var w={get open(){return l()},set open(i=!1){l(i),r()},get dir(){return u()},set dir(i="ltr"){u(i),r()},get onOpenChange(){return o()},set onOpenChange(i=A){o(i),r()},get onOpenChangeComplete(){return f()},set onOpenChangeComplete(i=A){f(i),r()},get _internal_variant(){return p()},set _internal_variant(i="dropdown-menu"){p(i),r()},get _internal_should_skip_exit_animation(){return h()},set _internal_should_skip_exit_animation(i=void 0){h(i),r()},get children(){return P()},set children(i){P(i),r()},$set:oe,$on:(i,O)=>se(e,i,O)};return nt(s,{children:(i,O)=>{var c=x(),v=M(c);T(v,()=>P()??z),_(i,c)},$$slots:{default:!0}}),ue(w)}var ft=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),Ae=_e("<div><div><!></div></div>");function Me(s,e){const l=ve();if(new.target)return re({component:Me,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"child",7),f=n(e,"children",7),p=n(e,"ref",15,null),h=n(e,"loop",7,!0),P=n(e,"onInteractOutside",7,A),m=n(e,"onEscapeKeydown",7,A),w=n(e,"onCloseAutoFocus",7,A),i=n(e,"forceMount",7,!1),O=n(e,"trapFocus",7,!1),c=n(e,"style",7),v=fe(e,ft);const y=Ke.create({id:K(()=>u()),loop:K(()=>h()),ref:K(()=>p(),a=>p(a)),onCloseAutoFocus:K(()=>w())}),S=k(()=>ne(v,y.props));function R(a){if(y.handleInteractOutside(a),!a.defaultPrevented&&(P()(a),!a.defaultPrevented)){if(a.target&&a.target instanceof Element){const L=`[${y.parentMenu.root.getBitsAttr("sub-content")}]`;if(a.target.closest(L))return}y.parentMenu.onClose()}}function H(a){m()(a),!a.defaultPrevented&&y.parentMenu.onClose()}var E={get id(){return u()},set id(a=de(l)){u(a),r()},get child(){return o()},set child(a){o(a),r()},get children(){return f()},set children(a){f(a),r()},get ref(){return p()},set ref(a=null){p(a),r()},get loop(){return h()},set loop(a=!0){h(a),r()},get onInteractOutside(){return P()},set onInteractOutside(a=A){P(a),r()},get onEscapeKeydown(){return m()},set onEscapeKeydown(a=A){m(a),r()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(a=A){w(a),r()},get forceMount(){return i()},set forceMount(a=!1){i(a),r()},get trapFocus(){return O()},set trapFocus(a=!1){O(a),r()},get style(){return c()},set style(a){c(a),r()},$set:oe,$on:(a,L)=>se(e,a,L)},N=x(),Q=M(N);{var ge=a=>{Re(a,Y(()=>C(S),()=>y.popperProps,{get ref(){return y.opts.ref},get enabled(){return y.parentMenu.opts.open.current},onInteractOutside:R,onEscapeKeydown:H,get trapFocus(){return O()},get loop(){return h()},forceMount:!0,get id(){return u()},get shouldRender(){return y.shouldRender},popper:(V,B)=>{let W=()=>(B?.()).props,D=()=>(B?.()).wrapperProps;const q=k(()=>ne(W(),{style:he("dropdown-menu")},{style:c()}));var G=x(),X=M(G);{var I=g=>{var b=x(),F=M(b);{let U=k(()=>({props:C(q),wrapperProps:D(),...y.snippetProps}));T(F,o,()=>C(U))}_(g,b)},t=g=>{var b=Ae();te(b,()=>({...D()}));var F=$(b);te(F,()=>({...C(q)}));var U=$(F);T(U,()=>f()??z),ee(F),ee(b),_(g,b)};Z(X,g=>{o()?g(I):g(t,-1)})}_(V,G)},$$slots:{popper:!0}}))},d=a=>{Ne(a,Y(()=>C(S),()=>y.popperProps,{get ref(){return y.opts.ref},get open(){return y.parentMenu.opts.open.current},onInteractOutside:R,onEscapeKeydown:H,get trapFocus(){return O()},get loop(){return h()},forceMount:!1,get id(){return u()},get shouldRender(){return y.shouldRender},popper:(V,B)=>{let W=()=>(B?.()).props,D=()=>(B?.()).wrapperProps;const q=k(()=>ne(W(),{style:he("dropdown-menu")},{style:c()}));var G=x(),X=M(G);{var I=g=>{var b=x(),F=M(b);{let U=k(()=>({props:C(q),wrapperProps:D(),...y.snippetProps}));T(F,o,()=>C(U))}_(g,b)},t=g=>{var b=Ae();te(b,()=>({...D()}));var F=$(b);te(F,()=>({...C(q)}));var U=$(F);T(U,()=>f()??z),ee(F),ee(b),_(g,b)};Z(X,g=>{o()?g(I):g(t,-1)})}_(V,G)},$$slots:{popper:!0}}))};Z(Q,a=>{i()?a(ge):i()||a(d,1)})}return _(s,N),ue(E)}var gt=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","style"]),ke=_e("<div><!></div>");function Le(s,e){const l=ve();if(new.target)return re({component:Le,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"child",7),f=n(e,"children",7),p=n(e,"ref",15,null),h=n(e,"loop",7,!0),P=n(e,"onInteractOutside",7,A),m=n(e,"onEscapeKeydown",7,A),w=n(e,"onCloseAutoFocus",7,A),i=n(e,"forceMount",7,!1),O=n(e,"style",7),c=fe(e,gt);const v=Ke.create({id:K(()=>u()),loop:K(()=>h()),ref:K(()=>p(),d=>p(d)),onCloseAutoFocus:K(()=>w())}),y=k(()=>ne(c,v.props));function S(d){v.handleInteractOutside(d),!d.defaultPrevented&&(P()(d),!d.defaultPrevented&&v.parentMenu.onClose())}function R(d){m()(d),!d.defaultPrevented&&v.parentMenu.onClose()}var H={get id(){return u()},set id(d=de(l)){u(d),r()},get child(){return o()},set child(d){o(d),r()},get children(){return f()},set children(d){f(d),r()},get ref(){return p()},set ref(d=null){p(d),r()},get loop(){return h()},set loop(d=!0){h(d),r()},get onInteractOutside(){return P()},set onInteractOutside(d=A){P(d),r()},get onEscapeKeydown(){return m()},set onEscapeKeydown(d=A){m(d),r()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=A){w(d),r()},get forceMount(){return i()},set forceMount(d=!1){i(d),r()},get style(){return O()},set style(d){O(d),r()},$set:oe,$on:(d,a)=>se(e,d,a)},E=x(),N=M(E);{var Q=d=>{Re(d,Y(()=>C(y),()=>v.popperProps,{get ref(){return v.opts.ref},get enabled(){return v.parentMenu.opts.open.current},onInteractOutside:S,onEscapeKeydown:R,trapFocus:!0,get loop(){return h()},forceMount:!0,isStatic:!0,get id(){return u()},get shouldRender(){return v.shouldRender},popper:(L,V)=>{let B=()=>(V?.()).props;const W=k(()=>ne(B(),{style:he("dropdown-menu")},{style:O()}));var D=x(),q=M(D);{var G=I=>{var t=x(),g=M(t);{let b=k(()=>({props:C(W),...v.snippetProps}));T(g,o,()=>C(b))}_(I,t)},X=I=>{var t=ke();te(t,()=>({...C(W)}));var g=$(t);T(g,()=>f()??z),ee(t),_(I,t)};Z(q,I=>{o()?I(G):I(X,-1)})}_(L,D)},$$slots:{popper:!0}}))},ge=d=>{Ne(d,Y(()=>C(y),()=>v.popperProps,{get ref(){return v.opts.ref},get open(){return v.parentMenu.opts.open.current},onInteractOutside:S,onEscapeKeydown:R,trapFocus:!0,get loop(){return h()},forceMount:!1,isStatic:!0,get id(){return u()},get shouldRender(){return v.shouldRender},popper:(L,V)=>{let B=()=>(V?.()).props;const W=k(()=>ne(B(),{style:he("dropdown-menu")},{style:O()}));var D=x(),q=M(D);{var G=I=>{var t=x(),g=M(t);{let b=k(()=>({props:C(W),...v.snippetProps}));T(g,o,()=>C(b))}_(I,t)},X=I=>{var t=ke();te(t,()=>({...C(W)}));var g=$(t);T(g,()=>f()??z),ee(t),_(I,t)};Z(q,I=>{o()?I(G):I(X,-1)})}_(L,D)},$$slots:{popper:!0}}))};Z(N,d=>{i()?d(Q):i()||d(ge,1)})}return _(s,E),ue(H)}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),ht=_e("<button><!></button>");function Be(s,e){const l=ve();if(new.target)return re({component:Be,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"ref",15,null),f=n(e,"child",7),p=n(e,"children",7),h=n(e,"disabled",7,!1),P=n(e,"type",7,"button"),m=fe(e,pt);const w=rt.create({id:K(()=>u()),disabled:K(()=>h()??!1),ref:K(()=>o(),c=>o(c))}),i=k(()=>ne(m,w.props,{type:P()}));var O={get id(){return u()},set id(c=de(l)){u(c),r()},get ref(){return o()},set ref(c=null){o(c),r()},get child(){return f()},set child(c){f(c),r()},get children(){return p()},set children(c){p(c),r()},get disabled(){return h()},set disabled(c=!1){h(c),r()},get type(){return P()},set type(c="button"){P(c),r()},$set:oe,$on:(c,v)=>se(e,c,v)};return at(s,{get id(){return u()},get ref(){return w.opts.ref},children:(c,v)=>{var y=x(),S=M(y);{var R=E=>{var N=x(),Q=M(N);T(Q,f,()=>({props:C(i)})),_(E,N)},H=E=>{var N=ht();te(N,()=>({...C(i)}));var Q=$(N);T(Q,()=>p()??z),ee(N),_(E,N)};Z(S,E=>{f()?E(R):E(H,-1)})}_(c,y)},$$slots:{default:!0}}),ue(O)}const ce=[];let me=!1;function Ue(s){if(s.key!=="Escape")return;const e=ce[ce.length-1];if(!e)return;let l=!1;try{l=e.onEscape(s)===!1}finally{l||(s.preventDefault(),s.stopImmediatePropagation())}}function mt(){me||(window.addEventListener("keydown",Ue,{capture:!0}),me=!0)}function vt(){!me||ce.length>0||(window.removeEventListener("keydown",Ue,{capture:!0}),me=!1)}function _t(s){const e={onEscape:s};return ce.push(e),mt(),function(){const u=ce.indexOf(e);u!==-1&&ce.splice(u,1),vt()}}var yt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","onOpenChange"]);function Pt(s,e){if(new.target)return re({component:Pt,...s});ae(e,!0);let l=n(e,"open",15,!1),u=n(e,"staticPosition",7,!1),o=n(e,"onOpenChange",7),f=fe(e,yt);Ze(()=>u()),Xe(()=>{l(!1),o()?.(!1)}),Oe(()=>{if(l())return _t(()=>{l(!1),o()?.(!1)})}),Te("canonical-menu",{get open(){return l()}});var p={get open(){return l()},set open(m=!1){l(m),r()},get staticPosition(){return u()},set staticPosition(m=!1){u(m),r()},get onOpenChange(){return o()},set onOpenChange(m){o(m),r()},$set:oe,$on:(m,w)=>se(e,m,w)},h=x(),P=M(h);return ie(P,()=>He,(m,w)=>{w(m,Y({get onOpenChange(){return o()}},()=>f,{get open(){return l()},set open(i){l(i)}}))}),_(s,h),ue(p)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","child","children"]);function wt(s,e){if(new.target)return re({component:wt,...s});ae(e,!0);const l=(c,v)=>{ot(c,Y(()=>(v?.()).props,{get class(){return C(m)},get active(){return P.open},children:(S,R)=>{var H=x(),E=M(H);T(E,()=>p()??z),_(S,H)},$$slots:{default:!0}}))};let u=n(e,"ref",15,null),o=n(e,"class",7),f=n(e,"child",7),p=n(e,"children",7),h=fe(e,Ct);const P=ze("canonical-menu"),m=k(()=>De(o()));var w={get ref(){return u()},set ref(c=null){u(c),r()},get class(){return o()},set class(c){o(c),r()},get child(){return f()},set child(c){f(c),r()},get children(){return p()},set children(c){p(c),r()},$set:oe,$on:(c,v)=>se(e,c,v)},i=x(),O=M(i);{let c=k(()=>f()??l);ie(O,()=>Be,(v,y)=>{y(v,Y({"data-slot":"menu-trigger",get class(){return C(m)},get child(){return C(c)}},()=>h,{get ref(){return u()},set ref(S){u(S)}}))})}return _(s,i),ue(w)}const bt='[data-slot="menu-content"], [data-slot="menu-sub-content"]';function Ve(s,e){return s.closest(bt)===e}function xe(s){return!s.hasAttribute("data-disabled")&&s.getAttribute("aria-disabled")!=="true"}function We(s){return Array.from(s.querySelectorAll("[data-menu-item]")).filter(e=>Ve(e,s))}function Ie(s,e){const l=We(s),u=l.filter(xe),o=u.find(p=>p.hasAttribute("data-highlighted")),f=e&&u.includes(e)?e:o??u[0];for(const p of l)p.tabIndex=p===f?0:-1}function Ot(s,e){const l=e instanceof Element?e.closest("[data-menu-item]"):null;l&&Ve(l,s)&&xe(l)&&Ie(s,l)}function Mt(s,e,l,u){if(s.length===0)return-1;const o=Math.min(Math.max(e,0),s.length-1),f=Math.min(Math.max(o+u,0),s.length-1),p=l.clientHeight||l.getBoundingClientRect().height;if(p<=0)return f;const h=s[o].getBoundingClientRect(),P=h.top+h.height/2+u*p;let m=f,w=Number.POSITIVE_INFINITY;for(let i=f;i>=0&&i<s.length;i+=u){const O=s[i].getBoundingClientRect(),c=Math.abs(O.top+O.height/2-P);c<w&&(w=c,m=i)}return m}function xt(s,e){if(e.key!=="PageUp"&&e.key!=="PageDown")return!1;const l=We(s).filter(xe);if(l.length===0)return!1;const u=document.activeElement instanceof HTMLElement?document.activeElement.closest("[data-menu-item]"):null,o=Math.max(0,u?l.indexOf(u):l.findIndex(p=>p.tabIndex===0)),f=l[Mt(l,o,s,e.key==="PageDown"?1:-1)];return f?(e.preventDefault(),Ie(s,f),f.focus({preventScroll:!0}),f.scrollIntoView?.({block:"nearest"}),!0):!1}const Gt=Symbol("canonical-submenu"),It=Symbol("canonical-submenu-content-class");var St=new Set(["$$slots","$$events","$$legacy","id","ref","class","subContentClass","portal","portalProps","staticPosition","alignIconColumn","sideOffset","collisionPadding","onkeydown","onfocusin","onOpenAutoFocus","maxHeight","children"]),be=_e("<!> <!>",1);function Et(s,e){const l=ve();if(new.target)return re({component:Et,...s});ae(e,!0);let u=n(e,"id",23,()=>`${l}-content`),o=n(e,"ref",15,null),f=n(e,"class",7),p=n(e,"subContentClass",7),h=n(e,"portal",7,!0),P=n(e,"portalProps",7),m=n(e,"staticPosition",7),w=n(e,"alignIconColumn",7,!0),i=n(e,"sideOffset",7,4),O=n(e,"collisionPadding",7,Fe),c=n(e,"onkeydown",7),v=n(e,"onfocusin",7),y=n(e,"onOpenAutoFocus",7),S=n(e,"maxHeight",7,"var(--bits-dropdown-menu-content-available-height, calc(100dvh - 1rem))"),R=n(e,"children",7),H=fe(e,St);const E=je(),N=Je();Oe(()=>{const t=o();if(!(!t||!E))return E.register(t,N)});const Q=$e();Te(It,()=>p()),dt(()=>w());const ge=k(()=>m()??Q()),d=lt(it()+2);ct(d);const a=k(()=>De(ut(),"min-w-40 overflow-y-auto overscroll-contain p-1.5",f()));Oe(()=>{const t=o();t&&(t.id=u(),Qe().then(()=>{o()===t&&Ie(t)}))});function L(t){if(y()?.(t),t.defaultPrevented)return;t.preventDefault();const g=o();requestAnimationFrame(()=>{!g||o()!==g||g.dataset.state!=="open"||g.contains(document.activeElement)||g.focus()})}function V(t){c()?.(t),t.defaultPrevented||xt(t.currentTarget,t)}function B(t){v()?.(t),Ot(t.currentTarget,t.target)}var W={get id(){return u()},set id(t=`${l}-content`){u(t),r()},get ref(){return o()},set ref(t=null){o(t),r()},get class(){return f()},set class(t){f(t),r()},get subContentClass(){return p()},set subContentClass(t){p(t),r()},get portal(){return h()},set portal(t=!0){h(t),r()},get portalProps(){return P()},set portalProps(t){P(t),r()},get staticPosition(){return m()},set staticPosition(t){m(t),r()},get alignIconColumn(){return w()},set alignIconColumn(t=!0){w(t),r()},get sideOffset(){return i()},set sideOffset(t=4){i(t),r()},get collisionPadding(){return O()},set collisionPadding(t=Fe){O(t),r()},get onkeydown(){return c()},set onkeydown(t){c(t),r()},get onfocusin(){return v()},set onfocusin(t){v(t),r()},get onOpenAutoFocus(){return y()},set onOpenAutoFocus(t){y(t),r()},get maxHeight(){return S()},set maxHeight(t="var(--bits-dropdown-menu-content-available-height, calc(100dvh - 1rem))"){S(t),r()},get children(){return R()},set children(t){R(t),r()},$set:oe,$on:(t,g)=>se(e,t,g)},D=x(),q=M(D);{var G=t=>{var g=x(),b=M(g);ie(b,()=>Le,(F,U)=>{U(F,Y({get id(){return u()},preventScroll:!1,"data-slot":"menu-content","data-static-position":!0,get"data-surface-level"(){return d},get class(){return C(a)},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(j){o(j)},children:(j,ye)=>{var le=be(),J=M(le);we(J,{});var pe=Ce(J,2);T(pe,()=>R()??z),_(j,le)},$$slots:{default:!0}}))}),_(t,g)},X=t=>{var g=x(),b=M(g);{let F=k(()=>P()?.to??E?.target());ie(b,()=>st,(U,j)=>{j(U,Y(P,{get to(){return C(F)},children:(ye,le)=>{var J=x(),pe=M(J);ie(pe,()=>Me,(qe,Ge)=>{Ge(qe,Y({get id(){return u()},"data-slot":"menu-content",get"data-surface-level"(){return d},get class(){return C(a)},get sideOffset(){return i()},get collisionPadding(){return O()},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(Pe){o(Pe)},children:(Pe,Ft)=>{var Se=be(),Ee=M(Se);we(Ee,{});var Ye=Ce(Ee,2);T(Ye,()=>R()??z),_(Pe,Se)},$$slots:{default:!0}}))}),_(ye,J)},$$slots:{default:!0}}))})}_(t,g)},I=t=>{var g=x(),b=M(g);ie(b,()=>Me,(F,U)=>{U(F,Y({get id(){return u()},"data-slot":"menu-content",get"data-surface-level"(){return d},get class(){return C(a)},get sideOffset(){return i()},get collisionPadding(){return O()},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(j){o(j)},children:(j,ye)=>{var le=be(),J=M(le);we(J,{});var pe=Ce(J,2);T(pe,()=>R()??z),_(j,le)},$$slots:{default:!0}}))}),_(t,g)};Z(q,t=>{C(ge)?t(G):h()?t(X,1):t(I,-1)})}return _(s,D),ue(W)}export{Pt as M,It as S,Et as a,wt as b,Gt as c,Ot as d,Mt as g,xt as h,_t as p,Ie as s};
1
+ import{t as re,bo as n,bw as oe,b as se,br as Y,bp as fe}from"./CDNiWmce.js";import{bs as ae,a7 as x,ay as M,W as _,bn as ue,aA as r,bf as z,bo as ve,aD as C,c9 as k,a5 as $,bA as ee,aB as _e,ca as Oe,bI as Te,aG as ze,c0 as Qe,bS as Ce}from"./CJxGDkBm.js";import{c as ie}from"./DrLx8OXO.js";import{s as Xe,b as je,g as Je}from"./DpqAXGKG.js";import{p as Ze,u as $e}from"./CORIYKie.js";import{s as T}from"./CThSE8LQ.js";import{aS as A,V as et,av as K,R as tt,H as nt,az as de,N as Ke,a0 as Re,$ as Ne,aQ as ne,aH as he,k as rt,f as ot,a1 as st}from"./BUNb3q2A.js";import"./8VBKAONs.js";import{b as te,e as De}from"./J1LWsTd9.js";import{i as Z}from"./DEHoDrdd.js";import{F as at,O as Fe,M as we}from"./Bu1TNEzu.js";import{b as ut}from"./DFNql_nS.js";import{c as lt,u as it,s as ct}from"./DJfJ5NWH.js";import{c as dt}from"./Cn4uSlRl.js";function He(s,e){if(new.target)return re({component:He,...s});ae(e,!0);let l=n(e,"open",15,!1),u=n(e,"dir",7,"ltr"),o=n(e,"onOpenChange",7,A),f=n(e,"onOpenChangeComplete",7,A),p=n(e,"_internal_variant",7,"dropdown-menu"),h=n(e,"_internal_should_skip_exit_animation",7,void 0),P=n(e,"children",7);const m=et.create({variant:K(()=>p()),dir:K(()=>u()),onClose:()=>{l(!1),o()(!1)},shouldSkipExitAnimation:()=>h()?.()??!1});tt.create({open:K(()=>l(),i=>{l(i),o()(i)}),onOpenChangeComplete:K(()=>f())},m);var w={get open(){return l()},set open(i=!1){l(i),r()},get dir(){return u()},set dir(i="ltr"){u(i),r()},get onOpenChange(){return o()},set onOpenChange(i=A){o(i),r()},get onOpenChangeComplete(){return f()},set onOpenChangeComplete(i=A){f(i),r()},get _internal_variant(){return p()},set _internal_variant(i="dropdown-menu"){p(i),r()},get _internal_should_skip_exit_animation(){return h()},set _internal_should_skip_exit_animation(i=void 0){h(i),r()},get children(){return P()},set children(i){P(i),r()},$set:oe,$on:(i,O)=>se(e,i,O)};return nt(s,{children:(i,O)=>{var c=x(),v=M(c);T(v,()=>P()??z),_(i,c)},$$slots:{default:!0}}),ue(w)}var ft=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),Ae=_e("<div><div><!></div></div>");function Me(s,e){const l=ve();if(new.target)return re({component:Me,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"child",7),f=n(e,"children",7),p=n(e,"ref",15,null),h=n(e,"loop",7,!0),P=n(e,"onInteractOutside",7,A),m=n(e,"onEscapeKeydown",7,A),w=n(e,"onCloseAutoFocus",7,A),i=n(e,"forceMount",7,!1),O=n(e,"trapFocus",7,!1),c=n(e,"style",7),v=fe(e,ft);const y=Ke.create({id:K(()=>u()),loop:K(()=>h()),ref:K(()=>p(),a=>p(a)),onCloseAutoFocus:K(()=>w())}),S=k(()=>ne(v,y.props));function R(a){if(y.handleInteractOutside(a),!a.defaultPrevented&&(P()(a),!a.defaultPrevented)){if(a.target&&a.target instanceof Element){const L=`[${y.parentMenu.root.getBitsAttr("sub-content")}]`;if(a.target.closest(L))return}y.parentMenu.onClose()}}function H(a){m()(a),!a.defaultPrevented&&y.parentMenu.onClose()}var E={get id(){return u()},set id(a=de(l)){u(a),r()},get child(){return o()},set child(a){o(a),r()},get children(){return f()},set children(a){f(a),r()},get ref(){return p()},set ref(a=null){p(a),r()},get loop(){return h()},set loop(a=!0){h(a),r()},get onInteractOutside(){return P()},set onInteractOutside(a=A){P(a),r()},get onEscapeKeydown(){return m()},set onEscapeKeydown(a=A){m(a),r()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(a=A){w(a),r()},get forceMount(){return i()},set forceMount(a=!1){i(a),r()},get trapFocus(){return O()},set trapFocus(a=!1){O(a),r()},get style(){return c()},set style(a){c(a),r()},$set:oe,$on:(a,L)=>se(e,a,L)},N=x(),Q=M(N);{var ge=a=>{Re(a,Y(()=>C(S),()=>y.popperProps,{get ref(){return y.opts.ref},get enabled(){return y.parentMenu.opts.open.current},onInteractOutside:R,onEscapeKeydown:H,get trapFocus(){return O()},get loop(){return h()},forceMount:!0,get id(){return u()},get shouldRender(){return y.shouldRender},popper:(V,B)=>{let W=()=>(B?.()).props,D=()=>(B?.()).wrapperProps;const q=k(()=>ne(W(),{style:he("dropdown-menu")},{style:c()}));var G=x(),X=M(G);{var I=g=>{var b=x(),F=M(b);{let U=k(()=>({props:C(q),wrapperProps:D(),...y.snippetProps}));T(F,o,()=>C(U))}_(g,b)},t=g=>{var b=Ae();te(b,()=>({...D()}));var F=$(b);te(F,()=>({...C(q)}));var U=$(F);T(U,()=>f()??z),ee(F),ee(b),_(g,b)};Z(X,g=>{o()?g(I):g(t,-1)})}_(V,G)},$$slots:{popper:!0}}))},d=a=>{Ne(a,Y(()=>C(S),()=>y.popperProps,{get ref(){return y.opts.ref},get open(){return y.parentMenu.opts.open.current},onInteractOutside:R,onEscapeKeydown:H,get trapFocus(){return O()},get loop(){return h()},forceMount:!1,get id(){return u()},get shouldRender(){return y.shouldRender},popper:(V,B)=>{let W=()=>(B?.()).props,D=()=>(B?.()).wrapperProps;const q=k(()=>ne(W(),{style:he("dropdown-menu")},{style:c()}));var G=x(),X=M(G);{var I=g=>{var b=x(),F=M(b);{let U=k(()=>({props:C(q),wrapperProps:D(),...y.snippetProps}));T(F,o,()=>C(U))}_(g,b)},t=g=>{var b=Ae();te(b,()=>({...D()}));var F=$(b);te(F,()=>({...C(q)}));var U=$(F);T(U,()=>f()??z),ee(F),ee(b),_(g,b)};Z(X,g=>{o()?g(I):g(t,-1)})}_(V,G)},$$slots:{popper:!0}}))};Z(Q,a=>{i()?a(ge):i()||a(d,1)})}return _(s,N),ue(E)}var gt=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","style"]),ke=_e("<div><!></div>");function Le(s,e){const l=ve();if(new.target)return re({component:Le,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"child",7),f=n(e,"children",7),p=n(e,"ref",15,null),h=n(e,"loop",7,!0),P=n(e,"onInteractOutside",7,A),m=n(e,"onEscapeKeydown",7,A),w=n(e,"onCloseAutoFocus",7,A),i=n(e,"forceMount",7,!1),O=n(e,"style",7),c=fe(e,gt);const v=Ke.create({id:K(()=>u()),loop:K(()=>h()),ref:K(()=>p(),d=>p(d)),onCloseAutoFocus:K(()=>w())}),y=k(()=>ne(c,v.props));function S(d){v.handleInteractOutside(d),!d.defaultPrevented&&(P()(d),!d.defaultPrevented&&v.parentMenu.onClose())}function R(d){m()(d),!d.defaultPrevented&&v.parentMenu.onClose()}var H={get id(){return u()},set id(d=de(l)){u(d),r()},get child(){return o()},set child(d){o(d),r()},get children(){return f()},set children(d){f(d),r()},get ref(){return p()},set ref(d=null){p(d),r()},get loop(){return h()},set loop(d=!0){h(d),r()},get onInteractOutside(){return P()},set onInteractOutside(d=A){P(d),r()},get onEscapeKeydown(){return m()},set onEscapeKeydown(d=A){m(d),r()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=A){w(d),r()},get forceMount(){return i()},set forceMount(d=!1){i(d),r()},get style(){return O()},set style(d){O(d),r()},$set:oe,$on:(d,a)=>se(e,d,a)},E=x(),N=M(E);{var Q=d=>{Re(d,Y(()=>C(y),()=>v.popperProps,{get ref(){return v.opts.ref},get enabled(){return v.parentMenu.opts.open.current},onInteractOutside:S,onEscapeKeydown:R,trapFocus:!0,get loop(){return h()},forceMount:!0,isStatic:!0,get id(){return u()},get shouldRender(){return v.shouldRender},popper:(L,V)=>{let B=()=>(V?.()).props;const W=k(()=>ne(B(),{style:he("dropdown-menu")},{style:O()}));var D=x(),q=M(D);{var G=I=>{var t=x(),g=M(t);{let b=k(()=>({props:C(W),...v.snippetProps}));T(g,o,()=>C(b))}_(I,t)},X=I=>{var t=ke();te(t,()=>({...C(W)}));var g=$(t);T(g,()=>f()??z),ee(t),_(I,t)};Z(q,I=>{o()?I(G):I(X,-1)})}_(L,D)},$$slots:{popper:!0}}))},ge=d=>{Ne(d,Y(()=>C(y),()=>v.popperProps,{get ref(){return v.opts.ref},get open(){return v.parentMenu.opts.open.current},onInteractOutside:S,onEscapeKeydown:R,trapFocus:!0,get loop(){return h()},forceMount:!1,isStatic:!0,get id(){return u()},get shouldRender(){return v.shouldRender},popper:(L,V)=>{let B=()=>(V?.()).props;const W=k(()=>ne(B(),{style:he("dropdown-menu")},{style:O()}));var D=x(),q=M(D);{var G=I=>{var t=x(),g=M(t);{let b=k(()=>({props:C(W),...v.snippetProps}));T(g,o,()=>C(b))}_(I,t)},X=I=>{var t=ke();te(t,()=>({...C(W)}));var g=$(t);T(g,()=>f()??z),ee(t),_(I,t)};Z(q,I=>{o()?I(G):I(X,-1)})}_(L,D)},$$slots:{popper:!0}}))};Z(N,d=>{i()?d(Q):i()||d(ge,1)})}return _(s,E),ue(H)}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),ht=_e("<button><!></button>");function Be(s,e){const l=ve();if(new.target)return re({component:Be,...s});ae(e,!0);let u=n(e,"id",23,()=>de(l)),o=n(e,"ref",15,null),f=n(e,"child",7),p=n(e,"children",7),h=n(e,"disabled",7,!1),P=n(e,"type",7,"button"),m=fe(e,pt);const w=rt.create({id:K(()=>u()),disabled:K(()=>h()??!1),ref:K(()=>o(),c=>o(c))}),i=k(()=>ne(m,w.props,{type:P()}));var O={get id(){return u()},set id(c=de(l)){u(c),r()},get ref(){return o()},set ref(c=null){o(c),r()},get child(){return f()},set child(c){f(c),r()},get children(){return p()},set children(c){p(c),r()},get disabled(){return h()},set disabled(c=!1){h(c),r()},get type(){return P()},set type(c="button"){P(c),r()},$set:oe,$on:(c,v)=>se(e,c,v)};return at(s,{get id(){return u()},get ref(){return w.opts.ref},children:(c,v)=>{var y=x(),S=M(y);{var R=E=>{var N=x(),Q=M(N);T(Q,f,()=>({props:C(i)})),_(E,N)},H=E=>{var N=ht();te(N,()=>({...C(i)}));var Q=$(N);T(Q,()=>p()??z),ee(N),_(E,N)};Z(S,E=>{f()?E(R):E(H,-1)})}_(c,y)},$$slots:{default:!0}}),ue(O)}const ce=[];let me=!1;function Ue(s){if(s.key!=="Escape")return;const e=ce[ce.length-1];if(!e)return;let l=!1;try{l=e.onEscape(s)===!1}finally{l||(s.preventDefault(),s.stopImmediatePropagation())}}function mt(){me||(window.addEventListener("keydown",Ue,{capture:!0}),me=!0)}function vt(){!me||ce.length>0||(window.removeEventListener("keydown",Ue,{capture:!0}),me=!1)}function _t(s){const e={onEscape:s};return ce.push(e),mt(),function(){const u=ce.indexOf(e);u!==-1&&ce.splice(u,1),vt()}}var yt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","onOpenChange"]);function Pt(s,e){if(new.target)return re({component:Pt,...s});ae(e,!0);let l=n(e,"open",15,!1),u=n(e,"staticPosition",7,!1),o=n(e,"onOpenChange",7),f=fe(e,yt);Ze(()=>u()),Xe(()=>{l(!1),o()?.(!1)}),Oe(()=>{if(l())return _t(()=>{l(!1),o()?.(!1)})}),Te("canonical-menu",{get open(){return l()}});var p={get open(){return l()},set open(m=!1){l(m),r()},get staticPosition(){return u()},set staticPosition(m=!1){u(m),r()},get onOpenChange(){return o()},set onOpenChange(m){o(m),r()},$set:oe,$on:(m,w)=>se(e,m,w)},h=x(),P=M(h);return ie(P,()=>He,(m,w)=>{w(m,Y({get onOpenChange(){return o()}},()=>f,{get open(){return l()},set open(i){l(i)}}))}),_(s,h),ue(p)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","child","children"]);function wt(s,e){if(new.target)return re({component:wt,...s});ae(e,!0);const l=(c,v)=>{ot(c,Y(()=>(v?.()).props,{get class(){return C(m)},get active(){return P.open},children:(S,R)=>{var H=x(),E=M(H);T(E,()=>p()??z),_(S,H)},$$slots:{default:!0}}))};let u=n(e,"ref",15,null),o=n(e,"class",7),f=n(e,"child",7),p=n(e,"children",7),h=fe(e,Ct);const P=ze("canonical-menu"),m=k(()=>De(o()));var w={get ref(){return u()},set ref(c=null){u(c),r()},get class(){return o()},set class(c){o(c),r()},get child(){return f()},set child(c){f(c),r()},get children(){return p()},set children(c){p(c),r()},$set:oe,$on:(c,v)=>se(e,c,v)},i=x(),O=M(i);{let c=k(()=>f()??l);ie(O,()=>Be,(v,y)=>{y(v,Y({"data-slot":"menu-trigger",get class(){return C(m)},get child(){return C(c)}},()=>h,{get ref(){return u()},set ref(S){u(S)}}))})}return _(s,i),ue(w)}const bt='[data-slot="menu-content"], [data-slot="menu-sub-content"]';function Ve(s,e){return s.closest(bt)===e}function xe(s){return!s.hasAttribute("data-disabled")&&s.getAttribute("aria-disabled")!=="true"}function We(s){return Array.from(s.querySelectorAll("[data-menu-item]")).filter(e=>Ve(e,s))}function Ie(s,e){const l=We(s),u=l.filter(xe),o=u.find(p=>p.hasAttribute("data-highlighted")),f=e&&u.includes(e)?e:o??u[0];for(const p of l)p.tabIndex=p===f?0:-1}function Ot(s,e){const l=e instanceof Element?e.closest("[data-menu-item]"):null;l&&Ve(l,s)&&xe(l)&&Ie(s,l)}function Mt(s,e,l,u){if(s.length===0)return-1;const o=Math.min(Math.max(e,0),s.length-1),f=Math.min(Math.max(o+u,0),s.length-1),p=l.clientHeight||l.getBoundingClientRect().height;if(p<=0)return f;const h=s[o].getBoundingClientRect(),P=h.top+h.height/2+u*p;let m=f,w=Number.POSITIVE_INFINITY;for(let i=f;i>=0&&i<s.length;i+=u){const O=s[i].getBoundingClientRect(),c=Math.abs(O.top+O.height/2-P);c<w&&(w=c,m=i)}return m}function xt(s,e){if(e.key!=="PageUp"&&e.key!=="PageDown")return!1;const l=We(s).filter(xe);if(l.length===0)return!1;const u=document.activeElement instanceof HTMLElement?document.activeElement.closest("[data-menu-item]"):null,o=Math.max(0,u?l.indexOf(u):l.findIndex(p=>p.tabIndex===0)),f=l[Mt(l,o,s,e.key==="PageDown"?1:-1)];return f?(e.preventDefault(),Ie(s,f),f.focus({preventScroll:!0}),f.scrollIntoView?.({block:"nearest"}),!0):!1}const Gt=Symbol("canonical-submenu"),It=Symbol("canonical-submenu-content-class");var St=new Set(["$$slots","$$events","$$legacy","id","ref","class","subContentClass","portal","portalProps","staticPosition","alignIconColumn","sideOffset","collisionPadding","onkeydown","onfocusin","onOpenAutoFocus","maxHeight","children"]),be=_e("<!> <!>",1);function Et(s,e){const l=ve();if(new.target)return re({component:Et,...s});ae(e,!0);let u=n(e,"id",23,()=>`${l}-content`),o=n(e,"ref",15,null),f=n(e,"class",7),p=n(e,"subContentClass",7),h=n(e,"portal",7,!0),P=n(e,"portalProps",7),m=n(e,"staticPosition",7),w=n(e,"alignIconColumn",7,!0),i=n(e,"sideOffset",7,4),O=n(e,"collisionPadding",7,Fe),c=n(e,"onkeydown",7),v=n(e,"onfocusin",7),y=n(e,"onOpenAutoFocus",7),S=n(e,"maxHeight",7,"var(--bits-dropdown-menu-content-available-height, calc(100dvh - 1rem))"),R=n(e,"children",7),H=fe(e,St);const E=je(),N=Je();Oe(()=>{const t=o();if(!(!t||!E))return E.register(t,N)});const Q=$e();Te(It,()=>p()),dt(()=>w());const ge=k(()=>m()??Q()),d=lt(it()+2);ct(d);const a=k(()=>De(ut(),"min-w-40 overflow-y-auto overscroll-contain p-1.5",f()));Oe(()=>{const t=o();t&&(t.id=u(),Qe().then(()=>{o()===t&&Ie(t)}))});function L(t){if(y()?.(t),t.defaultPrevented)return;t.preventDefault();const g=o();requestAnimationFrame(()=>{!g||o()!==g||g.dataset.state!=="open"||g.contains(document.activeElement)||g.focus()})}function V(t){c()?.(t),t.defaultPrevented||xt(t.currentTarget,t)}function B(t){v()?.(t),Ot(t.currentTarget,t.target)}var W={get id(){return u()},set id(t=`${l}-content`){u(t),r()},get ref(){return o()},set ref(t=null){o(t),r()},get class(){return f()},set class(t){f(t),r()},get subContentClass(){return p()},set subContentClass(t){p(t),r()},get portal(){return h()},set portal(t=!0){h(t),r()},get portalProps(){return P()},set portalProps(t){P(t),r()},get staticPosition(){return m()},set staticPosition(t){m(t),r()},get alignIconColumn(){return w()},set alignIconColumn(t=!0){w(t),r()},get sideOffset(){return i()},set sideOffset(t=4){i(t),r()},get collisionPadding(){return O()},set collisionPadding(t=Fe){O(t),r()},get onkeydown(){return c()},set onkeydown(t){c(t),r()},get onfocusin(){return v()},set onfocusin(t){v(t),r()},get onOpenAutoFocus(){return y()},set onOpenAutoFocus(t){y(t),r()},get maxHeight(){return S()},set maxHeight(t="var(--bits-dropdown-menu-content-available-height, calc(100dvh - 1rem))"){S(t),r()},get children(){return R()},set children(t){R(t),r()},$set:oe,$on:(t,g)=>se(e,t,g)},D=x(),q=M(D);{var G=t=>{var g=x(),b=M(g);ie(b,()=>Le,(F,U)=>{U(F,Y({get id(){return u()},preventScroll:!1,"data-slot":"menu-content","data-static-position":!0,get"data-surface-level"(){return d},get class(){return C(a)},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(j){o(j)},children:(j,ye)=>{var le=be(),J=M(le);we(J,{});var pe=Ce(J,2);T(pe,()=>R()??z),_(j,le)},$$slots:{default:!0}}))}),_(t,g)},X=t=>{var g=x(),b=M(g);{let F=k(()=>P()?.to??E?.target());ie(b,()=>st,(U,j)=>{j(U,Y(P,{get to(){return C(F)},children:(ye,le)=>{var J=x(),pe=M(J);ie(pe,()=>Me,(qe,Ge)=>{Ge(qe,Y({get id(){return u()},"data-slot":"menu-content",get"data-surface-level"(){return d},get class(){return C(a)},get sideOffset(){return i()},get collisionPadding(){return O()},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(Pe){o(Pe)},children:(Pe,Ft)=>{var Se=be(),Ee=M(Se);we(Ee,{});var Ye=Ce(Ee,2);T(Ye,()=>R()??z),_(Pe,Se)},$$slots:{default:!0}}))}),_(ye,J)},$$slots:{default:!0}}))})}_(t,g)},I=t=>{var g=x(),b=M(g);ie(b,()=>Me,(F,U)=>{U(F,Y({get id(){return u()},"data-slot":"menu-content",get"data-surface-level"(){return d},get class(){return C(a)},get sideOffset(){return i()},get collisionPadding(){return O()},get style(){return`max-height: ${S()??""}`},onkeydown:V,onfocusin:B,onOpenAutoFocus:L},()=>H,{get ref(){return o()},set ref(j){o(j)},children:(j,ye)=>{var le=be(),J=M(le);we(J,{});var pe=Ce(J,2);T(pe,()=>R()??z),_(j,le)},$$slots:{default:!0}}))}),_(t,g)};Z(q,t=>{C(ge)?t(G):h()?t(X,1):t(I,-1)})}return _(s,D),ue(W)}export{Pt as M,It as S,Et as a,wt as b,Gt as c,Ot as d,Mt as g,xt as h,_t as p,Ie as s};
@@ -1 +1 @@
1
- import{I_ as s}from"./ByW7bxEK.js";import{bm as r}from"./BfX15qhw.js";import{l as t,m as c}from"./Dkq3_GD2.js";const m=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function i(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function u(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=i(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function _(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{u as c,_ as f,m as s};
1
+ import{I_ as s}from"./qD_x_a7m.js";import{bm as r}from"./CDNiWmce.js";import{l as t,m as c}from"./CXfsvSt9.js";const m=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function i(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function u(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=i(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function _(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{u as c,_ as f,m as s};
@@ -1 +1 @@
1
- import{t as kt,bo as i,bw as Mt,bp as Pt,b as Et}from"./BfX15qhw.js";import{ai as Tt,bs as Vt,c5 as It,aD as t,ca as Oe,bj as Ct,a5 as ie,bS as V,bA as oe,b_ as H,aw as le,aj as O,W as A,bn as Nt,bV as I,c9 as M,bH as c,aA as o,bl as Xe,bO as Ze,a7 as At,ay as zt,aB as R,c0 as Dt}from"./CJxGDkBm.js";import{i as X}from"./CdNWk-Bu.js";import{g as Ht}from"./D7W8zNV0.js";import{S as je,n as Je,l as Ft,c as qt}from"./i9nNzXN1.js";import{b as Rt,e as F,c as Z,s as P,f as j,g as q,r as Bt,p as Wt}from"./DLxYdmRB.js";import{a as Kt}from"./Cc2R8pz2.js";import{b as Ie}from"./NtFyWdpR.js";var Lt=new Set(["$$slots","$$events","$$legacy","ref","value","min","max","step","steps","showSteps","showValue","valuePosition","appearance","disabled","onInteractionStart","onValueChange","oninput","onkeydown","onfocus","onblur","formatValue","class","aria-label","aria-invalid","aria-valuetext","data-slot"]),Ut=R('<input type="number" class="slider-value-input w-full min-w-0 rounded-(--shape-input-radius) border-b border-border bg-transparent text-foreground outline-none [text-align:inherit] svelte-2rnmeq"/>'),Gt=R('<button type="button" class="w-full min-w-0 cursor-text select-none rounded-(--shape-input-radius) text-inherit whitespace-nowrap [text-align:inherit]"> </button>'),Ot=R('<span data-slot="slider-value" class="inline-grid shrink-0 text-[13px] leading-none text-muted-foreground tabular-nums"><!></span>'),Xt=R('<output data-slot="slider-tooltip" class="pointer-events-none absolute top-[-20px] z-30 -translate-x-1/2 whitespace-nowrap rounded-(--shape-input-radius) surface-inverse px-2 py-1 text-xs tabular-nums" aria-hidden="true"> </output>'),Zt=R('<span aria-hidden="true" data-slot="slider-pip" class="pointer-events-none absolute top-1/2 z-10 size-1 -translate-x-1/2 -translate-y-1/2 rounded-full bg-muted-foreground/30"></span>'),jt=R('<div data-slot="slider-root"><!> <div class="relative min-w-0 flex-1 overflow-visible"><input/> <div data-slot="slider-track" role="presentation" class="slider-hit-area relative h-9 w-full cursor-ew-resize overflow-visible svelte-2rnmeq"><!> <span aria-hidden="true" data-slot="slider-track-background"></span> <span aria-hidden="true" data-slot="slider-fill"></span> <span aria-hidden="true" data-slot="slider-preview"></span> <!> <span aria-hidden="true" data-slot="slider-thumb"></span></div></div> <!></div>');function Jt(Ce,r){if(new.target)return kt({component:Jt,...Ce});Vt(r,!0);const Ne=e=>{var n=Ot();let a;var d=ie(n);{var f=m=>{var l=Ut();Bt(l),Ie(l,N=>c(ne,N),()=>t(ne)),H(()=>{P(l,"min",t(u)),P(l,"max",t(x)),P(l,"step",t(s)?"any":t(y)),P(l,"aria-label",ee())}),le("blur",l,He),O("keydown",l,ht),Kt(l,()=>t(ae),N=>c(ae,N)),A(m,l)},v=m=>{var l=Gt(),N=Xe(l,!0);H(St=>{l.disabled=_(),Ze(N,St)},[()=>D()(p())]),O("click",l,vt),A(m,l)};X(d,m=>{t(W)?m(f):m(v,-1)})}oe(n),H(()=>a=q(n,"",a,{"font-variation-settings":"'wght' 500",width:`${t($e)}ch`,"align-self":h()==="top"||h()==="bottom"?"center":void 0,"text-align":h()==="left"||h()==="right"?"right":"center"})),A(e,n)},g=20,Ae=16,J=(g-18)/2;let b=i(r,"ref",15,null),p=i(r,"value",15,0),ue=i(r,"min",7,0),de=i(r,"max",7,100),ce=i(r,"step",7,1),Q=i(r,"steps",7),pe=i(r,"showSteps",7,!1),Y=i(r,"showValue",7,!1),h=i(r,"valuePosition",7,"right"),z=i(r,"appearance",7,"default"),_=i(r,"disabled",7,!1),fe=i(r,"onInteractionStart",7),ve=i(r,"onValueChange",7),me=i(r,"oninput",7),he=i(r,"onkeydown",7),ge=i(r,"onfocus",7),be=i(r,"onblur",7),D=i(r,"formatValue",7,String),$=i(r,"class",7),ee=i(r,"aria-label",7),B=i(r,"aria-invalid",7),we=i(r,"aria-valuetext",7),xe=i(r,"data-slot",7,"slider"),Qe=Pt(r,Lt),te,ne=I(void 0),S=I(!1),ye=I(!1),_e=I(!1),W=I(!1),ae=I(""),w=I(null),Se=I(!1),C=null;const s=M(()=>{if(!Q()?.length)return null;const e=[...new Set(Q().filter(Number.isFinite))].sort((n,a)=>n-a);return e.length?e:null}),u=M(()=>t(s)?.[0]??Number(ue())),x=M(()=>t(s)?.[t(s).length-1]??Number(de())),y=M(()=>Math.max(Number(ce())||1,Number.EPSILON)),ke=M(()=>B()===!0||B()==="true"),Ye=M(()=>we()??D()(p())),$e=M(()=>{const e=t(s)??[t(u),t(x),E(t(u)+t(y)),E(t(x)-t(y))],n=d=>{const[f,v="0"]=String(d).split("e");return Math.max(0,(f.split(".")[1]?.length??0)-Number(v))},a=Math.min(12,Math.max(n(t(u)),n(t(y))));return e.reduce((d,f)=>{const v=String(f),m=D()(f),l=t(s)?v.length:f.toFixed(a).length;return Math.max(d,m.length,l+Math.max(0,m.length-v.length))},1)}),K=M(()=>G(p())),L=M(()=>t(w)===null?null:G(t(w))),U=new je(It(()=>t(K)),"moderate"),Me=new je(Ae,"fast");function et(e){return t(s)?t(s).reduce((n,a)=>Math.abs(a-e)<Math.abs(n-e)?a:n):e}function E(e){const n=Math.max(t(u),Math.min(t(x),e));if(t(s))return et(n);const a=t(u)+Math.round((n-t(u))/t(y))*t(y);return Number(Math.max(t(u),Math.min(t(x),a)).toFixed(12))}function G(e){return t(x)===t(u)?0:Math.max(0,Math.min(1,(e-t(u))/(t(x)-t(u))))}function re(e){return`calc(${e*100}% + ${g/2-e*g}px)`}function tt(e){return`calc(${e*100}% - ${e*g}px)`}function nt(e){return`calc(${e*100}% + ${g/2-J-e*g}px)`}function at(){return t(L)===null?"0px":t(w)===t(u)?`${J}px`:re(Math.min(t(K),t(L)))}function rt(){if(t(L)===null)return"0px";const e=re(t(K));if(t(w)===t(u))return`calc(${e} - ${J}px)`;if(t(w)===t(x))return`calc(100% - ${e} - ${J}px)`;const n=Math.abs(t(L)-t(K));return`calc(${n*100}% - ${n*g}px)`}function ze(e){const n=te.getBoundingClientRect(),a=te.offsetWidth||n.width;if(a<=g||n.width<=0)return t(u);const d=n.width/a,f=(e-n.left)/d,v=Math.max(0,Math.min(1,(f-g/2)/(a-g)));return E(t(u)+v*(t(x)-t(u)))}function st(e){const n=E(e);return n===p()?!1:(p(n),ve()?.(n),!0)}function se(e){if(!b())return;const n=b();n.value=String(e),n.dispatchEvent(new Event("input",{bubbles:!0}))}function it(e){const n=E(e.currentTarget.valueAsNumber);e.currentTarget.value=String(n),st(n),me()?.(e)}function ot(e){c(_e,e.currentTarget.matches(":focus-visible"),!0),ge()?.(e)}function lt(e){c(_e,!1),be()?.(e)}function ut(e){if(he()?.(e),e.defaultPrevented||_())return;const n=t(s)?.indexOf(E(p()))??-1;let a;switch(e.key){case"ArrowRight":case"ArrowUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+1)]:p()+t(y);break;case"ArrowLeft":case"ArrowDown":a=t(s)?t(s)[Math.max(0,n-1)]:p()-t(y);break;case"Home":a=t(u);break;case"End":a=t(x);break;case"PageUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+10)]:p()+t(y)*10;break;case"PageDown":a=t(s)?t(s)[Math.max(0,n-10)]:p()-t(y)*10;break}if(a===void 0)return;e.preventDefault();const d=E(a);d!==p()&&(se(d),e.currentTarget.dispatchEvent(new Event("change",{bubbles:!0})))}function dt(e){if(_()||e.pointerType==="mouse"&&e.button!==0)return;fe()?.(),e.preventDefault(),c(S,!0);const n=ze(e.clientX);se(n),U.set(G(n)),b()?.focus(),e.currentTarget instanceof Element&&"setPointerCapture"in e.currentTarget&&e.currentTarget.setPointerCapture(e.pointerId)}function ct(e){const n=ze(e.clientX);if(!t(S)){c(w,n,!0);return}se(n),U.set(G(n),{instant:!0})}function De(){t(S)&&(c(S,!1),c(w,null),b()&&b().dispatchEvent(new Event("change",{bubbles:!0})))}function pt(){_()||(c(ye,!0),C&&clearTimeout(C),C=setTimeout(()=>c(Se,!0),100))}function ft(){c(ye,!1),c(Se,!1),c(w,null),C&&clearTimeout(C)}async function vt(){_()||h()==="tooltip"||(c(ae,String(p()),!0),c(W,!0),await Dt(),t(ne)?.focus(),t(ne)?.select())}function He(){if(!t(W))return;const e=Number.parseFloat(t(ae));if(c(W,!1),!Number.isFinite(e))return;const n=E(e);se(n),b()&&b().dispatchEvent(new Event("change",{bubbles:!0}))}function mt(){c(W,!1)}function ht(e){e.key==="Enter"?(e.preventDefault(),He()):e.key==="Escape"&&(e.preventDefault(),mt())}Oe(()=>{t(S)||U.set(t(K))}),Oe(()=>{Me.set(t(ye)||t(S)?g:Ae)}),Ct(()=>{C&&clearTimeout(C)});var gt={get ref(){return b()},set ref(e=null){b(e),o()},get value(){return p()},set value(e=0){p(e),o()},get min(){return ue()},set min(e=0){ue(e),o()},get max(){return de()},set max(e=100){de(e),o()},get step(){return ce()},set step(e=1){ce(e),o()},get steps(){return Q()},set steps(e){Q(e),o()},get showSteps(){return pe()},set showSteps(e=!1){pe(e),o()},get showValue(){return Y()},set showValue(e=!1){Y(e),o()},get valuePosition(){return h()},set valuePosition(e="right"){h(e),o()},get appearance(){return z()},set appearance(e="default"){z(e),o()},get disabled(){return _()},set disabled(e=!1){_(e),o()},get onInteractionStart(){return fe()},set onInteractionStart(e){fe(e),o()},get onValueChange(){return ve()},set onValueChange(e){ve(e),o()},get oninput(){return me()},set oninput(e){me(e),o()},get onkeydown(){return he()},set onkeydown(e){he(e),o()},get onfocus(){return ge()},set onfocus(e){ge(e),o()},get onblur(){return be()},set onblur(e){be(e),o()},get formatValue(){return D()},set formatValue(e=String){D(e),o()},get class(){return $()},set class(e){$(e),o()},get"aria-label"(){return ee()},set"aria-label"(e){ee(e),o()},get"aria-invalid"(){return B()},set"aria-invalid"(e){B(e),o()},get"aria-valuetext"(){return we()},set"aria-valuetext"(e){we(e),o()},get"data-slot"(){return xe()},set"data-slot"(e="slider"){xe(e),o()},$set:Mt,$on:(e,n)=>Et(r,e,n)},T=jt(),Fe=ie(T);{var bt=e=>{Ne(e)};X(Fe,e=>{Y()&&(h()==="left"||h()==="top")&&e(bt)})}var Pe=V(Fe,2),Ee=ie(Pe);Rt(Ee,e=>({...Qe,type:"range",min:t(u),max:t(x),step:t(s)?"any":t(y),value:p(),disabled:_(),"aria-label":ee(),"aria-invalid":B(),"aria-valuenow":p(),"aria-valuetext":t(Ye),"data-slot":xe(),class:e,oninput:it,onkeydown:ut,onfocus:ot,onblur:lt}),[()=>F("peer pointer-events-none absolute inset-0 z-20 h-9 w-full cursor-ew-resize opacity-0 outline-none","aria-invalid:accent-danger aria-invalid:ring-1 aria-invalid:ring-danger/25",$())],void 0,void 0,"svelte-2rnmeq",!0),Ie(Ee,e=>b(e),()=>b());var k=V(Ee,2),qe=ie(k);{var wt=e=>{var n=Xt();let a;var d=Xe(n,!0);H((f,v)=>{P(n,"hidden",t(S)),a=q(n,"",a,{left:f,"font-variation-settings":"'wght' 500"}),Ze(d,v)},[()=>re(t(L)??0),()=>D()(t(w))]),Je(1,n,()=>Ft,()=>({tier:"fast",y:4,scale:.98})),Je(2,n,()=>qt,()=>({tier:"fast",y:4,scale:.98})),A(e,n)};X(qe,e=>{t(w)!==null&&t(Se)&&e(wt)})}var Re=V(qe,2),Te=V(Re,2);let Be;var Ve=V(Te,2);let We,Ke;var Le=V(Ve,2);{var xt=e=>{var n=At(),a=zt(n);Ht(a,16,()=>t(s),d=>d,(d,f)=>{var v=Zt();let m;H(l=>m=q(v,"",m,{left:l}),[()=>re(G(f))]),A(d,v)}),A(e,n)};X(Le,e=>{pe()&&t(s)&&e(xt)})}var Ue=V(Le,2);let Ge;oe(k),Ie(k,e=>te=e,()=>te),oe(Pe);var yt=V(Pe,2);{var _t=e=>{Ne(e)};X(yt,e=>{Y()&&(h()==="right"||h()==="bottom")&&e(_t)})}return oe(T),H((e,n,a,d,f,v,m,l,N)=>{P(T,"data-disabled",_()||void 0),P(T,"data-invalid",t(ke)||void 0),P(T,"data-pressed",t(S)||void 0),P(T,"data-appearance",z()),j(T,1,e,"svelte-2rnmeq"),j(Re,1,n,"svelte-2rnmeq"),j(Te,1,a,"svelte-2rnmeq"),Be=q(Te,"",Be,{width:d}),We=j(Ve,1,f,"svelte-2rnmeq",We,{"opacity-0":t(w)===null||t(S)}),Ke=q(Ve,"",Ke,{left:v,width:m}),j(Ue,1,l,"svelte-2rnmeq"),Ge=q(Ue,"",Ge,{left:N,width:`${Me.current}px`,height:`${Me.current}px`})},[()=>Z(F("flex w-full min-w-24 select-none touch-none overflow-visible",h()==="left"||h()==="right"?"flex-row items-center gap-2":"flex-col gap-1",_()&&"pointer-events-none opacity-50",$())),()=>Z(F("absolute inset-x-px top-[9px] h-[18px] overflow-hidden rounded-full border bg-transparent",z()==="overlay"?"border-transparent":"border-border")),()=>Z(F("absolute top-[9px] left-px h-[18px] rounded-full",z()==="overlay"?"bg-transparent":t(ke)?"bg-danger/30 dark:bg-danger/35":"bg-selected/50 dark:bg-accent/40")),()=>nt(U.current),()=>Z(F("pointer-events-none absolute top-[9px] h-[18px] rounded-full transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none",z()==="overlay"?"bg-transparent":"bg-accent/40")),()=>at(),()=>rt(),()=>Z(F("pointer-events-none absolute top-1/2 z-20 -translate-y-1/2 rounded-full border border-border bg-background shadow-(--elevation-raised)",t(_e)&&"outline outline-1 outline-focus-ring outline-offset-2 shadow-none",t(ke)&&"border-danger")),()=>tt(U.current)]),le("pointerenter",k,pt),le("pointerleave",k,ft),O("pointerdown",k,dt),O("pointermove",k,ct),O("pointerup",k,De),le("pointercancel",k,De),A(Ce,T),Nt(gt)}Tt(["keydown","click","pointerdown","pointermove","pointerup"]);const Qt=[{id:"slider-state-matrix",title:"Slider interaction states",states:["default","disabled","invalid","keyboard-focus","arrow-keys","home-end","hover-preview","hover-tooltip","drag-tooltip-hidden","synchronous-drag","spring-settle","inline-value-edit","discrete-steps","step-pips","semantic-track","semantic-thumb","transparent-overlay-track","compact","light","dark","reduced-motion","zoom-200","no-overflow","capture-hover-drag-200ms"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Wt({id:"slider",source:"src/lib/components/ui/slider/slider.svelte",publicImport:"$lib/components/ui/slider",legacyImports:[],exports:["Slider","sliderMetadata"],category:"primitive",owner:"008-B",callers:["src/features/hud/components/HudHeader.svelte","src/lib/component-catalog/ChatPolishGeometryControls.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/SettingsCatalogPreview.svelte","src/lib/components/settings/AgentBackendSettings.svelte","src/lib/components/settings/NotificationSettings.svelte","src/lib/components/ui/ZoomPanViewport.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/slider/slider.test.ts",removalGate:"Retain while native range, pointer, keyboard, discrete step, and editing tests pass.",dynamicImports:[],fixtures:Qt});export{Jt as S};
1
+ import{t as kt,bo as i,bw as Mt,bp as Pt,b as Et}from"./CDNiWmce.js";import{ai as Tt,bs as Vt,c5 as It,aD as t,ca as Oe,bj as Ct,a5 as ie,bS as V,bA as oe,b_ as H,aw as le,aj as O,W as A,bn as Nt,bV as I,c9 as M,bH as c,aA as o,bl as Xe,bO as Ze,a7 as At,ay as zt,aB as R,c0 as Dt}from"./CJxGDkBm.js";import{i as X}from"./DEHoDrdd.js";import{g as Ht}from"./Ca-5qIPO.js";import{S as je,n as Je,l as Ft,c as qt}from"./BR6IlpMz.js";import{b as Rt,e as F,c as Z,s as P,f as j,g as q,r as Bt,p as Wt}from"./J1LWsTd9.js";import{a as Kt}from"./Cc2R8pz2.js";import{b as Ie}from"./NtFyWdpR.js";var Lt=new Set(["$$slots","$$events","$$legacy","ref","value","min","max","step","steps","showSteps","showValue","valuePosition","appearance","disabled","onInteractionStart","onValueChange","oninput","onkeydown","onfocus","onblur","formatValue","class","aria-label","aria-invalid","aria-valuetext","data-slot"]),Ut=R('<input type="number" class="slider-value-input w-full min-w-0 rounded-(--shape-input-radius) border-b border-border bg-transparent text-foreground outline-none [text-align:inherit] svelte-2rnmeq"/>'),Gt=R('<button type="button" class="w-full min-w-0 cursor-text select-none rounded-(--shape-input-radius) text-inherit whitespace-nowrap [text-align:inherit]"> </button>'),Ot=R('<span data-slot="slider-value" class="inline-grid shrink-0 text-[13px] leading-none text-muted-foreground tabular-nums"><!></span>'),Xt=R('<output data-slot="slider-tooltip" class="pointer-events-none absolute top-[-20px] z-30 -translate-x-1/2 whitespace-nowrap rounded-(--shape-input-radius) surface-inverse px-2 py-1 text-xs tabular-nums" aria-hidden="true"> </output>'),Zt=R('<span aria-hidden="true" data-slot="slider-pip" class="pointer-events-none absolute top-1/2 z-10 size-1 -translate-x-1/2 -translate-y-1/2 rounded-full bg-muted-foreground/30"></span>'),jt=R('<div data-slot="slider-root"><!> <div class="relative min-w-0 flex-1 overflow-visible"><input/> <div data-slot="slider-track" role="presentation" class="slider-hit-area relative h-9 w-full cursor-ew-resize overflow-visible svelte-2rnmeq"><!> <span aria-hidden="true" data-slot="slider-track-background"></span> <span aria-hidden="true" data-slot="slider-fill"></span> <span aria-hidden="true" data-slot="slider-preview"></span> <!> <span aria-hidden="true" data-slot="slider-thumb"></span></div></div> <!></div>');function Jt(Ce,r){if(new.target)return kt({component:Jt,...Ce});Vt(r,!0);const Ne=e=>{var n=Ot();let a;var d=ie(n);{var f=m=>{var l=Ut();Bt(l),Ie(l,N=>c(ne,N),()=>t(ne)),H(()=>{P(l,"min",t(u)),P(l,"max",t(x)),P(l,"step",t(s)?"any":t(y)),P(l,"aria-label",ee())}),le("blur",l,He),O("keydown",l,ht),Kt(l,()=>t(ae),N=>c(ae,N)),A(m,l)},v=m=>{var l=Gt(),N=Xe(l,!0);H(St=>{l.disabled=_(),Ze(N,St)},[()=>D()(p())]),O("click",l,vt),A(m,l)};X(d,m=>{t(W)?m(f):m(v,-1)})}oe(n),H(()=>a=q(n,"",a,{"font-variation-settings":"'wght' 500",width:`${t($e)}ch`,"align-self":h()==="top"||h()==="bottom"?"center":void 0,"text-align":h()==="left"||h()==="right"?"right":"center"})),A(e,n)},g=20,Ae=16,J=(g-18)/2;let b=i(r,"ref",15,null),p=i(r,"value",15,0),ue=i(r,"min",7,0),de=i(r,"max",7,100),ce=i(r,"step",7,1),Q=i(r,"steps",7),pe=i(r,"showSteps",7,!1),Y=i(r,"showValue",7,!1),h=i(r,"valuePosition",7,"right"),z=i(r,"appearance",7,"default"),_=i(r,"disabled",7,!1),fe=i(r,"onInteractionStart",7),ve=i(r,"onValueChange",7),me=i(r,"oninput",7),he=i(r,"onkeydown",7),ge=i(r,"onfocus",7),be=i(r,"onblur",7),D=i(r,"formatValue",7,String),$=i(r,"class",7),ee=i(r,"aria-label",7),B=i(r,"aria-invalid",7),we=i(r,"aria-valuetext",7),xe=i(r,"data-slot",7,"slider"),Qe=Pt(r,Lt),te,ne=I(void 0),S=I(!1),ye=I(!1),_e=I(!1),W=I(!1),ae=I(""),w=I(null),Se=I(!1),C=null;const s=M(()=>{if(!Q()?.length)return null;const e=[...new Set(Q().filter(Number.isFinite))].sort((n,a)=>n-a);return e.length?e:null}),u=M(()=>t(s)?.[0]??Number(ue())),x=M(()=>t(s)?.[t(s).length-1]??Number(de())),y=M(()=>Math.max(Number(ce())||1,Number.EPSILON)),ke=M(()=>B()===!0||B()==="true"),Ye=M(()=>we()??D()(p())),$e=M(()=>{const e=t(s)??[t(u),t(x),E(t(u)+t(y)),E(t(x)-t(y))],n=d=>{const[f,v="0"]=String(d).split("e");return Math.max(0,(f.split(".")[1]?.length??0)-Number(v))},a=Math.min(12,Math.max(n(t(u)),n(t(y))));return e.reduce((d,f)=>{const v=String(f),m=D()(f),l=t(s)?v.length:f.toFixed(a).length;return Math.max(d,m.length,l+Math.max(0,m.length-v.length))},1)}),K=M(()=>G(p())),L=M(()=>t(w)===null?null:G(t(w))),U=new je(It(()=>t(K)),"moderate"),Me=new je(Ae,"fast");function et(e){return t(s)?t(s).reduce((n,a)=>Math.abs(a-e)<Math.abs(n-e)?a:n):e}function E(e){const n=Math.max(t(u),Math.min(t(x),e));if(t(s))return et(n);const a=t(u)+Math.round((n-t(u))/t(y))*t(y);return Number(Math.max(t(u),Math.min(t(x),a)).toFixed(12))}function G(e){return t(x)===t(u)?0:Math.max(0,Math.min(1,(e-t(u))/(t(x)-t(u))))}function re(e){return`calc(${e*100}% + ${g/2-e*g}px)`}function tt(e){return`calc(${e*100}% - ${e*g}px)`}function nt(e){return`calc(${e*100}% + ${g/2-J-e*g}px)`}function at(){return t(L)===null?"0px":t(w)===t(u)?`${J}px`:re(Math.min(t(K),t(L)))}function rt(){if(t(L)===null)return"0px";const e=re(t(K));if(t(w)===t(u))return`calc(${e} - ${J}px)`;if(t(w)===t(x))return`calc(100% - ${e} - ${J}px)`;const n=Math.abs(t(L)-t(K));return`calc(${n*100}% - ${n*g}px)`}function ze(e){const n=te.getBoundingClientRect(),a=te.offsetWidth||n.width;if(a<=g||n.width<=0)return t(u);const d=n.width/a,f=(e-n.left)/d,v=Math.max(0,Math.min(1,(f-g/2)/(a-g)));return E(t(u)+v*(t(x)-t(u)))}function st(e){const n=E(e);return n===p()?!1:(p(n),ve()?.(n),!0)}function se(e){if(!b())return;const n=b();n.value=String(e),n.dispatchEvent(new Event("input",{bubbles:!0}))}function it(e){const n=E(e.currentTarget.valueAsNumber);e.currentTarget.value=String(n),st(n),me()?.(e)}function ot(e){c(_e,e.currentTarget.matches(":focus-visible"),!0),ge()?.(e)}function lt(e){c(_e,!1),be()?.(e)}function ut(e){if(he()?.(e),e.defaultPrevented||_())return;const n=t(s)?.indexOf(E(p()))??-1;let a;switch(e.key){case"ArrowRight":case"ArrowUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+1)]:p()+t(y);break;case"ArrowLeft":case"ArrowDown":a=t(s)?t(s)[Math.max(0,n-1)]:p()-t(y);break;case"Home":a=t(u);break;case"End":a=t(x);break;case"PageUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+10)]:p()+t(y)*10;break;case"PageDown":a=t(s)?t(s)[Math.max(0,n-10)]:p()-t(y)*10;break}if(a===void 0)return;e.preventDefault();const d=E(a);d!==p()&&(se(d),e.currentTarget.dispatchEvent(new Event("change",{bubbles:!0})))}function dt(e){if(_()||e.pointerType==="mouse"&&e.button!==0)return;fe()?.(),e.preventDefault(),c(S,!0);const n=ze(e.clientX);se(n),U.set(G(n)),b()?.focus(),e.currentTarget instanceof Element&&"setPointerCapture"in e.currentTarget&&e.currentTarget.setPointerCapture(e.pointerId)}function ct(e){const n=ze(e.clientX);if(!t(S)){c(w,n,!0);return}se(n),U.set(G(n),{instant:!0})}function De(){t(S)&&(c(S,!1),c(w,null),b()&&b().dispatchEvent(new Event("change",{bubbles:!0})))}function pt(){_()||(c(ye,!0),C&&clearTimeout(C),C=setTimeout(()=>c(Se,!0),100))}function ft(){c(ye,!1),c(Se,!1),c(w,null),C&&clearTimeout(C)}async function vt(){_()||h()==="tooltip"||(c(ae,String(p()),!0),c(W,!0),await Dt(),t(ne)?.focus(),t(ne)?.select())}function He(){if(!t(W))return;const e=Number.parseFloat(t(ae));if(c(W,!1),!Number.isFinite(e))return;const n=E(e);se(n),b()&&b().dispatchEvent(new Event("change",{bubbles:!0}))}function mt(){c(W,!1)}function ht(e){e.key==="Enter"?(e.preventDefault(),He()):e.key==="Escape"&&(e.preventDefault(),mt())}Oe(()=>{t(S)||U.set(t(K))}),Oe(()=>{Me.set(t(ye)||t(S)?g:Ae)}),Ct(()=>{C&&clearTimeout(C)});var gt={get ref(){return b()},set ref(e=null){b(e),o()},get value(){return p()},set value(e=0){p(e),o()},get min(){return ue()},set min(e=0){ue(e),o()},get max(){return de()},set max(e=100){de(e),o()},get step(){return ce()},set step(e=1){ce(e),o()},get steps(){return Q()},set steps(e){Q(e),o()},get showSteps(){return pe()},set showSteps(e=!1){pe(e),o()},get showValue(){return Y()},set showValue(e=!1){Y(e),o()},get valuePosition(){return h()},set valuePosition(e="right"){h(e),o()},get appearance(){return z()},set appearance(e="default"){z(e),o()},get disabled(){return _()},set disabled(e=!1){_(e),o()},get onInteractionStart(){return fe()},set onInteractionStart(e){fe(e),o()},get onValueChange(){return ve()},set onValueChange(e){ve(e),o()},get oninput(){return me()},set oninput(e){me(e),o()},get onkeydown(){return he()},set onkeydown(e){he(e),o()},get onfocus(){return ge()},set onfocus(e){ge(e),o()},get onblur(){return be()},set onblur(e){be(e),o()},get formatValue(){return D()},set formatValue(e=String){D(e),o()},get class(){return $()},set class(e){$(e),o()},get"aria-label"(){return ee()},set"aria-label"(e){ee(e),o()},get"aria-invalid"(){return B()},set"aria-invalid"(e){B(e),o()},get"aria-valuetext"(){return we()},set"aria-valuetext"(e){we(e),o()},get"data-slot"(){return xe()},set"data-slot"(e="slider"){xe(e),o()},$set:Mt,$on:(e,n)=>Et(r,e,n)},T=jt(),Fe=ie(T);{var bt=e=>{Ne(e)};X(Fe,e=>{Y()&&(h()==="left"||h()==="top")&&e(bt)})}var Pe=V(Fe,2),Ee=ie(Pe);Rt(Ee,e=>({...Qe,type:"range",min:t(u),max:t(x),step:t(s)?"any":t(y),value:p(),disabled:_(),"aria-label":ee(),"aria-invalid":B(),"aria-valuenow":p(),"aria-valuetext":t(Ye),"data-slot":xe(),class:e,oninput:it,onkeydown:ut,onfocus:ot,onblur:lt}),[()=>F("peer pointer-events-none absolute inset-0 z-20 h-9 w-full cursor-ew-resize opacity-0 outline-none","aria-invalid:accent-danger aria-invalid:ring-1 aria-invalid:ring-danger/25",$())],void 0,void 0,"svelte-2rnmeq",!0),Ie(Ee,e=>b(e),()=>b());var k=V(Ee,2),qe=ie(k);{var wt=e=>{var n=Xt();let a;var d=Xe(n,!0);H((f,v)=>{P(n,"hidden",t(S)),a=q(n,"",a,{left:f,"font-variation-settings":"'wght' 500"}),Ze(d,v)},[()=>re(t(L)??0),()=>D()(t(w))]),Je(1,n,()=>Ft,()=>({tier:"fast",y:4,scale:.98})),Je(2,n,()=>qt,()=>({tier:"fast",y:4,scale:.98})),A(e,n)};X(qe,e=>{t(w)!==null&&t(Se)&&e(wt)})}var Re=V(qe,2),Te=V(Re,2);let Be;var Ve=V(Te,2);let We,Ke;var Le=V(Ve,2);{var xt=e=>{var n=At(),a=zt(n);Ht(a,16,()=>t(s),d=>d,(d,f)=>{var v=Zt();let m;H(l=>m=q(v,"",m,{left:l}),[()=>re(G(f))]),A(d,v)}),A(e,n)};X(Le,e=>{pe()&&t(s)&&e(xt)})}var Ue=V(Le,2);let Ge;oe(k),Ie(k,e=>te=e,()=>te),oe(Pe);var yt=V(Pe,2);{var _t=e=>{Ne(e)};X(yt,e=>{Y()&&(h()==="right"||h()==="bottom")&&e(_t)})}return oe(T),H((e,n,a,d,f,v,m,l,N)=>{P(T,"data-disabled",_()||void 0),P(T,"data-invalid",t(ke)||void 0),P(T,"data-pressed",t(S)||void 0),P(T,"data-appearance",z()),j(T,1,e,"svelte-2rnmeq"),j(Re,1,n,"svelte-2rnmeq"),j(Te,1,a,"svelte-2rnmeq"),Be=q(Te,"",Be,{width:d}),We=j(Ve,1,f,"svelte-2rnmeq",We,{"opacity-0":t(w)===null||t(S)}),Ke=q(Ve,"",Ke,{left:v,width:m}),j(Ue,1,l,"svelte-2rnmeq"),Ge=q(Ue,"",Ge,{left:N,width:`${Me.current}px`,height:`${Me.current}px`})},[()=>Z(F("flex w-full min-w-24 select-none touch-none overflow-visible",h()==="left"||h()==="right"?"flex-row items-center gap-2":"flex-col gap-1",_()&&"pointer-events-none opacity-50",$())),()=>Z(F("absolute inset-x-px top-[9px] h-[18px] overflow-hidden rounded-full border bg-transparent",z()==="overlay"?"border-transparent":"border-border")),()=>Z(F("absolute top-[9px] left-px h-[18px] rounded-full",z()==="overlay"?"bg-transparent":t(ke)?"bg-danger/30 dark:bg-danger/35":"bg-selected/50 dark:bg-accent/40")),()=>nt(U.current),()=>Z(F("pointer-events-none absolute top-[9px] h-[18px] rounded-full transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none",z()==="overlay"?"bg-transparent":"bg-accent/40")),()=>at(),()=>rt(),()=>Z(F("pointer-events-none absolute top-1/2 z-20 -translate-y-1/2 rounded-full border border-border bg-background shadow-(--elevation-raised)",t(_e)&&"outline outline-1 outline-focus-ring outline-offset-2 shadow-none",t(ke)&&"border-danger")),()=>tt(U.current)]),le("pointerenter",k,pt),le("pointerleave",k,ft),O("pointerdown",k,dt),O("pointermove",k,ct),O("pointerup",k,De),le("pointercancel",k,De),A(Ce,T),Nt(gt)}Tt(["keydown","click","pointerdown","pointermove","pointerup"]);const Qt=[{id:"slider-state-matrix",title:"Slider interaction states",states:["default","disabled","invalid","keyboard-focus","arrow-keys","home-end","hover-preview","hover-tooltip","drag-tooltip-hidden","synchronous-drag","spring-settle","inline-value-edit","discrete-steps","step-pips","semantic-track","semantic-thumb","transparent-overlay-track","compact","light","dark","reduced-motion","zoom-200","no-overflow","capture-hover-drag-200ms"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Wt({id:"slider",source:"src/lib/components/ui/slider/slider.svelte",publicImport:"$lib/components/ui/slider",legacyImports:[],exports:["Slider","sliderMetadata"],category:"primitive",owner:"008-B",callers:["src/features/hud/components/HudHeader.svelte","src/lib/component-catalog/ChatPolishGeometryControls.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/SettingsCatalogPreview.svelte","src/lib/components/settings/AgentBackendSettings.svelte","src/lib/components/settings/NotificationSettings.svelte","src/lib/components/ui/ZoomPanViewport.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/slider/slider.test.ts",removalGate:"Retain while native range, pointer, keyboard, discrete step, and editing tests pass.",dynamicImports:[],fixtures:Qt});export{Jt as S};
@@ -1,4 +1,4 @@
1
- import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./wsJnb2w5.js";import{b as Xt,l as Yt}from"./PgqRte-r.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
1
+ import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./DnDBa5Or.js";import{b as Xt,l as Yt}from"./Bxs2oudl.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(L==Vt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(B[0]){case 1:u.push(L),S.push(D.yytext),o.push(D.yylloc),u.push(B[1]),L=null,zt=D.yyleng,p=D.yytext,dt=D.yylineno,At=D.yylloc;break;case 2:if(N=this.productions_[B[1]][1],j.$=S[S.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},xi&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[p,zt,dt,$.yy,B[1],S,o].concat(di)),typeof wt<"u")return wt;N&&(u=u.slice(0,-1*N*2),S=S.slice(0,-1*N),o=o.slice(0,-1*N)),u.push(this.productions_[B[1]][0]),S.push(j.$),o.push(j._$),Wt=lt[u[u.length-2]][u[u.length-1]],u.push(Wt);break;case 3:return!0}}return!0},"parse")},rt=(function(){var O={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as Mt}from"./ByQw5PSS.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./wsJnb2w5.js";import{p as Rt}from"./BLN77Nun.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
1
+ import{p as Mt}from"./O-SiHQ6R.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./DnDBa5Or.js";import{p as Rt}from"./BeQ5cBZr.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
2
2
  `+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${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("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}