@agent-spaces/server 0.2.5 → 0.2.7

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 (266) hide show
  1. package/dist/adapters/agent-runtime.js +4 -0
  2. package/dist/adapters/langchain-runtime.js +207 -0
  3. package/dist/app.js +6 -0
  4. package/dist/package.json +5 -1
  5. package/dist/routes/agent-sse.js +201 -0
  6. package/dist/routes/notification.js +31 -0
  7. package/dist/routes/search.js +40 -0
  8. package/dist/services/agent.js +1 -1
  9. package/dist/services/notification-center.js +52 -0
  10. package/dist/services/notification-hub/events.js +32 -0
  11. package/dist/services/search.js +211 -0
  12. package/dist/web/404.html +1 -1
  13. package/dist/web/__next.__PAGE__.txt +4 -4
  14. package/dist/web/__next._full.txt +26 -22
  15. package/dist/web/__next._head.txt +4 -4
  16. package/dist/web/__next._index.txt +13 -9
  17. package/dist/web/__next._tree.txt +2 -2
  18. package/dist/web/_next/static/chunks/0-a17~4piefz_.js +1 -0
  19. package/dist/web/_next/static/chunks/0-utii~i2fncd.js +678 -0
  20. package/dist/web/_next/static/chunks/0-y43ovhjaeo_.js +1 -0
  21. package/dist/web/_next/static/chunks/0.-4-1p34akka.js +1 -0
  22. package/dist/web/_next/static/chunks/0.335m_d-cd_g.js +1 -0
  23. package/dist/web/_next/static/chunks/0.hcqmse3gu~-.js +1 -0
  24. package/dist/web/_next/static/chunks/0.~n0s82y4zh_.css +1 -0
  25. package/dist/web/_next/static/chunks/002-dxhags4dj.js +2 -0
  26. package/dist/web/_next/static/chunks/00n.pmqcipjyd.js +1 -0
  27. package/dist/web/_next/static/chunks/01pn1cm5v501e.js +1 -0
  28. package/dist/web/_next/static/chunks/02duknlg3rgjp.js +1 -0
  29. package/dist/web/_next/static/chunks/02ucy02hzl4vo.js +1 -0
  30. package/dist/web/_next/static/chunks/02wkg1tjv~_t2.js +1 -0
  31. package/dist/web/_next/static/chunks/02~6z3ja20ogz.js +1 -0
  32. package/dist/web/_next/static/chunks/0358_-ep6szf..js +1 -0
  33. package/dist/web/_next/static/chunks/035l5i6hvxwm4.js +1 -0
  34. package/dist/web/_next/static/chunks/03jy~o.gx._e-.js +3 -0
  35. package/dist/web/_next/static/chunks/03sd~wmqw.9gc.js +3 -0
  36. package/dist/web/_next/static/chunks/04zxh2e-4~-xs.js +1 -0
  37. package/dist/web/_next/static/chunks/05gu5s~8nh2wc.js +1 -0
  38. package/dist/web/_next/static/chunks/05irsi.vzfofq.js +1 -0
  39. package/dist/web/_next/static/chunks/05tbg-zp1~2c_.js +1 -0
  40. package/dist/web/_next/static/chunks/05tqezrd9jb7y.js +1 -0
  41. package/dist/web/_next/static/chunks/060_mn7wcaphv.js +1 -0
  42. package/dist/web/_next/static/chunks/06vb1.5j-tuzp.js +1 -0
  43. package/dist/web/_next/static/chunks/06xd5s9wkyu0_.js +1 -0
  44. package/dist/web/_next/static/chunks/07bs5ds68tg38.js +2 -0
  45. package/dist/web/_next/static/chunks/082lp-xqv7r.-.js +183 -0
  46. package/dist/web/_next/static/chunks/09j3~tko9ep2k.js +1 -0
  47. package/dist/web/_next/static/chunks/09qqxs3eg7e46.js +1 -0
  48. package/dist/web/_next/static/chunks/0_-20qzivafad.js +1 -0
  49. package/dist/web/_next/static/chunks/0_gm.-h0brxaf.js +1 -0
  50. package/dist/web/_next/static/chunks/0_yb4aw3n-lks.js +1 -0
  51. package/dist/web/_next/static/chunks/0ag4p6m9rze~n.js +1 -0
  52. package/dist/web/_next/static/chunks/0ay4fv-nniykh.css +10 -0
  53. package/dist/web/_next/static/chunks/0b9oy9dat2g6l.js +1 -0
  54. package/dist/web/_next/static/chunks/0bm-i9rs31uos.js +1 -0
  55. package/dist/web/_next/static/chunks/0brr7g0p8esun.js +1 -0
  56. package/dist/web/_next/static/chunks/0ck3is68a9586.js +1 -0
  57. package/dist/web/_next/static/chunks/0csqa76ud3h4d.js +1 -0
  58. package/dist/web/_next/static/chunks/0d4o_4v0-e97a.js +1 -0
  59. package/dist/web/_next/static/chunks/0d5sgidwe_pcg.js +1 -0
  60. package/dist/web/_next/static/chunks/0d8lm7uud1uuc.js +1 -0
  61. package/dist/web/_next/static/chunks/0extjypm.j7dp.js +1 -0
  62. package/dist/web/_next/static/chunks/0f0-0to._hvah.js +1 -0
  63. package/dist/web/_next/static/chunks/0f6vrjsdauiwl.js +2 -0
  64. package/dist/web/_next/static/chunks/0g3ypwmflp2mx.js +1 -0
  65. package/dist/web/_next/static/chunks/0ggkvx5v53lvc.js +1 -0
  66. package/dist/web/_next/static/chunks/0ghe5b2-kyi7-.js +1 -0
  67. package/dist/web/_next/static/chunks/0gkx0n_plricw.js +1 -0
  68. package/dist/web/_next/static/chunks/0gqhau02~fg83.js +1 -0
  69. package/dist/web/_next/static/chunks/0gtbd3yt7y1gx.js +1 -0
  70. package/dist/web/_next/static/chunks/0h5q90v_js2e0.js +1 -0
  71. package/dist/web/_next/static/chunks/0hu5nx-z4fj7v.js +1 -0
  72. package/dist/web/_next/static/chunks/0i0psxcvhdp9w.js +1 -0
  73. package/dist/web/_next/static/chunks/0jm496tvvtjqx.js +1 -0
  74. package/dist/web/_next/static/chunks/{03jbh7ud0jw~g.js → 0jmsjlawtg6oa.js} +1 -1
  75. package/dist/web/_next/static/chunks/0ju52ko_nh7gi.js +1 -0
  76. package/dist/web/_next/static/chunks/0jxj3xh399qcn.js +1 -0
  77. package/dist/web/_next/static/chunks/0kp1m06cg897x.js +1 -0
  78. package/dist/web/_next/static/chunks/0ku310xxoin~a.js +1 -0
  79. package/dist/web/_next/static/chunks/0kyv5yika-41a.js +1 -0
  80. package/dist/web/_next/static/chunks/0l9n6jio6olx1.js +1 -0
  81. package/dist/web/_next/static/chunks/0lkfsj~tpr.u8.js +1 -0
  82. package/dist/web/_next/static/chunks/0m9t_esdrum7w.js +1 -0
  83. package/dist/web/_next/static/chunks/0n.gs01bd1s_w.js +1 -0
  84. package/dist/web/_next/static/chunks/0n0j7tw_y1qk2.js +1 -0
  85. package/dist/web/_next/static/chunks/0n1jhw8ksl5a0.js +1 -0
  86. package/dist/web/_next/static/chunks/0nq24vo2_9kp4.js +1 -0
  87. package/dist/web/_next/static/chunks/0p~x_p9pgpnmh.js +1 -0
  88. package/dist/web/_next/static/chunks/0q01i3ypmm4rg.js +1 -0
  89. package/dist/web/_next/static/chunks/0q38twk.8uk88.js +1 -0
  90. package/dist/web/_next/static/chunks/0q7h6v.~-hcln.js +1 -0
  91. package/dist/web/_next/static/chunks/0qe5wvs8fe9ip.js +1 -0
  92. package/dist/web/_next/static/chunks/0qtd.b3zhzf38.js +1 -0
  93. package/dist/web/_next/static/chunks/0qxk21zejhdbm.js +1 -0
  94. package/dist/web/_next/static/chunks/0rfeqjw8k-viv.js +1 -0
  95. package/dist/web/_next/static/chunks/0rs7_x_.71x1k.js +1 -0
  96. package/dist/web/_next/static/chunks/0rx7dmtxo4d6p.js +1 -0
  97. package/dist/web/_next/static/chunks/0sjpil-vio33w.js +1 -0
  98. package/dist/web/_next/static/chunks/0ss8hcog1_n1i.js +1 -0
  99. package/dist/web/_next/static/chunks/0sz5yhrzrrx-_.js +1 -0
  100. package/dist/web/_next/static/chunks/0t1pc5h0n0y3..js +1 -0
  101. package/dist/web/_next/static/chunks/0tirraeyj7nqp.js +3 -0
  102. package/dist/web/_next/static/chunks/0tkii3.lkbu3u.js +1 -0
  103. package/dist/web/_next/static/chunks/0tl6o7zu1j1r-.css +88 -0
  104. package/dist/web/_next/static/chunks/0u-29g8eo8dqk.js +7 -0
  105. package/dist/web/_next/static/chunks/0uiiaq~dh4jdx.js +1 -0
  106. package/dist/web/_next/static/chunks/0vemm6g3yufzf.js +1 -0
  107. package/dist/web/_next/static/chunks/0w-ftk2~z_w0f.js +1 -0
  108. package/dist/web/_next/static/chunks/0w52~a1.76e6y.js +298 -0
  109. package/dist/web/_next/static/chunks/0wm70l0hod.sw.js +1 -0
  110. package/dist/web/_next/static/chunks/0wz8~mvztv-vq.js +1 -0
  111. package/dist/web/_next/static/chunks/0xgw6nacc67av.js +1 -0
  112. package/dist/web/_next/static/chunks/0y.6d96hu3k6k.js +1 -0
  113. package/dist/web/_next/static/chunks/0y5ipuqgqfrob.js +8 -0
  114. package/dist/web/_next/static/chunks/0yuyx75r122y-.js +1 -0
  115. package/dist/web/_next/static/chunks/0zb1vymmeoc9o.js +1 -0
  116. package/dist/web/_next/static/chunks/0zj_8cn9~m2~g.js +1 -0
  117. package/dist/web/_next/static/chunks/0ztjb8i4tqvql.js +1 -0
  118. package/dist/web/_next/static/chunks/0zxtxecpqyoeh.js +1 -0
  119. package/dist/web/_next/static/chunks/100t886jj0x0x.js +1 -0
  120. package/dist/web/_next/static/chunks/11n6upyldh80p.js +1 -0
  121. package/dist/web/_next/static/chunks/11x5nw_8yy5d0.js +1 -0
  122. package/dist/web/_next/static/chunks/11~8.35p7_vky.js +1 -0
  123. package/dist/web/_next/static/chunks/12ae7z-332nqe.js +1 -0
  124. package/dist/web/_next/static/chunks/12sucjx_z8ftc.js +1 -0
  125. package/dist/web/_next/static/chunks/13vl889h_tb-~.js +1 -0
  126. package/dist/web/_next/static/chunks/13w2r5w~ikt_6.js +1 -0
  127. package/dist/web/_next/static/chunks/14iaqoj9-09g..js +2 -0
  128. package/dist/web/_next/static/chunks/14j.uts4xnh.u.js +1 -0
  129. package/dist/web/_next/static/chunks/14qoup0y_1j0t.js +1 -0
  130. package/dist/web/_next/static/chunks/15_n_khh8cuax.js +5 -0
  131. package/dist/web/_next/static/chunks/15abz60ucjy3t.js +1 -0
  132. package/dist/web/_next/static/chunks/15gjlpek9nxo4.js +1 -0
  133. package/dist/web/_next/static/chunks/15s4k5wdbcagm.js +1 -0
  134. package/dist/web/_next/static/chunks/178fuwl3hg67c.js +1372 -0
  135. package/dist/web/_next/static/chunks/17a_qp~nx3_r1.js +1 -0
  136. package/dist/web/_next/static/chunks/184ukbf139de1.js +1 -0
  137. package/dist/web/_next/static/chunks/186mu8y9np1sy.js +1 -0
  138. package/dist/web/_next/static/chunks/turbopack-0-j2hpomozegf.js +1 -0
  139. package/dist/web/_next/static/chunks/turbopack-0_zn00zg5kmqz.js +1 -0
  140. package/dist/web/_next/static/chunks/turbopack-0l~pq1hytx49z.js +1 -0
  141. package/dist/web/_next/static/chunks/turbopack-0rrhp9pbrv0p3.js +1 -0
  142. package/dist/web/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  143. package/dist/web/_next/static/media/codicon.0~p3po1x7ylnt.ttf +0 -0
  144. package/dist/web/_next/static/media/css.worker.0wg41onjsu4l8.js +8 -0
  145. package/dist/web/_next/static/media/html.worker.13ihv~a-85iob.js +8 -0
  146. package/dist/web/_next/static/media/json.worker.15xmpow_4mdxu.js +8 -0
  147. package/dist/web/_next/static/media/ts.worker.05mkk_j-~tju1.js +14 -0
  148. package/dist/web/_not-found/__next._full.txt +30 -26
  149. package/dist/web/_not-found/__next._head.txt +4 -4
  150. package/dist/web/_not-found/__next._index.txt +13 -9
  151. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  152. package/dist/web/_not-found/__next._not-found.txt +3 -3
  153. package/dist/web/_not-found/__next._tree.txt +2 -2
  154. package/dist/web/_not-found.html +1 -1
  155. package/dist/web/_not-found.txt +30 -26
  156. package/dist/web/index.html +1 -1
  157. package/dist/web/index.txt +26 -22
  158. package/dist/web/login/__next._full.txt +29 -25
  159. package/dist/web/login/__next._head.txt +4 -4
  160. package/dist/web/login/__next._index.txt +13 -9
  161. package/dist/web/login/__next._tree.txt +2 -2
  162. package/dist/web/login/__next.login.__PAGE__.txt +4 -4
  163. package/dist/web/login/__next.login.txt +3 -3
  164. package/dist/web/login.html +1 -1
  165. package/dist/web/login.txt +29 -25
  166. package/dist/web/settings/__next._full.txt +34 -28
  167. package/dist/web/settings/__next._head.txt +4 -4
  168. package/dist/web/settings/__next._index.txt +13 -9
  169. package/dist/web/settings/__next._tree.txt +2 -2
  170. package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
  171. package/dist/web/settings/__next.settings.txt +5 -5
  172. package/dist/web/settings/agents/__next._full.txt +35 -31
  173. package/dist/web/settings/agents/__next._head.txt +4 -4
  174. package/dist/web/settings/agents/__next._index.txt +13 -9
  175. package/dist/web/settings/agents/__next._tree.txt +2 -2
  176. package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
  177. package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
  178. package/dist/web/settings/agents/__next.settings.txt +5 -5
  179. package/dist/web/settings/agents.html +1 -1
  180. package/dist/web/settings/agents.txt +35 -31
  181. package/dist/web/settings/mcps/__next._full.txt +35 -31
  182. package/dist/web/settings/mcps/__next._head.txt +4 -4
  183. package/dist/web/settings/mcps/__next._index.txt +13 -9
  184. package/dist/web/settings/mcps/__next._tree.txt +2 -2
  185. package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
  186. package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
  187. package/dist/web/settings/mcps/__next.settings.txt +5 -5
  188. package/dist/web/settings/mcps.html +1 -1
  189. package/dist/web/settings/mcps.txt +35 -31
  190. package/dist/web/settings/models/__next._full.txt +35 -31
  191. package/dist/web/settings/models/__next._head.txt +4 -4
  192. package/dist/web/settings/models/__next._index.txt +13 -9
  193. package/dist/web/settings/models/__next._tree.txt +2 -2
  194. package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
  195. package/dist/web/settings/models/__next.settings.models.txt +3 -3
  196. package/dist/web/settings/models/__next.settings.txt +5 -5
  197. package/dist/web/settings/models.html +1 -1
  198. package/dist/web/settings/models.txt +35 -31
  199. package/dist/web/settings/providers/__next._full.txt +35 -31
  200. package/dist/web/settings/providers/__next._head.txt +4 -4
  201. package/dist/web/settings/providers/__next._index.txt +13 -9
  202. package/dist/web/settings/providers/__next._tree.txt +2 -2
  203. package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
  204. package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
  205. package/dist/web/settings/providers/__next.settings.txt +5 -5
  206. package/dist/web/settings/providers.html +1 -1
  207. package/dist/web/settings/providers.txt +35 -31
  208. package/dist/web/settings/skills/__next._full.txt +35 -31
  209. package/dist/web/settings/skills/__next._head.txt +4 -4
  210. package/dist/web/settings/skills/__next._index.txt +13 -9
  211. package/dist/web/settings/skills/__next._tree.txt +2 -2
  212. package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
  213. package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
  214. package/dist/web/settings/skills/__next.settings.txt +5 -5
  215. package/dist/web/settings/skills.html +1 -1
  216. package/dist/web/settings/skills.txt +35 -31
  217. package/dist/web/settings.html +1 -1
  218. package/dist/web/settings.txt +34 -28
  219. package/dist/web/workflows/__next._full.txt +31 -27
  220. package/dist/web/workflows/__next._head.txt +4 -4
  221. package/dist/web/workflows/__next._index.txt +13 -9
  222. package/dist/web/workflows/__next._tree.txt +2 -2
  223. package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
  224. package/dist/web/workflows/__next.workflows.txt +3 -3
  225. package/dist/web/workflows.html +1 -1
  226. package/dist/web/workflows.txt +31 -27
  227. package/dist/web/workspace/_/__next._full.txt +36 -25
  228. package/dist/web/workspace/_/__next._head.txt +4 -4
  229. package/dist/web/workspace/_/__next._index.txt +13 -9
  230. package/dist/web/workspace/_/__next._tree.txt +4 -2
  231. package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +5 -3
  232. package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
  233. package/dist/web/workspace/_/__next.workspace.txt +3 -3
  234. package/dist/web/workspace/_.html +1 -1
  235. package/dist/web/workspace/_.txt +36 -25
  236. package/dist/web/workspaces/__next._full.txt +30 -25
  237. package/dist/web/workspaces/__next._head.txt +4 -4
  238. package/dist/web/workspaces/__next._index.txt +13 -9
  239. package/dist/web/workspaces/__next._tree.txt +2 -2
  240. package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
  241. package/dist/web/workspaces/__next.workspaces.txt +3 -3
  242. package/dist/web/workspaces.html +1 -1
  243. package/dist/web/workspaces.txt +30 -25
  244. package/package.json +15 -10
  245. package/dist/web/_next/static/chunks/0.4.g.8yf4rs0.js +0 -3
  246. package/dist/web/_next/static/chunks/02m_-ngl9w8co.js +0 -1
  247. package/dist/web/_next/static/chunks/08fqgb~~a~4ck.js +0 -1
  248. package/dist/web/_next/static/chunks/0an2wvcgfh4yg.js +0 -2
  249. package/dist/web/_next/static/chunks/0dpsi68hqjuon.js +0 -1
  250. package/dist/web/_next/static/chunks/0fwvdy-ml8wpk.js +0 -1
  251. package/dist/web/_next/static/chunks/0ib18ul605e~a.js +0 -1
  252. package/dist/web/_next/static/chunks/0j282o9qw3fnz.css +0 -1
  253. package/dist/web/_next/static/chunks/0lgk.w8y-3ppq.js +0 -1
  254. package/dist/web/_next/static/chunks/0o4m39hw4fb_j.js +0 -1
  255. package/dist/web/_next/static/chunks/0qyjxx0y7rzuu.js +0 -1
  256. package/dist/web/_next/static/chunks/0rrdur.v1a5r7.js +0 -1
  257. package/dist/web/_next/static/chunks/0spo.tmfeas-o.js +0 -1
  258. package/dist/web/_next/static/chunks/0u88ij9dqqh~-.js +0 -1
  259. package/dist/web/_next/static/chunks/0v4atb3hml5fn.js +0 -8
  260. package/dist/web/_next/static/chunks/0vwzzneidqvbo.js +0 -2
  261. package/dist/web/_next/static/chunks/11n16hogah-5..js +0 -1
  262. package/dist/web/_next/static/chunks/160ji-.dfvm20.js +0 -1
  263. package/dist/web/_next/static/chunks/18bgtswajrg9e.js +0 -179
  264. /package/dist/web/_next/static/{CW6M37hm3VxkelXPKGgw3 → hGfVPALj5nbwettayL9DY}/_buildManifest.js +0 -0
  265. /package/dist/web/_next/static/{CW6M37hm3VxkelXPKGgw3 → hGfVPALj5nbwettayL9DY}/_clientMiddlewareManifest.js +0 -0
  266. /package/dist/web/_next/static/{CW6M37hm3VxkelXPKGgw3 → hGfVPALj5nbwettayL9DY}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,564822,t=>{"use strict";var e=t.i(764556);t.s(["useIsMobile",0,function(){let[t,i]=e.useState(void 0);return e.useEffect(()=>{let t=window.matchMedia("(max-width: 767px)"),e=()=>{i(window.innerWidth<768)};return t.addEventListener("change",e),i(window.innerWidth<768),()=>t.removeEventListener("change",e)},[]),!!t}])},14452,t=>{"use strict";var e=t.i(344180),i=t.i(724966),n=t.i(465458),s=t.i(260218),r=t.i(422373);function a({...t}){return(0,e.jsx)(i.Dialog.Portal,{"data-slot":"sheet-portal",...t})}function o({className:t,...s}){return(0,e.jsx)(i.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:(0,n.cn)("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",t),...s})}t.s(["Sheet",0,function({...t}){return(0,e.jsx)(i.Dialog.Root,{"data-slot":"sheet",...t})},"SheetContent",0,function({className:t,children:l,side:u="right",showCloseButton:d=!0,...h}){return(0,e.jsxs)(a,{children:[(0,e.jsx)(o,{}),(0,e.jsxs)(i.Dialog.Popup,{"data-slot":"sheet-content","data-side":u,className:(0,n.cn)("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...h,children:[l,d&&(0,e.jsxs)(i.Dialog.Close,{"data-slot":"sheet-close",render:(0,e.jsx)(s.Button,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,e.jsx)(r.XIcon,{}),(0,e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"SheetDescription",0,function({className:t,...s}){return(0,e.jsx)(i.Dialog.Description,{"data-slot":"sheet-description",className:(0,n.cn)("text-sm text-muted-foreground",t),...s})},"SheetHeader",0,function({className:t,...i}){return(0,e.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-0.5 p-4",t),...i})},"SheetTitle",0,function({className:t,...s}){return(0,e.jsx)(i.Dialog.Title,{"data-slot":"sheet-title",className:(0,n.cn)("font-heading text-base font-medium text-foreground",t),...s})}])},570606,t=>{"use strict";var e,i,n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(e=function(t){return n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i=Object.create(null),function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",0,s],570606)},341807,t=>{"use strict";let e,i,n,s,r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(r),o=(t,e,i)=>i>e?e:i<t?t:i,l={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},u={...l,transform:t=>o(0,1,t)},d={...l,default:1},h=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>i=>!!("string"==typeof i&&p.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),f=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(c);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},g={...l,transform:t=>Math.round(o(0,255,t))},y={test:m("rgb","red"),parse:f("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+h(u.transform(n))+")"},v={test:m("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:y.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=b("deg"),w=b("%"),S=b("px"),T=b("vh"),P=b("vw"),E={...w,parse:t=>w.parse(t)/100,transform:t=>w.transform(100*t)},k={test:m("hsl","hue"),parse:f("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+w.transform(h(e))+", "+w.transform(h(i))+", "+h(u.transform(n))+")"},A={test:t=>y.test(t)||v.test(t)||k.test(t),parse:t=>y.test(t)?y.parse(t):k.test(t)?k.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):k.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",R="color",V=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function D(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(V,t=>(A.test(t)?(n.color.push(r),s.push(R),i.push(A.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(C),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function L({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===C?s+=h(n[r]):t===R?s+=A.transform(n[r]):s+=n[r]}return s}}let j={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(M)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return L(D(t))},getAnimatableNone:function(t){let e=D(t);return L(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t)(t,e.split[i])))}},B=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];if(!n)return t;let s=i.replace(n,""),r=+!!B.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let F=/\b([a-z-]*)\(.*?\)/gu,O={...j,getAnimatableNone:t=>{let e=t.match(F);return e?e.map(I).join(" "):t}},N={...j,getAnimatableNone:t=>{let e=j.parse(t);return j.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...l,transform:Math.round},U={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:x,skewX:x,skewY:x,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:u,originX:E,originY:E,originZ:S,zIndex:z,fillOpacity:u,strokeOpacity:u,numOctaves:z},W={...U,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:O,WebkitFilter:O,mask:N,WebkitMask:N},$=t=>W[t],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:H(),y:H()}),X=()=>({min:0,max:0}),q=()=>({x:X(),y:X()}),K=t=>!!(t&&t.getVelocity),G=new Set(["width","height","top","left","right","bottom",...r]),Z=t=>e=>e.test(t),_=[l,S,w,x,P,T,{test:t=>"auto"===t,parse:t=>t}],J=t=>_.find(Z(t));var Q,tt=t.i(8890);let te=()=>{},ti=()=>{};tt.default;let tn=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tn("--"),tr=tn("var(--"),ta=t=>!!tr(t)&&to.test(t.split("/*")[0].trim()),to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,td=t=>180*t/Math.PI,th=t=>tp(td(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:th,rotateZ:th,skewX:t=>td(Math.atan(t[1])),skewY:t=>td(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(td(Math.atan2(t[6],t[5]))),rotateY:t=>tp(td(Math.atan2(-t[2],t[0]))),rotateZ:th,rotate:th,skewX:t=>td(Math.atan(t[4])),skewY:t=>td(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tg,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,n=e}if(!n)return ty(e);let r=i[e],a=n[1].split(",").map(tb);return"function"==typeof r?r(a):a[r]}function tb(t){return parseFloat(t.trim())}let tx=t=>t===l||t===S,tw=new Set(["x","y","z"]),tS=r.filter(t=>!tw.has(t)),tT={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tT.translateX=tT.x,tT.translateY=tT.y;let tP=t=>t,tE={},tk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tA(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tk.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(d.schedule(e),t()),l++,e(o)}let d={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let a=i;i=n,n=a,i.forEach(u),e,l=0,i.clear(),s=!1,r&&(r=!1,d.process(t))}};return d}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:d,update:h,preRender:c,render:p,postRender:m}=a,f=()=>{let r=tE.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),d.process(s),h.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tk.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tk.length;e++)a[tk[e]].cancel(t)},state:s,steps:a}}let{schedule:tM,cancel:tC,state:tR,steps:tV}=tA("u">typeof requestAnimationFrame?requestAnimationFrame:tP,!0),tD=new Set,tL=!1,tj=!1,tB=!1;function tI(){if(tj){let t=Array.from(tD).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tS.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tj=!1,tL=!1,tD.forEach(t=>t.complete(tB)),tD.clear()}function tF(){tD.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tj=!0)})}class tO{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tD.add(this),tL||(tL=!0,tM.read(tF),tM.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tD.delete(this)}cancel(){"scheduled"===this.state&&(tD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tN=new Set([O,N]);function tz(t,e){let i=$(t);return tN.has(i)||(i=j),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tU=new Set(["auto","none","0"]);class tW extends tO{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ta(n=n.trim())){let s=function t(e,i,n=1){ti(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ta(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!G.has(i)||2!==t.length)return;let[n,s]=t,r=J(n),a=J(s);if(tl(n)!==tl(s)&&tT[i]){this.needsMeasurement=!0;return}if(r!==a)if(tx(r)&&tx(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tT[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tU.has(e)&&D(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tz(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tT[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function tH(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tH(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tq(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let tG={};function tZ(t,e){let i=tK(t);return()=>tG[e]??i()}let t_=tZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tJ),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}class t0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t1={layout:0,mainThread:0,waapi:0},t5=t=>Array.isArray(t)&&"number"==typeof t[0],t2=tZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t3=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t4=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class t8 extends t0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t9(t)&&t2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let d={[e]:i};l&&(d.offset=l);let h=function t(e,i){if(e)return"function"==typeof e?t2()?t3(e,i):"ease-out":t5(e)?t4(e):Array.isArray(e)?e.map(e=>t(e,i)||t6.easeOut):t6[e]}(o,s);Array.isArray(h)&&(d.easing=h);let c={delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(d,c);return p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tQ(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tq(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t_())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tP):n(this)}}let t7=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tA(queueMicrotask,!1);function ee(){i=void 0}let ei={now:()=>(void 0===i&&ei.set(tR.isProcessing||tE.useManualTiming?tR.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(ee)}};class en{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ei.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ei.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let i=this.events[t].add(e);return"change"===t?()=>{i(),tM.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ei.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function es(t,e){return new en(t,e)}let er=[..._,A,j],ea=new WeakMap;function eo(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...eu];function eh(t){return eo(t.animate)||ed.some(e=>el(t[e]))}function ec(t){return!!(eh(t)||t.variants)}let ep={current:null},em={current:!1},ef="u">typeof window;function eg(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ey(t,e,i,n){if("function"==typeof e){let[s,r]=eg(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=eg(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eb={};class ex{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tO,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ei.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tM.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=eh(e),this.isVariantNode=ec(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&K(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ea.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(em.current||function(){if(em.current=!0,ef)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ep.current=t.matches;t.addEventListener("change",e),e()}else ep.current=!1}(),this.shouldReduceMotion=ep.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tC(this.notifyUpdate),tC(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t7.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new t8({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:t$(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eb){let e=eb[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(K(s))t.addValue(n,s);else if(K(r))t.addValue(n,es(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,es(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=es(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!er.find(Z(n))&&j.test(e)&&(i=tz(t,e))}this.setBaseTarget(t,K(i)?i.get():i)}return K(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ey(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||K(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class ew extends ex{constructor(){super(...arguments),this.KeyframeResolver=tW}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;K(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eS(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eT=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=r.length;function ek(t,e,i){let{style:n,vars:s,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(ts(t)){s[t]=i;continue}{let e=eT(i,U[t]);t.startsWith("origin")?(u=!0,o[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let a=0;a<eE;a++){let o=r[a],l=t[o];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!o.startsWith("scale");else{let t=parseFloat(l);u=o.startsWith("scale")?1===t:0===t}if(!u||i){let t=eT(l,U[o]);if(!u){s=!1;let e=eP[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}let eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"},eC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eR(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,d){if(ek(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:c}=t;for(let t of(h.transform&&(c.transform=h.transform,delete h.transform),(c.transform||h.transformOrigin)&&(c.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),c.transform&&(c.transformBox=d?.transformBox??"fill-box",delete h.transformBox),eC))void 0!==h[t]&&(c[t]=h[t],delete h[t]);void 0!==e&&(h.x=e),void 0!==i&&(h.y=i),void 0!==n&&(h.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eA:eM;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(h,s,r,a,!1)}let eV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eD=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function ej(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eB={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let i=ej(t,e.target.x),n=ej(t,e.target.y);return`${i}% ${n}%`}},eI=(t,e,i)=>t+(e-t)*i,eF={borderRadius:{...eB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eB,borderTopRightRadius:eB,borderBottomLeftRadius:eB,borderBottomRightRadius:eB,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=j.parse(t);if(n.length>5)return t;let s=j.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=eI(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function eO(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eF[t]||"opacity"===t)}function eN(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(K(n[e])||s&&K(s[e])||eO(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function ez(t,e,i){let n=eN(t,e,i);for(let i in t)(K(t[i])||K(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eU extends ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=$(e);return t&&t.default||0}return e=eV.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eL(t,e,void 0,n),e.attrs)t.setAttribute(eV.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eD(t.tagName),super.mount(t)}}function eW({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e$(t){return void 0===t||1===t}function eH({scale:t,scaleX:e,scaleY:i}){return!e$(t)||!e$(e)||!e$(i)}function eY(t){return eH(t)||eX(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eX(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eq(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eK(t,e=0,i=1,n,s){t.min=eq(t.min,e,i,n,s),t.max=eq(t.max,e,i,n,s)}function eG(t,{x:e,y:i}){eK(t.x,e.translate,e.scale,e.originPoint),eK(t.y,i.translate,i.scale,i.originPoint)}function eZ(t,e){t.min+=e,t.max+=e}function e_(t,e,i,n,s=.5){let r=eI(t.min,t.max,s);eK(t,e,i,r,n)}function eJ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eQ(t,e,i){let n=i??t;e_(t.x,eJ(e.x,n.x),e.scaleX,e.scale,e.originX),e_(t.y,eJ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eW(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e1 extends ew{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,i){ek(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eN(t,e,i)}}var e5=t.i(764556);let e2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e3(t){if("string"!=typeof t||t.includes("-"));else if(e2.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e4=t.i(344180);let e6=(0,e5.createContext)({}),e9=(0,e5.createContext)({strict:!1}),e8=(0,e5.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),e7=(0,e5.createContext)({});function it(t){return Array.isArray(t)?t.join(" "):t}let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ii(t,e,i){for(let n in e)K(e[n])||eO(n,i)||(t[n]=e[n])}let is=()=>({...ie(),attrs:{}}),ir=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ia(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ir.has(t)}let io=t=>!ia(t);try{Q=t.r(570606).default,"function"==typeof Q&&(io=t=>t.startsWith("on")?!ia(t):Q(t))}catch{}function il(t){return K(t)?t.get():t}let iu=(0,e5.createContext)(null),id=t=>(e,i)=>{let n,s=(0,e5.useContext)(e7),r=(0,e5.useContext)(iu),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=il(r[t]);let{initial:a,animate:o}=t,l=eh(t),u=ec(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let d=!!i&&!1===i.initial,h=(d=d||!1===a)?o:a;if(h&&"boolean"!=typeof h&&!eo(h)){let e=Array.isArray(h)?h:[h];for(let i=0;i<e.length;i++){let n=ey(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,s,r);return i?a():(null===(n=(0,e5.useRef)(null)).current&&(n.current=a()),n.current)},ih=id({scrapeMotionValuesFromProps:eN,createRenderState:ie}),ic=id({scrapeMotionValuesFromProps:ez,createRenderState:is}),ip={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},im=!1;function ig(){return!function(){if(im)return;let t={};for(let e in ip)t[e]={isEnabled:t=>ip[e].some(e=>!!t[e])};eb=t,im=!0}(),eb}let iy=Symbol.for("motionComponentSymbol"),iv="data-"+eS("framerAppearId"),ib=(0,e5.createContext)({});function ix(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iw="u">typeof window?e5.useLayoutEffect:e5.useEffect;function iS(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=ig();for(let i in t)e[i]={...e[i],...t[i]};eb=e}(n);let r=i?"svg"===i:e3(t),a=r?ic:ih;function o(i,n){var o;let l,u,d,h={...(0,e5.useContext)(e8),...i,layoutId:function({layoutId:t}){let e=(0,e5.useContext)(e6).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=h,p=function(t){let{initial:e,animate:i}=function(t,e){if(eh(t)){let{initial:e,animate:i}=t;return{initial:!1===e||el(e)?e:void 0,animate:el(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e5.useContext)(e7));return(0,e5.useMemo)(()=>({initial:e,animate:i}),[it(e),it(i)])}(i),m=a(i,c);if(!c&&"u">typeof window){(0,e5.useContext)(e9).strict;let e=function(t){let{drag:e,layout:i}=ig();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);l=e.MeasureLayout,p.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,e5.useContext)(e7),o=(0,e5.useContext)(e9),l=(0,e5.useContext)(iu),u=(0,e5.useContext)(e8),d=u.reducedMotion,h=u.skipAnimations,c=(0,e5.useRef)(null),p=(0,e5.useRef)(!1);n=n||o.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:h,isSVG:r}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e5.useContext)(ib);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&ix(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(c.current,i,s,f);let g=(0,e5.useRef)(!1);(0,e5.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iv],v=(0,e5.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iw(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e5.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,m,h,s,e.ProjectionNode,r)}return(0,e4.jsxs)(e7.Provider,{value:p,children:[l&&p.visualElement?(0,e4.jsx)(l,{visualElement:p.visualElement,...h}):null,function(t,e,i,{latestValues:n},s,r=!1,a){let o=(a??e3(t)?function(t,e,i,n){let s=(0,e5.useMemo)(()=>{let i=is();return eR(i,e,eD(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ii(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ii(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e5.useMemo)(()=>{let i=ie();return ek(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!K(t[s])&&(io(s)||!0===i&&ia(s)||!e&&!ia(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),u=t!==e5.Fragment?{...l,...o,ref:i}:{},{children:d}=e,h=(0,e5.useMemo)(()=>K(d)?d.get():d,[d]);return(0,e5.createElement)(t,{...u,children:h})}(t,i,(o=p.visualElement,u=(0,e5.useRef)(n),(0,e5.useInsertionEffect)(()=>{u.current=n}),d=(0,e5.useRef)(null),(0,e5.useCallback)(t=>{t&&m.onMount?.(t);let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t);o&&(t?o.mount(t):o.unmount())},[o])),m,c,e,r)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e5.forwardRef)(o);return l[iy]=t,l}class iT{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iP(t,e,i){let n=t.getProps();return ey(n,e,void 0!==i?i:n.custom,t)}function iE(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function ik(t,e){let i=t?.[e]??t?.default??t;return i!==t?iE(i,t):i}let iA=t=>Array.isArray(t);function iM(t,e){let i=t.getValue("willChange");if(K(i)&&i.add)return i.add(e);if(!i&&tE.WillChange){let i=new tE.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iC=(t,e)=>i=>e(t(i)),iR=(...t)=>t.reduce(iC);function iV(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iD(t,e){return i=>i>0?e:t}let iL=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},ij=[v,y,k];function iB(t){let e=ij.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===k&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=iV(o,n,t+1/3),r=iV(o,n,t),a=iV(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let iI=(t,e)=>{let i=iB(t),n=iB(e);if(!i||!n)return iD(t,e);let s={...i};return t=>(s.red=iL(i.red,n.red,t),s.green=iL(i.green,n.green,t),s.blue=iL(i.blue,n.blue,t),s.alpha=eI(i.alpha,n.alpha,t),y.transform(s))},iF=new Set(["none","hidden"]);function iO(t,e){return i=>eI(t,e,i)}function iN(t){return"number"==typeof t?iO:"string"==typeof t?ta(t)?iD:A.test(t)?iI:iW:Array.isArray(t)?iz:"object"==typeof t?A.test(t)?iI:iU:iD}function iz(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iN(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iU(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iN(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iW=(t,e)=>{let i=j.createTransformer(e),n=D(t),s=D(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iD(t,e);if(iF.has(t)&&!s.values.length||iF.has(e)&&!n.values.length)return iF.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iR(iz(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function i$(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eI(t,e,i):iN(t)(t,e)}let iH=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tM.update(e,t),stop:()=>tC(e),now:()=>tR.isProcessing?tR.timestamp:ei.now()}};function iY(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iX=.01,iq=2,iK=.005,iG=.5;function iZ(t,e){return t*Math.sqrt(1-e*e)}let i_=["duration","bounce"],iJ=["stiffness","damping","mass"];function iQ(t,e){return e.some(e=>void 0!==t[e])}function i0(t=.3,e=.3){let i,n,s,r,a,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:d,restDelta:h}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:b,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iQ(t,iJ)&&iQ(t,i_))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;te(t<=t$(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=o(.05,1,a),t=o(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/iZ(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=iZ(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=t$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=b||0,S=g/(2*Math.sqrt(f*y)),T=p-c,P=Math.sqrt(f/y)/1e3,E=5>Math.abs(T);if(d||(d=E?iX:iq),h||(h=E?iK:iG),S<1)s=iZ(P,S),r=(w+S*P*T)/s,i=t=>p-Math.exp(-S*P*t)*(r*Math.sin(s*t)+T*Math.cos(s*t)),a=S*P*r+T*s,l=S*P*T-r*s,n=t=>Math.exp(-S*P*t)*(a*Math.sin(s*t)+l*Math.cos(s*t));else if(1===S){i=t=>p-Math.exp(-P*t)*(T+(w+P*T)*t);let t=w+P*T;n=e=>Math.exp(-P*e)*(P*t*e-w)}else{let t=P*Math.sqrt(S*S-1);i=e=>{let i=Math.exp(-S*P*e),n=Math.min(t*e,300);return p-i*((w+S*P*T)*Math.sinh(n)+t*T*Math.cosh(n))/t};let e=(w+S*P*T)/t,s=S*P*e-T*t,r=S*P*T-e*t;n=e=>{let i=Math.exp(-S*P*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let k={calculatedDuration:x&&v||null,velocity:t=>t$(n(t)),next:t=>{if(!x&&S<1){let e=Math.exp(-S*P*t),i=Math.sin(s*t),n=Math.cos(s*t),o=p-e*(r*i+T*n);return m.done=Math.abs(t$(e*(a*i+l*n)))<=d&&Math.abs(p-o)<=h,m.value=m.done?p:o,m}let e=i(t);return x?m.done=t>=v:m.done=Math.abs(t$(n(t)))<=d&&Math.abs(p-e)<=h,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iY(k),2e4),e=t3(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}function i1(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}function i5({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){let h,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),b=t=>y+v(t),x=t=>{let e=v(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;h=t,c=i0({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i1(b,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:d})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==h||(e=!0,x(t),w(t)),void 0!==h&&t>=h)?c.next(t-h):(e||x(t),m)}}}i0.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iY(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i0);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t};let i2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i3(t,e,i,n){return t===e&&i===n?tP:s=>0===s||1===s?s:i2(function(t,e,i,n,s){let r,a,o=0;do(r=i2(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let i4=i3(.42,0,1,1),i6=i3(0,0,.58,1),i9=i3(.42,0,.58,1),i8=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i7=t=>e=>1-t(1-e),nt=i3(.33,1.53,.69,.99),ne=i7(nt),ni=i8(ne),nn=t=>t>=1?1:(t*=2)<1?.5*ne(t):.5*(2-Math.pow(2,-10*(t-1))),ns=t=>1-Math.sin(Math.acos(t)),nr=i7(ns),na=i8(ns),no={linear:tP,easeIn:i4,easeInOut:i9,easeOut:i6,circIn:ns,circInOut:na,circOut:nr,backIn:ne,backInOut:ni,backOut:nt,anticipate:nn},nl=t=>{if(t5(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i3(e,i,n,s)}return"string"==typeof t?(ti(void 0!==no[t],`Invalid easing type '${t}'`,"invalid-easing-type"),no[t]):t},nu=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nd({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nl):nl(n),l={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(ti(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],s=i||tE.mix||i$,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=iR(Array.isArray(e)?e[i]||tP:e,r)),n.push(r)}return n}(e,n,s),u=l.length,d=i=>{if(a&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nu(t[n],t[n+1],i);return l[n](s)};return i?e=>d(o(t[0],t[r-1],e)):d}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nu(0,e,n);t.push(eI(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||i9).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let nh={decay:i5,inertia:i5,tween:nd,keyframes:nd,spring:i0};function nc(t){"string"==typeof t.type&&(t.type=nh[t.type])}let np=t=>t/100;class nm extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ei.now()&&this.tick(ei.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t1.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nc(t);let{type:e=nd,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||nd;o!==nd&&"number"!=typeof a[0]&&(this.mixKeyframes=iR(np,i$(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iY(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:d=0,keyframes:h,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,w=n;if(c){let t=Math.min(this.currentTime,s)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(w=a)),x=o(0,1,i)*l}b?(this.delayState.value=h[0],i=this.delayState):i=w.next(x),r&&!b&&(i.value=r(i.value));let{done:S}=i;b||null===u||(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return T&&f!==i5&&(i.value=tQ(h,this.options,y,this.speed)),g&&g(i.value),T&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i1(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ei.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iH,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ei.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nf={anticipate:nn,backInOut:ni,circInOut:na};class ng extends t8{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nf&&(t.ease=nf[t.ease])}(t),nc(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nm({...r,autoplay:!1}),l=Math.max(10,ei.now()-this.startTime),u=o(0,10,l-10),d=a.sample(l).value,{name:h}=this.options;s&&h&&tq(s,h,d),e.setWithVelocity(a.sample(Math.max(0,l-u)).value,d,u),a.stop()}}let ny=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.test(t)||"0"===t)&&!t.startsWith("url("));function nv(t){t.duration=0,t.type="keyframes"}let nb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nx=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nw=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nS extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ei.now();const h={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...d},c=u?.KeyframeResolver||tO;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,h,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:d}=i;this.resolvedAt=ei.now();let h=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=ny(s,e),o=ny(r,e);return te(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t9(i))&&n)}(t,r,a,o)&&(h=!1,(tE.instantAnimations||!l)&&d?.(tQ(t,i,e)),t[0]=t[t.length-1],nv(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=h&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return nw()&&i&&(t7.has(i)||nx.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nb.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(c),m=c.motionValue?.owner?.current;if(p)try{s=new ng({...c,element:m})}catch{s=new nm(c)}else s=new nm(c);s.finished.then(()=>{this.notifyFinished()}).catch(tP),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tB=!0,tF(),tI(),tB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nT={type:"spring",stiffness:500,damping:25,restSpeed:10},nP={type:"keyframes",duration:.8},nE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nk=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nA=(t,e,i,n={},s,r)=>o=>{let l=ik(n,t)||{},u=l.delay||n.delay||0,{elapsed:d=0}=n;d-=t$(u);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nk.has(e))return!0;return!1}(l)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?nP:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nT:nE)(t,h)),h.duration&&(h.duration=t$(h.duration)),h.repeatDelay&&(h.repeatDelay=t$(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nv(h),0===h.delay&&(c=!0)),(tE.instantAnimations||tE.skipAnimations||s?.shouldSkipAnimations)&&(c=!0,nv(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,c&&!r&&void 0!==e.get()){let t=tQ(h.keyframes,l);if(void 0!==t)return void tM.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new nm(h):new nS(h)};function nM(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iE(r,l):l;let u=r?.reduceMotion;n&&(r=n);let d=[],h=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let a={delay:i,...ik(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){tM.update(()=>n.set(s));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iv];if(i){let t=window.MotionHandoffAnimation(i,e,tM);null!==t&&(a.startTime=t,c=!0)}}iM(t,e);let p=u??t.shouldReduceMotion;n.start(nA(e,n,s,p&&G.has(e)?{type:!1}:a,t,c));let m=n.animation;m&&d.push(m)}if(a){let e=()=>tM.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iP(t,e)||{};for(let e in s={...s,...i}){var r;let i=iA(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,es(i))}}(t,a)});d.length?Promise.all(d).then(e):e()}return d}function nC(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function nR(t,e,i={}){let n=iP(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nM(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nR(l,e,{...a,delay:i+("function"==typeof n?0:n)+nC(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let nV=ed.length;function nD(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nL=[...eu].reverse(),nj=eu.length;function nB(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nI(){return{animate:nB(!0),whileInView:nB(),whileHover:nB(),whileTap:nB(),whileDrag:nB(),whileFocus:nB(),exit:nB()}}let nF=0;function nO(t){return[t("x"),t("y")]}function nN(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nz={x:!1,y:!1};function nU(t){return t.max-t.min}function nW(t,e,i,n=.5){t.origin=n,t.originPoint=eI(e.min,e.max,t.origin),t.scale=nU(i)/nU(e),t.translate=eI(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function n$(t,e,i,n){nW(t.x,e.x,i.x,n?n.originX:void 0),nW(t.y,e.y,i.y,n?n.originY:void 0)}function nH(t,e,i,n=0){t.min=(n?eI(i.min,i.max,n):i.min)+e.min,t.max=t.min+nU(e)}function nY(t,e,i,n=0){let s=n?eI(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nU(e)}function nX(t,e,i,n){nY(t.x,e.x,i.x,n?.x),nY(t.y,e.y,i.y,n?.y)}function nq(t){return"object"==typeof t&&null!==t}function nK(t){return nq(t)&&"ownerSVGElement"in t}function nG(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let nZ=new WeakMap,n_=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nK(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nJ=n_("inline","width","offsetWidth"),nQ=n_("block","height","offsetHeight");function n0({target:t,borderBoxSize:e}){nZ.get(t)?.forEach(i=>{i(t,{get width(){return nJ(t,e)},get height(){return nQ(t,e)}})})}function n1(t){t.forEach(n0)}let n5=new Set;function n2(t,e){let i;return"function"==typeof t?(n5.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n5.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{n5.delete(t),n5.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(n1)),(i=nG(t)).forEach(t=>{let i=nZ.get(t);i||(i=new Set,nZ.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=nZ.get(t);i?.delete(e),i?.size||n?.unobserve(t)})})}let n3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n4=new Set(["INPUT","SELECT","TEXTAREA"]),n6=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n9(t){return{point:{x:t.pageX,y:t.pageY}}}function n8(t,e,i,n){return nN(t,e,t=>n6(t)&&i(t,n9(t)),n)}let n7=({current:t})=>t?t.ownerDocument.defaultView:null,st=(t,e)=>Math.abs(t-e),se=new Set(["auto","scroll"]);class si{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sn(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sr(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(st(t.x,e.x)**2+st(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=tR;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sn(e,this.transformPagePoint),tM.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sr("pointercancel"===t.type?this.lastMoveEventInfo:sn(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!n6(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=sn(n9(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=tR;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=e;d&&d(t,sr(o,this.history)),this.removeListeners=iR(n8(this.contextWindow,"pointermove",this.handlePointerMove),n8(this.contextWindow,"pointerup",this.handlePointerUp),n8(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(se.has(t.overflowX)||se.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tM.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tC(this.updatePoint)}}function sn(t,e){return e?{point:e(t.point)}:t}function ss(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sr({point:t},e){return{point:t,delta:ss(t,sa(e)),offset:ss(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sa(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>t$(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t$(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sa(t){return t[t.length-1]}function so(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sl(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function su(t,e,i){return{min:sd(t,e),max:sd(t,i)}}function sd(t,e){return"number"==typeof t?t:t[e]||0}let sh=new WeakMap;class sc{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(n9(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nz[t])return null;else return nz[t]=!0,()=>{nz[t]=!1};return nz.x||nz.y?null:(nz.x=nz.y=!0,()=>{nz.x=nz.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nU(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tM.update(()=>s(t,e),!1,!0),iM(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&tM.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new si(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:n7(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tM.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sm(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eI(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eI(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&ix(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:so(t.x,i,s),y:so(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:su(t,"left","right"),y:su(t,"top","bottom")}}(e),n!==this.constraints&&!ix(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nO(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ix(e))return!1;let n=e.current;ti(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=e0(t,i),{scroll:s}=e;return s&&(eZ(n.x,s.offset.x),eZ(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:sl(t.x,r.x),y:sl(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eW(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nO(a=>{if(!sm(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iM(this.visualElement,t),i.start(nA(t,i,0,e,this.visualElement,!1))}stopAnimation(){nO(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nO(e=>{let{drag:i}=this.getProps();if(!sm(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-eI(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ix(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,l,u=e.get();n[t]=(i={min:u,max:u},s=this.constraints[t],r=.5,a=nU(i),(l=nU(s))>a?r=nu(s.min,s.max-a,i.min):a>l&&(r=nu(i.min,i.max-l,s.min)),o(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nO(e=>{if(!sm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eI(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sh.set(this.visualElement,this);let e=this.visualElement.current,i=n8(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(n4.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();ix(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=n2(i,sp(s=()=>this.scalePositionWithinConstraints())),a=n2(n,sp(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tM.read(n);let a=nN(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function sp(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sf=t=>(e,i)=>{t&&tM.update(()=>t(e,i),!1,!0)},sg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sy=e5;let sv=!1;class sb extends sy.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sv&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tM.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sv=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sx(t){let[e,i]=function(t=!0){let e=(0,e5.useContext)(iu);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e5.useId)();(0,e5.useEffect)(()=>{if(t)return s(r)},[t]);let a=(0,e5.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,sy.useContext)(e6);return(0,e4.jsx)(sb,{...t,layoutGroup:n,switchLayoutGroup:(0,sy.useContext)(ib),isPresent:e,safeToRemove:i})}let sw=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sS=sw.length,sT=t=>"string"==typeof t?parseFloat(t):t,sP=t=>"number"==typeof t||S.test(t);function sE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sk=sM(0,.5,nr),sA=sM(.5,.95,tP);function sM(t,e,i){return n=>n<t?0:n>e?1:i(nu(t,e,n))}function sC(t,e){t.min=e.min,t.max=e.max}function sR(t,e){sC(t.x,e.x),sC(t.y,e.y)}function sV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sD(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sL(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(w.test(e)&&(e=parseFloat(e),e=eI(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=eI(r.min,r.max,n);t===r&&(o-=e),t.min=sD(t.min,e,i,o,s),t.max=sD(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sj=["x","scaleX","originX"],sB=["y","scaleY","originY"];function sI(t,e,i,n){sL(t.x,e,sj,i?i.x:void 0,n?n.x:void 0),sL(t.y,e,sB,i?i.y:void 0,n?n.y:void 0)}function sF(t){return 0===t.translate&&1===t.scale}function sO(t){return sF(t.x)&&sF(t.y)}function sN(t,e){return t.min===e.min&&t.max===e.max}function sz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sU(t,e){return sz(t.x,e.x)&&sz(t.y,e.y)}function sW(t){return nU(t.x)/nU(t.y)}function s$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sH{constructor(){this.members=[]}add(t){tH(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tY(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sY=(t,e)=>t.depth-e.depth;class sX{constructor(){this.children=[],this.isDirty=!1}add(t){tH(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sY),this.isDirty=!1,this.children.forEach(t)}}let sq=["","X","Y","Z"],sK=0;function sG(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sZ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sK++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(sQ),this.nodes.forEach(s8),this.nodes.forEach(s7),this.nodes.forEach(s0)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sX)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tX),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nK(e)&&!(nK(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tM.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ei.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tC(r),s(i-250))},tM.setup(r,!0),i=()=>tC(r),sg.hasAnimatedSinceResize&&(sg.hasAnimatedSinceResize=!1,this.nodes.forEach(s9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rr,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!sU(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...ik(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||s9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rt),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iv];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tM,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(s2),this.nodes.forEach(s5);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(s4),this.nodes.forEach(s6),this.nodes.forEach(s_),this.nodes.forEach(sJ)):this.nodes.forEach(s3),this.clearAllSnapshots();let t=ei.now();tR.delta=o(0,1e3/60,t-tR.timestamp),tR.timestamp=t,tR.isProcessing=!0,tV.update.process(tR),tV.preRender.process(tR),tV.render.process(tR),tR.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s1),this.sharedNodes.forEach(re)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nU(this.snapshot.measuredBox.x)||nU(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sO(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eY(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rl((e=n).x),rl(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rd))){let{scroll:t}=this.root;t&&(eZ(e.x,t.offset.x),eZ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(sR(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sR(e,t),eZ(e.x,s.offset.x),eZ(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||q();sR(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eZ(n.x,-i.scroll.offset.x),eZ(n.y,-i.scroll.offset.y)),eY(i.latestValues)&&eQ(n,i.latestValues,i.layout?.layoutBox)}return eY(this.latestValues)&&eQ(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=q();sR(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eY(n.latestValues)&&(n.instance&&(eH(n.latestValues)&&n.updateSnapshot(),sR(i=q(),n.measurePageBox())),sI(e,n.latestValues,n.snapshot?.layoutBox,i))}return eY(this.latestValues)&&sI(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tR.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tR.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nH(a.x,o.x,l.x,u?.x),nH(a.y,o.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sR(this.target,this.layout.layoutBox),eG(this.target,this.targetDelta)):sR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eH(this.parent.latestValues)||eX(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),nX(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tR.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sR(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(eZ(t.x,-s.scroll.offset.x),eZ(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eG(t,r)),n&&eY(s.latestValues)&&eQ(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sV(this.prevProjectionDelta.x,this.projectionDelta.x),sV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n$(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&s$(this.projectionDelta.x,this.prevProjectionDelta.x)&&s$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=q(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(rs));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ri(a.x,t.x,n),ri(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;nX(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,rn(p.x,m.x,f.x,g),rn(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,sN(u.x,c.x)&&sN(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=q()),sR(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=eI(0,i.opacity??1,sk(n)),t.opacityExit=eI(e.opacity??1,0,sA(n))):r&&(t.opacity=eI(e.opacity??1,i.opacity??1,n));for(let s=0;s<sS;s++){let r=sw[s],a=sE(e,r),o=sE(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sP(a)===sP(o)?(t[r]=Math.max(eI(sT(a),sT(o),n),0),(w.test(o)||w.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=eI(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,h,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.update(()=>{var e,i,n;let s;sg.hasAnimatedSinceResize=!0,t1.layout++,this.motionValue||(this.motionValue=es(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t1.layout--},onComplete:()=>{t1.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=K(e)?e:es(e)).start(nA("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ru(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let e=nU(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nU(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sR(e,i),eQ(e,s),n$(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sH),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sG("z",t,n,this.animationValues);for(let e=0;e<sq.length;e++)sG(`rotate${sq[e]}`,t,n,this.animationValues),sG(`skew${sq[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=il(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=il(e?.pointerEvents)||""),this.hasProjected&&!eY(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eF){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eF[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?il(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(s5),this.root.sharedNodes.clear()}}}function s_(t){t.updateLayout()}function sJ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)nO(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nU(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sC(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else ru(s,e.layoutBox,i)&&nO(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=nU(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=Y();n$(a,i,e.layoutBox);let o=Y();r?n$(o,t.applyTransform(n,!0),e.measuredBox):n$(o,i,e.layoutBox);let l=!sO(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o=q();nX(o,e.layoutBox,s.layoutBox,a);let l=q();nX(l,i,r.layoutBox,a),sU(o,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sQ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s1(t){t.clearSnapshot()}function s5(t){t.clearMeasurements()}function s2(t){t.isLayoutDirty=!0,t.updateLayout()}function s3(t){t.isLayoutDirty=!1}function s4(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function s6(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function s8(t){t.resolveTargetDelta()}function s7(t){t.calcProjection()}function rt(t){t.resetSkewAndRotation()}function re(t){t.removeLeadSnapshot()}function ri(t,e,i){t.translate=eI(e.translate,0,i),t.scale=eI(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rn(t,e,i,n){t.min=eI(e.min,i.min,n),t.max=eI(e.max,i.max,n)}function rs(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rr={duration:.45,ease:[.4,0,.1,1]},ra=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ro=ra("applewebkit/")&&!ra("chrome/")?Math.round:tP;function rl(t){t.min=ro(t.min),t.max=ro(t.max)}function ru(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sW(e)-sW(i)))}function rd(t){return t!==t.root&&t.scroll?.wasRoot}let rh=sZ({attachResizeListener:(t,e)=>nN(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rc={current:void 0},rp=sZ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rc.current){let t=new rh({});t.mount(window),t.setOptions({layoutScroll:!0}),rc.current=t}return rc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rm(t,e){let i=nG(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rf(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tM.postRender(()=>s(e,n9(e)))}let rg=(t,e)=>!!e&&(t===e||rg(t,e.parentElement)),ry=new WeakSet;function rv(t){return e=>{"Enter"===e.key&&t(e)}}function rb(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rx(t){return n6(t)&&!(nz.x||nz.y)}let rw=new WeakSet;function rS(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tM.postRender(()=>s(e,n9(e)))}let rT=new WeakMap,rP=new WeakMap,rE=t=>{let e=rT.get(t.target);e&&e(t)},rk=t=>{t.forEach(rE)},rA={some:0,all:1},rM=function(t,e){if("u"<typeof Proxy)return iS;let i=new Map,n=(i,n)=>iS(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iS(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iT{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nR(t,e,i)));else if("string"==typeof e)n=nR(t,e,i);else{let s="function"==typeof e?iP(t,e,i.custom):e;n=Promise.all(nM(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nI(),n=!0,s=!1,r=e=>(i,n)=>{let s=iP(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nV;t++){let n=ed[t],s=e.props[n];(el(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],d=new Set,h={},c=1/0;for(let e=0;e<nj;e++){var p,m;let f=nL[e],g=i[f],y=void 0!==o[f]?o[f]:l[f],v=el(y),b=f===a?g.isActive:null;!1===b&&(c=e);let x=y===l[f]&&y!==o[f]&&v;if(x&&(n||s)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...h},!g.isActive&&null===b||!y&&!g.prevProp||eo(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==b){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nD(m,p)),S=w||f===a&&g.isActive&&!x&&v||e>c&&v,T=!1,P=Array.isArray(y)?y:[y],E=P.reduce(r(f),{});!1===b&&(E={});let{prevResolvedValues:k={}}=g,A={...k,...E},M=e=>{S=!0,d.has(e)&&(T=!0,d.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=E[t],i=k[t];if(!h.hasOwnProperty(t))(iA(e)&&iA(i)?nD(e,i):e===i)?void 0!==e&&d.has(t)?M(t):g.protectedKeys[t]=!0:null!=e?M(t):d.add(t)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),(n||s)&&t.blockInitialAnimation&&(S=!1);let C=x&&w,R=!C||T;S&&R&&u.push(...P.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iP(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nC(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(d.size){let e={};if("boolean"!=typeof o.initial){let i=iP(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(u):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nI(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iT{constructor(){super(...arguments),this.id=nF++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iP(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rA[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rP.has(i)||rP.set(i,{});let n=rP.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rk,{root:t,...e})),n[s]}(o),rT.set(t,l),e.observe(t),()=>{rT.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iT{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rm(t,i),a=t=>{let n=t.currentTarget;if(!rx(t)||rw.has(t))return;ry.add(n),i.stopPropagation&&rw.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),ry.has(n)&&ry.delete(n),rx(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||rg(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),nq(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rv(()=>{if(ry.has(i))return;rb(i,"down");let t=rv(()=>{rb(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rb(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n3.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rS(this.node,e,"Start"),(t,{success:e})=>rS(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iR(nN(this.node.current,"focus",()=>this.onFocus()),nN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iT{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rm(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nz.x||nz.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(rf(this.node,e,"Start"),t=>rf(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iT{constructor(){super(...arguments),this.removePointerDownListener=tP}onPointerDown(t){this.session=new si(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n7(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sf(t),onStart:sf(e),onMove:sf(i),onEnd:(t,e)=>{delete this.session,n&&tM.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n8(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iT{constructor(t){super(t),this.removeGroupControls=tP,this.removeListeners=tP,this.controls=new sc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rp,MeasureLayout:sx},layout:{ProjectionNode:rp,MeasureLayout:sx}},(t,e)=>e.isSVG??e3(t)?new eU(e):new e1(e,{allowProjection:t!==e5.Fragment}));t.s(["motion",0,rM],341807)},327962,t=>{"use strict";let e=(0,t.i(433721).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);t.s(["GitBranch",0,e],327962)},256186,257295,619279,439485,18158,t=>{"use strict";var e,i,n,s,r=t.i(344180);t.s([],790766),t.i(790766),t.i(8890);var a=t.i(764556),o=t.i(29905),l=t.i(969490),u=t.i(535270),d=t.i(277642),h=t.i(139236),c=t.i(602453),p=t.i(742665),m=t.i(427708),f=t.i(254891);function g(t){let{open:e,defaultOpen:i,onOpenChange:n,disabled:s}=t,r=void 0!==e,[l,g]=(0,u.useControlled)({controlled:e,default:i,name:"Collapsible",state:"open"}),{mounted:y,setMounted:v,transitionStatus:b}=(0,f.useTransitionStatus)(l,!0,!0),[x,w]=a.useState(l),[{height:S,width:T},P]=a.useState({height:void 0,width:void 0}),E=(0,h.useBaseUiId)(),[k,A]=a.useState(),M=k??E,[C,R]=a.useState(!1),[V,D]=a.useState(!1),L=a.useRef(null),j=a.useRef(null),B=a.useRef(null),I=a.useRef(null),F=(0,m.useAnimationsFinished)(I,!1),O=(0,o.useStableCallback)(t=>{let e=!l,i=(0,c.createChangeEventDetails)(p.REASONS.triggerPress,t.nativeEvent);if(n(e,i),i.isCanceled)return;let s=I.current;"css-animation"===j.current&&null!=s&&s.style.removeProperty("animation-name"),C||V||(null!=j.current&&"css-animation"!==j.current&&!y&&e&&v(!0),"css-animation"===j.current&&(!x&&e&&w(!0),!y&&e&&v(!0))),g(e),"none"===j.current&&y&&!e&&v(!1)});return(0,d.useIsoLayoutEffect)(()=>{r&&"none"===j.current&&!l&&v(!1)},[r,l,e,v]),a.useMemo(()=>({abortControllerRef:L,animationTypeRef:j,disabled:s,handleTrigger:O,height:S,mounted:y,open:l,panelId:M,panelRef:I,runOnceAnimationsFinish:F,setDimensions:P,setHiddenUntilFound:R,setKeepMounted:D,setMounted:v,setOpen:g,setPanelIdState:A,setVisible:w,transitionDimensionRef:B,transitionStatus:b,visible:x,width:T}),[L,j,s,O,S,y,l,M,I,F,P,R,D,v,g,w,B,b,x,T])}t.s(["useCollapsibleRoot",0,g],257295);var y=t.i(267805);let v=a.createContext(void 0);function b(){let t=a.useContext(v);if(void 0===t)throw Error((0,y.default)(15));return t}t.s(["CollapsibleRootContext",0,v,"useCollapsibleRootContext",0,b],619279);var x=t.i(282458);let w=((e={}).open="data-open",e.closed="data-closed",e[e.startingStyle=x.TransitionStatusDataAttributes.startingStyle]="startingStyle",e[e.endingStyle=x.TransitionStatusDataAttributes.endingStyle]="endingStyle",e),S=((i={}).panelOpen="data-panel-open",i),T={[w.open]:""},P={[w.closed]:""},E={open:t=>t?{[S.panelOpen]:""}:null},k={open:t=>t?T:P};t.s(["collapsibleOpenStateMapping",0,k,"triggerOpenStateMapping",0,E],439485);let A={...k,...x.transitionStatusMapping},M=a.forwardRef(function(t,e){let{render:i,className:n,defaultOpen:s=!1,disabled:u=!1,onOpenChange:d,open:h,style:c,...p}=t,m=(0,o.useStableCallback)(d),f=g({open:h,defaultOpen:s,onOpenChange:m,disabled:u}),y=a.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),b=a.useMemo(()=>({...f,onOpenChange:m,state:y}),[f,m,y]),x=(0,l.useRenderElement)("div",t,{state:y,ref:e,props:p,stateAttributesMapping:A});return(0,r.jsx)(v.Provider,{value:b,children:x})});var C=t.i(931709);let R={...E,...x.transitionStatusMapping},V=a.forwardRef(function(t,e){let{panelId:i,open:n,handleTrigger:s,state:r,disabled:o}=b(),{className:u,disabled:d=o,id:h,render:c,nativeButton:p=!0,style:m,...f}=t,{getButtonProps:g,buttonRef:y}=(0,C.useButton)({disabled:d,focusableWhenDisabled:!0,native:p}),v=a.useMemo(()=>({"aria-controls":n?i:void 0,"aria-expanded":n,onClick:s}),[i,n,s]);return(0,l.useRenderElement)("button",t,{state:r,ref:[e,y],props:[v,f,g],stateAttributesMapping:R})});var D=t.i(422561),L=t.i(204133),j=t.i(130522),B=t.i(859092);let I=((n={}).disabled="data-disabled",n.orientation="data-orientation",n);function F(t){let{abortControllerRef:e,animationTypeRef:i,externalRef:n,height:s,hiddenUntilFound:r,keepMounted:l,id:u,mounted:h,onOpenChange:m,open:f,panelRef:g,runOnceAnimationsFinish:y,setDimensions:v,setMounted:b,setOpen:x,setVisible:S,transitionDimensionRef:T,visible:P,width:E}=t,k=a.useRef(!1),A=a.useRef(null),M=a.useRef(f),C=a.useRef(f),R=(0,B.useAnimationFrame)(),V=a.useMemo(()=>"css-animation"===i.current?!P:!f&&!h,[f,h,P,i]),F=(0,o.useStableCallback)(t=>{if(!t)return;if(null==i.current||null==T.current){let e=getComputedStyle(t),n="none"!==e.animationName&&""!==e.animationName,s="0s"!==e.transitionDuration&&""!==e.transitionDuration;n&&s||("none"===e.animationName&&"0s"!==e.transitionDuration?i.current="css-transition":"none"!==e.animationName&&"0s"===e.transitionDuration?i.current="css-animation":i.current="none"),"horizontal"===t.getAttribute(I.orientation)||e.transitionProperty.indexOf("width")>-1?T.current="width":T.current="height"}if("css-transition"!==i.current)return;(void 0===s||void 0===E)&&(v({height:t.scrollHeight,width:t.scrollWidth}),C.current&&t.style.setProperty("transition-duration","0s"));let e=-1,n=-1;return e=B.AnimationFrame.request(()=>{C.current=!1,n=B.AnimationFrame.request(()=>{setTimeout(()=>{t.style.removeProperty("transition-duration")})})}),()=>{B.AnimationFrame.cancel(e),B.AnimationFrame.cancel(n)}}),O=(0,L.useMergedRefs)(n,g,F);return(0,d.useIsoLayoutEffect)(()=>{if("css-transition"!==i.current)return;let t=g.current;if(!t)return;let n=-1;if(null!=e.current&&(e.current.abort(),e.current=null),f){let e={"justify-content":t.style.justifyContent,"align-items":t.style.alignItems,"align-content":t.style.alignContent,"justify-items":t.style.justifyItems};Object.keys(e).forEach(e=>{t.style.setProperty(e,"initial","important")}),C.current||l||t.setAttribute(w.startingStyle,""),v({height:t.scrollHeight,width:t.scrollWidth}),n=B.AnimationFrame.request(()=>{Object.entries(e).forEach(([e,i])=>{""===i?t.style.removeProperty(e):t.style.setProperty(e,i)})})}else{if(0===t.scrollHeight&&0===t.scrollWidth)return;v({height:t.scrollHeight,width:t.scrollWidth});let i=new AbortController;e.current=i;let n=i.signal,s=null,r=w.endingStyle;return(s=new MutationObserver(a=>{a.some(t=>"attributes"===t.type&&t.attributeName===r)&&(s?.disconnect(),s=null,y(()=>{v({height:0,width:0}),t.style.removeProperty("content-visibility"),b(!1),e.current===i&&(e.current=null)},n))})).observe(t,{attributes:!0,attributeFilter:[r]}),()=>{s?.disconnect(),R.cancel(),e.current===i&&(i.abort(),e.current=null)}}return()=>{B.AnimationFrame.cancel(n)}},[e,i,R,r,l,h,f,g,y,v,b]),(0,d.useIsoLayoutEffect)(()=>{if("css-animation"!==i.current)return;let t=g.current;t&&(A.current=t.style.animationName||A.current,t.style.setProperty("animation-name","none"),v({height:t.scrollHeight,width:t.scrollWidth}),M.current||k.current||t.style.removeProperty("animation-name"),f?(null!=e.current&&(e.current.abort(),e.current=null),b(!0),S(!0)):(e.current=new AbortController,y(()=>{b(!1),S(!1),e.current=null},e.current.signal)))},[e,i,f,g,y,v,b,S,P]),(0,j.useOnMount)(()=>{let t=B.AnimationFrame.request(()=>{M.current=!1});return()=>B.AnimationFrame.cancel(t)}),(0,d.useIsoLayoutEffect)(()=>{if(!r)return;let t=g.current;if(!t)return;let e=-1,i=-1;return f&&k.current&&(t.style.transitionDuration="0s",v({height:t.scrollHeight,width:t.scrollWidth}),e=B.AnimationFrame.request(()=>{k.current=!1,i=B.AnimationFrame.request(()=>{setTimeout(()=>{t.style.removeProperty("transition-duration")})})})),()=>{B.AnimationFrame.cancel(e),B.AnimationFrame.cancel(i)}},[r,f,g,v]),(0,d.useIsoLayoutEffect)(()=>{let t=g.current;t&&r&&V&&(t.setAttribute("hidden","until-found"),"css-transition"===i.current&&t.setAttribute(w.startingStyle,""))},[r,V,i,g]),a.useEffect(function(){let t=g.current;if(t)return(0,D.addEventListener)(t,"beforematch",function(t){k.current=!0,x(!0),m(!0,(0,c.createChangeEventDetails)(p.REASONS.none,t))})},[m,g,x]),a.useMemo(()=>({props:{hidden:V,id:u,ref:O}}),[V,u,O])}t.s(["useCollapsiblePanel",0,F],18158);let O=((s={}).collapsiblePanelHeight="--collapsible-panel-height",s.collapsiblePanelWidth="--collapsible-panel-width",s);var N=t.i(273598);let z=a.forwardRef(function(t,e){let{className:i,hiddenUntilFound:n,keepMounted:s,render:r,id:o,style:u,...h}=t,{abortControllerRef:c,animationTypeRef:p,height:m,mounted:f,onOpenChange:g,open:y,panelId:v,panelRef:x,runOnceAnimationsFinish:w,setDimensions:S,setHiddenUntilFound:T,setKeepMounted:P,setMounted:E,setPanelIdState:k,setOpen:M,setVisible:C,state:R,transitionDimensionRef:V,visible:D,width:L,transitionStatus:j}=b(),B=n??!1,I=s??!1;(0,d.useIsoLayoutEffect)(()=>{if(o)return k(o),()=>{k(void 0)}},[o,k]),(0,d.useIsoLayoutEffect)(()=>{T(B)},[T,B]),(0,d.useIsoLayoutEffect)(()=>{P(I)},[P,I]);let{props:z}=F({abortControllerRef:c,animationTypeRef:p,externalRef:e,height:m,hiddenUntilFound:B,id:v,keepMounted:I,mounted:f,onOpenChange:g,open:y,panelRef:x,runOnceAnimationsFinish:w,setDimensions:S,setMounted:E,setOpen:M,setVisible:C,transitionDimensionRef:V,visible:D,width:L});(0,N.useOpenChangeComplete)({open:y&&"idle"===j,ref:x,onComplete(){y&&S({height:void 0,width:void 0})}});let U=a.useMemo(()=>({...R,transitionStatus:j}),[R,j]),W=(0,l.useRenderElement)("div",t,{state:U,ref:[e,x],props:[z,{style:{[O.collapsiblePanelHeight]:void 0===m?"auto":`${m}px`,[O.collapsiblePanelWidth]:void 0===L?"auto":`${L}px`}},h],stateAttributesMapping:A});return I||B||f?W:null});t.s(["Panel",0,z,"Root",0,M,"Trigger",0,V],917853);var U=t.i(917853),U=U;t.s(["Collapsible",0,function({...t}){return(0,r.jsx)(U.Root,{"data-slot":"collapsible",...t})},"CollapsibleContent",0,function({...t}){return(0,r.jsx)(U.Panel,{"data-slot":"collapsible-content",...t})},"CollapsibleTrigger",0,function({...t}){return(0,r.jsx)(U.Trigger,{"data-slot":"collapsible-trigger",...t})}],256186)},380797,t=>{"use strict";let e=(0,t.i(433721).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);t.s(["default",0,e])},249673,636288,t=>{"use strict";var e=t.i(380797);t.s(["ChevronUp",()=>e.default],249673);var i=t.i(344180);t.s([],594533),t.i(594533),t.i(8890);var n=t.i(764556),s=t.i(969490),r=t.i(267805);let a=n.createContext(void 0);function o(){let t=n.useContext(a);if(void 0===t)throw Error((0,r.default)(13));return t}let l={imageLoadingStatus:()=>null},u=n.forwardRef(function(t,e){let{className:r,render:o,style:u,...d}=t,[h,c]=n.useState("idle"),p=n.useMemo(()=>({imageLoadingStatus:h,setImageLoadingStatus:c}),[h,c]),m=(0,s.useRenderElement)("span",t,{state:{imageLoadingStatus:h},ref:e,props:d,stateAttributesMapping:l});return(0,i.jsx)(a.Provider,{value:p,children:m})});var d=t.i(29905),h=t.i(277642),c=t.i(273598),p=t.i(282458),m=t.i(254891),f=t.i(863728);let g={...l,...p.transitionStatusMapping},y=n.forwardRef(function(t,e){let{className:i,render:r,onLoadingStatusChange:a,referrerPolicy:l,crossOrigin:u,style:p,...y}=t,v=o(),b=function(t,{referrerPolicy:e,crossOrigin:i}){let[s,r]=n.useState("idle");return(0,h.useIsoLayoutEffect)(()=>{if(!t)return r("error"),f.NOOP;let n=!0,s=new window.Image,a=t=>()=>{n&&r(t)};return r("loading"),s.onload=a("loaded"),s.onerror=a("error"),e&&(s.referrerPolicy=e),s.crossOrigin=i??null,s.src=t,s.complete&&r(s.naturalWidth>0?"loaded":"error"),()=>{n=!1}},[t,i,e]),s}(t.src,{referrerPolicy:l,crossOrigin:u}),x="loaded"===b,{mounted:w,transitionStatus:S,setMounted:T}=(0,m.useTransitionStatus)(x),P=n.useRef(null),E=(0,d.useStableCallback)(t=>{a?.(t),v.setImageLoadingStatus(t)});(0,h.useIsoLayoutEffect)(()=>{"idle"!==b&&E(b)},[b,E]),(0,c.useOpenChangeComplete)({open:x,ref:P,onComplete(){x||T(!1)}});let k=(0,s.useRenderElement)("img",t,{state:{imageLoadingStatus:b,transitionStatus:S},ref:[e,P],props:y,stateAttributesMapping:g,enabled:w});return w?k:null});var v=t.i(232449);let b=n.forwardRef(function(t,e){let{className:i,render:r,delay:a,style:u,...d}=t,{imageLoadingStatus:h}=o(),[c,p]=n.useState(void 0===a),m=(0,v.useTimeout)();return n.useEffect(()=>(void 0!==a&&m.start(a,()=>p(!0)),m.clear),[m,a]),(0,s.useRenderElement)("span",t,{state:{imageLoadingStatus:h},ref:e,props:d,stateAttributesMapping:l,enabled:"loaded"!==h&&c})});t.s(["Fallback",0,b,"Image",0,y,"Root",0,u],505621);var x=t.i(505621),x=x,w=t.i(465458);t.s(["Avatar",0,function({className:t,size:e="default",...n}){return(0,i.jsx)(x.Root,{"data-slot":"avatar","data-size":e,className:(0,w.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",t),...n})},"AvatarFallback",0,function({className:t,...e}){return(0,i.jsx)(x.Fallback,{"data-slot":"avatar-fallback",className:(0,w.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",t),...e})},"AvatarGroup",0,function({className:t,...e}){return(0,i.jsx)("div",{"data-slot":"avatar-group",className:(0,w.cn)("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",t),...e})},"AvatarGroupCount",0,function({className:t,...e}){return(0,i.jsx)("div",{"data-slot":"avatar-group-count",className:(0,w.cn)("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",t),...e})},"AvatarImage",0,function({className:t,...e}){return(0,i.jsx)(x.Image,{"data-slot":"avatar-image",className:(0,w.cn)("aspect-square size-full rounded-full object-cover",t),...e})}],636288)},36539,t=>{"use strict";let e=(0,t.i(433721).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);t.s(["default",0,e])},360112,t=>{"use strict";var e=t.i(764556),i=t.i(106206);let n=Array(12).fill(0),s=({visible:t,className:i})=>e.default.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":t},e.default.createElement("div",{className:"sonner-spinner"},n.map((t,i)=>e.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),r=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),o=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d=1,h=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:i,...n}=t,s="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:d++,r=this.toasts.find(t=>t.id===s),a=void 0===t.dismissible||t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),r?this.toasts=this.toasts.map(e=>e.id===s?(this.publish({...e,...t,id:s,title:i}),{...e,...t,id:s,dismissible:a,title:i}):e):this.addToast({title:i,...n,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:t,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,i)=>{let n,s;if(!i)return;void 0!==i.loading&&(s=this.create({...i,promise:t,type:"loading",message:i.loading,description:"function"!=typeof i.description?i.description:void 0}));let r=Promise.resolve(t instanceof Function?t():t),a=void 0!==s,o=r.then(async t=>{if(n=["resolve",t],e.default.isValidElement(t))a=!1,this.create({id:s,type:"default",message:t});else if(c(t)&&!t.ok){a=!1;let n="function"==typeof i.error?await i.error(`HTTP error! status: ${t.status}`):i.error,r="function"==typeof i.description?await i.description(`HTTP error! status: ${t.status}`):i.description,o="object"!=typeof n||e.default.isValidElement(n)?{message:n}:n;this.create({id:s,type:"error",description:r,...o})}else if(t instanceof Error){a=!1;let n="function"==typeof i.error?await i.error(t):i.error,r="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof n||e.default.isValidElement(n)?{message:n}:n;this.create({id:s,type:"error",description:r,...o})}else if(void 0!==i.success){a=!1;let n="function"==typeof i.success?await i.success(t):i.success,r="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof n||e.default.isValidElement(n)?{message:n}:n;this.create({id:s,type:"success",description:r,...o})}}).catch(async t=>{if(n=["reject",t],void 0!==i.error){a=!1;let n="function"==typeof i.error?await i.error(t):i.error,r="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof n||e.default.isValidElement(n)?{message:n}:n;this.create({id:s,type:"error",description:r,...o})}}).finally(()=>{a&&(this.dismiss(s),s=void 0),null==i.finally||i.finally.call(i)}),l=()=>new Promise((t,e)=>o.then(()=>"reject"===n[0]?e(n[1]):t(n[1])).catch(e));return"string"!=typeof s&&"number"!=typeof s?{unwrap:l}:Object.assign(s,{unwrap:l})},this.custom=(t,e)=>{let i=(null==e?void 0:e.id)||d++;return this.create({jsx:t(i),id:i,...e}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},c=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,p=Object.assign((t,e)=>{let i=(null==e?void 0:e.id)||d++;return h.addToast({title:t,...e,id:i}),i},{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});function m(t){return void 0!==t.label}function f(...t){return t.filter(Boolean).join(" ")}!function(t){if(!t||"u"<typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let g=t=>{var i,n,d,h,c,p,g,y,v,b,x,w,S;let{invert:T,toast:P,unstyled:E,interacting:k,setHeights:A,visibleToasts:M,heights:C,index:R,toasts:V,expanded:D,removeToast:L,defaultRichColors:j,closeButton:B,style:I,cancelButtonStyle:F,actionButtonStyle:O,className:N="",descriptionClassName:z="",duration:U,position:W,gap:$,expandByDefault:H,classNames:Y,icons:X,closeButtonAriaLabel:q="Close toast"}=t,[K,G]=e.default.useState(null),[Z,_]=e.default.useState(null),[J,Q]=e.default.useState(!1),[tt,te]=e.default.useState(!1),[ti,tn]=e.default.useState(!1),[ts,tr]=e.default.useState(!1),[ta,to]=e.default.useState(!1),[tl,tu]=e.default.useState(0),[td,th]=e.default.useState(0),tc=e.default.useRef(P.duration||U||4e3),tp=e.default.useRef(null),tm=e.default.useRef(null),tf=0===R,tg=R+1<=M,ty=P.type,tv=!1!==P.dismissible,tb=P.className||"",tx=P.descriptionClassName||"",tw=e.default.useMemo(()=>C.findIndex(t=>t.toastId===P.id)||0,[C,P.id]),tS=e.default.useMemo(()=>{var t;return null!=(t=P.closeButton)?t:B},[P.closeButton,B]),tT=e.default.useMemo(()=>P.duration||U||4e3,[P.duration,U]),tP=e.default.useRef(0),tE=e.default.useRef(0),tk=e.default.useRef(0),tA=e.default.useRef(null),[tM,tC]=W.split("-"),tR=e.default.useMemo(()=>C.reduce((t,e,i)=>i>=tw?t:t+e.height,0),[C,tw]),tV=(()=>{let[t,i]=e.default.useState(document.hidden);return e.default.useEffect(()=>{let t=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t})(),tD=P.invert||T,tL="loading"===ty;tE.current=e.default.useMemo(()=>tw*$+tR,[tw,tR]),e.default.useEffect(()=>{tc.current=tT},[tT]),e.default.useEffect(()=>{Q(!0)},[]),e.default.useEffect(()=>{let t=tm.current;if(t){let e=t.getBoundingClientRect().height;return th(e),A(t=>[{toastId:P.id,height:e,position:P.position},...t]),()=>A(t=>t.filter(t=>t.toastId!==P.id))}},[A,P.id]),e.default.useLayoutEffect(()=>{if(!J)return;let t=tm.current,e=t.style.height;t.style.height="auto";let i=t.getBoundingClientRect().height;t.style.height=e,th(i),A(t=>t.find(t=>t.toastId===P.id)?t.map(t=>t.toastId===P.id?{...t,height:i}:t):[{toastId:P.id,height:i,position:P.position},...t])},[J,P.title,P.description,A,P.id,P.jsx,P.action,P.cancel]);let tj=e.default.useCallback(()=>{te(!0),tu(tE.current),A(t=>t.filter(t=>t.toastId!==P.id)),setTimeout(()=>{L(P)},200)},[P,L,A,tE]);e.default.useEffect(()=>{let t;if((!P.promise||"loading"!==ty)&&P.duration!==1/0&&"loading"!==P.type){if(D||k||tV){if(tk.current<tP.current){let t=new Date().getTime()-tP.current;tc.current=tc.current-t}tk.current=new Date().getTime()}else tc.current!==1/0&&(tP.current=new Date().getTime(),t=setTimeout(()=>{null==P.onAutoClose||P.onAutoClose.call(P,P),tj()},tc.current));return()=>clearTimeout(t)}},[D,k,P,ty,tV,tj]),e.default.useEffect(()=>{P.delete&&(tj(),null==P.onDismiss||P.onDismiss.call(P,P))},[tj,P.delete]);let tB=P.icon||(null==X?void 0:X[ty])||(t=>{switch(t){case"success":return r;case"info":return o;case"warning":return a;case"error":return l;default:return null}})(ty);return e.default.createElement("li",{tabIndex:0,ref:tm,className:f(N,tb,null==Y?void 0:Y.toast,null==P||null==(i=P.classNames)?void 0:i.toast,null==Y?void 0:Y.default,null==Y?void 0:Y[ty],null==P||null==(n=P.classNames)?void 0:n[ty]),"data-sonner-toast":"","data-rich-colors":null!=(b=P.richColors)?b:j,"data-styled":!(P.jsx||P.unstyled||E),"data-mounted":J,"data-promise":!!P.promise,"data-swiped":ta,"data-removed":tt,"data-visible":tg,"data-y-position":tM,"data-x-position":tC,"data-index":R,"data-front":tf,"data-swiping":ti,"data-dismissible":tv,"data-type":ty,"data-invert":tD,"data-swipe-out":ts,"data-swipe-direction":Z,"data-expanded":!!(D||H&&J),"data-testid":P.testId,style:{"--index":R,"--toasts-before":R,"--z-index":V.length-R,"--offset":`${tt?tl:tE.current}px`,"--initial-height":H?"auto":`${td}px`,...I,...P.style},onDragEnd:()=>{tn(!1),G(null),tA.current=null},onPointerDown:t=>{2===t.button||tL||!tv||(tp.current=new Date,tu(tE.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(tn(!0),tA.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,i,n,s;if(ts||!tv)return;tA.current=null;let r=Number((null==(t=tm.current)?void 0:t.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(e=tm.current)?void 0:e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=new Date().getTime()-(null==(i=tp.current)?void 0:i.getTime()),l="x"===K?r:a,u=Math.abs(l)/o;if(Math.abs(l)>=45||u>.11){tu(tE.current),null==P.onDismiss||P.onDismiss.call(P,P),"x"===K?_(r>0?"right":"left"):_(a>0?"down":"up"),tj(),tr(!0);return}null==(n=tm.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(s=tm.current)||s.style.setProperty("--swipe-amount-y","0px"),to(!1),tn(!1),G(null)},onPointerMove:e=>{var i,n,s,r;if(!tA.current||!tv||(null==(i=window.getSelection())?void 0:i.toString().length)>0)return;let a=e.clientY-tA.current.y,o=e.clientX-tA.current.x,l=null!=(r=t.swipeDirections)?r:function(t){let[e,i]=t.split("-"),n=[];return e&&n.push(e),i&&n.push(i),n}(W);!K&&(Math.abs(o)>1||Math.abs(a)>1)&&G(Math.abs(o)>Math.abs(a)?"x":"y");let u={x:0,y:0},d=t=>1/(1.5+Math.abs(t)/20);if("y"===K){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&a<0||l.includes("bottom")&&a>0)u.y=a;else{let t=a*d(a);u.y=Math.abs(t)<Math.abs(a)?t:a}}else if("x"===K&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&o<0||l.includes("right")&&o>0)u.x=o;else{let t=o*d(o);u.x=Math.abs(t)<Math.abs(o)?t:o}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&to(!0),null==(n=tm.current)||n.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(s=tm.current)||s.style.setProperty("--swipe-amount-y",`${u.y}px`)}},tS&&!P.jsx&&"loading"!==ty?e.default.createElement("button",{"aria-label":q,"data-disabled":tL,"data-close-button":!0,onClick:tL||!tv?()=>{}:()=>{tj(),null==P.onDismiss||P.onDismiss.call(P,P)},className:f(null==Y?void 0:Y.closeButton,null==P||null==(d=P.classNames)?void 0:d.closeButton)},null!=(x=null==X?void 0:X.close)?x:u):null,(ty||P.icon||P.promise)&&null!==P.icon&&((null==X?void 0:X[ty])!==null||P.icon)?e.default.createElement("div",{"data-icon":"",className:f(null==Y?void 0:Y.icon,null==P||null==(h=P.classNames)?void 0:h.icon)},P.promise||"loading"===P.type&&!P.icon?P.icon||((null==X?void 0:X.loading)?e.default.createElement("div",{className:f(null==Y?void 0:Y.loader,null==P||null==(S=P.classNames)?void 0:S.loader,"sonner-loader"),"data-visible":"loading"===ty},X.loading):e.default.createElement(s,{className:f(null==Y?void 0:Y.loader,null==P||null==(w=P.classNames)?void 0:w.loader),visible:"loading"===ty})):null,"loading"!==P.type?tB:null):null,e.default.createElement("div",{"data-content":"",className:f(null==Y?void 0:Y.content,null==P||null==(c=P.classNames)?void 0:c.content)},e.default.createElement("div",{"data-title":"",className:f(null==Y?void 0:Y.title,null==P||null==(p=P.classNames)?void 0:p.title)},P.jsx?P.jsx:"function"==typeof P.title?P.title():P.title),P.description?e.default.createElement("div",{"data-description":"",className:f(z,tx,null==Y?void 0:Y.description,null==P||null==(g=P.classNames)?void 0:g.description)},"function"==typeof P.description?P.description():P.description):null),e.default.isValidElement(P.cancel)?P.cancel:P.cancel&&m(P.cancel)?e.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:P.cancelButtonStyle||F,onClick:t=>{!m(P.cancel)||tv&&(null==P.cancel.onClick||P.cancel.onClick.call(P.cancel,t),tj())},className:f(null==Y?void 0:Y.cancelButton,null==P||null==(y=P.classNames)?void 0:y.cancelButton)},P.cancel.label):null,e.default.isValidElement(P.action)?P.action:P.action&&m(P.action)?e.default.createElement("button",{"data-button":!0,"data-action":!0,style:P.actionButtonStyle||O,onClick:t=>{!m(P.action)||(null==P.action.onClick||P.action.onClick.call(P.action,t),t.defaultPrevented||tj())},className:f(null==Y?void 0:Y.actionButton,null==P||null==(v=P.classNames)?void 0:v.actionButton)},P.action.label):null)};function y(){if("u"<typeof window||"u"<typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let v=e.default.forwardRef(function(t,n){let{id:s,invert:r,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:u,className:d,offset:c,mobileOffset:p,theme:m="light",richColors:f,duration:v,style:b,visibleToasts:x=3,toastOptions:w,dir:S=y(),gap:T=14,icons:P,containerAriaLabel:E="Notifications"}=t,[k,A]=e.default.useState([]),M=e.default.useMemo(()=>s?k.filter(t=>t.toasterId===s):k.filter(t=>!t.toasterId),[k,s]),C=e.default.useMemo(()=>Array.from(new Set([a].concat(M.filter(t=>t.position).map(t=>t.position)))),[M,a]),[R,V]=e.default.useState([]),[D,L]=e.default.useState(!1),[j,B]=e.default.useState(!1),[I,F]=e.default.useState("system"!==m?m:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),O=e.default.useRef(null),N=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=e.default.useRef(null),U=e.default.useRef(!1),W=e.default.useCallback(t=>{A(e=>{var i;return(null==(i=e.find(e=>e.id===t.id))?void 0:i.delete)||h.dismiss(t.id),e.filter(({id:e})=>e!==t.id)})},[]);return e.default.useEffect(()=>h.subscribe(t=>{t.dismiss?requestAnimationFrame(()=>{A(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e))}):setTimeout(()=>{i.default.flushSync(()=>{A(e=>{let i=e.findIndex(e=>e.id===t.id);return -1!==i?[...e.slice(0,i),{...e[i],...t},...e.slice(i+1)]:[t,...e]})})})}),[k]),e.default.useEffect(()=>{if("system"!==m)return void F(m);if("system"===m&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"u"<typeof window)return;let t=window.matchMedia("(prefers-color-scheme: dark)");try{t.addEventListener("change",({matches:t})=>{t?F("dark"):F("light")})}catch(e){t.addListener(({matches:t})=>{try{t?F("dark"):F("light")}catch(t){console.error(t)}})}},[m]),e.default.useEffect(()=>{k.length<=1&&L(!1)},[k]),e.default.useEffect(()=>{let t=t=>{var e,i;o.every(e=>t[e]||t.code===e)&&(L(!0),null==(i=O.current)||i.focus()),"Escape"===t.code&&(document.activeElement===O.current||(null==(e=O.current)?void 0:e.contains(document.activeElement)))&&L(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[o]),e.default.useEffect(()=>{if(O.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,U.current=!1)}},[O.current]),e.default.createElement("section",{ref:n,"aria-label":`${E} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((i,n)=>{var s;let a,[o,h]=i.split("-");return M.length?e.default.createElement("ol",{key:i,dir:"auto"===S?y():S,tabIndex:-1,ref:O,className:d,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":o,"data-x-position":h,style:{"--front-toast-height":`${(null==(s=R[0])?void 0:s.height)||0}px`,"--width":"356px","--gap":`${T}px`,...b,...(a={},[c,p].forEach((t,e)=>{let i=1===e,n=i?"--mobile-offset":"--offset",s=i?"16px":"24px";function r(t){["top","right","bottom","left"].forEach(e=>{a[`${n}-${e}`]="number"==typeof t?`${t}px`:t})}"number"==typeof t||"string"==typeof t?r(t):"object"==typeof t?["top","right","bottom","left"].forEach(e=>{void 0===t[e]?a[`${n}-${e}`]=s:a[`${n}-${e}`]="number"==typeof t[e]?`${t[e]}px`:t[e]}):r(s)}),a)},onBlur:t=>{U.current&&!t.currentTarget.contains(t.relatedTarget)&&(U.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:t=>{!(t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible)&&(U.current||(U.current=!0,z.current=t.relatedTarget))},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{j||L(!1)},onDragEnd:()=>L(!1),onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||B(!0)},onPointerUp:()=>B(!1)},M.filter(t=>!t.position&&0===n||t.position===i).map((n,s)=>{var a,o;return e.default.createElement(g,{key:n.id,icons:P,index:s,toast:n,defaultRichColors:f,duration:null!=(a=null==w?void 0:w.duration)?a:v,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:r,visibleToasts:x,closeButton:null!=(o=null==w?void 0:w.closeButton)?o:u,interacting:j,position:i,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:W,toasts:M.filter(t=>t.position==n.position),heights:R.filter(t=>t.position==n.position),setHeights:V,expandByDefault:l,gap:T,expanded:D,swipeDirections:t.swipeDirections})})):null}))});t.s(["Toaster",0,v,"toast",0,p,"useSonner",0,function(){let[t,n]=e.default.useState([]);return e.default.useEffect(()=>h.subscribe(t=>{t.dismiss?setTimeout(()=>{i.default.flushSync(()=>{n(e=>e.filter(e=>e.id!==t.id))})}):setTimeout(()=>{i.default.flushSync(()=>{n(e=>{let i=e.findIndex(e=>e.id===t.id);return -1!==i?[...e.slice(0,i),{...e[i],...t},...e.slice(i+1)]:[t,...e]})})})}),[]),{toasts:t}}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,302773,e=>{"use strict";let t=(0,e.i(816709).create)((e,t)=>({workflows:[],currentWorkflow:null,isLoading:!1,loadWorkflows:async()=>{e({isLoading:!0});try{let t=await fetch("/api/workflows"),r=await t.json();e({workflows:r,isLoading:!1})}catch{e({isLoading:!1})}},createWorkflow:async t=>{let r=await fetch("/api/workflows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await r.json();return e(e=>({workflows:[...e.workflows,a]})),a},updateWorkflow:async(e,r)=>{let a=await fetch(`/api/workflows/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),n=await a.json();t().upsertWorkflow(n)},deleteWorkflow:async e=>{await fetch(`/api/workflows/${e}`,{method:"DELETE"}),t().removeWorkflow(e)},duplicateWorkflow:async t=>{let r=await fetch(`/api/workflows/${t}/duplicate`,{method:"POST"}),a=await r.json();e(e=>({workflows:[...e.workflows,a]}))},setCurrentWorkflow:t=>e({currentWorkflow:t}),upsertWorkflow:t=>{e(e=>{let r=e.workflows.findIndex(e=>e.id===t.id);if(-1!==r){let a=[...e.workflows];return a[r]=t,{workflows:a}}return{workflows:[...e.workflows,t]}})},removeWorkflow:t=>{e(e=>({workflows:e.workflows.filter(e=>e.id!==t),currentWorkflow:e.currentWorkflow?.id===t?null:e.currentWorkflow}))}}));e.s(["useWorkflowStore",0,t])},159619,839374,e=>{"use strict";let t=(0,e.i(433721).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",0,t],839374),e.s(["Copy",0,t],159619)},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},161610,321137,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function a(){}var n="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${n},${n},${n}\\)$`),l=RegExp(`^rgb\\(${o},${o},${o}\\)$`),u=RegExp(`^rgba\\(${n},${n},${n},${i}\\)$`),d=RegExp(`^rgba\\(${o},${o},${o},${i}\\)$`),c=RegExp(`^hsl\\(${i},${o},${o}\\)$`),h=RegExp(`^hsla\\(${i},${o},${o},${i}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function x(){return this.rgb().formatHex()}function p(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?y(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?y(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new k(t[1],t[2],t[3],1):(t=l.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=u.exec(e))?y(t[1],t[2],t[3],t[4]):(t=d.exec(e))?y(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=c.exec(e))?W(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?W(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function w(e){return new k(e>>16&255,e>>8&255,255&e,1)}function y(e,t,r,a){return a<=0&&(e=t=r=NaN),new k(e,t,r,a)}function m(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof a||(i=b(i)),i)?new k((i=i.rgb()).r,i.g,i.b,i.opacity):new k:new k(e,t,r,null==n?1:n)}function k(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}function v(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function $(){let e=N(this.opacity);return`${1===e?"rgb(":"rgba("}${M(this.r)}, ${M(this.g)}, ${M(this.b)}${1===e?")":`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function M(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function j(e){return((e=M(e))<16?"0":"")+e.toString(16)}function W(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new C(e,t,r,a)}function A(e){if(e instanceof C)return new C(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=b(e)),!e)return new C;if(e instanceof C)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),f=NaN,s=o-i,l=(o+i)/2;return s?(f=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,f*=60):s=l>0&&l<1?0:f,new C(f,s,l,e.opacity)}function C(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}function E(e){return(e=(e||0)%360)<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function T(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(a,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return A(this).formatHsl()},formatRgb:p,toString:p}),t(k,m,r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(M(this.r),M(this.g),M(this.b),N(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatHex8:function(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),t(C,function(e,t,r,a){return 1==arguments.length?A(e):new C(e,t,r,null==a?1:a)},r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new C(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new C(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,n=2*r-a;return new k(T(e>=240?e-240:e+120,n,a),T(e,n,a),T(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new C(E(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${1===e?"hsl(":"hsla("}${E(this.h)}, ${100*R(this.s)}%, ${100*R(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",0,b,"rgb",0,m],321137),e.s(["color",0,b],161610)},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},145665,181503,e=>{"use strict";var t=e.i(321137);function r(e,t,r,a,n){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*r+(1+3*e+3*i-3*o)*a+o*n)/6}let a=e=>()=>e;function n(e,t){var r=t-e;return r?function(t){return e+t*r}:a(isNaN(e)?t:e)}e.s(["default",0,a],181503);let i=function e(r){var i,o=1==(i=+r)?n:function(e,t){var r,n,o;return t-e?(r=e,n=t,r=Math.pow(r,o=i),n=Math.pow(n,o)-r,o=1/o,function(e){return Math.pow(r+e*n,o)}):a(isNaN(e)?t:e)};function f(e,r){var a=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),i=o(e.g,r.g),f=o(e.b,r.b),s=n(e.opacity,r.opacity);return function(t){return e.r=a(t),e.g=i(t),e.b=f(t),e.opacity=s(t),e+""}}return f.gamma=e,f}(1);function o(e){return function(r){var a,n,i=r.length,o=Array(i),f=Array(i),s=Array(i);for(a=0;a<i;++a)n=(0,t.rgb)(r[a]),o[a]=n.r||0,f[a]=n.g||0,s[a]=n.b||0;return o=e(o),f=e(f),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=f(e),n.b=s(e),n+""}}}o(function(e){var t=e.length-1;return function(a){var n=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),i=e[n],o=e[n+1],f=n>0?e[n-1]:2*i-o,s=n<t-1?e[n+2]:2*o-i;return r((a-n/t)*t,f,i,o,s)}}),o(function(e){var t=e.length;return function(a){var n=Math.floor(((a%=1)<0?++a:a)*t),i=e[(n+t-1)%t],o=e[n%t],f=e[(n+1)%t],s=e[(n+2)%t];return r((a-n/t)*t,i,o,f,s)}}),e.s(["default",0,i],145665)},647483,e=>{"use strict";var t=e.i(842541),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=RegExp(r.source,"g");e.s(["default",0,function(e,n){var i,o,f,s,l,u=r.lastIndex=a.lastIndex=0,d=-1,c=[],h=[];for(e+="",n+="";(f=r.exec(e))&&(s=a.exec(n));)(l=s.index)>u&&(l=n.slice(u,l),c[d]?c[d]+=l:c[++d]=l),(f=f[0])===(s=s[0])?c[d]?c[d]+=s:c[++d]=s:(c[++d]=null,h.push({i:d,x:(0,t.default)(f,s)})),u=a.lastIndex;return u<n.length&&(l=n.slice(u),c[d]?c[d]+=l:c[++d]=l),c.length<2?h[0]?(i=h[0].x,function(e){return i(e)+""}):(o=n,function(){return o}):(n=h.length,function(e){for(var t,r=0;r<n;++r)c[(t=h[r]).i]=t.x(e);return c.join("")})}])},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>r],819505);var t=e.i(213570);function r(e,r){var a,n=r?r.length:0,i=e?Math.min(n,e.length):0,o=Array(i),f=Array(n);for(a=0;a<i;++a)o[a]=(0,t.default)(e[a],r[a]);for(;a<n;++a)f[a]=r[a];return function(e){for(a=0;a<i;++a)f[a]=o[a](e);return f}}e.s(["default",0,function(e,t){t||(t=[]);var r,a=e?Math.min(t.length,e.length):0,n=t.slice();return function(i){for(r=0;r<a;++r)n[r]=e[r]*(1-i)+t[r]*i;return n}},"isNumberArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],238816),e.s(["default",0,function(e,t){var r=new Date;return e*=1,t*=1,function(a){return r.setTime(e*(1-a)+t*a),r}}],97376)},905660,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(213570);function r(e,r){var a,n={},i={};for(a in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)a in e?n[a]=(0,t.default)(e[a],r[a]):i[a]=r[a];return function(e){for(a in n)i[a]=n[a](e);return i}}},678152,213570,e=>{"use strict";e.s(["default",()=>u],213570);var t=e.i(161610),r=e.i(145665),a=e.i(819505),n=e.i(97376),i=e.i(842541),o=e.i(905660),f=e.i(647483),s=e.i(181503),l=e.i(238816);function u(e,u){var d,c=typeof u;return null==u||"boolean"===c?(0,s.default)(u):("number"===c?i.default:"string"===c?(d=(0,t.color)(u))?(u=d,r.default):f.default:u instanceof t.color?r.default:u instanceof Date?n.default:(0,l.isNumberArray)(u)?l.default:Array.isArray(u)?a.genericArray:"function"!=typeof u.valueOf&&"function"!=typeof u.toString||isNaN(u)?o.default:i.default)(e,u)}e.s(["interpolate",0,u],678152)},212603,e=>{"use strict";var t=e.i(344180),r=e.i(465458);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,304271,485599,e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e){return function t(){for(var r=this,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function a(e){return({}).toString.call(e).includes("Object")}function u(e){return"function"==typeof e}var c,s,f=l(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),d=function(e,t){return a(t)||f("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&f("changeField"),t},h=function(e){u(e)||f("selectorType")},p=function(e){u(e)||a(e)||f("handlerType"),a(e)&&Object.values(e).some(function(e){return!u(e)})&&f("handlersType")},v=function(e){e||f("initialIsRequired"),a(e)||f("initialType"),Object.keys(e).length||f("initialContent")};function g(e,t){return u(t)?t(e.current):t}function y(e,t){return e.current=i(i({},e.current),t),t}function m(e,t,r){return u(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var b={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},w=(c=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=c.length?c.apply(this,n):function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(b),x=function(e){return(e||w("configIsRequired"),({}).toString.call(e).includes("Object")||w("configType"),e.urls)?(console.warn(b.deprecation),{paths:{vs:e.urls.monacoBase}}):e},E=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},O={type:"cancelation",msg:"operation is manually canceled"};function S(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(O):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var M=["monaco"],j=function(e){if(Array.isArray(e))return e}(s=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(e),p(t);var r={current:e},n=l(m)(r,t),o=l(y)(r),i=l(d)(e),a=l(g)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,o,i,a)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,l=[],a=!0,u=!1;try{o=(t=t.call(e)).next,!1;for(;!(a=(r=o.call(t)).done)&&(l.push(r.value),2!==l.length);a=!0);}catch(e){u=!0,n=e}finally{try{if(!a&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw n}}return l}}(s)||function(e){if(e){if("string"==typeof e)return t(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,2):void 0}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),C=j[0],R=j[1];function P(e){return document.body.appendChild(e)}function T(e){var t,r,n=C(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function I(){var e=C(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;A(r),e.resolve(r)},function(t){e.reject(t)})}function A(e){C().monaco||R({monaco:e})}var N=new Promise(function(e,t){return R({resolve:e,reject:t})}),L={config:function(e){var t=x(e),r=t.monaco,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,M);R(function(e){return{config:function e(t,r){return Object.keys(r).forEach(function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))}),n(n({},t),r)}(e.config,o),monaco:r}})},init:function(){var e=C(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(R({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),S(N);if(window.monaco&&window.monaco.editor)return A(window.monaco),e.resolve(window.monaco),S(N);E(P,T)(I)}return S(N)},__getMonacoInstance:function(){return C(function(e){return e.monaco})}};e.s(["default",0,L],485599);var k=e.i(764556),_={display:"flex",position:"relative",textAlign:"initial"},X={width:"100%"},Y={display:"none"},z={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},W=function({children:e}){return k.default.createElement("div",{style:z},e)},D=(0,k.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:l}){return k.default.createElement("section",{style:{..._,width:e,height:t},...l},!r&&k.default.createElement(W,null,n),k.default.createElement("div",{ref:o,style:{...X,...!r&&Y},className:i}))}),H=function(e){(0,k.useEffect)(e,[])},$=function(e,t,r=!0){let n=(0,k.useRef)(!0);(0,k.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function F(){}function U(e,t,r,n){var o,i,l,a,u,c;return o=e,i=n,o.editor.getModel(V(o,i))||(l=e,a=t,u=r,c=n,l.editor.createModel(a,u,c?V(l,c):void 0))}function V(e,t){return e.Uri.parse(t)}var B=(0,k.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:l,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:s="Loading...",options:f={},height:d="100%",width:h="100%",className:p,wrapperProps:v={},beforeMount:g=F,onMount:y=F}){let[m,b]=(0,k.useState)(!1),[w,x]=(0,k.useState)(!0),E=(0,k.useRef)(null),O=(0,k.useRef)(null),S=(0,k.useRef)(null),M=(0,k.useRef)(y),j=(0,k.useRef)(g),C=(0,k.useRef)(!1);H(()=>{let e=L.init();return e.then(e=>(O.current=e)&&x(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return E.current?(t=E.current?.getModel(),void(a||t?.original?.dispose(),u||t?.modified?.dispose(),E.current?.dispose())):e.cancel()}}),$(()=>{if(E.current&&O.current){let t=E.current.getOriginalEditor(),o=U(O.current,e||"",n||r||"text",i||"");o!==t.getModel()&&t.setModel(o)}},[i],m),$(()=>{if(E.current&&O.current){let e=E.current.getModifiedEditor(),n=U(O.current,t||"",o||r||"text",l||"");n!==e.getModel()&&e.setModel(n)}},[l],m),$(()=>{let e=E.current.getModifiedEditor();e.getOption(O.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],m),$(()=>{E.current?.getModel()?.original.setValue(e||"")},[e],m),$(()=>{let{original:e,modified:t}=E.current.getModel();O.current.editor.setModelLanguage(e,n||r||"text"),O.current.editor.setModelLanguage(t,o||r||"text")},[r,n,o],m),$(()=>{O.current?.editor.setTheme(c)},[c],m),$(()=>{E.current?.updateOptions(f)},[f],m);let R=(0,k.useCallback)(()=>{if(!O.current)return;j.current(O.current);let a=U(O.current,e||"",n||r||"text",i||""),u=U(O.current,t||"",o||r||"text",l||"");E.current?.setModel({original:a,modified:u})},[r,t,o,e,n,i,l]),P=(0,k.useCallback)(()=>{!C.current&&S.current&&(E.current=O.current.editor.createDiffEditor(S.current,{automaticLayout:!0,...f}),R(),O.current?.editor.setTheme(c),b(!0),C.current=!0)},[f,c,R]);return(0,k.useEffect)(()=>{m&&M.current(E.current,O.current)},[m]),(0,k.useEffect)(()=>{w||m||P()},[w,m,P]),k.default.createElement(D,{width:h,height:d,isEditorReady:m,loading:s,_ref:S,className:p,wrapperProps:v})}),q=function(e){let t=(0,k.useRef)();return(0,k.useEffect)(()=>{t.current=e},[e]),t.current},G=new Map,K=(0,k.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:l="light",line:a,loading:u="Loading...",options:c={},overrideServices:s={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:p="100%",className:v,wrapperProps:g={},beforeMount:y=F,onMount:m=F,onChange:b,onValidate:w=F}){let[x,E]=(0,k.useState)(!1),[O,S]=(0,k.useState)(!0),M=(0,k.useRef)(null),j=(0,k.useRef)(null),C=(0,k.useRef)(null),R=(0,k.useRef)(m),P=(0,k.useRef)(y),T=(0,k.useRef)(),I=(0,k.useRef)(n),A=q(i),N=(0,k.useRef)(!1),_=(0,k.useRef)(!1);H(()=>{let e=L.init();return e.then(e=>(M.current=e)&&S(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>j.current?void(T.current?.dispose(),d?f&&G.set(i,j.current.saveViewState()):j.current.getModel()?.dispose(),j.current.dispose()):e.cancel()}),$(()=>{let l=U(M.current,e||n||"",t||o||"",i||r||"");l!==j.current?.getModel()&&(f&&G.set(A,j.current?.saveViewState()),j.current?.setModel(l),f&&j.current?.restoreViewState(G.get(i)))},[i],x),$(()=>{j.current?.updateOptions(c)},[c],x),$(()=>{j.current&&void 0!==n&&(j.current.getOption(M.current.editor.EditorOption.readOnly)?j.current.setValue(n):n!==j.current.getValue()&&(_.current=!0,j.current.executeEdits("",[{range:j.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),j.current.pushUndoStop(),_.current=!1))},[n],x),$(()=>{let e=j.current?.getModel();e&&o&&M.current?.editor.setModelLanguage(e,o)},[o],x),$(()=>{void 0!==a&&j.current?.revealLine(a)},[a],x),$(()=>{M.current?.editor.setTheme(l)},[l],x);let X=(0,k.useCallback)(()=>{if(!(!C.current||!M.current)&&!N.current){P.current(M.current);let u=i||r,d=U(M.current,n||e||"",t||o||"",u||"");j.current=M.current?.editor.create(C.current,{model:d,automaticLayout:!0,...c},s),f&&j.current.restoreViewState(G.get(u)),M.current.editor.setTheme(l),void 0!==a&&j.current.revealLine(a),E(!0),N.current=!0}},[e,t,r,n,o,i,c,s,f,l,a]);return(0,k.useEffect)(()=>{x&&R.current(j.current,M.current)},[x]),(0,k.useEffect)(()=>{O||x||X()},[O,x,X]),I.current=n,(0,k.useEffect)(()=>{x&&b&&(T.current?.dispose(),T.current=j.current?.onDidChangeModelContent(e=>{_.current||b(j.current.getValue(),e)}))},[x,b]),(0,k.useEffect)(()=>{if(x){let e=M.current.editor.onDidChangeMarkers(e=>{let t=j.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=M.current.editor.getModelMarkers({resource:t});w?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,w]),k.default.createElement(D,{width:h,height:p,isEditorReady:x,loading:u,_ref:C,className:v,wrapperProps:g})});e.s(["DiffEditor",0,B,"Editor",0,K,"default",0,K,"useMonaco",0,function(){let[e,t]=(0,k.useState)(L.__getMonacoInstance());return H(()=>{let r;return e||(r=L.init()).then(e=>{t(e)}),()=>r?.cancel()}),e}],304271)},799543,(e,t,r)=>{t.exports=e.r(233331)},767467,e=>{"use strict";let t=(0,e.i(433721).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],767467)},459250,e=>{"use strict";var t=e.i(764556);let r=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,r,"useCompositeListContext",0,function(){return t.useContext(r)}])},296615,e=>{"use strict";var t,r=e.i(764556),n=e.i(277642),o=e.i(459250);let i=((t={})[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t);e.s(["useCompositeListItem",0,function(e={}){let{label:t,metadata:l,textRef:a,indexGuessBehavior:u,index:c}=e,{register:s,unregister:f,subscribeMapChange:d,elementsRef:h,labelsRef:p,nextIndexRef:v}=(0,o.useCompositeListContext)(),g=r.useRef(-1),[y,m]=r.useState(c??(u===i.GuessFromOrder?()=>{if(-1===g.current){let e=v.current;v.current+=1,g.current=e}return g.current}:-1)),b=r.useRef(null),w=r.useCallback(e=>{if(b.current=e,-1!==y&&null!==e&&(h.current[y]=e,p)){let r=void 0!==t;p.current[y]=r?t:a?.current?.textContent??e.textContent}},[y,h,p,t,a]);return(0,n.useIsoLayoutEffect)(()=>{if(null!=c)return;let e=b.current;if(e)return s(e,l),()=>{f(e)}},[c,s,f,l]),(0,n.useIsoLayoutEffect)(()=>{if(null==c)return d(e=>{let t=b.current?e.get(b.current)?.index:null;null!=t&&m(t)})},[c,d,m]),r.useMemo(()=>({ref:w,index:y}),[y,w])}])},756432,e=>{"use strict";var t=e.i(764556),r=e.i(549154),n=e.i(29905),o=e.i(277642),i=e.i(459250),l=e.i(344180);function a(){return new Map}function u(){return new Set}function c(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}e.s(["CompositeList",0,function(e){let{children:s,elementsRef:f,labelsRef:d,onMapChange:h}=e,p=(0,n.useStableCallback)(h),v=t.useRef(0),g=(0,r.useRefWithInit)(u).current,y=(0,r.useRefWithInit)(a).current,[m,b]=t.useState(0),w=t.useRef(m),x=(0,n.useStableCallback)((e,t)=>{y.set(e,t??null),w.current+=1,b(w.current)}),E=(0,n.useStableCallback)(e=>{y.delete(e),w.current+=1,b(w.current)}),O=t.useMemo(()=>{let e=new Map;return Array.from(y.keys()).filter(e=>e.isConnected).sort(c).forEach((t,r)=>{let n=y.get(t)??{};e.set(t,{...n,index:r})}),e},[y,m]);(0,o.useIsoLayoutEffect)(()=>{if("function"!=typeof MutationObserver||0===O.size)return;let e=new MutationObserver(e=>{let t=new Set,r=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(r),e.addedNodes.forEach(r)}),0===t.size&&(w.current+=1,b(w.current))});return O.forEach((t,r)=>{r.parentElement&&e.observe(r.parentElement,{childList:!0})}),()=>{e.disconnect()}},[O]),(0,o.useIsoLayoutEffect)(()=>{w.current===m&&(f.current.length!==O.size&&(f.current.length=O.size),d&&d.current.length!==O.size&&(d.current.length=O.size),v.current=O.size),p(O)},[p,O,f,d,m]),(0,o.useIsoLayoutEffect)(()=>()=>{f.current=[]},[f]),(0,o.useIsoLayoutEffect)(()=>()=>{d&&(d.current=[])},[d]);let S=(0,n.useStableCallback)(e=>(g.add(e),()=>{g.delete(e)}));(0,o.useIsoLayoutEffect)(()=>{g.forEach(e=>e(O))},[g,O]);let M=t.useMemo(()=>({register:x,unregister:E,subscribeMapChange:S,elementsRef:f,labelsRef:d,nextIndexRef:v}),[x,E,S,f,d,v]);return(0,l.jsx)(i.CompositeListContext.Provider,{value:M,children:s})}])},464111,e=>{"use strict";e.s(["clamp",0,function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}])},394394,e=>{"use strict";var t=e.i(764556);let r=t.createContext(void 0),n={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(r)??n}])},974267,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=e.r(981225);function o({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},404590,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},172441,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return u}});let n=e.r(344180),o=e.r(106206),i=e.r(94932),l=e.r(404590),a=e.r(745137);function u({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,o.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},672479,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(344180),o=e.r(764556),i=e.r(974267),l=e.r(172441);function a(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...u,...e},r=(0,o.lazy)(()=>t.loader().then(a)),c=t.loading;function s(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,s=u?o.Suspense:o.Fragment,f=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(s,{...u?{fallback:a}:{},children:f})}return s.displayName="LoadableComponent",s}},887836,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(481258)._(e.r(672479));function o(e,t){let r={};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,n.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},191118,e=>{"use strict";var t,r,n,o,i,l=e.i(344180);e.s([],556166),e.i(556166),e.i(8890);var a=e.i(764556),u=e.i(29905),c=e.i(232449),s=e.i(267805);let f=a.createContext(void 0);function d(){let e=a.useContext(f);if(void 0===e)throw Error((0,s.default)(53));return e}var h=e.i(969490);let p=((t={}).scrollAreaCornerHeight="--scroll-area-corner-height",t.scrollAreaCornerWidth="--scroll-area-corner-width",t);function v(e,t,r){if(!e)return 0;let n=getComputedStyle(e),o="x"===r?"Inline":"Block";return"x"===r&&"margin"===t?2*parseFloat(n[`${t}InlineStart`]):parseFloat(n[`${t}${o}Start`])+parseFloat(n[`${t}${o}End`])}let g=((r={}).orientation="data-orientation",r.hovering="data-hovering",r.scrolling="data-scrolling",r.hasOverflowX="data-has-overflow-x",r.hasOverflowY="data-has-overflow-y",r.overflowXStart="data-overflow-x-start",r.overflowXEnd="data-overflow-x-end",r.overflowYStart="data-overflow-y-start",r.overflowYEnd="data-overflow-y-end",r),y="base-ui-disable-scrollbar";var m=e.i(139236);let b=((n={}).scrolling="data-scrolling",n.hasOverflowX="data-has-overflow-x",n.hasOverflowY="data-has-overflow-y",n.overflowXStart="data-overflow-x-start",n.overflowXEnd="data-overflow-x-end",n.overflowYStart="data-overflow-y-start",n.overflowYEnd="data-overflow-y-end",n),w={hasOverflowX:e=>e?{[b.hasOverflowX]:""}:null,hasOverflowY:e=>e?{[b.hasOverflowY]:""}:null,overflowXStart:e=>e?{[b.overflowXStart]:""}:null,overflowXEnd:e=>e?{[b.overflowXEnd]:""}:null,overflowYStart:e=>e?{[b.overflowYStart]:""}:null,overflowYEnd:e=>e?{[b.overflowYEnd]:""}:null,cornerHidden:()=>null};var x=e.i(410421),E=e.i(394394);let O={x:0,y:0},S={width:0,height:0},M={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},j={x:!0,y:!0,corner:!0},C=a.forwardRef(function(e,t){let r,{render:n,className:o,overflowEdgeThreshold:i,style:s,...d}=e,b=function(e){if("number"==typeof e){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}(i),C=(0,m.useBaseUiId)(),R=(0,c.useTimeout)(),P=(0,c.useTimeout)(),{nonce:T,disableStyleElements:I}=(0,E.useCSPContext)(),[A,N]=a.useState(!1),[L,k]=a.useState(!1),[_,X]=a.useState(!1),[Y,z]=a.useState(!1),[W,D]=a.useState(!1),[H,$]=a.useState(S),[F,U]=a.useState(S),[V,B]=a.useState(M),[q,G]=a.useState(j),K=a.useRef(null),Q=a.useRef(null),J=a.useRef(null),Z=a.useRef(null),ee=a.useRef(null),et=a.useRef(null),er=a.useRef(null),en=a.useRef(!1),eo=a.useRef(0),ei=a.useRef(0),el=a.useRef(0),ea=a.useRef(0),eu=a.useRef("vertical"),ec=a.useRef(O),es=(0,u.useStableCallback)(e=>{let t=e.x-ec.current.x,r=e.y-ec.current.y;ec.current=e,0!==r&&(X(!0),R.start(500,()=>{X(!1)})),0!==t&&(k(!0),P.start(500,()=>{k(!1)}))}),ef=(0,u.useStableCallback)(e=>{0===e.button&&(en.current=!0,eo.current=e.clientY,ei.current=e.clientX,eu.current=e.currentTarget.getAttribute(g.orientation),Q.current&&(el.current=Q.current.scrollTop,ea.current=Q.current.scrollLeft),ee.current&&"vertical"===eu.current&&ee.current.setPointerCapture(e.pointerId),et.current&&"horizontal"===eu.current&&et.current.setPointerCapture(e.pointerId))}),ed=(0,u.useStableCallback)(e=>{if(!en.current)return;let t=e.clientY-eo.current,r=e.clientX-ei.current;if(Q.current){let n=Q.current.scrollHeight,o=Q.current.clientHeight,i=Q.current.scrollWidth,l=Q.current.clientWidth;if(ee.current&&J.current&&"vertical"===eu.current){let r=v(J.current,"padding","y"),i=v(ee.current,"margin","y"),l=ee.current.offsetHeight,a=J.current.offsetHeight-l-r-i;Q.current.scrollTop=el.current+t/a*(n-o),e.preventDefault(),X(!0),R.start(500,()=>{X(!1)})}if(et.current&&Z.current&&"horizontal"===eu.current){let t=v(Z.current,"padding","x"),n=v(et.current,"margin","x"),o=et.current.offsetWidth,a=Z.current.offsetWidth-o-t-n;Q.current.scrollLeft=ea.current+r/a*(i-l),e.preventDefault(),k(!0),P.start(500,()=>{k(!1)})}}}),eh=(0,u.useStableCallback)(e=>{en.current=!1,ee.current&&"vertical"===eu.current&&ee.current.releasePointerCapture(e.pointerId),et.current&&"horizontal"===eu.current&&et.current.releasePointerCapture(e.pointerId)});function ep(e){z("touch"===e.pointerType)}function ev(e){ep(e),"touch"!==e.pointerType&&N((0,x.contains)(K.current,e.target))}let eg=a.useMemo(()=>({scrolling:L||_,hasOverflowX:!q.x,hasOverflowY:!q.y,overflowXStart:V.xStart,overflowXEnd:V.xEnd,overflowYStart:V.yStart,overflowYEnd:V.yEnd,cornerHidden:q.corner}),[L,_,q.x,q.y,q.corner,V]),ey={role:"presentation",onPointerEnter:ev,onPointerMove:ev,onPointerDown:ep,onPointerLeave(){N(!1)},style:{position:"relative",[p.scrollAreaCornerHeight]:`${H.height}px`,[p.scrollAreaCornerWidth]:`${H.width}px`}},em=(0,h.useRenderElement)("div",e,{state:eg,ref:[t,K],props:[ey,d],stateAttributesMapping:w}),eb=a.useMemo(()=>({handlePointerDown:ef,handlePointerMove:ed,handlePointerUp:eh,handleScroll:es,cornerSize:H,setCornerSize:$,thumbSize:F,setThumbSize:U,hasMeasuredScrollbar:W,setHasMeasuredScrollbar:D,touchModality:Y,cornerRef:er,scrollingX:L,setScrollingX:k,scrollingY:_,setScrollingY:X,hovering:A,setHovering:N,viewportRef:Q,rootRef:K,scrollbarYRef:J,scrollbarXRef:Z,thumbYRef:ee,thumbXRef:et,rootId:C,hiddenState:q,setHiddenState:G,overflowEdges:V,setOverflowEdges:B,viewportState:eg,overflowEdgeThreshold:b}),[ef,ed,eh,es,H,F,W,Y,L,k,_,X,A,N,C,q,V,eg,b]);return(0,l.jsxs)(f.Provider,{value:eb,children:[!I&&(r=T,(0,l.jsx)("style",{nonce:r,href:y,precedence:"base-ui:low",children:`.${y}{scrollbar-width:none}.${y}::-webkit-scrollbar{display:none}`})),em]})});var R=e.i(277642),P=e.i(454889);let T=a.createContext(void 0);var I=e.i(189131),A=e.i(464111);let N=((o={}).scrollAreaOverflowXStart="--scroll-area-overflow-x-start",o.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",o.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",o.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",o);function L(e,t){if(t<=0)return 0;let r=(0,A.clamp)(e,0,t),n=t-r,o=r<=1,i=n<=1;return o&&i?r<=n?0:t:o?0:i?t:r}let k=!1,_=a.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,{viewportRef:s,scrollbarYRef:f,scrollbarXRef:p,thumbYRef:g,thumbXRef:m,cornerRef:b,cornerSize:x,setCornerSize:E,setThumbSize:O,rootId:S,setHiddenState:M,hiddenState:j,setHasMeasuredScrollbar:C,handleScroll:_,setHovering:X,setOverflowEdges:Y,overflowEdges:z,overflowEdgeThreshold:W,scrollingX:D,scrollingY:H}=d(),$=(0,I.useDirection)(),F=a.useRef(!0),U=a.useRef([NaN,NaN,NaN,NaN]),V=(0,c.useTimeout)(),B=(0,c.useTimeout)(),q=(0,u.useStableCallback)(()=>{var e;let t,r,n=s.current,o=f.current,i=p.current,l=g.current,a=m.current,u=b.current;if(!n)return;let c=n.scrollHeight,d=n.scrollWidth,h=n.clientHeight,y=n.clientWidth,w=n.scrollTop,S=n.scrollLeft,j=U.current,R=Number.isNaN(j[0]);if(j[0]=h,j[1]=c,j[2]=y,j[3]=d,R&&C(!0),0===c||0===d)return;let P=(t=(e=n).clientHeight>=e.scrollHeight,{y:t,x:r=e.clientWidth>=e.scrollWidth,corner:t||r}),T=P.y,I=P.x,k=y/d,_=h/c,X=Math.max(0,d-y),z=Math.max(0,c-h),D=0,H=0;!I&&(D=L("rtl"===$?(0,A.clamp)(-S,0,X):(0,A.clamp)(S,0,X),X),H=X-D);let F=T?0:(0,A.clamp)(w,0,z),V=T?0:L(F,z),B=T?0:z-V,q=I?0:y,G=T?0:h,K=0,Q=0;I||T||(K=o?.offsetWidth||0,Q=i?.offsetHeight||0);let J=0===x.width&&0===x.height,Z=J?K:0,ee=J?Q:0,et=v(i,"padding","x"),er=v(o,"padding","y"),en=v(a,"margin","x"),eo=v(l,"margin","y"),ei=q-et-en,el=G-er-eo,ea=i?Math.min(i.offsetWidth-Z,ei):ei,eu=o?Math.min(o.offsetHeight-ee,el):el,ec=Math.max(16,ea*k),es=Math.max(16,eu*_);if(O(e=>e.height===es&&e.width===ec?e:{width:ec,height:es}),o&&l){let e=o.offsetHeight-es-er-eo,t=c-h,r=Math.min(e,Math.max(0,(0===t?0:w/t)*e));l.style.transform=`translate3d(0,${r}px,0)`}if(i&&a){let e=i.offsetWidth-ec-et-en,t=d-y,r=0===t?0:S/t,n="rtl"===$?(0,A.clamp)(r*e,-e,0):(0,A.clamp)(r*e,0,e);a.style.transform=`translate3d(${n}px,0,0)`}for(let[e,t]of[[N.scrollAreaOverflowXStart,D],[N.scrollAreaOverflowXEnd,H],[N.scrollAreaOverflowYStart,V],[N.scrollAreaOverflowYEnd,B]])n.style.setProperty(e,`${t}px`);u&&(I||T?E({width:0,height:0}):I||T||E({width:K,height:Q})),M(e=>{var t,r;return t=e,r=P,t.y===r.y&&t.x===r.x&&t.corner===r.corner?t:r});let ef={xStart:!I&&D>W.xStart,xEnd:!I&&H>W.xEnd,yStart:!T&&V>W.yStart,yEnd:!T&&B>W.yEnd};Y(e=>e.xStart===ef.xStart&&e.xEnd===ef.xEnd&&e.yStart===ef.yStart&&e.yEnd===ef.yEnd?e:ef)});function G(){F.current=!1}(0,R.useIsoLayoutEffect)(()=>{s.current&&(k||P.isWebKit||("u">typeof CSS&&"registerProperty"in CSS&&[N.scrollAreaOverflowXStart,N.scrollAreaOverflowXEnd,N.scrollAreaOverflowYStart,N.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),k=!0))},[s]),(0,R.useIsoLayoutEffect)(()=>{queueMicrotask(q)},[q,j,$]),(0,R.useIsoLayoutEffect)(()=>{s.current?.matches(":hover")&&X(!0)},[s,X]),a.useEffect(()=>{let e=s.current;if("u"<typeof ResizeObserver||!e)return;let t=!1,r=new ResizeObserver(()=>{if(!t){t=!0;let r=U.current;if(r[0]===e.clientHeight&&r[1]===e.scrollHeight&&r[2]===e.clientWidth&&r[3]===e.scrollWidth)return}q()});return r.observe(e),B.start(0,()=>{let t=e.getAnimations({subtree:!0});0!==t.length&&Promise.allSettled(t.map(e=>e.finished)).then(q).catch(()=>{})}),()=>{r.disconnect(),B.clear()}},[q,s,B]);let K={role:"presentation",...S&&{"data-id":`${S}-viewport`},tabIndex:j.x&&j.y?-1:0,className:y,style:{overflow:"scroll"},onScroll(){s.current&&(q(),F.current||_({x:s.current.scrollLeft,y:s.current.scrollTop}),V.start(100,()=>{F.current=!0}))},onWheel:G,onTouchMove:G,onPointerMove:G,onPointerEnter:G,onKeyDown:G},Q=a.useMemo(()=>({scrolling:D||H,hasOverflowX:!j.x,hasOverflowY:!j.y,overflowXStart:z.xStart,overflowXEnd:z.xEnd,overflowYStart:z.yStart,overflowYEnd:z.yEnd,cornerHidden:j.corner}),[D,H,j.x,j.y,j.corner,z]),J=(0,h.useRenderElement)("div",e,{ref:[t,s],state:Q,props:[K,i],stateAttributesMapping:w}),Z=a.useMemo(()=>({computeThumbPosition:q}),[q]);return(0,l.jsx)(T.Provider,{value:Z,children:J})});var X=e.i(422561);let Y=a.createContext(void 0),z=((i={}).scrollAreaThumbHeight="--scroll-area-thumb-height",i.scrollAreaThumbWidth="--scroll-area-thumb-width",i),W=a.forwardRef(function(e,t){let{render:r,className:n,orientation:o="vertical",keepMounted:i=!1,style:u,...c}=e,{hovering:s,scrollingX:f,scrollingY:g,hiddenState:y,overflowEdges:m,scrollbarYRef:b,scrollbarXRef:E,viewportRef:O,thumbYRef:S,thumbXRef:M,handlePointerDown:j,handlePointerUp:C,rootId:R,thumbSize:P,hasMeasuredScrollbar:T}=d(),A={hovering:s,scrolling:{horizontal:f,vertical:g}[o],orientation:o,hasOverflowX:!y.x,hasOverflowY:!y.y,overflowXStart:m.xStart,overflowXEnd:m.xEnd,overflowYStart:m.yStart,overflowYEnd:m.yEnd,cornerHidden:y.corner},N=(0,I.useDirection)();a.useEffect(()=>{let e=O.current,t="vertical"===o?b.current:E.current;if(t)return(0,X.addEventListener)(t,"wheel",function(r){if(e&&t&&!r.ctrlKey){if(r.preventDefault(),"vertical"===o){if(0===e.scrollTop&&r.deltaY<0)return}else if(0===e.scrollLeft&&r.deltaX<0)return;if("vertical"===o){if(e.scrollTop===e.scrollHeight-e.clientHeight&&r.deltaY>0)return}else if(e.scrollLeft===e.scrollWidth-e.clientWidth&&r.deltaX>0)return;"vertical"===o?e.scrollTop+=r.deltaY:e.scrollLeft+=r.deltaX}},{passive:!1})},[o,E,b,O]);let L={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(e){if(0!==e.button)return;let t=(0,x.getTarget)(e.nativeEvent),r="vertical"===o?S.current:M.current;if(!(r&&(0,x.contains)(r,t))&&O.current){if(S.current&&b.current&&"vertical"===o){let t=v(S.current,"margin","y"),r=v(b.current,"padding","y"),n=S.current.offsetHeight,o=b.current.getBoundingClientRect(),i=e.clientY-o.top-n/2-r+t/2,l=O.current.scrollHeight,a=O.current.clientHeight,u=b.current.offsetHeight-n-r-t;O.current.scrollTop=i/u*(l-a)}if(M.current&&E.current&&"horizontal"===o){let t,r=v(M.current,"margin","x"),n=v(E.current,"padding","x"),o=M.current.offsetWidth,i=E.current.getBoundingClientRect(),l=e.clientX-i.left-o/2-n+r/2,a=O.current.scrollWidth,u=O.current.clientWidth,c=l/(E.current.offsetWidth-o-n-r);"rtl"===N?(t=(1-c)*(a-u),O.current.scrollLeft<=0&&(t=-t)):t=c*(a-u),O.current.scrollLeft=t}j(e)}},onPointerUp:C,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:T||i?void 0:"hidden",..."vertical"===o&&{top:0,bottom:`var(${p.scrollAreaCornerHeight})`,insetInlineEnd:0,[z.scrollAreaThumbHeight]:`${P.height}px`},..."horizontal"===o&&{insetInlineStart:0,insetInlineEnd:`var(${p.scrollAreaCornerWidth})`,bottom:0,[z.scrollAreaThumbWidth]:`${P.width}px`}}},k=(0,h.useRenderElement)("div",e,{ref:[t,"vertical"===o?b:E],state:A,props:[L,c],stateAttributesMapping:w}),_=a.useMemo(()=>({orientation:o}),[o]),W="vertical"===o?y.y:y.x;return i||!W?(0,l.jsx)(Y.Provider,{value:_,children:k}):null}),D=a.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,l=a.useRef(null),{computeThumbPosition:u}=function(){let e=a.useContext(T);if(void 0===e)throw Error((0,s.default)(55));return e}(),{viewportState:c}=d();return(0,R.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=!1,t=new ResizeObserver(()=>{if(!e){e=!0;return}u()});return l.current&&t.observe(l.current),()=>{t.disconnect()}},[u]),(0,h.useRenderElement)("div",e,{ref:[t,l],state:c,stateAttributesMapping:w,props:[{role:"presentation",style:{minWidth:"fit-content"}},i]})}),H=a.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,{thumbYRef:l,thumbXRef:u,handlePointerDown:c,handlePointerMove:f,handlePointerUp:p,setScrollingX:v,setScrollingY:g,hasMeasuredScrollbar:y}=d(),{orientation:m}=function(){let e=a.useContext(Y);if(void 0===e)throw Error((0,s.default)(54));return e}();return(0,h.useRenderElement)("div",e,{ref:[t,"vertical"===m?l:u],state:{orientation:m},props:[{onPointerDown:c,onPointerMove:f,onPointerUp(e){"vertical"===m&&g(!1),"horizontal"===m&&v(!1),p(e)},style:{visibility:y?void 0:"hidden",..."vertical"===m&&{height:`var(${z.scrollAreaThumbHeight})`},..."horizontal"===m&&{width:`var(${z.scrollAreaThumbWidth})`}}},i]})}),$=a.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,{cornerRef:l,cornerSize:a,hiddenState:u}=d(),c=(0,h.useRenderElement)("div",e,{ref:[t,l],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:a.width,height:a.height}},i]});return u.corner?null:c});e.s(["Content",0,D,"Corner",0,$,"Root",0,C,"Scrollbar",0,W,"Thumb",0,H,"Viewport",0,_],787180);var F=e.i(787180),F=F,U=e.i(465458);function V({className:e,orientation:t="vertical",...r}){return(0,l.jsx)(F.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:(0,U.cn)("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...r,children:(0,l.jsx)(F.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}e.s(["ScrollArea",0,function({className:e,children:t,...r}){return(0,l.jsxs)(F.Root,{"data-slot":"scroll-area",className:(0,U.cn)("relative",e),...r,children:[(0,l.jsx)(F.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,l.jsx)(V,{}),(0,l.jsx)(F.Corner,{})]})}],191118)},887354,e=>{"use strict";let t=(0,e.i(433721).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],887354)},462506,e=>{"use strict";e.i(304271);var t=e.i(485599),t=t;t.default.config({paths:{vs:"/monaco/vs"}}),e.s([],462506)}]);