fuli-context 0.23.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (689) hide show
  1. package/README.md +169 -979
  2. package/README.zh-CN.md +157 -830
  3. package/dist/web/assets/{AboutPage-S8QFfzpA.js → AboutPage-Dx07_Z8u.js} +1 -1
  4. package/dist/web/assets/{AboutSectionHeading-B5CzH4Zs.js → AboutSectionHeading-BdhpM609.js} +1 -1
  5. package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +1 -0
  6. package/dist/web/assets/{AgentAppsPage-BuJWNNdL.css → AgentAppsPage-BCxrjrsE.css} +1 -1
  7. package/dist/web/assets/AgentAvatar-DbsG1_BY.css +1 -0
  8. package/dist/web/assets/AgentAvatar-DlAQP7gm.js +1 -0
  9. package/dist/web/assets/{AgentHand-BGGdVdd9.js → AgentHand-FPFg9-Y1.js} +1 -1
  10. package/dist/web/assets/AgentManagement-CLFw9oV9.css +1 -0
  11. package/dist/web/assets/AgentManagement-UTe4I3WA.js +7 -0
  12. package/dist/web/assets/AgentMentionCopy-B9eIIr3L.css +1 -0
  13. package/dist/web/assets/AgentMentionCopy-C5ExlutT.js +1 -0
  14. package/dist/web/assets/{AgentName-CUjBNQ8j.js → AgentName-C8mYbtKs.js} +1 -1
  15. package/dist/web/assets/AgentProfilePage-BLeyT3By.js +5 -0
  16. package/dist/web/assets/{AgentProfilePage-D5QUzw5N.css → AgentProfilePage-DumsVHP1.css} +1 -1
  17. package/dist/web/assets/AgentServicesPage-B2mDUgYZ.css +1 -0
  18. package/dist/web/assets/AgentServicesPage-BXi152Xc.js +1 -0
  19. package/dist/web/assets/{AppViewerPage-CcOlwxck.js → AppViewerPage-BR8ttEGa.js} +1 -1
  20. package/dist/web/assets/{BackToTop-C3KYEoCW.js → BackToTop-5_AQRMZl.js} +1 -1
  21. package/dist/web/assets/{BoardCardFieldsMenu-BlBWT1j7.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
  22. package/dist/web/assets/{BoardMoveMenu-Bc7xC1Uh.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
  23. package/dist/web/assets/{Breadcrumb-C_xMiD-Z.js → Breadcrumb-DtM5lZy5.js} +1 -1
  24. package/dist/web/assets/{CaptureChangePage-Bekp1aWg.js → CaptureChangePage-BzwcfacI.js} +1 -1
  25. package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +1 -0
  26. package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +1 -0
  27. package/dist/web/assets/{CopyFixPrompt-Bp-UX4Hq.js → CopyFixPrompt-DlarhfPK.js} +1 -1
  28. package/dist/web/assets/DataFormatPage-Ccy_e9rf.css +1 -0
  29. package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +2 -0
  30. package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +1 -0
  31. package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +1 -0
  32. package/dist/web/assets/{DialogTitle-Lj5s6nwG.js → DialogTitle-BQXOe8EK.js} +1 -1
  33. package/dist/web/assets/{EmployeeRedirectPage-DnvwJeCN.js → EmployeeRedirectPage-BjWpXDSM.js} +1 -1
  34. package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +1 -0
  35. package/dist/web/assets/EmployeeScopeDialog-U_-eNH0Z.css +1 -0
  36. package/dist/web/assets/{EmployeeWorkbench-BhReI8l6.css → EmployeeWorkbench-Bp9pUkfS.css} +1 -1
  37. package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +4 -0
  38. package/dist/web/assets/FieldRoot-DRf4wM5x.js +1 -0
  39. package/dist/web/assets/FlaGrowth-DgVLB8hp.css +1 -0
  40. package/dist/web/assets/FlaGrowth-OQtTLTng.js +1 -0
  41. package/dist/web/assets/FlaOccupationKit-BvrKsosv.css +1 -0
  42. package/dist/web/assets/FlaOccupationKit-C-x4VrKk.js +1 -0
  43. package/dist/web/assets/{FlaTaskSheets-CNdaBy1P.js → FlaTaskSheets-CoaF5CbQ.js} +1 -1
  44. package/dist/web/assets/FlasPage-CgIVOGFM.js +1 -0
  45. package/dist/web/assets/FlasPage-H99IZ9M6.css +1 -0
  46. package/dist/web/assets/{GrowthLoading-Cr8xZwwO.js → GrowthLoading-VuVo2vLf.js} +1 -1
  47. package/dist/web/assets/{HowtoPage-Cv1YQy1s.js → HowtoPage-CZ3mOdLc.js} +1 -1
  48. package/dist/web/assets/{HowtoPage-t12tDDpS.css → HowtoPage-CrvMmT6K.css} +1 -1
  49. package/dist/web/assets/InboxPage-1ue8vA7H.css +1 -0
  50. package/dist/web/assets/InboxPage-zNUnnYeJ.js +6 -0
  51. package/dist/web/assets/{KnowledgeDeleteButton-FEyEvhlR.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
  52. package/dist/web/assets/{KnowledgeHardDeleteSection-CVwTeMEJ.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
  53. package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
  54. package/dist/web/assets/{KnowledgeItemSummaryCard-49EADY_Z.js → KnowledgeItemSummaryCard-Co5JKBHl.js} +1 -1
  55. package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +1 -0
  56. package/dist/web/assets/KnowledgeOrganizerPage-CJaFkfS7.css +1 -0
  57. package/dist/web/assets/KnowledgePage--Z4_kAhq.js +1 -0
  58. package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +1 -0
  59. package/dist/web/assets/{KnowledgePeek-Bm5jRVA9.css → KnowledgePeek-CwZVuSkf.css} +1 -1
  60. package/dist/web/assets/{KnowledgeTurnReceiptPage-BOz7IpaK.js → KnowledgeTurnReceiptPage-Csyjimeg.js} +1 -1
  61. package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +4 -0
  62. package/dist/web/assets/{KnowledgeWorkspace-DCoVFyf0.css → KnowledgeWorkspace-BgWo6lBj.css} +1 -1
  63. package/dist/web/assets/{MeAvatar-CYVcRiuW.js → MeAvatar-aY_q8cKs.js} +1 -1
  64. package/dist/web/assets/{MeLink-BdqkzhT6.js → MeLink-B0pNwVLa.js} +1 -1
  65. package/dist/web/assets/MenuSeparator-BR-uLovR.js +1 -0
  66. package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +1 -0
  67. package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +1 -0
  68. package/dist/web/assets/{NotFoundPage-Dmn32VWo.js → NotFoundPage-Cr1MaPuk.js} +1 -1
  69. package/dist/web/assets/NoticeRow-BXZWn4EZ.js +1 -0
  70. package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
  71. package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +1 -0
  72. package/dist/web/assets/OccupationsPage-Dup7WzNh.css +1 -0
  73. package/dist/web/assets/OverviewPage-BkJ17OYv.js +1 -0
  74. package/dist/web/assets/OverviewPage-Dr4jrXW4.css +1 -0
  75. package/dist/web/assets/{PageColumns-DpfaPeu7.js → PageColumns-DvehZlYm.js} +1 -1
  76. package/dist/web/assets/PageOutline-CFGtHmOK.js +1 -0
  77. package/dist/web/assets/PageOutline-DG5ZYtA8.css +1 -0
  78. package/dist/web/assets/{PersonalProfilePage-DdBfHnqq.css → PersonalProfilePage-DnjNX2xK.css} +1 -1
  79. package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +1 -0
  80. package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +1 -0
  81. package/dist/web/assets/{PinIcon-B7dvh7ld.js → PinIcon-BTQsnxRY.js} +1 -1
  82. package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
  83. package/dist/web/assets/{Presence-D3HKb5Hb.js → Presence-B0zMpCF4.js} +1 -1
  84. package/dist/web/assets/ProfileAuthorChip-BqT9Vv65.js +1 -0
  85. package/dist/web/assets/ProfileAuthorChip-CAWNGoW3.css +1 -0
  86. package/dist/web/assets/{ProjectAgentsPage-RpfiV2Fm.css → ProjectAgentsPage-CjeXFzHr.css} +1 -1
  87. package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +5 -0
  88. package/dist/web/assets/{ProjectJudgmentPolicy-GA33aSRi.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
  89. package/dist/web/assets/{PublicProjectsPage-PJlBI8IE.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
  90. package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
  91. package/dist/web/assets/{RoundtablesPage-DT5DUXsa.js → RoundtablesPage-C3dYekQ5.js} +6 -6
  92. package/dist/web/assets/{RoundtablesPage-DK9A9J-y.css → RoundtablesPage-DL-IOngN.css} +1 -1
  93. package/dist/web/assets/RovingFocusGroup-CUqyjFSs.js +1 -0
  94. package/dist/web/assets/{RovingFocusItem-CFd7tXzD.js → RovingFocusItem-CyyuWXjE.js} +1 -1
  95. package/dist/web/assets/{SessionMigrationPage-BZ1lEDQr.js → SessionMigrationPage-DukDM0TP.js} +1 -1
  96. package/dist/web/assets/SessionRecordsPage-DZ5ZBiuS.js +1 -0
  97. package/dist/web/assets/SettingsPage-CWGk0XZ_.js +1 -0
  98. package/dist/web/assets/SettingsPage-Cj3pEWcd.css +1 -0
  99. package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +1 -0
  100. package/dist/web/assets/TagVocabularyPage-BKLFJiSu.js +1 -0
  101. package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
  102. package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +1 -0
  103. package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +1 -0
  104. package/dist/web/assets/{TaskReason-LQ0CFiKu.js → TaskReason-D5j7L8tl.js} +1 -1
  105. package/dist/web/assets/TeamCard-CDunbIrP.js +1 -0
  106. package/dist/web/assets/TeamCard-CihQsZZ1.css +1 -0
  107. package/dist/web/assets/{TeamCardsWidget-DGX9k0S6.js → TeamCardsWidget-CUW-fPn7.js} +1 -1
  108. package/dist/web/assets/TeamIsland-CmpDmIX2.js +9 -0
  109. package/dist/web/assets/{TeamIsland-BBQbpozz.css → TeamIsland-DvtcsAsb.css} +1 -1
  110. package/dist/web/assets/{Teleport-C1upABpY.js → Teleport-Dzdr8umQ.js} +1 -1
  111. package/dist/web/assets/{TextField-ZnmRqG0h.js → TextField-BPhEpEv9.js} +1 -1
  112. package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +1 -0
  113. package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +1 -0
  114. package/dist/web/assets/{UiChip-CizeOu1Q.js → UiChip-BEQ067LV.js} +1 -1
  115. package/dist/web/assets/{UiDialog-CGTzxn3-.js → UiDialog-JjqzOA0z.js} +1 -1
  116. package/dist/web/assets/{UiDisclosure-ueMA4jl0.js → UiDisclosure-L6GEJHSw.js} +1 -1
  117. package/dist/web/assets/{UiIcon-sD1hUsOF.js → UiIcon-vgD4v8q8.js} +1 -1
  118. package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
  119. package/dist/web/assets/{UiSegmented-BZ-jqnPE.js → UiSegmented-CIIm3KoV.js} +1 -1
  120. package/dist/web/assets/{UiWeight-BRO3oVMZ.js → UiWeight-D-2iZ_Kc.js} +1 -1
  121. package/dist/web/assets/VirtualDirectoryList-BJecsQct.css +1 -0
  122. package/dist/web/assets/VirtualDirectoryList-BV8KsA-Z.js +1 -0
  123. package/dist/web/assets/{VisuallyHidden-B8wfJ_mU.js → VisuallyHidden-BxKxuXRF.js} +1 -1
  124. package/dist/web/assets/VisuallyHiddenInput-DD4vhlqT.js +1 -0
  125. package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +2 -0
  126. package/dist/web/assets/WorkbenchListHead-B0TjHsTO.js +1 -0
  127. package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +1 -0
  128. package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +1 -0
  129. package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +9 -0
  130. package/dist/web/assets/agent-apps-B1Je-mpY.js +1 -0
  131. package/dist/web/assets/agent-occupation-CjfQqSzd.js +1 -0
  132. package/dist/web/assets/{agent-pins-8KX0ynzy.js → agent-pins-DxHlJ96z.js} +1 -1
  133. package/dist/web/assets/agent-profile-BNPLhDog.css +1 -0
  134. package/dist/web/assets/{agent-roster-records-PfAgndHp.js → agent-roster-records-Bi5HWDif.js} +1 -1
  135. package/dist/web/assets/agent-work-summary-o_9-QWBL.js +1 -0
  136. package/dist/web/assets/{agent-workflows-DQlqVOoA.js → agent-workflows-DgdbJqpg.js} +1 -1
  137. package/dist/web/assets/{attach-closest-edge-D2qlayPy.js → attach-closest-edge-DUc_VUVO.js} +1 -1
  138. package/dist/web/assets/{attention-store-BnZ8l3kk.js → attention-store-Bod20yM3.js} +1 -1
  139. package/dist/web/assets/{badge-DX_xrLV6.js → badge-tMy2Qr94.js} +1 -1
  140. package/dist/web/assets/{button-CEkPBC1E.js → button-DnKFsImW.js} +1 -1
  141. package/dist/web/assets/{card-DNQ0_6vT.js → card-Ccu7HCNb.js} +1 -1
  142. package/dist/web/assets/{catalog-KnpBkv5t.js → catalog-CJUV8OJ6.js} +1 -1
  143. package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
  144. package/dist/web/assets/{client-CSQcWFRh.js → client-D-G2i5VU.js} +2 -2
  145. package/dist/web/assets/client-links-store-UgmraFBZ.js +1 -0
  146. package/dist/web/assets/combobox-C7QLYGzs.js +1 -0
  147. package/dist/web/assets/console-DgRc8Itw.js +1 -0
  148. package/dist/web/assets/{conversation-launcher-settings-CXFE-q_A.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
  149. package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
  150. package/dist/web/assets/{dialog-CxhKMo0D.js → dialog-Bbq93W68.js} +1 -1
  151. package/dist/web/assets/{dist-B9GqMC5C.js → dist-Dd8yFhv6.js} +1 -1
  152. package/dist/web/assets/{dist-DIJqkL4O.js → dist-PpsW5ZE3.js} +1 -1
  153. package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
  154. package/dist/web/assets/{field-LNsBZqam.js → field-DjVv_wIS.js} +1 -1
  155. package/dist/web/assets/{format-bytes-Bqefdt37.js → format-bytes-BKq_E0Hs.js} +1 -1
  156. package/dist/web/assets/hover-card-BO-929hq.js +1 -0
  157. package/dist/web/assets/{identity-DRfhWjty.js → identity-DIG-uOiU.js} +1 -1
  158. package/dist/web/assets/index-DF0TcfPY.css +1 -0
  159. package/dist/web/assets/index-RWEx1M91.js +24 -0
  160. package/dist/web/assets/{input-UoZ-0Xne.js → input-DmwRmYO2.js} +1 -1
  161. package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
  162. package/dist/web/assets/{label-DpjbTOxt.js → label-BvwPUTS4.js} +1 -1
  163. package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
  164. package/dist/web/assets/{model-CpuIG8Du.js → model-0TZRbkN2.js} +1 -1
  165. package/dist/web/assets/model-BF_ZMPLi.js +1 -0
  166. package/dist/web/assets/model-BjUERpoQ.js +3 -0
  167. package/dist/web/assets/model-CaR7VPg7.js +1 -0
  168. package/dist/web/assets/{model-pJ6k3zYD.js → model-Dfe81jZT.js} +1 -1
  169. package/dist/web/assets/{model-BYKHVgJr.js → model-DpkZUZUL.js} +1 -1
  170. package/dist/web/assets/{model-13BQndfF.js → model-Tmn6HvL-.js} +1 -1
  171. package/dist/web/assets/{model-B5g0CFcM.js → model-y7OUvtKz.js} +1 -1
  172. package/dist/web/assets/motion-C1fZrqmI.js +1 -0
  173. package/dist/web/assets/{motion-C-ZimCUS.js → motion-mAmbRj_M.js} +1 -1
  174. package/dist/web/assets/{motion-preference-BQiiwhab.js → motion-preference-Dz9S1bZa.js} +1 -1
  175. package/dist/web/assets/npm-copies-BLRc0FXW.js +1 -0
  176. package/dist/web/assets/{client-connection-model-DVwA-GIu.css → npm-copies-GRyMAduA.css} +1 -1
  177. package/dist/web/assets/occupation-catalog-_SnxxRbK.js +1 -0
  178. package/dist/web/assets/occupation-kits-DFC6Auuc.js +1 -0
  179. package/dist/web/assets/{option-CcHPBOo6.js → option-DC8frdbr.js} +1 -1
  180. package/dist/web/assets/{orchestration-filters-DmF4Qs8E.js → orchestration-filters-UeiAHJqn.js} +1 -1
  181. package/dist/web/assets/overview-data-Cq1gefY5.js +1 -0
  182. package/dist/web/assets/page-refresh-DdRJaxMv.js +1 -0
  183. package/dist/web/assets/{page-title-NXphgeQI.js → page-title-Cm9u_qw1.js} +1 -1
  184. package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
  185. package/dist/web/assets/{popover-xSRzcSmY.js → popover-DW__YCSE.js} +1 -1
  186. package/dist/web/assets/popup-host-ctKYu9Ze.js +1 -0
  187. package/dist/web/assets/profile-model-DtISOJ-X.js +1 -0
  188. package/dist/web/assets/{project-board-layout-DBQeP_QP.js → project-board-layout-CTM8kAgq.js} +1 -1
  189. package/dist/web/assets/{project-capture-BhYsDWwJ.js → project-capture-B3pNhpFF.js} +1 -1
  190. package/dist/web/assets/{project-origin-D8jy8EF_.js → project-origin-BO8Ngccf.js} +1 -1
  191. package/dist/web/assets/quick-edit-api-B169r5Qb.js +1 -0
  192. package/dist/web/assets/radio-group-DqA46cXQ.js +1 -0
  193. package/dist/web/assets/review-api-CJaNgPMA.js +1 -0
  194. package/dist/web/assets/review-list-BbV-Mle7.js +1 -0
  195. package/dist/web/assets/review-store-DSQpb5P8.js +1 -0
  196. package/dist/web/assets/{role-names-PECaMfQo.js → role-names-By0xdfTn.js} +1 -1
  197. package/dist/web/assets/roundtable-live-u9qUU6aA.js +1 -0
  198. package/dist/web/assets/{runtime-dom.esm-bundler-f39i44Mt.js → runtime-dom.esm-bundler-DhFy4Djs.js} +1 -1
  199. package/dist/web/assets/save-file-oGyIokMI.js +1 -0
  200. package/dist/web/assets/select-TqPBladU.js +1 -0
  201. package/dist/web/assets/{session-launch-offers-X9b0DwF1.js → session-launch-offers-CtQeY4Qk.js} +1 -1
  202. package/dist/web/assets/{settings-restart-BnwcTv3i.js → settings-autosave-C7vW3_SP.js} +1 -1
  203. package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
  204. package/dist/web/assets/{shared-report-BxNVLalR.js → shared-report-DQBSigHB.js} +3 -3
  205. package/dist/web/assets/{source-adapters-aupsL146.js → source-adapters-DPJzumzC.js} +1 -1
  206. package/dist/web/assets/{switch-B3Y3oE_n.js → switch-D7w_0h3m.js} +1 -1
  207. package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
  208. package/dist/web/assets/{task-card-fields-DAx6zMLz.js → task-card-fields-X1ZYCm_j.js} +1 -1
  209. package/dist/web/assets/{task-labels-BdDFvSAy.js → task-labels-LuXoQhF9.js} +1 -1
  210. package/dist/web/assets/{task-reason-7WnPreht.js → task-reason-ChpbGtyx.js} +1 -1
  211. package/dist/web/assets/{team-sheets-Cr0ZTPw3.js → team-sheets-DYCQqa8I.js} +1 -1
  212. package/dist/web/assets/{textarea-CRzFqL9a.js → textarea-D53VYanK.js} +1 -1
  213. package/dist/web/assets/ui-D4nAhcmu.css +1 -0
  214. package/dist/web/assets/ui-DmNbL8MW.js +1 -0
  215. package/dist/web/assets/{useAgentRecords-CMtpd3Fj.js → useAgentRecords-Hy9nqMs7.js} +1 -1
  216. package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
  217. package/dist/web/assets/{useApi-CROJJdhE-CRCgNOqq.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
  218. package/dist/web/assets/{useClipboardCopy-DkqKK3wY.js → useClipboardCopy-BTuQMeWI.js} +1 -1
  219. package/dist/web/assets/{useFocusReturn-BZpVmQnM.js → useFocusReturn-4hUmSzj9.js} +1 -1
  220. package/dist/web/assets/{useForwardExpose-Di-MnbTz.js → useForwardExpose-BDmW7q7u.js} +1 -1
  221. package/dist/web/assets/{useForwardPropsEmits-L9XcB5DG.js → useForwardPropsEmits-BzT2luD4.js} +1 -1
  222. package/dist/web/assets/useForwardScopeId-DZCnSswO.js +1 -0
  223. package/dist/web/assets/useKnowledgeConfirm-L8wnJCuX.js +1 -0
  224. package/dist/web/assets/useKnowledgeItemPeek-C_huXt6E.js +1 -0
  225. package/dist/web/assets/{useMinimumLoadingDisplay-CWPiOaDl.js → useMinimumLoadingDisplay-Dkl8NQru.js} +1 -1
  226. package/dist/web/assets/usePageTools-CbDOdIrg.js +1 -0
  227. package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +1 -0
  228. package/dist/web/assets/{useProjectAgentRoster-CWVpSsQ3.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
  229. package/dist/web/assets/{useRoutePeek-DxLVksbJ.js → useRoutePeek-CRbCDqsm.js} +1 -1
  230. package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
  231. package/dist/web/assets/{useTeamWork-BTZd_wKs.js → useTeamWork-CXEQwF4n.js} +1 -1
  232. package/dist/web/assets/{useTypeahead-pEZNpBls.js → useTypeahead-CVYuxPOD.js} +1 -1
  233. package/dist/web/assets/{utils-BsxOjD1Q.js → utils-BnrWDlfm.js} +1 -1
  234. package/dist/web/assets/utils-BsGjKHV8.js +1 -0
  235. package/dist/web/assets/verification-DbCo_dnY.js +1 -0
  236. package/dist/web/assets/{version-db3QWWjt.js → version-Ci3l8Vnb.js} +1 -1
  237. package/dist/web/assets/{vue-router-B79HWW1l.js → vue-router-D4_ms6om.js} +1 -1
  238. package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
  239. package/dist/web/index.html +90 -74
  240. package/docs/agent-conversations-and-collaboration.md +55 -58
  241. package/docs/agent-interface-architecture.md +7 -2
  242. package/docs/agent-roundtable.md +9 -8
  243. package/docs/client-connections.md +85 -8
  244. package/docs/client-links.md +16 -1
  245. package/docs/employee-agents.md +1 -1
  246. package/docs/judgment-and-autonomy.md +2 -0
  247. package/docs/public-personal-architecture.md +1 -1
  248. package/graph-provider/fuli_graph/app.py +2 -0
  249. package/graph-provider/fuli_graph/graph_field_contract.py +6 -3
  250. package/graph-provider/fuli_graph/graph_format_migrations.py +6 -0
  251. package/graph-provider/fuli_graph/graph_models.py +11 -62
  252. package/graph-provider/fuli_graph/graph_query.py +46 -105
  253. package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +7 -5
  254. package/graph-provider/fuli_graph/knowledge_duplicate_models.py +24 -0
  255. package/graph-provider/fuli_graph/knowledge_duplicate_rules.py +157 -0
  256. package/graph-provider/fuli_graph/knowledge_duplicates.py +357 -0
  257. package/graph-provider/fuli_graph/knowledge_item_routes.py +3 -1
  258. package/graph-provider/fuli_graph/knowledge_item_view.py +45 -2
  259. package/graph-provider/fuli_graph/knowledge_item_view_models.py +21 -0
  260. package/graph-provider/fuli_graph/knowledge_management.py +6 -1
  261. package/graph-provider/fuli_graph/knowledge_outdated.py +15 -5
  262. package/graph-provider/fuli_graph/knowledge_review.py +65 -2
  263. package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
  264. package/graph-provider/fuli_graph/knowledge_search.py +0 -31
  265. package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
  266. package/graph-provider/fuli_graph/models.py +9 -2
  267. package/graph-provider/fuli_graph/preference_versions.py +28 -7
  268. package/graph-provider/fuli_graph/project_agent_routes.py +60 -2
  269. package/graph-provider/fuli_graph/project_agent_task_models.py +63 -5
  270. package/graph-provider/fuli_graph/store.py +2 -0
  271. package/graph-provider/fuli_graph/store_project_agent_task_activity.py +12 -3
  272. package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +110 -23
  273. package/graph-provider/fuli_graph/store_project_agent_task_pages.py +186 -0
  274. package/graph-provider/fuli_graph/store_project_agent_task_reads.py +6 -4
  275. package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +0 -7
  276. package/graph-provider/fuli_graph/store_project_agent_tasks.py +4 -3
  277. package/graph-provider/fuli_graph/store_task_contexts.py +14 -4
  278. package/graph-provider/fuli_graph/task_blocker.py +38 -6
  279. package/graph-provider/fuli_graph/tonborg_confirmation.py +48 -0
  280. package/graph-provider/pyproject.toml +1 -1
  281. package/native/win32/fuli-win-helper.exe +0 -0
  282. package/npm-shrinkwrap.json +16 -50
  283. package/package.json +2 -2
  284. package/packages/roundtable/src/peer/node-store.js +2 -6
  285. package/packages/roundtable/src/roundtable/chat-service.js +2 -1
  286. package/packages/roundtable/src/roundtable/chat.js +11 -1
  287. package/packages/roundtable/src/roundtable/delivery-state.js +43 -0
  288. package/packages/roundtable/src/roundtable/fla-address.js +6 -0
  289. package/packages/roundtable/src/roundtable/group-discussion-store.js +2 -2
  290. package/packages/roundtable/src/roundtable/group-discussion.js +15 -15
  291. package/packages/roundtable/src/roundtable/person-conversation.js +2 -1
  292. package/packages/roundtable/src/roundtable/service.js +40 -9
  293. package/packages/roundtable/src/roundtable/store.js +30 -7
  294. package/packages/roundtable/src/storage/database-format.js +21 -16
  295. package/registry/client-links.json +66 -4
  296. package/registry/occupation-plugins.json +593 -0
  297. package/skills/capturing-session-knowledge/SKILL.md +16 -3
  298. package/skills/capturing-session-knowledge/references/capture.md +22 -6
  299. package/skills/capturing-session-knowledge/references/coordination.md +16 -6
  300. package/skills/capturing-session-knowledge/references/retrieval.md +23 -6
  301. package/skills/flreview/SKILL.md +1 -1
  302. package/skills/operating-fuli/SKILL.md +40 -13
  303. package/skills/operating-fuli/references/workflow-recipes.md +9 -5
  304. package/src/acceptance-checks/port.js +37 -0
  305. package/src/adaptive-runtime/settings.js +1 -1
  306. package/src/adaptive-runtime/state.js +3 -3
  307. package/src/agent-apps/host-tools/catalog.js +7 -0
  308. package/src/agent-apps/store.js +2 -10
  309. package/src/agent-delegation/person-words.js +15 -1
  310. package/src/agent-kits/cli-presence.js +78 -0
  311. package/src/agent-kits/client-installer.js +9 -5
  312. package/src/agent-kits/installer-manifest.js +11 -6
  313. package/src/agent-kits/legacy-hook-cleanup.js +4 -3
  314. package/src/agent-kits/new-sessions.js +82 -0
  315. package/src/agent-kits/opencode-plugin-gate.js +3 -1
  316. package/src/agent-kits/pins.js +12 -12
  317. package/src/agent-kits/ports.js +5 -2
  318. package/src/agent-kits/session-launcher.js +11 -4
  319. package/src/agent-kits/vendor/agent-installer/README.md +1 -1
  320. package/src/agent-kits/vendor/agent-installer/index.d.ts +1 -1
  321. package/src/agent-kits/vendor/agent-session-launcher/README.md +1 -1
  322. package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +30 -1
  323. package/src/agent-kits/vendor/agent-session-launcher/index.mjs +8 -0
  324. package/src/agent-roundtable/tools.js +3 -3
  325. package/src/agent-services/store.js +2 -4
  326. package/src/agent-tools/agent-workflow-definitions.js +7 -3
  327. package/src/agent-tools/checkpoint-definitions.js +5 -4
  328. package/src/agent-tools/fla-lesson-definitions.js +24 -0
  329. package/src/agent-tools/graph-definitions.js +8 -0
  330. package/src/agent-tools/graph-handlers.js +15 -4
  331. package/src/agent-tools/interface-catalog.js +34 -9
  332. package/src/agent-tools/model-backend-definitions.js +1 -1
  333. package/src/agent-tools/occupation-kit-definitions.js +20 -0
  334. package/src/agent-tools/project-agent-definitions.js +19 -40
  335. package/src/agent-tools/project-agent-tool-definitions.js +5 -1
  336. package/src/agent-tools/reply-echo-definitions.js +18 -0
  337. package/src/agent-tools/tonborg-question-definitions.js +26 -0
  338. package/src/agent-workflows/agent-tools.js +69 -3
  339. package/src/agent-workflows/port.js +32 -4
  340. package/src/agent-workflows/store.js +16 -9
  341. package/src/agents/call-source.js +11 -0
  342. package/src/agents/choice-answers.js +19 -0
  343. package/src/agents/claude-code/choice-answers.js +49 -0
  344. package/src/agents/claude-code/fla-menu-command.js +14 -0
  345. package/src/agents/claude-code/lifecycle-hook.js +16 -9
  346. package/src/agents/claude-code/turn-records.js +38 -0
  347. package/src/agents/claude-desktop/code-tab-token-source.js +26 -0
  348. package/src/agents/codex/fla-prompts.js +98 -0
  349. package/src/agents/codex/lifecycle-hook.js +8 -7
  350. package/src/agents/cursor/lifecycle-hook.js +3 -2
  351. package/src/agents/identity-receipt.js +9 -7
  352. package/src/agents/lifecycle-failure.js +15 -5
  353. package/src/agents/lifecycle-message.js +4 -5
  354. package/src/agents/opencode/lifecycle-hook.js +12 -7
  355. package/src/agents/opencode/plugin.js +7 -2
  356. package/src/agents/token-usage-resolver.js +1 -1
  357. package/src/agents/turn-receipt.js +5 -4
  358. package/src/cli/command-registry.js +1 -1
  359. package/src/cli/local-runtime-command.js +5 -2
  360. package/src/cli/local-runtime-options.js +7 -3
  361. package/src/cli/models-command.js +15 -11
  362. package/src/cli/update-command.js +2 -2
  363. package/src/cli/update-installation.js +23 -6
  364. package/src/cli/workspace-connection-command.js +2 -2
  365. package/src/client-links/registry.js +6 -112
  366. package/src/conversations/current-task-lookup.js +2 -3
  367. package/src/conversations/entry-skeleton.js +113 -55
  368. package/src/conversations/human-interaction.js +1 -1
  369. package/src/conversations/person-words.js +29 -0
  370. package/src/conversations/preference-session.js +17 -14
  371. package/src/conversations/stop-auto-close.js +28 -7
  372. package/src/conversations/task-context-view.js +113 -27
  373. package/src/conversations/turn-findings.js +105 -0
  374. package/src/data-format/format-notices.js +2 -1
  375. package/src/data-format/local-stores.js +22 -1
  376. package/src/debug-turns/model-capture.js +1 -1
  377. package/src/debug-turns/record.js +1 -1
  378. package/src/desktop/cli-path.js +253 -0
  379. package/src/desktop/desktop-app-package.js +31 -0
  380. package/src/desktop/{fuli-links.js → desktop-client-links.js} +20 -16
  381. package/src/desktop/desktop-controller.js +35 -3
  382. package/src/desktop/npm-adoption-store.js +7 -0
  383. package/src/desktop/npm-adoption.js +119 -0
  384. package/src/desktop/npm-copies.js +73 -0
  385. package/src/desktop/npm-copy-control.js +56 -0
  386. package/src/desktop/npm-copy-data.js +51 -0
  387. package/src/desktop/npm-copy-uninstall.js +67 -0
  388. package/src/desktop/windows-controller.js +13 -1
  389. package/src/desktop/windows-installation-switch.js +1 -1
  390. package/src/desktop/windows-node-launcher.js +11 -0
  391. package/src/desktop/windows-uninstall.js +3 -0
  392. package/src/dreaming/astro-calls.js +47 -0
  393. package/src/dreaming/projects.js +39 -0
  394. package/src/dreaming/run.js +38 -36
  395. package/src/dreaming/scheduler.js +2 -2
  396. package/src/employees/builtin/jefa/board-store.js +2 -10
  397. package/src/employees/builtin/jefa/tools.js +1 -1
  398. package/src/employees/management-policy.js +1 -1
  399. package/src/employees/manifest.js +1 -1
  400. package/src/employees/service.js +11 -1
  401. package/src/external-knowledge/document-mapping.js +1 -1
  402. package/src/external-knowledge/index.js +0 -4
  403. package/src/fla-growth/lessons.js +40 -0
  404. package/src/fla-growth/task-verification.js +25 -0
  405. package/src/fla-growth/tool-suggestions.js +107 -0
  406. package/src/fla-growth/verification.js +30 -0
  407. package/src/graphiti/agent-access-policy.js +1 -1
  408. package/src/graphiti/agent-conversations.js +2 -2
  409. package/src/graphiti/agent-growth.js +32 -4
  410. package/src/graphiti/capture-change-confirmation.js +4 -1
  411. package/src/graphiti/capture-notice.js +2 -1
  412. package/src/graphiti/capture-onboarding.js +1 -1
  413. package/src/graphiti/checkpoint-provider-outage.js +23 -0
  414. package/src/graphiti/collaboration-preference-projection.js +1 -1
  415. package/src/graphiti/conversation-triage.js +1 -1
  416. package/src/graphiti/execution-mode.js +1 -1
  417. package/src/graphiti/federated-application.js +16 -8
  418. package/src/graphiti/fla-mention.js +105 -96
  419. package/src/graphiti/fla-menu-reader.js +25 -0
  420. package/src/graphiti/fla-menu.js +108 -0
  421. package/src/graphiti/fla-picker.js +21 -16
  422. package/src/graphiti/fuli-markup.js +60 -0
  423. package/src/graphiti/group-member-context.js +1 -1
  424. package/src/graphiti/human-review-channel.js +16 -2
  425. package/src/graphiti/knowledge-result-budget.js +2 -2
  426. package/src/graphiti/knowledge-review.js +2 -1
  427. package/src/graphiti/local-runtimes.js +11 -0
  428. package/src/graphiti/preference-task-scope.js +1 -1
  429. package/src/graphiti/project-agent-control-plane.js +6 -0
  430. package/src/graphiti/project-agent-mapping.js +23 -10
  431. package/src/graphiti/project-agent-mention.js +10 -28
  432. package/src/graphiti/project-agent-task-entry.js +1 -1
  433. package/src/graphiti/project-agent-task-sheets.js +1 -1
  434. package/src/graphiti/project-agent-workflows.js +20 -5
  435. package/src/graphiti/project-knowledge-presence.js +27 -0
  436. package/src/graphiti/project-path-context.js +2 -2
  437. package/src/graphiti/provider-client.js +24 -0
  438. package/src/graphiti/provider-outage.js +20 -0
  439. package/src/graphiti/recall-policy.js +1 -1
  440. package/src/graphiti/reply-echo-agent-tool.js +36 -0
  441. package/src/graphiti/reply-echo-group.js +85 -0
  442. package/src/graphiti/reply-echo.js +87 -0
  443. package/src/graphiti/session-knowledge-migration.js +2 -1
  444. package/src/graphiti/session-prompt-sentences.js +52 -0
  445. package/src/graphiti/session-records.js +3 -2
  446. package/src/graphiti/source-marker.js +14 -0
  447. package/src/graphiti/task-blocker-progress.js +24 -1
  448. package/src/graphiti/task-context-entry.js +20 -1
  449. package/src/graphiti/task-entry-group-discussion.js +31 -31
  450. package/src/graphiti/task-entry-named-fla.js +40 -70
  451. package/src/graphiti/task-entry-preferences.js +2 -2
  452. package/src/graphiti/task-entry-project-scope.js +4 -4
  453. package/src/graphiti/task-entry-provider-outage.js +25 -0
  454. package/src/graphiti/task-entry-read-only.js +1 -1
  455. package/src/graphiti/task-entry-standing-owner.js +3 -3
  456. package/src/graphiti/task-experiences.js +21 -3
  457. package/src/graphiti/task-knowledge-checkpoint.js +5 -2
  458. package/src/graphiti/task-knowledge-recall.js +140 -25
  459. package/src/graphiti/task-prompt-statement.js +49 -0
  460. package/src/graphiti/task-remember.js +23 -9
  461. package/src/graphiti/task-scene.js +1 -1
  462. package/src/graphiti/task-stated-rules.js +75 -0
  463. package/src/graphiti/temporary-project-scope.js +1 -1
  464. package/src/graphiti/topic-proposals.js +6 -5
  465. package/src/graphiti/user-taste-skill.js +1 -1
  466. package/src/graphiti/workflow-candidate-mapping.js +1 -1
  467. package/src/http/agent-delegation-gate.js +9 -0
  468. package/src/http/api-router.js +16 -0
  469. package/src/http/cli-path-api-router.js +35 -0
  470. package/src/http/desktop-client-api-router.js +18 -0
  471. package/src/http/dreaming-api-router.js +10 -7
  472. package/src/http/graph-api-router.js +17 -0
  473. package/src/http/notices-api-router.js +37 -0
  474. package/src/http/npm-copies-api-router.js +36 -0
  475. package/src/http/occupation-plugins-api-router.js +43 -0
  476. package/src/http/reply-echo-api-router.js +53 -0
  477. package/src/http/response.js +1 -1
  478. package/src/http/retrospectives-api-router.js +18 -0
  479. package/src/http/session-launch-api-router.js +34 -1
  480. package/src/http/static-handler.js +1 -1
  481. package/src/http/task-blocker-api-router.js +17 -5
  482. package/src/http/task-verification-api-router.js +16 -0
  483. package/src/http/whats-new-api-router.js +34 -0
  484. package/src/judgment/acceptance.js +10 -3
  485. package/src/judgment/agent-view.js +21 -4
  486. package/src/judgment/conversation.js +86 -2
  487. package/src/judgment/delegated-reviews.js +23 -0
  488. package/src/judgment/engine.js +49 -16
  489. package/src/judgment/explain-method.js +11 -0
  490. package/src/judgment/http.js +17 -2
  491. package/src/judgment/question-options.js +97 -0
  492. package/src/judgment/question-tools.js +235 -0
  493. package/src/judgment/review-delegation.js +89 -0
  494. package/src/judgment/review-prompt.js +44 -3
  495. package/src/judgment/review-verdicts.js +13 -4
  496. package/src/judgment/runtime.js +3 -1
  497. package/src/judgment/service.js +25 -5
  498. package/src/judgment/store.js +44 -8
  499. package/src/judgment/verdict-schema.js +6 -0
  500. package/src/judgment/visible-items.js +15 -4
  501. package/src/knowledge-duplicates/scheduler.js +28 -0
  502. package/src/knowledge-hard-delete/forget-references.js +5 -2
  503. package/src/knowledge-impressions/store.js +17 -5
  504. package/src/local-runtime/console-autostart-record.js +95 -0
  505. package/src/local-runtime/console-autostart.js +143 -0
  506. package/src/local-runtime/console-health.js +26 -0
  507. package/src/local-runtime/installed-console-launcher.js +73 -0
  508. package/src/local-runtime/lifecycle.js +85 -21
  509. package/src/local-runtime/processes.js +15 -2
  510. package/src/local-runtime/unresponsive-console.js +77 -0
  511. package/src/mcp/create-mcp-server.js +11 -4
  512. package/src/mcp/fla-menu-prompts.js +60 -0
  513. package/src/mcp/runtime.js +11 -3
  514. package/src/mcp/session-id.js +3 -2
  515. package/src/mcp/tool-annotations.js +5 -2
  516. package/src/mcp/tool-profiles.js +1 -1
  517. package/src/mcp/tool-result.js +3 -1
  518. package/src/model-backends/adapters/anthropic-messages.js +2 -2
  519. package/src/model-backends/adapters/ollama-local-build.js +1 -1
  520. package/src/model-backends/adapters/openai-chat.js +2 -2
  521. package/src/model-backends/budget.js +10 -1
  522. package/src/model-backends/config.js +2 -2
  523. package/src/model-backends/endpoint-models.js +80 -0
  524. package/src/model-backends/http.js +3 -1
  525. package/src/model-backends/keys-http.js +5 -4
  526. package/src/model-backends/models-http.js +54 -0
  527. package/src/model-backends/port.js +32 -5
  528. package/src/model-backends/prompt.js +11 -1
  529. package/src/model-backends/role-settings.js +27 -2
  530. package/src/model-backends/role-trust.js +3 -15
  531. package/src/model-backends/role-work-store.js +2 -12
  532. package/src/model-backends/runtime.js +11 -2
  533. package/src/model-backends/secret-store.js +61 -12
  534. package/src/model-backends/suggestion-log.js +6 -15
  535. package/src/model-backends/usage-ledger.js +28 -18
  536. package/src/notices/recent-notices.js +175 -0
  537. package/src/notifications/needs-person.js +1 -1
  538. package/src/occupation-plugins/agent-tools.js +59 -0
  539. package/src/occupation-plugins/choice-store.js +65 -0
  540. package/src/occupation-plugins/manifest.js +165 -0
  541. package/src/occupation-plugins/port.js +104 -0
  542. package/src/occupation-plugins/recruitment.js +38 -0
  543. package/src/presence/windows-helper-pin.js +1 -1
  544. package/src/registry/updatable-manifest.js +127 -0
  545. package/src/retrieval-terms/fill.js +1 -1
  546. package/src/retrospectives/run.js +113 -0
  547. package/src/retrospectives/runs.js +18 -0
  548. package/src/retrospectives/scheduler.js +58 -0
  549. package/src/server/application-lifecycle.js +1 -1
  550. package/src/server/signal-shutdown.js +31 -0
  551. package/src/server.js +26 -18
  552. package/src/setup/first-run-capture.js +6 -2
  553. package/src/setup/graph-runtime.js +46 -38
  554. package/src/setup/neo4j-memory-profile.js +1 -1
  555. package/src/setup/paths.js +2 -0
  556. package/src/standing-assignments/store.js +2 -4
  557. package/src/system/client-connection-status.js +3 -1
  558. package/src/system/doctor.js +19 -2
  559. package/src/system/graph-migration.js +1 -1
  560. package/src/system/platform-path.js +21 -9
  561. package/src/system/runtime-settings.js +19 -7
  562. package/src/system/settings-guide.js +7 -0
  563. package/src/system/system-service.js +41 -2
  564. package/src/task-blockers/console-port.js +12 -6
  565. package/src/text/markdown-link.js +12 -0
  566. package/src/text/single-line.js +6 -0
  567. package/src/text/utf8-preview.js +7 -6
  568. package/src/whats-new/lines/0.25.0.json +17 -0
  569. package/src/whats-new/lines/0.25.1.json +13 -0
  570. package/src/whats-new/release-lines.js +66 -0
  571. package/src/whats-new/whats-new.js +70 -0
  572. package/src/work-surfaces/store.js +2 -4
  573. package/dist/web/assets/AgentAppsPage-BYXraPFM.js +0 -1
  574. package/dist/web/assets/AgentManagement-Bza8k5ra.js +0 -7
  575. package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
  576. package/dist/web/assets/AgentMentionCopy-C72hY2QL.js +0 -1
  577. package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
  578. package/dist/web/assets/AgentProfilePage-kp7-gRRx.js +0 -5
  579. package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
  580. package/dist/web/assets/AgentServicesPage-IsGaz7FY.js +0 -1
  581. package/dist/web/assets/ConnectionsPage-BpvecWXD.js +0 -1
  582. package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
  583. package/dist/web/assets/DataFormatPage-dsy8d3oA.js +0 -2
  584. package/dist/web/assets/DataFormatPage-sSnjjUY4.css +0 -1
  585. package/dist/web/assets/DebugTurnPage-cIJV7xDW.js +0 -1
  586. package/dist/web/assets/DebugTurnsPage-B6Te_Alp.js +0 -1
  587. package/dist/web/assets/EmployeeScopeDialog-CXNZ62Ab.js +0 -1
  588. package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
  589. package/dist/web/assets/EmployeeWorkbench-DALIO-cM.js +0 -4
  590. package/dist/web/assets/FieldRoot-DRnAC66O.js +0 -1
  591. package/dist/web/assets/FlaGrowth-7wlv31Tl.js +0 -1
  592. package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
  593. package/dist/web/assets/FlasPage-BCs1Ffpf.js +0 -1
  594. package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
  595. package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
  596. package/dist/web/assets/InboxPage-CgJnymOY.js +0 -4
  597. package/dist/web/assets/KnowledgeItemEditPage-rwpM8cF1.js +0 -1
  598. package/dist/web/assets/KnowledgeOrganizerPage-7IdnjM3L.js +0 -1
  599. package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
  600. package/dist/web/assets/KnowledgePage-gxqOIZxf.js +0 -1
  601. package/dist/web/assets/KnowledgePeek-CQyCxHFj.js +0 -1
  602. package/dist/web/assets/KnowledgeWorkspace-A7zVb26p.js +0 -4
  603. package/dist/web/assets/MenuSeparator-quqkZZXY.js +0 -1
  604. package/dist/web/assets/ModelSettingsPage-B8jC_uew.js +0 -3
  605. package/dist/web/assets/ModelSettingsPage-DhCn_SF6.css +0 -1
  606. package/dist/web/assets/OccupationsPage-BVREfX_R.js +0 -1
  607. package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
  608. package/dist/web/assets/OverviewPage-CHyEbdP4.js +0 -1
  609. package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
  610. package/dist/web/assets/PageOutline-BKBQ1T4d.js +0 -1
  611. package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
  612. package/dist/web/assets/PersonalProfilePage-Cxp2gn6J.js +0 -1
  613. package/dist/web/assets/PersonalProjectsPage-821imOxR.js +0 -1
  614. package/dist/web/assets/PopperContent-DNqbLkNa.js +0 -1
  615. package/dist/web/assets/ProfileAuthorChip-7HSHODdR.js +0 -1
  616. package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
  617. package/dist/web/assets/ProjectAgentsPage-DBsXS6Xa.js +0 -5
  618. package/dist/web/assets/RovingFocusGroup-BB0d3k17.js +0 -1
  619. package/dist/web/assets/SessionRecordsPage-BMAAtIAt.js +0 -1
  620. package/dist/web/assets/SettingsPage-BYNEk6BM.js +0 -1
  621. package/dist/web/assets/SettingsPage-Uj1IpZpS.css +0 -1
  622. package/dist/web/assets/SharedJefaReportPage-g35o6jUb.js +0 -1
  623. package/dist/web/assets/TagVocabularyPage-COubNJXz.js +0 -1
  624. package/dist/web/assets/TaskBlockerClear-B5MpHdlh.js +0 -1
  625. package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
  626. package/dist/web/assets/TaskBlockerNotice-CIN0HRiE.js +0 -1
  627. package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
  628. package/dist/web/assets/TeamCard-D-kLa5rT.js +0 -1
  629. package/dist/web/assets/TeamIsland-BIo-l49b.js +0 -9
  630. package/dist/web/assets/UiIconButton-CCo4NPYv.js +0 -1
  631. package/dist/web/assets/UiNotice-DGPFbVo7.js +0 -1
  632. package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
  633. package/dist/web/assets/VirtualDirectoryList-BkV3gj5E.js +0 -1
  634. package/dist/web/assets/VisuallyHiddenInput-Bdcr9CwC.js +0 -1
  635. package/dist/web/assets/WidgetSlot-DFojQaSo.js +0 -2
  636. package/dist/web/assets/_plugin-vue_export-helper-B9AJmZbc.js +0 -9
  637. package/dist/web/assets/agent-apps-CKGFfySp.js +0 -1
  638. package/dist/web/assets/agent-avatar-V6M_DF3r.js +0 -1
  639. package/dist/web/assets/agent-occupation-PZ2YAIM8.js +0 -1
  640. package/dist/web/assets/agent-profile-Clb-gYu-.css +0 -1
  641. package/dist/web/assets/agent-work-summary-bzTwEUaA.js +0 -1
  642. package/dist/web/assets/checkbox-DPyLHneg.js +0 -1
  643. package/dist/web/assets/client-connection-model-vO2cap6a.js +0 -1
  644. package/dist/web/assets/client-links-store-DMqe0MbK.js +0 -1
  645. package/dist/web/assets/combobox-zUq9bkyM.js +0 -1
  646. package/dist/web/assets/console-DaoAO-EO.js +0 -1
  647. package/dist/web/assets/context-menu-CcGDnF_k.js +0 -1
  648. package/dist/web/assets/dropdown-menu-CXmMnCBh.js +0 -1
  649. package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
  650. package/dist/web/assets/index-B4AMPpl_.css +0 -1
  651. package/dist/web/assets/index-BYIOAXnn.js +0 -2
  652. package/dist/web/assets/label-table-BnWNYfyk.js +0 -1
  653. package/dist/web/assets/model-CDevUwUw.js +0 -1
  654. package/dist/web/assets/model-P5fSGsiJ.js +0 -1
  655. package/dist/web/assets/motion-QY5FKKko.js +0 -1
  656. package/dist/web/assets/occupation-catalog-uDDhZwKK.js +0 -1
  657. package/dist/web/assets/person-profile-DXXfpvta.js +0 -1
  658. package/dist/web/assets/popup-host-Bmvrf-2t.js +0 -1
  659. package/dist/web/assets/profile-model-6gTmScHC.js +0 -1
  660. package/dist/web/assets/quick-edit-api-WLh_88w6.js +0 -1
  661. package/dist/web/assets/radio-group-B4r78nDh.js +0 -1
  662. package/dist/web/assets/roundtable-live-DFeDF56c.js +0 -1
  663. package/dist/web/assets/save-file-rPduHi2f.js +0 -1
  664. package/dist/web/assets/select-_JO3Mxdp.js +0 -1
  665. package/dist/web/assets/tabs-BlcZiEMY.js +0 -1
  666. package/dist/web/assets/ui-BopQuQfc.js +0 -1
  667. package/dist/web/assets/ui-CoUaCzmO.css +0 -1
  668. package/dist/web/assets/useAgentWorkSummary-BQbhaHov.js +0 -1
  669. package/dist/web/assets/useForwardScopeId-CUQFIAIj.js +0 -1
  670. package/dist/web/assets/useKnowledgeItemPeek-PmQJixw5.js +0 -1
  671. package/dist/web/assets/useTeamPeople-CDISP0PM.js +0 -1
  672. package/dist/web/assets/utils-B4pBTmyh.js +0 -1
  673. package/src/workspace-protocol/array-validation.js +0 -19
  674. package/src/workspace-protocol/base64url-contract.js +0 -27
  675. package/src/workspace-protocol/constants.js +0 -37
  676. package/src/workspace-protocol/error-contract.js +0 -24
  677. package/src/workspace-protocol/fact-contract.js +0 -110
  678. package/src/workspace-protocol/governance-contract.js +0 -47
  679. package/src/workspace-protocol/index.js +0 -53
  680. package/src/workspace-protocol/json-budget.js +0 -19
  681. package/src/workspace-protocol/manifest-contract.js +0 -186
  682. package/src/workspace-protocol/publication-contract.js +0 -212
  683. package/src/workspace-protocol/query-contract.js +0 -149
  684. package/src/workspace-protocol/scalar-contract.js +0 -192
  685. package/src/workspace-protocol/sync-contract.js +0 -184
  686. package/src/workspace-protocol/text-contract.js +0 -39
  687. package/src/workspace-protocol/validation.js +0 -66
  688. /package/dist/web/assets/{UiNotice-ZCBdABdM.css → UiIconButton-ZCBdABdM.css} +0 -0
  689. /package/dist/web/assets/{settings-restart-BU_GGtbG.css → settings-autosave-BU_GGtbG.css} +0 -0
@@ -1 +1 @@
1
- import{An as e,D as t,Gt as n,O as r,Ot as i,Q as a,Tt as o,V as s,Y as c,_t as l,bt as u,en as d,ft as f,gt as p,h as m,mt as h,ot as g,vt as _,wt as v}from"./_plugin-vue_export-helper-B9AJmZbc.js";function y(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=g(r,t);if(n===void 0)throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return n},e=>(i(r,e),e),r]}function b(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function x(e,t){e.indexOf(t)===-1&&e.push(t)}function S(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var C=(e,t,n)=>n>t?t:n<e?e:n,w={},T=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),E=e=>typeof e==`object`&&!!e,ee=e=>/^0[^.\s]+$/u.test(e);function D(e){let t;return()=>(t===void 0&&(t=e()),t)}var O=e=>e,te=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ne=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},re=class{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>this.remove(e)}remove(e){S(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3,ie=(e,t)=>t?1e3/t*e:0,ae=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function oe(e,t,n,r){return e===t&&n===r?O:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ae(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ae(s+1e-7,e,n)-i-r)}return ae(s,t,r)}}var se=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ce=e=>t=>1-e(1-t),le=oe(.33,1.53,.69,.99),ue=ce(le),de=se(ue),fe=e=>e>=1?1:(e*=2)<1?.5*ue(e):.5*(2-2**(-10*(e-1))),pe=e=>1-Math.sin(Math.acos(e)),me=ce(pe),he=se(pe),ge=oe(.42,0,1,1),_e=oe(0,0,.58,1),ve=oe(.42,0,.58,1),ye=e=>Array.isArray(e)&&typeof e[0]!=`number`,be=e=>Array.isArray(e)&&typeof e[0]==`number`,xe={linear:O,easeIn:ge,easeInOut:ve,easeOut:_e,circIn:pe,circInOut:he,circOut:me,backIn:ue,backInOut:de,backOut:le,anticipate:fe},Se=e=>typeof e==`string`,Ce=e=>{if(be(e)){e.length;let[t,n,r,i]=e;return oe(t,n,r,i)}return Se(e)?(xe[e],`${e}`,xe[e]):e},j={delta:0,timestamp:0,isProcessing:!1},we;function Te(){we=void 0}var M={now:()=>(we===void 0&&M.set(j.isProcessing||w.useManualTiming?j.timestamp:performance.now()),we),set:e=>{we=e,queueMicrotask(Te)}},Ee=e=>Math.round(e*1e5)/1e5,De=e=>t=>typeof t==`string`&&t.startsWith(e),Oe=De(`--`),ke=De(`var(--`),Ae=e=>ke(e)?je.test(e.split(`/*`)[0].trim()):!1,je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Me(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ne={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Pe={...Ne,transform:e=>C(0,1,e)},Fe={...Ne,default:1},Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Le(e){return e==null}var Re=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ze=(e,t)=>n=>!!(typeof n==`string`&&Re.test(n)&&n.startsWith(e)||t&&!Le(n)&&Object.prototype.hasOwnProperty.call(n,t)),Be=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ie);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ve=e=>C(0,255,e),He={...Ne,transform:e=>Math.round(Ve(e))},Ue={test:ze(`rgb`,`red`),parse:Be(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+He.transform(e)+`, `+He.transform(t)+`, `+He.transform(n)+`, `+Ee(Pe.transform(r))+`)`};function We(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ge={test:ze(`#`),parse:We,transform:Ue.transform},Ke=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),N=Ke(`deg`),P=Ke(`%`),F=Ke(`px`),qe=Ke(`vh`),Je=Ke(`vw`),Ye={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(e*100)},Xe={test:ze(`hsl`,`hue`),parse:Be(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+P.transform(Ee(t))+`, `+P.transform(Ee(n))+`, `+Ee(Pe.transform(r))+`)`},I={test:e=>Ue.test(e)||Ge.test(e)||Xe.test(e),parse:e=>Ue.test(e)?Ue.parse(e):Xe.test(e)?Xe.parse(e):Ge.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ue.transform(e):Xe.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},Ze=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Qe=new RegExp(Ie.source),$e=new RegExp(Ze.source,`i`);function et(e){return isNaN(e)&&typeof e==`string`&&(Qe.test(e)||$e.test(e))}var tt=`number`,nt=`color`,rt=`var`,it=`var(`,at="${}",ot=/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+)(?![a-z]*\()/giu;function st(e){let t=e.toString();return Qe.test(t)||$e.test(t)}function ct(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ot,e=>(I.test(e)?(r.color.push(a),i.push(nt),n.push(I.parse(e))):e.startsWith(it)?(r.var.push(a),i.push(rt),n.push(e)):(r.number.push(a),i.push(tt),n.push(parseFloat(e))),++a,at)).split(at),indexes:r,types:i}}function lt(e){return ct(e).values}function ut({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===tt?Ee(r[a]):e===nt?I.transform(r[a]):r[a]}return i}}function dt(e){return ut(ct(e))}var ft=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,pt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ft(e);function mt(e){let t=ct(e);return ut(t)(t.values.map((e,n)=>pt(e,t.split[n])))}var L={test:et,parse:lt,createTransformer:dt,getAnimatableNone:mt};function ht(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ht(s,r,e+1/3),a=ht(s,r,e),o=ht(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _t(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,vt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yt=[Ge,Ue,Xe],bt=e=>yt.find(t=>t.test(e));function xt(e){let t=bt(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Xe&&(n=gt(n)),n}var St=(e,t)=>{let n=xt(e),r=xt(t);if(!n||!r)return _t(e,t);let i={...n};return e=>(i.red=vt(n.red,r.red,e),i.green=vt(n.green,r.green,e),i.blue=vt(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),Ue.transform(i))},Ct=new Set([`none`,`hidden`]);function wt(e,t){return Ct.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tt(e,t){return n=>R(e,t,n)}function Et(e){return typeof e==`number`?Tt:typeof e==`string`?Ae(e)?_t:I.test(e)?St:At:Array.isArray(e)?Dt:typeof e==`object`?I.test(e)?St:Ot:_t}function Dt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Et(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ot(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Et(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function kt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var At=(e,t)=>{let n=L.createTransformer(t),r=ct(e),i=ct(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ct.has(e)&&!i.values.length||Ct.has(t)&&!r.values.length?wt(e,t):te(Dt(kt(r,i),i.values),n):(`${e}${t}`,_t(e,t))},jt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Mt(e,t){let n=jt.exec(e);if(!n)return;let r=jt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Ee(R(a,o,e))+i}function Nt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return R(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Mt(e,t);if(n)return n}return Et(e)(e,t)}var Pt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ft(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var It=40;function Lt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Pt.reduce((e,t)=>(e[t]=Ft(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=w.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,It),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Pt.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Pt.length;t++)o[Pt[t]].cancel(e)},state:n,steps:o}}var{schedule:z,cancel:B,steps:Rt}=Lt(typeof requestAnimationFrame<`u`?requestAnimationFrame:O,!0,j),zt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>B(t),now:()=>j.isProcessing?j.timestamp:M.now()}},Bt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Vt=2e4;function Ht(e,t=50,n=Vt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Ut(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Ht(o),Vt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:A(s)}}var V={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Wt=e=>e<0?1/Math.max(1+e,V.minDamping):Math.max(1-e,V.minDamping);function Gt(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Jt(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Kt(e,t){return e*Math.sqrt(1-t*t)}var qt=12;function Jt(e,t,n){let r=n;for(let n=1;n<qt;n++)r-=e(r)/t(r);return r}var Yt=.001;function Xt({duration:e=V.duration,bounce:t=V.bounce}){let n,r;V.maxDuration;let i=Wt(t);e=C(V.minDuration,V.maxDuration,A(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Kt(t,i),o=Math.exp(-r);return Yt-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Kt(t*t,i);return(-n(t)+Yt>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Jt(n,r,a),s=o*Gt(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:k(e)}}var Zt=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Qt(e,t){if(Zt(e,t))return e}function $t(e){let t=Qt(e.stiffness),n=Qt(e.damping,!0),r=Qt(e.mass),i={...e,stiffness:t??V.stiffness,damping:n??V.damping,mass:r??V.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Wt(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Gt(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Xt(i)),i.isResolvedFromDuration=!0;(!Zt(i.stiffness)||!Zt(i.damping,!0))&&(i.stiffness=V.stiffness,i.damping=V.damping)}return i}function en(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=$t({...n}),f=e=>d?0:-A(e),p=s/(2*Math.sqrt(o*c)),m=A(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?V.restSpeed.granular:V.restSpeed.default),g.restDelta=n.restDelta||(e?V.restDelta.granular:V.restDelta.default)};_();let v,y,b;if(p<1){let e=Kt(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>k(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=k(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Ht(S),Vt),t=Bt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}en.applyToOptions=e=>{let t=Ut(e,100,en);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};function tn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=en({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function nn(e,t,n){let r=[],i=n||w.mix||Nt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=te(Array.isArray(t)?t[n]||O:t,a)),r.push(a)}return r}function rn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=nn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ne(e[r],e[r+1],n);return s[r](i)};return n?t=>l(C(e[0],e[a-1],t)):l}function an(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ne(0,t,r);e.push(R(n,1,i))}}function on(e){let t=[0];return an(t,e.length-1),t}function sn(e,t){return e.map(e=>e*t)}function cn(e,t){return e.map(()=>t||ve).splice(0,e.length-1)}function H({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ye(r)?r.map(Ce):Ce(r)||ve,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(w.mix||Nt)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?C(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=rn(sn(n&&n.length===t.length?n:on(t),e),t,{ease:Array.isArray(i)?i:cn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ln=5;function un(e,t,n){let r=Math.max(t-ln,0);return ie(n-e(r),t-r)}function dn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):un(t=>e.next(t).value,t,e.next(t).value)}var fn=e=>e!==null;function pn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mn={decay:tn,inertia:tn,tween:H,keyframes:H,spring:en};function hn(e){typeof e.type==`string`&&(e.type=mn[e.type])}var gn=40,_n=(e,t)=>t-e>gn&&!w.useManualTiming?t:e;function vn(e,t){return{kind:e,animation:t,timestamp:M.now(),frameTimestamp:j.timestamp,frameIsProcessing:j.isProcessing}}function yn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...vn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function bn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...vn(`layout-animation-start`,e),node:t})}catch{}}var xn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Sn=e=>e/100,Cn=e=>Math.round(e*1e4)/1e4,wn=class extends xn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==M.now()&&this.tick(M.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),yn(this,this.options)}initAnimation(){let{options:e}=this;hn(e);let{type:t=H,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||H;s!==H&&typeof o[0]!=`number`&&(this.mixKeyframes=te(Sn,Nt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ht(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=_n(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==tn&&(f.value=pn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Cn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==tn?pn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=C(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return dn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(M.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=zt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(M.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Tn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function En(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ie)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Tn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Dn=/\b([a-z-]*)\(.*?\)/gu,On={...L,getAnimatableNone:e=>{let t=e.match(Dn);return t?t.map(En).join(` `):e}},kn={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},An={...Ne,transform:Math.round},jn={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,rotate:N,pathRotation:N,rotateX:N,rotateY:N,rotateZ:N,scale:Fe,scaleX:Fe,scaleY:Fe,scaleZ:Fe,skew:N,skewX:N,skewY:N,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Pe,originX:Ye,originY:Ye,originZ:F,zIndex:An,fillOpacity:Pe,strokeOpacity:Pe,numOctaves:An},Mn={...jn,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:On,WebkitFilter:On,mask:kn,WebkitMask:kn},Nn=e=>Mn[e],Pn=new Set([On,kn]);function Fn(e,t){let n=Nn(e);return Pn.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function In(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ln=e=>e*180/Math.PI,Rn=e=>Bn(Ln(Math.atan2(e[1],e[0]))),zn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rn,rotateZ:Rn,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bn=e=>(e%=360,e<0&&(e+=360),e),Vn=Rn,Hn=e=>Math.hypot(e[0],e[1]),Un=e=>Math.hypot(e[4],e[5]),Wn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hn,scaleY:Un,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Hn(e)+Un(e))/2,rotateX:e=>Bn(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>Bn(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Vn,rotate:Vn,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Gn(e){return+!!e.includes(`scale`)}function Kn(e,t){if(!e||e===`none`)return Gn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Wn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zn,i=t}if(!i)return Gn(t);let a=r[t],o=i[1].split(`,`).map(Jn);return typeof a==`function`?a(o):o[a]}var qn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Kn(n,t)};function Jn(e){return parseFloat(e.trim())}var U=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],W=new Set([...U,`pathRotation`]),Yn=e=>e===Ne||e===F,Xn=new Set([`x`,`y`,`z`]),Zn=U.filter(e=>!Xn.has(e));function Qn(e){let t=[];return Zn.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var $n=new Set([`bottom`,`right`]);function er(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var tr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>er(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>er(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Kn(e,`x`),y:({transform:e})=>Kn(e,`y`)};tr.translateX=tr.x,tr.translateY=tr.y;var nr=new Set,rr=!1,ir=!1,ar=!1;function or(){if(ir){let e=[],t=new Set,n=new Set;nr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),$n.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Qn(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ir=!1,rr=!1,nr.forEach(e=>e.complete(ar)),nr.clear()}function sr(){nr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function cr(){ar=!0,sr(),or(),ar=!1}function lr(e,t,n){if(typeof e==`string`){if(T(e)||ee(e))return parseFloat(e);if(!L.test(e)&&L.test(n))return Fn(t,n)}return e??void 0}var ur=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(nr.add(this),rr||(rr=!0,z.read(sr),z.resolveKeyframes(or))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=lr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}In(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),nr.delete(this)}cancel(){this.state===`scheduled`&&(nr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},dr=e=>e.startsWith(`--`);function fr(e,t,n){dr(t)?e.style.setProperty(t,n):e.style[t]=n}var pr={};function mr(e,t){let n=D(e);return()=>pr[t]??n()}var hr=mr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),gr=mr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),_r=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:_r([0,.65,.55,1]),circOut:_r([.55,0,1,.45]),backIn:_r([.31,.01,.66,-.59]),backOut:_r([.33,1.53,.69,.99])};function yr(e,t){if(e)return typeof e==`function`?gr()?Bt(e,t):`ease-out`:be(e)?_r(e):Array.isArray(e)?e.map(e=>yr(e,t)||vr.easeOut):vr[e]}function br(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=yr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function xr(e){return typeof e==`function`&&`applyToOptions`in e}function Sr({type:e,...t}){return xr(e)&&gr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Cr=class extends xn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Sr(e);this.animation=br(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=pn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),fr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},yn(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&hr()?(this.animation.timeline=e,t?.(this.animation),O):n(this)}},wr={anticipate:fe,backInOut:de,circInOut:he};function Tr(e){return e in wr}function Er(e){typeof e.ease==`string`&&Tr(e.ease)&&(e.ease=wr[e.ease])}var Dr=class extends Cr{constructor(e){Er(e),hn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(M.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new wn({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?C(0,10,a):0,s=this.sample(a);n&&r&&fr(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Or=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(L.test(e)||e===`0`)&&!e.startsWith(`url(`));function kr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ar(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Or(i,t),s=Or(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):kr(e)||(n===`spring`||xr(n))&&r}function jr(e){e.duration=0,e.type=`keyframes`}var Mr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Nr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Nr.test(e[t]))return!0;return!1}var Fr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ir=D(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Lr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Mr.has(n)||Fr.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ir()&&(Mr.has(n)||Fr.has(n)&&Pr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Rr=(e,t)=>t&&typeof e==`number`?t.transform(e):e,zr={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Br=U.length;function Vr(e,t,n){let r=``,i=!0;for(let a=0;a<Br;a++){let o=U[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Rr(s,jn[o]);if(!c){i=!1;let t=zr[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Rr(a,jn.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Hr=new WeakMap,Ur=200,Wr=.001,Gr=.1,Kr=.001,qr=100,Jr=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Yr=(e,t)=>e-t,Xr=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(R(e,t,i/n));return r},Zr=e=>e.motionValue.owner,Qr=e=>Hr.get(e),$r=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ei=({name:e,motionValue:t})=>e&&U.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ir()&&gr();function ti(e){let t=Zr(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&($r(t,`transform`)||`none`)===`none`&&!$r(t,`pathRotation`)&&!t.projection?.isProjecting()}var ni=class extends wn{constructor(e){let t=Zr(e).current,{driver:n=zt}=e,r,i=ti(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Qr(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Qr(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return Qr(Zr(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(M.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=be(n)?_r(n):Jr(n)&&vr[n];if(o&&!i&&!r&&e.length===2&&t===H&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||H)===H?u||on(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=M.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||ri(Zr(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(M.now())}get time(){return this.isAccelerated()?A(C(0,this.totalDuration,this.at(M.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function ri(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?U:a){let a=r.get(s),c=t===void 0?$r(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(zr[e]||e)+`(`+Rr(r[e],jn[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Vr(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=M.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),D.schedule(!1)}),e.oncancel=()=>s.includes(r)&&D.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ur,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Xr(t,n,i).concat(r).sort(Yr),o=e=>ne(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Wr>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Wr)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Wr)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Wr))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Cn(t)+` `+Cn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Kr:Gr))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Xr(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Yr))e>c&&o(c,e,0),c=e;return i.sort(Yr)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>ne(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=U.filter(t=>{if(r.has(t))return!0;let n=i[t]=$r(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,Hr.delete(t),D.isJS||_(),!0),ee=()=>{let t=M.now();if(D.isJS||(D.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=$r(e,n.name),o.has(n)||(c=!0))}),D.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return D.demote(!0);D.isJS&&(D.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<qr)return D.demote();f=t}if(!w(t))return D.demote()}},D={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,j.isProcessing?z.render(ee,!1,!0):queueMicrotask(ee)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||D.schedule(!0)},check(){if(!D.isJS){for(let t in i)if($r(e,t)!==i[t]&&!p(t))return D.schedule(!0,!0)}},demote(e){D.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),D.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Hr.set(t,D),D}var ii=class extends xn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=M.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ur;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=M.now();let u=!0;Ar(e,i,a,o)||(u=!1,(w.instantAnimations||!s)&&l?.(pn(e,n,t)),e[0]=e[e.length-1],jr(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Lr(n),p=!f&&ei(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=_n(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Dr(n)}catch{m=new wn(n)}}else m=p?new ni(n):new wn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),cr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ai(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var oi=30,si=e=>!isNaN(parseFloat(e)),ci={current:void 0},li=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=M.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=si(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new re)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new re,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){z.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){ci.current&&ci.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>oi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,oi);return ie(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ui(e,t){return new li(e,t)}function di(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function fi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:di(n,e)}var pi={type:`spring`,stiffness:500,damping:25,restSpeed:10},mi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hi={type:`keyframes`,duration:.8},gi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},_i=(e,{keyframes:t})=>t.length>2?hi:W.has(e)?e.startsWith(`scale`)?mi(t[1]):pi:gi,vi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function yi(e){for(let t in e)if(!vi.has(t))return!0;return!1}var bi=(e,t,n,r={},i,a)=>o=>{let s=fi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};yi(s)||Object.assign(u,_i(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jr(u),u.delay===0&&(d=!0)),(w.instantAnimations||w.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=pn(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new wn(u):new ii(u)},xi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Si(e){let t=xi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ci(e,t,n=1){`${e}`;let[r,i]=Si(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return T(e)?parseFloat(e):e}return Ae(i)?Ci(i,t,n+1):i}function wi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ti(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...wi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Ei(e,t,n){return Ti(e.getProps(),t,n,e)}var Di=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Oi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...U]),ki=e=>Array.isArray(e);function Ai(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ui(n))}function ji(e){return ki(e)?e[e.length-1]||0:e}function Mi(e,t){let{transitionEnd:n={},transition:r={},...i}=Ei(e,t)||{};i={...i,...n};for(let t in i)Ai(e,t,ji(i[t]))}var G=e=>!!(e&&e.getVelocity);function Ni(e){return!!(G(e)&&e.add)}function Pi(e,t){let n=e.getValue(`willChange`);if(Ni(n))return n.add(t);if(!n&&w.WillChange){let n=new w.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Fi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ii=`data-`+Fi(`framerAppearId`);function Li(e){return e.props[Ii]}var Ri=typeof window<`u`;function zi({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Bi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?di(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&zi(f,t))continue;let o={delay:n,...fi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(Ri&&window.MotionHandoffAnimation){let n=Li(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}Pi(e,t);let m=l??e.shouldReduceMotion;r.start(bi(t,r,i,m&&Oi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&Mi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Vi(e,t,n={}){let r=Ei(e,t,Di(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Bi(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Vi(e,t,{...n,delay:r+(typeof o==`function`?0:o)+ai(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Hi(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Vi(e,t,n))):typeof t==`string`?Vi(e,t,n):Promise.all(Bi(e,Ei(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ui={test:e=>e===`auto`,parse:e=>e},Wi=e=>t=>t.test(e),Gi=[Ne,F,P,N,Je,qe,Ui],Ki=e=>Gi.find(Wi(e));function qi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ee(e)}var Ji=new Set([`auto`,`none`,`0`]);function Yi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ji.has(t)&&st(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Fn(n,i))}var Xi=class extends ur{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Me(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ae(r))){let i=Ci(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Oi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ki(r),o=Ki(i);if(Me(r)!==Me(i)&&tr[n])this.needsMeasurement=!0;else if(a!==o){if(Yn(a)&&Yn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else tr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||qi(e[t]))&&n.push(t);n.length&&Yi(e,n,t)}measure(){let{element:e,name:t}=this;return tr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Zi=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Qi(e){return E(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function $i(e){return E(e)&&`ownerSVGElement`in e}function ea(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function ta(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(W.has(e))o=!0;else if(Oe(e))i[e]=n;else{let t=Rr(n,jn[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Vr(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var na={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ra={offset:`strokeDashoffset`,array:`strokeDasharray`};function ia(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?na:ra;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var aa=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function oa(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ta(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of aa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ia(d,i,a,o,!1)}function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function la(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ua(e){return e===void 0||e===1}function da({scale:e,scaleX:t,scaleY:n}){return!ua(e)||!ua(t)||!ua(n)}function fa(e){return da(e)||pa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function pa(e){return ma(e.x)||ma(e.y)}function ma(e){return e&&e!==`0%`}function ha(e,t,n){return n+t*(e-n)}function ga(e,t,n,r,i){return i!==void 0&&(e=ha(e,i,r)),ha(e,n,r)+t}function _a(e,t=0,n=1,r,i){e.min=ga(e.min,t,n,r,i),e.max=ga(e.max,t,n,r,i)}function va(e,{x:t,y:n}){_a(e.x,t.translate,t.scale,t.originPoint),_a(e.y,n.translate,n.scale,n.originPoint)}var ya=.999999999999,ba=1.0000000000001;function xa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,va(e,o)),r&&fa(a.latestValues)&&wa(e,a.latestValues,a.layout?.layoutBox))}t.x<ba&&t.x>ya&&(t.x=1),t.y<ba&&t.y>ya&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Sa(e,t,n,r,i=.5){_a(e,t,n,R(e.min,e.max,i),r)}function Ca(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function wa(e,t,n){let r=n??e;Sa(e.x,Ca(t.x,r.x),t.scaleX,t.scale,t.originX),Sa(e.y,Ca(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ta(e,t){return sa(la(e.getBoundingClientRect(),t))}function Ea(e,t,n){let r=Ta(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var{schedule:Da,cancel:Oa}=Lt(queueMicrotask,!1),q={x:!1,y:!1};function ka(){return q.x||q.y}function Aa(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function ja(e,t){let n=ea(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ma(e){return!(e.pointerType===`touch`||ka())}function Na(e,t,n={}){let[r,i,a]=ja(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Ma(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Pa=(e,t)=>t?e===t||Pa(e,t.parentElement):!1,Fa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ia=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function La(e){return Ia.has(e.tagName)||e.isContentEditable===!0}var Ra=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function za(e){return Ra.has(e.tagName)||e.isContentEditable===!0}var Ba=new WeakSet;function Va(e){return t=>{t.key===`Enter`&&e(t)}}function Ha(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ua=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Va(()=>{if(Ba.has(n))return;Ha(n,`down`);let e=Va(()=>{Ha(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ha(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Wa(e){return Fa(e)&&!ka()}var Ga=new WeakSet;function Ka(e,t,n={}){let[r,i,a]=ja(e,n),o=e=>{let r=e.currentTarget;if(!Wa(e)||Ga.has(e))return;Ba.add(r),n.stopPropagation&&Ga.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ba.has(r)&&Ba.delete(r),Wa(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Pa(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Qi(e)&&(e.addEventListener(`focus`,e=>Ua(e,i)),!La(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var qa=new WeakMap,Ja,Ya=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:$i(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xa=Ya(`inline`,`width`,`offsetWidth`),Za=Ya(`block`,`height`,`offsetHeight`);function Qa({target:e,borderBoxSize:t}){qa.get(e)?.forEach(n=>{n(e,{get width(){return Xa(e,t)},get height(){return Za(e,t)}})})}function $a(e){e.forEach(Qa)}function eo(){typeof ResizeObserver<`u`&&(Ja=new ResizeObserver($a))}function to(e,t){Ja||eo();let n=ea(e);return n.forEach(e=>{let n=qa.get(e);n||(n=new Set,qa.set(e,n)),n.add(t),Ja?.observe(e)}),()=>{n.forEach(e=>{let n=qa.get(e);n?.delete(t),n?.size||Ja?.unobserve(e)})}}var no=new Set,ro;function io(){ro=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};no.forEach(t=>t(e))},window.addEventListener(`resize`,ro)}function ao(e){return no.add(e),ro||io(),()=>{no.delete(e),!no.size&&typeof ro==`function`&&(window.removeEventListener(`resize`,ro),ro=void 0)}}function oo(e,t){return typeof e==`function`?ao(e):to(e,t)}var so={value:null,addProjectionMetrics:null};function co(e){return $i(e)&&e.tagName===`svg`}var lo=e=>typeof e==`number`?e:parseFloat(e),uo=()=>({translate:0,scale:1,origin:0,originPoint:0}),fo=()=>({x:uo(),y:uo()}),po=()=>({min:0,max:0}),J=()=>({x:po(),y:po()}),mo=new WeakMap;function ho(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function go(e){return typeof e==`string`||Array.isArray(e)}var _o=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],vo=[`initial`,..._o];function yo(e){if(ho(e.animate))return!0;for(let t=0;t<vo.length;t++)if(go(e[vo[t]]))return!0;return!1}function bo(e){return!!(yo(e)||e.variants)}function xo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,ui(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ui(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var So={current:null},Co={current:!1},wo=typeof window<`u`;function To(){if(Co.current=!0,wo){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>So.current=e.matches;e.addEventListener(`change`,t),t()}else So.current=!1}}var Eo=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Do={},Oo=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ur,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=M.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,z.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=yo(t),this.isVariantNode=bo(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&G(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,mo.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Co.current||To(),this.shouldReduceMotion=So.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),B(this.notifyUpdate),B(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Mr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Cr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=W.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Hr.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Do){let t=Do[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Hr.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Eo.length;t++){let n=Eo[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=xo(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ui(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(T(n)||ee(n))?n=parseFloat(n):typeof n!=`number`&&!L.test(n)&&L.test(t)&&(n=Fn(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Da.render(this.render)}},ko=class extends Oo{constructor(){super(...arguments),this.KeyframeResolver=Xi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Ao(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}var jo={};function Mo(e){for(let t in e)jo[t]=e[t],Oe(t)&&(jo[t].isCSSVariable=!0)}function No(e,{layout:t,layoutId:n}){return W.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!jo[e]||e===`opacity`)}function Po(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||No(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Fo(e){return window.getComputedStyle(e)}var Io=class extends ko{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ao}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(W.has(t))return this.projection?.isProjecting?Gn(t):qn(e,t);{let n=Fo(e),r=(Oe(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ta(e,t)}build(e,t,n){ta(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Po(e,t,n)}},Lo=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`]),Ro=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function zo(e,t,n,r){Ao(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Lo.has(n)?n:Fi(n),t.attrs[n])}function Bo(e,t,n){let r=Po(e,t,n);for(let n in e)if(n!==`children`&&(G(e[n])||G(t[n]))){let t=U.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Vo=class extends ko{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return W.has(t)?super.getBaseTargetFromProps(e,t)??Gn(t):e[t]}getDefaultValue(e){return W.has(e)?this.latestValues[e]??Gn(e):void 0}readValueFromInstance(e,t){if(W.has(t)){let e=Nn(t);return e&&e.default||0}if(aa.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Lo.has(t)?t:Fi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Bo(e,t,n)}build(e,t,n){oa(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){zo(e,t,n,r)}mount(e){this.isSVGTag=Ro(e.tagName),super.mount(e)}};function Ho(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Uo=[..._o].reverse();function Wo(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Hi(e,t,n))),n=Ko(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Uo.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?go(g)||g===!1?g:void 0:h,v=go(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||ho(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Go(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Ei(e,n,Di(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Ho(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Ei(s,n)?.transition?.delayChildren;r.delay=ai(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Ei(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!G(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Ko(),i=!0}}}function Go(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ho(t,e):!1}function Ko(){let e={};for(let t of _o)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function qo(e,t){e.min=t.min,e.max=t.max}function Y(e,t){qo(e.x,t.x),qo(e.y,t.y)}function Jo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Yo=.9999,Xo=1.0001,Zo=-.01,Qo=.01;function X(e){return e.max-e.min}function $o(e,t,n){return Math.abs(e-t)<=n}function es(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yo&&e.scale<=Xo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zo&&e.translate<=Qo||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){es(e.x,t.x,n.x,r?r.originX:void 0),es(e.y,t.y,n.y,r?r.originY:void 0)}function ns(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function rs(e,t,n,r){ns(e.x,t.x,n.x,r?.x),ns(e.y,t.y,n.y,r?.y)}function is(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function as(e,t,n,r){is(e.x,t.x,n.x,r?.x),is(e.y,t.y,n.y,r?.y)}function os(e,t,n,r,i){return e-=t,e=ha(e,1/n,r),i!==void 0&&(e=ha(e,1/i,r)),e}function ss(e,t=0,n=1,r=.5,i,a=e,o=e){if(P.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=os(e.min,t,n,s,i),e.max=os(e.max,t,n,s,i)}function cs(e,t,[n,r,i],a,o){ss(e,t[n],t[r],t[i],t.scale,a,o)}var ls=[`x`,`scaleX`,`originX`],us=[`y`,`scaleY`,`originY`];function ds(e,t,n,r){cs(e.x,t,ls,n?n.x:void 0,r?r.x:void 0),cs(e.y,t,us,n?n.y:void 0,r?r.y:void 0)}function fs(e){return e.translate===0&&e.scale===1}function ps(e){return fs(e.x)&&fs(e.y)}function ms(e,t){return e.min===t.min&&e.max===t.max}function hs(e,t){return ms(e.x,t.x)&&ms(e.y,t.y)}function gs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _s(e,t){return gs(e.x,t.x)&&gs(e.y,t.y)}function vs(e){return X(e.x)/X(e.y)}function ys(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Z(e){return[e(`x`),e(`y`)]}function bs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Q={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(F.test(e))e=parseFloat(e);else return e}return`${bs(e,t.target.x)}% ${bs(e,t.target.y)}%`}},xs={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=L.parse(e);if(i.length>5)return r;let a=L.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=R(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};function Ss(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Cs=Zi.length,ws=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],Ts=ws.length,Es=e=>typeof e==`number`||F.test(e);function Ds(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,ks(r)),e.opacityExit=R(t.opacity??1,0,As(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;i<Cs;i++){let a=Zi[i],o=Os(t,a),s=Os(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Es(o)===Es(s)?(e[a]=Math.max(R(lo(o),lo(s),r),0),(P.test(s)||P.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<Ts;i++){let a=ws[i];(t[a]||n[a])&&(e[a]=R(t[a]||0,n[a]||0,r))}}function Os(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ks=js(0,.5,me),As=js(.5,.95,O);function js(e,t,n){return r=>r<e?0:r>t?1:n(ne(e,t,r))}function Ms(e,t,n){let r=G(e)?e:ui(e);return r.start(bi(``,r,t,n)),r.animation}function Ns(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ps=(e,t)=>e.depth-t.depth,Fs=class{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){S(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ps),this.isDirty=!1,this.children.forEach(e)}};function Is(e,t){let n=M.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(B(r),e(a-t))};return z.setup(r,!0),()=>B(r)}function Ls(e){return G(e)?e.get():e}var Rs=class{constructor(){this.members=[]}add(e){x(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(S(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(S(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},zs={borderRadius:{...Q,applyTo:[...Zi]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:xs},Bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(jo,{...zs,...jo});var Vs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Hs=[``,`X`,`Y`,`Z`],Us=1e3,Ws=0;function Gs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Ks=({instance:e})=>e&&Hr.get(e)?.demote();function qs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Li(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,z,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&qs(r)}function Js({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ws++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,so.value&&(Vs.nodes=Vs.calculatedTargetDeltas=Vs.calculatedProjections=0),this.nodes.forEach(Zs),this.nodes.forEach(cc),this.nodes.forEach(lc),this.nodes.forEach(Qs),so.addProjectionMetrics&&so.addProjectionMetrics(Vs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new re),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=$i(t)&&!co(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;z.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Is(i,250),Bs.hasAnimatedSinceResize&&(Bs.hasAnimatedSinceResize=!1,this.nodes.forEach(sc)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||hc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!_s(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...fi(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||sc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,B(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Ks(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Ks(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(tc),this.nodes.forEach(ec);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ic),this.nodes.forEach(ac),this.nodes.forEach(oc),this.nodes.forEach(Ys),this.nodes.forEach(Xs)):this.nodes.forEach(nc),this.clearAllSnapshots();let e=M.now();j.delta=C(0,1e3/60,e-j.timestamp),j.timestamp=e,j.isProcessing=!0,Rt.update.process(j),Rt.preRender.process(j),Rt.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Da.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($s),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&Ks(this);let t=this.projectionDelta&&!ps(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||fa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),yc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xc))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Y(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Y(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Y(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),fa(n.latestValues)&&wa(r,n.latestValues,n.layout?.layoutBox)}return fa(this.latestValues)&&wa(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Y(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!fa(n.latestValues))continue;let r;n.instance&&(da(n.latestValues)&&n.updateSnapshot(),r=J(),Y(r,n.measurePageBox())),ds(t,n.latestValues,n.snapshot?.layoutBox,r)}return fa(this.latestValues)&&ds(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}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!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=j.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rs(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),va(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),so.value&&Vs.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||da(this.parent.latestValues)||pa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),as(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===j.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Y(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;xa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jo(this.prevProjectionDelta.x,this.projectionDelta.x),Jo(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),so.value&&Vs.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fo(),this.projectionDelta=fo(),this.projectionDeltaWithTransform=fo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=fo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(mc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=R(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=R(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(dc(o.x,e.x,n),dc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),pc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&hs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Y(f,this.relativeTarget)),c&&(this.animationValues=a,Ds(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(B(this.pendingAnimation),void 0),this.pendingAnimation=z.update(()=>{Bs.hasAnimatedSinceResize=!0,this.motionValue||=ui(0),this.motionValue.jump(0,!1),this.currentAnimation=Ms(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),bn(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&bc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||J();let t=X(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=X(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Y(t,i),wa(t,r),ts(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Rs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Gs(`z`,e,r,this.animationValues);for(let t=0;t<Hs.length;t++)Gs(`rotate${Hs[t]}`,e,r,this.animationValues),Gs(`skew${Hs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ls(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ls(t?.pointerEvents)||``),this.hasProjected&&!fa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ss(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in jo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=jo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ls(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ec),this.root.sharedNodes.clear()}}}function Ys(e){e.updateLayout(),rc(e)}function Xs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Z(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;qo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else bc(i,t.layoutBox,n)&&Z(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fo();ts(o,n,t.layoutBox);let s=fo();a?ts(s,e.applyTransform(r,!0),t.measuredBox):ts(s,n,t.layoutBox);let c=!ps(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();as(s,t.layoutBox,i.layoutBox,o);let c=J();as(c,n,a.layoutBox,o),_s(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zs(e){so.value&&Vs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Qs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $s(e){e.clearSnapshot()}function ec(e){e.clearMeasurements()}function tc(e){e.isLayoutDirty=!0,e.updateLayout()}function nc(e){e.isLayoutDirty=!1}function rc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Z(e=>K(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function ic(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function ac(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function oc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function sc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cc(e){e.resolveTargetDelta()}function lc(e){e.calcProjection()}function uc(e){e.resetSkewAndRotation()}function dc(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fc(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function pc(e,t,n,r){fc(e.x,t.x,n.x,r),fc(e.y,t.y,n.y,r)}function mc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var hc={duration:.45,ease:[.4,0,.1,1]},gc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_c=gc(`applewebkit/`)&&!gc(`chrome/`)?Math.round:O;function vc(e){e.min=_c(e.min),e.max=_c(e.max)}function yc(e){vc(e.x),vc(e.y)}function bc(e,t,n){return e===`position`||e===`preserve-aspect`&&!$o(vs(t),vs(n),.2)}function xc(e){return e!==e.root&&e.scroll?.wasRoot}var Sc=Js({attachResizeListener:(e,t)=>Ns(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cc={current:void 0},wc=Js({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cc.current){let e=new Sc({});e.mount(window),e.setOptions({layoutScroll:!0}),Cc.current=e}return Cc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Tc={some:0,all:1};function Ec(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=ea(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Tc[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var Dc=(e,t)=>Math.abs(e-t);function Oc(e,t){let n=Dc(e.x,t.x),r=Dc(e.y,t.y);return Math.sqrt(n**2+r**2)}function kc({current:e}){return e?e.ownerDocument.defaultView:null}function Ac(e){if(e)return e.nodeType===3||e.nodeType===8?Ac(e.nextSibling):e}var[jc,Mc,Nc]=y(`Motion`),[Pc,Fc,Ic]=y(`LayoutGroup`),Lc={reducedMotion:`never`,transition:void 0,nonce:void 0},[Rc,zc,Bc]=y(`MotionConfig`);function Vc(){return Rc(r(()=>Lc))}var Hc=function(){};function Uc(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=Uc(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Wc(e,t,n){let r=Uc(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function Gc(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...Wc(e[i]||t?.[i],e.variants,r)}),{})}var Kc=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function qc(e){return Kc.has(e)}var Jc=new WeakMap,Yc=class{constructor(e,t,n={}){this.element=null,this.isExiting=!1,this.children=new Set,this.features=new Map,this.featureCtors=[],this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Gc(e,this.context),this.type=qc(this.options.as)?`svg`:`html`,this.setBundle(n)}get context(){if(!this._context){let e={get:(e,t)=>{let n=this.options[t];return go(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}};this._context=new Proxy({},e)}return this._context}setBundle(e){e.renderer&&this.initVisualElement(e.renderer),e.features?.length&&(this.featureCtors=e.features),this.updateFeatures()}updateFeatures(){if(this.visualElement)for(let e of this.featureCtors){let t=this.features.get(e.key);t||(t=new e(this),this.features.set(e.key,t)),this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){Jc.set(e,this),this.element=e,this.features.get(`layout`)?.refreshRootScroll(),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(!1)}unmount(){this.parent?.children?.delete(this),this.element&&Jc.delete(this.element),this.features.forEach(e=>{e.unmount(),e.isMount=!1}),this.visualElement?.unmount(),this.element=null}beforeUpdate(){this.getSnapshot(!this.isExiting)}update(){this.updateFeatures(),this.didUpdate()}getFeature(e){return this.features.get(e)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0);let n=e===`whilePress`?`whileTap`:e;this.visualElement?.animationState?.setActive(n,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1)})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e){this.features.get(`layout`)?.getSnapshot(e)}didUpdate(){}},$=class{constructor(e){this.isMount=!1,this.state=e}mount(){}beforeUnmount(){}unmount(){}update(){}getSnapshot(e){}};function Xc(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var Zc=class extends ${static{this.key=`animation`}constructor(e){super(e);let t=e.visualElement;t.animationState||=Wo(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;ho(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){Xc(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}},Qc=class extends ${constructor(...e){super(...e),this.exitGeneration=0}static{this.key=`exit`}exit(){let e=++this.exitGeneration,t=this.state;t.isExiting=!0;let n=new Promise(e=>{this.pendingExit={resolve:e}}),r=t.visualElement?.animationState?.setActive(`exit`,!0);return r?r.then(()=>{e===this.exitGeneration&&(t.isExiting=!1,t.options?.layoutId?z.postRender(()=>this.tryCompleteExit(e)):this.tryCompleteExit(e))}):(t.isExiting=!1,this.tryCompleteExit(e)),t.getSnapshot(!1),n}reenter(){this.exitGeneration++,this.settleExit(),this.state.isExiting=!1,this.state.setActive(`exit`,!1),this.state.getSnapshot(!0)}completeExitFromProjection(){this.tryCompleteExit(this.exitGeneration)}tryCompleteExit(e){e!==this.exitGeneration||this.state.isExiting||this.state.options?.layoutId&&this.state.visualElement.projection?.currentAnimation?.state===`running`||this.settleExit()}settleExit(){this.pendingExit?.resolve(),this.pendingExit=void 0}mount(){this.state.options.presenceContext?.register?.(this.state)}unmount(){this.state.options.presenceContext?.unregister?.(this.state),this.settleExit()}};function $c(e,t){return qc(e)?new Vo(t):new Io(t)}function el(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function tl(e){return t=>Fa(t)&&e(t,el(t))}var nl=class extends ${static{this.key=`press`}constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;e&&this.isActive()&&(this.removePress?.(),this.removePress=Ka(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&z.postRender(()=>n.onPressStart(t,el(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&z.postRender(()=>r(e,el(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}},rl=class extends ${static{this.key=`hover`}constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;e&&this.isActive()&&(this.removeHover?.(),this.removeHover=Na(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&z.postRender(()=>n.onHoverStart(t,el(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&z.postRender(()=>t(e,el(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},il=class extends ${static{this.key=`inView`}constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=Ec(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&z.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&z.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}},al=class extends ${static{this.key=`focus`}constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=te(Ns(e,`focus`,()=>this.onFocus()),Ns(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function ol(e){if(e)return e.options.allowProjection===!1?ol(e.parent):e.projection}var sl={borderRadius:{...Q,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:xs},cl=typeof window>`u`,ll=class extends ${static{this.key=`projection`}constructor(e){super(e),Mo(sl),cl||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new wc(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:ol(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&Qi(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.getFeature(`exit`)?.completeExitFromProjection()})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function ul(e,t,n,r){return Ns(e,t,tl(n),r)}var dl=new Set([`auto`,`scroll`]),fl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=hl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Oc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:M.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pl(t,this.transformPagePoint),this.hasPendingMove=!0,z.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=hl(e.type===`pointercancel`?this.lastMoveEventInfo:pl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Fa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=pl(el(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,hl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=te(ul(this.contextWindow,`pointermove`,this.handlePointerMove,d),ul(this.contextWindow,`pointerup`,this.handlePointerUp,d),ul(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(dl.has(e.overflowX)||dl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),z.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),B(this.updatePoint)}};function pl(e,t){return t?{point:t(e.point)}:e}function ml(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hl({point:e},t){return{point:e,delta:ml(e,_l(t)),offset:ml(e,gl(t)),velocity:vl(t,.1)}}function gl(e){return e[0]}function _l(e){return e[e.length-1]}function vl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=_l(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function yl(e){return(t,n)=>{e&&z.update(()=>e(t,n),!1,!0)}}var bl=class extends ${constructor(...e){super(...e),this.removePointerDownListener=O}static{this.key=`pan`}onPointerDown(e){this.session=new fl(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:kc(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:yl((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:yl((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:yl((e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)}),onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&z.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=ul(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function xl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?R(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?R(n,e,r.max):Math.min(e,n)),e}var Sl=.35;function Cl(e,{top:t,left:n,bottom:r,right:i}){return{x:wl(e.x,n,i),y:wl(e.y,t,r)}}function wl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Tl(e=Sl){return e===!1?e=0:e===!0&&(e=Sl),{x:El(e,`left`,`right`),y:El(e,`top`,`bottom`)}}function El(e,t,n){return{min:Dl(e,t),max:Dl(e,n)}}function Dl(e,t){return typeof e==`number`?e:e[t]||0}function Ol(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function kl(e,t){return{x:Al(e.x,t.x),y:Al(e.y,t.y)}}function Al(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jl(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=ne(t.min,t.max-r,e.min):r>i&&(n=ne(e.min,e.max-i,t.min)),C(0,1,n)}var Ml=new WeakMap,Nl=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.state.isExiting)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Aa(n),!this.openGlobalLock)||(this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(e=>{let t=this.getAxisMotionValue(e).get()||0;if(P.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&z.update(()=>i(e,t),!1,!0),Pi(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=Ll(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&z.update(()=>a(e,t),!1,!0))},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new fl(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:kc(this.visualElement),element:this.state.element})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&z.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Il(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=xl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Qi(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Cl(n.layoutBox,e):!1,this.elastic=Tl(t),r!==this.constraints&&!Qi(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Z(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ol(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Qi(e))return!1;let n=e,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ea(n,r.root,this.visualElement.getTransformPagePoint()),a=kl(r.layout.layoutBox,i);if(t){let e=t(ca(a));this.hasMutatedConstraints=!!e,e&&(a=sa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Z(o=>{if(!Il(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Pi(this.visualElement,e),n.start(bi(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Z(e=>{if(!Il(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-R(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Qi(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Z(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=jl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(t=>{let n=this.getAxisMotionValue(t);if(!Il(t,e,null)||!n.get())return;let{min:i,max:a}=this.constraints[t];n.set(R(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.state.element)return;Ml.set(this.visualElement,this);let e=this.state.element,t=ul(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&za(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Qi(t)&&(this.constraints=this.resolveRefConstraints(),n||=Fl(e,t,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),z.read(r);let o=Ns(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Z(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Sl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Pl(e){let t=!0;return()=>{t?t=!1:e()}}function Fl(e,t,n){let r=oo(e,Pl(n)),i=oo(t,Pl(n));return()=>{r(),i()}}function Il(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ll(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Rl={renderer:$c,features:[Zc,Qc,nl,rl,il,al,ll,bl,class extends ${static{this.key=`drag`}constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Nl(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.prevDragControls=e,this.removeListeners=this.controls.addListeners()||O}update(){let{dragControls:e}=this.state.options;e!==this.prevDragControls&&(this.removeGroupControls(),this.removeGroupControls=e?e.subscribe(this.controls):O,this.prevDragControls=e)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},class extends ${static{this.key=`layout`}constructor(e){super(e),Mo(sl)}updatePrevLead(e){let t=this.state.visualElement.projection;t.isPresent!==e&&(t.isPresent=e,e?!t.isLead()&&t?.promote():t.isLead()&&t?.relegate())}didUpdate(){(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&this.state.visualElement.projection?.root?.didUpdate()}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!Xc(this.state.element);n.isPresent=e,e?n?.promote():n?.relegate()}t?.group?.add(n),Bs.hasEverUpdated=!0}this.didUpdate()}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t)}getSnapshot(e){let t=this.state.visualElement.projection,{layout:n,layoutId:r,drag:i,layoutDependency:a}=this.state.visualElement.props,o=this.state.visualElement.prevProps;t&&(n||r||i)&&((i||o.layoutDependency!==a||a===void 0||e!==t.isPresent)&&t.willUpdate(),r&&this.updatePrevLead(e),this.didUpdate())}refreshRootScroll(){let e=this.state.visualElement?.projection?.root;e&&this.state.options.layoutId&&(e.scroll=void 0,e.updateScroll?.())}}]},[zl,Bl]=y(`LazyMotionContext`),[Vl,Hl,Ul]=y(`AnimatePresenceContext`);function Wl(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Gl(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function Kl(){return{...Gl(),attrs:{}}}function ql(e,t){let n=Gl();ta(n,e,t);let r={...n.style};r.transform===``&&delete r.transform;for(let e in n.vars)r[e]=n.vars[e];return Object.keys(r).length===0?null:r}function Jl(e,t,n){let r=Kl();oa(r,e,Ro(t),void 0,n);let i={};for(let e in r.attrs){let t=Lo.has(e)?e:Wl(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function Yl(t,r={}){let i=jc(null),a=Pc({}),s=Vc(),f=Vl({}),m=zl({features:e({}),strict:!1}),g=n();function y(){return b(t,{layoutGroup:a,presenceContext:f,config:s.value})}function x(){return{...g,...y()}}let S=new Yc(x(),i,r);Mc(S),d(m.features,e=>{S.setBundle(e)},{immediate:!0,flush:`pre`});function C(){let e=S.type===`svg`,n={...g};Object.keys(g).forEach(e=>{G(g[e])&&(n[e]=g[e].get())});let r=S.visualElement?.latestValues||S.latestValues,i={...t.style,...e?{}:r};for(let e in i)G(i[e])&&(i[e]=i[e].get());if(e){let{attrs:e,style:a}=Jl({...r,...i},S.options.as,t.style);Object.assign(n,e),i=a}t.drag&&t.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:t.drag===!0?`none`:`pan-${t.drag===`x`?`y`:`x`}`});let a=ql(i,t.transformTemplate);return a&&(n.style=a),n}let w=c()?.proxy;function T(){let e=Ac(w?.$el);S.mount(e)}p(()=>{S.updateOptions(x()),S.beforeUnmount()}),u(T);function E(){Ac(w?.$el)?.isConnected||S.unmount()}return v(E),_(E),h(()=>{S.isMounted()||T()}),l(()=>{S.updateOptions(x()),S.beforeUpdate()}),o(()=>{S.update()}),{getProps:y,getAttrs:C,layoutGroup:a,state:S}}var Xl={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean,default:void 0},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:[Boolean,String]},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},Zl=new Map,Ql=new Map;function $l(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var eu=[`area`,`img`,`input`];function tu(e,n,r){if(typeof e==`string`&&eu.includes(e))return a(e,n);if(e===`template`){if(!r.default)return null;let e=$l(r.default()),i=e.findIndex(e=>e.type!==m);if(i===-1)return e;let a=e[i];delete a.props?.ref;let o=a.props?f(n,a.props):n;n.class&&a.props?.class&&delete a.props.class;let s=t(a,o);for(let e in o)e.startsWith(`on`)&&(s.props||={},s.props[e]=o[e]);return e.length===1?s:(e[i]=s,e)}return null}function nu(e,t={}){let n=typeof e==`string`,r=n?e:e.name||``,i=t.renderer?Zl:Ql;if(n&&i.has(e))return i.get(e);let o=s({inheritAttrs:!1,props:{...Xl,as:{type:[String,Object],default:e||`div`}},name:r?`motion.${r}`:`Motion`,setup(e,{slots:n}){let{getProps:r,getAttrs:i,state:o}=Yl(e,t);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=i();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=r(),o=i(),c=e.asChild?`template`:e.as,l={...e.forwardMotionProps?t:{},...o,onVnodeUpdated:s},u=tu(c,l,n);return u===null?a(c,{...l},n):u}}});return n&&i.set(e,o),o}function ru(e){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>nu(t,{...n,...e}):nu(n,{...e})}})}var iu=ru(Rl);iu.create(`div`);export{zc as a,Lc as i,Hl as n,Vc as o,Hc as r,z as s,iu as t};
1
+ import{An as e,D as t,Gt as n,O as r,Ot as i,Q as a,Tt as o,V as s,Y as c,_t as l,bt as u,en as d,ft as f,gt as p,h as m,mt as h,ot as g,vt as _,wt as v}from"./_plugin-vue_export-helper-B4pFJCwG.js";function y(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=g(r,t);if(n===void 0)throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return n},e=>(i(r,e),e),r]}function b(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function x(e,t){e.indexOf(t)===-1&&e.push(t)}function S(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var C=(e,t,n)=>n>t?t:n<e?e:n,w={},T=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),E=e=>typeof e==`object`&&!!e,ee=e=>/^0[^.\s]+$/u.test(e);function D(e){let t;return()=>(t===void 0&&(t=e()),t)}var O=e=>e,te=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ne=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},re=class{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>this.remove(e)}remove(e){S(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3,ie=(e,t)=>t?1e3/t*e:0,ae=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function oe(e,t,n,r){return e===t&&n===r?O:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ae(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ae(s+1e-7,e,n)-i-r)}return ae(s,t,r)}}var se=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ce=e=>t=>1-e(1-t),le=oe(.33,1.53,.69,.99),ue=ce(le),de=se(ue),fe=e=>e>=1?1:(e*=2)<1?.5*ue(e):.5*(2-2**(-10*(e-1))),pe=e=>1-Math.sin(Math.acos(e)),me=ce(pe),he=se(pe),ge=oe(.42,0,1,1),_e=oe(0,0,.58,1),ve=oe(.42,0,.58,1),ye=e=>Array.isArray(e)&&typeof e[0]!=`number`,be=e=>Array.isArray(e)&&typeof e[0]==`number`,xe={linear:O,easeIn:ge,easeInOut:ve,easeOut:_e,circIn:pe,circInOut:he,circOut:me,backIn:ue,backInOut:de,backOut:le,anticipate:fe},Se=e=>typeof e==`string`,Ce=e=>{if(be(e)){e.length;let[t,n,r,i]=e;return oe(t,n,r,i)}return Se(e)?(xe[e],`${e}`,xe[e]):e},j={delta:0,timestamp:0,isProcessing:!1},we;function Te(){we=void 0}var M={now:()=>(we===void 0&&M.set(j.isProcessing||w.useManualTiming?j.timestamp:performance.now()),we),set:e=>{we=e,queueMicrotask(Te)}},Ee=e=>Math.round(e*1e5)/1e5,De=e=>t=>typeof t==`string`&&t.startsWith(e),Oe=De(`--`),ke=De(`var(--`),Ae=e=>ke(e)?je.test(e.split(`/*`)[0].trim()):!1,je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Me(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ne={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Pe={...Ne,transform:e=>C(0,1,e)},Fe={...Ne,default:1},Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Le(e){return e==null}var Re=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ze=(e,t)=>n=>!!(typeof n==`string`&&Re.test(n)&&n.startsWith(e)||t&&!Le(n)&&Object.prototype.hasOwnProperty.call(n,t)),Be=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ie);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ve=e=>C(0,255,e),He={...Ne,transform:e=>Math.round(Ve(e))},Ue={test:ze(`rgb`,`red`),parse:Be(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+He.transform(e)+`, `+He.transform(t)+`, `+He.transform(n)+`, `+Ee(Pe.transform(r))+`)`};function We(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ge={test:ze(`#`),parse:We,transform:Ue.transform},Ke=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),N=Ke(`deg`),P=Ke(`%`),F=Ke(`px`),qe=Ke(`vh`),Je=Ke(`vw`),Ye={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(e*100)},Xe={test:ze(`hsl`,`hue`),parse:Be(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+P.transform(Ee(t))+`, `+P.transform(Ee(n))+`, `+Ee(Pe.transform(r))+`)`},I={test:e=>Ue.test(e)||Ge.test(e)||Xe.test(e),parse:e=>Ue.test(e)?Ue.parse(e):Xe.test(e)?Xe.parse(e):Ge.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ue.transform(e):Xe.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},Ze=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Qe=new RegExp(Ie.source),$e=new RegExp(Ze.source,`i`);function et(e){return isNaN(e)&&typeof e==`string`&&(Qe.test(e)||$e.test(e))}var tt=`number`,nt=`color`,rt=`var`,it=`var(`,at="${}",ot=/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+)(?![a-z]*\()/giu;function st(e){let t=e.toString();return Qe.test(t)||$e.test(t)}function ct(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ot,e=>(I.test(e)?(r.color.push(a),i.push(nt),n.push(I.parse(e))):e.startsWith(it)?(r.var.push(a),i.push(rt),n.push(e)):(r.number.push(a),i.push(tt),n.push(parseFloat(e))),++a,at)).split(at),indexes:r,types:i}}function lt(e){return ct(e).values}function ut({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===tt?Ee(r[a]):e===nt?I.transform(r[a]):r[a]}return i}}function dt(e){return ut(ct(e))}var ft=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,pt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ft(e);function mt(e){let t=ct(e);return ut(t)(t.values.map((e,n)=>pt(e,t.split[n])))}var L={test:et,parse:lt,createTransformer:dt,getAnimatableNone:mt};function ht(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ht(s,r,e+1/3),a=ht(s,r,e),o=ht(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _t(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,vt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yt=[Ge,Ue,Xe],bt=e=>yt.find(t=>t.test(e));function xt(e){let t=bt(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Xe&&(n=gt(n)),n}var St=(e,t)=>{let n=xt(e),r=xt(t);if(!n||!r)return _t(e,t);let i={...n};return e=>(i.red=vt(n.red,r.red,e),i.green=vt(n.green,r.green,e),i.blue=vt(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),Ue.transform(i))},Ct=new Set([`none`,`hidden`]);function wt(e,t){return Ct.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tt(e,t){return n=>R(e,t,n)}function Et(e){return typeof e==`number`?Tt:typeof e==`string`?Ae(e)?_t:I.test(e)?St:At:Array.isArray(e)?Dt:typeof e==`object`?I.test(e)?St:Ot:_t}function Dt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Et(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ot(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Et(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function kt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var At=(e,t)=>{let n=L.createTransformer(t),r=ct(e),i=ct(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ct.has(e)&&!i.values.length||Ct.has(t)&&!r.values.length?wt(e,t):te(Dt(kt(r,i),i.values),n):(`${e}${t}`,_t(e,t))},jt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Mt(e,t){let n=jt.exec(e);if(!n)return;let r=jt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Ee(R(a,o,e))+i}function Nt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return R(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Mt(e,t);if(n)return n}return Et(e)(e,t)}var Pt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ft(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var It=40;function Lt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Pt.reduce((e,t)=>(e[t]=Ft(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=w.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,It),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Pt.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Pt.length;t++)o[Pt[t]].cancel(e)},state:n,steps:o}}var{schedule:z,cancel:B,steps:Rt}=Lt(typeof requestAnimationFrame<`u`?requestAnimationFrame:O,!0,j),zt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>B(t),now:()=>j.isProcessing?j.timestamp:M.now()}},Bt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Vt=2e4;function Ht(e,t=50,n=Vt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Ut(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Ht(o),Vt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:A(s)}}var V={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Wt=e=>e<0?1/Math.max(1+e,V.minDamping):Math.max(1-e,V.minDamping);function Gt(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Jt(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Kt(e,t){return e*Math.sqrt(1-t*t)}var qt=12;function Jt(e,t,n){let r=n;for(let n=1;n<qt;n++)r-=e(r)/t(r);return r}var Yt=.001;function Xt({duration:e=V.duration,bounce:t=V.bounce}){let n,r;V.maxDuration;let i=Wt(t);e=C(V.minDuration,V.maxDuration,A(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Kt(t,i),o=Math.exp(-r);return Yt-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Kt(t*t,i);return(-n(t)+Yt>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Jt(n,r,a),s=o*Gt(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:k(e)}}var Zt=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Qt(e,t){if(Zt(e,t))return e}function $t(e){let t=Qt(e.stiffness),n=Qt(e.damping,!0),r=Qt(e.mass),i={...e,stiffness:t??V.stiffness,damping:n??V.damping,mass:r??V.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Wt(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Gt(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Xt(i)),i.isResolvedFromDuration=!0;(!Zt(i.stiffness)||!Zt(i.damping,!0))&&(i.stiffness=V.stiffness,i.damping=V.damping)}return i}function en(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=$t({...n}),f=e=>d?0:-A(e),p=s/(2*Math.sqrt(o*c)),m=A(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?V.restSpeed.granular:V.restSpeed.default),g.restDelta=n.restDelta||(e?V.restDelta.granular:V.restDelta.default)};_();let v,y,b;if(p<1){let e=Kt(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>k(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=k(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Ht(S),Vt),t=Bt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}en.applyToOptions=e=>{let t=Ut(e,100,en);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};function tn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=en({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function nn(e,t,n){let r=[],i=n||w.mix||Nt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=te(Array.isArray(t)?t[n]||O:t,a)),r.push(a)}return r}function rn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=nn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ne(e[r],e[r+1],n);return s[r](i)};return n?t=>l(C(e[0],e[a-1],t)):l}function an(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ne(0,t,r);e.push(R(n,1,i))}}function on(e){let t=[0];return an(t,e.length-1),t}function sn(e,t){return e.map(e=>e*t)}function cn(e,t){return e.map(()=>t||ve).splice(0,e.length-1)}function H({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ye(r)?r.map(Ce):Ce(r)||ve,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(w.mix||Nt)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?C(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=rn(sn(n&&n.length===t.length?n:on(t),e),t,{ease:Array.isArray(i)?i:cn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ln=5;function un(e,t,n){let r=Math.max(t-ln,0);return ie(n-e(r),t-r)}function dn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):un(t=>e.next(t).value,t,e.next(t).value)}var fn=e=>e!==null;function pn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mn={decay:tn,inertia:tn,tween:H,keyframes:H,spring:en};function hn(e){typeof e.type==`string`&&(e.type=mn[e.type])}var gn=40,_n=(e,t)=>t-e>gn&&!w.useManualTiming?t:e;function vn(e,t){return{kind:e,animation:t,timestamp:M.now(),frameTimestamp:j.timestamp,frameIsProcessing:j.isProcessing}}function yn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...vn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function bn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...vn(`layout-animation-start`,e),node:t})}catch{}}var xn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Sn=e=>e/100,Cn=e=>Math.round(e*1e4)/1e4,wn=class extends xn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==M.now()&&this.tick(M.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),yn(this,this.options)}initAnimation(){let{options:e}=this;hn(e);let{type:t=H,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||H;s!==H&&typeof o[0]!=`number`&&(this.mixKeyframes=te(Sn,Nt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ht(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=_n(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==tn&&(f.value=pn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Cn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==tn?pn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=C(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return dn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(M.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=zt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(M.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Tn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function En(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ie)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Tn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Dn=/\b([a-z-]*)\(.*?\)/gu,On={...L,getAnimatableNone:e=>{let t=e.match(Dn);return t?t.map(En).join(` `):e}},kn={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},An={...Ne,transform:Math.round},jn={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,rotate:N,pathRotation:N,rotateX:N,rotateY:N,rotateZ:N,scale:Fe,scaleX:Fe,scaleY:Fe,scaleZ:Fe,skew:N,skewX:N,skewY:N,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Pe,originX:Ye,originY:Ye,originZ:F,zIndex:An,fillOpacity:Pe,strokeOpacity:Pe,numOctaves:An},Mn={...jn,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:On,WebkitFilter:On,mask:kn,WebkitMask:kn},Nn=e=>Mn[e],Pn=new Set([On,kn]);function Fn(e,t){let n=Nn(e);return Pn.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function In(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ln=e=>e*180/Math.PI,Rn=e=>Bn(Ln(Math.atan2(e[1],e[0]))),zn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rn,rotateZ:Rn,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bn=e=>(e%=360,e<0&&(e+=360),e),Vn=Rn,Hn=e=>Math.hypot(e[0],e[1]),Un=e=>Math.hypot(e[4],e[5]),Wn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hn,scaleY:Un,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Hn(e)+Un(e))/2,rotateX:e=>Bn(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>Bn(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Vn,rotate:Vn,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Gn(e){return+!!e.includes(`scale`)}function Kn(e,t){if(!e||e===`none`)return Gn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Wn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zn,i=t}if(!i)return Gn(t);let a=r[t],o=i[1].split(`,`).map(Jn);return typeof a==`function`?a(o):o[a]}var qn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Kn(n,t)};function Jn(e){return parseFloat(e.trim())}var U=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],W=new Set([...U,`pathRotation`]),Yn=e=>e===Ne||e===F,Xn=new Set([`x`,`y`,`z`]),Zn=U.filter(e=>!Xn.has(e));function Qn(e){let t=[];return Zn.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var $n=new Set([`bottom`,`right`]);function er(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var tr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>er(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>er(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Kn(e,`x`),y:({transform:e})=>Kn(e,`y`)};tr.translateX=tr.x,tr.translateY=tr.y;var nr=new Set,rr=!1,ir=!1,ar=!1;function or(){if(ir){let e=[],t=new Set,n=new Set;nr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),$n.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Qn(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ir=!1,rr=!1,nr.forEach(e=>e.complete(ar)),nr.clear()}function sr(){nr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function cr(){ar=!0,sr(),or(),ar=!1}function lr(e,t,n){if(typeof e==`string`){if(T(e)||ee(e))return parseFloat(e);if(!L.test(e)&&L.test(n))return Fn(t,n)}return e??void 0}var ur=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(nr.add(this),rr||(rr=!0,z.read(sr),z.resolveKeyframes(or))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=lr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}In(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),nr.delete(this)}cancel(){this.state===`scheduled`&&(nr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},dr=e=>e.startsWith(`--`);function fr(e,t,n){dr(t)?e.style.setProperty(t,n):e.style[t]=n}var pr={};function mr(e,t){let n=D(e);return()=>pr[t]??n()}var hr=mr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),gr=mr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),_r=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:_r([0,.65,.55,1]),circOut:_r([.55,0,1,.45]),backIn:_r([.31,.01,.66,-.59]),backOut:_r([.33,1.53,.69,.99])};function yr(e,t){if(e)return typeof e==`function`?gr()?Bt(e,t):`ease-out`:be(e)?_r(e):Array.isArray(e)?e.map(e=>yr(e,t)||vr.easeOut):vr[e]}function br(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=yr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function xr(e){return typeof e==`function`&&`applyToOptions`in e}function Sr({type:e,...t}){return xr(e)&&gr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Cr=class extends xn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Sr(e);this.animation=br(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=pn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),fr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},yn(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&hr()?(this.animation.timeline=e,t?.(this.animation),O):n(this)}},wr={anticipate:fe,backInOut:de,circInOut:he};function Tr(e){return e in wr}function Er(e){typeof e.ease==`string`&&Tr(e.ease)&&(e.ease=wr[e.ease])}var Dr=class extends Cr{constructor(e){Er(e),hn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(M.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new wn({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?C(0,10,a):0,s=this.sample(a);n&&r&&fr(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Or=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(L.test(e)||e===`0`)&&!e.startsWith(`url(`));function kr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ar(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Or(i,t),s=Or(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):kr(e)||(n===`spring`||xr(n))&&r}function jr(e){e.duration=0,e.type=`keyframes`}var Mr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Nr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Nr.test(e[t]))return!0;return!1}var Fr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ir=D(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Lr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Mr.has(n)||Fr.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ir()&&(Mr.has(n)||Fr.has(n)&&Pr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Rr=(e,t)=>t&&typeof e==`number`?t.transform(e):e,zr={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Br=U.length;function Vr(e,t,n){let r=``,i=!0;for(let a=0;a<Br;a++){let o=U[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Rr(s,jn[o]);if(!c){i=!1;let t=zr[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Rr(a,jn.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Hr=new WeakMap,Ur=200,Wr=.001,Gr=.1,Kr=.001,qr=100,Jr=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Yr=(e,t)=>e-t,Xr=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(R(e,t,i/n));return r},Zr=e=>e.motionValue.owner,Qr=e=>Hr.get(e),$r=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ei=({name:e,motionValue:t})=>e&&U.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ir()&&gr();function ti(e){let t=Zr(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&($r(t,`transform`)||`none`)===`none`&&!$r(t,`pathRotation`)&&!t.projection?.isProjecting()}var ni=class extends wn{constructor(e){let t=Zr(e).current,{driver:n=zt}=e,r,i=ti(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Qr(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Qr(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return Qr(Zr(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(M.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=be(n)?_r(n):Jr(n)&&vr[n];if(o&&!i&&!r&&e.length===2&&t===H&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||H)===H?u||on(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=M.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||ri(Zr(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(M.now())}get time(){return this.isAccelerated()?A(C(0,this.totalDuration,this.at(M.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function ri(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?U:a){let a=r.get(s),c=t===void 0?$r(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(zr[e]||e)+`(`+Rr(r[e],jn[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Vr(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=M.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),D.schedule(!1)}),e.oncancel=()=>s.includes(r)&&D.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ur,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Xr(t,n,i).concat(r).sort(Yr),o=e=>ne(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Wr>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Wr)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Wr)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Wr))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Cn(t)+` `+Cn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Kr:Gr))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Xr(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Yr))e>c&&o(c,e,0),c=e;return i.sort(Yr)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>ne(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=U.filter(t=>{if(r.has(t))return!0;let n=i[t]=$r(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,Hr.delete(t),D.isJS||_(),!0),ee=()=>{let t=M.now();if(D.isJS||(D.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=$r(e,n.name),o.has(n)||(c=!0))}),D.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return D.demote(!0);D.isJS&&(D.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<qr)return D.demote();f=t}if(!w(t))return D.demote()}},D={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,j.isProcessing?z.render(ee,!1,!0):queueMicrotask(ee)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||D.schedule(!0)},check(){if(!D.isJS){for(let t in i)if($r(e,t)!==i[t]&&!p(t))return D.schedule(!0,!0)}},demote(e){D.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),D.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Hr.set(t,D),D}var ii=class extends xn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=M.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ur;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=M.now();let u=!0;Ar(e,i,a,o)||(u=!1,(w.instantAnimations||!s)&&l?.(pn(e,n,t)),e[0]=e[e.length-1],jr(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Lr(n),p=!f&&ei(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=_n(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Dr(n)}catch{m=new wn(n)}}else m=p?new ni(n):new wn(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),cr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ai(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var oi=30,si=e=>!isNaN(parseFloat(e)),ci={current:void 0},li=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=M.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=si(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new re)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new re,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){z.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){ci.current&&ci.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>oi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,oi);return ie(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ui(e,t){return new li(e,t)}function di(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function fi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:di(n,e)}var pi={type:`spring`,stiffness:500,damping:25,restSpeed:10},mi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hi={type:`keyframes`,duration:.8},gi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},_i=(e,{keyframes:t})=>t.length>2?hi:W.has(e)?e.startsWith(`scale`)?mi(t[1]):pi:gi,vi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function yi(e){for(let t in e)if(!vi.has(t))return!0;return!1}var bi=(e,t,n,r={},i,a)=>o=>{let s=fi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};yi(s)||Object.assign(u,_i(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jr(u),u.delay===0&&(d=!0)),(w.instantAnimations||w.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=pn(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new wn(u):new ii(u)},xi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Si(e){let t=xi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ci(e,t,n=1){`${e}`;let[r,i]=Si(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return T(e)?parseFloat(e):e}return Ae(i)?Ci(i,t,n+1):i}function wi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ti(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...wi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Ei(e,t,n){return Ti(e.getProps(),t,n,e)}var Di=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Oi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...U]),ki=e=>Array.isArray(e);function Ai(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ui(n))}function ji(e){return ki(e)?e[e.length-1]||0:e}function Mi(e,t){let{transitionEnd:n={},transition:r={},...i}=Ei(e,t)||{};i={...i,...n};for(let t in i)Ai(e,t,ji(i[t]))}var G=e=>!!(e&&e.getVelocity);function Ni(e){return!!(G(e)&&e.add)}function Pi(e,t){let n=e.getValue(`willChange`);if(Ni(n))return n.add(t);if(!n&&w.WillChange){let n=new w.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Fi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ii=`data-`+Fi(`framerAppearId`);function Li(e){return e.props[Ii]}var Ri=typeof window<`u`;function zi({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Bi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?di(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&zi(f,t))continue;let o={delay:n,...fi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(Ri&&window.MotionHandoffAnimation){let n=Li(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}Pi(e,t);let m=l??e.shouldReduceMotion;r.start(bi(t,r,i,m&&Oi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&Mi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Vi(e,t,n={}){let r=Ei(e,t,Di(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Bi(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Vi(e,t,{...n,delay:r+(typeof o==`function`?0:o)+ai(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Hi(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Vi(e,t,n))):typeof t==`string`?Vi(e,t,n):Promise.all(Bi(e,Ei(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ui={test:e=>e===`auto`,parse:e=>e},Wi=e=>t=>t.test(e),Gi=[Ne,F,P,N,Je,qe,Ui],Ki=e=>Gi.find(Wi(e));function qi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ee(e)}var Ji=new Set([`auto`,`none`,`0`]);function Yi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ji.has(t)&&st(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Fn(n,i))}var Xi=class extends ur{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Me(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ae(r))){let i=Ci(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Oi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ki(r),o=Ki(i);if(Me(r)!==Me(i)&&tr[n])this.needsMeasurement=!0;else if(a!==o){if(Yn(a)&&Yn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else tr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||qi(e[t]))&&n.push(t);n.length&&Yi(e,n,t)}measure(){let{element:e,name:t}=this;return tr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Zi=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Qi(e){return E(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function $i(e){return E(e)&&`ownerSVGElement`in e}function ea(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function ta(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(W.has(e))o=!0;else if(Oe(e))i[e]=n;else{let t=Rr(n,jn[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Vr(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var na={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ra={offset:`strokeDashoffset`,array:`strokeDasharray`};function ia(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?na:ra;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var aa=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function oa(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ta(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of aa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ia(d,i,a,o,!1)}function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function la(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ua(e){return e===void 0||e===1}function da({scale:e,scaleX:t,scaleY:n}){return!ua(e)||!ua(t)||!ua(n)}function fa(e){return da(e)||pa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function pa(e){return ma(e.x)||ma(e.y)}function ma(e){return e&&e!==`0%`}function ha(e,t,n){return n+t*(e-n)}function ga(e,t,n,r,i){return i!==void 0&&(e=ha(e,i,r)),ha(e,n,r)+t}function _a(e,t=0,n=1,r,i){e.min=ga(e.min,t,n,r,i),e.max=ga(e.max,t,n,r,i)}function va(e,{x:t,y:n}){_a(e.x,t.translate,t.scale,t.originPoint),_a(e.y,n.translate,n.scale,n.originPoint)}var ya=.999999999999,ba=1.0000000000001;function xa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,va(e,o)),r&&fa(a.latestValues)&&wa(e,a.latestValues,a.layout?.layoutBox))}t.x<ba&&t.x>ya&&(t.x=1),t.y<ba&&t.y>ya&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Sa(e,t,n,r,i=.5){_a(e,t,n,R(e.min,e.max,i),r)}function Ca(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function wa(e,t,n){let r=n??e;Sa(e.x,Ca(t.x,r.x),t.scaleX,t.scale,t.originX),Sa(e.y,Ca(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ta(e,t){return sa(la(e.getBoundingClientRect(),t))}function Ea(e,t,n){let r=Ta(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var{schedule:Da,cancel:Oa}=Lt(queueMicrotask,!1),q={x:!1,y:!1};function ka(){return q.x||q.y}function Aa(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function ja(e,t){let n=ea(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ma(e){return!(e.pointerType===`touch`||ka())}function Na(e,t,n={}){let[r,i,a]=ja(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Ma(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Pa=(e,t)=>t?e===t||Pa(e,t.parentElement):!1,Fa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ia=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function La(e){return Ia.has(e.tagName)||e.isContentEditable===!0}var Ra=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function za(e){return Ra.has(e.tagName)||e.isContentEditable===!0}var Ba=new WeakSet;function Va(e){return t=>{t.key===`Enter`&&e(t)}}function Ha(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ua=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Va(()=>{if(Ba.has(n))return;Ha(n,`down`);let e=Va(()=>{Ha(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ha(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Wa(e){return Fa(e)&&!ka()}var Ga=new WeakSet;function Ka(e,t,n={}){let[r,i,a]=ja(e,n),o=e=>{let r=e.currentTarget;if(!Wa(e)||Ga.has(e))return;Ba.add(r),n.stopPropagation&&Ga.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ba.has(r)&&Ba.delete(r),Wa(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Pa(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Qi(e)&&(e.addEventListener(`focus`,e=>Ua(e,i)),!La(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var qa=new WeakMap,Ja,Ya=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:$i(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xa=Ya(`inline`,`width`,`offsetWidth`),Za=Ya(`block`,`height`,`offsetHeight`);function Qa({target:e,borderBoxSize:t}){qa.get(e)?.forEach(n=>{n(e,{get width(){return Xa(e,t)},get height(){return Za(e,t)}})})}function $a(e){e.forEach(Qa)}function eo(){typeof ResizeObserver<`u`&&(Ja=new ResizeObserver($a))}function to(e,t){Ja||eo();let n=ea(e);return n.forEach(e=>{let n=qa.get(e);n||(n=new Set,qa.set(e,n)),n.add(t),Ja?.observe(e)}),()=>{n.forEach(e=>{let n=qa.get(e);n?.delete(t),n?.size||Ja?.unobserve(e)})}}var no=new Set,ro;function io(){ro=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};no.forEach(t=>t(e))},window.addEventListener(`resize`,ro)}function ao(e){return no.add(e),ro||io(),()=>{no.delete(e),!no.size&&typeof ro==`function`&&(window.removeEventListener(`resize`,ro),ro=void 0)}}function oo(e,t){return typeof e==`function`?ao(e):to(e,t)}var so={value:null,addProjectionMetrics:null};function co(e){return $i(e)&&e.tagName===`svg`}var lo=e=>typeof e==`number`?e:parseFloat(e),uo=()=>({translate:0,scale:1,origin:0,originPoint:0}),fo=()=>({x:uo(),y:uo()}),po=()=>({min:0,max:0}),J=()=>({x:po(),y:po()}),mo=new WeakMap;function ho(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function go(e){return typeof e==`string`||Array.isArray(e)}var _o=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],vo=[`initial`,..._o];function yo(e){if(ho(e.animate))return!0;for(let t=0;t<vo.length;t++)if(go(e[vo[t]]))return!0;return!1}function bo(e){return!!(yo(e)||e.variants)}function xo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,ui(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ui(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var So={current:null},Co={current:!1},wo=typeof window<`u`;function To(){if(Co.current=!0,wo){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>So.current=e.matches;e.addEventListener(`change`,t),t()}else So.current=!1}}var Eo=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Do={},Oo=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ur,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=M.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,z.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=yo(t),this.isVariantNode=bo(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&G(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,mo.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Co.current||To(),this.shouldReduceMotion=So.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),B(this.notifyUpdate),B(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Mr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Cr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=W.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Hr.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Do){let t=Do[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Hr.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Eo.length;t++){let n=Eo[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=xo(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ui(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(T(n)||ee(n))?n=parseFloat(n):typeof n!=`number`&&!L.test(n)&&L.test(t)&&(n=Fn(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Da.render(this.render)}},ko=class extends Oo{constructor(){super(...arguments),this.KeyframeResolver=Xi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Ao(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}var jo={};function Mo(e){for(let t in e)jo[t]=e[t],Oe(t)&&(jo[t].isCSSVariable=!0)}function No(e,{layout:t,layoutId:n}){return W.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!jo[e]||e===`opacity`)}function Po(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||No(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Fo(e){return window.getComputedStyle(e)}var Io=class extends ko{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ao}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(W.has(t))return this.projection?.isProjecting?Gn(t):qn(e,t);{let n=Fo(e),r=(Oe(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ta(e,t)}build(e,t,n){ta(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Po(e,t,n)}},Lo=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`]),Ro=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function zo(e,t,n,r){Ao(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Lo.has(n)?n:Fi(n),t.attrs[n])}function Bo(e,t,n){let r=Po(e,t,n);for(let n in e)if(n!==`children`&&(G(e[n])||G(t[n]))){let t=U.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Vo=class extends ko{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return W.has(t)?super.getBaseTargetFromProps(e,t)??Gn(t):e[t]}getDefaultValue(e){return W.has(e)?this.latestValues[e]??Gn(e):void 0}readValueFromInstance(e,t){if(W.has(t)){let e=Nn(t);return e&&e.default||0}if(aa.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Lo.has(t)?t:Fi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Bo(e,t,n)}build(e,t,n){oa(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){zo(e,t,n,r)}mount(e){this.isSVGTag=Ro(e.tagName),super.mount(e)}};function Ho(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Uo=[..._o].reverse();function Wo(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Hi(e,t,n))),n=Ko(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Uo.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?go(g)||g===!1?g:void 0:h,v=go(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||ho(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Go(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Ei(e,n,Di(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Ho(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Ei(s,n)?.transition?.delayChildren;r.delay=ai(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Ei(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!G(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Ko(),i=!0}}}function Go(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ho(t,e):!1}function Ko(){let e={};for(let t of _o)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function qo(e,t){e.min=t.min,e.max=t.max}function Y(e,t){qo(e.x,t.x),qo(e.y,t.y)}function Jo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Yo=.9999,Xo=1.0001,Zo=-.01,Qo=.01;function X(e){return e.max-e.min}function $o(e,t,n){return Math.abs(e-t)<=n}function es(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yo&&e.scale<=Xo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zo&&e.translate<=Qo||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){es(e.x,t.x,n.x,r?r.originX:void 0),es(e.y,t.y,n.y,r?r.originY:void 0)}function ns(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function rs(e,t,n,r){ns(e.x,t.x,n.x,r?.x),ns(e.y,t.y,n.y,r?.y)}function is(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function as(e,t,n,r){is(e.x,t.x,n.x,r?.x),is(e.y,t.y,n.y,r?.y)}function os(e,t,n,r,i){return e-=t,e=ha(e,1/n,r),i!==void 0&&(e=ha(e,1/i,r)),e}function ss(e,t=0,n=1,r=.5,i,a=e,o=e){if(P.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=os(e.min,t,n,s,i),e.max=os(e.max,t,n,s,i)}function cs(e,t,[n,r,i],a,o){ss(e,t[n],t[r],t[i],t.scale,a,o)}var ls=[`x`,`scaleX`,`originX`],us=[`y`,`scaleY`,`originY`];function ds(e,t,n,r){cs(e.x,t,ls,n?n.x:void 0,r?r.x:void 0),cs(e.y,t,us,n?n.y:void 0,r?r.y:void 0)}function fs(e){return e.translate===0&&e.scale===1}function ps(e){return fs(e.x)&&fs(e.y)}function ms(e,t){return e.min===t.min&&e.max===t.max}function hs(e,t){return ms(e.x,t.x)&&ms(e.y,t.y)}function gs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _s(e,t){return gs(e.x,t.x)&&gs(e.y,t.y)}function vs(e){return X(e.x)/X(e.y)}function ys(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Z(e){return[e(`x`),e(`y`)]}function bs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Q={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(F.test(e))e=parseFloat(e);else return e}return`${bs(e,t.target.x)}% ${bs(e,t.target.y)}%`}},xs={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=L.parse(e);if(i.length>5)return r;let a=L.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=R(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};function Ss(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Cs=Zi.length,ws=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],Ts=ws.length,Es=e=>typeof e==`number`||F.test(e);function Ds(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,ks(r)),e.opacityExit=R(t.opacity??1,0,As(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;i<Cs;i++){let a=Zi[i],o=Os(t,a),s=Os(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Es(o)===Es(s)?(e[a]=Math.max(R(lo(o),lo(s),r),0),(P.test(s)||P.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<Ts;i++){let a=ws[i];(t[a]||n[a])&&(e[a]=R(t[a]||0,n[a]||0,r))}}function Os(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ks=js(0,.5,me),As=js(.5,.95,O);function js(e,t,n){return r=>r<e?0:r>t?1:n(ne(e,t,r))}function Ms(e,t,n){let r=G(e)?e:ui(e);return r.start(bi(``,r,t,n)),r.animation}function Ns(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ps=(e,t)=>e.depth-t.depth,Fs=class{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){S(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ps),this.isDirty=!1,this.children.forEach(e)}};function Is(e,t){let n=M.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(B(r),e(a-t))};return z.setup(r,!0),()=>B(r)}function Ls(e){return G(e)?e.get():e}var Rs=class{constructor(){this.members=[]}add(e){x(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(S(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(S(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},zs={borderRadius:{...Q,applyTo:[...Zi]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:xs},Bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(jo,{...zs,...jo});var Vs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Hs=[``,`X`,`Y`,`Z`],Us=1e3,Ws=0;function Gs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Ks=({instance:e})=>e&&Hr.get(e)?.demote();function qs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Li(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,z,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&qs(r)}function Js({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ws++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,so.value&&(Vs.nodes=Vs.calculatedTargetDeltas=Vs.calculatedProjections=0),this.nodes.forEach(Zs),this.nodes.forEach(cc),this.nodes.forEach(lc),this.nodes.forEach(Qs),so.addProjectionMetrics&&so.addProjectionMetrics(Vs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new re),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=$i(t)&&!co(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;z.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Is(i,250),Bs.hasAnimatedSinceResize&&(Bs.hasAnimatedSinceResize=!1,this.nodes.forEach(sc)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||hc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!_s(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...fi(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||sc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,B(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Ks(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Ks(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(tc),this.nodes.forEach(ec);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ic),this.nodes.forEach(ac),this.nodes.forEach(oc),this.nodes.forEach(Ys),this.nodes.forEach(Xs)):this.nodes.forEach(nc),this.clearAllSnapshots();let e=M.now();j.delta=C(0,1e3/60,e-j.timestamp),j.timestamp=e,j.isProcessing=!0,Rt.update.process(j),Rt.preRender.process(j),Rt.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Da.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($s),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&Ks(this);let t=this.projectionDelta&&!ps(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||fa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),yc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xc))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Y(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Y(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Y(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),fa(n.latestValues)&&wa(r,n.latestValues,n.layout?.layoutBox)}return fa(this.latestValues)&&wa(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Y(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!fa(n.latestValues))continue;let r;n.instance&&(da(n.latestValues)&&n.updateSnapshot(),r=J(),Y(r,n.measurePageBox())),ds(t,n.latestValues,n.snapshot?.layoutBox,r)}return fa(this.latestValues)&&ds(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}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!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=j.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rs(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),va(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),so.value&&Vs.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||da(this.parent.latestValues)||pa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),as(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===j.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Y(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;xa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jo(this.prevProjectionDelta.x,this.projectionDelta.x),Jo(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),so.value&&Vs.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fo(),this.projectionDelta=fo(),this.projectionDeltaWithTransform=fo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=fo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(mc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=R(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=R(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(dc(o.x,e.x,n),dc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),pc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&hs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Y(f,this.relativeTarget)),c&&(this.animationValues=a,Ds(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(B(this.pendingAnimation),void 0),this.pendingAnimation=z.update(()=>{Bs.hasAnimatedSinceResize=!0,this.motionValue||=ui(0),this.motionValue.jump(0,!1),this.currentAnimation=Ms(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),bn(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&bc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||J();let t=X(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=X(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Y(t,i),wa(t,r),ts(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Rs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Gs(`z`,e,r,this.animationValues);for(let t=0;t<Hs.length;t++)Gs(`rotate${Hs[t]}`,e,r,this.animationValues),Gs(`skew${Hs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ls(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ls(t?.pointerEvents)||``),this.hasProjected&&!fa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ss(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in jo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=jo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ls(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ec),this.root.sharedNodes.clear()}}}function Ys(e){e.updateLayout(),rc(e)}function Xs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Z(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;qo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else bc(i,t.layoutBox,n)&&Z(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fo();ts(o,n,t.layoutBox);let s=fo();a?ts(s,e.applyTransform(r,!0),t.measuredBox):ts(s,n,t.layoutBox);let c=!ps(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();as(s,t.layoutBox,i.layoutBox,o);let c=J();as(c,n,a.layoutBox,o),_s(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zs(e){so.value&&Vs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Qs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $s(e){e.clearSnapshot()}function ec(e){e.clearMeasurements()}function tc(e){e.isLayoutDirty=!0,e.updateLayout()}function nc(e){e.isLayoutDirty=!1}function rc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Z(e=>K(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function ic(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function ac(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function oc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function sc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cc(e){e.resolveTargetDelta()}function lc(e){e.calcProjection()}function uc(e){e.resetSkewAndRotation()}function dc(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fc(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function pc(e,t,n,r){fc(e.x,t.x,n.x,r),fc(e.y,t.y,n.y,r)}function mc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var hc={duration:.45,ease:[.4,0,.1,1]},gc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_c=gc(`applewebkit/`)&&!gc(`chrome/`)?Math.round:O;function vc(e){e.min=_c(e.min),e.max=_c(e.max)}function yc(e){vc(e.x),vc(e.y)}function bc(e,t,n){return e===`position`||e===`preserve-aspect`&&!$o(vs(t),vs(n),.2)}function xc(e){return e!==e.root&&e.scroll?.wasRoot}var Sc=Js({attachResizeListener:(e,t)=>Ns(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cc={current:void 0},wc=Js({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cc.current){let e=new Sc({});e.mount(window),e.setOptions({layoutScroll:!0}),Cc.current=e}return Cc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Tc={some:0,all:1};function Ec(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=ea(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Tc[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var Dc=(e,t)=>Math.abs(e-t);function Oc(e,t){let n=Dc(e.x,t.x),r=Dc(e.y,t.y);return Math.sqrt(n**2+r**2)}function kc({current:e}){return e?e.ownerDocument.defaultView:null}function Ac(e){if(e)return e.nodeType===3||e.nodeType===8?Ac(e.nextSibling):e}var[jc,Mc,Nc]=y(`Motion`),[Pc,Fc,Ic]=y(`LayoutGroup`),Lc={reducedMotion:`never`,transition:void 0,nonce:void 0},[Rc,zc,Bc]=y(`MotionConfig`);function Vc(){return Rc(r(()=>Lc))}var Hc=function(){};function Uc(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=Uc(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Wc(e,t,n){let r=Uc(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function Gc(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...Wc(e[i]||t?.[i],e.variants,r)}),{})}var Kc=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function qc(e){return Kc.has(e)}var Jc=new WeakMap,Yc=class{constructor(e,t,n={}){this.element=null,this.isExiting=!1,this.children=new Set,this.features=new Map,this.featureCtors=[],this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Gc(e,this.context),this.type=qc(this.options.as)?`svg`:`html`,this.setBundle(n)}get context(){if(!this._context){let e={get:(e,t)=>{let n=this.options[t];return go(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}};this._context=new Proxy({},e)}return this._context}setBundle(e){e.renderer&&this.initVisualElement(e.renderer),e.features?.length&&(this.featureCtors=e.features),this.updateFeatures()}updateFeatures(){if(this.visualElement)for(let e of this.featureCtors){let t=this.features.get(e.key);t||(t=new e(this),this.features.set(e.key,t)),this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){Jc.set(e,this),this.element=e,this.features.get(`layout`)?.refreshRootScroll(),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(!1)}unmount(){this.parent?.children?.delete(this),this.element&&Jc.delete(this.element),this.features.forEach(e=>{e.unmount(),e.isMount=!1}),this.visualElement?.unmount(),this.element=null}beforeUpdate(){this.getSnapshot(!this.isExiting)}update(){this.updateFeatures(),this.didUpdate()}getFeature(e){return this.features.get(e)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0);let n=e===`whilePress`?`whileTap`:e;this.visualElement?.animationState?.setActive(n,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1)})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e){this.features.get(`layout`)?.getSnapshot(e)}didUpdate(){}},$=class{constructor(e){this.isMount=!1,this.state=e}mount(){}beforeUnmount(){}unmount(){}update(){}getSnapshot(e){}};function Xc(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var Zc=class extends ${static{this.key=`animation`}constructor(e){super(e);let t=e.visualElement;t.animationState||=Wo(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;ho(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){Xc(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}},Qc=class extends ${constructor(...e){super(...e),this.exitGeneration=0}static{this.key=`exit`}exit(){let e=++this.exitGeneration,t=this.state;t.isExiting=!0;let n=new Promise(e=>{this.pendingExit={resolve:e}}),r=t.visualElement?.animationState?.setActive(`exit`,!0);return r?r.then(()=>{e===this.exitGeneration&&(t.isExiting=!1,t.options?.layoutId?z.postRender(()=>this.tryCompleteExit(e)):this.tryCompleteExit(e))}):(t.isExiting=!1,this.tryCompleteExit(e)),t.getSnapshot(!1),n}reenter(){this.exitGeneration++,this.settleExit(),this.state.isExiting=!1,this.state.setActive(`exit`,!1),this.state.getSnapshot(!0)}completeExitFromProjection(){this.tryCompleteExit(this.exitGeneration)}tryCompleteExit(e){e!==this.exitGeneration||this.state.isExiting||this.state.options?.layoutId&&this.state.visualElement.projection?.currentAnimation?.state===`running`||this.settleExit()}settleExit(){this.pendingExit?.resolve(),this.pendingExit=void 0}mount(){this.state.options.presenceContext?.register?.(this.state)}unmount(){this.state.options.presenceContext?.unregister?.(this.state),this.settleExit()}};function $c(e,t){return qc(e)?new Vo(t):new Io(t)}function el(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function tl(e){return t=>Fa(t)&&e(t,el(t))}var nl=class extends ${static{this.key=`press`}constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;e&&this.isActive()&&(this.removePress?.(),this.removePress=Ka(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&z.postRender(()=>n.onPressStart(t,el(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&z.postRender(()=>r(e,el(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}},rl=class extends ${static{this.key=`hover`}constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;e&&this.isActive()&&(this.removeHover?.(),this.removeHover=Na(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&z.postRender(()=>n.onHoverStart(t,el(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&z.postRender(()=>t(e,el(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},il=class extends ${static{this.key=`inView`}constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=Ec(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&z.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&z.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}},al=class extends ${static{this.key=`focus`}constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=te(Ns(e,`focus`,()=>this.onFocus()),Ns(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function ol(e){if(e)return e.options.allowProjection===!1?ol(e.parent):e.projection}var sl={borderRadius:{...Q,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:xs},cl=typeof window>`u`,ll=class extends ${static{this.key=`projection`}constructor(e){super(e),Mo(sl),cl||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new wc(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:ol(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&Qi(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.getFeature(`exit`)?.completeExitFromProjection()})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function ul(e,t,n,r){return Ns(e,t,tl(n),r)}var dl=new Set([`auto`,`scroll`]),fl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=hl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Oc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:M.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pl(t,this.transformPagePoint),this.hasPendingMove=!0,z.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=hl(e.type===`pointercancel`?this.lastMoveEventInfo:pl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Fa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=pl(el(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,hl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=te(ul(this.contextWindow,`pointermove`,this.handlePointerMove,d),ul(this.contextWindow,`pointerup`,this.handlePointerUp,d),ul(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(dl.has(e.overflowX)||dl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),z.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),B(this.updatePoint)}};function pl(e,t){return t?{point:t(e.point)}:e}function ml(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hl({point:e},t){return{point:e,delta:ml(e,_l(t)),offset:ml(e,gl(t)),velocity:vl(t,.1)}}function gl(e){return e[0]}function _l(e){return e[e.length-1]}function vl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=_l(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function yl(e){return(t,n)=>{e&&z.update(()=>e(t,n),!1,!0)}}var bl=class extends ${constructor(...e){super(...e),this.removePointerDownListener=O}static{this.key=`pan`}onPointerDown(e){this.session=new fl(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:kc(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:yl((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:yl((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:yl((e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)}),onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&z.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=ul(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function xl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?R(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?R(n,e,r.max):Math.min(e,n)),e}var Sl=.35;function Cl(e,{top:t,left:n,bottom:r,right:i}){return{x:wl(e.x,n,i),y:wl(e.y,t,r)}}function wl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Tl(e=Sl){return e===!1?e=0:e===!0&&(e=Sl),{x:El(e,`left`,`right`),y:El(e,`top`,`bottom`)}}function El(e,t,n){return{min:Dl(e,t),max:Dl(e,n)}}function Dl(e,t){return typeof e==`number`?e:e[t]||0}function Ol(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function kl(e,t){return{x:Al(e.x,t.x),y:Al(e.y,t.y)}}function Al(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jl(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=ne(t.min,t.max-r,e.min):r>i&&(n=ne(e.min,e.max-i,t.min)),C(0,1,n)}var Ml=new WeakMap,Nl=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.state.isExiting)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Aa(n),!this.openGlobalLock)||(this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(e=>{let t=this.getAxisMotionValue(e).get()||0;if(P.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&z.update(()=>i(e,t),!1,!0),Pi(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=Ll(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&z.update(()=>a(e,t),!1,!0))},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new fl(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:kc(this.visualElement),element:this.state.element})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&z.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Il(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=xl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Qi(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Cl(n.layoutBox,e):!1,this.elastic=Tl(t),r!==this.constraints&&!Qi(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Z(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ol(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Qi(e))return!1;let n=e,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ea(n,r.root,this.visualElement.getTransformPagePoint()),a=kl(r.layout.layoutBox,i);if(t){let e=t(ca(a));this.hasMutatedConstraints=!!e,e&&(a=sa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Z(o=>{if(!Il(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Pi(this.visualElement,e),n.start(bi(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Z(e=>{if(!Il(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-R(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Qi(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Z(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=jl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(t=>{let n=this.getAxisMotionValue(t);if(!Il(t,e,null)||!n.get())return;let{min:i,max:a}=this.constraints[t];n.set(R(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.state.element)return;Ml.set(this.visualElement,this);let e=this.state.element,t=ul(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&za(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Qi(t)&&(this.constraints=this.resolveRefConstraints(),n||=Fl(e,t,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),z.read(r);let o=Ns(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Z(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Sl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Pl(e){let t=!0;return()=>{t?t=!1:e()}}function Fl(e,t,n){let r=oo(e,Pl(n)),i=oo(t,Pl(n));return()=>{r(),i()}}function Il(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ll(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Rl={renderer:$c,features:[Zc,Qc,nl,rl,il,al,ll,bl,class extends ${static{this.key=`drag`}constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Nl(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.prevDragControls=e,this.removeListeners=this.controls.addListeners()||O}update(){let{dragControls:e}=this.state.options;e!==this.prevDragControls&&(this.removeGroupControls(),this.removeGroupControls=e?e.subscribe(this.controls):O,this.prevDragControls=e)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},class extends ${static{this.key=`layout`}constructor(e){super(e),Mo(sl)}updatePrevLead(e){let t=this.state.visualElement.projection;t.isPresent!==e&&(t.isPresent=e,e?!t.isLead()&&t?.promote():t.isLead()&&t?.relegate())}didUpdate(){(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&this.state.visualElement.projection?.root?.didUpdate()}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!Xc(this.state.element);n.isPresent=e,e?n?.promote():n?.relegate()}t?.group?.add(n),Bs.hasEverUpdated=!0}this.didUpdate()}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t)}getSnapshot(e){let t=this.state.visualElement.projection,{layout:n,layoutId:r,drag:i,layoutDependency:a}=this.state.visualElement.props,o=this.state.visualElement.prevProps;t&&(n||r||i)&&((i||o.layoutDependency!==a||a===void 0||e!==t.isPresent)&&t.willUpdate(),r&&this.updatePrevLead(e),this.didUpdate())}refreshRootScroll(){let e=this.state.visualElement?.projection?.root;e&&this.state.options.layoutId&&(e.scroll=void 0,e.updateScroll?.())}}]},[zl,Bl]=y(`LazyMotionContext`),[Vl,Hl,Ul]=y(`AnimatePresenceContext`);function Wl(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Gl(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function Kl(){return{...Gl(),attrs:{}}}function ql(e,t){let n=Gl();ta(n,e,t);let r={...n.style};r.transform===``&&delete r.transform;for(let e in n.vars)r[e]=n.vars[e];return Object.keys(r).length===0?null:r}function Jl(e,t,n){let r=Kl();oa(r,e,Ro(t),void 0,n);let i={};for(let e in r.attrs){let t=Lo.has(e)?e:Wl(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function Yl(t,r={}){let i=jc(null),a=Pc({}),s=Vc(),f=Vl({}),m=zl({features:e({}),strict:!1}),g=n();function y(){return b(t,{layoutGroup:a,presenceContext:f,config:s.value})}function x(){return{...g,...y()}}let S=new Yc(x(),i,r);Mc(S),d(m.features,e=>{S.setBundle(e)},{immediate:!0,flush:`pre`});function C(){let e=S.type===`svg`,n={...g};Object.keys(g).forEach(e=>{G(g[e])&&(n[e]=g[e].get())});let r=S.visualElement?.latestValues||S.latestValues,i={...t.style,...e?{}:r};for(let e in i)G(i[e])&&(i[e]=i[e].get());if(e){let{attrs:e,style:a}=Jl({...r,...i},S.options.as,t.style);Object.assign(n,e),i=a}t.drag&&t.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:t.drag===!0?`none`:`pan-${t.drag===`x`?`y`:`x`}`});let a=ql(i,t.transformTemplate);return a&&(n.style=a),n}let w=c()?.proxy;function T(){let e=Ac(w?.$el);S.mount(e)}p(()=>{S.updateOptions(x()),S.beforeUnmount()}),u(T);function E(){Ac(w?.$el)?.isConnected||S.unmount()}return v(E),_(E),h(()=>{S.isMounted()||T()}),l(()=>{S.updateOptions(x()),S.beforeUpdate()}),o(()=>{S.update()}),{getProps:y,getAttrs:C,layoutGroup:a,state:S}}var Xl={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean,default:void 0},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:[Boolean,String]},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},Zl=new Map,Ql=new Map;function $l(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var eu=[`area`,`img`,`input`];function tu(e,n,r){if(typeof e==`string`&&eu.includes(e))return a(e,n);if(e===`template`){if(!r.default)return null;let e=$l(r.default()),i=e.findIndex(e=>e.type!==m);if(i===-1)return e;let a=e[i];delete a.props?.ref;let o=a.props?f(n,a.props):n;n.class&&a.props?.class&&delete a.props.class;let s=t(a,o);for(let e in o)e.startsWith(`on`)&&(s.props||={},s.props[e]=o[e]);return e.length===1?s:(e[i]=s,e)}return null}function nu(e,t={}){let n=typeof e==`string`,r=n?e:e.name||``,i=t.renderer?Zl:Ql;if(n&&i.has(e))return i.get(e);let o=s({inheritAttrs:!1,props:{...Xl,as:{type:[String,Object],default:e||`div`}},name:r?`motion.${r}`:`Motion`,setup(e,{slots:n}){let{getProps:r,getAttrs:i,state:o}=Yl(e,t);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=i();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=r(),o=i(),c=e.asChild?`template`:e.as,l={...e.forwardMotionProps?t:{},...o,onVnodeUpdated:s},u=tu(c,l,n);return u===null?a(c,{...l},n):u}}});return n&&i.set(e,o),o}function ru(e){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>nu(t,{...n,...e}):nu(n,{...e})}})}var iu=ru(Rl);iu.create(`div`);export{zc as a,Lc as i,Hl as n,Vc as o,Hc as r,z as s,iu as t};