@useloops/design-system 1.4.533 → 1.4.535

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 (286) hide show
  1. package/dist/Marketing/PlanFeatureTable.js +1 -1
  2. package/dist/Marketing/PlanTierCard.d.ts +2 -2
  3. package/dist/Marketing/PlanTierCard.js +1 -1
  4. package/dist/Marketing/TickGroup.js +1 -1
  5. package/dist/Marketing.d.ts +2 -2
  6. package/dist/Marketing.js +1 -1
  7. package/dist/Platform/AIInsight.js +1 -1
  8. package/dist/Platform/AISummary.js +1 -1
  9. package/dist/Platform/AIWrittenByLockUp.js +1 -1
  10. package/dist/Platform/AiContentContainer.js +1 -1
  11. package/dist/Platform/AssetItem.js +1 -1
  12. package/dist/Platform/CommentCard.js +1 -1
  13. package/dist/Platform/DataPointInfo.js +1 -1
  14. package/dist/Platform/DemographicSelectionSection.js +1 -1
  15. package/dist/Platform/EmojiListItem.js +1 -1
  16. package/dist/Platform/EmojiQuestionEditorOption.js +1 -1
  17. package/dist/Platform/EmptyStateCard.js +1 -1
  18. package/dist/Platform/ExtendedTestStatus.js +1 -1
  19. package/dist/Platform/FilterCount.js +1 -1
  20. package/dist/Platform/FilterGroupAccordion.js +1 -1
  21. package/dist/Platform/FilterPyramidGraph.js +1 -1
  22. package/dist/Platform/FilterRow.js +1 -1
  23. package/dist/Platform/FilteredItemsCard.js +1 -1
  24. package/dist/Platform/ForgotYourPassword.js +1 -1
  25. package/dist/Platform/GraphBar.js +1 -1
  26. package/dist/Platform/Header.js +1 -1
  27. package/dist/Platform/KpiDataPopover.js +1 -1
  28. package/dist/Platform/LikertGraph.js +1 -1
  29. package/dist/Platform/LinkExpired.js +1 -1
  30. package/dist/Platform/LoginForm.js +1 -1
  31. package/dist/Platform/LoopItem.js +1 -1
  32. package/dist/Platform/LoopItemEmpty.js +1 -1
  33. package/dist/Platform/MFACodeVerify.js +1 -1
  34. package/dist/Platform/Navigation.js +1 -1
  35. package/dist/Platform/OnboardingCard.js +1 -1
  36. package/dist/Platform/PaginationControl.js +1 -1
  37. package/dist/Platform/ProjectItem.js +1 -1
  38. package/dist/Platform/QuestionBlock.js +1 -1
  39. package/dist/Platform/QuestionLabel.js +1 -1
  40. package/dist/Platform/QuestionSelector.js +1 -1
  41. package/dist/Platform/ResetPassword.js +1 -1
  42. package/dist/Platform/SearchInput.js +1 -1
  43. package/dist/Platform/SectionHeader.js +1 -1
  44. package/dist/Platform/SentimentArrow.js +1 -1
  45. package/dist/Platform/SliderGraph.js +1 -1
  46. package/dist/Platform/Tab.js +1 -1
  47. package/dist/Platform/TestItem.js +1 -1
  48. package/dist/Platform/TestKPICard.js +1 -1
  49. package/dist/Platform/TestStatus.js +1 -1
  50. package/dist/Platform/VideoControls.js +1 -1
  51. package/dist/Platform.d.ts +2 -2
  52. package/dist/Platform.js +1 -1
  53. package/dist/WebCore/FormGenerator.js +1 -1
  54. package/dist/WebCore/GridOverlay.js +1 -1
  55. package/dist/WebCore/HtmlParser.js +1 -1
  56. package/dist/WebCore/IconButton.js +1 -1
  57. package/dist/WebCore/ModalLayout.js +1 -1
  58. package/dist/WebCore/Nudge.js +1 -1
  59. package/dist/WebCore/NumberField.js +1 -1
  60. package/dist/WebCore/Pill.js +1 -1
  61. package/dist/WebCore/Rank.js +1 -1
  62. package/dist/WebCore/Slider.js +1 -1
  63. package/dist/WebCore/UserMenu.js +1 -1
  64. package/dist/WebCore/VideoModal.js +1 -1
  65. package/dist/WebCore.js +1 -1
  66. package/dist/_chunks/{AIInsight-y2w3AYmS.js → AIInsight-CIdvqaiB.js} +1 -1
  67. package/dist/_chunks/{AISummary-CxWbirJ3.js → AISummary-BxRg7niX.js} +1 -1
  68. package/dist/_chunks/{AiContentContainer-XLllgJFs.js → AiContentContainer-ena3W4zl.js} +1 -1
  69. package/dist/_chunks/{AiWrittenByLockUp-DYIAdFH0.js → AiWrittenByLockUp-C-C7Ql4r.js} +1 -1
  70. package/dist/_chunks/{AssetItem-C3_oDHXo.js → AssetItem-lYj-JL4A.js} +1 -1
  71. package/dist/_chunks/{CommentCard-Bz5hMJ6p.js → CommentCard-RB6d9UDy.js} +1 -1
  72. package/dist/_chunks/{DataPointInfo-DakyTWf1.js → DataPointInfo-Rmr6ky8L.js} +1 -1
  73. package/dist/_chunks/{DemographicSelectionSection-DY9NcgBa.js → DemographicSelectionSection-CTV1Qkgl.js} +1 -1
  74. package/dist/_chunks/{EmojiListItem-Cp5kV8BB.js → EmojiListItem-DhImX-LB.js} +1 -1
  75. package/dist/_chunks/{EmojiQuestionEditorOption-DZFr4Ar-.js → EmojiQuestionEditorOption-BiXZxuif.js} +1 -1
  76. package/dist/_chunks/{EmptyStateCard-FUUa_GVj.js → EmptyStateCard-C6TtisW_.js} +1 -1
  77. package/dist/_chunks/{ExtendedTestStatus-0bvxThZ1.js → ExtendedTestStatus-D2fUvuV8.js} +1 -1
  78. package/dist/_chunks/{FilterCount-5iU9sx9l.js → FilterCount-Co3pIem4.js} +1 -1
  79. package/dist/_chunks/{FilterGroupAccordion-D3YVmbEa.js → FilterGroupAccordion-2XiNMA5w.js} +1 -1
  80. package/dist/_chunks/{FilterPyramidGraph-DzB3uvhP.js → FilterPyramidGraph-Yt_wTuIx.js} +1 -1
  81. package/dist/_chunks/{FilterRow-CqPeZcFT.js → FilterRow-n0C-WGB3.js} +1 -1
  82. package/dist/_chunks/{FilteredItemsCard-LgzfgGsk.js → FilteredItemsCard-BpL8Dx8Q.js} +1 -1
  83. package/dist/_chunks/{FormGenerator-DzjBjh0B.js → FormGenerator-BE8waLtB.js} +1 -1
  84. package/dist/_chunks/{GraphBar-ugCYzT7A.js → GraphBar-BIDOSxiE.js} +1 -1
  85. package/dist/_chunks/GridOverlay-jGJehp32.js +1 -0
  86. package/dist/_chunks/{Header-DZM4VlgO.js → Header-D8LmMSNH.js} +1 -1
  87. package/dist/_chunks/HtmlParser-D0dGvAUN.js +1 -0
  88. package/dist/_chunks/IconButton-Ihx8guYf.js +1 -0
  89. package/dist/_chunks/{KpiDataPopover-BSXT-vIK.js → KpiDataPopover-C5BxpbD4.js} +1 -1
  90. package/dist/_chunks/{LikertGraph-CWy_9kg2.js → LikertGraph-Bw6BwhYc.js} +1 -1
  91. package/dist/_chunks/{LoopItem-CtBjA2f6.js → LoopItem-CJS0AZ2t.js} +1 -1
  92. package/dist/_chunks/{LoopItemEmpty-D7TeuHAh.js → LoopItemEmpty-DVTVs35w.js} +1 -1
  93. package/dist/_chunks/{ModalLayout-B-0g8GaI.js → ModalLayout-JoYVvuGf.js} +1 -1
  94. package/dist/_chunks/{Navigation-C4BF2TcV.js → Navigation-Btbiup_x.js} +1 -1
  95. package/dist/_chunks/Nudge-q7PMWlUQ.js +1 -0
  96. package/dist/_chunks/{NudgeButton-D6ypWC8w.js → NudgeButton-Dx6CtseQ.js} +1 -1
  97. package/dist/_chunks/{NumberField-CuiOrazp.js → NumberField-58_3dSuF.js} +1 -1
  98. package/dist/_chunks/{OnboardingCard-C5vfOrNz.js → OnboardingCard-BVLc737Y.js} +1 -1
  99. package/dist/_chunks/{PaginationControl-CHvcf4mB.js → PaginationControl-etil8-ye.js} +1 -1
  100. package/dist/_chunks/{Pill-DizC4Dwp.js → Pill-Clmg_hHJ.js} +1 -1
  101. package/dist/_chunks/PlanFeatureTable-CuYVA-We.js +1 -0
  102. package/dist/_chunks/{PlanTierCard-CH6UvW4O.js → PlanTierCard-BQUduIWs.js} +1 -1
  103. package/dist/_chunks/{ProjectItemEmpty-BBC-n_ru.js → ProjectItemEmpty-ddCud7lZ.js} +1 -1
  104. package/dist/_chunks/{QuestionBlock-D3Y4xQ6Z.js → QuestionBlock-Ckx_qRTQ.js} +1 -1
  105. package/dist/_chunks/{QuestionLabel-CcVXkTYY.js → QuestionLabel-D4p4P12x.js} +1 -1
  106. package/dist/_chunks/{QuestionSelector-Imo4FQDX.js → QuestionSelector-BYwlwfLG.js} +1 -1
  107. package/dist/_chunks/{QuestionStatsCard-B-Jvw1lf.js → QuestionStatsCard-BcbLqzh8.js} +1 -1
  108. package/dist/_chunks/{Rank-Ebu11UGf.js → Rank-BPTqLPXC.js} +1 -1
  109. package/dist/_chunks/{SearchInput-TsvcQmHN.js → SearchInput-CgyAiMKG.js} +1 -1
  110. package/dist/_chunks/{SectionHeader-D-ZhpgDK.js → SectionHeader-B8vRm1jV.js} +1 -1
  111. package/dist/_chunks/{SentimentArrow-COKsVK6I.js → SentimentArrow-D14HDlNh.js} +1 -1
  112. package/dist/_chunks/{Slider-BNY8BtY7.js → Slider-BK5bfi4n.js} +1 -1
  113. package/dist/_chunks/{SliderGraph-c6XQBUtu.js → SliderGraph-B905QoQY.js} +1 -1
  114. package/dist/_chunks/{SliderGraphYAxis-DcynhWfb.js → SliderGraphYAxis-BUYlpGM_.js} +1 -1
  115. package/dist/_chunks/{StyledBox-BnBYbGkS.js → StyledBox-C0QQ1nHs.js} +1 -1
  116. package/dist/_chunks/{StyledSurface-BW2_VQUO.js → StyledSurface-BOD7eYIx.js} +1 -1
  117. package/dist/_chunks/{StyledSurface-Dxk1aS0d.js → StyledSurface-D1IcATmL.js} +1 -1
  118. package/dist/_chunks/{Tab-CAS4dawg.js → Tab-ByPBKtoF.js} +1 -1
  119. package/dist/_chunks/{TestItem-DhTSsrGr.js → TestItem-DSEHaOrg.js} +1 -1
  120. package/dist/_chunks/{TestKPICard-BJoeEmRr.js → TestKPICard-Cf08hoTs.js} +1 -1
  121. package/dist/_chunks/{TestStatus-BNioY9rh.js → TestStatus-FynFsVxH.js} +1 -1
  122. package/dist/_chunks/{TickGroup-Be8IMh_H.js → TickGroup-CKBu0fi2.js} +1 -1
  123. package/dist/_chunks/{UserMenu-D2urHIbv.js → UserMenu-CBamkzon.js} +1 -1
  124. package/dist/_chunks/{UserMenuButton-CgHpAwrN.js → UserMenuButton-IgVIEbQl.js} +1 -1
  125. package/dist/_chunks/{VideoControls-yqJVUWvc.js → VideoControls-CyOWTj9C.js} +1 -1
  126. package/dist/_chunks/{VideoModal-B_xOy6H5.js → VideoModal-CfaVAhVQ.js} +1 -1
  127. package/dist/_chunks/{styledPartials-DxaYOAoz.js → styledPartials-CjSLf69d.js} +1 -1
  128. package/dist/_chunks/{styledPartials-Crn-OL_R.js → styledPartials-DuAKkZIH.js} +1 -1
  129. package/dist/_chunks/{styledPartials-0PiYGJ-a.js → styledPartials-Zzy8Fequ.js} +1 -1
  130. package/dist/esm/Marketing/PlanFeatureTable.js +1 -1
  131. package/dist/esm/Marketing/PlanTierCard.js +1 -1
  132. package/dist/esm/Marketing/TickGroup.js +1 -1
  133. package/dist/esm/Marketing.js +1 -1
  134. package/dist/esm/Platform/AIInsight.js +1 -1
  135. package/dist/esm/Platform/AISummary.js +1 -1
  136. package/dist/esm/Platform/AIWrittenByLockUp.js +1 -1
  137. package/dist/esm/Platform/AiContentContainer.js +1 -1
  138. package/dist/esm/Platform/AssetItem.js +1 -1
  139. package/dist/esm/Platform/CommentCard.js +1 -1
  140. package/dist/esm/Platform/DataPointInfo.js +1 -1
  141. package/dist/esm/Platform/DemographicSelectionSection.js +1 -1
  142. package/dist/esm/Platform/EmojiListItem.js +1 -1
  143. package/dist/esm/Platform/EmojiQuestionEditorOption.js +1 -1
  144. package/dist/esm/Platform/EmptyStateCard.js +1 -1
  145. package/dist/esm/Platform/ExtendedTestStatus.js +1 -1
  146. package/dist/esm/Platform/FilterCount.js +1 -1
  147. package/dist/esm/Platform/FilterGroupAccordion.js +1 -1
  148. package/dist/esm/Platform/FilterPyramidGraph.js +1 -1
  149. package/dist/esm/Platform/FilterRow.js +1 -1
  150. package/dist/esm/Platform/FilteredItemsCard.js +1 -1
  151. package/dist/esm/Platform/ForgotYourPassword.js +1 -1
  152. package/dist/esm/Platform/GraphBar.js +1 -1
  153. package/dist/esm/Platform/Header.js +1 -1
  154. package/dist/esm/Platform/KpiDataPopover.js +1 -1
  155. package/dist/esm/Platform/LikertGraph.js +1 -1
  156. package/dist/esm/Platform/LinkExpired.js +1 -1
  157. package/dist/esm/Platform/LoginForm.js +1 -1
  158. package/dist/esm/Platform/LoopItem.js +1 -1
  159. package/dist/esm/Platform/LoopItemEmpty.js +1 -1
  160. package/dist/esm/Platform/MFACodeVerify.js +1 -1
  161. package/dist/esm/Platform/Navigation.js +1 -1
  162. package/dist/esm/Platform/OnboardingCard.js +1 -1
  163. package/dist/esm/Platform/PaginationControl.js +1 -1
  164. package/dist/esm/Platform/ProjectItem.js +1 -1
  165. package/dist/esm/Platform/QuestionBlock.js +1 -1
  166. package/dist/esm/Platform/QuestionLabel.js +1 -1
  167. package/dist/esm/Platform/QuestionSelector.js +1 -1
  168. package/dist/esm/Platform/ResetPassword.js +1 -1
  169. package/dist/esm/Platform/SearchInput.js +1 -1
  170. package/dist/esm/Platform/SectionHeader.js +1 -1
  171. package/dist/esm/Platform/SentimentArrow.js +1 -1
  172. package/dist/esm/Platform/SliderGraph.js +1 -1
  173. package/dist/esm/Platform/Tab.js +1 -1
  174. package/dist/esm/Platform/TestItem.js +1 -1
  175. package/dist/esm/Platform/TestKPICard.js +1 -1
  176. package/dist/esm/Platform/TestStatus.js +1 -1
  177. package/dist/esm/Platform/VideoControls.js +1 -1
  178. package/dist/esm/Platform.js +1 -1
  179. package/dist/esm/WebCore/Accordion.js +1 -1
  180. package/dist/esm/WebCore/AnnualController.js +1 -1
  181. package/dist/esm/WebCore/Breadcrumb.js +1 -1
  182. package/dist/esm/WebCore/ExpandableTypographyClamp.js +1 -1
  183. package/dist/esm/WebCore/FormGenerator.js +1 -1
  184. package/dist/esm/WebCore/HtmlParser.js +1 -1
  185. package/dist/esm/WebCore/Likert.js +1 -1
  186. package/dist/esm/WebCore/Menu.js +1 -1
  187. package/dist/esm/WebCore/NavigationButton.js +1 -1
  188. package/dist/esm/WebCore/Nudge.js +1 -1
  189. package/dist/esm/WebCore/Pill.js +1 -1
  190. package/dist/esm/WebCore/RadioGroup.js +1 -1
  191. package/dist/esm/WebCore/Rank.js +1 -1
  192. package/dist/esm/WebCore/RankItem.js +1 -1
  193. package/dist/esm/WebCore/Select.js +1 -1
  194. package/dist/esm/WebCore/Toast.js +1 -1
  195. package/dist/esm/WebCore/TrialCard.js +1 -1
  196. package/dist/esm/WebCore/UserMenu.js +1 -1
  197. package/dist/esm/WebCore.js +1 -1
  198. package/dist/esm/_chunks/{AIInsight-N3Qi2dKm.js → AIInsight-B0klIH8A.js} +1 -1
  199. package/dist/esm/_chunks/AISummary-DSf8JQ1a.js +1 -0
  200. package/dist/esm/_chunks/{Accordion-KLkJP5an.js → Accordion-DefclLdl.js} +1 -1
  201. package/dist/esm/_chunks/{AiContentContainer-DLydt-sv.js → AiContentContainer-DnUBmyTZ.js} +1 -1
  202. package/dist/esm/_chunks/{AiWrittenByLockUp-B7A9WyfP.js → AiWrittenByLockUp-uzOi-WUl.js} +1 -1
  203. package/dist/esm/_chunks/{AnnualController-Bx0WhW0S.js → AnnualController-Cac2S5IF.js} +1 -1
  204. package/dist/esm/_chunks/{AssetItem-rADVKE5M.js → AssetItem-CxwVbIUN.js} +1 -1
  205. package/dist/esm/_chunks/Breadcrumb-DsuUqc-L.js +1 -0
  206. package/dist/esm/_chunks/{CommentCard-z_exfbyx.js → CommentCard-sjIah2I2.js} +1 -1
  207. package/dist/esm/_chunks/{DataPointInfo-C9CHLjCe.js → DataPointInfo-C-Fxn_ri.js} +1 -1
  208. package/dist/esm/_chunks/{DemographicSelectionSection-BW7W41gi.js → DemographicSelectionSection-BeqckGqY.js} +1 -1
  209. package/dist/esm/_chunks/{EmojiListItem-Dc-APlL1.js → EmojiListItem-rwAuyfQM.js} +1 -1
  210. package/dist/esm/_chunks/{EmojiQuestionEditorOption-CfzKL-4f.js → EmojiQuestionEditorOption-hBqLMED0.js} +1 -1
  211. package/dist/esm/_chunks/{EmptyStateCard-CeIictDX.js → EmptyStateCard-CZwFyoag.js} +1 -1
  212. package/dist/esm/_chunks/{ExpandableTypographyClamp-CSjz1LMF.js → ExpandableTypographyClamp-UED4FaZg.js} +1 -1
  213. package/dist/esm/_chunks/{ExtendedTestStatus-DurTVVeu.js → ExtendedTestStatus-Bqtg2BgO.js} +1 -1
  214. package/dist/esm/_chunks/{FilterCount-DTUQcEqA.js → FilterCount-1td3rYiB.js} +1 -1
  215. package/dist/esm/_chunks/{FilterGroupAccordion-Cc3GUUkn.js → FilterGroupAccordion-nVAPQnUF.js} +1 -1
  216. package/dist/esm/_chunks/{FilterPyramidGraph-Cuaqodcj.js → FilterPyramidGraph-CY9g9Tpc.js} +1 -1
  217. package/dist/esm/_chunks/{FilterRow-BRf92DeN.js → FilterRow-ClNh7zVp.js} +1 -1
  218. package/dist/esm/_chunks/{FilteredItemsCard-3WSLA8rY.js → FilteredItemsCard-B0mfzUDc.js} +1 -1
  219. package/dist/esm/_chunks/{FormGenerator-Ble7Py9q.js → FormGenerator-Ccs5ud37.js} +1 -1
  220. package/dist/esm/_chunks/GraphBar-BT7h_bbS.js +1 -0
  221. package/dist/esm/_chunks/{Header-CF182f1X.js → Header-DXJcbhwD.js} +1 -1
  222. package/dist/esm/_chunks/{HtmlParser-C3sTfewe.js → HtmlParser-CRHtQZQn.js} +1 -1
  223. package/dist/esm/_chunks/{KpiDataPopover-ByJT-wcG.js → KpiDataPopover-bzC5_iTd.js} +1 -1
  224. package/dist/esm/_chunks/{Likert-Srh6SL8h.js → Likert-CE1d1idd.js} +1 -1
  225. package/dist/esm/_chunks/{LikertGraph-DrNPDmA6.js → LikertGraph-4JYsd2vm.js} +1 -1
  226. package/dist/esm/_chunks/{LoopItem-BJFZLgpf.js → LoopItem-BV8ctkHl.js} +1 -1
  227. package/dist/esm/_chunks/{LoopItemEmpty-DwbrRS8x.js → LoopItemEmpty-BjMlCAWI.js} +1 -1
  228. package/dist/esm/_chunks/{Menu-DyuPEFRh.js → Menu-DiRrTCwE.js} +1 -1
  229. package/dist/esm/_chunks/{MenuItem-tXAIFFbF.js → MenuItem-Dqu--f1Y.js} +1 -1
  230. package/dist/esm/_chunks/{Navigation-Df9dN2Kg.js → Navigation-DwQMm3UW.js} +1 -1
  231. package/dist/esm/_chunks/{NavigationButton-Dkf-tmN3.js → NavigationButton-BY1JgkDq.js} +1 -1
  232. package/dist/esm/_chunks/{Nudge-CcUNRymf.js → Nudge-B0IJTFqQ.js} +1 -1
  233. package/dist/esm/_chunks/OnboardingCard-Dc7MIg9l.js +1 -0
  234. package/dist/esm/_chunks/{PaginationControl-CL_VBc0x.js → PaginationControl-B_yRTAXX.js} +1 -1
  235. package/dist/esm/_chunks/{Pill-B-TxXXjg.js → Pill-CnV6L75x.js} +1 -1
  236. package/dist/esm/_chunks/PlanFeatureTable-BVQLpMfB.js +1 -0
  237. package/dist/esm/_chunks/PlanTierCard-DRxliD1W.js +1 -0
  238. package/dist/esm/_chunks/{ProjectItemEmpty-C9WdjPDx.js → ProjectItemEmpty-BSIJxpi-.js} +1 -1
  239. package/dist/esm/_chunks/{QuestionBlock-CtvuGphW.js → QuestionBlock-DTYKUSXB.js} +1 -1
  240. package/dist/esm/_chunks/{QuestionLabel-p-6_HQnQ.js → QuestionLabel-BxlAJ9k7.js} +1 -1
  241. package/dist/esm/_chunks/{QuestionSelector-CmPUveaW.js → QuestionSelector-Bmml7Hv3.js} +1 -1
  242. package/dist/esm/_chunks/{QuestionStatsCard-CbWXvDzL.js → QuestionStatsCard-CeJDecAZ.js} +1 -1
  243. package/dist/esm/_chunks/{RadioGroup-CyWzG2hL.js → RadioGroup-Cd9yUYoA.js} +1 -1
  244. package/dist/esm/_chunks/{Rank-DoBomn1Y.js → Rank-DmQEkGYY.js} +1 -1
  245. package/dist/esm/_chunks/{RankItem-XN1nsWWv.js → RankItem-B-PCTpPr.js} +1 -1
  246. package/dist/esm/_chunks/{SearchInput-__iHqFC_.js → SearchInput-BUt3SK7I.js} +1 -1
  247. package/dist/esm/_chunks/{SectionHeader-BfPNXSRo.js → SectionHeader-B9t1O583.js} +1 -1
  248. package/dist/esm/_chunks/{Select-D45cwt2t.js → Select-NwXZk9Ft.js} +1 -1
  249. package/dist/esm/_chunks/{SentimentArrow-D5iTzMCi.js → SentimentArrow-dV4iGdpD.js} +1 -1
  250. package/dist/esm/_chunks/SliderGraph-ClaHhALr.js +1 -0
  251. package/dist/esm/_chunks/{SliderGraphYAxis-BZ4dRI3r.js → SliderGraphYAxis-BdIOTYHU.js} +1 -1
  252. package/dist/esm/_chunks/{StyledBox-jdpMXyFD.js → StyledBox-C2rOzU2D.js} +1 -1
  253. package/dist/esm/_chunks/{StyledSurface-sy6IRDny.js → StyledSurface-D2bC5OA7.js} +1 -1
  254. package/dist/esm/_chunks/{StyledSurface-Cs_WADoi.js → StyledSurface-DnCF-ViB.js} +1 -1
  255. package/dist/esm/_chunks/{StyledTimeline-Dpa8DOod.js → StyledTimeline-BysHUoCZ.js} +1 -1
  256. package/dist/esm/_chunks/{Tab-c2jP1G7K.js → Tab-B4_aRvy2.js} +1 -1
  257. package/dist/esm/_chunks/{TestItem-B3NAoO7h.js → TestItem-DoZcL-Kz.js} +1 -1
  258. package/dist/esm/_chunks/{TestKPICard-DN7MIlpV.js → TestKPICard-Cb9JVqSQ.js} +1 -1
  259. package/dist/esm/_chunks/{TestStatus-DimgPsFO.js → TestStatus-rteMMvPA.js} +1 -1
  260. package/dist/esm/_chunks/TickGroup-BUvAnRTM.js +1 -0
  261. package/dist/esm/_chunks/{Toast-B-vJytLs.js → Toast-BqATRpFU.js} +1 -1
  262. package/dist/esm/_chunks/TrialCard-B3HF-H8c.js +1 -0
  263. package/dist/esm/_chunks/{UserMenu-DJw5Io69.js → UserMenu-ByqRi0GL.js} +1 -1
  264. package/dist/esm/_chunks/{UserMenuButton-BSz-e4Hg.js → UserMenuButton-CSuyo0LH.js} +1 -1
  265. package/dist/esm/_chunks/{VideoControls-CM00Syi7.js → VideoControls-Dl5SACNt.js} +1 -1
  266. package/dist/esm/_chunks/{styledPartials-lR_wcFQX.js → styledPartials-C-w4dTKo.js} +1 -1
  267. package/dist/esm/_chunks/{styledPartials-Dzga3NtD.js → styledPartials-DVZ-JUyj.js} +1 -1
  268. package/dist/esm/_chunks/{styledPartials-LT81tt6z.js → styledPartials-E4AuVW7Y.js} +1 -1
  269. package/dist/esm/index.js +1 -1
  270. package/dist/index.d.ts +2 -2
  271. package/dist/index.js +1 -1
  272. package/package.json +1 -1
  273. package/dist/_chunks/GridOverlay-DJNXEqa7.js +0 -1
  274. package/dist/_chunks/HtmlParser-BobpsfG_.js +0 -1
  275. package/dist/_chunks/IconButton-LEHeDXoQ.js +0 -1
  276. package/dist/_chunks/Nudge-BwbIzAGI.js +0 -1
  277. package/dist/_chunks/PlanFeatureTable-XUUTpp3P.js +0 -1
  278. package/dist/esm/_chunks/AISummary-WlTbxSkq.js +0 -1
  279. package/dist/esm/_chunks/Breadcrumb-yGkwVVRn.js +0 -1
  280. package/dist/esm/_chunks/GraphBar-D9BJGIvW.js +0 -1
  281. package/dist/esm/_chunks/OnboardingCard-BeQQUtgA.js +0 -1
  282. package/dist/esm/_chunks/PlanFeatureTable-BSw1bXci.js +0 -1
  283. package/dist/esm/_chunks/PlanTierCard-CjUJKhuK.js +0 -1
  284. package/dist/esm/_chunks/SliderGraph-DCOub7vt.js +0 -1
  285. package/dist/esm/_chunks/TickGroup-BAkF_LEH.js +0 -1
  286. package/dist/esm/_chunks/TrialCard-fyi4voSR.js +0 -1
@@ -1 +1 @@
1
- "use strict";var t=require("react/jsx-runtime"),e=require("react"),n=require("@mui/material"),i=require("merge-sx");require("./misc-kjIxdcX1.js"),require("./Icon-DixraoWA.js"),require("./primitiveVariables-DOkvMbUd.js"),require("./typography.util-Cfj-ZgvS.js"),require("./AnnualController-DIiINpY8.js"),require("./Accordion-aNpUHWmg.js");var s=require("./Typography-BYFV0-HU.js");require("./Badge-DsL8LwLJ.js"),require("./Breadcrumb-BHqgdVj-.js"),require("./Button-TKogbJWt.js"),require("./ButtonBase-DOLFz7T6.js");var o=require("./Checkbox-CSz7J7US.js");require("./StyledCheckbox-g-PmPEwy.js"),require("./InputFieldBase-Dmb5-LXp.js"),require("./CreatableAutocomplete-CqQMerG2.js"),require("@mui/icons-material"),require("./InputLabelBase-C9l5M26_.js"),require("./Differential-B_1zxbR8.js"),require("./StyledMenu-0gmkD_R6.js"),require("./FormGenerator-DzjBjh0B.js"),require("./GridOverlay-DJNXEqa7.js"),require("html-react-parser"),require("./IconButton-LEHeDXoQ.js"),require("./IconButtonBase-6L_dNOOr.js"),require("./IconButtonGroup-CDYetneE.js"),require("./Image-In4M7VMg.js"),require("./Label-DKrUnSYL.js"),require("./Likert-CQI8ZnlX.js"),require("./Link-CikLKNS5.js"),require("@lottiefiles/dotlottie-react"),require("./LoopsAiButton-BJ0Vck7E.js"),require("markdown-to-jsx"),require("material-ui-popup-state/hooks"),require("./Surface-CNQxv-Vi.js"),require("./MenuItem-ChV88sO-.js"),require("./ModalContentWrapper-9lOys-c7.js"),require("./NavigationButton-t_nJ_-97.js"),require("./NudgeButton-D6ypWC8w.js"),require("./NumberField-CuiOrazp.js"),require("./semanticColor-D7luRDLB.js"),require("./types-BbAsZw_6.js"),require("./typography-Cx74j4k8.js");var r=require("./Tooltip-hDvy3-fo.js");require("./StyledPill-DDDGFPYD.js"),require("./Progress-BmBeu7uJ.js"),require("./ProgressBar-Wer8KEv6.js"),require("./Radio-BrBgm9f5.js"),require("./autocomplete.styles-C6N4E0gu.js"),require("./Select-BBrH8EC2.js"),require("./RankItem-D8JL2Loy.js"),require("./SortableList-ad1Z0omV.js"),require("@tiptap/extension-placeholder"),require("@tiptap/extension-underline"),require("@tiptap/starter-kit"),require("mui-tiptap"),require("./RichTextField-BMrpCktt.js");var a=require("./Skeleton-DgvdvSd_.js");require("./Slider-BNY8BtY7.js"),require("./StarRating-lqoK8zFU.js"),require("./Switch-m3rUWkHS.js"),require("./Textarea-j5nWbV1y.js"),require("./TrialPill-h8Y2SoiG.js"),require("./UserMenuButton-CgHpAwrN.js"),require("./VideoModal-B_xOy6H5.js");const l=(t,e)=>{if(!t)return e.custom.palette.text.primary;return{[e.custom.palette.data.sentimentVeryNegative]:e.custom.palette.red[1e3],[e.custom.palette.data.sentimentNegative]:e.custom.palette.red[1e3],[e.custom.palette.data.sentimentNeutral]:e.custom.palette.neutral[1e3],[e.custom.palette.data.sentimentPositive]:e.custom.palette.green[1e3],[e.custom.palette.data.sentimentVeryPositive]:e.custom.palette.green[1e3]}[t]||e.custom.palette.text.primary},u=n.styled(n.Box)((({theme:t})=>({display:"flex",flexDirection:"column",gap:t.spacing(t.custom.margin.md),width:"100%",minWidth:440,maxWidth:500,boxSizing:"border-box"}))),c=n.styled(n.Box)((({theme:t})=>({display:"flex",alignItems:"center",height:56,width:"100%"}))),h=n.styled(n.Box)((({theme:t})=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",gap:t.spacing(t.custom.margin.xs)}))),d=n.styled(n.ListItemButton)((({theme:t})=>({borderRadius:t.spacing(t.custom.radius.md),padding:0,backgroundColor:t.custom.palette.interaction.none,height:"100%",display:"flex",flexGrow:1,flexBasis:0,flexDirection:"column",alignItems:"center",justifyContent:"space-between","&:hover":{backgroundColor:t.custom.palette.interaction.hover,[`& .${n.formControlLabelClasses.root}`]:{[`& .${n.checkboxClasses.root}`]:{backgroundColor:t.custom.palette.blue[0]}}},"&:active":{backgroundColor:t.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:t.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),p=n.styled(n.Box)((({theme:t,color:e})=>({width:24,aspectRatio:"1",borderRadius:"100%",backgroundColor:e}))),m=n.styled(n.Box)((({theme:t})=>({height:36,display:"flex",alignItems:"center",justifyContent:"center"})));n.styled(n.Box)((({theme:t,color:e,animateBars:n})=>({flex:1,backgroundColor:e,borderRadius:t.spacing(t.custom.radius.sm),transition:n?"height 1s ease-in-out":void 0,height:"100%"})));const f=({disabled:u,checked:c,label:h,toolTipContent:f,id:g,onChange:v,color:y,loading:x,slotProps:w={},hideCheckboxes:P,hideLabels:b,hideColorIndicators:T,disableTooltips:S})=>{const A=n.useTheme(),C=e.useRef(null),E=e.useCallback((()=>{!u&&v&&v(g,!c)}),[u,v,c]),V=P&&b&&T,j=u||x||S||!f;return!V&&t.jsx(d,{disabled:u||x,onClick:E,children:t.jsx(r.Tooltip,{followCursor:!0,message:f,disableHoverListener:j||V,...w?.actionsTooltip,slotProps:{wrapper:{sx:{width:"100%",height:"100%",padding:V?0:`${A.spacing(A.custom.margin.sm)} ${A.spacing(A.custom.margin.xs)}`,flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"space-between",gap:A.spacing(A.custom.margin.md),...w?.actionsTooltip?.slotProps?.wrapper?.sx}}},children:t.jsxs(t.Fragment,{children:[t.jsxs(n.Stack,{gap:A.spacing(A.custom.margin.xs),sx:{width:1,alignItems:"center"},children:[!T&&t.jsx(p,{sx:{...w?.actionsSwatchIndicator?.sx},color:u||x?A.custom.palette.interaction.disabled:c?y:A.custom.palette.neutral[100]}),!b&&t.jsx(m,{children:x?t.jsx(a.Skeleton,{width:50,height:20}):t.jsx(s.Typography,{variation:"sm",component:"p",textAlign:"center",...w?.actionsLabel,sx:i.mergeSx({color:u||!c?A.custom.palette.text.disabled:l(y,A)},w?.actionsLabel?.sx),children:h})})]}),!P&&t.jsx(n.Box,{children:x?t.jsx(a.Skeleton,{width:24,height:24}):t.jsx(o.Checkbox,{id:`${g}-checkbox`,variant:"secondary",checked:!u&&c,disabled:u,checkboxLabel:void 0,inputRef:C,...w?.actionsCheckbox,sx:i.mergeSx({mr:0},w?.actionsCheckbox?.sx)})})]})})})},g=e.createContext({});const v=e.createContext(null),y=e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});const x="undefined"!=typeof window,w=x?e.useLayoutEffect:e.useEffect,P=t=>t;let b=P,T=P;function S(t){let e;return()=>(void 0===e&&(e=t()),e)}"production"!==process.env.NODE_ENV&&(b=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},T=(t,e)=>{if(!t)throw new Error(e)});const A=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},C=t=>1e3*t,E=t=>t/1e3,V=!1;const j=["read","resolveKeyframes","update","preRender","render","postRender"];function M(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=j.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=r,p=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:j.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e<j.length;e++)r[j[e]].cancel(t)},state:s,steps:r}}const{schedule:k,cancel:D,state:R,steps:B}=M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:P,!0),L=e.createContext({strict:!1}),F={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"]},I={};for(const t in F)I[t]={isEnabled:e=>F[t].some((t=>!!e[t]))};const O=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 q(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||O.has(t)}let U=t=>!q(t);try{(N=require("@emotion/is-prop-valid").default)&&(U=t=>t.startsWith("on")?!q(t):N(t))}catch(t){}var N;const $=new Set;function W(t,e,n){t||$.has(e)||(console.warn(e),$.add(e))}function z(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>("production"!==process.env.NODE_ENV&&W(!1,"motion() is deprecated. Use motion.create() instead."),t(...e))),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Y=e.createContext({});function K(t){return"string"==typeof t||Array.isArray(t)}function H(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const X=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G=["initial",...X];function _(t){return H(t.animate)||G.some((e=>K(t[e])))}function Z(t){return Boolean(_(t)||t.variants)}function J(t){const{initial:n,animate:i}=function(t,e){if(_(t)){const{initial:e,animate:n}=t;return{initial:!1===e||K(e)?e:void 0,animate:K(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,e.useContext(Y));return e.useMemo((()=>({initial:n,animate:i})),[Q(n),Q(i)])}function Q(t){return Array.isArray(t)?t.join(" "):t}const tt=Symbol.for("motionComponentSymbol");function et(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function nt(t,n,i){return e.useCallback((e=>{e&&t.onMount&&t.onMount(e),n&&(e?n.mount(e):n.unmount()),i&&("function"==typeof i?i(e):et(i)&&(i.current=e))}),[n])}const it=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),st="data-"+it("framerAppearId"),{schedule:ot,cancel:rt}=M(queueMicrotask,!1),at=e.createContext({});function lt(t,n,i,s,o){var r,a;const{visualElement:l}=e.useContext(Y),u=e.useContext(L),c=e.useContext(v),h=e.useContext(y).reducedMotion,d=e.useRef(null);s=s||u.renderer,!d.current&&s&&(d.current=s(t,{visualState:n,parent:l,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));const p=d.current,m=e.useContext(at);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ut(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&et(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=e.useRef(!1);e.useInsertionEffect((()=>{p&&f.current&&p.update(i,c)}));const g=i[st],x=e.useRef(Boolean(g)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return w((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),ot.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())})),e.useEffect((()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,g)})),x.current=!1))})),p}function ut(t){if(t)return!1!==t.options.allowProjection?t.projection:ut(t.parent)}function ct({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:o,Component:r}){var a,l;function u(a,l){let u;const c={...e.useContext(y),...a,layoutId:ht(a)},{isStatic:h}=c,d=J(a),p=o(a,h);if(!h&&x){!function(t,n){const i=e.useContext(L).strict;if("production"!==process.env.NODE_ENV&&n&&i){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?b(!1,e):T(!1,e)}}(c,n);const t=function(t){const{drag:e,layout:n}=I;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(c);u=t.MeasureLayout,d.visualElement=lt(r,p,c,i,t.ProjectionNode)}return t.jsxs(Y.Provider,{value:d,children:[u&&d.visualElement?t.jsx(u,{visualElement:d.visualElement,...c}):null,s(r,a,nt(p,d.visualElement,l),p,h,d.visualElement)]})}n&&function(t){for(const e in t)I[e]={...I[e],...t[e]}}(n),u.displayName=`motion.${"string"==typeof r?r:`create(${null!==(l=null!==(a=r.displayName)&&void 0!==a?a:r.name)&&void 0!==l?l:""})`}`;const c=e.forwardRef(u);return c[tt]=r,c}function ht({layoutId:t}){const n=e.useContext(g).id;return n&&void 0!==t?n+"-"+t:t}const dt=["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 pt(t){return"string"==typeof t&&!t.includes("-")&&!!(dt.indexOf(t)>-1||/[A-Z]/u.test(t))}function mt(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function ft(t,e,n,i){if("function"==typeof e){const[s,o]=mt(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=mt(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const gt=t=>Array.isArray(t),vt=t=>Boolean(t&&t.getVelocity);function yt(t){const e=vt(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const xt=t=>(n,i)=>{const s=e.useContext(Y),o=e.useContext(v),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:wt(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,n,s,o);return i?r():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(r)};function wt(t,e,n,i){const s={},o=i(t,{});for(const t in o)s[t]=yt(o[t]);let{initial:r,animate:a}=t;const l=_(t),u=Z(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const h=c?a:r;if(h&&"boolean"!=typeof h&&!H(h)){const e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){const i=ft(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(s[t]=e)}for(const e in t)s[e]=t[e]}}}return s}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(Pt),Tt=t=>e=>"string"==typeof e&&e.startsWith(t),St=Tt("--"),At=Tt("var(--"),Ct=t=>!!At(t)&&Et.test(t.split("/*")[0].trim()),Et=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,jt=(t,e,n)=>n>e?e:n<t?t:n,Mt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},kt={...Mt,transform:t=>jt(0,1,t)},Dt={...Mt,default:1},Rt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Rt("deg"),Lt=Rt("%"),Ft=Rt("px"),It=Rt("vh"),Ot=Rt("vw"),qt={...Lt,parse:t=>Lt.parse(t)/100,transform:t=>Lt.transform(100*t)},Ut={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft},Nt={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:Bt,skewX:Bt,skewY:Bt,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:kt,originX:qt,originY:qt,originZ:Ft},$t={...Mt,transform:Math.round},Wt={...Ut,...Nt,zIndex:$t,size:Ft,fillOpacity:kt,strokeOpacity:kt,numOctaves:$t},zt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yt=Pt.length;function Kt(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(bt.has(t))r=!0;else if(St(t))s[t]=n;else{const e=Vt(n,Wt[t]);t.startsWith("origin")?(a=!0,o[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<Yt;o++){const r=Pt[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Vt(a,Wt[r]);l||(s=!1,i+=`${zt[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xt={offset:"strokeDashoffset",array:"strokeDasharray"};function Gt(t,e,n){return"string"==typeof t?t:Ft.transform(e+n*t)}function _t(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Kt(t,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Gt(e,t.x,t.width)} ${Gt(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Ht:Xt;t[o.offset]=Ft.transform(-i);const r=Ft.transform(e),a=Ft.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}const Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Jt=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Qt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function te(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}const ee=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 ne(t,e,n,i){te(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ee.has(n)?n:it(n),e.attrs[n])}const ie={};function se(t,{layout:e,layoutId:n}){return bt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!ie[t]||"opacity"===t)}function oe(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(vt(s[r])||e.style&&vt(e.style[r])||se(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function re(t,e,n){const i=oe(t,e,n);for(const n in t)if(vt(t[n])||vt(e[n])){i[-1!==Pt.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const ae=["x","y","width","height","cx","cy","r"],le={useVisualState:xt({scrapeMotionValuesFromProps:re,createRenderState:Jt,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const t in s)if(bt.has(t)){o=!0;break}if(!o)return;let r=!e;if(e)for(let n=0;n<ae.length;n++){const i=ae[n];t[i]!==e[i]&&(r=!0)}r&&k.read((()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),k.render((()=>{_t(i,s,Qt(n.tagName),t.transformTemplate),ne(n,i)}))}))}})},ue={useVisualState:xt({scrapeMotionValuesFromProps:oe,createRenderState:Zt})};function ce(t,e,n){for(const i in e)vt(e[i])||se(i,n)||(t[i]=e[i])}function he(t,n){const i={};return ce(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},n){return e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Kt(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),i}function de(t,e){const n={},i=he(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function pe(t,n,i,s){const o=e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _t(e,n,Qt(s),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};ce(e,t.style,t),o.style={...e,...o.style}}return o}function me(t=!1){return(n,i,s,{latestValues:o},r)=>{const a=(pt(n)?pe:de)(i,o,r,n),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(U(s)||!0===n&&q(s)||!e&&!q(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(i,"string"==typeof n,t),u=n!==e.Fragment?{...l,...a,ref:s}:{},{children:c}=i,h=e.useMemo((()=>vt(c)?c.get():c),[c]);return e.createElement(n,{...u,children:h})}}function fe(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return ct({...pt(n)?le:ue,preloadedFeatures:t,useRender:me(i),createVisualElement:e,Component:n})}}function ge(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ve(t,e,n){const i=t.getProps();return ft(i,e,void 0!==n?n:i.custom,t)}const ye=S((()=>void 0!==window.ScrollTimeline));class xe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t=>"finished"in t?t.finished:t)))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>ye()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class we extends xe{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function Pe(t,e){return t?t[e]||t.default||t:void 0}const be=2e4;function Te(t){let e=0;let n=t.next(e);for(;!n.done&&e<be;)e+=50,n=t.next(e);return e>=be?1/0:e}function Se(t){return"function"==typeof t}function Ae(t,e){t.timeline=e,t.onfinish=null}const Ce=t=>Array.isArray(t)&&"number"==typeof t[0],Ee={linearEasing:void 0};function Ve(t,e){const n=S(t);return()=>{var t;return null!==(t=Ee[e])&&void 0!==t?t:n()}}const je=Ve((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing"),Me=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=t(A(0,s-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};function ke(t){return Boolean("function"==typeof t&&je()||!t||"string"==typeof t&&(t in Re||je())||Ce(t)||Array.isArray(t)&&t.every(ke))}const De=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:De([0,.65,.55,1]),circOut:De([.55,0,1,.45]),backIn:De([.31,.01,.66,-.59]),backOut:De([.33,1.53,.69,.99])};function Be(t,e){return t?"function"==typeof t&&je()?Me(t,e):Ce(t)?De(t):Array.isArray(t)?t.map((t=>Be(t,e)||Re.easeOut)):Re[t]:void 0}const Le={x:!1,y:!1};function Fe(){return Le.x||Le.y}function Ie(t,e){const n=function(t){if(t instanceof Element)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Oe(t){return!("touch"===t.pointerType||Fe())}const qe=(t,e)=>!!e&&(t===e||qe(t,e.parentElement)),Ue=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Ne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const $e=new WeakSet;function We(t){return e=>{"Enter"===e.key&&t(e)}}function ze(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Ye(t){return Ue(t)&&!Fe()}function Ke(t,e,n={}){const[i,s,o]=Ie(t,n),r=t=>{const i=t.currentTarget;if(!Ye(t)||$e.has(i))return;$e.add(i);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Ye(t)&&$e.has(i)&&($e.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||qe(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach((t=>{(function(t){return Ne.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0);(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=We((()=>{if($e.has(n))return;ze(n,"down");const t=We((()=>{ze(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>ze(n,"cancel")),e)}));n.addEventListener("keydown",i,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",i)),e)})(t,s)),s)})),o}const He=new Set(["width","height","top","left","right","bottom",...Pt]);let Xe;function Ge(){Xe=void 0}const _e={now:()=>(void 0===Xe&&_e.set(R.isProcessing||V?R.timestamp:performance.now()),Xe),set:t=>{Xe=t,queueMicrotask(Ge)}};function Ze(t,e){-1===t.indexOf(e)&&t.push(e)}function Je(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qe{constructor(){this.subscriptions=[]}add(t){return Ze(this.subscriptions,t),()=>Je(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tn(t,e){return e?t*(1e3/e):0}class en{constructor(t,e={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=_e.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=_e.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&W(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Qe);const n=this.events[t].add(e);return"change"===t?()=>{n(),k.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=_e.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(t,e){return new en(t,e)}function sn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nn(n))}function on(t,e){const n=t.getValue("willChange");if(i=n,Boolean(vt(i)&&i.add))return n.add(e);var i}function rn(t){return t.props[st]}const an=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ln(t,e,n,i){if(t===e&&n===i)return P;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=an(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:an(s(t),e,i)}const un=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,cn=t=>e=>1-t(1-e),hn=ln(.33,1.53,.69,.99),dn=cn(hn),pn=un(dn),mn=t=>(t*=2)<1?.5*dn(t):.5*(2-Math.pow(2,-10*(t-1))),fn=t=>1-Math.sin(Math.acos(t)),gn=cn(fn),vn=un(fn),yn=t=>/^0[^.\s]+$/u.test(t);const xn=t=>Math.round(1e5*t)/1e5,wn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Pn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bn=(t,e)=>n=>Boolean("string"==typeof n&&Pn.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tn=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(wn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Sn={...Mt,transform:t=>Math.round((t=>jt(0,255,t))(t))},An={test:bn("rgb","red"),parse:Tn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Sn.transform(t)+", "+Sn.transform(e)+", "+Sn.transform(n)+", "+xn(kt.transform(i))+")"};const Cn={test:bn("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:An.transform},En={test:bn("hsl","hue"),parse:Tn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Lt.transform(xn(e))+", "+Lt.transform(xn(n))+", "+xn(kt.transform(i))+")"},Vn={test:t=>An.test(t)||Cn.test(t)||En.test(t),parse:t=>An.test(t)?An.parse(t):En.test(t)?En.parse(t):Cn.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?An.transform(t):En.transform(t)},jn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Mn="number",kn="color",Dn=/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 Rn(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Dn,(t=>(Vn.test(t)?(i.color.push(o),s.push(kn),n.push(Vn.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(Mn),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:r,indexes:i,types:s}}function Bn(t){return Rn(t).values}function Ln(t){const{split:e,types:n}=Rn(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Mn?xn(t[o]):e===kn?Vn.transform(t[o]):t[o]}return s}}const Fn=t=>"number"==typeof t?0:t;const In={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(wn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(jn))||void 0===n?void 0:n.length)||0)>0},parse:Bn,createTransformer:Ln,getAnimatableNone:function(t){const e=Bn(t);return Ln(t)(e.map(Fn))}},On=new Set(["brightness","contrast","saturate","opacity"]);function qn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(wn)||[];if(!i)return t;const s=n.replace(i,"");let o=On.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Un=/\b([a-z-]*)\(.*?\)/gu,Nn={...In,getAnimatableNone:t=>{const e=t.match(Un);return e?e.map(qn).join(" "):t}},$n={...Wt,color:Vn,backgroundColor:Vn,outlineColor:Vn,fill:Vn,stroke:Vn,borderColor:Vn,borderTopColor:Vn,borderRightColor:Vn,borderBottomColor:Vn,borderLeftColor:Vn,filter:Nn,WebkitFilter:Nn},Wn=t=>$n[t];function zn(t,e){let n=Wn(t);return n!==Nn&&(n=In),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Yn=new Set(["auto","none","0"]);const Kn=t=>t===Mt||t===Ft,Hn=(t,e)=>parseFloat(t.split(", ")[e]),Xn=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Hn(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Hn(e[1],t):0}},Gn=new Set(["x","y","z"]),_n=Pt.filter((t=>!Gn.has(t)));const Zn={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:Xn(4,13),y:Xn(5,14)};Zn.translateX=Zn.x,Zn.translateY=Zn.y;const Jn=new Set;let Qn=!1,ti=!1;function ei(){if(ti){const t=Array.from(Jn).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return _n.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}ti=!1,Qn=!1,Jn.forEach((t=>t.complete())),Jn.clear()}function ni(){Jn.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(ti=!0)}))}class ii{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jn.add(this),Qn||(Qn=!0,k.read(ni),k.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const si=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ri(t,e,n=1){T(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=oi.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return si(t)?parseFloat(t):t}return Ct(s)?ri(s,e,n+1):s}const ai=t=>e=>e.test(t),li=[Mt,Ft,Lt,Bt,Ot,It,{test:t=>"auto"===t,parse:t=>t}],ui=t=>li.find(ai(t));class ci extends ii{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),Ct(i))){const s=ri(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!He.has(n)||2!==t.length)return;const[i,s]=t,o=ui(i),r=ui(s);if(o!==r)if(Kn(o)&&Kn(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||yn(i))&&n.push(e);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Yn.has(e)&&Rn(e).values.length&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]=zn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Zn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}const hi=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!In.test(t)&&"0"!==t||t.startsWith("url(")));function di(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=hi(s,e),a=hi(o,e);return b(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Se(n))&&i)}const pi=t=>null!==t;function mi(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(pi),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class fi{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=_e.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ni(),ei()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=_e.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!di(t,n,i,s)){if(!o)return a&&a(mi(t,this.options,e)),r&&r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const gi=(t,e,n)=>t+(e-t)*n;function vi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function yi(t,e){return n=>n>0?e:t}const xi=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},wi=[Cn,An,En];function Pi(t){const e=(n=t,wi.find((t=>t.test(n))));var n;if(b(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===En&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=vi(a,i,t+1/3),o=vi(a,i,t),r=vi(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const bi=(t,e)=>{const n=Pi(t),i=Pi(e);if(!n||!i)return yi(t,e);const s={...n};return t=>(s.red=xi(n.red,i.red,t),s.green=xi(n.green,i.green,t),s.blue=xi(n.blue,i.blue,t),s.alpha=gi(n.alpha,i.alpha,t),An.transform(s))},Ti=(t,e)=>n=>e(t(n)),Si=(...t)=>t.reduce(Ti),Ai=new Set(["none","hidden"]);function Ci(t,e){return n=>gi(t,e,n)}function Ei(t){return"number"==typeof t?Ci:"string"==typeof t?Ct(t)?yi:Vn.test(t)?bi:Mi:Array.isArray(t)?Vi:"object"==typeof t?Vn.test(t)?bi:ji:yi}function Vi(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>Ei(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function ji(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Ei(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Mi=(t,e)=>{const n=In.createTransformer(e),i=Rn(t),s=Rn(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Ai.has(t)&&!s.values.length||Ai.has(e)&&!i.values.length?function(t,e){return Ai.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Si(Vi(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,s[r]++}return i}(i,s),s.values),n):(b(!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.`),yi(t,e))};function ki(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return gi(t,e,n);return Ei(t)(t,e)}function Di(t,e,n){const i=Math.max(e-5,0);return tn(n-t(i),e-i)}const Ri=100,Bi=10,Li=1,Fi=0,Ii=800,Oi=.3,qi=.3,Ui={granular:.01,default:2},Ni={granular:.005,default:.5},$i=.01,Wi=10,zi=.05,Yi=1;function Ki({duration:t=Ii,bounce:e=Oi,velocity:n=Fi,mass:i=Li}){let s,o;b(t<=C(Wi),"Spring duration must be 10 seconds or less");let r=1-e;r=jt(zi,Yi,r),t=jt($i,Wi,E(t)),r<1?(s=e=>{const i=e*r,s=i*t;return.001-(i-n)/Xi(e,r)*Math.exp(-s)},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Xi(Math.pow(e,2),r);return(.001-s(e)>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<Hi;n++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=C(t),isNaN(a))return{stiffness:Ri,damping:Bi,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const Hi=12;function Xi(t,e){return t*Math.sqrt(1-e*e)}const Gi=["duration","bounce"],_i=["stiffness","damping","mass"];function Zi(t,e){return e.some((e=>void 0!==t[e]))}function Ji(t=qi,e=Oi){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Fi,stiffness:Ri,damping:Bi,mass:Li,isResolvedFromDuration:!1,...t};if(!Zi(t,_i)&&Zi(t,Gi))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*jt(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Li,stiffness:s,damping:o}}else{const n=Ki(t);e={...e,...n,mass:Li},e.isResolvedFromDuration=!0}return e}({...n,velocity:-E(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),g=r-o,v=E(Math.sqrt(l/c)),y=Math.abs(g)<5;let x;if(i||(i=y?Ui.granular:Ui.default),s||(s=y?Ni.granular:Ni.default),f<1){const t=Xi(v,f);x=e=>{const n=Math.exp(-f*v*e);return r-n*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const w={calculatedDuration:p&&h||null,next:t=>{const e=x(t);if(p)a.done=t>=h;else{let n=0;f<1&&(n=0===t?C(m):Di(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Te(w),be),e=Me((e=>w.next(t*e).value),t,30);return t+"ms "+e}};return w}function Qi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,g=void 0===r?f:r(f);g!==f&&(m=g-h);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let w,P;const b=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,P=Ji({keyframes:[d.value,p(d.value)],velocity:Di(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),b(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}const ts=ln(.42,0,1,1),es=ln(0,0,.58,1),ns=ln(.42,0,.58,1),is={linear:P,easeIn:ts,easeInOut:ns,easeOut:es,circIn:fn,circInOut:vn,circOut:gn,backIn:dn,backInOut:pn,backOut:hn,anticipate:mn},ss=t=>{if(Ce(t)){T(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return ln(e,n,i,s)}return"string"==typeof t?(T(void 0!==is[t],`Invalid easing type '${t}'`),is[t]):t};function os(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(T(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||ki,o=t.length-1;for(let n=0;n<o;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||P:e;o=Si(t,o)}i.push(o)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=A(t[i],t[i+1],n);return a[i](s)};return n?e=>u(jt(t[0],t[o-1],e)):u}function rs(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=A(0,e,i);t.push(gi(n,1,s))}}(e,t.length-1),e}function as({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(ss):ss(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:rs(e),t),a=os(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||ns)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const ls=t=>{const e=({timestamp:e})=>t(e);return{start:()=>k.update(e,!0),stop:()=>D(e),now:()=>R.isProcessing?R.timestamp:_e.now()}},us={decay:Qi,inertia:Qi,tween:as,keyframes:as,spring:Ji},cs=t=>t/100;class hs extends fi{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||ii;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=Se(e)?e:us[e]||as;let a,l;r!==as&&"number"!=typeof t[0]&&("production"!==process.env.NODE_ENV&&T(2===t.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=Si(cs,ki(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Te(u));const{calculatedDuration:c}=u,h=c+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=o)),y=jt(0,1,n)*c}const w=v?{done:!1,value:a[0]}:x.next(y);r&&(w.value=r(w.value));let{done:P}=w;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==i&&(w.value=mi(a,this.options,i)),f&&f(w.value),b&&this.finish(),w}get duration(){const{resolved:t}=this;return t?E(t.calculatedDuration):0}get time(){return E(this.currentTime)}set time(t){t=C(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=E(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=ls,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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(t){return this.startTime=0,this.tick(t,!0)}}const ds=new Set(["opacity","clipPath","filter","transform"]);function ps(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Be(a,s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}const ms=S((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const fs={anticipate:mn,backInOut:pn,circInOut:vn};class gs extends fi{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ci(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:l}=this.options;if(!r.owner||!r.owner.current)return!1;var u;if("string"==typeof s&&je()&&s in fs&&(s=fs[s]),Se((u=this.options).type)||"spring"===u.type||!ke(u.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new hs({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,i=c.times,s=c.ease,o="keyframes"}const c=ps(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Ae(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;r.set(mi(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return E(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return E(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=C(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return P;const{animation:n}=e;Ae(n,t)}else this.pendingTimeline=t;return P}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new hs({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),h=C(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ms()&&n&&ds.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const vs={type:"spring",stiffness:500,damping:25,restSpeed:10},ys={type:"keyframes",duration:.8},xs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ws=(t,{keyframes:e})=>e.length>2?ys:bt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:vs:xs;const Ps=(t,e,n,i={},s,o)=>r=>{const a=Pe(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=C(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...ws(t,c)}),c.duration&&(c.duration=C(c.duration)),c.repeatDelay&&(c.repeatDelay=C(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),h&&!o&&void 0!==e.get()){const t=mi(c.keyframes,a);if(void 0!==t)return k.update((()=>{c.onUpdate(t),c.onComplete()})),new we([])}return!o&&gs.supports(c)?new gs(c):new hs(c)};function bs({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Ts(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const e in l){const i=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),s=l[e];if(void 0===s||c&&bs(c,e))continue;const a={delay:n,...Pe(r||{},e)};let h=!1;if(window.MotionHandoffAnimation){const n=rn(t);if(n){const t=window.MotionHandoffAnimation(n,e,k);null!==t&&(a.startTime=t,h=!0)}}on(t,e),i.start(Ps(e,i,s,t.shouldReduceMotion&&He.has(e)?{type:!1}:a,t,h));const d=i.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{k.update((()=>{a&&function(t,e){const n=ve(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const e in o)sn(t,e,(r=o[e],gt(r)?r[r.length-1]||0:r));var r}(t,a)}))})),u}function Ss(t,e,n={}){var i;const s=ve(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Ts(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(As).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Ss(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function As(t,e){return t.sortNodePosition(e)}const Cs=G.length;function Es(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Es(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Cs;n++){const i=G[n],s=t.props[i];(K(s)||!1===s)&&(e[i]=s)}return e}const Vs=[...X].reverse(),js=X.length;function Ms(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Ss(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Ss(t,e,n);else{const s="function"==typeof e?ve(t,e,n.custom):e;i=Promise.all(Ts(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function ks(t){let e=Ms(t),n=Bs(),i=!0;const s=e=>(n,i)=>{var s;const o=ve(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=Es(t.parent)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<js;e++){const d=Vs[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=K(m),g=d===o?p.isActive:null;!1===g&&(h=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||H(m)||"boolean"==typeof m)continue;const y=Ds(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>h&&f,w=!1;const P=Array.isArray(m)?m:[m];let b=P.reduce(s(d),{});!1===g&&(b={});const{prevResolvedValues:T={}}=p,S={...T,...b},A=e=>{x=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in S){const e=b[t],n=T[t];if(c.hasOwnProperty(t))continue;let i=!1;i=gt(e)&&gt(n)?!ge(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(c={...c,...b}),i&&t.blockInitialAnimation&&(x=!1);x&&(!(v&&y)||w)&&l.push(...P.map((t=>({animation:t,options:{type:d}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Bs(),i=!0}}}function Ds(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ge(e,t)}function Rs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bs(){return{animate:Rs(!0),whileInView:Rs(),whileHover:Rs(),whileTap:Rs(),whileDrag:Rs(),whileFocus:Rs(),exit:Rs()}}class Ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Fs=0;const Is={animation:{Feature:class extends Ls{constructor(t){super(t),t.animationState||(t.animationState=ks(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();H(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Ls{constructor(){super(...arguments),this.id=Fs++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function Os(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function qs(t){return{point:{x:t.pageX,y:t.pageY}}}function Us(t,e,n,i){return Os(t,e,(t=>e=>Ue(e)&&t(e,qs(e)))(n),i)}const Ns=(t,e)=>Math.abs(t-e);class $s{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!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 t=Ys(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ns(t.x,e.x),i=Ns(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=R;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ws(e,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Ys("pointercancel"===t.type?this.lastMoveEventInfo:Ws(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Ue(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=Ws(qs(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=R;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Ys(o,this.history)),this.removeListeners=Si(Us(this.contextWindow,"pointermove",this.handlePointerMove),Us(this.contextWindow,"pointerup",this.handlePointerUp),Us(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),D(this.updatePoint)}}function Ws(t,e){return e?{point:e(t.point)}:t}function zs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ys({point:t},e){return{point:t,delta:zs(t,Hs(e)),offset:zs(t,Ks(e)),velocity:Xs(e,.1)}}function Ks(t){return t[0]}function Hs(t){return t[t.length-1]}function Xs(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Hs(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>C(e)));)n--;if(!i)return{x:0,y:0};const o=E(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Gs(t){return t.max-t.min}function _s(t,e,n,i=.5){t.origin=i,t.originPoint=gi(e.min,e.max,t.origin),t.scale=Gs(n)/Gs(e),t.translate=gi(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Zs(t,e,n,i){_s(t.x,e.x,n.x,i?i.originX:void 0),_s(t.y,e.y,n.y,i?i.originY:void 0)}function Js(t,e,n){t.min=n.min+e.min,t.max=t.min+Gs(e)}function Qs(t,e,n){t.min=e.min-n.min,t.max=t.min+Gs(e)}function to(t,e,n){Qs(t.x,e.x,n.x),Qs(t.y,e.y,n.y)}function eo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function no(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const io=.35;function so(t,e,n){return{min:oo(t,e),max:oo(t,n)}}function oo(t,e){return"number"==typeof t?t:t[e]||0}const ro=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ao(t){return[t("x"),t("y")]}function lo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function uo(t){return void 0===t||1===t}function co({scale:t,scaleX:e,scaleY:n}){return!uo(t)||!uo(e)||!uo(n)}function ho(t){return co(t)||po(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function po(t){return mo(t.x)||mo(t.y)}function mo(t){return t&&"0%"!==t}function fo(t,e,n){return n+e*(t-n)}function go(t,e,n,i,s){return void 0!==s&&(t=fo(t,s,i)),fo(t,n,i)+e}function vo(t,e=0,n=1,i,s){t.min=go(t.min,e,n,i,s),t.max=go(t.max,e,n,i,s)}function yo(t,{x:e,y:n}){vo(t.x,e.translate,e.scale,e.originPoint),vo(t.y,n.translate,n.scale,n.originPoint)}const xo=.999999999999,wo=1.0000000000001;function Po(t,e){t.min=t.min+e,t.max=t.max+e}function bo(t,e,n,i,s=.5){vo(t,e,n,gi(t.min,t.max,s),i)}function To(t,e){bo(t.x,e.x,e.scaleX,e.scale,e.originX),bo(t.y,e.y,e.scaleY,e.scale,e.originY)}function So(t,e){return lo(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Ao=({current:t})=>t?t.ownerDocument.defaultView:null,Co=new WeakMap;class Eo{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new $s(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(qs(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Le[o]?null:(Le[o]=!0,()=>{Le[o]=!1}):Le.x||Le.y?null:(Le.x=Le.y=!0,()=>{Le.x=Le.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ao((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Lt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Gs(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&k.postRender((()=>s(t,e))),on(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ao((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Ao(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&k.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Vo(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?gi(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?gi(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&et(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:eo(t.x,n,s),y:eo(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=io){return!1===t?t=0:!0===t&&(t=io),{x:so(t,"left","right"),y:so(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ao((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!et(t))return!1;const n=t.current;T(null!==n,"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 s=function(t,e,n){const i=So(t,n),{scroll:s}=e;return s&&(Po(i.x,s.offset.x),Po(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:no(t.x,e.x),y:no(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=lo(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ao((r=>{if(!Vo(r,e,this.currentDirection))return;let l=a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return on(this.visualElement,t),n.start(Ps(t,n,0,e,this.visualElement,!1))}stopAnimation(){ao((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ao((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ao((e=>{const{drag:n}=this.getProps();if(!Vo(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-gi(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!et(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ao((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Gs(t),s=Gs(e);return s>i?n=A(e.min,e.max-i,t.min):i>s&&(n=A(t.min,t.max-s,e.min)),jt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ao((e=>{if(!Vo(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(gi(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Co.set(this.visualElement,this);const t=Us(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();et(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),k.read(e);const s=Os(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ao((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=io,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function Vo(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const jo=t=>(e,n)=>{t&&k.postRender((()=>t(e,n)))};const Mo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ko(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Do={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Ft.test(t))return t;t=parseFloat(t)}return`${ko(t,e.target.x)}% ${ko(t,e.target.y)}%`}},Ro={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=In.parse(t);if(s.length>5)return i;const o=In.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=gi(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}};class Bo extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;!function(t){for(const e in t)ie[e]=t[e],St(e)&&(ie[e].isCSSVariable=!0)}(Fo),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Mo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||k.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ot.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Lo(n){const[i,s]=function(t=!0){const n=e.useContext(v);if(null===n)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=n,r=e.useId();e.useEffect((()=>{t&&o(r)}),[t]);const a=e.useCallback((()=>t&&s&&s(r)),[r,s,t]);return!i&&s?[!1,a]:[!0]}(),o=e.useContext(g);return t.jsx(Bo,{...n,layoutGroup:o,switchLayoutGroup:e.useContext(at),isPresent:i,safeToRemove:s})}const Fo={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:Ro};const Io=(t,e)=>t.depth-e.depth;class Oo{constructor(){this.children=[],this.isDirty=!1}add(t){Ze(this.children,t),this.isDirty=!0}remove(t){Je(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Io),this.isDirty=!1,this.children.forEach(t)}}const qo=["TopLeft","TopRight","BottomLeft","BottomRight"],Uo=qo.length,No=t=>"string"==typeof t?parseFloat(t):t,$o=t=>"number"==typeof t||Ft.test(t);function Wo(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const zo=Ko(0,.5,gn),Yo=Ko(.5,.95,P);function Ko(t,e,n){return i=>i<t?0:i>e?1:n(A(t,e,i))}function Ho(t,e){t.min=e.min,t.max=e.max}function Xo(t,e){Ho(t.x,e.x),Ho(t.y,e.y)}function Go(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function _o(t,e,n,i,s){return t=fo(t-=e,1/n,i),void 0!==s&&(t=fo(t,1/s,i)),t}function Zo(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Lt.test(e)&&(e=parseFloat(e),e=gi(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=gi(o.min,o.max,i);t===o&&(a-=e),t.min=_o(t.min,e,n,a,s),t.max=_o(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Jo=["x","scaleX","originX"],Qo=["y","scaleY","originY"];function tr(t,e,n,i){Zo(t.x,e,Jo,n?n.x:void 0,i?i.x:void 0),Zo(t.y,e,Qo,n?n.y:void 0,i?i.y:void 0)}function er(t){return 0===t.translate&&1===t.scale}function nr(t){return er(t.x)&&er(t.y)}function ir(t,e){return t.min===e.min&&t.max===e.max}function sr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function or(t,e){return sr(t.x,e.x)&&sr(t.y,e.y)}function rr(t){return Gs(t.x)/Gs(t.y)}function ar(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class lr{constructor(){this.members=[]}add(t){Ze(this.members,t),t.scheduleRender()}remove(t){if(Je(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ur={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cr="undefined"!=typeof window&&void 0!==window.MotionDebug,hr=["","X","Y","Z"],dr={visibility:"hidden"};let pr=0;function mr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=rn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&fr(i)}function gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=pr++,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,cr&&(ur.totalNodes=ur.resolvedTargetDeltas=ur.recalculatedProjection=0),this.nodes.forEach(xr),this.nodes.forEach(Cr),this.nodes.forEach(Er),this.nodes.forEach(wr),cr&&window.MotionDebug.record(ur)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Oo)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Qe),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=_e.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(D(i),t(o-e))};return k.read(i,!0),()=>D(i)}(i,250),Mo.hasAnimatedSinceResize&&(Mo.hasAnimatedSinceResize=!1,this.nodes.forEach(Ar))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||Rr,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!or(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Pe(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ar(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,D(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(Vr),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(br);this.isUpdating||this.nodes.forEach(Tr),this.isUpdating=!1,this.nodes.forEach(Sr),this.nodes.forEach(vr),this.nodes.forEach(yr),this.clearAllSnapshots();const t=_e.now();R.delta=jt(0,1e3/60,t-R.timestamp),R.timestamp=t,R.isProcessing=!0,B.update.process(R),B.preRender.process(R),B.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ot.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pr),this.sharedNodes.forEach(jr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Gs(this.snapshot.measuredBox.x)||Gs(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nr(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||ho(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Fr((i=n).x),Fr(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Or))){const{scroll:t}=this.root;t&&(Po(n.x,t.offset.x),Po(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Xo(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e<this.path.length;e++){const i=this.path[e],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&Xo(n,t),Po(n.x,s.offset.x),Po(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xo(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&To(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),ho(i.latestValues)&&To(n,i.latestValues)}return ho(this.latestValues)&&To(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Xo(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!ho(n.latestValues))continue;co(n.latestValues)&&n.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};Xo(i,n.measurePageBox()),tr(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return ho(this.latestValues)&&tr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},to(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Xo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Js(r.x,a.x,l.x),Js(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xo(this.target,this.layout.layoutBox),yo(this.target,this.targetDelta)):Xo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},to(this.relativeTargetOrigin,this.target,t.target),Xo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}cr&&ur.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!co(this.parent.latestValues)&&!po(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===R.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;Xo(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&To(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yo(t,r)),i&&ho(o.latestValues)&&To(t,o.latestValues))}e.x<wo&&e.x>xo&&(e.x=1),e.y<wo&&e.y>xo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Go(this.prevProjectionDelta.x,this.projectionDelta.x),Go(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Zs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&ar(this.projectionDelta.x,this.prevProjectionDelta.x)&&ar(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),cr&&ur.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Dr));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;Mr(o.x,t.x,n),Mr(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(to(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,kr(p.x,m.x,f.x,g),kr(p.y,m.y,f.y,g),h&&(l=this.relativeTarget,d=h,ir(l.x,d.x)&&ir(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),Xo(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=gi(0,void 0!==n.opacity?n.opacity:1,zo(i)),t.opacityExit=gi(void 0!==e.opacity?e.opacity:1,0,Yo(i))):o&&(t.opacity=gi(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<Uo;s++){const o=`border${qo[s]}Radius`;let r=Wo(e,o),a=Wo(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||$o(r)===$o(a)?(t[o]=Math.max(gi(No(r),No(a),i),0),(Lt.test(a)||Lt.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=gi(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(D(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update((()=>{Mo.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=vt(t)?t:nn(t);return i.start(Ps("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Ir(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Gs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Gs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Xo(e,n),To(e,s),Zs(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new lr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&mr("z",t,i,this.animationValues);for(let e=0;e<hr.length;e++)mr(`rotate${hr[e]}`,t,i,this.animationValues),mr(`skew${hr[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return dr;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=yt(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=yt(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ho(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in ie){if(void 0===r[t])continue;const{correct:e,applyTo:n,isCSSVariable:s}=ie[t],a="none"===i.transform?r[t]:e(r[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=a}else s?this.options.visualElement.renderState.vars[t]=a:i[t]=a}return this.options.layoutId&&(i.pointerEvents=o===this?yt(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(br),this.root.sharedNodes.clear()}}}function vr(t){t.updateLayout()}function yr(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ao((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Gs(i);i.min=e[t].min,i.max=i.min+s})):Ir(s,n.layoutBox,e)&&ao((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Gs(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Zs(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Zs(a,t.applyTransform(i,!0),n.measuredBox):Zs(a,e,n.layoutBox);const l=!nr(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};to(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};to(a,e,o.layoutBox),or(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function xr(t){cr&&ur.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function wr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Pr(t){t.clearSnapshot()}function br(t){t.clearMeasurements()}function Tr(t){t.isLayoutDirty=!1}function Sr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ar(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Cr(t){t.resolveTargetDelta()}function Er(t){t.calcProjection()}function Vr(t){t.resetSkewAndRotation()}function jr(t){t.removeLeadSnapshot()}function Mr(t,e,n){t.translate=gi(e.translate,0,n),t.scale=gi(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function kr(t,e,n,i){t.min=gi(e.min,n.min,i),t.max=gi(e.max,n.max,i)}function Dr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Rr={duration:.45,ease:[.4,0,.1,1]},Br=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Lr=Br("applewebkit/")&&!Br("chrome/")?Math.round:P;function Fr(t){t.min=Lr(t.min),t.max=Lr(t.max)}function Ir(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=rr(e),s=rr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Or(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const qr=gr({attachResizeListener:(t,e)=>Os(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ur={current:void 0},Nr=gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ur.current){const t=new qr({});t.mount(window),t.setOptions({layoutScroll:!0}),Ur.current=t}return Ur.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),$r={pan:{Feature:class extends Ls{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(t){this.session=new $s(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ao(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:jo(t),onStart:jo(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&k.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Us(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ls{constructor(t){super(t),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Eo(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Nr,MeasureLayout:Lo}};function Wr(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&k.postRender((()=>s(e,qs(e))))}function zr(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&k.postRender((()=>s(e,qs(e))))}const Yr=new WeakMap,Kr=new WeakMap,Hr=t=>{const e=Yr.get(t.target);e&&e(t)},Xr=t=>{t.forEach(Hr)};function Gr(t,e,n){const i=function({root:t,...e}){const n=t||document;Kr.has(n)||Kr.set(n,{});const i=Kr.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Xr,{root:t,...e})),i[s]}(e);return Yr.set(t,n),i.observe(t),()=>{Yr.delete(t),i.unobserve(t)}}const _r={some:0,all:1};const Zr={inView:{Feature:class extends Ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:_r[i]};return Gr(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=Ke(t,((t,e)=>(zr(this.node,e,"Start"),(t,{success:e})=>zr(this.node,t,e?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ls{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Si(Os(this.node.current,"focus",(()=>this.onFocus())),Os(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=Ie(t,n),r=t=>{if(!Oe(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const o=t=>{Oe(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,s)};return i.forEach((t=>{t.addEventListener("pointerenter",r,s)})),o}(t,((t,e)=>(Wr(this.node,e,"Start"),t=>Wr(this.node,t,"End")))))}unmount(){}}}},Jr={layout:{ProjectionNode:Nr,MeasureLayout:Lo}},Qr={current:null},ta={current:!1};const ea=[...li,Vn,In],na=new WeakMap;const ia=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sa{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ii,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=_e.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,k.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=_(e),this.isVariantNode=Z(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&vt(e)&&e.set(a[t],!1)}}mount(t){this.current=t,na.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),ta.current||function(){if(ta.current=!0,x)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qr.current=t.matches;t.addListener(e),e()}else Qr.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qr.current),"production"!==process.env.NODE_ENV&&W(!0!==this.shouldReduceMotion,"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(){na.delete(this.current),this.projection&&this.projection.unmount(),D(this.notifyUpdate),D(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=bt.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in I){const e=I[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ia.length;e++){const n=ia[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(vt(s))t.addValue(i,s),"development"===process.env.NODE_ENV&&W("12.0.6"===s.version,`Attempting to mix Motion versions ${s.version} with 12.0.6 may not work as expected.`);else if(vt(o))t.addValue(i,nn(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,nn(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(si(i)||yn(i))?i=parseFloat(i):(s=i,!ea.find(ai(s))&&In.test(e)&&(i=zn(t,e))),this.setBaseTarget(t,vt(i)?i.get():i)),vt(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=ft(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||vt(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Qe),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class oa extends sa{constructor(){super(...arguments),this.KeyframeResolver=ci}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vt(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class ra extends oa{constructor(){super(...arguments),this.type="html",this.renderInstance=te}readValueFromInstance(t,e){if(bt.has(e)){const t=Wn(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(St(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return So(t,e)}build(t,e,n){Kt(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return oe(t,e,n)}}class aa extends oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ro}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(bt.has(e)){const t=Wn(e);return t&&t.default||0}return e=ee.has(e)?e:it(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return re(t,e,n)}build(t,e,n){_t(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){ne(t,e,0,i)}mount(t){this.isSVGTag=Qt(t.tagName),super.mount(t)}}const la=z(fe({...Is,...Zr,...$r,...Jr},((t,n)=>pt(t)?new aa(n):new ra(n,{allowProjection:t!==e.Fragment})))),ua=({relativePercentage:o,amount:u,color:c,animateBars:h,disabled:d,loading:p,toolTipContent:m,hideAmount:f,disableTooltips:g,checked:v,hidePercentageSymbol:y,slotProps:x})=>{const w=n.useTheme(),P=o&&o>8,[b,T]=e.useState(0);return e.useEffect((()=>{const t=p?20:o||0,e=h?b||0:t,n=performance.now(),i=s=>{const o=s-n,r=Math.min(o/250,1);T(e+(t-e)*(r*(2-r))),r<1&&requestAnimationFrame(i)},s=requestAnimationFrame(i);return()=>cancelAnimationFrame(s)}),[u,p]),t.jsx(n.Box,{component:la.div,...x?.graphBar,sx:i.mergeSx({height:"100%",width:`${b}%`,background:d||!v?w.custom.palette.neutral[100]:p?w.custom.palette.interaction.none:c,borderRadius:w.spacing(w.custom.radius.sm),border:`1px solid ${w.custom.palette.icon.lockedWhite}`,boxSizing:"border-box",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},x?.graphBar?.sx),initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.3,ease:"easeOut"},children:t.jsx(r.Tooltip,{message:m,placement:"top",disableHoverListener:!m||d||p||g,followCursor:!0,...x?.graphBarTooltip,slotProps:{wrapper:{sx:{width:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...x?.graphBarTooltip?.slotProps?.wrapper?.sx}}},children:t.jsx(t.Fragment,{children:p?t.jsx(a.Skeleton,{width:"100%",height:"100%",sx:{borderRadius:w.spacing(w.custom.radius.sm)}}):t.jsxs(la.div,{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},initial:{opacity:0},animate:{opacity:P?1:0},transition:{duration:.3,ease:"easeInOut",delay:P?.1:0},children:[t.jsx(la.div,{initial:{y:10,opacity:0},animate:{y:P?0:10,opacity:P?1:0},transition:{duration:.3,ease:"easeOut"},children:t.jsx(s.Typography,{variation:"md",component:"p",weight:"bold",sx:{color:d||!v?w.custom.palette.text.disabled:l(c,w)},children:P?`${o}${y?"":"%"}`:null})}),t.jsx(la.div,{initial:{y:10,opacity:0},animate:{y:P?0:10,opacity:P?1:0},transition:{duration:.3,ease:"easeOut",delay:.05},children:!f&&t.jsx(s.Typography,{variation:"xs",component:"p",sx:{color:d||!v?w.custom.palette.text.disabled:l(c,w)},children:P?u:null})})]})})})})};var ca=e.memo((({data:e,onChangeHandler:n,slotProps:i,...s})=>t.jsxs(u,{...i?.root,children:[t.jsx(c,{...i?.graphBarContainer,children:e.map(((e,n)=>t.jsx(ua,{...e,...s},n)))}),t.jsx(h,{...i?.actionsControllerContainer,children:e.map(((e,i)=>{const{onChange:o,amount:r,percentage:a,relativePercentage:l,label:u}=e;return t.jsx(f,{...e,...s,onChange:n?(t,e)=>n(t,e):o?(t,e)=>o({amount:r,percentage:a,name:u,relativePercentage:l},e):void 0},i)}))})]})));exports.LikertGraph=ca,exports.LikertGraphBarColors=t=>[t.custom.palette.data.sentimentVeryNegative,t.custom.palette.data.sentimentNegative,t.custom.palette.data.sentimentNeutral,t.custom.palette.data.sentimentPositive,t.custom.palette.data.sentimentVeryPositive],exports.getTextColor=l;
1
+ "use strict";var t=require("react/jsx-runtime"),e=require("react"),n=require("@mui/material"),i=require("merge-sx");require("./misc-kjIxdcX1.js"),require("./Icon-DixraoWA.js"),require("./primitiveVariables-DOkvMbUd.js"),require("./typography.util-Cfj-ZgvS.js"),require("./AnnualController-DIiINpY8.js"),require("./Accordion-aNpUHWmg.js");var s=require("./Typography-BYFV0-HU.js");require("./Badge-DsL8LwLJ.js"),require("./Breadcrumb-BHqgdVj-.js"),require("./Button-TKogbJWt.js"),require("./ButtonBase-DOLFz7T6.js");var o=require("./Checkbox-CSz7J7US.js");require("./StyledCheckbox-g-PmPEwy.js"),require("./InputFieldBase-Dmb5-LXp.js"),require("./CreatableAutocomplete-CqQMerG2.js"),require("@mui/icons-material"),require("./InputLabelBase-C9l5M26_.js"),require("./Differential-B_1zxbR8.js"),require("./StyledMenu-0gmkD_R6.js"),require("./FormGenerator-BE8waLtB.js"),require("./GridOverlay-jGJehp32.js"),require("html-react-parser"),require("./IconButton-Ihx8guYf.js"),require("./IconButtonBase-6L_dNOOr.js"),require("./IconButtonGroup-CDYetneE.js"),require("./Image-In4M7VMg.js"),require("./Label-DKrUnSYL.js"),require("./Likert-CQI8ZnlX.js"),require("./Link-CikLKNS5.js"),require("@lottiefiles/dotlottie-react"),require("./LoopsAiButton-BJ0Vck7E.js"),require("markdown-to-jsx"),require("material-ui-popup-state/hooks"),require("./Surface-CNQxv-Vi.js"),require("./MenuItem-ChV88sO-.js"),require("./ModalContentWrapper-9lOys-c7.js"),require("./NavigationButton-t_nJ_-97.js"),require("./NudgeButton-Dx6CtseQ.js"),require("./NumberField-58_3dSuF.js"),require("./semanticColor-D7luRDLB.js"),require("./types-BbAsZw_6.js"),require("./typography-Cx74j4k8.js");var r=require("./Tooltip-hDvy3-fo.js");require("./StyledPill-DDDGFPYD.js"),require("./Progress-BmBeu7uJ.js"),require("./ProgressBar-Wer8KEv6.js"),require("./Radio-BrBgm9f5.js"),require("./autocomplete.styles-C6N4E0gu.js"),require("./Select-BBrH8EC2.js"),require("./RankItem-D8JL2Loy.js"),require("./SortableList-ad1Z0omV.js"),require("@tiptap/extension-placeholder"),require("@tiptap/extension-underline"),require("@tiptap/starter-kit"),require("mui-tiptap"),require("./RichTextField-BMrpCktt.js");var a=require("./Skeleton-DgvdvSd_.js");require("./Slider-BK5bfi4n.js"),require("./StarRating-lqoK8zFU.js"),require("./Switch-m3rUWkHS.js"),require("./Textarea-j5nWbV1y.js"),require("./TrialPill-h8Y2SoiG.js"),require("./UserMenuButton-IgVIEbQl.js"),require("./VideoModal-CfaVAhVQ.js");const l=(t,e)=>{if(!t)return e.custom.palette.text.primary;return{[e.custom.palette.data.sentimentVeryNegative]:e.custom.palette.red[1e3],[e.custom.palette.data.sentimentNegative]:e.custom.palette.red[1e3],[e.custom.palette.data.sentimentNeutral]:e.custom.palette.neutral[1e3],[e.custom.palette.data.sentimentPositive]:e.custom.palette.green[1e3],[e.custom.palette.data.sentimentVeryPositive]:e.custom.palette.green[1e3]}[t]||e.custom.palette.text.primary},u=n.styled(n.Box)((({theme:t})=>({display:"flex",flexDirection:"column",gap:t.spacing(t.custom.margin.md),width:"100%",minWidth:440,maxWidth:500,boxSizing:"border-box"}))),c=n.styled(n.Box)((({theme:t})=>({display:"flex",alignItems:"center",height:56,width:"100%"}))),h=n.styled(n.Box)((({theme:t})=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",gap:t.spacing(t.custom.margin.xs)}))),d=n.styled(n.ListItemButton)((({theme:t})=>({borderRadius:t.spacing(t.custom.radius.md),padding:0,backgroundColor:t.custom.palette.interaction.none,height:"100%",display:"flex",flexGrow:1,flexBasis:0,flexDirection:"column",alignItems:"center",justifyContent:"space-between","&:hover":{backgroundColor:t.custom.palette.interaction.hover,[`& .${n.formControlLabelClasses.root}`]:{[`& .${n.checkboxClasses.root}`]:{backgroundColor:t.custom.palette.blue[0]}}},"&:active":{backgroundColor:t.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:t.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),p=n.styled(n.Box)((({theme:t,color:e})=>({width:24,aspectRatio:"1",borderRadius:"100%",backgroundColor:e}))),m=n.styled(n.Box)((({theme:t})=>({height:36,display:"flex",alignItems:"center",justifyContent:"center"})));n.styled(n.Box)((({theme:t,color:e,animateBars:n})=>({flex:1,backgroundColor:e,borderRadius:t.spacing(t.custom.radius.sm),transition:n?"height 1s ease-in-out":void 0,height:"100%"})));const f=({disabled:u,checked:c,label:h,toolTipContent:f,id:g,onChange:v,color:y,loading:x,slotProps:w={},hideCheckboxes:P,hideLabels:b,hideColorIndicators:T,disableTooltips:S})=>{const A=n.useTheme(),C=e.useRef(null),E=e.useCallback((()=>{!u&&v&&v(g,!c)}),[u,v,c]),V=P&&b&&T,j=u||x||S||!f;return!V&&t.jsx(d,{disabled:u||x,onClick:E,children:t.jsx(r.Tooltip,{followCursor:!0,message:f,disableHoverListener:j||V,...w?.actionsTooltip,slotProps:{wrapper:{sx:{width:"100%",height:"100%",padding:V?0:`${A.spacing(A.custom.margin.sm)} ${A.spacing(A.custom.margin.xs)}`,flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"space-between",gap:A.spacing(A.custom.margin.md),...w?.actionsTooltip?.slotProps?.wrapper?.sx}}},children:t.jsxs(t.Fragment,{children:[t.jsxs(n.Stack,{gap:A.spacing(A.custom.margin.xs),sx:{width:1,alignItems:"center"},children:[!T&&t.jsx(p,{sx:{...w?.actionsSwatchIndicator?.sx},color:u||x?A.custom.palette.interaction.disabled:c?y:A.custom.palette.neutral[100]}),!b&&t.jsx(m,{children:x?t.jsx(a.Skeleton,{width:50,height:20}):t.jsx(s.Typography,{variation:"sm",component:"p",textAlign:"center",...w?.actionsLabel,sx:i.mergeSx({color:u||!c?A.custom.palette.text.disabled:l(y,A)},w?.actionsLabel?.sx),children:h})})]}),!P&&t.jsx(n.Box,{children:x?t.jsx(a.Skeleton,{width:24,height:24}):t.jsx(o.Checkbox,{id:`${g}-checkbox`,variant:"secondary",checked:!u&&c,disabled:u,checkboxLabel:void 0,inputRef:C,...w?.actionsCheckbox,sx:i.mergeSx({mr:0},w?.actionsCheckbox?.sx)})})]})})})},g=e.createContext({});const v=e.createContext(null),y=e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});const x="undefined"!=typeof window,w=x?e.useLayoutEffect:e.useEffect,P=t=>t;let b=P,T=P;function S(t){let e;return()=>(void 0===e&&(e=t()),e)}"production"!==process.env.NODE_ENV&&(b=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},T=(t,e)=>{if(!t)throw new Error(e)});const A=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},C=t=>1e3*t,E=t=>t/1e3,V=!1;const j=["read","resolveKeyframes","update","preRender","render","postRender"];function M(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=j.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=r,p=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:j.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e<j.length;e++)r[j[e]].cancel(t)},state:s,steps:r}}const{schedule:k,cancel:D,state:R,steps:B}=M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:P,!0),L=e.createContext({strict:!1}),F={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"]},I={};for(const t in F)I[t]={isEnabled:e=>F[t].some((t=>!!e[t]))};const O=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 q(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||O.has(t)}let U=t=>!q(t);try{(N=require("@emotion/is-prop-valid").default)&&(U=t=>t.startsWith("on")?!q(t):N(t))}catch(t){}var N;const $=new Set;function W(t,e,n){t||$.has(e)||(console.warn(e),$.add(e))}function Y(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>("production"!==process.env.NODE_ENV&&W(!1,"motion() is deprecated. Use motion.create() instead."),t(...e))),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const z=e.createContext({});function K(t){return"string"==typeof t||Array.isArray(t)}function H(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const X=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G=["initial",...X];function _(t){return H(t.animate)||G.some((e=>K(t[e])))}function Z(t){return Boolean(_(t)||t.variants)}function J(t){const{initial:n,animate:i}=function(t,e){if(_(t)){const{initial:e,animate:n}=t;return{initial:!1===e||K(e)?e:void 0,animate:K(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,e.useContext(z));return e.useMemo((()=>({initial:n,animate:i})),[Q(n),Q(i)])}function Q(t){return Array.isArray(t)?t.join(" "):t}const tt=Symbol.for("motionComponentSymbol");function et(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function nt(t,n,i){return e.useCallback((e=>{e&&t.onMount&&t.onMount(e),n&&(e?n.mount(e):n.unmount()),i&&("function"==typeof i?i(e):et(i)&&(i.current=e))}),[n])}const it=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),st="data-"+it("framerAppearId"),{schedule:ot,cancel:rt}=M(queueMicrotask,!1),at=e.createContext({});function lt(t,n,i,s,o){var r,a;const{visualElement:l}=e.useContext(z),u=e.useContext(L),c=e.useContext(v),h=e.useContext(y).reducedMotion,d=e.useRef(null);s=s||u.renderer,!d.current&&s&&(d.current=s(t,{visualState:n,parent:l,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));const p=d.current,m=e.useContext(at);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ut(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&et(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=e.useRef(!1);e.useInsertionEffect((()=>{p&&f.current&&p.update(i,c)}));const g=i[st],x=e.useRef(Boolean(g)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return w((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),ot.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())})),e.useEffect((()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,g)})),x.current=!1))})),p}function ut(t){if(t)return!1!==t.options.allowProjection?t.projection:ut(t.parent)}function ct({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:o,Component:r}){var a,l;function u(a,l){let u;const c={...e.useContext(y),...a,layoutId:ht(a)},{isStatic:h}=c,d=J(a),p=o(a,h);if(!h&&x){!function(t,n){const i=e.useContext(L).strict;if("production"!==process.env.NODE_ENV&&n&&i){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?b(!1,e):T(!1,e)}}(c,n);const t=function(t){const{drag:e,layout:n}=I;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(c);u=t.MeasureLayout,d.visualElement=lt(r,p,c,i,t.ProjectionNode)}return t.jsxs(z.Provider,{value:d,children:[u&&d.visualElement?t.jsx(u,{visualElement:d.visualElement,...c}):null,s(r,a,nt(p,d.visualElement,l),p,h,d.visualElement)]})}n&&function(t){for(const e in t)I[e]={...I[e],...t[e]}}(n),u.displayName=`motion.${"string"==typeof r?r:`create(${null!==(l=null!==(a=r.displayName)&&void 0!==a?a:r.name)&&void 0!==l?l:""})`}`;const c=e.forwardRef(u);return c[tt]=r,c}function ht({layoutId:t}){const n=e.useContext(g).id;return n&&void 0!==t?n+"-"+t:t}const dt=["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 pt(t){return"string"==typeof t&&!t.includes("-")&&!!(dt.indexOf(t)>-1||/[A-Z]/u.test(t))}function mt(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function ft(t,e,n,i){if("function"==typeof e){const[s,o]=mt(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=mt(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const gt=t=>Array.isArray(t),vt=t=>Boolean(t&&t.getVelocity);function yt(t){const e=vt(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const xt=t=>(n,i)=>{const s=e.useContext(z),o=e.useContext(v),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:wt(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,n,s,o);return i?r():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(r)};function wt(t,e,n,i){const s={},o=i(t,{});for(const t in o)s[t]=yt(o[t]);let{initial:r,animate:a}=t;const l=_(t),u=Z(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const h=c?a:r;if(h&&"boolean"!=typeof h&&!H(h)){const e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){const i=ft(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(s[t]=e)}for(const e in t)s[e]=t[e]}}}return s}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(Pt),Tt=t=>e=>"string"==typeof e&&e.startsWith(t),St=Tt("--"),At=Tt("var(--"),Ct=t=>!!At(t)&&Et.test(t.split("/*")[0].trim()),Et=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,jt=(t,e,n)=>n>e?e:n<t?t:n,Mt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},kt={...Mt,transform:t=>jt(0,1,t)},Dt={...Mt,default:1},Rt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Rt("deg"),Lt=Rt("%"),Ft=Rt("px"),It=Rt("vh"),Ot=Rt("vw"),qt={...Lt,parse:t=>Lt.parse(t)/100,transform:t=>Lt.transform(100*t)},Ut={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft},Nt={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:Bt,skewX:Bt,skewY:Bt,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:kt,originX:qt,originY:qt,originZ:Ft},$t={...Mt,transform:Math.round},Wt={...Ut,...Nt,zIndex:$t,size:Ft,fillOpacity:kt,strokeOpacity:kt,numOctaves:$t},Yt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zt=Pt.length;function Kt(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(bt.has(t))r=!0;else if(St(t))s[t]=n;else{const e=Vt(n,Wt[t]);t.startsWith("origin")?(a=!0,o[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<zt;o++){const r=Pt[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Vt(a,Wt[r]);l||(s=!1,i+=`${Yt[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xt={offset:"strokeDashoffset",array:"strokeDasharray"};function Gt(t,e,n){return"string"==typeof t?t:Ft.transform(e+n*t)}function _t(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Kt(t,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Gt(e,t.x,t.width)} ${Gt(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Ht:Xt;t[o.offset]=Ft.transform(-i);const r=Ft.transform(e),a=Ft.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}const Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Jt=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Qt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function te(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}const ee=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 ne(t,e,n,i){te(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ee.has(n)?n:it(n),e.attrs[n])}const ie={};function se(t,{layout:e,layoutId:n}){return bt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!ie[t]||"opacity"===t)}function oe(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(vt(s[r])||e.style&&vt(e.style[r])||se(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function re(t,e,n){const i=oe(t,e,n);for(const n in t)if(vt(t[n])||vt(e[n])){i[-1!==Pt.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const ae=["x","y","width","height","cx","cy","r"],le={useVisualState:xt({scrapeMotionValuesFromProps:re,createRenderState:Jt,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const t in s)if(bt.has(t)){o=!0;break}if(!o)return;let r=!e;if(e)for(let n=0;n<ae.length;n++){const i=ae[n];t[i]!==e[i]&&(r=!0)}r&&k.read((()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),k.render((()=>{_t(i,s,Qt(n.tagName),t.transformTemplate),ne(n,i)}))}))}})},ue={useVisualState:xt({scrapeMotionValuesFromProps:oe,createRenderState:Zt})};function ce(t,e,n){for(const i in e)vt(e[i])||se(i,n)||(t[i]=e[i])}function he(t,n){const i={};return ce(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},n){return e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Kt(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),i}function de(t,e){const n={},i=he(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function pe(t,n,i,s){const o=e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _t(e,n,Qt(s),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};ce(e,t.style,t),o.style={...e,...o.style}}return o}function me(t=!1){return(n,i,s,{latestValues:o},r)=>{const a=(pt(n)?pe:de)(i,o,r,n),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(U(s)||!0===n&&q(s)||!e&&!q(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(i,"string"==typeof n,t),u=n!==e.Fragment?{...l,...a,ref:s}:{},{children:c}=i,h=e.useMemo((()=>vt(c)?c.get():c),[c]);return e.createElement(n,{...u,children:h})}}function fe(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return ct({...pt(n)?le:ue,preloadedFeatures:t,useRender:me(i),createVisualElement:e,Component:n})}}function ge(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ve(t,e,n){const i=t.getProps();return ft(i,e,void 0!==n?n:i.custom,t)}const ye=S((()=>void 0!==window.ScrollTimeline));class xe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t=>"finished"in t?t.finished:t)))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>ye()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class we extends xe{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function Pe(t,e){return t?t[e]||t.default||t:void 0}const be=2e4;function Te(t){let e=0;let n=t.next(e);for(;!n.done&&e<be;)e+=50,n=t.next(e);return e>=be?1/0:e}function Se(t){return"function"==typeof t}function Ae(t,e){t.timeline=e,t.onfinish=null}const Ce=t=>Array.isArray(t)&&"number"==typeof t[0],Ee={linearEasing:void 0};function Ve(t,e){const n=S(t);return()=>{var t;return null!==(t=Ee[e])&&void 0!==t?t:n()}}const je=Ve((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing"),Me=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=t(A(0,s-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};function ke(t){return Boolean("function"==typeof t&&je()||!t||"string"==typeof t&&(t in Re||je())||Ce(t)||Array.isArray(t)&&t.every(ke))}const De=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:De([0,.65,.55,1]),circOut:De([.55,0,1,.45]),backIn:De([.31,.01,.66,-.59]),backOut:De([.33,1.53,.69,.99])};function Be(t,e){return t?"function"==typeof t&&je()?Me(t,e):Ce(t)?De(t):Array.isArray(t)?t.map((t=>Be(t,e)||Re.easeOut)):Re[t]:void 0}const Le={x:!1,y:!1};function Fe(){return Le.x||Le.y}function Ie(t,e){const n=function(t){if(t instanceof Element)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Oe(t){return!("touch"===t.pointerType||Fe())}const qe=(t,e)=>!!e&&(t===e||qe(t,e.parentElement)),Ue=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Ne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const $e=new WeakSet;function We(t){return e=>{"Enter"===e.key&&t(e)}}function Ye(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ze(t){return Ue(t)&&!Fe()}function Ke(t,e,n={}){const[i,s,o]=Ie(t,n),r=t=>{const i=t.currentTarget;if(!ze(t)||$e.has(i))return;$e.add(i);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ze(t)&&$e.has(i)&&($e.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||qe(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach((t=>{(function(t){return Ne.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0);(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=We((()=>{if($e.has(n))return;Ye(n,"down");const t=We((()=>{Ye(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>Ye(n,"cancel")),e)}));n.addEventListener("keydown",i,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",i)),e)})(t,s)),s)})),o}const He=new Set(["width","height","top","left","right","bottom",...Pt]);let Xe;function Ge(){Xe=void 0}const _e={now:()=>(void 0===Xe&&_e.set(R.isProcessing||V?R.timestamp:performance.now()),Xe),set:t=>{Xe=t,queueMicrotask(Ge)}};function Ze(t,e){-1===t.indexOf(e)&&t.push(e)}function Je(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qe{constructor(){this.subscriptions=[]}add(t){return Ze(this.subscriptions,t),()=>Je(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tn(t,e){return e?t*(1e3/e):0}class en{constructor(t,e={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=_e.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=_e.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&W(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Qe);const n=this.events[t].add(e);return"change"===t?()=>{n(),k.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=_e.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(t,e){return new en(t,e)}function sn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nn(n))}function on(t,e){const n=t.getValue("willChange");if(i=n,Boolean(vt(i)&&i.add))return n.add(e);var i}function rn(t){return t.props[st]}const an=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ln(t,e,n,i){if(t===e&&n===i)return P;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=an(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:an(s(t),e,i)}const un=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,cn=t=>e=>1-t(1-e),hn=ln(.33,1.53,.69,.99),dn=cn(hn),pn=un(dn),mn=t=>(t*=2)<1?.5*dn(t):.5*(2-Math.pow(2,-10*(t-1))),fn=t=>1-Math.sin(Math.acos(t)),gn=cn(fn),vn=un(fn),yn=t=>/^0[^.\s]+$/u.test(t);const xn=t=>Math.round(1e5*t)/1e5,wn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Pn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bn=(t,e)=>n=>Boolean("string"==typeof n&&Pn.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tn=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(wn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Sn={...Mt,transform:t=>Math.round((t=>jt(0,255,t))(t))},An={test:bn("rgb","red"),parse:Tn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Sn.transform(t)+", "+Sn.transform(e)+", "+Sn.transform(n)+", "+xn(kt.transform(i))+")"};const Cn={test:bn("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:An.transform},En={test:bn("hsl","hue"),parse:Tn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Lt.transform(xn(e))+", "+Lt.transform(xn(n))+", "+xn(kt.transform(i))+")"},Vn={test:t=>An.test(t)||Cn.test(t)||En.test(t),parse:t=>An.test(t)?An.parse(t):En.test(t)?En.parse(t):Cn.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?An.transform(t):En.transform(t)},jn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Mn="number",kn="color",Dn=/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 Rn(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Dn,(t=>(Vn.test(t)?(i.color.push(o),s.push(kn),n.push(Vn.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(Mn),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:r,indexes:i,types:s}}function Bn(t){return Rn(t).values}function Ln(t){const{split:e,types:n}=Rn(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Mn?xn(t[o]):e===kn?Vn.transform(t[o]):t[o]}return s}}const Fn=t=>"number"==typeof t?0:t;const In={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(wn))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(jn))||void 0===n?void 0:n.length)||0)>0},parse:Bn,createTransformer:Ln,getAnimatableNone:function(t){const e=Bn(t);return Ln(t)(e.map(Fn))}},On=new Set(["brightness","contrast","saturate","opacity"]);function qn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(wn)||[];if(!i)return t;const s=n.replace(i,"");let o=On.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Un=/\b([a-z-]*)\(.*?\)/gu,Nn={...In,getAnimatableNone:t=>{const e=t.match(Un);return e?e.map(qn).join(" "):t}},$n={...Wt,color:Vn,backgroundColor:Vn,outlineColor:Vn,fill:Vn,stroke:Vn,borderColor:Vn,borderTopColor:Vn,borderRightColor:Vn,borderBottomColor:Vn,borderLeftColor:Vn,filter:Nn,WebkitFilter:Nn},Wn=t=>$n[t];function Yn(t,e){let n=Wn(t);return n!==Nn&&(n=In),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const zn=new Set(["auto","none","0"]);const Kn=t=>t===Mt||t===Ft,Hn=(t,e)=>parseFloat(t.split(", ")[e]),Xn=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Hn(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Hn(e[1],t):0}},Gn=new Set(["x","y","z"]),_n=Pt.filter((t=>!Gn.has(t)));const Zn={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:Xn(4,13),y:Xn(5,14)};Zn.translateX=Zn.x,Zn.translateY=Zn.y;const Jn=new Set;let Qn=!1,ti=!1;function ei(){if(ti){const t=Array.from(Jn).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return _n.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}ti=!1,Qn=!1,Jn.forEach((t=>t.complete())),Jn.clear()}function ni(){Jn.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(ti=!0)}))}class ii{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jn.add(this),Qn||(Qn=!0,k.read(ni),k.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const si=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ri(t,e,n=1){T(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=oi.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return si(t)?parseFloat(t):t}return Ct(s)?ri(s,e,n+1):s}const ai=t=>e=>e.test(t),li=[Mt,Ft,Lt,Bt,Ot,It,{test:t=>"auto"===t,parse:t=>t}],ui=t=>li.find(ai(t));class ci extends ii{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),Ct(i))){const s=ri(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!He.has(n)||2!==t.length)return;const[i,s]=t,o=ui(i),r=ui(s);if(o!==r)if(Kn(o)&&Kn(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||yn(i))&&n.push(e);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!zn.has(e)&&Rn(e).values.length&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]=Yn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Zn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}const hi=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!In.test(t)&&"0"!==t||t.startsWith("url(")));function di(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=hi(s,e),a=hi(o,e);return b(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Se(n))&&i)}const pi=t=>null!==t;function mi(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(pi),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class fi{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=_e.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ni(),ei()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=_e.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!di(t,n,i,s)){if(!o)return a&&a(mi(t,this.options,e)),r&&r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const gi=(t,e,n)=>t+(e-t)*n;function vi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function yi(t,e){return n=>n>0?e:t}const xi=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},wi=[Cn,An,En];function Pi(t){const e=(n=t,wi.find((t=>t.test(n))));var n;if(b(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===En&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=vi(a,i,t+1/3),o=vi(a,i,t),r=vi(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const bi=(t,e)=>{const n=Pi(t),i=Pi(e);if(!n||!i)return yi(t,e);const s={...n};return t=>(s.red=xi(n.red,i.red,t),s.green=xi(n.green,i.green,t),s.blue=xi(n.blue,i.blue,t),s.alpha=gi(n.alpha,i.alpha,t),An.transform(s))},Ti=(t,e)=>n=>e(t(n)),Si=(...t)=>t.reduce(Ti),Ai=new Set(["none","hidden"]);function Ci(t,e){return n=>gi(t,e,n)}function Ei(t){return"number"==typeof t?Ci:"string"==typeof t?Ct(t)?yi:Vn.test(t)?bi:Mi:Array.isArray(t)?Vi:"object"==typeof t?Vn.test(t)?bi:ji:yi}function Vi(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>Ei(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function ji(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Ei(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Mi=(t,e)=>{const n=In.createTransformer(e),i=Rn(t),s=Rn(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Ai.has(t)&&!s.values.length||Ai.has(e)&&!i.values.length?function(t,e){return Ai.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Si(Vi(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,s[r]++}return i}(i,s),s.values),n):(b(!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.`),yi(t,e))};function ki(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return gi(t,e,n);return Ei(t)(t,e)}function Di(t,e,n){const i=Math.max(e-5,0);return tn(n-t(i),e-i)}const Ri=100,Bi=10,Li=1,Fi=0,Ii=800,Oi=.3,qi=.3,Ui={granular:.01,default:2},Ni={granular:.005,default:.5},$i=.01,Wi=10,Yi=.05,zi=1;function Ki({duration:t=Ii,bounce:e=Oi,velocity:n=Fi,mass:i=Li}){let s,o;b(t<=C(Wi),"Spring duration must be 10 seconds or less");let r=1-e;r=jt(Yi,zi,r),t=jt($i,Wi,E(t)),r<1?(s=e=>{const i=e*r,s=i*t;return.001-(i-n)/Xi(e,r)*Math.exp(-s)},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Xi(Math.pow(e,2),r);return(.001-s(e)>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<Hi;n++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=C(t),isNaN(a))return{stiffness:Ri,damping:Bi,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const Hi=12;function Xi(t,e){return t*Math.sqrt(1-e*e)}const Gi=["duration","bounce"],_i=["stiffness","damping","mass"];function Zi(t,e){return e.some((e=>void 0!==t[e]))}function Ji(t=qi,e=Oi){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Fi,stiffness:Ri,damping:Bi,mass:Li,isResolvedFromDuration:!1,...t};if(!Zi(t,_i)&&Zi(t,Gi))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*jt(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Li,stiffness:s,damping:o}}else{const n=Ki(t);e={...e,...n,mass:Li},e.isResolvedFromDuration=!0}return e}({...n,velocity:-E(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),g=r-o,v=E(Math.sqrt(l/c)),y=Math.abs(g)<5;let x;if(i||(i=y?Ui.granular:Ui.default),s||(s=y?Ni.granular:Ni.default),f<1){const t=Xi(v,f);x=e=>{const n=Math.exp(-f*v*e);return r-n*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const w={calculatedDuration:p&&h||null,next:t=>{const e=x(t);if(p)a.done=t>=h;else{let n=0;f<1&&(n=0===t?C(m):Di(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Te(w),be),e=Me((e=>w.next(t*e).value),t,30);return t+"ms "+e}};return w}function Qi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,g=void 0===r?f:r(f);g!==f&&(m=g-h);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let w,P;const b=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,P=Ji({keyframes:[d.value,p(d.value)],velocity:Di(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),b(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}const ts=ln(.42,0,1,1),es=ln(0,0,.58,1),ns=ln(.42,0,.58,1),is={linear:P,easeIn:ts,easeInOut:ns,easeOut:es,circIn:fn,circInOut:vn,circOut:gn,backIn:dn,backInOut:pn,backOut:hn,anticipate:mn},ss=t=>{if(Ce(t)){T(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return ln(e,n,i,s)}return"string"==typeof t?(T(void 0!==is[t],`Invalid easing type '${t}'`),is[t]):t};function os(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(T(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||ki,o=t.length-1;for(let n=0;n<o;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||P:e;o=Si(t,o)}i.push(o)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=A(t[i],t[i+1],n);return a[i](s)};return n?e=>u(jt(t[0],t[o-1],e)):u}function rs(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=A(0,e,i);t.push(gi(n,1,s))}}(e,t.length-1),e}function as({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(ss):ss(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:rs(e),t),a=os(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||ns)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const ls=t=>{const e=({timestamp:e})=>t(e);return{start:()=>k.update(e,!0),stop:()=>D(e),now:()=>R.isProcessing?R.timestamp:_e.now()}},us={decay:Qi,inertia:Qi,tween:as,keyframes:as,spring:Ji},cs=t=>t/100;class hs extends fi{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||ii;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=Se(e)?e:us[e]||as;let a,l;r!==as&&"number"!=typeof t[0]&&("production"!==process.env.NODE_ENV&&T(2===t.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=Si(cs,ki(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Te(u));const{calculatedDuration:c}=u,h=c+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=o)),y=jt(0,1,n)*c}const w=v?{done:!1,value:a[0]}:x.next(y);r&&(w.value=r(w.value));let{done:P}=w;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==i&&(w.value=mi(a,this.options,i)),f&&f(w.value),b&&this.finish(),w}get duration(){const{resolved:t}=this;return t?E(t.calculatedDuration):0}get time(){return E(this.currentTime)}set time(t){t=C(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=E(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=ls,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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(t){return this.startTime=0,this.tick(t,!0)}}const ds=new Set(["opacity","clipPath","filter","transform"]);function ps(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Be(a,s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}const ms=S((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const fs={anticipate:mn,backInOut:pn,circInOut:vn};class gs extends fi{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ci(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:l}=this.options;if(!r.owner||!r.owner.current)return!1;var u;if("string"==typeof s&&je()&&s in fs&&(s=fs[s]),Se((u=this.options).type)||"spring"===u.type||!ke(u.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new hs({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,i=c.times,s=c.ease,o="keyframes"}const c=ps(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Ae(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;r.set(mi(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return E(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return E(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=C(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return P;const{animation:n}=e;Ae(n,t)}else this.pendingTimeline=t;return P}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new hs({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),h=C(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ms()&&n&&ds.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const vs={type:"spring",stiffness:500,damping:25,restSpeed:10},ys={type:"keyframes",duration:.8},xs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ws=(t,{keyframes:e})=>e.length>2?ys:bt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:vs:xs;const Ps=(t,e,n,i={},s,o)=>r=>{const a=Pe(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=C(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...ws(t,c)}),c.duration&&(c.duration=C(c.duration)),c.repeatDelay&&(c.repeatDelay=C(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),h&&!o&&void 0!==e.get()){const t=mi(c.keyframes,a);if(void 0!==t)return k.update((()=>{c.onUpdate(t),c.onComplete()})),new we([])}return!o&&gs.supports(c)?new gs(c):new hs(c)};function bs({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Ts(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const e in l){const i=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),s=l[e];if(void 0===s||c&&bs(c,e))continue;const a={delay:n,...Pe(r||{},e)};let h=!1;if(window.MotionHandoffAnimation){const n=rn(t);if(n){const t=window.MotionHandoffAnimation(n,e,k);null!==t&&(a.startTime=t,h=!0)}}on(t,e),i.start(Ps(e,i,s,t.shouldReduceMotion&&He.has(e)?{type:!1}:a,t,h));const d=i.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{k.update((()=>{a&&function(t,e){const n=ve(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const e in o)sn(t,e,(r=o[e],gt(r)?r[r.length-1]||0:r));var r}(t,a)}))})),u}function Ss(t,e,n={}){var i;const s=ve(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Ts(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(As).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Ss(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function As(t,e){return t.sortNodePosition(e)}const Cs=G.length;function Es(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Es(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Cs;n++){const i=G[n],s=t.props[i];(K(s)||!1===s)&&(e[i]=s)}return e}const Vs=[...X].reverse(),js=X.length;function Ms(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Ss(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Ss(t,e,n);else{const s="function"==typeof e?ve(t,e,n.custom):e;i=Promise.all(Ts(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function ks(t){let e=Ms(t),n=Bs(),i=!0;const s=e=>(n,i)=>{var s;const o=ve(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=Es(t.parent)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<js;e++){const d=Vs[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=K(m),g=d===o?p.isActive:null;!1===g&&(h=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||H(m)||"boolean"==typeof m)continue;const y=Ds(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>h&&f,w=!1;const P=Array.isArray(m)?m:[m];let b=P.reduce(s(d),{});!1===g&&(b={});const{prevResolvedValues:T={}}=p,S={...T,...b},A=e=>{x=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in S){const e=b[t],n=T[t];if(c.hasOwnProperty(t))continue;let i=!1;i=gt(e)&&gt(n)?!ge(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(c={...c,...b}),i&&t.blockInitialAnimation&&(x=!1);x&&(!(v&&y)||w)&&l.push(...P.map((t=>({animation:t,options:{type:d}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Bs(),i=!0}}}function Ds(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ge(e,t)}function Rs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bs(){return{animate:Rs(!0),whileInView:Rs(),whileHover:Rs(),whileTap:Rs(),whileDrag:Rs(),whileFocus:Rs(),exit:Rs()}}class Ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Fs=0;const Is={animation:{Feature:class extends Ls{constructor(t){super(t),t.animationState||(t.animationState=ks(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();H(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Ls{constructor(){super(...arguments),this.id=Fs++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function Os(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function qs(t){return{point:{x:t.pageX,y:t.pageY}}}function Us(t,e,n,i){return Os(t,e,(t=>e=>Ue(e)&&t(e,qs(e)))(n),i)}const Ns=(t,e)=>Math.abs(t-e);class $s{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!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 t=zs(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ns(t.x,e.x),i=Ns(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=R;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ws(e,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=zs("pointercancel"===t.type?this.lastMoveEventInfo:Ws(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Ue(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=Ws(qs(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=R;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,zs(o,this.history)),this.removeListeners=Si(Us(this.contextWindow,"pointermove",this.handlePointerMove),Us(this.contextWindow,"pointerup",this.handlePointerUp),Us(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),D(this.updatePoint)}}function Ws(t,e){return e?{point:e(t.point)}:t}function Ys(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zs({point:t},e){return{point:t,delta:Ys(t,Hs(e)),offset:Ys(t,Ks(e)),velocity:Xs(e,.1)}}function Ks(t){return t[0]}function Hs(t){return t[t.length-1]}function Xs(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Hs(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>C(e)));)n--;if(!i)return{x:0,y:0};const o=E(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Gs(t){return t.max-t.min}function _s(t,e,n,i=.5){t.origin=i,t.originPoint=gi(e.min,e.max,t.origin),t.scale=Gs(n)/Gs(e),t.translate=gi(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Zs(t,e,n,i){_s(t.x,e.x,n.x,i?i.originX:void 0),_s(t.y,e.y,n.y,i?i.originY:void 0)}function Js(t,e,n){t.min=n.min+e.min,t.max=t.min+Gs(e)}function Qs(t,e,n){t.min=e.min-n.min,t.max=t.min+Gs(e)}function to(t,e,n){Qs(t.x,e.x,n.x),Qs(t.y,e.y,n.y)}function eo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function no(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const io=.35;function so(t,e,n){return{min:oo(t,e),max:oo(t,n)}}function oo(t,e){return"number"==typeof t?t:t[e]||0}const ro=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ao(t){return[t("x"),t("y")]}function lo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function uo(t){return void 0===t||1===t}function co({scale:t,scaleX:e,scaleY:n}){return!uo(t)||!uo(e)||!uo(n)}function ho(t){return co(t)||po(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function po(t){return mo(t.x)||mo(t.y)}function mo(t){return t&&"0%"!==t}function fo(t,e,n){return n+e*(t-n)}function go(t,e,n,i,s){return void 0!==s&&(t=fo(t,s,i)),fo(t,n,i)+e}function vo(t,e=0,n=1,i,s){t.min=go(t.min,e,n,i,s),t.max=go(t.max,e,n,i,s)}function yo(t,{x:e,y:n}){vo(t.x,e.translate,e.scale,e.originPoint),vo(t.y,n.translate,n.scale,n.originPoint)}const xo=.999999999999,wo=1.0000000000001;function Po(t,e){t.min=t.min+e,t.max=t.max+e}function bo(t,e,n,i,s=.5){vo(t,e,n,gi(t.min,t.max,s),i)}function To(t,e){bo(t.x,e.x,e.scaleX,e.scale,e.originX),bo(t.y,e.y,e.scaleY,e.scale,e.originY)}function So(t,e){return lo(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Ao=({current:t})=>t?t.ownerDocument.defaultView:null,Co=new WeakMap;class Eo{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new $s(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(qs(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Le[o]?null:(Le[o]=!0,()=>{Le[o]=!1}):Le.x||Le.y?null:(Le.x=Le.y=!0,()=>{Le.x=Le.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ao((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Lt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Gs(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&k.postRender((()=>s(t,e))),on(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ao((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Ao(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&k.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Vo(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?gi(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?gi(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&et(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:eo(t.x,n,s),y:eo(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=io){return!1===t?t=0:!0===t&&(t=io),{x:so(t,"left","right"),y:so(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ao((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!et(t))return!1;const n=t.current;T(null!==n,"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 s=function(t,e,n){const i=So(t,n),{scroll:s}=e;return s&&(Po(i.x,s.offset.x),Po(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:no(t.x,e.x),y:no(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=lo(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ao((r=>{if(!Vo(r,e,this.currentDirection))return;let l=a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return on(this.visualElement,t),n.start(Ps(t,n,0,e,this.visualElement,!1))}stopAnimation(){ao((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ao((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ao((e=>{const{drag:n}=this.getProps();if(!Vo(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-gi(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!et(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ao((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Gs(t),s=Gs(e);return s>i?n=A(e.min,e.max-i,t.min):i>s&&(n=A(t.min,t.max-s,e.min)),jt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ao((e=>{if(!Vo(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(gi(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Co.set(this.visualElement,this);const t=Us(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();et(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),k.read(e);const s=Os(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ao((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=io,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function Vo(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const jo=t=>(e,n)=>{t&&k.postRender((()=>t(e,n)))};const Mo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ko(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Do={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Ft.test(t))return t;t=parseFloat(t)}return`${ko(t,e.target.x)}% ${ko(t,e.target.y)}%`}},Ro={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=In.parse(t);if(s.length>5)return i;const o=In.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=gi(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}};class Bo extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;!function(t){for(const e in t)ie[e]=t[e],St(e)&&(ie[e].isCSSVariable=!0)}(Fo),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Mo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||k.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ot.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Lo(n){const[i,s]=function(t=!0){const n=e.useContext(v);if(null===n)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=n,r=e.useId();e.useEffect((()=>{t&&o(r)}),[t]);const a=e.useCallback((()=>t&&s&&s(r)),[r,s,t]);return!i&&s?[!1,a]:[!0]}(),o=e.useContext(g);return t.jsx(Bo,{...n,layoutGroup:o,switchLayoutGroup:e.useContext(at),isPresent:i,safeToRemove:s})}const Fo={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:Ro};const Io=(t,e)=>t.depth-e.depth;class Oo{constructor(){this.children=[],this.isDirty=!1}add(t){Ze(this.children,t),this.isDirty=!0}remove(t){Je(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Io),this.isDirty=!1,this.children.forEach(t)}}const qo=["TopLeft","TopRight","BottomLeft","BottomRight"],Uo=qo.length,No=t=>"string"==typeof t?parseFloat(t):t,$o=t=>"number"==typeof t||Ft.test(t);function Wo(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Yo=Ko(0,.5,gn),zo=Ko(.5,.95,P);function Ko(t,e,n){return i=>i<t?0:i>e?1:n(A(t,e,i))}function Ho(t,e){t.min=e.min,t.max=e.max}function Xo(t,e){Ho(t.x,e.x),Ho(t.y,e.y)}function Go(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function _o(t,e,n,i,s){return t=fo(t-=e,1/n,i),void 0!==s&&(t=fo(t,1/s,i)),t}function Zo(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Lt.test(e)&&(e=parseFloat(e),e=gi(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=gi(o.min,o.max,i);t===o&&(a-=e),t.min=_o(t.min,e,n,a,s),t.max=_o(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Jo=["x","scaleX","originX"],Qo=["y","scaleY","originY"];function tr(t,e,n,i){Zo(t.x,e,Jo,n?n.x:void 0,i?i.x:void 0),Zo(t.y,e,Qo,n?n.y:void 0,i?i.y:void 0)}function er(t){return 0===t.translate&&1===t.scale}function nr(t){return er(t.x)&&er(t.y)}function ir(t,e){return t.min===e.min&&t.max===e.max}function sr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function or(t,e){return sr(t.x,e.x)&&sr(t.y,e.y)}function rr(t){return Gs(t.x)/Gs(t.y)}function ar(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class lr{constructor(){this.members=[]}add(t){Ze(this.members,t),t.scheduleRender()}remove(t){if(Je(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ur={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cr="undefined"!=typeof window&&void 0!==window.MotionDebug,hr=["","X","Y","Z"],dr={visibility:"hidden"};let pr=0;function mr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=rn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&fr(i)}function gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=pr++,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,cr&&(ur.totalNodes=ur.resolvedTargetDeltas=ur.recalculatedProjection=0),this.nodes.forEach(xr),this.nodes.forEach(Cr),this.nodes.forEach(Er),this.nodes.forEach(wr),cr&&window.MotionDebug.record(ur)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Oo)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Qe),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=_e.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(D(i),t(o-e))};return k.read(i,!0),()=>D(i)}(i,250),Mo.hasAnimatedSinceResize&&(Mo.hasAnimatedSinceResize=!1,this.nodes.forEach(Ar))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||Rr,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!or(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Pe(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ar(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,D(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(Vr),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(br);this.isUpdating||this.nodes.forEach(Tr),this.isUpdating=!1,this.nodes.forEach(Sr),this.nodes.forEach(vr),this.nodes.forEach(yr),this.clearAllSnapshots();const t=_e.now();R.delta=jt(0,1e3/60,t-R.timestamp),R.timestamp=t,R.isProcessing=!0,B.update.process(R),B.preRender.process(R),B.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ot.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pr),this.sharedNodes.forEach(jr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Gs(this.snapshot.measuredBox.x)||Gs(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nr(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||ho(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Fr((i=n).x),Fr(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Or))){const{scroll:t}=this.root;t&&(Po(n.x,t.offset.x),Po(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Xo(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e<this.path.length;e++){const i=this.path[e],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&Xo(n,t),Po(n.x,s.offset.x),Po(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Xo(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&To(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),ho(i.latestValues)&&To(n,i.latestValues)}return ho(this.latestValues)&&To(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Xo(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!ho(n.latestValues))continue;co(n.latestValues)&&n.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};Xo(i,n.measurePageBox()),tr(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return ho(this.latestValues)&&tr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},to(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Xo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Js(r.x,a.x,l.x),Js(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xo(this.target,this.layout.layoutBox),yo(this.target,this.targetDelta)):Xo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},to(this.relativeTargetOrigin,this.target,t.target),Xo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}cr&&ur.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!co(this.parent.latestValues)&&!po(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===R.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;Xo(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&To(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yo(t,r)),i&&ho(o.latestValues)&&To(t,o.latestValues))}e.x<wo&&e.x>xo&&(e.x=1),e.y<wo&&e.y>xo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Go(this.prevProjectionDelta.x,this.projectionDelta.x),Go(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Zs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&ar(this.projectionDelta.x,this.prevProjectionDelta.x)&&ar(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),cr&&ur.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Dr));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;Mr(o.x,t.x,n),Mr(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(to(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,kr(p.x,m.x,f.x,g),kr(p.y,m.y,f.y,g),h&&(l=this.relativeTarget,d=h,ir(l.x,d.x)&&ir(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),Xo(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=gi(0,void 0!==n.opacity?n.opacity:1,Yo(i)),t.opacityExit=gi(void 0!==e.opacity?e.opacity:1,0,zo(i))):o&&(t.opacity=gi(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<Uo;s++){const o=`border${qo[s]}Radius`;let r=Wo(e,o),a=Wo(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||$o(r)===$o(a)?(t[o]=Math.max(gi(No(r),No(a),i),0),(Lt.test(a)||Lt.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=gi(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(D(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update((()=>{Mo.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=vt(t)?t:nn(t);return i.start(Ps("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Ir(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Gs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Gs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Xo(e,n),To(e,s),Zs(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new lr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&mr("z",t,i,this.animationValues);for(let e=0;e<hr.length;e++)mr(`rotate${hr[e]}`,t,i,this.animationValues),mr(`skew${hr[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return dr;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=yt(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=yt(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ho(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in ie){if(void 0===r[t])continue;const{correct:e,applyTo:n,isCSSVariable:s}=ie[t],a="none"===i.transform?r[t]:e(r[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=a}else s?this.options.visualElement.renderState.vars[t]=a:i[t]=a}return this.options.layoutId&&(i.pointerEvents=o===this?yt(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(br),this.root.sharedNodes.clear()}}}function vr(t){t.updateLayout()}function yr(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ao((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Gs(i);i.min=e[t].min,i.max=i.min+s})):Ir(s,n.layoutBox,e)&&ao((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Gs(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Zs(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Zs(a,t.applyTransform(i,!0),n.measuredBox):Zs(a,e,n.layoutBox);const l=!nr(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};to(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};to(a,e,o.layoutBox),or(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function xr(t){cr&&ur.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function wr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Pr(t){t.clearSnapshot()}function br(t){t.clearMeasurements()}function Tr(t){t.isLayoutDirty=!1}function Sr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ar(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Cr(t){t.resolveTargetDelta()}function Er(t){t.calcProjection()}function Vr(t){t.resetSkewAndRotation()}function jr(t){t.removeLeadSnapshot()}function Mr(t,e,n){t.translate=gi(e.translate,0,n),t.scale=gi(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function kr(t,e,n,i){t.min=gi(e.min,n.min,i),t.max=gi(e.max,n.max,i)}function Dr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Rr={duration:.45,ease:[.4,0,.1,1]},Br=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Lr=Br("applewebkit/")&&!Br("chrome/")?Math.round:P;function Fr(t){t.min=Lr(t.min),t.max=Lr(t.max)}function Ir(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=rr(e),s=rr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Or(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const qr=gr({attachResizeListener:(t,e)=>Os(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ur={current:void 0},Nr=gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ur.current){const t=new qr({});t.mount(window),t.setOptions({layoutScroll:!0}),Ur.current=t}return Ur.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),$r={pan:{Feature:class extends Ls{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(t){this.session=new $s(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ao(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:jo(t),onStart:jo(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&k.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Us(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ls{constructor(t){super(t),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Eo(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Nr,MeasureLayout:Lo}};function Wr(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&k.postRender((()=>s(e,qs(e))))}function Yr(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&k.postRender((()=>s(e,qs(e))))}const zr=new WeakMap,Kr=new WeakMap,Hr=t=>{const e=zr.get(t.target);e&&e(t)},Xr=t=>{t.forEach(Hr)};function Gr(t,e,n){const i=function({root:t,...e}){const n=t||document;Kr.has(n)||Kr.set(n,{});const i=Kr.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Xr,{root:t,...e})),i[s]}(e);return zr.set(t,n),i.observe(t),()=>{zr.delete(t),i.unobserve(t)}}const _r={some:0,all:1};const Zr={inView:{Feature:class extends Ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:_r[i]};return Gr(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=Ke(t,((t,e)=>(Yr(this.node,e,"Start"),(t,{success:e})=>Yr(this.node,t,e?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ls{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Si(Os(this.node.current,"focus",(()=>this.onFocus())),Os(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=Ie(t,n),r=t=>{if(!Oe(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const o=t=>{Oe(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,s)};return i.forEach((t=>{t.addEventListener("pointerenter",r,s)})),o}(t,((t,e)=>(Wr(this.node,e,"Start"),t=>Wr(this.node,t,"End")))))}unmount(){}}}},Jr={layout:{ProjectionNode:Nr,MeasureLayout:Lo}},Qr={current:null},ta={current:!1};const ea=[...li,Vn,In],na=new WeakMap;const ia=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sa{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ii,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=_e.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,k.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=_(e),this.isVariantNode=Z(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&vt(e)&&e.set(a[t],!1)}}mount(t){this.current=t,na.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),ta.current||function(){if(ta.current=!0,x)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qr.current=t.matches;t.addListener(e),e()}else Qr.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qr.current),"production"!==process.env.NODE_ENV&&W(!0!==this.shouldReduceMotion,"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(){na.delete(this.current),this.projection&&this.projection.unmount(),D(this.notifyUpdate),D(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=bt.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in I){const e=I[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ia.length;e++){const n=ia[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(vt(s))t.addValue(i,s),"development"===process.env.NODE_ENV&&W("12.0.6"===s.version,`Attempting to mix Motion versions ${s.version} with 12.0.6 may not work as expected.`);else if(vt(o))t.addValue(i,nn(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,nn(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(si(i)||yn(i))?i=parseFloat(i):(s=i,!ea.find(ai(s))&&In.test(e)&&(i=Yn(t,e))),this.setBaseTarget(t,vt(i)?i.get():i)),vt(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=ft(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||vt(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Qe),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class oa extends sa{constructor(){super(...arguments),this.KeyframeResolver=ci}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vt(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class ra extends oa{constructor(){super(...arguments),this.type="html",this.renderInstance=te}readValueFromInstance(t,e){if(bt.has(e)){const t=Wn(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(St(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return So(t,e)}build(t,e,n){Kt(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return oe(t,e,n)}}class aa extends oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ro}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(bt.has(e)){const t=Wn(e);return t&&t.default||0}return e=ee.has(e)?e:it(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return re(t,e,n)}build(t,e,n){_t(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){ne(t,e,0,i)}mount(t){this.isSVGTag=Qt(t.tagName),super.mount(t)}}const la=Y(fe({...Is,...Zr,...$r,...Jr},((t,n)=>pt(t)?new aa(n):new ra(n,{allowProjection:t!==e.Fragment})))),ua=({relativePercentage:o,amount:u,color:c,animateBars:h,disabled:d,loading:p,toolTipContent:m,hideAmount:f,disableTooltips:g,checked:v,hidePercentageSymbol:y,slotProps:x})=>{const w=n.useTheme(),P=o&&o>8,[b,T]=e.useState(0);return e.useEffect((()=>{const t=p?20:o||0,e=h?b||0:t,n=performance.now(),i=s=>{const o=s-n,r=Math.min(o/250,1);T(e+(t-e)*(r*(2-r))),r<1&&requestAnimationFrame(i)},s=requestAnimationFrame(i);return()=>cancelAnimationFrame(s)}),[u,p]),t.jsx(n.Box,{component:la.div,...x?.graphBar,sx:i.mergeSx({height:"100%",width:`${b}%`,background:d||!v?w.custom.palette.neutral[100]:p?w.custom.palette.interaction.none:c,borderRadius:w.spacing(w.custom.radius.sm),border:`1px solid ${w.custom.palette.icon.lockedWhite}`,boxSizing:"border-box",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},x?.graphBar?.sx),initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.3,ease:"easeOut"},children:t.jsx(r.Tooltip,{message:m,placement:"top",disableHoverListener:!m||d||p||g,followCursor:!0,...x?.graphBarTooltip,slotProps:{wrapper:{sx:{width:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...x?.graphBarTooltip?.slotProps?.wrapper?.sx}}},children:t.jsx(t.Fragment,{children:p?t.jsx(a.Skeleton,{width:"100%",height:"100%",sx:{borderRadius:w.spacing(w.custom.radius.sm)}}):t.jsxs(la.div,{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},initial:{opacity:0},animate:{opacity:P?1:0},transition:{duration:.3,ease:"easeInOut",delay:P?.1:0},children:[t.jsx(la.div,{initial:{y:10,opacity:0},animate:{y:P?0:10,opacity:P?1:0},transition:{duration:.3,ease:"easeOut"},children:t.jsx(s.Typography,{variation:"md",component:"p",weight:"bold",sx:{color:d||!v?w.custom.palette.text.disabled:l(c,w)},children:P?`${o}${y?"":"%"}`:null})}),t.jsx(la.div,{initial:{y:10,opacity:0},animate:{y:P?0:10,opacity:P?1:0},transition:{duration:.3,ease:"easeOut",delay:.05},children:!f&&t.jsx(s.Typography,{variation:"xs",component:"p",sx:{color:d||!v?w.custom.palette.text.disabled:l(c,w)},children:P?u:null})})]})})})})};var ca=e.memo((({data:e,onChangeHandler:n,slotProps:i,...s})=>t.jsxs(u,{...i?.root,children:[t.jsx(c,{...i?.graphBarContainer,children:e.map(((e,n)=>t.jsx(ua,{...e,...s},n)))}),t.jsx(h,{...i?.actionsControllerContainer,children:e.map(((e,i)=>{const{onChange:o,amount:r,percentage:a,relativePercentage:l,label:u}=e;return t.jsx(f,{...e,...s,onChange:n?(t,e)=>n(t,e):o?(t,e)=>o({amount:r,percentage:a,name:u,relativePercentage:l},e):void 0},i)}))})]})));exports.LikertGraph=ca,exports.LikertGraphBarColors=t=>[t.custom.palette.data.sentimentVeryNegative,t.custom.palette.data.sentimentNegative,t.custom.palette.data.sentimentNeutral,t.custom.palette.data.sentimentPositive,t.custom.palette.data.sentimentVeryPositive],exports.getTextColor=l;