@servicetitan/anvil2 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (633) hide show
  1. package/Alert-BULbyuJn-DqOjuyVU.js +90 -0
  2. package/{Alert-BULbyuJn-6bc0372f.js.map → Alert-BULbyuJn-DqOjuyVU.js.map} +1 -1
  3. package/Alert-BULbyuJn-DtcpE2Su.cjs +2 -0
  4. package/{Alert-BULbyuJn-85b8cba4.cjs.map → Alert-BULbyuJn-DtcpE2Su.cjs.map} +1 -1
  5. package/Alert-D_69_gcf.cjs +2 -0
  6. package/Alert-D_69_gcf.cjs.map +1 -0
  7. package/Alert-JeOimQWm.js +21 -0
  8. package/Alert-JeOimQWm.js.map +1 -0
  9. package/Alert.cjs +1 -1
  10. package/Alert.cjs.map +1 -1
  11. package/Alert.js +3 -19
  12. package/Alert.js.map +1 -1
  13. package/Announcement-IlD6OmM0.cjs +2 -0
  14. package/Announcement-IlD6OmM0.cjs.map +1 -0
  15. package/Announcement-QfqrN5aB.js +104 -0
  16. package/Announcement-QfqrN5aB.js.map +1 -0
  17. package/Announcement.cjs +1 -1
  18. package/Announcement.cjs.map +1 -1
  19. package/Announcement.js +3 -103
  20. package/Announcement.js.map +1 -1
  21. package/AnvilProvider.cjs +1 -1
  22. package/AnvilProvider.js +1 -1
  23. package/Avatar-BDwEQ8hH.cjs +2 -0
  24. package/Avatar-BDwEQ8hH.cjs.map +1 -0
  25. package/Avatar-BFOOEO8X.js +128 -0
  26. package/Avatar-BFOOEO8X.js.map +1 -0
  27. package/Avatar.cjs +1 -1
  28. package/Avatar.cjs.map +1 -1
  29. package/Avatar.js +4 -128
  30. package/Avatar.js.map +1 -1
  31. package/Badge-DWw7IIKq.js +49 -0
  32. package/Badge-DWw7IIKq.js.map +1 -0
  33. package/Badge-DxxLTYx9.cjs +2 -0
  34. package/Badge-DxxLTYx9.cjs.map +1 -0
  35. package/Badge.cjs +1 -1
  36. package/Badge.cjs.map +1 -1
  37. package/Badge.js +3 -48
  38. package/Badge.js.map +1 -1
  39. package/Button-DYLXgQSy.cjs +2 -0
  40. package/Button-DYLXgQSy.cjs.map +1 -0
  41. package/Button-L7SXWFDV.js +25 -0
  42. package/Button-L7SXWFDV.js.map +1 -0
  43. package/Button.cjs +1 -1
  44. package/Button.cjs.map +1 -1
  45. package/Button.js +3 -23
  46. package/Button.js.map +1 -1
  47. package/ButtonCompound-Bi2-W4up.js +23 -0
  48. package/ButtonCompound-Bi2-W4up.js.map +1 -0
  49. package/ButtonCompound-CVUEA-bx.cjs +2 -0
  50. package/ButtonCompound-CVUEA-bx.cjs.map +1 -0
  51. package/ButtonCompound.cjs +1 -1
  52. package/ButtonCompound.cjs.map +1 -1
  53. package/ButtonCompound.js +3 -21
  54. package/ButtonCompound.js.map +1 -1
  55. package/ButtonLink-Cy45uV3f.cjs +2 -0
  56. package/ButtonLink-Cy45uV3f.cjs.map +1 -0
  57. package/ButtonLink-VjKaxm0L.js +26 -0
  58. package/ButtonLink-VjKaxm0L.js.map +1 -0
  59. package/ButtonLink.cjs +1 -1
  60. package/ButtonLink.cjs.map +1 -1
  61. package/ButtonLink.js +3 -24
  62. package/ButtonLink.js.map +1 -1
  63. package/ButtonToggle-BrPAceZx.cjs +2 -0
  64. package/ButtonToggle-BrPAceZx.cjs.map +1 -0
  65. package/ButtonToggle-D6dIggMM.js +25 -0
  66. package/ButtonToggle-D6dIggMM.js.map +1 -0
  67. package/ButtonToggle-uOhiLjZh-BfKVd23q.cjs +2 -0
  68. package/{ButtonToggle-uOhiLjZh-7f18dd4f.cjs.map → ButtonToggle-uOhiLjZh-BfKVd23q.cjs.map} +1 -1
  69. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js → ButtonToggle-uOhiLjZh-Glk0YZBt.js} +69 -70
  70. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js.map → ButtonToggle-uOhiLjZh-Glk0YZBt.js.map} +1 -1
  71. package/ButtonToggle.cjs +1 -1
  72. package/ButtonToggle.cjs.map +1 -1
  73. package/ButtonToggle.js +3 -23
  74. package/ButtonToggle.js.map +1 -1
  75. package/Calendar-CwhnJB5t.js +5783 -0
  76. package/Calendar-CwhnJB5t.js.map +1 -0
  77. package/Calendar-DRDZGdY3.cjs +2 -0
  78. package/Calendar-DRDZGdY3.cjs.map +1 -0
  79. package/Calendar.cjs +1 -1
  80. package/Calendar.cjs.map +1 -1
  81. package/Calendar.js +7 -5812
  82. package/Calendar.js.map +1 -1
  83. package/Card-CP6A2pl4.js +53 -0
  84. package/Card-CP6A2pl4.js.map +1 -0
  85. package/Card-gCXNp8nX.cjs +2 -0
  86. package/Card-gCXNp8nX.cjs.map +1 -0
  87. package/Card.cjs +1 -1
  88. package/Card.cjs.map +1 -1
  89. package/Card.js +3 -52
  90. package/Card.js.map +1 -1
  91. package/Checkbox-Bac2nQzq-B0QfJX4j.cjs +2 -0
  92. package/{Checkbox-Bac2nQzq-03b67a48.cjs.map → Checkbox-Bac2nQzq-B0QfJX4j.cjs.map} +1 -1
  93. package/{Checkbox-Bac2nQzq-bbc3e1a5.js → Checkbox-Bac2nQzq-Cgv2fvTw.js} +27 -28
  94. package/{Checkbox-Bac2nQzq-bbc3e1a5.js.map → Checkbox-Bac2nQzq-Cgv2fvTw.js.map} +1 -1
  95. package/Checkbox-C47xqAOJ.cjs +2 -0
  96. package/Checkbox-C47xqAOJ.cjs.map +1 -0
  97. package/Checkbox-CgbabMX0.js +29 -0
  98. package/Checkbox-CgbabMX0.js.map +1 -0
  99. package/Checkbox.cjs +1 -1
  100. package/Checkbox.cjs.map +1 -1
  101. package/Checkbox.js +4 -27
  102. package/Checkbox.js.map +1 -1
  103. package/Chip-BFHfEIaC.cjs +2 -0
  104. package/Chip-BFHfEIaC.cjs.map +1 -0
  105. package/Chip-BVUDQYeX-BOPqql7F.cjs +2 -0
  106. package/{Chip-BVUDQYeX-5eb1e24c.cjs.map → Chip-BVUDQYeX-BOPqql7F.cjs.map} +1 -1
  107. package/{Chip-BVUDQYeX-4690b0bb.js → Chip-BVUDQYeX-yyDtbgnF.js} +24 -25
  108. package/{Chip-BVUDQYeX-4690b0bb.js.map → Chip-BVUDQYeX-yyDtbgnF.js.map} +1 -1
  109. package/Chip-tEtfL-sa.js +18 -0
  110. package/Chip-tEtfL-sa.js.map +1 -0
  111. package/Chip.cjs +1 -1
  112. package/Chip.cjs.map +1 -1
  113. package/Chip.js +3 -16
  114. package/Chip.js.map +1 -1
  115. package/Combobox-CZ4F6ltk.js +4167 -0
  116. package/Combobox-CZ4F6ltk.js.map +1 -0
  117. package/Combobox-CasGz9XO.cjs +42 -0
  118. package/Combobox-CasGz9XO.cjs.map +1 -0
  119. package/Combobox.cjs +1 -41
  120. package/Combobox.cjs.map +1 -1
  121. package/Combobox.css +1 -0
  122. package/Combobox.js +9 -4182
  123. package/Combobox.js.map +1 -1
  124. package/Details-Co3AewyC.js +158 -0
  125. package/Details-Co3AewyC.js.map +1 -0
  126. package/Details-ZNq5IaAy.cjs +2 -0
  127. package/Details-ZNq5IaAy.cjs.map +1 -0
  128. package/Details.cjs +1 -1
  129. package/Details.cjs.map +1 -1
  130. package/Details.js +5 -157
  131. package/Details.js.map +1 -1
  132. package/Dialog-CG-wbEyw.cjs +2 -0
  133. package/Dialog-CG-wbEyw.cjs.map +1 -0
  134. package/Dialog-Cry6xVIB.js +57 -0
  135. package/Dialog-Cry6xVIB.js.map +1 -0
  136. package/{Dialog-LF_eUywW-1b46959f.js → Dialog-LF_eUywW-B10H8cDN.js} +36 -40
  137. package/{Dialog-LF_eUywW-1b46959f.js.map → Dialog-LF_eUywW-B10H8cDN.js.map} +1 -1
  138. package/Dialog-LF_eUywW-erqPCF5m.cjs +2 -0
  139. package/{Dialog-LF_eUywW-bdbb253d.cjs.map → Dialog-LF_eUywW-erqPCF5m.cjs.map} +1 -1
  140. package/Dialog.cjs +1 -1
  141. package/Dialog.cjs.map +1 -1
  142. package/Dialog.js +7 -55
  143. package/Dialog.js.map +1 -1
  144. package/Divider-4Fewd-uO.cjs +2 -0
  145. package/Divider-4Fewd-uO.cjs.map +1 -0
  146. package/Divider-DR4ofzvR.js +77 -0
  147. package/Divider-DR4ofzvR.js.map +1 -0
  148. package/Divider.cjs +1 -1
  149. package/Divider.cjs.map +1 -1
  150. package/Divider.js +3 -77
  151. package/Divider.js.map +1 -1
  152. package/Drawer-BCciOZWo.js +252 -0
  153. package/Drawer-BCciOZWo.js.map +1 -0
  154. package/Drawer-uwlBIgLN.cjs +2 -0
  155. package/Drawer-uwlBIgLN.cjs.map +1 -0
  156. package/Drawer.cjs +1 -1
  157. package/Drawer.cjs.map +1 -1
  158. package/Drawer.js +7 -253
  159. package/Drawer.js.map +1 -1
  160. package/Flex-BTesi1i4.cjs +2 -0
  161. package/Flex-BTesi1i4.cjs.map +1 -0
  162. package/{Flex-D-uYVS9I-8b9c305e.js → Flex-D-uYVS9I-0ycvf8JF.js} +10 -11
  163. package/{Flex-D-uYVS9I-8b9c305e.js.map → Flex-D-uYVS9I-0ycvf8JF.js.map} +1 -1
  164. package/Flex-D-uYVS9I-TzzE4xHJ.cjs +2 -0
  165. package/{Flex-D-uYVS9I-b172b22b.cjs.map → Flex-D-uYVS9I-TzzE4xHJ.cjs.map} +1 -1
  166. package/Flex-DhbcOtER.js +8 -0
  167. package/Flex-DhbcOtER.js.map +1 -0
  168. package/Flex.cjs +1 -1
  169. package/Flex.cjs.map +1 -1
  170. package/Flex.js +3 -6
  171. package/Flex.js.map +1 -1
  172. package/Grid-Sm16wJN3.js +91 -0
  173. package/Grid-Sm16wJN3.js.map +1 -0
  174. package/Grid-hgEPwdMM.cjs +2 -0
  175. package/Grid-hgEPwdMM.cjs.map +1 -0
  176. package/Grid.cjs +1 -1
  177. package/Grid.cjs.map +1 -1
  178. package/Grid.js +3 -90
  179. package/Grid.js.map +1 -1
  180. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs +5 -0
  181. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs.map +1 -0
  182. package/{index-e38aed53.js → HammerProvider-CWIhk1CR-D4ToJaAz.js} +130 -157
  183. package/HammerProvider-CWIhk1CR-D4ToJaAz.js.map +1 -0
  184. package/{Helper-CicCRgpB-584bc8e1.js → Helper-CicCRgpB-CRl7ybcQ.js} +9 -10
  185. package/{Helper-CicCRgpB-584bc8e1.js.map → Helper-CicCRgpB-CRl7ybcQ.js.map} +1 -1
  186. package/Helper-CicCRgpB-P-DtzpXg.cjs +2 -0
  187. package/{Helper-CicCRgpB-cc748e80.cjs.map → Helper-CicCRgpB-P-DtzpXg.cjs.map} +1 -1
  188. package/Icon-BcLI32jH-CZUwsst4.cjs +2 -0
  189. package/{Icon-BcLI32jH-090788b5.cjs.map → Icon-BcLI32jH-CZUwsst4.cjs.map} +1 -1
  190. package/Icon-BcLI32jH-Dq2p5h4f.js +47 -0
  191. package/{Icon-BcLI32jH-6c61a1d4.js.map → Icon-BcLI32jH-Dq2p5h4f.js.map} +1 -1
  192. package/Icon-BgtpOVhD.js +10 -0
  193. package/Icon-BgtpOVhD.js.map +1 -0
  194. package/Icon-BsM86ff0.cjs +2 -0
  195. package/Icon-BsM86ff0.cjs.map +1 -0
  196. package/Icon.cjs +1 -1
  197. package/Icon.cjs.map +1 -1
  198. package/Icon.js +3 -8
  199. package/Icon.js.map +1 -1
  200. package/InputMask-CDk4133D.js +125 -0
  201. package/InputMask-CDk4133D.js.map +1 -0
  202. package/InputMask-ygiupqo0.cjs +2 -0
  203. package/InputMask-ygiupqo0.cjs.map +1 -0
  204. package/InputMask.cjs +1 -1
  205. package/InputMask.cjs.map +1 -1
  206. package/InputMask.js +3 -123
  207. package/InputMask.js.map +1 -1
  208. package/Label-CkY8ldc9-Bo6kvWpn.cjs +2 -0
  209. package/{Label-CkY8ldc9-f9a4ff73.cjs.map → Label-CkY8ldc9-Bo6kvWpn.cjs.map} +1 -1
  210. package/{Label-CkY8ldc9-c896ed38.js → Label-CkY8ldc9-D2wJaQlN.js} +12 -13
  211. package/{Label-CkY8ldc9-c896ed38.js.map → Label-CkY8ldc9-D2wJaQlN.js.map} +1 -1
  212. package/Layout-B2yAER6P.js +141 -0
  213. package/Layout-B2yAER6P.js.map +1 -0
  214. package/Layout-DX6uXo_t.cjs +2 -0
  215. package/Layout-DX6uXo_t.cjs.map +1 -0
  216. package/Layout.cjs +1 -1
  217. package/Layout.cjs.map +1 -1
  218. package/Layout.js +5 -140
  219. package/Layout.js.map +1 -1
  220. package/{index-17ecb2bb.js → Link-BbiA85bl-BAi5qDoN.js} +20 -21
  221. package/Link-BbiA85bl-BAi5qDoN.js.map +1 -0
  222. package/Link-BbiA85bl-BwWdpg2U.cjs +2 -0
  223. package/Link-BbiA85bl-BwWdpg2U.cjs.map +1 -0
  224. package/Link-C3a2G6_I.js +23 -0
  225. package/Link-C3a2G6_I.js.map +1 -0
  226. package/Link-v2erQ9Rm.cjs +2 -0
  227. package/Link-v2erQ9Rm.cjs.map +1 -0
  228. package/Link.cjs +1 -1
  229. package/Link.cjs.map +1 -1
  230. package/Link.js +3 -21
  231. package/Link.js.map +1 -1
  232. package/ListView-BaOIPjv3.cjs +2 -0
  233. package/ListView-BaOIPjv3.cjs.map +1 -0
  234. package/ListView-Cqp9QcP2.js +416 -0
  235. package/ListView-Cqp9QcP2.js.map +1 -0
  236. package/ListView.cjs +1 -1
  237. package/ListView.cjs.map +1 -1
  238. package/ListView.js +5 -419
  239. package/ListView.js.map +1 -1
  240. package/ListView.module-Hib8oMK_-D1tjyIVv.js +10 -0
  241. package/{ListView.module-Hib8oMK_-e8806d56.js.map → ListView.module-Hib8oMK_-D1tjyIVv.js.map} +1 -1
  242. package/ListView.module-Hib8oMK_-DpNO6Zxm.cjs +2 -0
  243. package/{ListView.module-Hib8oMK_-eb6a2b5b.cjs.map → ListView.module-Hib8oMK_-DpNO6Zxm.cjs.map} +1 -1
  244. package/Listbox-C316Nb3v.js +409 -0
  245. package/Listbox-C316Nb3v.js.map +1 -0
  246. package/Listbox-CjuJ_ngQ.cjs +2 -0
  247. package/Listbox-CjuJ_ngQ.cjs.map +1 -0
  248. package/Listbox.cjs +1 -1
  249. package/Listbox.cjs.map +1 -1
  250. package/Listbox.js +5 -409
  251. package/Listbox.js.map +1 -1
  252. package/Listbox.module-6bX97NDI-KQUI3vJl.cjs +2 -0
  253. package/{Listbox.module-6bX97NDI-d18843c8.cjs.map → Listbox.module-6bX97NDI-KQUI3vJl.cjs.map} +1 -1
  254. package/Listbox.module-6bX97NDI-h-n7TCMZ.js +12 -0
  255. package/{Listbox.module-6bX97NDI-56b35452.js.map → Listbox.module-6bX97NDI-h-n7TCMZ.js.map} +1 -1
  256. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs +2 -0
  257. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs.map +1 -0
  258. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js +42 -0
  259. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js.map +1 -0
  260. package/LocalizationProvider.cjs +1 -1
  261. package/LocalizationProvider.cjs.map +1 -1
  262. package/LocalizationProvider.js +5 -40
  263. package/LocalizationProvider.js.map +1 -1
  264. package/Menu-BQAq0L8N.cjs +2 -0
  265. package/Menu-BQAq0L8N.cjs.map +1 -0
  266. package/Menu-Cp_2j_XW.js +327 -0
  267. package/Menu-Cp_2j_XW.js.map +1 -0
  268. package/Menu.cjs +1 -1
  269. package/Menu.cjs.map +1 -1
  270. package/Menu.js +4 -327
  271. package/Menu.js.map +1 -1
  272. package/Overflow-6bSiZmRH.js +41 -0
  273. package/Overflow-6bSiZmRH.js.map +1 -0
  274. package/Overflow-8l_m52ru.cjs +2 -0
  275. package/Overflow-8l_m52ru.cjs.map +1 -0
  276. package/{Overflow-mCmpVO6E-b32b83b2.js → Overflow-mCmpVO6E-CQntjl5f.js} +40 -43
  277. package/{Overflow-mCmpVO6E-b32b83b2.js.map → Overflow-mCmpVO6E-CQntjl5f.js.map} +1 -1
  278. package/Overflow-mCmpVO6E-D9h2HKLa.cjs +2 -0
  279. package/{Overflow-mCmpVO6E-f2178064.cjs.map → Overflow-mCmpVO6E-D9h2HKLa.cjs.map} +1 -1
  280. package/Overflow.cjs +1 -1
  281. package/Overflow.cjs.map +1 -1
  282. package/Overflow.js +4 -39
  283. package/Overflow.js.map +1 -1
  284. package/Page-BHVbtL63.cjs +2 -0
  285. package/Page-BHVbtL63.cjs.map +1 -0
  286. package/Page-DyiLrgtg.js +242 -0
  287. package/Page-DyiLrgtg.js.map +1 -0
  288. package/Page.cjs +1 -1
  289. package/Page.cjs.map +1 -1
  290. package/Page.css +1 -0
  291. package/Page.js +7 -242
  292. package/Page.js.map +1 -1
  293. package/Popover-Bvpvj5WS.js +47 -0
  294. package/Popover-Bvpvj5WS.js.map +1 -0
  295. package/Popover-DFhBDbdL.cjs +2 -0
  296. package/Popover-DFhBDbdL.cjs.map +1 -0
  297. package/Popover-w3OnmR7f-DJiuhFLh.cjs +2 -0
  298. package/{Popover-w3OnmR7f-2cf208a7.cjs.map → Popover-w3OnmR7f-DJiuhFLh.cjs.map} +1 -1
  299. package/{Popover-w3OnmR7f-5daa6b79.js → Popover-w3OnmR7f-DWTdyEZ0.js} +56 -58
  300. package/{Popover-w3OnmR7f-5daa6b79.js.map → Popover-w3OnmR7f-DWTdyEZ0.js.map} +1 -1
  301. package/Popover.cjs +1 -1
  302. package/Popover.cjs.map +1 -1
  303. package/Popover.js +7 -45
  304. package/Popover.js.map +1 -1
  305. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs +2 -0
  306. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs.map +1 -0
  307. package/PortalProvider-CvQRdwLj-DYU1MLeY.js +15 -0
  308. package/PortalProvider-CvQRdwLj-DYU1MLeY.js.map +1 -0
  309. package/PortalProvider.cjs +1 -1
  310. package/PortalProvider.cjs.map +1 -1
  311. package/PortalProvider.js +4 -13
  312. package/PortalProvider.js.map +1 -1
  313. package/ProgressBar-AVSC0MNT.js +123 -0
  314. package/ProgressBar-AVSC0MNT.js.map +1 -0
  315. package/ProgressBar-dNV_9-_s.cjs +2 -0
  316. package/ProgressBar-dNV_9-_s.cjs.map +1 -0
  317. package/ProgressBar.cjs +1 -1
  318. package/ProgressBar.cjs.map +1 -1
  319. package/ProgressBar.js +3 -122
  320. package/ProgressBar.js.map +1 -1
  321. package/Radio-D6_T54mi.cjs +2 -0
  322. package/Radio-D6_T54mi.cjs.map +1 -0
  323. package/Radio-mPAtYUwY.js +147 -0
  324. package/Radio-mPAtYUwY.js.map +1 -0
  325. package/Radio.cjs +1 -1
  326. package/Radio.cjs.map +1 -1
  327. package/Radio.js +4 -146
  328. package/Radio.js.map +1 -1
  329. package/SegmentedControl-CDYqxNcB.cjs +2 -0
  330. package/SegmentedControl-CDYqxNcB.cjs.map +1 -0
  331. package/SegmentedControl-vAEVzFx9.js +149 -0
  332. package/SegmentedControl-vAEVzFx9.js.map +1 -0
  333. package/SegmentedControl.cjs +1 -1
  334. package/SegmentedControl.cjs.map +1 -1
  335. package/SegmentedControl.js +4 -148
  336. package/SegmentedControl.js.map +1 -1
  337. package/SideNav-Bdl0r5mC.js +280 -0
  338. package/SideNav-Bdl0r5mC.js.map +1 -0
  339. package/SideNav-CSUjT43n.cjs +2 -0
  340. package/SideNav-CSUjT43n.cjs.map +1 -0
  341. package/SideNav.cjs +1 -1
  342. package/SideNav.cjs.map +1 -1
  343. package/SideNav.js +6 -282
  344. package/SideNav.js.map +1 -1
  345. package/SrOnly-CWQqJxku.cjs +2 -0
  346. package/SrOnly-CWQqJxku.cjs.map +1 -0
  347. package/SrOnly-CZOsd0yE-B9lWiTrH.cjs +2 -0
  348. package/{SrOnly-CZOsd0yE-76cdbcfb.cjs.map → SrOnly-CZOsd0yE-B9lWiTrH.cjs.map} +1 -1
  349. package/SrOnly-CZOsd0yE-DlROWKSx.js +12 -0
  350. package/{SrOnly-CZOsd0yE-274dacb6.js.map → SrOnly-CZOsd0yE-DlROWKSx.js.map} +1 -1
  351. package/SrOnly-f1yBS_Iz.js +9 -0
  352. package/SrOnly-f1yBS_Iz.js.map +1 -0
  353. package/SrOnly.cjs +1 -1
  354. package/SrOnly.cjs.map +1 -1
  355. package/SrOnly.js +3 -7
  356. package/SrOnly.js.map +1 -1
  357. package/Stepper-DDTFYk6c.js +450 -0
  358. package/Stepper-DDTFYk6c.js.map +1 -0
  359. package/Stepper-d2x4zznU.cjs +2 -0
  360. package/Stepper-d2x4zznU.cjs.map +1 -0
  361. package/Stepper.cjs +1 -1
  362. package/Stepper.cjs.map +1 -1
  363. package/Stepper.js +9 -450
  364. package/Stepper.js.map +1 -1
  365. package/Switch-Dno7OZc3.cjs +2 -0
  366. package/Switch-Dno7OZc3.cjs.map +1 -0
  367. package/Switch-o9-bqyd9.js +72 -0
  368. package/Switch-o9-bqyd9.js.map +1 -0
  369. package/Switch.cjs +1 -1
  370. package/Switch.cjs.map +1 -1
  371. package/Switch.js +3 -71
  372. package/Switch.js.map +1 -1
  373. package/Tab-CeVqQjTE.cjs +10 -0
  374. package/Tab-CeVqQjTE.cjs.map +1 -0
  375. package/Tab-QW39ZPbQ.js +442 -0
  376. package/Tab-QW39ZPbQ.js.map +1 -0
  377. package/Tab.cjs +1 -9
  378. package/Tab.cjs.map +1 -1
  379. package/Tab.js +6 -442
  380. package/Tab.js.map +1 -1
  381. package/Text-D5ykWAtj.js +10 -0
  382. package/Text-D5ykWAtj.js.map +1 -0
  383. package/Text-DW_1b5Ao-CVzdFkOj.cjs +2 -0
  384. package/{Text-DW_1b5Ao-fa5ca1ca.cjs.map → Text-DW_1b5Ao-CVzdFkOj.cjs.map} +1 -1
  385. package/{Text-DW_1b5Ao-1e66bc85.js → Text-DW_1b5Ao-DnqiTXGv.js} +15 -16
  386. package/{Text-DW_1b5Ao-1e66bc85.js.map → Text-DW_1b5Ao-DnqiTXGv.js.map} +1 -1
  387. package/Text-_tnODLfZ.cjs +2 -0
  388. package/Text-_tnODLfZ.cjs.map +1 -0
  389. package/Text.cjs +1 -1
  390. package/Text.cjs.map +1 -1
  391. package/Text.js +3 -8
  392. package/Text.js.map +1 -1
  393. package/TextField-C0ccUDu5-CMsKnSgb.cjs +2 -0
  394. package/{TextField-C0ccUDu5-2c0409d1.cjs.map → TextField-C0ccUDu5-CMsKnSgb.cjs.map} +1 -1
  395. package/TextField-C0ccUDu5-pdoiLX1u.js +141 -0
  396. package/{TextField-C0ccUDu5-c3d7d2cc.js.map → TextField-C0ccUDu5-pdoiLX1u.js.map} +1 -1
  397. package/TextField-Ch1aIQRm.cjs +2 -0
  398. package/TextField-Ch1aIQRm.cjs.map +1 -0
  399. package/TextField-Qc-aHZwp.js +27 -0
  400. package/TextField-Qc-aHZwp.js.map +1 -0
  401. package/TextField.cjs +1 -1
  402. package/TextField.cjs.map +1 -1
  403. package/TextField.js +3 -25
  404. package/TextField.js.map +1 -1
  405. package/Textarea-BvKAlyr5.cjs +2 -0
  406. package/Textarea-BvKAlyr5.cjs.map +1 -0
  407. package/Textarea-D9tRBJov.js +265 -0
  408. package/Textarea-D9tRBJov.js.map +1 -0
  409. package/Textarea.cjs +1 -1
  410. package/Textarea.cjs.map +1 -1
  411. package/Textarea.js +3 -264
  412. package/Textarea.js.map +1 -1
  413. package/ThemeProvider-C28ELSMv.js +7 -0
  414. package/ThemeProvider-C28ELSMv.js.map +1 -0
  415. package/ThemeProvider-D3-vcv0T.cjs +2 -0
  416. package/ThemeProvider-D3-vcv0T.cjs.map +1 -0
  417. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs} +2 -2
  418. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs.map → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs.map} +1 -1
  419. package/{ThemeProvider-ToVvRp6m-1fe3baac.js → ThemeProvider-ToVvRp6m-qC73SSSn.js} +8 -8
  420. package/{ThemeProvider-ToVvRp6m-1fe3baac.js.map → ThemeProvider-ToVvRp6m-qC73SSSn.js.map} +1 -1
  421. package/ThemeProvider.cjs +1 -1
  422. package/ThemeProvider.cjs.map +1 -1
  423. package/ThemeProvider.js +3 -5
  424. package/ThemeProvider.js.map +1 -1
  425. package/Toast.cjs +1 -8
  426. package/Toast.cjs.map +1 -1
  427. package/Toast.js +4 -568
  428. package/Toast.js.map +1 -1
  429. package/Tooltip-Cp1dXMJf-BVijxbJA.cjs +2 -0
  430. package/{Tooltip-Cp1dXMJf-e01c8adb.cjs.map → Tooltip-Cp1dXMJf-BVijxbJA.cjs.map} +1 -1
  431. package/{Tooltip-Cp1dXMJf-eaebb90e.js → Tooltip-Cp1dXMJf-DZiDNAIp.js} +26 -28
  432. package/{Tooltip-Cp1dXMJf-eaebb90e.js.map → Tooltip-Cp1dXMJf-DZiDNAIp.js.map} +1 -1
  433. package/Tooltip-DV9FC-5a.cjs +2 -0
  434. package/Tooltip-DV9FC-5a.cjs.map +1 -0
  435. package/Tooltip-NbfopVjX.js +28 -0
  436. package/Tooltip-NbfopVjX.js.map +1 -0
  437. package/Tooltip.cjs +1 -1
  438. package/Tooltip.cjs.map +1 -1
  439. package/Tooltip.js +4 -25
  440. package/Tooltip.js.map +1 -1
  441. package/TrackingProvider.cjs +1 -14
  442. package/TrackingProvider.cjs.map +1 -1
  443. package/TrackingProvider.js +4 -5012
  444. package/TrackingProvider.js.map +1 -1
  445. package/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-BkfeUUK-.js} +3 -5
  446. package/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  447. package/{_commonjsHelpers-6763f629.cjs → _commonjsHelpers-DwTZ_eVU.cjs} +1 -1
  448. package/_commonjsHelpers-DwTZ_eVU.cjs.map +1 -0
  449. package/anvil2.cjs +1 -1
  450. package/anvil2.js +152 -152
  451. package/{check-EixQBT_K-2609382e.cjs → check-EixQBT_K-Cb-7N6O6.cjs} +1 -1
  452. package/{check-EixQBT_K-2609382e.cjs.map → check-EixQBT_K-Cb-7N6O6.cjs.map} +1 -1
  453. package/{check-EixQBT_K-b5474547.js → check-EixQBT_K-DVm-iNP1.js} +1 -1
  454. package/{check-EixQBT_K-b5474547.js.map → check-EixQBT_K-DVm-iNP1.js.map} +1 -1
  455. package/{check_circle-CYXeiF3f-0d49b2da.cjs → check_circle-CYXeiF3f-CxsnkN5A.cjs} +1 -1
  456. package/{check_circle-CYXeiF3f-0d49b2da.cjs.map → check_circle-CYXeiF3f-CxsnkN5A.cjs.map} +1 -1
  457. package/{check_circle-CYXeiF3f-5838521c.js → check_circle-CYXeiF3f-DAAbkuAz.js} +1 -1
  458. package/{check_circle-CYXeiF3f-5838521c.js.map → check_circle-CYXeiF3f-DAAbkuAz.js.map} +1 -1
  459. package/{chevron_right-C6tOB0si-96f8a9c6.cjs → chevron_right-C6tOB0si-CAGtVHIJ.cjs} +1 -1
  460. package/{chevron_right-C6tOB0si-96f8a9c6.cjs.map → chevron_right-C6tOB0si-CAGtVHIJ.cjs.map} +1 -1
  461. package/{chevron_right-C6tOB0si-ac35ad56.js → chevron_right-C6tOB0si-CQUlqPv7.js} +1 -1
  462. package/{chevron_right-C6tOB0si-ac35ad56.js.map → chevron_right-C6tOB0si-CQUlqPv7.js.map} +1 -1
  463. package/{childrenToString-BP48L6HE-0cd30a27.cjs → childrenToString-BP48L6HE-99vBR-I0.cjs} +1 -1
  464. package/{childrenToString-BP48L6HE-0cd30a27.cjs.map → childrenToString-BP48L6HE-99vBR-I0.cjs.map} +1 -1
  465. package/{childrenToString-BP48L6HE-416df522.js → childrenToString-BP48L6HE-CwwYrHi6.js} +1 -1
  466. package/{childrenToString-BP48L6HE-416df522.js.map → childrenToString-BP48L6HE-CwwYrHi6.js.map} +1 -1
  467. package/{close-rGTzRQfw-4984cc86.cjs → close-rGTzRQfw-CH6gBTQZ.cjs} +1 -1
  468. package/{close-rGTzRQfw-4984cc86.cjs.map → close-rGTzRQfw-CH6gBTQZ.cjs.map} +1 -1
  469. package/{close-rGTzRQfw-7e0b4df7.js → close-rGTzRQfw-Dbu1sjKk.js} +1 -1
  470. package/{close-rGTzRQfw-7e0b4df7.js.map → close-rGTzRQfw-Dbu1sjKk.js.map} +1 -1
  471. package/extends-C3382pL0.js +23 -0
  472. package/{extends-31d75778.js.map → extends-C3382pL0.js.map} +1 -1
  473. package/{extends-60b54772.cjs → extends-Ddk9WqIm.cjs} +1 -1
  474. package/{extends-60b54772.cjs.map → extends-Ddk9WqIm.cjs.map} +1 -1
  475. package/{getKeyboardFocusableElements-58a00025.js → getKeyboardFocusableElements-CbK6M1xT.js} +2 -3
  476. package/{getKeyboardFocusableElements-58a00025.js.map → getKeyboardFocusableElements-CbK6M1xT.js.map} +1 -1
  477. package/{getKeyboardFocusableElements-aba1bd01.cjs → getKeyboardFocusableElements-DoTjYzTH.cjs} +1 -1
  478. package/{getKeyboardFocusableElements-aba1bd01.cjs.map → getKeyboardFocusableElements-DoTjYzTH.cjs.map} +1 -1
  479. package/{index-1f4f169d.cjs → index-B8Rbc1qP.cjs} +2 -2
  480. package/{index-1f4f169d.cjs.map → index-B8Rbc1qP.cjs.map} +1 -1
  481. package/{index-c6e22bb9.js → index-B9BgsxnA.js} +2 -2
  482. package/{index-c6e22bb9.js.map → index-B9BgsxnA.js.map} +1 -1
  483. package/{index-ef2e9d11.cjs → index-BYW82IHE.cjs} +2 -2
  484. package/{index-ef2e9d11.cjs.map → index-BYW82IHE.cjs.map} +1 -1
  485. package/{index-47e4931c.js → index-CdPVLxQ_.js} +2 -2
  486. package/{index-47e4931c.js.map → index-CdPVLxQ_.js.map} +1 -1
  487. package/index-Crqvnd9D.js +479 -0
  488. package/{index-06c0bdf0.js.map → index-Crqvnd9D.js.map} +1 -1
  489. package/index-DGxJnlis.cjs +2 -0
  490. package/{index-a53df036.cjs.map → index-DGxJnlis.cjs.map} +1 -1
  491. package/{info-BiufEIKW-f73c8f68.js → info-BiufEIKW-5zxL2v35.js} +1 -1
  492. package/{info-BiufEIKW-f73c8f68.js.map → info-BiufEIKW-5zxL2v35.js.map} +1 -1
  493. package/{info-BiufEIKW-9f16129f.cjs → info-BiufEIKW-BQvVCqQB.cjs} +1 -1
  494. package/{info-BiufEIKW-9f16129f.cjs.map → info-BiufEIKW-BQvVCqQB.cjs.map} +1 -1
  495. package/{jsx-runtime-82a9ddf6.js → jsx-runtime-B6kdoens.js} +99 -111
  496. package/{jsx-runtime-82a9ddf6.js.map → jsx-runtime-B6kdoens.js.map} +1 -1
  497. package/{jsx-runtime-494437bb.cjs → jsx-runtime-Cek9Ww4S.cjs} +7 -9
  498. package/{jsx-runtime-494437bb.cjs.map → jsx-runtime-Cek9Ww4S.cjs.map} +1 -1
  499. package/{jsx-runtime-DmTjM30f-4402697a.cjs → jsx-runtime-DmTjM30f-CS_-PsQX.cjs} +1 -1
  500. package/{jsx-runtime-DmTjM30f-4402697a.cjs.map → jsx-runtime-DmTjM30f-CS_-PsQX.cjs.map} +1 -1
  501. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js → jsx-runtime-DmTjM30f-Qvbpxce2.js} +4 -8
  502. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js.map → jsx-runtime-DmTjM30f-Qvbpxce2.js.map} +1 -1
  503. package/{motion-dae3950e.cjs → motion-C4VO4Fpk.cjs} +2 -2
  504. package/{motion-dae3950e.cjs.map → motion-C4VO4Fpk.cjs.map} +1 -1
  505. package/{motion-a0a946d6.js → motion-DztvaDAI.js} +4 -5
  506. package/{motion-a0a946d6.js.map → motion-DztvaDAI.js.map} +1 -1
  507. package/package.json +6 -6
  508. package/{primitive-898a5f6f.cjs → primitive-CGGVJgVV.cjs} +1 -1
  509. package/{primitive-898a5f6f.cjs.map → primitive-CGGVJgVV.cjs.map} +1 -1
  510. package/{primitive-90e4e69c.js → primitive-DD5BdZ26.js} +1 -1
  511. package/{primitive-90e4e69c.js.map → primitive-DD5BdZ26.js.map} +1 -1
  512. package/{tinycolor-d415b1fd.js → tinycolor-7bVxTrF6.js} +1 -1
  513. package/{tinycolor-d415b1fd.js.map → tinycolor-7bVxTrF6.js.map} +1 -1
  514. package/{tinycolor-3b50a250.cjs → tinycolor-DTF4mKtt.cjs} +1 -1
  515. package/{tinycolor-3b50a250.cjs.map → tinycolor-DTF4mKtt.cjs.map} +1 -1
  516. package/toast-CdGTVoG7.js +561 -0
  517. package/toast-CdGTVoG7.js.map +1 -0
  518. package/toast-DZzaqTjt.cjs +9 -0
  519. package/toast-DZzaqTjt.cjs.map +1 -0
  520. package/token.cjs +1 -1
  521. package/token.js +1 -1
  522. package/use-reduced-motion-B0iZwwI4.js +28 -0
  523. package/{use-reduced-motion-b359504d.js.map → use-reduced-motion-B0iZwwI4.js.map} +1 -1
  524. package/use-reduced-motion-CbCiX8I1.cjs +2 -0
  525. package/{use-reduced-motion-a766a46b.cjs.map → use-reduced-motion-CbCiX8I1.cjs.map} +1 -1
  526. package/useAccessibleColor.cjs +1 -1
  527. package/useAccessibleColor.js +3 -5
  528. package/useAccessibleColor.js.map +1 -1
  529. package/useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs +2 -0
  530. package/{useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs.map → useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs.map} +1 -1
  531. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js} +5 -9
  532. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js.map → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js.map} +1 -1
  533. package/useLinkStyles.cjs +1 -1
  534. package/useLinkStyles.js +1 -1
  535. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs +2 -0
  536. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs.map +1 -0
  537. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js +12 -0
  538. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js.map +1 -0
  539. package/useMergeRefs.cjs +1 -1
  540. package/useMergeRefs.cjs.map +1 -1
  541. package/useMergeRefs.js +3 -10
  542. package/useMergeRefs.js.map +1 -1
  543. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs +2 -0
  544. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs.map +1 -0
  545. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js +21 -0
  546. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js.map +1 -0
  547. package/usePrefersColorScheme.cjs +1 -1
  548. package/usePrefersColorScheme.cjs.map +1 -1
  549. package/usePrefersColorScheme.js +3 -19
  550. package/usePrefersColorScheme.js.map +1 -1
  551. package/useSize.cjs +1 -1
  552. package/useSize.cjs.map +1 -1
  553. package/useSize.js +36 -38
  554. package/useSize.js.map +1 -1
  555. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs +2 -0
  556. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs.map +1 -0
  557. package/useSwipe-BkgaWBcb-vV9GPhxB.js +16 -0
  558. package/useSwipe-BkgaWBcb-vV9GPhxB.js.map +1 -0
  559. package/useSwipe.cjs +1 -1
  560. package/useSwipe.cjs.map +1 -1
  561. package/useSwipe.js +3 -15
  562. package/useSwipe.js.map +1 -1
  563. package/useTrackingContext-BBuZNjoW.cjs +15 -0
  564. package/useTrackingContext-BBuZNjoW.cjs.map +1 -0
  565. package/useTrackingContext-DX5Gcrbe.js +5014 -0
  566. package/useTrackingContext-DX5Gcrbe.js.map +1 -0
  567. package/useTrackingId.cjs +1 -1
  568. package/useTrackingId.cjs.map +1 -1
  569. package/useTrackingId.js +3 -3
  570. package/{warning-DDltrOR--36733091.js → warning-DDltrOR--BVtwqwWT.js} +1 -1
  571. package/{warning-DDltrOR--36733091.js.map → warning-DDltrOR--BVtwqwWT.js.map} +1 -1
  572. package/{warning-DDltrOR--31461705.cjs → warning-DDltrOR--raWQD1z0.cjs} +1 -1
  573. package/{warning-DDltrOR--31461705.cjs.map → warning-DDltrOR--raWQD1z0.cjs.map} +1 -1
  574. package/Alert-BULbyuJn-6bc0372f.js +0 -91
  575. package/Alert-BULbyuJn-85b8cba4.cjs +0 -2
  576. package/ButtonToggle-uOhiLjZh-7f18dd4f.cjs +0 -2
  577. package/Checkbox-Bac2nQzq-03b67a48.cjs +0 -2
  578. package/Chip-BVUDQYeX-5eb1e24c.cjs +0 -2
  579. package/Dialog-LF_eUywW-bdbb253d.cjs +0 -2
  580. package/Flex-D-uYVS9I-b172b22b.cjs +0 -2
  581. package/Helper-CicCRgpB-cc748e80.cjs +0 -2
  582. package/Icon-BcLI32jH-090788b5.cjs +0 -2
  583. package/Icon-BcLI32jH-6c61a1d4.js +0 -48
  584. package/Label-CkY8ldc9-f9a4ff73.cjs +0 -2
  585. package/ListView.module-Hib8oMK_-e8806d56.js +0 -11
  586. package/ListView.module-Hib8oMK_-eb6a2b5b.cjs +0 -2
  587. package/Listbox.module-6bX97NDI-56b35452.js +0 -13
  588. package/Listbox.module-6bX97NDI-d18843c8.cjs +0 -2
  589. package/Overflow-mCmpVO6E-f2178064.cjs +0 -2
  590. package/Popover-w3OnmR7f-2cf208a7.cjs +0 -2
  591. package/SrOnly-CZOsd0yE-274dacb6.js +0 -13
  592. package/SrOnly-CZOsd0yE-76cdbcfb.cjs +0 -2
  593. package/Text-DW_1b5Ao-fa5ca1ca.cjs +0 -2
  594. package/TextField-C0ccUDu5-2c0409d1.cjs +0 -2
  595. package/TextField-C0ccUDu5-c3d7d2cc.js +0 -142
  596. package/Tooltip-Cp1dXMJf-e01c8adb.cjs +0 -2
  597. package/_commonjsHelpers-6763f629.cjs.map +0 -1
  598. package/_commonjsHelpers-c5d32002.js.map +0 -1
  599. package/extends-31d75778.js +0 -27
  600. package/index-06c0bdf0.js +0 -480
  601. package/index-17ecb2bb.js.map +0 -1
  602. package/index-63a9d04d.cjs +0 -5
  603. package/index-63a9d04d.cjs.map +0 -1
  604. package/index-a53df036.cjs +0 -2
  605. package/index-c4b570f4.cjs +0 -2
  606. package/index-c4b570f4.cjs.map +0 -1
  607. package/index-e38aed53.js.map +0 -1
  608. package/index13.css +0 -1
  609. package/index6.css +0 -1
  610. package/use-reduced-motion-a766a46b.cjs +0 -2
  611. package/use-reduced-motion-b359504d.js +0 -28
  612. package/useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs +0 -2
  613. /package/{index.css → Announcement.css} +0 -0
  614. /package/{index2.css → Avatar.css} +0 -0
  615. /package/{index3.css → Badge.css} +0 -0
  616. /package/{index4.css → Calendar.css} +0 -0
  617. /package/{index5.css → Card.css} +0 -0
  618. /package/{index7.css → Details.css} +0 -0
  619. /package/{index8.css → Divider.css} +0 -0
  620. /package/{index9.css → Drawer.css} +0 -0
  621. /package/{index10.css → Grid.css} +0 -0
  622. /package/{index11.css → Layout.css} +0 -0
  623. /package/{index23.css → Link-BbiA85bl.css} +0 -0
  624. /package/{index12.css → Menu.css} +0 -0
  625. /package/{index14.css → ProgressBar.css} +0 -0
  626. /package/{index15.css → Radio.css} +0 -0
  627. /package/{index16.css → SegmentedControl.css} +0 -0
  628. /package/{index17.css → SideNav.css} +0 -0
  629. /package/{index18.css → Stepper.css} +0 -0
  630. /package/{index19.css → Switch.css} +0 -0
  631. /package/{index20.css → Tab.css} +0 -0
  632. /package/{index21.css → Textarea.css} +0 -0
  633. /package/{index22.css → toast.css} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";const pe=require("./jsx-runtime-494437bb.cjs"),P=require("react"),X=require("./use-reduced-motion-a766a46b.cjs"),De=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$t=P.createContext({}),Gt=P.createContext(null),ys=X.isBrowser?P.useLayoutEffect:P.useEffect,vs=P.createContext({strict:!1}),zt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$i="framerAppearId",xs="data-"+zt($i),Gi={skipAnimations:!1,useManualTiming:!1};function zi(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],Hi=40;function Ts(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((g,v)=>(g[v]=zi(r),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,Hi),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((g,v)=>{const y=o[v];return g[v]=(S,b=!1,D=!1)=>(n||p(),y.schedule(S,b,D)),g},{}),cancel:g=>{for(let v=0;v<Lt.length;v++)o[Lt[v]].cancel(g)},state:i,steps:o}}const{schedule:Re,cancel:hu}=Ts(queueMicrotask,!1);function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Ps=P.createContext({});let en=!1;function Yi(t,e,n,s,i){const{visualElement:r}=P.useContext($t),o=P.useContext(vs),a=P.useContext(Gt),l=P.useContext(De).reducedMotion,u=P.useRef();s=s||o.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=P.useContext(Ps);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&qi(u.current,n,i,h),P.useInsertionEffect(()=>{c&&c.update(n,a)});const f=P.useRef(!!(n[xs]&&!window.HandoffComplete));return ys(()=>{c&&(c.updateFeatures(),Re.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,en||(en=!0,queueMicrotask(Xi))))}),c}function Xi(){window.HandoffComplete=!0}function qi(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ss(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&at(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ss(t){if(t)return t.options.allowProjection!==!1?t.projection:Ss(t.parent)}function Zi(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}function bt(t){return typeof t=="string"||Array.isArray(t)}function Vt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Me];function Ht(t){return Vt(t.animate)||Ee.some(e=>bt(t[e]))}function bs(t){return!!(Ht(t)||t.variants)}function Ji(t,e){if(Ht(t)){const{initial:n,animate:s}=t;return{initial:n===!1||bt(n)?n:void 0,animate:bt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Qi(t){const{initial:e,animate:n}=Ji(t,P.useContext($t));return P.useMemo(()=>({initial:e,animate:n}),[nn(e),nn(n)])}function nn(t){return Array.isArray(t)?t.join(" "):t}const sn={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"]},ft={};for(const t in sn)ft[t]={isEnabled:e=>sn[t].some(n=>!!e[n])};function to(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Le=P.createContext({}),eo=Symbol.for("motionComponentSymbol"),M=t=>t;let pt=M;exports.invariant=M;process.env.NODE_ENV!=="production"&&(pt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},exports.invariant=(t,e)=>{if(!t)throw new Error(e)});function no({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&to(t);function r(a,l){let u;const c={...P.useContext(De),...a,layoutId:so(a)},{isStatic:h}=c,f=Qi(a),d=s(a,h);if(!h&&X.isBrowser){io(c,t);const p=oo(c);u=p.MeasureLayout,f.visualElement=Yi(i,d,c,e,p.ProjectionNode)}return pe.jsxRuntimeExports.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?pe.jsxRuntimeExports.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Zi(d,f.visualElement,l),d,h,f.visualElement)]})}const o=P.forwardRef(r);return o[eo]=i,o}function so({layoutId:t}){const e=P.useContext(Le).id;return e&&t!==void 0?e+"-"+t:t}function io(t,e){const n=P.useContext(vs).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?pt(!1,s):exports.invariant(!1,s)}}function oo(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ro(t){function e(s,i={}){return no(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ao=["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 Fe(t){return typeof t!="string"||t.includes("-")?!1:!!(ao.indexOf(t)>-1||/[A-Z]/u.test(t))}const It={};function lo(t){Object.assign(It,t)}const Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set(Dt);function Vs(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!It[t]||t==="opacity")}const L=t=>!!(t&&t.getVelocity),uo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},co=Dt.length;function ho(t,e,n){let s="";for(let i=0;i<co;i++){const r=Dt[i];if(t[r]!==void 0){const o=uo[r]||r;s+=`${o}(${t[r]}) `}}return s=s.trim(),n?s=n(t,e?"":s):e&&(s="none"),s}const As=t=>e=>typeof e=="string"&&e.startsWith(t),ws=As("--"),fo=As("var(--"),Be=t=>fo(t)?po.test(t.split("/*")[0].trim()):!1,po=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Z=(t,e,n)=>n>e?e:n<t?t:n,mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},xt={...mt,transform:t=>Z(0,1,t)},Ft={...mt,default:1},Tt=t=>Math.round(t*1e5)/1e5,ke=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,go=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,yo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Rt(t){return typeof t=="string"}function vo(t){return t==null}const Mt=t=>({test:e=>Rt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y=Mt("deg"),N=Mt("%"),T=Mt("px"),xo=Mt("vh"),To=Mt("vw"),on={...N,parse:t=>N.parse(t)/100,transform:t=>N.transform(t*100)},rn={...mt,transform:Math.round},Cs={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,size:T,top:T,right:T,bottom:T,left:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:Y,skewX:Y,skewY:Y,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:xt,originX:on,originY:on,originZ:T,zIndex:rn,backgroundPositionX:T,backgroundPositionY:T,fillOpacity:xt,strokeOpacity:xt,numOctaves:rn};function Oe(t,e,n){const{style:s,vars:i,transform:r,transformOrigin:o}=t;let a=!1,l=!1,u=!0;for(const c in e){const h=e[c];if(ws(c)){i[c]=h;continue}const f=Cs[c],d=mo(h,f);if(Q.has(c)){if(a=!0,r[c]=d,!u)continue;h!==(f.default||0)&&(u=!1)}else c.startsWith("origin")?(l=!0,o[c]=d):s[c]=d}if(e.transform||(a||n?s.transform=ho(t.transform,u,n):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:h="50%",originZ:f=0}=o;s.transformOrigin=`${c} ${h} ${f}`}}const je=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ds(t,e,n){for(const s in e)!L(e[s])&&!Vs(s,n)&&(t[s]=e[s])}function Po({transformTemplate:t},e){return P.useMemo(()=>{const n=je();return Oe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function So(t,e){const n=t.style||{},s={};return Ds(s,n,t),Object.assign(s,Po(t,e)),s}function bo(t,e){const n={},s=So(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Vo=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","ignoreStrict","viewport"]);function Nt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Vo.has(t)}let Rs=t=>!Nt(t);function Ao(t){t&&(Rs=e=>e.startsWith("on")?!Nt(e):t(e))}try{Ao(require("@emotion/is-prop-valid").default)}catch{}function wo(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Rs(i)||n===!0&&Nt(i)||!e&&!Nt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function an(t,e,n){return typeof t=="string"?t:T.transform(e+n*t)}function Co(t,e,n){const s=an(e,t.x,t.width),i=an(n,t.y,t.height);return`${s} ${i}`}const Do={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ro={offset:"strokeDashoffset",array:"strokeDasharray"};function Mo(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Do:Ro;t[r.offset]=T.transform(-s);const o=T.transform(e),a=T.transform(n);t[r.array]=`${o} ${a}`}function Ie(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Oe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||r!==void 0||d.transform)&&(d.transformOrigin=Co(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&Mo(f,o,a,l,!1)}const Ms=()=>({...je(),attrs:{}}),Ne=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Eo(t,e,n,s){const i=P.useMemo(()=>{const r=Ms();return Ie(r,e,Ne(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ds(r,t.style,t),i.style={...r,...i.style}}return i}function Lo(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Fe(n)?Eo:bo)(s,r,o,n),u=wo(s,typeof n=="string",t),c=n!==P.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>L(h)?h.get():h,[h]);return P.createElement(n,{...c,children:f})}}function Es(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ls=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"]);function Fs(t,e,n,s){Es(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ls.has(i)?i:zt(i),e.attrs[i])}function Ue(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(L(i[o])||e.style&&L(e.style[o])||Vs(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),r}function Bs(t,e,n){const s=Ue(t,e,n);for(const i in t)if(L(t[i])||L(e[i])){const r=Dt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function ln(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function _e(t,e,n,s){if(typeof e=="function"){const[i,r]=ln(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=ln(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function ks(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const me=t=>Array.isArray(t),Fo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Bo=t=>me(t)?t[t.length-1]||0:t;function kt(t){const e=L(t)?t.get():t;return Fo(e)?e.toValue():e}const Os=new Set(["opacity","clipPath","filter","transform"]);function js(t){if(Q.has(t))return"transform";if(Os.has(t))return zt(t)}function Yt(t,e){t.indexOf(e)===-1&&t.push(e)}function Xt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ko({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:s},i,r,o,a){const l={latestValues:jo(i,r,o,a?!1:t,e),renderState:n()};return s&&(l.mount=u=>s(i,u,l)),l}const Is=t=>(e,n)=>{const s=P.useContext($t),i=P.useContext(Gt),r=()=>ko(t,e,s,i,n);return n?r():ks(r)};function Oo(t,e){const n=js(e);n&&Yt(t,n)}function un(t,e,n){const s=Array.isArray(e)?e:[e];for(let i=0;i<s.length;i++){const r=_e(t,s[i]);if(r){const{transitionEnd:o,transition:a,...l}=r;n(l,o)}}}function jo(t,e,n,s,i){var r;const o={},a=[],l=s&&((r=t.style)===null||r===void 0?void 0:r.willChange)===void 0,u=i(t,{});for(const x in u)o[x]=kt(u[x]);let{initial:c,animate:h}=t;const f=Ht(t),d=bs(t);e&&d&&!f&&t.inherit!==!1&&(c===void 0&&(c=e.initial),h===void 0&&(h=e.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const m=p?h:c;return m&&typeof m!="boolean"&&!Vt(m)&&un(t,m,(x,g)=>{for(const v in x){let y=x[v];if(Array.isArray(y)){const S=p?y.length-1:0;y=y[S]}y!==null&&(o[v]=y)}for(const v in g)o[v]=g[v]}),l&&(h&&c!==!1&&!Vt(h)&&un(t,h,x=>{for(const g in x)Oo(a,g)}),a.length&&(o.willChange=a.join(","))),o}const{schedule:A,cancel:z,state:R,steps:ee}=Ts(typeof requestAnimationFrame<"u"?requestAnimationFrame:M,!0),Io={useVisualState:Is({scrapeMotionValuesFromProps:Bs,createRenderState:Ms,onMount:(t,e,{renderState:n,latestValues:s})=>{A.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),A.render(()=>{Ie(n,s,Ne(e.tagName),t.transformTemplate),Fs(e,n)})}})},No={useVisualState:Is({applyWillChange:!0,scrapeMotionValuesFromProps:Ue,createRenderState:je})};function Uo(t,{forwardMotionProps:e=!1},n,s){return{...Fe(t)?Io:No,preloadedFeatures:n,useRender:Lo(e),createVisualElement:s,Component:t}}function _(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Ns=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function qt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const _o=t=>e=>Ns(e)&&t(e,qt(e));function W(t,e,n,s){return _(t,e,_o(n),s)}const Wo=(t,e)=>n=>e(t(n)),K=(...t)=>t.reduce(Wo);function Us(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const cn=Us("dragHorizontal"),hn=Us("dragVertical");function _s(t){let e=!1;if(t==="y")e=hn();else if(t==="x")e=cn();else{const n=cn(),s=hn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Ws(){const t=_s(!0);return t?(t(),!1):!0}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function fn(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(r,o)=>{if(r.pointerType==="touch"||Ws())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&A.postRender(()=>l(r,o))};return W(t.current,n,i,{passive:!t.getProps()[s]})}class Ko extends tt{mount(){this.unmount=K(fn(this.node,!0),fn(this.node,!1))}unmount(){}}class $o extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=K(_(this.node.current,"focus",()=>this.onFocus()),_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ks=(t,e)=>e?t===e?!0:Ks(t,e.parentElement):!1;function ne(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,qt(n))}class Go extends tt{constructor(){super(...arguments),this.removeStartListeners=M,this.removeEndListeners=M,this.removeAccessibleListeners=M,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=W(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!Ks(this.node.current,a.target)?c:u;f&&A.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),o=W(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=K(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||ne("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&A.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_(this.node.current,"keyup",o),ne("down",(a,l)=>{this.startPress(a,l)})},n=_(this.node.current,"keydown",e),s=()=>{this.isPressing&&ne("cancel",(r,o)=>this.cancelPress(r,o))},i=_(this.node.current,"blur",s);this.removeAccessibleListeners=K(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&A.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ws()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&A.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=W(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=_(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=K(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ge=new WeakMap,se=new WeakMap,zo=t=>{const e=ge.get(t.target);e&&e(t)},Ho=t=>{t.forEach(zo)};function Yo({root:t,...e}){const n=t||document;se.has(n)||se.set(n,{});const s=se.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ho,{root:t,...e})),s[i]}function Xo(t,e,n){const s=Yo(e);return ge.set(t,n),s.observe(t),()=>{ge.delete(t),s.unobserve(t)}}const qo={some:0,all:1};class Zo extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:qo[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Xo(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Jo(e,n))&&this.startObserver()}unmount(){}}function Jo({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Qo={inView:{Feature:Zo},tap:{Feature:Go},focus:{Feature:$o},hover:{Feature:Ko}};function $s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Zt(t,e,n){const s=t.getProps();return _e(s,e,n!==void 0?n:s.custom,t)}const $=t=>t*1e3,G=t=>t/1e3,tr={type:"spring",stiffness:500,damping:25,restSpeed:10},er=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nr={type:"keyframes",duration:.8},sr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ir=(t,{keyframes:e})=>e.length>2?nr:Q.has(t)?t.startsWith("scale")?er(e[1]):tr:sr;function or({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function We(t,e){return t[e]||t.default||t}const rr=t=>t!==null;function Jt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(rr),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}let Ot;function ar(){Ot=void 0}const q={now:()=>(Ot===void 0&&q.set(R.isProcessing||Gi.useManualTiming?R.timestamp:performance.now()),Ot),set:t=>{Ot=t,queueMicrotask(ar)}},Gs=t=>/^0[^.\s]+$/u.test(t);function lr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gs(t):!0}const zs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ur=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cr(t){const e=ur.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const hr=4;function Hs(t,e,n=1){exports.invariant(n<=hr,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=cr(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return zs(o)?parseFloat(o):o}return Be(i)?Hs(i,e,n+1):i}const fr=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dn=t=>t===mt||t===T,pn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return pn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?pn(r[1],t):0}},dr=new Set(["x","y","z"]),pr=Dt.filter(t=>!dr.has(t));function mr(t){const e=[];return pr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const dt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:mn(4,13),y:mn(5,14)};dt.translateX=dt.x;dt.translateY=dt.y;const Ys=t=>e=>e.test(t),gr={test:t=>t==="auto",parse:t=>t},Xs=[mt,T,N,Y,To,xo,gr],gn=t=>Xs.find(Ys(t)),ot=new Set;let ye=!1,ve=!1;function qs(){if(ve){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=mr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ve=!1,ye=!1,ot.forEach(t=>t.complete()),ot.clear()}function Zs(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ve=!0)})}function yr(){Zs(),qs()}class Ke{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ot.add(this),ye||(ye=!0,A.read(Zs),A.resolveKeyframes(qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ot.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ot.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $e=(t,e)=>n=>!!(Rt(n)&&yo.test(n)&&n.startsWith(t)||e&&!vo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Js=(t,e,n)=>s=>{if(!Rt(s))return s;const[i,r,o,a]=s.match(ke);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},vr=t=>Z(0,255,t),ie={...mt,transform:t=>Math.round(vr(t))},it={test:$e("rgb","red"),parse:Js("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ie.transform(t)+", "+ie.transform(e)+", "+ie.transform(n)+", "+Tt(xt.transform(s))+")"};function xr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const xe={test:$e("#"),parse:xr,transform:it.transform},lt={test:$e("hsl","hue"),parse:Js("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+N.transform(Tt(e))+", "+N.transform(Tt(n))+", "+Tt(xt.transform(s))+")"},E={test:t=>it.test(t)||xe.test(t)||lt.test(t),parse:t=>it.test(t)?it.parse(t):lt.test(t)?lt.parse(t):xe.parse(t),transform:t=>Rt(t)?t:t.hasOwnProperty("red")?it.transform(t):lt.transform(t)};function Tr(t){var e,n;return isNaN(t)&&Rt(t)&&(((e=t.match(ke))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(go))===null||n===void 0?void 0:n.length)||0)>0}const Qs="number",ti="color",Pr="var",Sr="var(",yn="${}",br=/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 At(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(br,l=>(E.test(l)?(s.color.push(r),i.push(ti),n.push(E.parse(l))):l.startsWith(Sr)?(s.var.push(r),i.push(Pr),n.push(l)):(s.number.push(r),i.push(Qs),n.push(parseFloat(l))),++r,yn)).split(yn);return{values:n,split:a,indexes:s,types:i}}function ei(t){return At(t).values}function ni(t){const{split:e,types:n}=At(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Qs?r+=Tt(i[o]):a===ti?r+=E.transform(i[o]):r+=i[o]}return r}}const Vr=t=>typeof t=="number"?0:t;function Ar(t){const e=ei(t);return ni(t)(e.map(Vr))}const J={test:Tr,parse:ei,createTransformer:ni,getAnimatableNone:Ar},wr=new Set(["brightness","contrast","saturate","opacity"]);function Cr(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ke)||[];if(!s)return t;const i=n.replace(s,"");let r=wr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Dr=/\b([a-z-]*)\(.*?\)/gu,Te={...J,getAnimatableNone:t=>{const e=t.match(Dr);return e?e.map(Cr).join(" "):t}},Rr={...Cs,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Te,WebkitFilter:Te},Ge=t=>Rr[t];function si(t,e){let n=Ge(t);return n!==Te&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Mr=new Set(["auto","none","0"]);function Er(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Mr.has(r)&&At(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=si(n,i)}class ii extends Ke{constructor(e,n,s,i){super(e,n,s,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Be(u))){const c=Hs(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!fr.has(s)||e.length!==2)return;const[i,r]=e,o=gn(i),a=gn(r);if(o!==a)if(dn(o)&&dn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)lr(e[i])&&s.push(i);s.length&&Er(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=dt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function oi(t){let e;return()=>(e===void 0&&(e=t()),e)}const vn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Lr(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Fr(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=vn(i,e),a=vn(r,e);return pt(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:Lr(t)||n==="spring"&&s}class ri{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&yr(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Fr(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Jt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ai(t,e){return e?t*(1e3/e):0}const Br=5;function li(t,e,n){const s=Math.max(e-Br,0);return ai(n-t(s),e-s)}const oe=.001,kr=.01,xn=10,Or=.05,jr=1;function Ir({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r;pt(t<=$(xn),"Spring duration must be 10 seconds or less");let o=1-e;o=Z(Or,jr,o),t=Z(kr,xn,G(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Pe(u,o),p=Math.exp(-h);return oe-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Pe(Math.pow(u,2),o);return(-i(u)+oe>0?-1:1)*((f-d)*p)/m}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-oe+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Ur(i,r,a);if(t=$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Nr=12;function Ur(t,e,n){let s=n;for(let i=1;i<Nr;i++)s=s-t(s)/e(s);return s}function Pe(t,e){return t*Math.sqrt(1-e*e)}const _r=["duration","bounce"],Wr=["stiffness","damping","mass"];function Tn(t,e){return e.some(n=>t[n]!==void 0)}function Kr(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Tn(t,Wr)&&Tn(t,_r)){const n=Ir(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function ui({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:f}=Kr({...s,velocity:-G(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),m=r-i,x=G(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),e||(e=g?.005:.5);let v;if(p<1){const y=Pe(x,p);v=S=>{const b=Math.exp(-p*x*S);return r-b*((d+p*x*m)/y*Math.sin(y*S)+m*Math.cos(y*S))}}else if(p===1)v=y=>r-Math.exp(-x*y)*(m+(d+x*m)*y);else{const y=x*Math.sqrt(p*p-1);v=S=>{const b=Math.exp(-p*x*S),D=Math.min(y*S,300);return r-b*((d+p*x*m)*Math.sinh(D)+y*m*Math.cosh(D))/y}}return{calculatedDuration:f&&c||null,next:y=>{const S=v(y);if(f)o.done=y>=c;else{let b=d;y!==0&&(p<1?b=li(v,y,S):b=0);const D=Math.abs(b)<=n,H=Math.abs(r-S)<=e;o.done=D&&H}return o.value=o.done?r:S,o}}}function Pn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,p=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let m=n*e;const x=h+m,g=o===void 0?x:o(x);g!==x&&(m=g-h);const v=V=>-m*Math.exp(-V/s),y=V=>g+v(V),S=V=>{const k=v(V),O=y(V);f.done=Math.abs(k)<=u,f.value=f.done?g:O};let b,D;const H=V=>{d(f.value)&&(b=V,D=ui({keyframes:[f.value,p(f.value)],velocity:li(y,V,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return H(0),{calculatedDuration:null,next:V=>{let k=!1;return!D&&b===void 0&&(k=!0,S(V),H(V)),b!==void 0&&V>=b?D.next(V-b):(!k&&S(V),f)}}}const ci=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$r=1e-7,Gr=12;function zr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ci(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>$r&&++a<Gr);return o}function Et(t,e,n,s){if(t===e&&n===s)return M;const i=r=>zr(r,0,1,t,n);return r=>r===0||r===1?r:ci(i(r),e,s)}const Hr=Et(.42,0,1,1),Yr=Et(0,0,.58,1),hi=Et(.42,0,.58,1),Xr=t=>Array.isArray(t)&&typeof t[0]!="number",fi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,di=t=>e=>1-t(1-e),ze=t=>1-Math.sin(Math.acos(t)),pi=di(ze),qr=fi(ze),mi=Et(.33,1.53,.69,.99),He=di(mi),Zr=fi(He),Jr=t=>(t*=2)<1?.5*He(t):.5*(2-Math.pow(2,-10*(t-1))),Sn={linear:M,easeIn:Hr,easeInOut:hi,easeOut:Yr,circIn:ze,circInOut:qr,circOut:pi,backIn:He,backInOut:Zr,backOut:mi,anticipate:Jr},bn=t=>{if(Array.isArray(t)){exports.invariant(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return Et(e,n,s,i)}else if(typeof t=="string")return exports.invariant(Sn[t]!==void 0,`Invalid easing type '${t}'`),Sn[t];return t},wt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},w=(t,e,n)=>t+(e-t)*n;function re(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=re(l,a,t+1/3),r=re(l,a,t),o=re(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ut(t,e){return n=>n>0?e:t}const ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ta=[xe,it,lt],ea=t=>ta.find(e=>e.test(t));function Vn(t){const e=ea(t);if(pt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===lt&&(n=Qr(n)),n}const An=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return Ut(t,e);const i={...n};return r=>(i.red=ae(n.red,s.red,r),i.green=ae(n.green,s.green,r),i.blue=ae(n.blue,s.blue,r),i.alpha=w(n.alpha,s.alpha,r),it.transform(i))},Se=new Set(["none","hidden"]);function na(t,e){return Se.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function sa(t,e){return n=>w(t,e,n)}function Ye(t){return typeof t=="number"?sa:typeof t=="string"?Be(t)?Ut:E.test(t)?An:ra:Array.isArray(t)?gi:typeof t=="object"?E.test(t)?An:ia:Ut}function gi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ye(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function ia(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Ye(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function oa(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const ra=(t,e)=>{const n=J.createTransformer(e),s=At(t),i=At(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Se.has(t)&&!i.values.length||Se.has(e)&&!s.values.length?na(t,e):K(gi(oa(s,i),i.values),n):(pt(!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.`),Ut(t,e))};function yi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?w(t,e,n):Ye(t)(t,e)}function aa(t,e,n){const s=[],i=n||yi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||M:e;a=K(l,a)}s.push(a)}return s}function la(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(exports.invariant(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=aa(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const h=wt(t[c],t[c+1],u);return o[c](h)};return n?u=>l(Z(t[0],t[r-1],u)):l}function ua(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=wt(0,e,s);t.push(w(n,1,i))}}function ca(t){const e=[0];return ua(e,t.length-1),e}function ha(t,e){return t.map(n=>n*e)}function fa(t,e){return t.map(()=>e||hi).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Xr(s)?s.map(bn):bn(s),r={done:!1,value:e[0]},o=ha(n&&n.length===e.length?n:ca(e),t),a=la(o,e,{ease:Array.isArray(i)?i:fa(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const wn=2e4;function da(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<wn;)e+=n,s=t.next(e);return e>=wn?1/0:e}const pa=t=>{const e=({timestamp:n})=>t(n);return{start:()=>A.update(e,!0),stop:()=>z(e),now:()=>R.isProcessing?R.timestamp:q.now()}},ma={decay:Pn,inertia:Pn,tween:_t,keyframes:_t,spring:ui},ga=t=>t/100;class Xe extends ri{constructor({KeyframeResolver:e=Ke,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:s,motionValue:i,keyframes:r}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(r,o,s,i):this.resolver=new e(r,o,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=ma[n]||_t;let l,u;a!==_t&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&exports.invariant(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=K(ga,yi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=da(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,S=r;if(d){const V=Math.min(this.currentTime,c)/h;let k=Math.floor(V),O=V%1;!O&&V>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,m&&(O-=m/h)):p==="mirror"&&(S=o)),y=Z(0,1,O)*h}const b=v?{done:!1,value:l[0]}:S.next(y);a&&(b.value=a(b.value));let{done:D}=b;!v&&u!==null&&(D=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return H&&i!==void 0&&(b.value=Jt(l,this.options,i)),x&&x(b.value),H&&this.finish(),b}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}get time(){return G(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=pa,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=s),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const vi=t=>Array.isArray(t)&&typeof t[0]=="number";function xi(t){return!!(!t||typeof t=="string"&&t in qe||vi(t)||Array.isArray(t)&&t.every(xi))}const yt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yt([0,.65,.55,1]),circOut:yt([.55,0,1,.45]),backIn:yt([.31,.01,.66,-.59]),backOut:yt([.33,1.53,.69,.99])};function ya(t){return Ti(t)||qe.easeOut}function Ti(t){if(t)return vi(t)?yt(t):Array.isArray(t)?t.map(ya):qe[t]}function va(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ti(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const xa=oi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Ta=2e4;function Pa(t){return t.type==="spring"||!xi(t.ease)}function Sa(t,e){const n=new Xe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<Ta;)s=n.sample(r),i.push(s.value),r+=Wt;return{times:void 0,keyframes:i,duration:r-Wt,ease:"linear"}}class Cn extends ri{constructor(e){super(e);const{name:n,motionValue:s,keyframes:i}=this.options;this.resolver=new ii(i,(r,o)=>this.onKeyframesResolved(r,o),n,s),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(Pa(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,...p}=this.options,m=Sa(e,p);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const c=va(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return c.startTime=q.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;l.set(Jt(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return G(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return G(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=$(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return M;const{animation:s}=n;s.timeline=e,s.onfinish=null}return M}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,...f}=this.options,d=new Xe({...f,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),p=$(this.time);u.setWithVelocity(d.sample(p-Wt).value,d.sample(p).value,Wt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return xa()&&s&&Os.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}function ba(t,e){let n;const s=()=>{const{currentTime:i}=e,o=(i===null?0:i.value)/100;n!==o&&t(o),n=o};return A.update(s,!0),()=>z(s)}const Va=oi(()=>window.ScrollTimeline!==void 0);class Aa{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>{if(Va()&&s.attachTimeline)s.attachTimeline(e);else return s.pause(),ba(i=>{s.time=s.duration*i},e)});return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Ze=(t,e,n,s={},i,r,o)=>a=>{const l=We(s,t)||{},u=l.delay||s.delay||0;let{elapsed:c=0}=s;c=c-$(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:d=>{e.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),o&&o()},onStop:o,name:t,motionValue:e,element:r?void 0:i};or(l)||(h={...h,...ir(t,h)}),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let f=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(f=!0)),f&&!r&&e.get()!==void 0){const d=Jt(h.keyframes,l);if(d!==void 0)return A.update(()=>{h.onUpdate(d),h.onComplete()}),new Aa([])}return!r&&Cn.supports(h)?new Cn(h):new Xe(h)};class Je{constructor(){this.subscriptions=[]}add(e){return Yt(this.subscriptions,e),()=>Xt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dn=30,wa=t=>!isNaN(parseFloat(t));class Pi{constructor(e,n={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=q.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&X.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Je);const s=this.events[e].add(n);return e==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Dn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dn);return ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ct(t,e){return new Pi(t,e)}function Ca(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ct(n))}function Da(t,e){const n=Zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Bo(r[o]);Ca(t,o,a)}}function Si(t){return t.getProps()[xs]}class Ra extends Pi{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const n=js(e);if(!n)return;const s=this.counts.get(n)||0;this.counts.set(n,s+1),s===0&&(this.output.push(n),this.update());let i=!1;return()=>{if(i)return;i=!0;const r=this.counts.get(n)-1;this.counts.set(n,r),r===0&&(Xt(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Ma(t){return!!(L(t)&&t.add)}function be(t,e){var n;if(!t.applyWillChange)return;let s=t.getValue("willChange");if(!s&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(s=new Ra("auto"),t.addValue("willChange",s)),Ma(s))return s.add(e)}function Ea({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function bi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Ea(c,h))continue;const p={delay:n,elapsed:0,...We(o||{},h)};let m=!1;if(window.HandoffAppearAnimations){const g=Si(t);if(g){const v=window.HandoffAppearAnimations(g,h,f,A);v!==null&&(p.elapsed=v,m=!0)}}f.start(Ze(h,f,d,t.shouldReduceMotion&&Q.has(h)?{type:!1}:p,t,m,be(t,h)));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{A.update(()=>{a&&Da(t,a)})}),u}function Ve(t,e,n={}){var s;const i=Zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(bi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return La(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function La(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Fa).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ve(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Fa(t,e){return t.sortNodePosition(e)}function Ba(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ve(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ve(t,e,n);else{const i=typeof e=="function"?Zt(t,e,n.custom):e;s=Promise.all(bi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ka=[...Me].reverse(),Oa=Me.length;function ja(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ba(t,n,s)))}function Ia(t){let e=ja(t),n=Rn(),s=!0;const i=l=>(u,c)=>{var h;const f=Zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;u={...u,...m,...p}}return u};function r(l){e=l(t)}function o(l){const u=t.getProps(),c=t.getVariantContext(!0)||{},h=[],f=new Set;let d={},p=1/0;for(let x=0;x<Oa;x++){const g=ka[x],v=n[g],y=u[g]!==void 0?u[g]:c[g],S=bt(y),b=g===l?v.isActive:null;b===!1&&(p=x);let D=y===c[g]&&y!==u[g]&&S;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),v.protectedKeys={...d},!v.isActive&&b===null||!y&&!v.prevProp||Vt(y)||typeof y=="boolean")continue;let V=Na(v.prevProp,y)||g===l&&v.isActive&&!D&&S||x>p&&S,k=!1;const O=Array.isArray(y)?y:[y];let rt=O.reduce(i(g),{});b===!1&&(rt={});const{prevResolvedValues:Qe={}}=v,Ki={...Qe,...rt},tn=F=>{V=!0,f.has(F)&&(k=!0,f.delete(F)),v.needsAnimating[F]=!0;const U=t.getValue(F);U&&(U.liveStyle=!1)};for(const F in Ki){const U=rt[F],Qt=Qe[F];if(d.hasOwnProperty(F))continue;let te=!1;me(U)&&me(Qt)?te=!$s(U,Qt):te=U!==Qt,te?U!=null?tn(F):f.add(F):U!==void 0&&f.has(F)?tn(F):v.protectedKeys[F]=!0}v.prevProp=y,v.prevResolvedValues=rt,v.isActive&&(d={...d,...rt}),s&&t.blockInitialAnimation&&(V=!1),V&&(!D||k)&&h.push(...O.map(F=>({animation:F,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const v=t.getBaseTarget(g),y=t.getValue(g);y&&(y.liveStyle=!0),x[g]=v??null}),h.push({animation:x})}let m=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Rn(),s=!0}}}function Na(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!$s(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class Ua extends tt{constructor(e){super(e),e.animationState||(e.animationState=Ia(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Vt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let _a=0;class Wa extends tt{constructor(){super(...arguments),this.id=_a++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ka={animation:{Feature:Ua},exit:{Feature:Wa}},Mn=(t,e)=>Math.abs(t-e);function $a(t,e){const n=Mn(t.x,e.x),s=Mn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Vi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ue(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=$a(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=R;this.history.push({...p,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=le(f,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ue(h.type==="pointercancel"?this.lastMoveEventInfo:le(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,x),p&&p(h,x)},!Ns(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=qt(e),a=le(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=R;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ue(a,this.history)),this.removeListeners=K(W(this.contextWindow,"pointermove",this.handlePointerMove),W(this.contextWindow,"pointerup",this.handlePointerUp),W(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),z(this.updatePoint)}}function le(t,e){return e?{point:e(t.point)}:t}function En(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ue({point:t},e){return{point:t,delta:En(t,Ai(e)),offset:En(t,Ga(e)),velocity:za(e,.1)}}function Ga(t){return t[0]}function Ai(t){return t[t.length-1]}function za(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ai(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=G(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const wi=1e-4,Ha=1-wi,Ya=1+wi,Ci=.01,Xa=0-Ci,qa=0+Ci;function B(t){return t.max-t.min}function Za(t,e,n){return Math.abs(t-e)<=n}function Ln(t,e,n,s=.5){t.origin=s,t.originPoint=w(e.min,e.max,t.origin),t.scale=B(n)/B(e),t.translate=w(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ha&&t.scale<=Ya||isNaN(t.scale))&&(t.scale=1),(t.translate>=Xa&&t.translate<=qa||isNaN(t.translate))&&(t.translate=0)}function Pt(t,e,n,s){Ln(t.x,e.x,n.x,s?s.originX:void 0),Ln(t.y,e.y,n.y,s?s.originY:void 0)}function Fn(t,e,n){t.min=n.min+e.min,t.max=t.min+B(e)}function Ja(t,e,n){Fn(t.x,e.x,n.x),Fn(t.y,e.y,n.y)}function Bn(t,e,n){t.min=e.min-n.min,t.max=t.min+B(e)}function St(t,e,n){Bn(t.x,e.x,n.x),Bn(t.y,e.y,n.y)}function Qa(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?w(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?w(n,t,s.max):Math.min(t,n)),t}function kn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function tl(t,{top:e,left:n,bottom:s,right:i}){return{x:kn(t.x,n,i),y:kn(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function el(t,e){return{x:On(t.x,e.x),y:On(t.y,e.y)}}function nl(t,e){let n=.5;const s=B(t),i=B(e);return i>s?n=wt(e.min,e.max-s,t.min):s>i&&(n=wt(t.min,t.max-i,e.min)),Z(0,1,n)}function sl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ae=.35;function il(t=Ae){return t===!1?t=0:t===!0&&(t=Ae),{x:jn(t,"left","right"),y:jn(t,"top","bottom")}}function jn(t,e,n){return{min:In(t,e),max:In(t,n)}}function In(t,e){return typeof t=="number"?t:t[e]||0}const Nn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:Nn(),y:Nn()}),Un=()=>({min:0,max:0}),C=()=>({x:Un(),y:Un()});function I(t){return[t("x"),t("y")]}function Di({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ol({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ce(t){return t===void 0||t===1}function we({scale:t,scaleX:e,scaleY:n}){return!ce(t)||!ce(e)||!ce(n)}function nt(t){return we(t)||Ri(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ri(t){return _n(t.x)||_n(t.y)}function _n(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Wn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ce(t,e=0,n=1,s,i){t.min=Wn(t.min,e,n,s,i),t.max=Wn(t.max,e,n,s,i)}function Mi(t,{x:e,y:n}){Ce(t.x,e.translate,e.scale,e.originPoint),Ce(t.y,n.translate,n.scale,n.originPoint)}const Kn=.999999999999,$n=1.0000000000001;function al(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ht(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Mi(t,o)),s&&nt(r.latestValues)&&ht(t,r.latestValues))}e.x<$n&&e.x>Kn&&(e.x=1),e.y<$n&&e.y>Kn&&(e.y=1)}function ct(t,e){t.min=t.min+e,t.max=t.max+e}function Gn(t,e,n,s,i=.5){const r=w(t.min,t.max,i);Ce(t,e,n,r,s)}function ht(t,e){Gn(t.x,e.x,e.scaleX,e.scale,e.originX),Gn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ei(t,e){return Di(rl(t.getBoundingClientRect(),e))}function ll(t,e,n){const s=Ei(t,n),{scroll:i}=e;return i&&(ct(s.x,i.offset.x),ct(s.y,i.offset.y)),s}const Li=({current:t})=>t?t.ownerDocument.defaultView:null,ul=new WeakMap;class cl{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qt(c,"page").point)},r=(c,h)=>{var f;const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_s(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(g=>{let v=this.getAxisMotionValue(g).get()||0;if(N.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(v=B(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&A.postRender(()=>m(c,h)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=be(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=h;if(d&&this.currentDirection===null){this.currentDirection=hl(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),m&&m(c,h)},a=(c,h)=>this.stop(c,h),l=()=>I(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Vi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Li(this.visualElement)})}stop(e,n){var s;(s=this.removeWillChange)===null||s===void 0||s.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Qa(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tl(i.layoutBox,n):this.constraints=!1,this.elastic=il(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=sl(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current;exports.invariant(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=ll(s,i.root,this.visualElement.getTransformPagePoint());let o=el(i.layout.layoutBox,r);if(n){const a=n(ol(o));this.hasMutatedConstraints=!!a,a&&(o=Di(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=I(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(Ze(e,s,0,n,this.visualElement,!1,be(this.visualElement,e)))}stopAnimation(){I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){I(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-w(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=nl({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),I(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(w(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;ul.set(this.visualElement,this);const e=this.visualElement.current,n=W(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(s);const o=_(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(I(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ae,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class fl extends tt{constructor(e){super(e),this.removeGroupControls=M,this.removeListeners=M,this.controls=new cl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}unmount(){this.removeGroupControls(),this.removeListeners()}}const zn=t=>(e,n)=>{t&&A.postRender(()=>t(e,n))};class dl extends tt{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(e){this.session=new Vi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Li(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:zn(e),onStart:zn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&A.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=W(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function pl(){const t=P.useContext(Gt);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();P.useEffect(()=>s(i),[]);const r=P.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const gt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Hn(t,e.target.x),s=Hn(t,e.target.y);return`${n}% ${s}%`}},ml={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const r=J.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=w(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}};class gl extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;lo(yl),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||A.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Re.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Fi(t){const[e,n]=pl(),s=P.useContext(Le);return pe.jsxRuntimeExports.jsx(gl,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(Ps),isPresent:e,safeToRemove:n})}const yl={borderRadius:{...gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gt,borderTopRightRadius:gt,borderBottomLeftRadius:gt,borderBottomRightRadius:gt,boxShadow:ml},Bi=["TopLeft","TopRight","BottomLeft","BottomRight"],vl=Bi.length,Yn=t=>typeof t=="string"?parseFloat(t):t,Xn=t=>typeof t=="number"||T.test(t);function xl(t,e,n,s,i,r){i?(t.opacity=w(0,n.opacity!==void 0?n.opacity:1,Tl(s)),t.opacityExit=w(e.opacity!==void 0?e.opacity:1,0,Pl(s))):r&&(t.opacity=w(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<vl;o++){const a=`border${Bi[o]}Radius`;let l=qn(e,a),u=qn(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Xn(l)===Xn(u)?(t[a]=Math.max(w(Yn(l),Yn(u),s),0),(N.test(u)||N.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=w(e.rotate||0,n.rotate||0,s))}function qn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Tl=ki(0,.5,pi),Pl=ki(.5,.95,M);function ki(t,e,n){return s=>s<t?0:s>e?1:n(wt(t,e,s))}function Zn(t,e){t.min=e.min,t.max=e.max}function j(t,e){Zn(t.x,e.x),Zn(t.y,e.y)}function Jn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Qn(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Sl(t,e=0,n=1,s=.5,i,r=t,o=t){if(N.test(e)&&(e=parseFloat(e),e=w(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=w(r.min,r.max,s);t===r&&(a-=e),t.min=Qn(t.min,e,n,a,i),t.max=Qn(t.max,e,n,a,i)}function ts(t,e,[n,s,i],r,o){Sl(t,e[n],e[s],e[i],e.scale,r,o)}const bl=["x","scaleX","originX"],Vl=["y","scaleY","originY"];function es(t,e,n,s){ts(t.x,e,bl,n?n.x:void 0,s?s.x:void 0),ts(t.y,e,Vl,n?n.y:void 0,s?s.y:void 0)}function ns(t){return t.translate===0&&t.scale===1}function Oi(t){return ns(t.x)&&ns(t.y)}function ss(t,e){return t.min===e.min&&t.max===e.max}function Al(t,e){return ss(t.x,e.x)&&ss(t.y,e.y)}function is(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ji(t,e){return is(t.x,e.x)&&is(t.y,e.y)}function os(t){return B(t.x)/B(t.y)}function rs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class wl{constructor(){this.members=[]}add(e){Yt(this.members,e),e.scheduleRender()}remove(e){if(Xt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Cl(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Dl=(t,e)=>t.depth-e.depth;class Rl{constructor(){this.children=[],this.isDirty=!1}add(e){Yt(this.children,e),this.isDirty=!0}remove(e){Xt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Dl),this.isDirty=!1,this.children.forEach(e)}}function Ml(t,e){const n=q.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(z(s),t(r-e))};return A.read(s,!0),()=>z(s)}function El(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ll(t,e,n){const s=L(t)?t:Ct(t);return s.start(Ze("",s,e,n)),s.animation}const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vt=typeof window<"u"&&window.MotionDebug!==void 0,he=["","X","Y","Z"],Fl={visibility:"hidden"},as=1e3;let Bl=0;function fe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ii(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?Si(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?Ii(t.parent):!1:!1}function Ni({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Bl++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vt&&(st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0),this.nodes.forEach(jl),this.nodes.forEach(Wl),this.nodes.forEach(Kl),this.nodes.forEach(Il),vt&&window.MotionDebug.record(st)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rl)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Je),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=El(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Ml(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(us))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Yl,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!ji(this.targetLayout,p)||d,y=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const S={...We(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,z(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($l),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Ii(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ls);return}this.isUpdating||this.nodes.forEach(Ul),this.isUpdating=!1,this.nodes.forEach(_l),this.nodes.forEach(kl),this.nodes.forEach(Ol),this.clearAllSnapshots();const a=q.now();R.delta=Z(0,1e3/60,a-R.timestamp),R.timestamp=a,R.isProcessing=!0,ee.update.process(R),ee.preRender.process(R),ee.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Re.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nl),this.sharedNodes.forEach(Gl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Oi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||nt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Xl(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return C();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ql))){const{scroll:c}=this.root;c&&(ct(l.x,c.offset.x),ct(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=C();if(j(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&j(l,o),ct(l.x,h.offset.x),ct(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=C();j(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ht(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),nt(c.latestValues)&&ht(l,c.latestValues)}return nt(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(o){const a=C();j(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!nt(u.latestValues))continue;we(u.latestValues)&&u.updateSnapshot();const c=C(),h=u.measurePageBox();j(c,h),es(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return nt(this.latestValues)&&es(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),St(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),j(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ja(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):j(this.target,this.layout.layoutBox),Mi(this.target,this.targetDelta)):j(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),St(this.relativeTargetOrigin,this.target,d.target),j(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vt&&st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||we(this.parent.latestValues)||Ri(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===R.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;j(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;al(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=C());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jn(this.prevProjectionDelta.x,this.projectionDelta.x),Jn(this.prevProjectionDelta.y,this.projectionDelta.y)),Pt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),vt&&st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ut(),this.projectionDelta=ut(),this.projectionDeltaWithTransform=ut()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=C(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,x=this.getStack(),g=!x||x.members.length<=1,v=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Hl));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const b=S/1e3;cs(h.x,o.x,b),cs(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(St(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zl(this.relativeTarget,this.relativeTargetOrigin,f,b),y&&Al(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=C()),j(y,this.relativeTarget)),m&&(this.animationValues=c,xl(c,u,this.latestValues,b,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Ll(0,as,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(as),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Ui(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||C();const h=B(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=B(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}j(a,l),ht(a,c),Pt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wl),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&fe("z",o,u,this.animationValues);for(let c=0;c<he.length;c++)fe(`rotate${he[c]}`,o,u,this.animationValues),fe(`skew${he[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fl;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=kt(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=kt(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Cl(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:p}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in It){if(f[m]===void 0)continue;const{correct:x,applyTo:g}=It[m],v=u.transform==="none"?f[m]:x(f[m],h);if(g){const y=g.length;for(let S=0;S<y;S++)u[g[S]]=v}else u[m]=v}return this.options.layoutId&&(u.pointerEvents=h===this?kt(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ls),this.root.sharedNodes.clear()}}}function kl(t){t.updateLayout()}function Ol(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?I(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(f);f.min=s[h].min,f.max=f.min+d}):Ui(r,n.layoutBox,s)&&I(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ut();Pt(a,s,n.layoutBox);const l=ut();o?Pt(l,t.applyTransform(i,!0),n.measuredBox):Pt(l,s,n.layoutBox);const u=!Oi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=C();St(p,n.layoutBox,f.layoutBox);const m=C();St(m,s,d.layoutBox),ji(p,m)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function jl(t){vt&&st.totalNodes++,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 Il(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Nl(t){t.clearSnapshot()}function ls(t){t.clearMeasurements()}function Ul(t){t.isLayoutDirty=!1}function _l(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wl(t){t.resolveTargetDelta()}function Kl(t){t.calcProjection()}function $l(t){t.resetSkewAndRotation()}function Gl(t){t.removeLeadSnapshot()}function cs(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function hs(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function zl(t,e,n,s){hs(t.x,e.x,n.x,s),hs(t.y,e.y,n.y,s)}function Hl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Yl={duration:.45,ease:[.4,0,.1,1]},fs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ds=fs("applewebkit/")&&!fs("chrome/")?Math.round:M;function ps(t){t.min=ds(t.min),t.max=ds(t.max)}function Xl(t){ps(t.x),ps(t.y)}function Ui(t,e,n){return t==="position"||t==="preserve-aspect"&&!Za(os(e),os(n),.2)}function ql(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Zl=Ni({attachResizeListener:(t,e)=>_(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),de={current:void 0},_i=Ni({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!de.current){const t=new Zl({});t.mount(window),t.setOptions({layoutScroll:!0}),de.current=t}return de.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Jl={pan:{Feature:dl},drag:{Feature:fl,ProjectionNode:_i,MeasureLayout:Fi}};function Ql(t,e,n){for(const s in e){const i=e[s],r=n[s];if(L(i))t.addValue(s,i),process.env.NODE_ENV==="development"&&X.warnOnce(i.version==="11.3.19",`Attempting to mix Framer Motion versions ${i.version} with 11.3.19 may not work as expected.`);else if(L(r))t.addValue(s,Ct(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Ct(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ms=new WeakMap,tu=[...Xs,E,J],eu=t=>tu.find(Ys(t)),gs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nu=Ee.length;class su{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,d,p,m)=>new this.KeyframeResolver(f,d,p,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ke,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,A.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ht(n),this.isVariantNode=bs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&L(d)&&d.set(l[f],!1)}}mount(e){this.current=e,ms.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),X.hasReducedMotionListener.current||X.initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:X.prefersReducedMotion.current,process.env.NODE_ENV!=="production"&&X.warnOnce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ms.delete(this.current),this.projection&&this.projection.unmount(),z(this.notifyUpdate),z(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const s=Q.has(e),i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&A.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ft){const n=ft[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<gs.length;s++){const i=gs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ql(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<nu;s++){const i=Ee[s],r=this.props[i];(bt(r)||r===!1)&&(n[i]=r)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Ct(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(zs(i)||Gs(i))?i=parseFloat(i):!eu(i)&&J.test(n)&&(i=si(e,n)),this.setBaseTarget(e,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=_e(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!L(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Je),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Wi extends su{constructor(){super(...arguments),this.KeyframeResolver=ii}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function iu(t){return window.getComputedStyle(t)}class ou extends Wi{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Es}readValueFromInstance(e,n){if(Q.has(n)){const s=Ge(n);return s&&s.default||0}else{const s=iu(e),i=(ws(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ei(e,n)}build(e,n,s){Oe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ue(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;L(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ru extends Wi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const s=Ge(n);return s&&s.default||0}return n=Ls.has(n)?n:zt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Bs(e,n,s)}build(e,n,s){Ie(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){Fs(e,n,s,i)}mount(e){this.isSVGTag=Ne(e.tagName),super.mount(e)}}const au=(t,e)=>Fe(t)?new ru(e):new ou(e,{allowProjection:t!==P.Fragment}),lu={layout:{ProjectionNode:_i,MeasureLayout:Fi}},uu={...Ka,...Qo,...Jl,...lu},cu=ro((t,e)=>Uo(t,e,uu,au));exports.LayoutGroupContext=Le;exports.MotionConfigContext=De;exports.PresenceContext=Gt;exports.motion=cu;exports.useConstant=ks;exports.useIsomorphicLayoutEffect=ys;
2
- //# sourceMappingURL=motion-dae3950e.cjs.map
1
+ "use strict";const pe=require("./jsx-runtime-Cek9Ww4S.cjs"),P=require("react"),X=require("./use-reduced-motion-CbCiX8I1.cjs"),De=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$t=P.createContext({}),Gt=P.createContext(null),ys=X.isBrowser?P.useLayoutEffect:P.useEffect,vs=P.createContext({strict:!1}),zt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$i="framerAppearId",xs="data-"+zt($i),Gi={skipAnimations:!1,useManualTiming:!1};function zi(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],Hi=40;function Ts(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((g,v)=>(g[v]=zi(r),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,Hi),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((g,v)=>{const y=o[v];return g[v]=(S,b=!1,D=!1)=>(n||p(),y.schedule(S,b,D)),g},{}),cancel:g=>{for(let v=0;v<Lt.length;v++)o[Lt[v]].cancel(g)},state:i,steps:o}}const{schedule:Re,cancel:hu}=Ts(queueMicrotask,!1);function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Ps=P.createContext({});let en=!1;function Yi(t,e,n,s,i){const{visualElement:r}=P.useContext($t),o=P.useContext(vs),a=P.useContext(Gt),l=P.useContext(De).reducedMotion,u=P.useRef();s=s||o.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=P.useContext(Ps);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&qi(u.current,n,i,h),P.useInsertionEffect(()=>{c&&c.update(n,a)});const f=P.useRef(!!(n[xs]&&!window.HandoffComplete));return ys(()=>{c&&(c.updateFeatures(),Re.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,en||(en=!0,queueMicrotask(Xi))))}),c}function Xi(){window.HandoffComplete=!0}function qi(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ss(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&at(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ss(t){if(t)return t.options.allowProjection!==!1?t.projection:Ss(t.parent)}function Zi(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}function bt(t){return typeof t=="string"||Array.isArray(t)}function Vt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Me];function Ht(t){return Vt(t.animate)||Ee.some(e=>bt(t[e]))}function bs(t){return!!(Ht(t)||t.variants)}function Ji(t,e){if(Ht(t)){const{initial:n,animate:s}=t;return{initial:n===!1||bt(n)?n:void 0,animate:bt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Qi(t){const{initial:e,animate:n}=Ji(t,P.useContext($t));return P.useMemo(()=>({initial:e,animate:n}),[nn(e),nn(n)])}function nn(t){return Array.isArray(t)?t.join(" "):t}const sn={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"]},ft={};for(const t in sn)ft[t]={isEnabled:e=>sn[t].some(n=>!!e[n])};function to(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Le=P.createContext({}),eo=Symbol.for("motionComponentSymbol"),M=t=>t;let pt=M;exports.invariant=M;process.env.NODE_ENV!=="production"&&(pt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},exports.invariant=(t,e)=>{if(!t)throw new Error(e)});function no({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&to(t);function r(a,l){let u;const c={...P.useContext(De),...a,layoutId:so(a)},{isStatic:h}=c,f=Qi(a),d=s(a,h);if(!h&&X.isBrowser){io(c,t);const p=oo(c);u=p.MeasureLayout,f.visualElement=Yi(i,d,c,e,p.ProjectionNode)}return pe.jsxRuntimeExports.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?pe.jsxRuntimeExports.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Zi(d,f.visualElement,l),d,h,f.visualElement)]})}const o=P.forwardRef(r);return o[eo]=i,o}function so({layoutId:t}){const e=P.useContext(Le).id;return e&&t!==void 0?e+"-"+t:t}function io(t,e){const n=P.useContext(vs).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?pt(!1,s):exports.invariant(!1,s)}}function oo(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ro(t){function e(s,i={}){return no(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ao=["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 Fe(t){return typeof t!="string"||t.includes("-")?!1:!!(ao.indexOf(t)>-1||/[A-Z]/u.test(t))}const It={};function lo(t){Object.assign(It,t)}const Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set(Dt);function Vs(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!It[t]||t==="opacity")}const L=t=>!!(t&&t.getVelocity),uo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},co=Dt.length;function ho(t,e,n){let s="";for(let i=0;i<co;i++){const r=Dt[i];if(t[r]!==void 0){const o=uo[r]||r;s+=`${o}(${t[r]}) `}}return s=s.trim(),n?s=n(t,e?"":s):e&&(s="none"),s}const As=t=>e=>typeof e=="string"&&e.startsWith(t),ws=As("--"),fo=As("var(--"),Be=t=>fo(t)?po.test(t.split("/*")[0].trim()):!1,po=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Z=(t,e,n)=>n>e?e:n<t?t:n,mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},xt={...mt,transform:t=>Z(0,1,t)},Ft={...mt,default:1},Tt=t=>Math.round(t*1e5)/1e5,ke=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,go=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,yo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Rt(t){return typeof t=="string"}function vo(t){return t==null}const Mt=t=>({test:e=>Rt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y=Mt("deg"),N=Mt("%"),T=Mt("px"),xo=Mt("vh"),To=Mt("vw"),on={...N,parse:t=>N.parse(t)/100,transform:t=>N.transform(t*100)},rn={...mt,transform:Math.round},Cs={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,size:T,top:T,right:T,bottom:T,left:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:Y,skewX:Y,skewY:Y,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:xt,originX:on,originY:on,originZ:T,zIndex:rn,backgroundPositionX:T,backgroundPositionY:T,fillOpacity:xt,strokeOpacity:xt,numOctaves:rn};function Oe(t,e,n){const{style:s,vars:i,transform:r,transformOrigin:o}=t;let a=!1,l=!1,u=!0;for(const c in e){const h=e[c];if(ws(c)){i[c]=h;continue}const f=Cs[c],d=mo(h,f);if(Q.has(c)){if(a=!0,r[c]=d,!u)continue;h!==(f.default||0)&&(u=!1)}else c.startsWith("origin")?(l=!0,o[c]=d):s[c]=d}if(e.transform||(a||n?s.transform=ho(t.transform,u,n):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:h="50%",originZ:f=0}=o;s.transformOrigin=`${c} ${h} ${f}`}}const je=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ds(t,e,n){for(const s in e)!L(e[s])&&!Vs(s,n)&&(t[s]=e[s])}function Po({transformTemplate:t},e){return P.useMemo(()=>{const n=je();return Oe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function So(t,e){const n=t.style||{},s={};return Ds(s,n,t),Object.assign(s,Po(t,e)),s}function bo(t,e){const n={},s=So(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Vo=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","ignoreStrict","viewport"]);function Nt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Vo.has(t)}let Rs=t=>!Nt(t);function Ao(t){t&&(Rs=e=>e.startsWith("on")?!Nt(e):t(e))}try{Ao(require("@emotion/is-prop-valid").default)}catch{}function wo(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Rs(i)||n===!0&&Nt(i)||!e&&!Nt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function an(t,e,n){return typeof t=="string"?t:T.transform(e+n*t)}function Co(t,e,n){const s=an(e,t.x,t.width),i=an(n,t.y,t.height);return`${s} ${i}`}const Do={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ro={offset:"strokeDashoffset",array:"strokeDasharray"};function Mo(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Do:Ro;t[r.offset]=T.transform(-s);const o=T.transform(e),a=T.transform(n);t[r.array]=`${o} ${a}`}function Ie(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Oe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||r!==void 0||d.transform)&&(d.transformOrigin=Co(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&Mo(f,o,a,l,!1)}const Ms=()=>({...je(),attrs:{}}),Ne=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Eo(t,e,n,s){const i=P.useMemo(()=>{const r=Ms();return Ie(r,e,Ne(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ds(r,t.style,t),i.style={...r,...i.style}}return i}function Lo(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Fe(n)?Eo:bo)(s,r,o,n),u=wo(s,typeof n=="string",t),c=n!==P.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>L(h)?h.get():h,[h]);return P.createElement(n,{...c,children:f})}}function Es(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ls=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"]);function Fs(t,e,n,s){Es(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ls.has(i)?i:zt(i),e.attrs[i])}function Ue(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(L(i[o])||e.style&&L(e.style[o])||Vs(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),r}function Bs(t,e,n){const s=Ue(t,e,n);for(const i in t)if(L(t[i])||L(e[i])){const r=Dt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function ln(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function _e(t,e,n,s){if(typeof e=="function"){const[i,r]=ln(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=ln(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function ks(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const me=t=>Array.isArray(t),Fo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Bo=t=>me(t)?t[t.length-1]||0:t;function kt(t){const e=L(t)?t.get():t;return Fo(e)?e.toValue():e}const Os=new Set(["opacity","clipPath","filter","transform"]);function js(t){if(Q.has(t))return"transform";if(Os.has(t))return zt(t)}function Yt(t,e){t.indexOf(e)===-1&&t.push(e)}function Xt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ko({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:s},i,r,o,a){const l={latestValues:jo(i,r,o,a?!1:t,e),renderState:n()};return s&&(l.mount=u=>s(i,u,l)),l}const Is=t=>(e,n)=>{const s=P.useContext($t),i=P.useContext(Gt),r=()=>ko(t,e,s,i,n);return n?r():ks(r)};function Oo(t,e){const n=js(e);n&&Yt(t,n)}function un(t,e,n){const s=Array.isArray(e)?e:[e];for(let i=0;i<s.length;i++){const r=_e(t,s[i]);if(r){const{transitionEnd:o,transition:a,...l}=r;n(l,o)}}}function jo(t,e,n,s,i){var r;const o={},a=[],l=s&&((r=t.style)===null||r===void 0?void 0:r.willChange)===void 0,u=i(t,{});for(const x in u)o[x]=kt(u[x]);let{initial:c,animate:h}=t;const f=Ht(t),d=bs(t);e&&d&&!f&&t.inherit!==!1&&(c===void 0&&(c=e.initial),h===void 0&&(h=e.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const m=p?h:c;return m&&typeof m!="boolean"&&!Vt(m)&&un(t,m,(x,g)=>{for(const v in x){let y=x[v];if(Array.isArray(y)){const S=p?y.length-1:0;y=y[S]}y!==null&&(o[v]=y)}for(const v in g)o[v]=g[v]}),l&&(h&&c!==!1&&!Vt(h)&&un(t,h,x=>{for(const g in x)Oo(a,g)}),a.length&&(o.willChange=a.join(","))),o}const{schedule:A,cancel:z,state:R,steps:ee}=Ts(typeof requestAnimationFrame<"u"?requestAnimationFrame:M,!0),Io={useVisualState:Is({scrapeMotionValuesFromProps:Bs,createRenderState:Ms,onMount:(t,e,{renderState:n,latestValues:s})=>{A.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),A.render(()=>{Ie(n,s,Ne(e.tagName),t.transformTemplate),Fs(e,n)})}})},No={useVisualState:Is({applyWillChange:!0,scrapeMotionValuesFromProps:Ue,createRenderState:je})};function Uo(t,{forwardMotionProps:e=!1},n,s){return{...Fe(t)?Io:No,preloadedFeatures:n,useRender:Lo(e),createVisualElement:s,Component:t}}function _(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Ns=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function qt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const _o=t=>e=>Ns(e)&&t(e,qt(e));function W(t,e,n,s){return _(t,e,_o(n),s)}const Wo=(t,e)=>n=>e(t(n)),K=(...t)=>t.reduce(Wo);function Us(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const cn=Us("dragHorizontal"),hn=Us("dragVertical");function _s(t){let e=!1;if(t==="y")e=hn();else if(t==="x")e=cn();else{const n=cn(),s=hn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Ws(){const t=_s(!0);return t?(t(),!1):!0}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function fn(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(r,o)=>{if(r.pointerType==="touch"||Ws())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&A.postRender(()=>l(r,o))};return W(t.current,n,i,{passive:!t.getProps()[s]})}class Ko extends tt{mount(){this.unmount=K(fn(this.node,!0),fn(this.node,!1))}unmount(){}}class $o extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=K(_(this.node.current,"focus",()=>this.onFocus()),_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ks=(t,e)=>e?t===e?!0:Ks(t,e.parentElement):!1;function ne(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,qt(n))}class Go extends tt{constructor(){super(...arguments),this.removeStartListeners=M,this.removeEndListeners=M,this.removeAccessibleListeners=M,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=W(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!Ks(this.node.current,a.target)?c:u;f&&A.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),o=W(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=K(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||ne("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&A.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_(this.node.current,"keyup",o),ne("down",(a,l)=>{this.startPress(a,l)})},n=_(this.node.current,"keydown",e),s=()=>{this.isPressing&&ne("cancel",(r,o)=>this.cancelPress(r,o))},i=_(this.node.current,"blur",s);this.removeAccessibleListeners=K(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&A.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ws()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&A.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=W(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=_(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=K(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ge=new WeakMap,se=new WeakMap,zo=t=>{const e=ge.get(t.target);e&&e(t)},Ho=t=>{t.forEach(zo)};function Yo({root:t,...e}){const n=t||document;se.has(n)||se.set(n,{});const s=se.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ho,{root:t,...e})),s[i]}function Xo(t,e,n){const s=Yo(e);return ge.set(t,n),s.observe(t),()=>{ge.delete(t),s.unobserve(t)}}const qo={some:0,all:1};class Zo extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:qo[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Xo(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Jo(e,n))&&this.startObserver()}unmount(){}}function Jo({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Qo={inView:{Feature:Zo},tap:{Feature:Go},focus:{Feature:$o},hover:{Feature:Ko}};function $s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Zt(t,e,n){const s=t.getProps();return _e(s,e,n!==void 0?n:s.custom,t)}const $=t=>t*1e3,G=t=>t/1e3,tr={type:"spring",stiffness:500,damping:25,restSpeed:10},er=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nr={type:"keyframes",duration:.8},sr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ir=(t,{keyframes:e})=>e.length>2?nr:Q.has(t)?t.startsWith("scale")?er(e[1]):tr:sr;function or({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function We(t,e){return t[e]||t.default||t}const rr=t=>t!==null;function Jt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(rr),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}let Ot;function ar(){Ot=void 0}const q={now:()=>(Ot===void 0&&q.set(R.isProcessing||Gi.useManualTiming?R.timestamp:performance.now()),Ot),set:t=>{Ot=t,queueMicrotask(ar)}},Gs=t=>/^0[^.\s]+$/u.test(t);function lr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gs(t):!0}const zs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ur=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cr(t){const e=ur.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const hr=4;function Hs(t,e,n=1){exports.invariant(n<=hr,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=cr(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return zs(o)?parseFloat(o):o}return Be(i)?Hs(i,e,n+1):i}const fr=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dn=t=>t===mt||t===T,pn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return pn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?pn(r[1],t):0}},dr=new Set(["x","y","z"]),pr=Dt.filter(t=>!dr.has(t));function mr(t){const e=[];return pr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const dt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:mn(4,13),y:mn(5,14)};dt.translateX=dt.x;dt.translateY=dt.y;const Ys=t=>e=>e.test(t),gr={test:t=>t==="auto",parse:t=>t},Xs=[mt,T,N,Y,To,xo,gr],gn=t=>Xs.find(Ys(t)),ot=new Set;let ye=!1,ve=!1;function qs(){if(ve){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=mr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ve=!1,ye=!1,ot.forEach(t=>t.complete()),ot.clear()}function Zs(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ve=!0)})}function yr(){Zs(),qs()}class Ke{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ot.add(this),ye||(ye=!0,A.read(Zs),A.resolveKeyframes(qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ot.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ot.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $e=(t,e)=>n=>!!(Rt(n)&&yo.test(n)&&n.startsWith(t)||e&&!vo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Js=(t,e,n)=>s=>{if(!Rt(s))return s;const[i,r,o,a]=s.match(ke);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},vr=t=>Z(0,255,t),ie={...mt,transform:t=>Math.round(vr(t))},it={test:$e("rgb","red"),parse:Js("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ie.transform(t)+", "+ie.transform(e)+", "+ie.transform(n)+", "+Tt(xt.transform(s))+")"};function xr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const xe={test:$e("#"),parse:xr,transform:it.transform},lt={test:$e("hsl","hue"),parse:Js("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+N.transform(Tt(e))+", "+N.transform(Tt(n))+", "+Tt(xt.transform(s))+")"},E={test:t=>it.test(t)||xe.test(t)||lt.test(t),parse:t=>it.test(t)?it.parse(t):lt.test(t)?lt.parse(t):xe.parse(t),transform:t=>Rt(t)?t:t.hasOwnProperty("red")?it.transform(t):lt.transform(t)};function Tr(t){var e,n;return isNaN(t)&&Rt(t)&&(((e=t.match(ke))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(go))===null||n===void 0?void 0:n.length)||0)>0}const Qs="number",ti="color",Pr="var",Sr="var(",yn="${}",br=/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 At(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(br,l=>(E.test(l)?(s.color.push(r),i.push(ti),n.push(E.parse(l))):l.startsWith(Sr)?(s.var.push(r),i.push(Pr),n.push(l)):(s.number.push(r),i.push(Qs),n.push(parseFloat(l))),++r,yn)).split(yn);return{values:n,split:a,indexes:s,types:i}}function ei(t){return At(t).values}function ni(t){const{split:e,types:n}=At(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Qs?r+=Tt(i[o]):a===ti?r+=E.transform(i[o]):r+=i[o]}return r}}const Vr=t=>typeof t=="number"?0:t;function Ar(t){const e=ei(t);return ni(t)(e.map(Vr))}const J={test:Tr,parse:ei,createTransformer:ni,getAnimatableNone:Ar},wr=new Set(["brightness","contrast","saturate","opacity"]);function Cr(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ke)||[];if(!s)return t;const i=n.replace(s,"");let r=wr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Dr=/\b([a-z-]*)\(.*?\)/gu,Te={...J,getAnimatableNone:t=>{const e=t.match(Dr);return e?e.map(Cr).join(" "):t}},Rr={...Cs,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Te,WebkitFilter:Te},Ge=t=>Rr[t];function si(t,e){let n=Ge(t);return n!==Te&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Mr=new Set(["auto","none","0"]);function Er(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Mr.has(r)&&At(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=si(n,i)}class ii extends Ke{constructor(e,n,s,i){super(e,n,s,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Be(u))){const c=Hs(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!fr.has(s)||e.length!==2)return;const[i,r]=e,o=gn(i),a=gn(r);if(o!==a)if(dn(o)&&dn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)lr(e[i])&&s.push(i);s.length&&Er(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=dt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function oi(t){let e;return()=>(e===void 0&&(e=t()),e)}const vn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Lr(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Fr(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=vn(i,e),a=vn(r,e);return pt(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:Lr(t)||n==="spring"&&s}class ri{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&yr(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Fr(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Jt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ai(t,e){return e?t*(1e3/e):0}const Br=5;function li(t,e,n){const s=Math.max(e-Br,0);return ai(n-t(s),e-s)}const oe=.001,kr=.01,xn=10,Or=.05,jr=1;function Ir({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r;pt(t<=$(xn),"Spring duration must be 10 seconds or less");let o=1-e;o=Z(Or,jr,o),t=Z(kr,xn,G(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Pe(u,o),p=Math.exp(-h);return oe-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Pe(Math.pow(u,2),o);return(-i(u)+oe>0?-1:1)*((f-d)*p)/m}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-oe+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Ur(i,r,a);if(t=$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Nr=12;function Ur(t,e,n){let s=n;for(let i=1;i<Nr;i++)s=s-t(s)/e(s);return s}function Pe(t,e){return t*Math.sqrt(1-e*e)}const _r=["duration","bounce"],Wr=["stiffness","damping","mass"];function Tn(t,e){return e.some(n=>t[n]!==void 0)}function Kr(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Tn(t,Wr)&&Tn(t,_r)){const n=Ir(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function ui({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:f}=Kr({...s,velocity:-G(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),m=r-i,x=G(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),e||(e=g?.005:.5);let v;if(p<1){const y=Pe(x,p);v=S=>{const b=Math.exp(-p*x*S);return r-b*((d+p*x*m)/y*Math.sin(y*S)+m*Math.cos(y*S))}}else if(p===1)v=y=>r-Math.exp(-x*y)*(m+(d+x*m)*y);else{const y=x*Math.sqrt(p*p-1);v=S=>{const b=Math.exp(-p*x*S),D=Math.min(y*S,300);return r-b*((d+p*x*m)*Math.sinh(D)+y*m*Math.cosh(D))/y}}return{calculatedDuration:f&&c||null,next:y=>{const S=v(y);if(f)o.done=y>=c;else{let b=d;y!==0&&(p<1?b=li(v,y,S):b=0);const D=Math.abs(b)<=n,H=Math.abs(r-S)<=e;o.done=D&&H}return o.value=o.done?r:S,o}}}function Pn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,p=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let m=n*e;const x=h+m,g=o===void 0?x:o(x);g!==x&&(m=g-h);const v=V=>-m*Math.exp(-V/s),y=V=>g+v(V),S=V=>{const k=v(V),O=y(V);f.done=Math.abs(k)<=u,f.value=f.done?g:O};let b,D;const H=V=>{d(f.value)&&(b=V,D=ui({keyframes:[f.value,p(f.value)],velocity:li(y,V,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return H(0),{calculatedDuration:null,next:V=>{let k=!1;return!D&&b===void 0&&(k=!0,S(V),H(V)),b!==void 0&&V>=b?D.next(V-b):(!k&&S(V),f)}}}const ci=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$r=1e-7,Gr=12;function zr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ci(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>$r&&++a<Gr);return o}function Et(t,e,n,s){if(t===e&&n===s)return M;const i=r=>zr(r,0,1,t,n);return r=>r===0||r===1?r:ci(i(r),e,s)}const Hr=Et(.42,0,1,1),Yr=Et(0,0,.58,1),hi=Et(.42,0,.58,1),Xr=t=>Array.isArray(t)&&typeof t[0]!="number",fi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,di=t=>e=>1-t(1-e),ze=t=>1-Math.sin(Math.acos(t)),pi=di(ze),qr=fi(ze),mi=Et(.33,1.53,.69,.99),He=di(mi),Zr=fi(He),Jr=t=>(t*=2)<1?.5*He(t):.5*(2-Math.pow(2,-10*(t-1))),Sn={linear:M,easeIn:Hr,easeInOut:hi,easeOut:Yr,circIn:ze,circInOut:qr,circOut:pi,backIn:He,backInOut:Zr,backOut:mi,anticipate:Jr},bn=t=>{if(Array.isArray(t)){exports.invariant(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return Et(e,n,s,i)}else if(typeof t=="string")return exports.invariant(Sn[t]!==void 0,`Invalid easing type '${t}'`),Sn[t];return t},wt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},w=(t,e,n)=>t+(e-t)*n;function re(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=re(l,a,t+1/3),r=re(l,a,t),o=re(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ut(t,e){return n=>n>0?e:t}const ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ta=[xe,it,lt],ea=t=>ta.find(e=>e.test(t));function Vn(t){const e=ea(t);if(pt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===lt&&(n=Qr(n)),n}const An=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return Ut(t,e);const i={...n};return r=>(i.red=ae(n.red,s.red,r),i.green=ae(n.green,s.green,r),i.blue=ae(n.blue,s.blue,r),i.alpha=w(n.alpha,s.alpha,r),it.transform(i))},Se=new Set(["none","hidden"]);function na(t,e){return Se.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function sa(t,e){return n=>w(t,e,n)}function Ye(t){return typeof t=="number"?sa:typeof t=="string"?Be(t)?Ut:E.test(t)?An:ra:Array.isArray(t)?gi:typeof t=="object"?E.test(t)?An:ia:Ut}function gi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ye(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function ia(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Ye(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function oa(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const ra=(t,e)=>{const n=J.createTransformer(e),s=At(t),i=At(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Se.has(t)&&!i.values.length||Se.has(e)&&!s.values.length?na(t,e):K(gi(oa(s,i),i.values),n):(pt(!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.`),Ut(t,e))};function yi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?w(t,e,n):Ye(t)(t,e)}function aa(t,e,n){const s=[],i=n||yi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||M:e;a=K(l,a)}s.push(a)}return s}function la(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(exports.invariant(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=aa(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const h=wt(t[c],t[c+1],u);return o[c](h)};return n?u=>l(Z(t[0],t[r-1],u)):l}function ua(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=wt(0,e,s);t.push(w(n,1,i))}}function ca(t){const e=[0];return ua(e,t.length-1),e}function ha(t,e){return t.map(n=>n*e)}function fa(t,e){return t.map(()=>e||hi).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Xr(s)?s.map(bn):bn(s),r={done:!1,value:e[0]},o=ha(n&&n.length===e.length?n:ca(e),t),a=la(o,e,{ease:Array.isArray(i)?i:fa(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const wn=2e4;function da(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<wn;)e+=n,s=t.next(e);return e>=wn?1/0:e}const pa=t=>{const e=({timestamp:n})=>t(n);return{start:()=>A.update(e,!0),stop:()=>z(e),now:()=>R.isProcessing?R.timestamp:q.now()}},ma={decay:Pn,inertia:Pn,tween:_t,keyframes:_t,spring:ui},ga=t=>t/100;class Xe extends ri{constructor({KeyframeResolver:e=Ke,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:s,motionValue:i,keyframes:r}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(r,o,s,i):this.resolver=new e(r,o,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=ma[n]||_t;let l,u;a!==_t&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&exports.invariant(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=K(ga,yi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=da(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,S=r;if(d){const V=Math.min(this.currentTime,c)/h;let k=Math.floor(V),O=V%1;!O&&V>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,m&&(O-=m/h)):p==="mirror"&&(S=o)),y=Z(0,1,O)*h}const b=v?{done:!1,value:l[0]}:S.next(y);a&&(b.value=a(b.value));let{done:D}=b;!v&&u!==null&&(D=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return H&&i!==void 0&&(b.value=Jt(l,this.options,i)),x&&x(b.value),H&&this.finish(),b}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}get time(){return G(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=pa,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=s),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const vi=t=>Array.isArray(t)&&typeof t[0]=="number";function xi(t){return!!(!t||typeof t=="string"&&t in qe||vi(t)||Array.isArray(t)&&t.every(xi))}const yt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yt([0,.65,.55,1]),circOut:yt([.55,0,1,.45]),backIn:yt([.31,.01,.66,-.59]),backOut:yt([.33,1.53,.69,.99])};function ya(t){return Ti(t)||qe.easeOut}function Ti(t){if(t)return vi(t)?yt(t):Array.isArray(t)?t.map(ya):qe[t]}function va(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ti(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const xa=oi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Ta=2e4;function Pa(t){return t.type==="spring"||!xi(t.ease)}function Sa(t,e){const n=new Xe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<Ta;)s=n.sample(r),i.push(s.value),r+=Wt;return{times:void 0,keyframes:i,duration:r-Wt,ease:"linear"}}class Cn extends ri{constructor(e){super(e);const{name:n,motionValue:s,keyframes:i}=this.options;this.resolver=new ii(i,(r,o)=>this.onKeyframesResolved(r,o),n,s),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(Pa(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,...p}=this.options,m=Sa(e,p);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const c=va(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return c.startTime=q.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;l.set(Jt(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return G(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return G(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=$(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return M;const{animation:s}=n;s.timeline=e,s.onfinish=null}return M}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,...f}=this.options,d=new Xe({...f,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),p=$(this.time);u.setWithVelocity(d.sample(p-Wt).value,d.sample(p).value,Wt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return xa()&&s&&Os.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}function ba(t,e){let n;const s=()=>{const{currentTime:i}=e,o=(i===null?0:i.value)/100;n!==o&&t(o),n=o};return A.update(s,!0),()=>z(s)}const Va=oi(()=>window.ScrollTimeline!==void 0);class Aa{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>{if(Va()&&s.attachTimeline)s.attachTimeline(e);else return s.pause(),ba(i=>{s.time=s.duration*i},e)});return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Ze=(t,e,n,s={},i,r,o)=>a=>{const l=We(s,t)||{},u=l.delay||s.delay||0;let{elapsed:c=0}=s;c=c-$(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:d=>{e.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),o&&o()},onStop:o,name:t,motionValue:e,element:r?void 0:i};or(l)||(h={...h,...ir(t,h)}),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let f=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(f=!0)),f&&!r&&e.get()!==void 0){const d=Jt(h.keyframes,l);if(d!==void 0)return A.update(()=>{h.onUpdate(d),h.onComplete()}),new Aa([])}return!r&&Cn.supports(h)?new Cn(h):new Xe(h)};class Je{constructor(){this.subscriptions=[]}add(e){return Yt(this.subscriptions,e),()=>Xt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dn=30,wa=t=>!isNaN(parseFloat(t));class Pi{constructor(e,n={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=q.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&X.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Je);const s=this.events[e].add(n);return e==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Dn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dn);return ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ct(t,e){return new Pi(t,e)}function Ca(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ct(n))}function Da(t,e){const n=Zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Bo(r[o]);Ca(t,o,a)}}function Si(t){return t.getProps()[xs]}class Ra extends Pi{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const n=js(e);if(!n)return;const s=this.counts.get(n)||0;this.counts.set(n,s+1),s===0&&(this.output.push(n),this.update());let i=!1;return()=>{if(i)return;i=!0;const r=this.counts.get(n)-1;this.counts.set(n,r),r===0&&(Xt(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Ma(t){return!!(L(t)&&t.add)}function be(t,e){var n;if(!t.applyWillChange)return;let s=t.getValue("willChange");if(!s&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(s=new Ra("auto"),t.addValue("willChange",s)),Ma(s))return s.add(e)}function Ea({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function bi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Ea(c,h))continue;const p={delay:n,elapsed:0,...We(o||{},h)};let m=!1;if(window.HandoffAppearAnimations){const g=Si(t);if(g){const v=window.HandoffAppearAnimations(g,h,f,A);v!==null&&(p.elapsed=v,m=!0)}}f.start(Ze(h,f,d,t.shouldReduceMotion&&Q.has(h)?{type:!1}:p,t,m,be(t,h)));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{A.update(()=>{a&&Da(t,a)})}),u}function Ve(t,e,n={}){var s;const i=Zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(bi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return La(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function La(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Fa).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ve(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Fa(t,e){return t.sortNodePosition(e)}function Ba(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ve(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ve(t,e,n);else{const i=typeof e=="function"?Zt(t,e,n.custom):e;s=Promise.all(bi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ka=[...Me].reverse(),Oa=Me.length;function ja(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ba(t,n,s)))}function Ia(t){let e=ja(t),n=Rn(),s=!0;const i=l=>(u,c)=>{var h;const f=Zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;u={...u,...m,...p}}return u};function r(l){e=l(t)}function o(l){const u=t.getProps(),c=t.getVariantContext(!0)||{},h=[],f=new Set;let d={},p=1/0;for(let x=0;x<Oa;x++){const g=ka[x],v=n[g],y=u[g]!==void 0?u[g]:c[g],S=bt(y),b=g===l?v.isActive:null;b===!1&&(p=x);let D=y===c[g]&&y!==u[g]&&S;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),v.protectedKeys={...d},!v.isActive&&b===null||!y&&!v.prevProp||Vt(y)||typeof y=="boolean")continue;let V=Na(v.prevProp,y)||g===l&&v.isActive&&!D&&S||x>p&&S,k=!1;const O=Array.isArray(y)?y:[y];let rt=O.reduce(i(g),{});b===!1&&(rt={});const{prevResolvedValues:Qe={}}=v,Ki={...Qe,...rt},tn=F=>{V=!0,f.has(F)&&(k=!0,f.delete(F)),v.needsAnimating[F]=!0;const U=t.getValue(F);U&&(U.liveStyle=!1)};for(const F in Ki){const U=rt[F],Qt=Qe[F];if(d.hasOwnProperty(F))continue;let te=!1;me(U)&&me(Qt)?te=!$s(U,Qt):te=U!==Qt,te?U!=null?tn(F):f.add(F):U!==void 0&&f.has(F)?tn(F):v.protectedKeys[F]=!0}v.prevProp=y,v.prevResolvedValues=rt,v.isActive&&(d={...d,...rt}),s&&t.blockInitialAnimation&&(V=!1),V&&(!D||k)&&h.push(...O.map(F=>({animation:F,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const v=t.getBaseTarget(g),y=t.getValue(g);y&&(y.liveStyle=!0),x[g]=v??null}),h.push({animation:x})}let m=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Rn(),s=!0}}}function Na(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!$s(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class Ua extends tt{constructor(e){super(e),e.animationState||(e.animationState=Ia(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Vt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let _a=0;class Wa extends tt{constructor(){super(...arguments),this.id=_a++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ka={animation:{Feature:Ua},exit:{Feature:Wa}},Mn=(t,e)=>Math.abs(t-e);function $a(t,e){const n=Mn(t.x,e.x),s=Mn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Vi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ue(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=$a(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=R;this.history.push({...p,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=le(f,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ue(h.type==="pointercancel"?this.lastMoveEventInfo:le(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,x),p&&p(h,x)},!Ns(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=qt(e),a=le(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=R;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ue(a,this.history)),this.removeListeners=K(W(this.contextWindow,"pointermove",this.handlePointerMove),W(this.contextWindow,"pointerup",this.handlePointerUp),W(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),z(this.updatePoint)}}function le(t,e){return e?{point:e(t.point)}:t}function En(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ue({point:t},e){return{point:t,delta:En(t,Ai(e)),offset:En(t,Ga(e)),velocity:za(e,.1)}}function Ga(t){return t[0]}function Ai(t){return t[t.length-1]}function za(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ai(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=G(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const wi=1e-4,Ha=1-wi,Ya=1+wi,Ci=.01,Xa=0-Ci,qa=0+Ci;function B(t){return t.max-t.min}function Za(t,e,n){return Math.abs(t-e)<=n}function Ln(t,e,n,s=.5){t.origin=s,t.originPoint=w(e.min,e.max,t.origin),t.scale=B(n)/B(e),t.translate=w(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ha&&t.scale<=Ya||isNaN(t.scale))&&(t.scale=1),(t.translate>=Xa&&t.translate<=qa||isNaN(t.translate))&&(t.translate=0)}function Pt(t,e,n,s){Ln(t.x,e.x,n.x,s?s.originX:void 0),Ln(t.y,e.y,n.y,s?s.originY:void 0)}function Fn(t,e,n){t.min=n.min+e.min,t.max=t.min+B(e)}function Ja(t,e,n){Fn(t.x,e.x,n.x),Fn(t.y,e.y,n.y)}function Bn(t,e,n){t.min=e.min-n.min,t.max=t.min+B(e)}function St(t,e,n){Bn(t.x,e.x,n.x),Bn(t.y,e.y,n.y)}function Qa(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?w(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?w(n,t,s.max):Math.min(t,n)),t}function kn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function tl(t,{top:e,left:n,bottom:s,right:i}){return{x:kn(t.x,n,i),y:kn(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function el(t,e){return{x:On(t.x,e.x),y:On(t.y,e.y)}}function nl(t,e){let n=.5;const s=B(t),i=B(e);return i>s?n=wt(e.min,e.max-s,t.min):s>i&&(n=wt(t.min,t.max-i,e.min)),Z(0,1,n)}function sl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ae=.35;function il(t=Ae){return t===!1?t=0:t===!0&&(t=Ae),{x:jn(t,"left","right"),y:jn(t,"top","bottom")}}function jn(t,e,n){return{min:In(t,e),max:In(t,n)}}function In(t,e){return typeof t=="number"?t:t[e]||0}const Nn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:Nn(),y:Nn()}),Un=()=>({min:0,max:0}),C=()=>({x:Un(),y:Un()});function I(t){return[t("x"),t("y")]}function Di({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ol({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ce(t){return t===void 0||t===1}function we({scale:t,scaleX:e,scaleY:n}){return!ce(t)||!ce(e)||!ce(n)}function nt(t){return we(t)||Ri(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ri(t){return _n(t.x)||_n(t.y)}function _n(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Wn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ce(t,e=0,n=1,s,i){t.min=Wn(t.min,e,n,s,i),t.max=Wn(t.max,e,n,s,i)}function Mi(t,{x:e,y:n}){Ce(t.x,e.translate,e.scale,e.originPoint),Ce(t.y,n.translate,n.scale,n.originPoint)}const Kn=.999999999999,$n=1.0000000000001;function al(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ht(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Mi(t,o)),s&&nt(r.latestValues)&&ht(t,r.latestValues))}e.x<$n&&e.x>Kn&&(e.x=1),e.y<$n&&e.y>Kn&&(e.y=1)}function ct(t,e){t.min=t.min+e,t.max=t.max+e}function Gn(t,e,n,s,i=.5){const r=w(t.min,t.max,i);Ce(t,e,n,r,s)}function ht(t,e){Gn(t.x,e.x,e.scaleX,e.scale,e.originX),Gn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ei(t,e){return Di(rl(t.getBoundingClientRect(),e))}function ll(t,e,n){const s=Ei(t,n),{scroll:i}=e;return i&&(ct(s.x,i.offset.x),ct(s.y,i.offset.y)),s}const Li=({current:t})=>t?t.ownerDocument.defaultView:null,ul=new WeakMap;class cl{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qt(c,"page").point)},r=(c,h)=>{var f;const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_s(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(g=>{let v=this.getAxisMotionValue(g).get()||0;if(N.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(v=B(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&A.postRender(()=>m(c,h)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=be(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=h;if(d&&this.currentDirection===null){this.currentDirection=hl(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),m&&m(c,h)},a=(c,h)=>this.stop(c,h),l=()=>I(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Vi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Li(this.visualElement)})}stop(e,n){var s;(s=this.removeWillChange)===null||s===void 0||s.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Qa(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tl(i.layoutBox,n):this.constraints=!1,this.elastic=il(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=sl(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current;exports.invariant(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=ll(s,i.root,this.visualElement.getTransformPagePoint());let o=el(i.layout.layoutBox,r);if(n){const a=n(ol(o));this.hasMutatedConstraints=!!a,a&&(o=Di(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=I(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(Ze(e,s,0,n,this.visualElement,!1,be(this.visualElement,e)))}stopAnimation(){I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){I(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-w(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=nl({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),I(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(w(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;ul.set(this.visualElement,this);const e=this.visualElement.current,n=W(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(s);const o=_(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(I(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ae,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class fl extends tt{constructor(e){super(e),this.removeGroupControls=M,this.removeListeners=M,this.controls=new cl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}unmount(){this.removeGroupControls(),this.removeListeners()}}const zn=t=>(e,n)=>{t&&A.postRender(()=>t(e,n))};class dl extends tt{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(e){this.session=new Vi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Li(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:zn(e),onStart:zn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&A.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=W(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function pl(){const t=P.useContext(Gt);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();P.useEffect(()=>s(i),[]);const r=P.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const gt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Hn(t,e.target.x),s=Hn(t,e.target.y);return`${n}% ${s}%`}},ml={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const r=J.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=w(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}};class gl extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;lo(yl),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||A.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Re.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Fi(t){const[e,n]=pl(),s=P.useContext(Le);return pe.jsxRuntimeExports.jsx(gl,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(Ps),isPresent:e,safeToRemove:n})}const yl={borderRadius:{...gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gt,borderTopRightRadius:gt,borderBottomLeftRadius:gt,borderBottomRightRadius:gt,boxShadow:ml},Bi=["TopLeft","TopRight","BottomLeft","BottomRight"],vl=Bi.length,Yn=t=>typeof t=="string"?parseFloat(t):t,Xn=t=>typeof t=="number"||T.test(t);function xl(t,e,n,s,i,r){i?(t.opacity=w(0,n.opacity!==void 0?n.opacity:1,Tl(s)),t.opacityExit=w(e.opacity!==void 0?e.opacity:1,0,Pl(s))):r&&(t.opacity=w(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<vl;o++){const a=`border${Bi[o]}Radius`;let l=qn(e,a),u=qn(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Xn(l)===Xn(u)?(t[a]=Math.max(w(Yn(l),Yn(u),s),0),(N.test(u)||N.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=w(e.rotate||0,n.rotate||0,s))}function qn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Tl=ki(0,.5,pi),Pl=ki(.5,.95,M);function ki(t,e,n){return s=>s<t?0:s>e?1:n(wt(t,e,s))}function Zn(t,e){t.min=e.min,t.max=e.max}function j(t,e){Zn(t.x,e.x),Zn(t.y,e.y)}function Jn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Qn(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Sl(t,e=0,n=1,s=.5,i,r=t,o=t){if(N.test(e)&&(e=parseFloat(e),e=w(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=w(r.min,r.max,s);t===r&&(a-=e),t.min=Qn(t.min,e,n,a,i),t.max=Qn(t.max,e,n,a,i)}function ts(t,e,[n,s,i],r,o){Sl(t,e[n],e[s],e[i],e.scale,r,o)}const bl=["x","scaleX","originX"],Vl=["y","scaleY","originY"];function es(t,e,n,s){ts(t.x,e,bl,n?n.x:void 0,s?s.x:void 0),ts(t.y,e,Vl,n?n.y:void 0,s?s.y:void 0)}function ns(t){return t.translate===0&&t.scale===1}function Oi(t){return ns(t.x)&&ns(t.y)}function ss(t,e){return t.min===e.min&&t.max===e.max}function Al(t,e){return ss(t.x,e.x)&&ss(t.y,e.y)}function is(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ji(t,e){return is(t.x,e.x)&&is(t.y,e.y)}function os(t){return B(t.x)/B(t.y)}function rs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class wl{constructor(){this.members=[]}add(e){Yt(this.members,e),e.scheduleRender()}remove(e){if(Xt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Cl(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Dl=(t,e)=>t.depth-e.depth;class Rl{constructor(){this.children=[],this.isDirty=!1}add(e){Yt(this.children,e),this.isDirty=!0}remove(e){Xt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Dl),this.isDirty=!1,this.children.forEach(e)}}function Ml(t,e){const n=q.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(z(s),t(r-e))};return A.read(s,!0),()=>z(s)}function El(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ll(t,e,n){const s=L(t)?t:Ct(t);return s.start(Ze("",s,e,n)),s.animation}const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vt=typeof window<"u"&&window.MotionDebug!==void 0,he=["","X","Y","Z"],Fl={visibility:"hidden"},as=1e3;let Bl=0;function fe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ii(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?Si(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?Ii(t.parent):!1:!1}function Ni({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Bl++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vt&&(st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0),this.nodes.forEach(jl),this.nodes.forEach(Wl),this.nodes.forEach(Kl),this.nodes.forEach(Il),vt&&window.MotionDebug.record(st)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rl)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Je),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=El(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Ml(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(us))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Yl,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!ji(this.targetLayout,p)||d,y=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const S={...We(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,z(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($l),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Ii(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ls);return}this.isUpdating||this.nodes.forEach(Ul),this.isUpdating=!1,this.nodes.forEach(_l),this.nodes.forEach(kl),this.nodes.forEach(Ol),this.clearAllSnapshots();const a=q.now();R.delta=Z(0,1e3/60,a-R.timestamp),R.timestamp=a,R.isProcessing=!0,ee.update.process(R),ee.preRender.process(R),ee.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Re.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nl),this.sharedNodes.forEach(Gl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Oi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||nt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Xl(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return C();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ql))){const{scroll:c}=this.root;c&&(ct(l.x,c.offset.x),ct(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=C();if(j(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&j(l,o),ct(l.x,h.offset.x),ct(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=C();j(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ht(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),nt(c.latestValues)&&ht(l,c.latestValues)}return nt(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(o){const a=C();j(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!nt(u.latestValues))continue;we(u.latestValues)&&u.updateSnapshot();const c=C(),h=u.measurePageBox();j(c,h),es(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return nt(this.latestValues)&&es(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),St(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),j(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ja(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):j(this.target,this.layout.layoutBox),Mi(this.target,this.targetDelta)):j(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),St(this.relativeTargetOrigin,this.target,d.target),j(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vt&&st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||we(this.parent.latestValues)||Ri(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===R.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;j(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;al(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=C());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jn(this.prevProjectionDelta.x,this.projectionDelta.x),Jn(this.prevProjectionDelta.y,this.projectionDelta.y)),Pt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),vt&&st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ut(),this.projectionDelta=ut(),this.projectionDeltaWithTransform=ut()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=C(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,x=this.getStack(),g=!x||x.members.length<=1,v=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Hl));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const b=S/1e3;cs(h.x,o.x,b),cs(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(St(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zl(this.relativeTarget,this.relativeTargetOrigin,f,b),y&&Al(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=C()),j(y,this.relativeTarget)),m&&(this.animationValues=c,xl(c,u,this.latestValues,b,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Ll(0,as,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(as),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Ui(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||C();const h=B(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=B(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}j(a,l),ht(a,c),Pt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wl),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&fe("z",o,u,this.animationValues);for(let c=0;c<he.length;c++)fe(`rotate${he[c]}`,o,u,this.animationValues),fe(`skew${he[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fl;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=kt(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=kt(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Cl(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:p}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in It){if(f[m]===void 0)continue;const{correct:x,applyTo:g}=It[m],v=u.transform==="none"?f[m]:x(f[m],h);if(g){const y=g.length;for(let S=0;S<y;S++)u[g[S]]=v}else u[m]=v}return this.options.layoutId&&(u.pointerEvents=h===this?kt(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ls),this.root.sharedNodes.clear()}}}function kl(t){t.updateLayout()}function Ol(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?I(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(f);f.min=s[h].min,f.max=f.min+d}):Ui(r,n.layoutBox,s)&&I(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ut();Pt(a,s,n.layoutBox);const l=ut();o?Pt(l,t.applyTransform(i,!0),n.measuredBox):Pt(l,s,n.layoutBox);const u=!Oi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=C();St(p,n.layoutBox,f.layoutBox);const m=C();St(m,s,d.layoutBox),ji(p,m)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function jl(t){vt&&st.totalNodes++,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 Il(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Nl(t){t.clearSnapshot()}function ls(t){t.clearMeasurements()}function Ul(t){t.isLayoutDirty=!1}function _l(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wl(t){t.resolveTargetDelta()}function Kl(t){t.calcProjection()}function $l(t){t.resetSkewAndRotation()}function Gl(t){t.removeLeadSnapshot()}function cs(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function hs(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function zl(t,e,n,s){hs(t.x,e.x,n.x,s),hs(t.y,e.y,n.y,s)}function Hl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Yl={duration:.45,ease:[.4,0,.1,1]},fs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ds=fs("applewebkit/")&&!fs("chrome/")?Math.round:M;function ps(t){t.min=ds(t.min),t.max=ds(t.max)}function Xl(t){ps(t.x),ps(t.y)}function Ui(t,e,n){return t==="position"||t==="preserve-aspect"&&!Za(os(e),os(n),.2)}function ql(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Zl=Ni({attachResizeListener:(t,e)=>_(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),de={current:void 0},_i=Ni({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!de.current){const t=new Zl({});t.mount(window),t.setOptions({layoutScroll:!0}),de.current=t}return de.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Jl={pan:{Feature:dl},drag:{Feature:fl,ProjectionNode:_i,MeasureLayout:Fi}};function Ql(t,e,n){for(const s in e){const i=e[s],r=n[s];if(L(i))t.addValue(s,i),process.env.NODE_ENV==="development"&&X.warnOnce(i.version==="11.3.19",`Attempting to mix Framer Motion versions ${i.version} with 11.3.19 may not work as expected.`);else if(L(r))t.addValue(s,Ct(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Ct(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ms=new WeakMap,tu=[...Xs,E,J],eu=t=>tu.find(Ys(t)),gs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nu=Ee.length;class su{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,d,p,m)=>new this.KeyframeResolver(f,d,p,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ke,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,A.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ht(n),this.isVariantNode=bs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&L(d)&&d.set(l[f],!1)}}mount(e){this.current=e,ms.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),X.hasReducedMotionListener.current||X.initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:X.prefersReducedMotion.current,process.env.NODE_ENV!=="production"&&X.warnOnce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ms.delete(this.current),this.projection&&this.projection.unmount(),z(this.notifyUpdate),z(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const s=Q.has(e),i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&A.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ft){const n=ft[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<gs.length;s++){const i=gs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ql(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<nu;s++){const i=Ee[s],r=this.props[i];(bt(r)||r===!1)&&(n[i]=r)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Ct(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(zs(i)||Gs(i))?i=parseFloat(i):!eu(i)&&J.test(n)&&(i=si(e,n)),this.setBaseTarget(e,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=_e(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!L(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Je),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Wi extends su{constructor(){super(...arguments),this.KeyframeResolver=ii}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function iu(t){return window.getComputedStyle(t)}class ou extends Wi{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Es}readValueFromInstance(e,n){if(Q.has(n)){const s=Ge(n);return s&&s.default||0}else{const s=iu(e),i=(ws(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ei(e,n)}build(e,n,s){Oe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ue(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;L(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ru extends Wi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const s=Ge(n);return s&&s.default||0}return n=Ls.has(n)?n:zt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Bs(e,n,s)}build(e,n,s){Ie(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){Fs(e,n,s,i)}mount(e){this.isSVGTag=Ne(e.tagName),super.mount(e)}}const au=(t,e)=>Fe(t)?new ru(e):new ou(e,{allowProjection:t!==P.Fragment}),lu={layout:{ProjectionNode:_i,MeasureLayout:Fi}},uu={...Ka,...Qo,...Jl,...lu},cu=ro((t,e)=>Uo(t,e,uu,au));exports.LayoutGroupContext=Le;exports.MotionConfigContext=De;exports.PresenceContext=Gt;exports.motion=cu;exports.useConstant=ks;exports.useIsomorphicLayoutEffect=ys;
2
+ //# sourceMappingURL=motion-C4VO4Fpk.cjs.map