libre-webui 0.42.0 → 0.43.0

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 (184) hide show
  1. package/README.md +1 -0
  2. package/backend/dist/db.d.ts.map +1 -1
  3. package/backend/dist/db.js +12 -1
  4. package/backend/dist/db.js.map +1 -1
  5. package/backend/dist/services/agentCliService.d.ts +22 -1
  6. package/backend/dist/services/agentCliService.d.ts.map +1 -1
  7. package/backend/dist/services/agentCliService.js +110 -3
  8. package/backend/dist/services/agentCliService.js.map +1 -1
  9. package/backend/dist/services/agentCliUsage.d.ts +3 -2
  10. package/backend/dist/services/agentCliUsage.d.ts.map +1 -1
  11. package/backend/dist/services/agentCliUsage.js +19 -1
  12. package/backend/dist/services/agentCliUsage.js.map +1 -1
  13. package/backend/dist/services/workAgentAccessService.js +1 -1
  14. package/backend/dist/services/workAgentCatalog.d.ts +15 -3
  15. package/backend/dist/services/workAgentCatalog.d.ts.map +1 -1
  16. package/backend/dist/services/workAgentCatalog.js +28 -0
  17. package/backend/dist/services/workAgentCatalog.js.map +1 -1
  18. package/backend/dist/services/workAgentCliRunner.d.ts +1 -0
  19. package/backend/dist/services/workAgentCliRunner.d.ts.map +1 -1
  20. package/backend/dist/services/workAgentCliRunner.js +31 -1
  21. package/backend/dist/services/workAgentCliRunner.js.map +1 -1
  22. package/backend/dist/services/workAgentHostLogins.d.ts +37 -0
  23. package/backend/dist/services/workAgentHostLogins.d.ts.map +1 -1
  24. package/backend/dist/services/workAgentHostLogins.js +190 -0
  25. package/backend/dist/services/workAgentHostLogins.js.map +1 -1
  26. package/backend/dist/services/workAgentService.d.ts +2 -0
  27. package/backend/dist/services/workAgentService.d.ts.map +1 -1
  28. package/backend/dist/services/workAgentService.js +10 -2
  29. package/backend/dist/services/workAgentService.js.map +1 -1
  30. package/backend/dist/services/workAgentStream.d.ts +4 -0
  31. package/backend/dist/services/workAgentStream.d.ts.map +1 -1
  32. package/backend/dist/services/workAgentStream.js +80 -0
  33. package/backend/dist/services/workAgentStream.js.map +1 -1
  34. package/backend/dist/services/workAgentToolchainService.d.ts.map +1 -1
  35. package/backend/dist/services/workAgentToolchainService.js +22 -5
  36. package/backend/dist/services/workAgentToolchainService.js.map +1 -1
  37. package/backend/dist/services/workEgressRelay.d.ts.map +1 -1
  38. package/backend/dist/services/workEgressRelay.js +19 -4
  39. package/backend/dist/services/workEgressRelay.js.map +1 -1
  40. package/backend/dist/services/workRuntimeService.d.ts.map +1 -1
  41. package/backend/dist/services/workRuntimeService.js +26 -8
  42. package/backend/dist/services/workRuntimeService.js.map +1 -1
  43. package/backend/dist/types/work.d.ts +2 -2
  44. package/backend/dist/types/work.d.ts.map +1 -1
  45. package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
  46. package/backend/dist/utils/pluginChatAdapter.js +2 -1
  47. package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
  48. package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
  49. package/backend/dist/utils/pluginDefinitionTrust.js +1 -0
  50. package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
  51. package/backend/package.json +1 -1
  52. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  53. package/frontend/dist/artifact-runtime/babel.js +15 -15
  54. package/frontend/dist/artifact-runtime/chart.js +2 -2
  55. package/frontend/dist/artifact-runtime/d3.js +2 -2
  56. package/frontend/dist/artifact-runtime/framer-motion.js +5 -5
  57. package/frontend/dist/artifact-runtime/lodash.js +2 -2
  58. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  59. package/frontend/dist/artifact-runtime/mathjs.js +4 -4
  60. package/frontend/dist/artifact-runtime/mermaid.js +360 -360
  61. package/frontend/dist/artifact-runtime/papaparse.js +1 -1
  62. package/frontend/dist/artifact-runtime/plotly.js +146 -20
  63. package/frontend/dist/artifact-runtime/react.js +2 -2
  64. package/frontend/dist/artifact-runtime/recharts.js +8 -8
  65. package/frontend/dist/artifact-runtime/tailwind.js +1 -1
  66. package/frontend/dist/artifact-runtime/three.js +2 -2
  67. package/frontend/dist/artifact-runtime/tone.js +3 -3
  68. package/frontend/dist/assets/index-BnbO3eTY.js +83 -0
  69. package/frontend/dist/index.html +33 -33
  70. package/frontend/dist/js/{ArtifactContainer-D5wijGHA.js → ArtifactContainer-C0R4kYVM.js} +1 -1
  71. package/frontend/dist/js/{ArtifactDemoPage-DwQzUFI-.js → ArtifactDemoPage-BQmbCyat.js} +1 -1
  72. package/frontend/dist/js/{ArtifactSandboxFrame-CQCAALvW.js → ArtifactSandboxFrame-CkDkrHpg.js} +1 -1
  73. package/frontend/dist/js/{ArtifactSlideOutPanel-Cn6Rp7Yx.js → ArtifactSlideOutPanel-DZnVzC0c.js} +1 -1
  74. package/frontend/dist/js/{AutomationModal-mgkoNA-S.js → AutomationModal-Cx1e_4df.js} +1 -1
  75. package/frontend/dist/js/AutomationsPage-D7UtYZ_0.js +1 -0
  76. package/frontend/dist/js/{AvatarUpload-BFU2a_eT.js → AvatarUpload-DGRQC20B.js} +1 -1
  77. package/frontend/dist/js/{Button-D_msp6KT.js → Button-DwZ26Lqc.js} +1 -1
  78. package/frontend/dist/js/{CalendarPage-DT6_t4fJ.js → CalendarPage-WmA1i7MQ.js} +1 -1
  79. package/frontend/dist/js/ChannelsPage-Bq4JQPR_.js +1 -0
  80. package/frontend/dist/js/ChatPage-Cd3fxx-N.js +14 -0
  81. package/frontend/dist/js/ConnectModels-BYul-veF.js +1 -0
  82. package/frontend/dist/js/EvaluationsPage-CV_Terzn.js +2 -0
  83. package/frontend/dist/js/FirstTimeSetup-CFhGy9a8.js +1 -0
  84. package/frontend/dist/js/GalleryPage-BRKZyq1w.js +1 -0
  85. package/frontend/dist/js/{HomePage-CXG83Qjk.js → HomePage-DdpnBu-Z.js} +1 -1
  86. package/frontend/dist/js/{LanguageSwitcher-DK5aMjVJ.js → LanguageSwitcher-CASJ8p5d.js} +1 -1
  87. package/frontend/dist/js/{Logo--9H7Lqkg.js → Logo-C-qwuy58.js} +1 -1
  88. package/frontend/dist/js/{LogoMark-DNzLawJz.js → LogoMark-zP-mitdI.js} +1 -1
  89. package/frontend/dist/js/{ModelManagerModals-MjJMyvPJ.js → ModelManagerModals-BYhFWv22.js} +1 -1
  90. package/frontend/dist/js/NotesPage-CmvVoWcH.js +3 -0
  91. package/frontend/dist/js/{OptimizedSyntaxHighlighter-Cruo0gJb.js → OptimizedSyntaxHighlighter-B8vbflQA.js} +1 -1
  92. package/frontend/dist/js/{OptimizedSyntaxHighlighter-BCkQOsIb.js → OptimizedSyntaxHighlighter-DoJF0j0l.js} +1 -1
  93. package/frontend/dist/js/{PasswordStrengthMeter-CEmuISNU.js → PasswordStrengthMeter-Dow8ZeTs.js} +1 -1
  94. package/frontend/dist/js/PersonasPage-BYKtoKWl.js +13 -0
  95. package/frontend/dist/js/PluginUsagePage-BVTOCxoE.js +1 -0
  96. package/frontend/dist/js/{RichMessageContent-CQY0R6rI.js → RichMessageContent-Bwpg3rfV.js} +3 -3
  97. package/frontend/dist/js/{RichMessageContent-B1TrzEbs.js → RichMessageContent-DJTLGpws.js} +1 -1
  98. package/frontend/dist/js/SettingsModal-CGyVfxOz.js +19 -0
  99. package/frontend/dist/js/{SettingsToggle-CjckNl8v.js → SettingsToggle-BpD6NSri.js} +1 -1
  100. package/frontend/dist/js/{ShareDialog-DiXoIWJx.js → ShareDialog-DYwyeyaI.js} +1 -1
  101. package/frontend/dist/js/{StrandsPage-BQ-PMkvY.js → StrandsPage-CvXeYOYR.js} +1 -1
  102. package/frontend/dist/js/SystemPage-B4qFsAsb.js +1 -0
  103. package/frontend/dist/js/{TurnstileWidget-J61wYyqA.js → TurnstileWidget-xx9lQV0b.js} +1 -1
  104. package/frontend/dist/js/UserManagementPage-DhMRuhqj.js +1 -0
  105. package/frontend/dist/js/UserManagementPanel-BVLSvRwa.js +1 -0
  106. package/frontend/dist/js/{WhatsNewModal-DcAyhGzi.js → WhatsNewModal-DfR7W93-.js} +1 -1
  107. package/frontend/dist/js/WorkPage-DSKBQEW0.js +7 -0
  108. package/frontend/dist/js/api-C5ps_CWQ.js +1 -0
  109. package/frontend/dist/js/{api-D3RzHftc.js → api-D6IF0v9_.js} +1 -1
  110. package/frontend/dist/js/{appNavigation-Df-xsLY5.js → appNavigation-BifMRN3D.js} +1 -1
  111. package/frontend/dist/js/{appStore-qi0l_wou.js → appStore-B6pAGo3p.js} +2 -2
  112. package/frontend/dist/js/appVersion-9UMn7b1T.js +1 -0
  113. package/frontend/dist/js/authStore-CDo5Co2D.js +1 -0
  114. package/frontend/dist/js/{authStore-BhwtFhS3.js → authStore-DdIb6km_.js} +3 -3
  115. package/frontend/dist/js/babel-BaOs8qJH.js +16 -0
  116. package/frontend/dist/js/{chatStore-mB6kXQVu.js → chatStore-hzQyRM9H.js} +3 -3
  117. package/frontend/dist/js/{client-tVKsnAVI.js → client-D_F_0LqX.js} +2 -2
  118. package/frontend/dist/js/{config-bhyjjacC.js → config-CHUQTU6j.js} +1 -1
  119. package/frontend/dist/js/{estree-BmKwYjuD.js → estree-Cw-tQG5d.js} +1 -1
  120. package/frontend/dist/js/{evaluationsApi-DxuXU4NS.js → evaluationsApi-C0FKNJua.js} +1 -1
  121. package/frontend/dist/js/{markdown-D-PuDeiZ.js → markdown-C7cnJl_Q.js} +5 -5
  122. package/frontend/dist/js/{markdown-core-D-4xNKNv.js → markdown-core-CGWDtd6X.js} +5 -5
  123. package/frontend/dist/js/{markdown-html-Cd75Y-85.js → markdown-html-BdYVneHE.js} +1 -1
  124. package/frontend/dist/js/{markdown-math-DUQvxNgB.js → markdown-math-BzLEmswF.js} +1 -1
  125. package/frontend/dist/js/{markdownHtml-mmK-QYY6.js → markdownHtml-B1Ll_Qgp.js} +1 -1
  126. package/frontend/dist/js/markdownMath-aI8uDQmz.js +1 -0
  127. package/frontend/dist/js/{messageCodeStyles-nVE1JYdR.js → messageCodeStyles-DVYyK8wm.js} +2 -2
  128. package/frontend/dist/js/{postcss-CU3LgMVN.js → postcss-DB_e0nkW.js} +1 -1
  129. package/frontend/dist/js/{react-vendor-GLIQTwVZ.js → react-vendor-C1iE8mnY.js} +2 -2
  130. package/frontend/dist/js/rfb-IV07oQgM.js +5 -0
  131. package/frontend/dist/js/rolldown-runtime-XKyaHtl9.js +1 -0
  132. package/frontend/dist/js/router-vendor-qltZAWoz.js +1 -0
  133. package/frontend/dist/js/{strandsApi-C04kQWMg.js → strandsApi-CeJLezXW.js} +1 -1
  134. package/frontend/dist/js/{syntax-highlight-BlVvro-Z.js → syntax-highlight-CemL-n1v.js} +2 -2
  135. package/frontend/dist/js/{teamEventStream-Cf62joPP.js → teamEventStream-DOMyufrH.js} +1 -1
  136. package/frontend/dist/js/{typescript-C28ytPnl.js → typescript-2anSzo_N.js} +2 -2
  137. package/frontend/dist/js/ui-D4Ytvr6d.js +2 -0
  138. package/frontend/dist/js/ui-vendor-BTcw5yZ6.js +1 -0
  139. package/frontend/dist/js/{useChat-BWWunIVw.js → useChat-BEbNywiP.js} +4 -4
  140. package/frontend/dist/js/{useDialogFocus-Dfa5Utj4.js → useDialogFocus-DpTun-ZV.js} +1 -1
  141. package/frontend/dist/js/useDictation-jTaorrHm.js +1 -0
  142. package/frontend/dist/js/useQuery-2_pQiHbl.js +1 -0
  143. package/frontend/dist/js/{useTranslation-B69j_cNd.js → useTranslation-D9EScZXH.js} +1 -1
  144. package/frontend/dist/js/utils-BvvV-Cka.js +1 -0
  145. package/frontend/dist/js/{utils-vendor-DWQLsiSj.js → utils-vendor-CsC5rH1J.js} +1 -1
  146. package/frontend/dist/js/workAnnouncements--WBYN99v.js +1 -0
  147. package/frontend/dist/js/workApi-CGvfDTRY.js +1 -0
  148. package/frontend/dist/js/{workApi-CMbUePsX.js → workApi-_0oxRyak.js} +1 -1
  149. package/frontend/dist/js/xterm-BMsy1fDS.js +16 -0
  150. package/frontend/dist/js/{yaml-uvx2gM_u.js → yaml-Breo7DWT.js} +1 -1
  151. package/package.json +4 -4
  152. package/plugins/meta.json +77 -0
  153. package/frontend/dist/assets/index-BvQepfeH.js +0 -53
  154. package/frontend/dist/js/AutomationsPage-CsaCHmN_.js +0 -1
  155. package/frontend/dist/js/ChannelsPage-DXD6PlTg.js +0 -1
  156. package/frontend/dist/js/ChatPage-C7NQy4ts.js +0 -14
  157. package/frontend/dist/js/ConnectModels-De18RKwJ.js +0 -1
  158. package/frontend/dist/js/EvaluationsPage-BCVJse6N.js +0 -2
  159. package/frontend/dist/js/FirstTimeSetup-M3iWWKTn.js +0 -1
  160. package/frontend/dist/js/GalleryPage-C-F45c09.js +0 -1
  161. package/frontend/dist/js/NotesPage-Dd2N_7zQ.js +0 -3
  162. package/frontend/dist/js/PersonasPage-DONF1JmU.js +0 -13
  163. package/frontend/dist/js/PluginUsagePage-Bu4pTUjq.js +0 -1
  164. package/frontend/dist/js/SettingsModal-Dabi8xVs.js +0 -19
  165. package/frontend/dist/js/SystemPage-CCCL2ByV.js +0 -1
  166. package/frontend/dist/js/UserManagementPage-H_uXYSnx.js +0 -1
  167. package/frontend/dist/js/UserManagementPanel-B2cJLYCP.js +0 -1
  168. package/frontend/dist/js/WorkPage-B1Rt99I9.js +0 -7
  169. package/frontend/dist/js/api-BU9PuoZz.js +0 -1
  170. package/frontend/dist/js/appVersion-CVfieEPW.js +0 -1
  171. package/frontend/dist/js/authStore-dszH-1C-.js +0 -1
  172. package/frontend/dist/js/babel-Dxd799BX.js +0 -16
  173. package/frontend/dist/js/markdownMath-Cf7jtPFB.js +0 -1
  174. package/frontend/dist/js/rfb-CtGtw_KV.js +0 -5
  175. package/frontend/dist/js/rolldown-runtime-hePW80VL.js +0 -1
  176. package/frontend/dist/js/router-vendor-BHaThOyH.js +0 -1
  177. package/frontend/dist/js/ui-DF-BqCU3.js +0 -2
  178. package/frontend/dist/js/ui-vendor--a64oKSu.js +0 -1
  179. package/frontend/dist/js/useDictation-Dxq5DG5V.js +0 -1
  180. package/frontend/dist/js/useQuery-Cv6hRATl.js +0 -1
  181. package/frontend/dist/js/utils-BCv-T6HP.js +0 -1
  182. package/frontend/dist/js/workAnnouncements-C2Cd6YCk.js +0 -1
  183. package/frontend/dist/js/workApi-CsmIQW0M.js +0 -1
  184. package/frontend/dist/js/xterm-CerOhKYV.js +0 -16
@@ -1,10 +1,10 @@
1
- (function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:E,forwardRef:ee,isValidElement:te,lazy:ne,memo:re,startTransition:ie,unstable_useCacheRefresh:ae,use:oe,useActionState:se,useCallback:ce,useContext:D,useDebugValue:le,useDeferredValue:ue,useEffect:O,useEffectEvent:de,useId:fe,useImperativeHandle:pe,useInsertionEffect:me,useLayoutEffect:he,useMemo:ge,useOptimistic:_e,useReducer:ve,useRef:k,useState:ye,useSyncExternalStore:be,useTransition:xe,version:Se}=o,Ce=w({});function A(e){let t=k(null);return t.current===null&&(t.current=e()),t.current}var we=typeof window<`u`,Te=we?he:O,Ee=w(null);function De(e,t){e.indexOf(t)===-1&&e.push(t)}function Oe(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ke([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var j=(e,t,n)=>n>t?t:n<e?e:n;function Ae(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var je=()=>{},Me=()=>{},M={},Ne=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Pe=e=>typeof e==`object`&&!!e,Fe=e=>/^0[^.\s]+$/u.test(e);function Ie(e){let t;return()=>(t===void 0&&(t=e()),t)}var N=e=>e,Le=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Re=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ze=class{constructor(){this.subscriptions=[]}add(e){return De(this.subscriptions,e),()=>this.remove(e)}remove(e){Oe(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}},P=e=>e*1e3,F=e=>e/1e3,Be=(e,t)=>t?1e3/t*e:0,Ve=new Set;function He(e){return Ve.has(e)}function Ue(e,t,n){e||Ve.has(t)||(console.warn(Ae(t,n)),Ve.add(t))}var We=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ge=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Ke(e,t,n,r){return e===t&&n===r?N:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ge(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ge(s+1e-7,e,n)-i-r)}return Ge(s,t,r)}}var qe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Je=e=>t=>1-e(1-t),Ye=Ke(.33,1.53,.69,.99),Xe=Je(Ye),Ze=qe(Xe),Qe=e=>e>=1?1:(e*=2)<1?.5*Xe(e):.5*(2-2**(-10*(e-1))),$e=e=>1-Math.sin(Math.acos(e)),et=Je($e),tt=qe($e),nt=Ke(.42,0,1,1),rt=Ke(0,0,.58,1),it=Ke(.42,0,.58,1);function at(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return j(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var ot=e=>Array.isArray(e)&&typeof e[0]!=`number`;function st(e,t){return ot(e)?e[We(0,e.length,t)]:e}var ct=e=>Array.isArray(e)&&typeof e[0]==`number`,lt={linear:N,easeIn:nt,easeInOut:it,easeOut:rt,circIn:$e,circInOut:tt,circOut:et,backIn:Xe,backInOut:Ze,backOut:Ye,anticipate:Qe},ut=e=>typeof e==`string`,dt=e=>{if(ct(e)){e.length;let[t,n,r,i]=e;return Ke(t,n,r,i)}return ut(e)?(lt[e],`${e}`,lt[e]):e},I={delta:0,timestamp:0,isProcessing:!1},ft;function pt(){ft=void 0}var L={now:()=>(ft===void 0&&L.set(I.isProcessing||M.useManualTiming?I.timestamp:performance.now()),ft),set:e=>{ft=e,queueMicrotask(pt)}},mt=e=>Math.round(e*1e5)/1e5,ht=e=>t=>typeof t==`string`&&t.startsWith(e),gt=ht(`--`),_t=ht(`var(--`),vt=e=>_t(e)?yt.test(e.split(`/*`)[0].trim()):!1,yt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var xt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},St={...xt,transform:e=>j(0,1,e)},Ct={...xt,default:1},wt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Tt(e){return e==null}var Et=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dt=(e,t)=>n=>!!(typeof n==`string`&&Et.test(n)&&n.startsWith(e)||t&&!Tt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ot=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(wt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},kt=e=>j(0,255,e),At={...xt,transform:e=>Math.round(kt(e))},jt={test:Dt(`rgb`,`red`),parse:Ot(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+At.transform(e)+`, `+At.transform(t)+`, `+At.transform(n)+`, `+mt(St.transform(r))+`)`};function Mt(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 Nt={test:Dt(`#`),parse:Mt,transform:jt.transform},Pt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ft=Pt(`deg`),It=Pt(`%`),R=Pt(`px`),Lt=Pt(`vh`),Rt=Pt(`vw`),zt={...It,parse:e=>It.parse(e)/100,transform:e=>It.transform(e*100)},Bt={test:Dt(`hsl`,`hue`),parse:Ot(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+It.transform(mt(t))+`, `+It.transform(mt(n))+`, `+mt(St.transform(r))+`)`},z={test:e=>jt.test(e)||Nt.test(e)||Bt.test(e),parse:e=>jt.test(e)?jt.parse(e):Bt.test(e)?Bt.parse(e):Nt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?jt.transform(e):Bt.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},Vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ht=new RegExp(wt.source),Ut=new RegExp(Vt.source,`i`);function Wt(e){return isNaN(e)&&typeof e==`string`&&(Ht.test(e)||Ut.test(e))}var Gt=`number`,Kt=`color`,qt=`var`,Jt=`var(`,Yt="${}",Xt=/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 Zt(e){let t=e.toString();return Ht.test(t)||Ut.test(t)}function Qt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Xt,e=>(z.test(e)?(r.color.push(a),i.push(Kt),n.push(z.parse(e))):e.startsWith(Jt)?(r.var.push(a),i.push(qt),n.push(e)):(r.number.push(a),i.push(Gt),n.push(parseFloat(e))),++a,Yt)).split(Yt),indexes:r,types:i}}function $t(e){return Qt(e).values}function en({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===Gt?mt(r[a]):e===Kt?z.transform(r[a]):r[a]}return i}}function tn(e){return en(Qt(e))}var nn=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,rn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:nn(e);function an(e){let t=Qt(e);return en(t)(t.values.map((e,n)=>rn(e,t.split[n])))}var B={test:Wt,parse:$t,createTransformer:tn,getAnimatableNone:an};function on(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 sn({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=on(s,r,e+1/3),a=on(s,r,e),o=on(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function cn(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,ln=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},un=[Nt,jt,Bt],dn=e=>un.find(t=>t.test(e));function fn(e){let t=dn(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Bt&&(n=sn(n)),n}var pn=(e,t)=>{let n=fn(e),r=fn(t);if(!n||!r)return cn(e,t);let i={...n};return e=>(i.red=ln(n.red,r.red,e),i.green=ln(n.green,r.green,e),i.blue=ln(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),jt.transform(i))},mn=new Set([`none`,`hidden`]);function hn(e,t){return mn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gn(e,t){return n=>V(e,t,n)}function _n(e){return typeof e==`number`?gn:typeof e==`string`?vt(e)?cn:z.test(e)?pn:xn:Array.isArray(e)?vn:typeof e==`object`?z.test(e)?pn:yn:cn}function vn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>_n(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function yn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=_n(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function bn(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 xn=(e,t)=>{let n=B.createTransformer(t),r=Qt(e),i=Qt(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?mn.has(e)&&!i.values.length||mn.has(t)&&!r.values.length?hn(e,t):Le(vn(bn(r,i),i.values),n):(`${e}${t}`,cn(e,t))},Sn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Cn(e,t){let n=Sn.exec(e);if(!n)return;let r=Sn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>mt(V(a,o,e))+i}function wn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return V(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Cn(e,t);if(n)return n}return _n(e)(e,t)}var Tn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function En(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 Dn=40;function On(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Tn.reduce((e,t)=>(e[t]=En(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=M.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Dn),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:Tn.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<Tn.length;t++)o[Tn[t]].cancel(e)},state:n,steps:o}}var{schedule:H,cancel:U,steps:kn}=On(typeof requestAnimationFrame<`u`?requestAnimationFrame:N,!0,I),An=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>H.update(t,e),stop:()=>U(t),now:()=>I.isProcessing?I.timestamp:L.now()}},jn=(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)})`},Mn=2e4;function Nn(e,t=50,n=Mn,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 Pn(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(Nn(o),Mn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:F(s)}}var W={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},Fn=e=>e<0?1/Math.max(1+e,W.minDamping):Math.max(1-e,W.minDamping);function In(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 zn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Ln(e,t){return e*Math.sqrt(1-t*t)}var Rn=12;function zn(e,t,n){let r=n;for(let n=1;n<Rn;n++)r-=e(r)/t(r);return r}var Bn=.001;function Vn({duration:e=W.duration,bounce:t=W.bounce}){let n,r;W.maxDuration;let i=Fn(t);e=j(W.minDuration,W.maxDuration,F(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Ln(t,i),o=Math.exp(-r);return Bn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Ln(t*t,i);return(-n(t)+Bn>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=zn(n,r,a),s=o*In(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:P(e)}}var Hn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Un(e,t){if(Hn(e,t))return e}function Wn(e){let t=Un(e.stiffness),n=Un(e.damping,!0),r=Un(e.mass),i={...e,stiffness:t??W.stiffness,damping:n??W.damping,mass:r??W.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=Fn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*In(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Vn(i)),i.isResolvedFromDuration=!0;(!Hn(i.stiffness)||!Hn(i.damping,!0))&&(i.stiffness=W.stiffness,i.damping=W.damping)}return i}function Gn(e=W.visualDuration,t=W.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}=Wn({...n}),f=e=>d?0:-F(e),p=s/(2*Math.sqrt(o*c)),m=F(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?W.restSpeed.granular:W.restSpeed.default),g.restDelta=n.restDelta||(e?W.restDelta.granular:W.restDelta.default)};_();let v,y,b;if(p<1){let e=Ln(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=>P(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=P(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(Nn(S),Mn),t=jn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Gn.applyToOptions=e=>{let t=Pn(e,100,Gn);return e.ease=t.ease,e.duration=P(t.duration),e.type=`keyframes`,e};function Kn({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=Gn({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 qn(e,t,n){let r=[],i=n||M.mix||wn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Le(Array.isArray(t)?t[n]||N:t,a)),r.push(a)}return r}function Jn(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=qn(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=Re(e[r],e[r+1],n);return s[r](i)};return n?t=>l(j(e[0],e[a-1],t)):l}function Yn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Re(0,t,r);e.push(V(n,1,i))}}function Xn(e){let t=[0];return Yn(t,e.length-1),t}function Zn(e,t){return e.map(e=>e*t)}function Qn(e,t){return e.map(()=>t||it).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ot(r)?r.map(dt):dt(r)||it,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:(M.mix||wn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?j(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Jn(Zn(n&&n.length===t.length?n:Xn(t),e),t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var er=5;function tr(e,t,n){let r=Math.max(t-er,0);return Be(n-e(r),t-r)}function nr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):tr(t=>e.next(t).value,t,e.next(t).value)}var rr=e=>e!==null;function ir(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(rr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ar={decay:Kn,inertia:Kn,tween:$n,keyframes:$n,spring:Gn};function or(e){typeof e.type==`string`&&(e.type=ar[e.type])}var sr=40,cr=(e,t)=>t-e>sr&&!M.useManualTiming?t:e;function lr(e,t){return{kind:e,animation:t,timestamp:L.now(),frameTimestamp:I.timestamp,frameIsProcessing:I.isProcessing}}function ur(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...lr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function dr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...lr(`layout-animation-start`,e),node:t})}catch{}}var fr=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)}},pr=e=>e/100,mr=e=>Math.round(e*1e4)/1e4,hr=class extends fr{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!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ur(this,this.options)}initAnimation(){let{options:e}=this;or(e);let{type:t=$n,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||$n;s!==$n&&typeof o[0]!=`number`&&(this.mixKeyframes=Le(pr,wn(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=Nn(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=cr(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!==Kn&&(f.value=ir(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??mr((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!==Kn?ir(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=j(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 F(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(this.currentTime)}set time(e){e=P(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 nr(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(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=An,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(L.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)}};function gr(e){return new hr(e)}var _r=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function vr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(wt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_r.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var yr=/\b([a-z-]*)\(.*?\)/gu,br={...B,getAnimatableNone:e=>{let t=e.match(yr);return t?t.map(vr).join(` `):e}},xr={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Sr={...xt,transform:Math.round},Cr={rotate:Ft,pathRotation:Ft,rotateX:Ft,rotateY:Ft,rotateZ:Ft,scale:Ct,scaleX:Ct,scaleY:Ct,scaleZ:Ct,skew:Ft,skewX:Ft,skewY:Ft,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:St,originX:zt,originY:zt,originZ:R},G={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,...Cr,zIndex:Sr,fillOpacity:St,strokeOpacity:St,numOctaves:Sr},wr={...G,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:br,WebkitFilter:br,mask:xr,WebkitMask:xr},Tr=e=>wr[e],Er=new Set([br,xr]);function Dr(e,t){let n=Tr(e);return Er.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Or(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var kr=e=>e*180/Math.PI,Ar=e=>Mr(kr(Math.atan2(e[1],e[0]))),jr={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:Ar,rotateZ:Ar,skewX:e=>kr(Math.atan(e[1])),skewY:e=>kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mr=e=>(e%=360,e<0&&(e+=360),e),Nr=Ar,Pr=e=>Math.hypot(e[0],e[1]),Fr=e=>Math.hypot(e[4],e[5]),Ir={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pr,scaleY:Fr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Pr(e)+Fr(e))/2,rotateX:e=>Mr(kr(Math.atan2(e[6],e[5]))),rotateY:e=>Mr(kr(Math.atan2(-e[2],e[0]))),rotateZ:Nr,rotate:Nr,skewX:e=>kr(Math.atan(e[4])),skewY:e=>kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lr(e){return+!!e.includes(`scale`)}function Rr(e,t){if(!e||e===`none`)return Lr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ir,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jr,i=t}if(!i)return Lr(t);let a=r[t],o=i[1].split(`,`).map(Br);return typeof a==`function`?a(o):o[a]}var zr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Rr(n,t)};function Br(e){return parseFloat(e.trim())}var K=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],q=new Set([...K,`pathRotation`]),Vr=e=>e===xt||e===R,Hr=new Set([`x`,`y`,`z`]),Ur=K.filter(e=>!Hr.has(e));function Wr(e){let t=[];return Ur.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 Gr=new Set([`bottom`,`right`]);function Kr(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 qr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Kr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Kr(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})=>Rr(e,`x`),y:({transform:e})=>Rr(e,`y`)};qr.translateX=qr.x,qr.translateY=qr.y;var Jr=new Set,Yr=!1,Xr=!1,Zr=!1;function Qr(){if(Xr){let e=[],t=new Set,n=new Set;Jr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Gr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Wr(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)})}Xr=!1,Yr=!1,Jr.forEach(e=>e.complete(Zr)),Jr.clear()}function $r(){Jr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xr=!0)})}function ei(){Zr=!0,$r(),Qr(),Zr=!1}function ti(e,t,n){if(typeof e==`string`){if(Ne(e)||Fe(e))return parseFloat(e);if(!B.test(e)&&B.test(n))return Dr(t,n)}return e??void 0}var ni=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?(Jr.add(this),Yr||(Yr=!0,H.read($r),H.resolveKeyframes(Qr))):(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=ti(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])}Or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Jr.delete(this)}cancel(){this.state===`scheduled`&&(Jr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ri=e=>e.startsWith(`--`);function ii(e,t,n){ri(t)?e.style.setProperty(t,n):e.style[t]=n}var ai={};function oi(e,t){let n=Ie(e);return()=>ai[t]??n()}var si=oi(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ci=oi(()=>window.ViewTimeline!==void 0,`viewTimeline`),li=oi(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ui=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,di={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ui([0,.65,.55,1]),circOut:ui([.55,0,1,.45]),backIn:ui([.31,.01,.66,-.59]),backOut:ui([.33,1.53,.69,.99])};function fi(e,t){if(e)return typeof e==`function`?li()?jn(e,t):`ease-out`:ct(e)?ui(e):Array.isArray(e)?e.map(e=>fi(e,t)||di.easeOut):di[e]}function pi(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=fi(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 mi(e){return typeof e==`function`&&`applyToOptions`in e}function hi({type:e,...t}){return mi(e)&&li()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var gi=class extends fr{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=hi(e);this.animation=pi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ir(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ii(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},ur(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 F(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=P(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&&si()?(this.animation.timeline=e,t?.(this.animation),N):n(this)}},_i={anticipate:Qe,backInOut:Ze,circInOut:tt};function vi(e){return e in _i}function yi(e){typeof e.ease==`string`&&vi(e.ease)&&(e.ease=_i[e.ease])}var bi=class extends gi{constructor(e){yi(e),or(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(L.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 hr({...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?j(0,10,a):0,s=this.sample(a);n&&r&&ii(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},xi=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function Si(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 Ci(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=xi(i,t),s=xi(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Si(e)||(n===`spring`||mi(n))&&r}function wi(e){e.duration=0,e.type=`keyframes`}var Ti=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ei=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Di(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ei.test(e[t]))return!0;return!1}var Oi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ki=Ie(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ai(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Ti.has(n)||Oi.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 ki()&&(Ti.has(n)||Oi.has(n)&&Di(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ji=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Mi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ni=K.length;function Pi(e,t,n){let r=``,i=!0;for(let a=0;a<Ni;a++){let o=K[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=ji(s,G[o]);if(!c){i=!1;let t=Mi[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${ji(a,G.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Fi=new WeakMap,Ii=200,Li=.001,Ri=.1,zi=.001,Bi=100,Vi=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Hi=(e,t)=>e-t,Ui=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(V(e,t,i/n));return r},Wi=e=>e.motionValue.owner,Gi=e=>Fi.get(e),Ki=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),qi=({name:e,motionValue:t})=>e&&K.includes(e)&&t?.owner?.current instanceof HTMLElement&&ki()&&li();function Ji(e){let t=Wi(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Ki(t,`transform`)||`none`)===`none`&&!Ki(t,`pathRotation`)&&!t.projection?.isProjecting()}var Yi=class extends hr{constructor(e){let t=Wi(e).current,{driver:n=An}=e,r=Ji(e);e.driver=e=>{let r=n(e);return{js:r,now:r.now,start:(e=!0)=>{let n=Gi(t);!n||n.isJS?r.start(e):n.schedule(!1,!e)},stop:()=>{r.stop();let e=Gi(t);e?.schedule(!e.isFinishing)}}},super(e),this.canAccelerate=r;let{stop:i}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),i()}}get group(){return Gi(Wi(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(L.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ct(n)?ui(n):Vi(n)&&di[n];if(o&&!i&&!r&&e.length===2&&t===$n&&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||$n)===$n?u||Xn(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=L.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Xi(Wi(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(L.now())}get time(){return this.isAccelerated()?F(j(0,this.totalDuration,this.at(L.now())-(this.options.delay||0))):super.time}set time(e){super.time=e}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function Xi(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/0,f=e=>{for(let t of n)if(t.name===e)return!0},p=(t,n)=>{let o={};for(let s of t===void 0?K:a){let a=r.get(s),c=t===void 0?Ki(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},m=(e,t)=>{let n=``,r=p(e,t);for(let e in r)n+=(Mi[e]||e)+`(`+ji(r[e],G[e])+`) `;return n||`none`},h=(e=p())=>{t.style.transform=Pi(e,{})},g=(e=!0)=>{e&&h(),s.forEach(({animation:e})=>e.cancel()),s=[]},_=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=L.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)),E.schedule(!1)}),e.oncancel=()=>s.includes(r)&&E.demote(),s.push(r)},v=(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]:[]},y=(e,t,n,r)=>{let i=Math.min(Ii,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Ui(t,n,i).concat(r).sort(Hi),o=e=>Re(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e[e.length-1]-n,i=e.map(e=>r?(e-n)/r:e-n);if(!r){if(i.some(e=>!(Math.abs(e)<=Li)))return}else if(!s)s=i,c=e=>(t.numberAt(e)-n)/r;else if(i.some((e,t)=>!(Math.abs(e-s[t])<=Li)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Li))return`linear`;let l=[],u=(e,t=c(e))=>l.push(mr(t)+` `+mr(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&v(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},b=(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`)?zi:Ri))),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(...v(e=>r.numberAt(e),t,n));i.push(n)}},s=Ui(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(Hi))e>c&&o(c,e,0),c=e;return i.sort(Hi)},x=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},S=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||y(e,n,r,s),l=c?[n,r]:b(e,n,r,s),u=l.map(e=>m(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Re(n,r,e))),u.every(e=>e===u[0])&&(h(p(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},C=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=K.filter(t=>{if(r.has(t))return!0;let n=i[t]=Ki(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),g(!1);let h=!u&&x(f);try{if(h&&h[1]>c){let[e,t,n]=h;_(S(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(_(S(f,c,l),0,l-c),m.forEach(e=>e<l-1&&_(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;_(S(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||g(),!0},w=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},T=()=>{let r=L.now();if(E.isJS||(E.isFinishing=!0,n.forEach(t=>{let[n,a]=t.timing();t.state===`running`&&t.speed>0&&!a&&n<=r+1&&(t.complete(),i[t.name]=Ki(e,t.name),o.has(t)||(c=!0))}),E.isFinishing=!1),l=!1,n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),!n.size){Fi.delete(t),E.isJS||g();return}for(let e of n)if(!e.canAccelerate)return E.demote(!0);E.isJS&&(E.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let a=c,s=u;if(c=u=!1,a||!w(r)){if(s){if(r-d<Bi)return E.demote();d=r}if(!C(r))return E.demote()}},E={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){c||=e,u||=!!t,l||(l=!0,I.isProcessing?H.render(T,!1,!0):queueMicrotask(T))},check(){if(!E.isJS){for(let t in i)if(Ki(e,t)!==i[t]&&!f(t))return E.schedule(!0,!0)}},demote(e){E.isJS||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),E.isJS=!0,o=new Map,g(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Fi.set(t,E),E}var Zi=class extends fr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.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||ni;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=L.now();let u=!0;Ci(e,i,a,o)||(u=!1,(M.instantAnimations||!s)&&l?.(ir(e,n,t)),e[0]=e[e.length-1],wi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Ai(n),p=!f&&qi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=cr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new bi(n)}catch{m=new hr(n)}}else m=p?new Yi(n):new hr(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(),ei()),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()}},Qi=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return $i(this.animations,`duration`)}get iterationDuration(){return $i(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function $i(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var ea=class extends Qi{then(e,t){return this.finished.finally(e).then(()=>{})}},ta=class extends gi{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},ur(this,{})}},na=new WeakMap,ra=(e,t=``)=>`${e}:${t}`;function ia(e){let t=na.get(e);return t||(t=new Map,na.set(e,t)),t}function aa(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 oa=30,sa=e=>!isNaN(parseFloat(e)),ca={current:void 0},la=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.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=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=sa(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 ze)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new ze,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(){H.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(){ca.current&&ca.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=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>oa)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,oa);return Be(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 J(e,t){return new la(e,t)}function ua(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function da(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ua(n,e)}var fa={type:`spring`,stiffness:500,damping:25,restSpeed:10},pa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ma={type:`keyframes`,duration:.8},ha={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ga=(e,{keyframes:t})=>t.length>2?ma:q.has(e)?e.startsWith(`scale`)?pa(t[1]):fa:ha,_a=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function va(e){for(let t in e)if(!_a.has(t))return!0;return!1}var ya=(e,t,n,r={},i,a)=>o=>{let s=da(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=P(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};va(s)||Object.assign(u,ga(e,u)),u.duration&&=P(u.duration),u.repeatDelay&&=P(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(wi(u),u.delay===0&&(d=!0)),(M.instantAnimations||M.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,wi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ir(u.keyframes,s);if(e!==void 0){H.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new hr(u):new Zi(u)},ba=20;function xa(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Sa(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Ca(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function wa({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Ca(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Ca(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Sa(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Sa(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?We(-180,180,f-d):0;return e=>{let t={x:xa(e,r.x,u.x,o.x),y:xa(e,r.y,u.y,o.y)};return i&&(t.rotate=We(-180,180,Sa(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Ta(e={}){let t=wa(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<ba))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...da(r||{},`x`)};delete g.path;let _=J(0);_.start(ya(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var Ea=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Da(e){let t=Ea.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Oa(e,t,n=1){`${e}`;let[r,i]=Da(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Ne(e)?parseFloat(e):e}return vt(i)?Oa(i,t,n+1):i}function ka(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Aa(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...ka(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function ja(e,t,n){return Aa(e.getProps(),t,n,e)}var Ma=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Na=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...K]),Pa=e=>Array.isArray(e);function Fa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,J(n))}function Ia(e){return Pa(e)?e[e.length-1]||0:e}function La(e,t){let{transitionEnd:n={},transition:r={},...i}=ja(e,t)||{};i={...i,...n};for(let t in i)Fa(e,t,Ia(i[t]))}var Y=e=>!!(e&&e.getVelocity);function Ra(e){return!!(Y(e)&&e.add)}function za(e,t){let n=e.getValue(`willChange`);if(Ra(n))return n.add(t);if(!n&&M.WillChange){let n=new M.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ba(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Va=`framerAppearId`,Ha=`data-`+Ba(Va);function Ua(e){return e.props[Ha]}var Wa=typeof window<`u`;function Ga({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Ka(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ua(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.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&&Ga(f,t))continue;let o={delay:n,...da(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){H.update(()=>r.set(i));continue}let p=!1;if(Wa&&window.MotionHandoffAnimation){let n=Ua(e);if(n){let e=window.MotionHandoffAnimation(n,t,H);e!==null&&(o.startTime=e,p=!0)}}za(e,t);let m=l??e.shouldReduceMotion;r.start(ya(t,r,i,m&&Na.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>H.update(()=>{o&&La(e,o)});d.length?Promise.all(d).then(t):t()}return d}function qa(e,t,n={}){let r=ja(e,t,Ma(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Ka(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(qa(e,t,{...n,delay:r+(typeof o==`function`?0:o)+aa(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 Ja(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>qa(e,t,n))):typeof t==`string`?qa(e,t,n):Promise.all(Ka(e,ja(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ya={test:e=>e===`auto`,parse:e=>e},Xa=e=>t=>t.test(e),Za=[xt,R,It,Ft,Rt,Lt,Ya],Qa=e=>Za.find(Xa(e));function $a(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Fe(e)}var eo=new Set([`auto`,`none`,`0`]);function to(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!eo.has(t)&&Zt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Dr(n,i))}var no=class extends ni{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(bt(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(),vt(r))){let i=Oa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Na.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Qa(r),o=Qa(i);if(bt(r)!==bt(i)&&qr[n])this.needsMeasurement=!0;else if(a!==o){if(Vr(a)&&Vr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else qr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||$a(e[t]))&&n.push(t);n.length&&to(e,n,t)}measure(){let{element:e,name:t}=this;return qr[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()}},ro=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],io=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...ro,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function ao(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&io.has(t)&&(e[n]=e[n]+`px`)}function oo(e){return!!(typeof e==`function`&&li()||!e||typeof e==`string`&&(e in di||li())||ct(e)||Array.isArray(e)&&e.every(oo))}var so=Ie(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),co=[];function lo(e){typeof e.test==`function`&&e.read,uo(e),co.unshift(e)}function uo(e){Oe(co,e)}function fo(e){return co.find(t=>t.test(e))}function po(e,t,n={},r){let i=[],{velocity:a}=n,o=n.reduceMotion??r?.shouldReduceMotion;for(let s in t){if(s===`transition`||s===`transitionEnd`)continue;let c=t[s];if(c===void 0)continue;let l=e(s),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?H.update(()=>l.set(c)):(l.start(ya(s,l,c,o&&Na.has(s)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:s}=t;if(s){let t=()=>H.update(()=>{for(let t in s)e(t).set(s[t])});i.length?Promise.all(i).then(t):t()}return i}function mo(e,t,n,r,i){return po(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=ho(i)??e.read(t,r,i),`${r}`}a=J(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function ho(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function go(e){return Pe(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function _o(e){return Pe(e)&&`ownerSVGElement`in e}function vo(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 yo(e){let t=(t,n)=>{let r=vo(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var bo=class{constructor(e=H.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function xo(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new bo(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var So={};function Co(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(So[i]||(So[i]=(Mi[i]||i)+`(`))+ji(a,Cr[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+ji(i,Cr.pathRotation)+`)`),t||`none`}var wo=new Set([`originX`,`originY`,`originZ`]),To=(e,t)=>ji(e.get(t)?.get(),G[t]),Eo=(e,t,n,r)=>{let i,a;if(q.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>K.indexOf(e)-K.indexOf(t)))}t.get(`transform`)||(!go(e)&&!t.get(`transformBox`)&&Eo(e,t,`transformBox`,new la(`fill-box`)),t.set(`transform`,new la(`none`),()=>{Fi.get(e)?.check(),e.style.transform=Co(t)})),a=t.get(`transform`)}else wo.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new la(``),()=>{let n=To(t,`originX`)??`50%`,r=To(t,`originY`)??`50%`,i=To(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ri(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=ji(r.getCurrent(),G[n])};return t.set(n,r,i,a)},Do=e=>go(e)||_o(e),Oo=(e,t)=>{if(q.has(t))return zr(e,t);let n=getComputedStyle(e),r=ri(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},ko=xo(Eo,{test:Do,read:Oo}),Ao=yo(ko);function jo(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(q.has(e))o=!0;else if(gt(e))i[e]=n;else{let t=ji(n,G[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Pi(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 Mo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},No={offset:`strokeDashoffset`,array:`strokeDasharray`};function Po(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Mo:No;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Fo=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Io(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(jo(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 Fo)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&&Po(d,i,a,o,!1)}function Lo(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Ro=(e,t,n,r,i=n)=>{let a=Lo(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Ba(i));let o=G[n]||G[i],s=a?()=>{e[i]=ji(r.get(),G[n])}:()=>{let t=ji(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},zo=yo(xo(Ro));function Bo(e,t,n,r){return H.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new la(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Vo=(e,t,n,r)=>n.startsWith(`path`)?Bo(e,t,n,r):n.startsWith(`attr`)?Ro(e,t,n,r,Go(n)):(q.has(n)||wo.has(n)||ri(n)||n in e.style?Eo:Ro)(e,t,n,r),Ho=(e,t)=>q.has(t)?G[t]?.default||0:ri(t)||Fo.includes(t)?Oo(e,t)||e.getAttribute(Ba(t))||0:(t=Go(t),e.getAttribute(Ba(t))??e.getAttribute(t)??void 0),Uo=xo(Vo,{test:_o,read:Ho}),Wo=yo(Uo);function Go(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ko({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function qo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jo(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 Yo(e){return e===void 0||e===1}function Xo({scale:e,scaleX:t,scaleY:n}){return!Yo(e)||!Yo(t)||!Yo(n)}function Zo(e){return Xo(e)||Qo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Qo(e){return $o(e.x)||$o(e.y)}function $o(e){return e&&e!==`0%`}function es(e,t,n){return n+t*(e-n)}function ts(e,t,n,r,i){return i!==void 0&&(e=es(e,i,r)),es(e,n,r)+t}function ns(e,t=0,n=1,r,i){e.min=ts(e.min,t,n,r,i),e.max=ts(e.max,t,n,r,i)}function rs(e,{x:t,y:n}){ns(e.x,t.translate,t.scale,t.originPoint),ns(e.y,n.translate,n.scale,n.originPoint)}var is=.999999999999,as=1.0000000000001;function os(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&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rs(e,o)),r&&Zo(a.latestValues)&&ls(e,a.latestValues,a.layout?.layoutBox))}t.x<as&&t.x>is&&(t.x=1),t.y<as&&t.y>is&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function ss(e,t,n,r,i=.5){ns(e,t,n,V(e.min,e.max,i),r)}function cs(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function ls(e,t,n){let r=n??e;ss(e.x,cs(t.x,r.x),t.scaleX,t.scale,t.originX),ss(e.y,cs(t.y,r.y),t.scaleY,t.scale,t.originY)}function us(e,t){return Ko(Jo(e.getBoundingClientRect(),t))}function ds(e,t,n){let r=us(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var fs={},ps=e=>_o(e)?Uo:ko,ms=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=no}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return us(this.current)}getProps(){return fs}};function hs(e,t,n,r){if(r)return po(e=>r.getValue(e,null),t,n,r);let i=ps(e);return mo(i,e,t,n,new ms(i,e))}function gs(e,t){let n=ps(e).state(e);if(!n)return;let{transformKeys:r}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&r?.length||t.addValue(n,e)})}var _s=xo((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Pe(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:vs,cancel:ys}=On(queueMicrotask,!1),Z={x:!1,y:!1};function bs(){return Z.x||Z.y}function xs(e){return e===`x`||e===`y`?Z[e]?null:(Z[e]=!0,()=>{Z[e]=!1}):Z.x||Z.y?null:(Z.x=Z.y=!0,()=>{Z.x=Z.y=!1})}function Ss(e,t){let n=vo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Cs(e){return!(e.pointerType===`touch`||bs())}function ws(e,t,n={}){let[r,i,a]=Ss(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(!Cs(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 Ts=(e,t)=>t?e===t||Ts(e,t.parentElement):!1,Es=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ds=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Os(e){return Ds.has(e.tagName)||e.isContentEditable===!0}var ks=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function As(e){return ks.has(e.tagName)||e.isContentEditable===!0}var js=new WeakSet;function Ms(e){return t=>{t.key===`Enter`&&e(t)}}function Ns(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ps=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ms(()=>{if(js.has(n))return;Ns(n,`down`);let e=Ms(()=>{Ns(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ns(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Fs(e){return Es(e)&&!bs()}var Is=new WeakSet;function Ls(e,t,n={}){let[r,i,a]=Ss(e,n),o=e=>{let r=e.currentTarget;if(!Fs(e)||Is.has(e))return;js.add(r),n.stopPropagation&&Is.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),js.has(r)&&js.delete(r),Fs(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ts(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),go(e)&&(e.addEventListener(`focus`,e=>Ps(e,i)),!Os(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Rs(e,t){let n=window.getComputedStyle(e);return ri(t)?n.getPropertyValue(t):n[t]}var zs=new WeakMap,Bs,Vs=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:_o(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Hs=Vs(`inline`,`width`,`offsetWidth`),Us=Vs(`block`,`height`,`offsetHeight`);function Ws({target:e,borderBoxSize:t}){zs.get(e)?.forEach(n=>{n(e,{get width(){return Hs(e,t)},get height(){return Us(e,t)}})})}function Gs(e){e.forEach(Ws)}function Ks(){typeof ResizeObserver<`u`&&(Bs=new ResizeObserver(Gs))}function qs(e,t){Bs||Ks();let n=vo(e);return n.forEach(e=>{let n=zs.get(e);n||(n=new Set,zs.set(e,n)),n.add(t),Bs?.observe(e)}),()=>{n.forEach(e=>{let n=zs.get(e);n?.delete(t),n?.size||Bs?.unobserve(e)})}}var Js=new Set,Ys;function Xs(){Ys=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Js.forEach(t=>t(e))},window.addEventListener(`resize`,Ys)}function Zs(e){return Js.add(e),Ys||Xs(),()=>{Js.delete(e),!Js.size&&typeof Ys==`function`&&(window.removeEventListener(`resize`,Ys),Ys=void 0)}}function Qs(e,t){return typeof e==`function`?Zs(e):qs(e,t)}var $s={value:null,addProjectionMetrics:null};function ec(){$s.value=null,$s.addProjectionMetrics=null}function tc(){if($s.value)throw ec(),Error(`Stats are already being measured`);let e=$s;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function nc(e){return _o(e)&&e.tagName===`svg`}function rc(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function ic(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=dt(r)(l/u)*u),t+l}}function ac(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Jn(i,a,o);return t?s(r):s}var oc=new Set,sc=({timestamp:e})=>{oc.forEach(t=>t.tick(e))},cc=class extends fr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(oc.size||H.update(sc,!0),oc.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=cr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return nr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():L.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(oc.delete(this),oc.size||U(sc))}},lc=e=>typeof e==`number`?e:parseFloat(e);function uc(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=lc(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=lc(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new cc({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),Y(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(dc(t,o),!1)):e.set(dc(t,o))},a=t.on(`change`,i),s=t.get();lc(s)-lc(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function dc(e,t){return t?e+t:e}function fc(e,t){let n=J(Y(e)?e.get():e);return pc(n,e,t),n}function pc(e,t,n={}){let r={type:`spring`,...n};return or(r),r.type=r.type||$n,uc(e,t,r)}function mc(e,t,n){let r=()=>t.set(n()),i=()=>H.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),U(r)})}function hc(e){let t=[];ca.current=t;let n=e();ca.current=void 0;let r=J(n);return mc(t,r,e),r}function gc(e,t,n,r){let i=ac(t,n,r);return hc(()=>i(e.get()))}function _c(e,t){let n=J(Y(e)?e.get():e);return vc(n,e,t),n}function vc(e,t,n){return uc(e,t,{...n,type:Gn})}var yc=[...Za,z,B],bc=e=>yc.find(Xa(e)),xc=0,Sc=()=>`motion-view-${xc++}`,Cc=e=>e.startsWith(`motion-view-`);function wc(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Tc(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Ec(e,t,n,r,i,a=[],o,s=[],c){let l=vo(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??Sc();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),wc(e,i,a),Tc(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!Cc(d)?f=d:(f=Sc(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),wc(e,i,a),Tc(e,f,o,s,c),f})}function Dc(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Oc(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var kc={},Ac=null,jc={set:(e,t)=>{kc[e]=t},commit:()=>{Ac||(Ac=document.createElement(`style`),Ac.id=`motion-view`);let e=``;for(let t in kc){let n=kc[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
- `}Ac.textContent=e,document.head.appendChild(Ac),kc={}},remove:()=>{Ac&&Ac.parentElement&&Ac.parentElement.removeChild(Ac)}};function Mc(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function Nc(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function Pc(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var Fc=[`layout`,`enter`,`exit`,`new`,`old`],Ic=e=>e.split(` `).every(e=>parseFloat(e)===0),Lc={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Rc={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},zc=.2;function Bc(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new Qi([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,vo(n)),b=Ec(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=Ec(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Ec(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=Hc(da(c,n),da(Vc(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=P(r.duration);let{delay:i=0,duration:a,ease:o}=hi(r);return{delay:P(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of ro)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),E=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ee(e))&&h.add(e)},ee=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>zc},te=()=>{Pc(`root`,n)||jc.set(`:root`,{"view-transition-name":`none`}),jc.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{jc.set(`::view-transition-group(${e})`,{overflow:`clip`}),jc.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{jc.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),jc.commit()},ne=()=>{Dc(u,d,f),jc.remove()},re=async()=>{await t(),b(`new`),T(`new`),E(),te()},ie;try{b(`old`),T(`old`),te(),ie=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return ie.finished.finally(ne),new Promise((e,t)=>{ie.ready.then(()=>{let t=Nc(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of Fc){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=Oc(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){Ue(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Hc(da(c,m),da(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Rc[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=P(f.duration),f.delay&&=P(f.delay),n.push(new gi({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=Mc(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new ta(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:fi(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=P(r.duration)),r=hi(r),d={delay:P(r.delay??0),duration:u&&i!==void 0?P(i):r.duration,easing:u?`linear`:fi(r.ease,r.duration)}}t.updateTiming(d),n.push(new ta(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of ro){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;Ic(s)&&Ic(c)||n.push(new gi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new Qi(n))}).catch(()=>ie.updateCallbackDone.then(()=>e(new Qi([])),t))})}function Vc(e,t){for(let n of Lc[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Hc(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Uc=[],Wc=null;function Gc(){Wc=null;let[e]=Uc;e&&Kc(e)}function Kc(e){Oe(Uc,e),Wc=e,Bc(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Gc)}function qc(){for(let e=Uc.length-1;e>=0;e--){let t=Uc[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Uc.slice(0,e+1).map(e=>e.update),r=Uc.slice(e+1);t.update=()=>{n.forEach(e=>e())},Uc=[t,...r];break}}(!Wc||Uc[0]?.options.interrupt===`immediate`)&&Gc()}function Jc(e){Uc.push(e),vs.render(qc)}var Yc=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=N,this.notifyReject=N,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(N),Jc(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Xc(e,t={}){return new Yc(e,t)}var Zc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qc=()=>({x:Zc(),y:Zc()}),$c=()=>({min:0,max:0}),Q=()=>({x:$c(),y:$c()}),el=new WeakMap;function tl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function nl(e){return typeof e==`string`||Array.isArray(e)}var rl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],il=[`initial`,...rl];function al(e){if(tl(e.animate))return!0;for(let t=0;t<il.length;t++)if(nl(e[il[t]]))return!0;return!1}function ol(e){return!!(al(e)||e.variants)}function sl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,J(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,J(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var cl={current:null},ll={current:!1},ul=typeof window<`u`;function dl(){if(ll.current=!0,ul){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>cl.current=e.matches;e.addEventListener(`change`,t),t()}else cl.current=!1}}var fl=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],pl={};function ml(e){pl=e}function hl(){return pl}var gl=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=ni,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=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,H.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=al(t),this.isVariantNode=ol(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&&Y(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,el.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:(ll.current||dl(),this.shouldReduceMotion=cl.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(),U(this.notifyUpdate),U(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&&Ti.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new gi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:P(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=q.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&H.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Fi.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 pl){let t=pl[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):Q()}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)&&Fi.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<fl.length;t++){let n=fl[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=sl(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=J(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`&&(Ne(n)||Fe(n))?n=parseFloat(n):typeof n!=`number`&&!B.test(n)&&B.test(t)&&(n=Dr(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new ze),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){vs.render(this.render)}},_l=class extends gl{constructor(){super(...arguments),this.KeyframeResolver=no}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;Y(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},vl=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function yl(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 bl={};function xl(e){for(let t in e)bl[t]=e[t],gt(t)&&(bl[t].isCSSVariable=!0)}function Sl(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!bl[e]||e===`opacity`)}function Cl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||Sl(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function wl(e){return window.getComputedStyle(e)}var Tl=class extends _l{constructor(){super(...arguments),this.type=`html`,this.renderInstance=yl}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(q.has(t))return this.projection?.isProjecting?Lr(t):zr(e,t);{let n=wl(e),r=(gt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return us(e,t)}build(e,t,n){jo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Cl(e,t,n)}};function El(e,t){return e in t}var Dl=class extends gl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(El(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Q()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ol=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`]),kl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Al(e,t,n,r){yl(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ol.has(n)?n:Ba(n),t.attrs[n])}function jl(e,t,n){let r=Cl(e,t,n);for(let n in e)if(n!==`children`&&(Y(e[n])||Y(t[n]))){let t=K.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ml=class extends _l{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(e,t){return q.has(t)?super.getBaseTargetFromProps(e,t)??Lr(t):e[t]}getDefaultValue(e){return q.has(e)?this.latestValues[e]??Lr(e):void 0}readValueFromInstance(e,t){if(q.has(t)){let e=Tr(t);return e&&e.default||0}if(Fo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Ol.has(t)?t:Ba(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return jl(e,t,n)}build(e,t,n){Io(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Al(e,t,n,r)}mount(e){this.isSVGTag=kl(e.tagName),super.mount(e)}};function Nl(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 Pl=[...rl].reverse();function Fl(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ja(e,t,n))),n=Ll(),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(Pl.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?nl(g)||g===!1?g:void 0:h,v=nl(_),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||tl(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Il(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}=ja(e,n,Ma(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)?!Nl(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=ja(s,n)?.transition?.delayChildren;r.delay=aa(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&ja(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&&!Y(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=Ll(),i=!0}}}function Il(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Nl(t,e):!1}function Ll(){let e={};for(let t of rl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var Rl=il.length;function zl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&zl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Rl;n++){let r=il[n],i=e.props[r];(nl(i)||i===!1)&&(t[r]=i)}return t}function Bl(e,t){e.min=t.min,e.max=t.max}function Vl(e,t){Bl(e.x,t.x),Bl(e.y,t.y)}function Hl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ul=.9999,Wl=1.0001,Gl=-.01,Kl=.01;function $(e){return e.max-e.min}function ql(e,t,n){return Math.abs(e-t)<=n}function Jl(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ul&&e.scale<=Wl||isNaN(e.scale))&&(e.scale=1),(e.translate>=Gl&&e.translate<=Kl||isNaN(e.translate))&&(e.translate=0)}function Yl(e,t,n,r){Jl(e.x,t.x,n.x,r?r.originX:void 0),Jl(e.y,t.y,n.y,r?r.originY:void 0)}function Xl(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+$(t)}function Zl(e,t,n,r){Xl(e.x,t.x,n.x,r?.x),Xl(e.y,t.y,n.y,r?.y)}function Ql(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+$(t)}function $l(e,t,n,r){Ql(e.x,t.x,n.x,r?.x),Ql(e.y,t.y,n.y,r?.y)}function eu(e,t,n,r,i){return e-=t,e=es(e,1/n,r),i!==void 0&&(e=es(e,1/i,r)),e}function tu(e,t=0,n=1,r=.5,i,a=e,o=e){if(It.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=eu(e.min,t,n,s,i),e.max=eu(e.max,t,n,s,i)}function nu(e,t,[n,r,i],a,o){tu(e,t[n],t[r],t[i],t.scale,a,o)}var ru=[`x`,`scaleX`,`originX`],iu=[`y`,`scaleY`,`originY`];function au(e,t,n,r){nu(e.x,t,ru,n?n.x:void 0,r?r.x:void 0),nu(e.y,t,iu,n?n.y:void 0,r?r.y:void 0)}function ou(e){return e.translate===0&&e.scale===1}function su(e){return ou(e.x)&&ou(e.y)}function cu(e,t){return e.min===t.min&&e.max===t.max}function lu(e,t){return cu(e.x,t.x)&&cu(e.y,t.y)}function uu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function du(e,t){return uu(e.x,t.x)&&uu(e.y,t.y)}function fu(e){return $(e.x)/$(e.y)}function pu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mu(e){return[e(`x`),e(`y`)]}function hu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var gu={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(R.test(e))e=parseFloat(e);else return e}return`${hu(e,t.target.x)}% ${hu(e,t.target.y)}%`}},_u={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.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=V(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 vu(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,skewX:s,skewY:c}=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+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}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 yu=ro.length,bu=e=>typeof e==`number`||R.test(e);function xu(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,Cu(r)),e.opacityExit=V(t.opacity??1,0,wu(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;i<yu;i++){let a=ro[i],o=Su(t,a),s=Su(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||bu(o)===bu(s)?(e[a]=Math.max(V(lc(o),lc(s),r),0),(It.test(s)||It.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V(t.rotate||0,n.rotate||0,r))}function Su(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Cu=Tu(0,.5,et),wu=Tu(.5,.95,N);function Tu(e,t,n){return r=>r<e?0:r>t?1:n(Re(e,t,r))}function Eu(e,t,n){let r=Y(e)?e:J(e);return r.start(ya(``,r,t,n)),r.animation}function Du(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ou=(e,t)=>e.depth-t.depth,ku=class{constructor(){this.children=[],this.isDirty=!1}add(e){De(this.children,e),this.isDirty=!0}remove(e){Oe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ou),this.isDirty=!1,this.children.forEach(e)}};function Au(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(U(r),e(a-t))};return H.setup(r,!0),()=>U(r)}function ju(e,t){return Au(e,P(t))}function Mu(e){return Y(e)?e.get():e}var Nu=class{constructor(){this.members=[]}add(e){De(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&&(Oe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Oe(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)}},Pu={borderRadius:{...gu,applyTo:[...ro]},borderTopLeftRadius:gu,borderTopRightRadius:gu,borderBottomLeftRadius:gu,borderBottomRightRadius:gu,boxShadow:_u},Fu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(bl,{...Pu,...bl});var Iu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Lu=[``,`X`,`Y`,`Z`],Ru=1e3,zu=0;function Bu(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Vu=({instance:e})=>e&&Fi.get(e)?.demote();function Hu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ua(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,H,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hu(r)}function Uu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=zu++,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,$s.value&&(Iu.nodes=Iu.calculatedTargetDeltas=Iu.calculatedProjections=0),this.nodes.forEach(Ku),this.nodes.forEach(rd),this.nodes.forEach(id),this.nodes.forEach(qu),$s.addProjectionMetrics&&$s.addProjectionMetrics(Iu)},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 ku)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ze),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=_o(t)&&!nc(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;H.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Au(i,250),Fu.hasAnimatedSinceResize&&(Fu.hasAnimatedSinceResize=!1,this.nodes.forEach(nd)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||dd,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!du(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...da(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||nd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),U(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(ad),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&&Hu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Vu(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Vu(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(Xu),this.nodes.forEach(Yu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($u),this.nodes.forEach(ed),this.nodes.forEach(td),this.nodes.forEach(Wu),this.nodes.forEach(Gu)):this.nodes.forEach(Zu),this.clearAllSnapshots();let e=L.now();I.delta=j(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,kn.update.process(I),kn.preRender.process(I),kn.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ju),this.sharedNodes.forEach(od)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.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||=Q(),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&&Vu(this);let t=this.projectionDelta&&!su(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Zo(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)),hd(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_d))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Q();if(Vl(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&&Vl(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Q();Vl(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&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),Zo(n.latestValues)&&ls(r,n.latestValues,n.layout?.layoutBox)}return Zo(this.latestValues)&&ls(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Q();Vl(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Zo(n.latestValues))continue;let r;n.instance&&(Xo(n.latestValues)&&n.updateSnapshot(),r=Q(),Vl(r,n.measurePageBox())),au(t,n.latestValues,n.snapshot?.layoutBox,r)}return Zo(this.latestValues)&&au(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}}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!==I.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=I.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=Q(),this.targetWithTransforms=Q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vl(this.target,this.layout.layoutBox),rs(this.target,this.targetDelta)):Vl(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),$s.value&&Iu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Xo(this.parent.latestValues)||Qo(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=Q(),this.relativeTargetOrigin=Q(),$l(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Vl(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===I.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;Vl(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;os(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=Q());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hl(this.prevProjectionDelta.x,this.projectionDelta.x),Hl(this.prevProjectionDelta.y,this.projectionDelta.y)),Yl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!pu(this.projectionDelta.x,this.prevProjectionDelta.x)||!pu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),$s.value&&Iu.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=Qc(),this.projectionDelta=Qc(),this.projectionDeltaWithTransform=Qc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Qc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Q(),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(ud));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=V(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=V(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(sd(o.x,e.x,n),sd(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($l(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ld(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&lu(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Q(),Vl(f,this.relativeTarget)),c&&(this.animationValues=a,xu(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&&=(U(this.pendingAnimation),void 0),this.pendingAnimation=H.update(()=>{Fu.hasAnimatedSinceResize=!0,this.motionValue||=J(0),this.motionValue.jump(0,!1),this.currentAnimation=Eu(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()}}),dr(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(Ru),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&&gd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Q();let t=$(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=$(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Vl(t,i),ls(t,r),Yl(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Nu),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&&Bu(`z`,e,r,this.animationValues);for(let t=0;t<Lu.length;t++)Bu(`rotate${Lu[t]}`,e,r,this.animationValues),Bu(`skew${Lu[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=Mu(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=Mu(t?.pointerEvents)||``),this.hasProjected&&!Zo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=vu(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 bl){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=bl[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?Mu(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(Yu),this.root.sharedNodes.clear()}}}function Wu(e){e.updateLayout(),Qu(e)}function Gu(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`)mu(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Bl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else gd(i,t.layoutBox,n)&&mu(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(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=Qc();Yl(o,n,t.layoutBox);let s=Qc();a?Yl(s,e.applyTransform(r,!0),t.measuredBox):Yl(s,n,t.layoutBox);let c=!su(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=Q();$l(s,t.layoutBox,i.layoutBox,o);let c=Q();$l(c,n,a.layoutBox,o),du(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 Ku(e){$s.value&&Iu.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 qu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ju(e){e.clearSnapshot()}function Yu(e){e.clearMeasurements()}function Xu(e){e.isLayoutDirty=!0,e.updateLayout()}function Zu(e){e.isLayoutDirty=!1}function Qu(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;mu(e=>X(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function $u(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function ed(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function td(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function nd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rd(e){e.resolveTargetDelta()}function id(e){e.calcProjection()}function ad(e){e.resetSkewAndRotation()}function od(e){e.removeLeadSnapshot()}function sd(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cd(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function ld(e,t,n,r){cd(e.x,t.x,n.x,r),cd(e.y,t.y,n.y,r)}function ud(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var dd={duration:.45,ease:[.4,0,.1,1]},fd=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),pd=fd(`applewebkit/`)&&!fd(`chrome/`)?Math.round:N;function md(e){e.min=pd(e.min),e.max=pd(e.max)}function hd(e){md(e.x),md(e.y)}function gd(e,t,n){return e===`position`||e===`preserve-aspect`&&!ql(fu(t),fu(n),.2)}function _d(e){return e!==e.root&&e.scroll?.wasRoot}var vd=Uu({attachResizeListener:(e,t)=>Du(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),yd=e=>!e.isLayoutDirty&&e.willUpdate(!1);function bd(){let e=new Set,t=new WeakMap,n=()=>e.forEach(yd);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var xd={current:void 0},Sd=Uu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xd.current){let e=new vd({});e.mount(window),e.setOptions({layoutScroll:!0}),xd.current=e}return xd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Cd=`[data-layout],[data-layout-id]`,wd=new WeakMap,Td;function Ed(e){let t=[];return e instanceof HTMLElement&&e.matches(Cd)&&t.push(e),e.querySelectorAll(Cd).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Dd(){if(I.isProcessing)return;let e=L.now();I.delta=j(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,kn.update.process(I),kn.preRender.process(I),kn.render.process(I),I.isProcessing=!1}function Od(e){let t=e.parentElement;for(;t;){let e=wd.get(t);if(e&&e.instance)return e;t=t.parentElement}}function kd(){return new Tl({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Ad(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function jd(e,t){let n=wd.get(e);if(n)n.setOptions(Ad(e,t));else{let r=el.get(e);r||(r=kd(),gs(e,r)),e.style.transform&&!Zo(r.latestValues)&&(e.style.transform=``),n=new Sd(r.latestValues,Od(e)),r.projection=n,n.setOptions({...Ad(e,t),visualElement:r}),n.mount(e),wd.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Md(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Nd(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),wd.delete(e)}function Pd(){let e=Td;Td=void 0,Dd();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Md(t.keys())){let r=t.get(e),i=jd(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),vs.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Fd=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Td||(Td=[],queueMicrotask(Pd)),Td.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Ed(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of Ed(this.scope)){if(this.tracked.has(t))continue;let n=jd(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Nd(n,t)}}),t.relegate())return;n.remove()}Nd(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new Qi([...e]))}};function Id(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:vo(e)[0]??document,updateDom:t,defaultOptions:n}}function Ld(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Id(e,t,n);return new Fd(r,i,a)}var Rd=H,zd=Tn.reduce((e,t)=>(e[t]=e=>U(e),e),{}),Bd=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Vd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Hd(...e){return t=>{let n=!1,r=e.map(e=>{let r=Vd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Vd(e[t],null)}}}}function Ud(...e){return ce(Hd(...e),e)}var Wd=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(go(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=go(e)&&e.offsetWidth||0,r=go(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Gd({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=fe(),c=k(null),l=k({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=D(Bd),d=Ud(c,o===!1?void 0:e.props?.ref??e?.ref);return me(()=>{let{width:e,height:i,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||o===!1||!c.current||!e||!i)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`,y=c.current;y.dataset.motionPopId=s;let b=y.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=a??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
3
- [data-motion-pop-id="${s}"] {
1
+ (function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:ee,forwardRef:te,isValidElement:E,lazy:ne,memo:re,startTransition:ie,unstable_useCacheRefresh:ae,use:oe,useActionState:se,useCallback:ce,useContext:D,useDebugValue:le,useDeferredValue:ue,useEffect:O,useEffectEvent:de,useId:fe,useImperativeHandle:pe,useInsertionEffect:me,useLayoutEffect:he,useMemo:ge,useOptimistic:_e,useReducer:ve,useRef:k,useState:A,useSyncExternalStore:ye,useTransition:be,version:xe}=o,Se=w({});function j(e){let t=k(null);return t.current===null&&(t.current=e()),t.current}var Ce=typeof window<`u`,we=Ce?he:O,Te=w(null);function Ee(e,t){e.indexOf(t)===-1&&e.push(t)}function De(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Oe([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var M=(e,t,n)=>n>t?t:n<e?e:n;function ke(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ae=()=>{},je=()=>{},N={},Me=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ne=e=>typeof e==`object`&&!!e,Pe=e=>/^0[^.\s]+$/u.test(e);function Fe(e){let t;return()=>(t===void 0&&(t=e()),t)}var P=e=>e,Ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Le=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Re=class{constructor(){this.subscriptions=[]}add(e){return Ee(this.subscriptions,e),()=>this.remove(e)}remove(e){De(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}},F=e=>e*1e3,I=e=>e/1e3,ze=(e,t)=>t?1e3/t*e:0,Be=new Set;function Ve(e){return Be.has(e)}function He(e,t,n){e||Be.has(t)||(console.warn(ke(t,n)),Be.add(t))}var Ue=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},We=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Ge(e,t,n,r){return e===t&&n===r?P:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=We(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(We(s+1e-7,e,n)-i-r)}return We(s,t,r)}}var Ke=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qe=e=>t=>1-e(1-t),Je=Ge(.33,1.53,.69,.99),Ye=qe(Je),Xe=Ke(Ye),Ze=e=>e>=1?1:(e*=2)<1?.5*Ye(e):.5*(2-2**(-10*(e-1))),Qe=e=>1-Math.sin(Math.acos(e)),$e=qe(Qe),et=Ke(Qe),tt=Ge(.42,0,1,1),nt=Ge(0,0,.58,1),rt=Ge(.42,0,.58,1);function it(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return M(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var at=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ot(e,t){return at(e)?e[Ue(0,e.length,t)]:e}var st=e=>Array.isArray(e)&&typeof e[0]==`number`,ct={linear:P,easeIn:tt,easeInOut:rt,easeOut:nt,circIn:Qe,circInOut:et,circOut:$e,backIn:Ye,backInOut:Xe,backOut:Je,anticipate:Ze},lt=e=>typeof e==`string`,ut=e=>{if(st(e)){e.length;let[t,n,r,i]=e;return Ge(t,n,r,i)}return lt(e)?(ct[e],`${e}`,ct[e]):e},L={delta:0,timestamp:0,isProcessing:!1},dt;function ft(){dt=void 0}var R={now:()=>(dt===void 0&&R.set(L.isProcessing||N.useManualTiming?L.timestamp:performance.now()),dt),set:e=>{dt=e,queueMicrotask(ft)}},pt=e=>Math.round(e*1e5)/1e5,mt=e=>t=>typeof t==`string`&&t.startsWith(e),ht=mt(`--`),gt=mt(`var(--`),_t=e=>gt(e)?vt.test(e.split(`/*`)[0].trim()):!1,vt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var bt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},xt={...bt,transform:e=>M(0,1,e)},St={...bt,default:1},Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wt(e){return e==null}var Tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n==`string`&&Tt.test(n)&&n.startsWith(e)||t&&!wt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ot=e=>M(0,255,e),kt={...bt,transform:e=>Math.round(Ot(e))},At={test:Et(`rgb`,`red`),parse:Dt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+kt.transform(e)+`, `+kt.transform(t)+`, `+kt.transform(n)+`, `+pt(xt.transform(r))+`)`};function jt(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 Mt={test:Et(`#`),parse:jt,transform:At.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=Nt(`deg`),Ft=Nt(`%`),z=Nt(`px`),It=Nt(`vh`),Lt=Nt(`vw`),Rt={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},zt={test:Et(`hsl`,`hue`),parse:Dt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ft.transform(pt(t))+`, `+Ft.transform(pt(n))+`, `+pt(xt.transform(r))+`)`},B={test:e=>At.test(e)||Mt.test(e)||zt.test(e),parse:e=>At.test(e)?At.parse(e):zt.test(e)?zt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?At.transform(e):zt.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},Bt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Vt=new RegExp(Ct.source),Ht=new RegExp(Bt.source,`i`);function Ut(e){return isNaN(e)&&typeof e==`string`&&(Vt.test(e)||Ht.test(e))}var Wt=`number`,Gt=`color`,Kt=`var`,qt=`var(`,Jt="${}",Yt=/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 Xt(e){let t=e.toString();return Vt.test(t)||Ht.test(t)}function Zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Yt,e=>(B.test(e)?(r.color.push(a),i.push(Gt),n.push(B.parse(e))):e.startsWith(qt)?(r.var.push(a),i.push(Kt),n.push(e)):(r.number.push(a),i.push(Wt),n.push(parseFloat(e))),++a,Jt)).split(Jt),indexes:r,types:i}}function Qt(e){return Zt(e).values}function $t({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===Wt?pt(r[a]):e===Gt?B.transform(r[a]):r[a]}return i}}function en(e){return $t(Zt(e))}var tn=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,nn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:tn(e);function rn(e){let t=Zt(e);return $t(t)(t.values.map((e,n)=>nn(e,t.split[n])))}var V={test:Ut,parse:Qt,createTransformer:en,getAnimatableNone:rn};function an(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 on({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=an(s,r,e+1/3),a=an(s,r,e),o=an(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function sn(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,cn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ln=[Mt,At,zt],un=e=>ln.find(t=>t.test(e));function dn(e){let t=un(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===zt&&(n=on(n)),n}var fn=(e,t)=>{let n=dn(e),r=dn(t);if(!n||!r)return sn(e,t);let i={...n};return e=>(i.red=cn(n.red,r.red,e),i.green=cn(n.green,r.green,e),i.blue=cn(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),At.transform(i))},pn=new Set([`none`,`hidden`]);function mn(e,t){return pn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hn(e,t){return n=>H(e,t,n)}function gn(e){return typeof e==`number`?hn:typeof e==`string`?_t(e)?sn:B.test(e)?fn:bn:Array.isArray(e)?_n:typeof e==`object`?B.test(e)?fn:vn:sn}function _n(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>gn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function vn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function yn(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 bn=(e,t)=>{let n=V.createTransformer(t),r=Zt(e),i=Zt(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?pn.has(e)&&!i.values.length||pn.has(t)&&!r.values.length?mn(e,t):Ie(_n(yn(r,i),i.values),n):(`${e}${t}`,sn(e,t))},xn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Sn(e,t){let n=xn.exec(e);if(!n)return;let r=xn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>pt(H(a,o,e))+i}function Cn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return H(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Sn(e,t);if(n)return n}return gn(e)(e,t)}var wn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Tn(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var En=40;function Dn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=wn.reduce((e,t)=>(e[t]=Tn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,En),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:wn.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<wn.length;t++)o[wn[t]].cancel(e)},state:n,steps:o}}var{schedule:U,cancel:W,steps:On}=Dn(typeof requestAnimationFrame<`u`?requestAnimationFrame:P,!0,L),kn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>U.update(t,e),stop:()=>W(t),now:()=>L.isProcessing?L.timestamp:R.now()}},An=(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)})`},jn=2e4;function Mn(e,t=50,n=jn,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 Nn(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(Mn(o),jn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:I(s)}}var G={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},Pn=e=>e<0?1/Math.max(1+e,G.minDamping):Math.max(1-e,G.minDamping);function Fn(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 Rn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function In(e,t){return e*Math.sqrt(1-t*t)}var Ln=12;function Rn(e,t,n){let r=n;for(let n=1;n<Ln;n++)r-=e(r)/t(r);return r}var zn=.001;function Bn({duration:e=G.duration,bounce:t=G.bounce}){let n,r;G.maxDuration;let i=Pn(t);e=M(G.minDuration,G.maxDuration,I(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=In(t,i),o=Math.exp(-r);return zn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=In(t*t,i);return(-n(t)+zn>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=Rn(n,r,a),s=o*Fn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:F(e)}}var Vn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Hn(e,t){if(Vn(e,t))return e}function Un(e){let t=Hn(e.stiffness),n=Hn(e.damping,!0),r=Hn(e.mass),i={...e,stiffness:t??G.stiffness,damping:n??G.damping,mass:r??G.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=Pn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Fn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Bn(i)),i.isResolvedFromDuration=!0;Vn(i.stiffness)&&Vn(i.damping,!0)||(i.stiffness=G.stiffness,i.damping=G.damping)}return i}function Wn(e=G.visualDuration,t=G.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}=Un({...n}),f=e=>d?0:-I(e),p=s/(2*Math.sqrt(o*c)),m=I(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?G.restSpeed.granular:G.restSpeed.default),g.restDelta=n.restDelta||(e?G.restDelta.granular:G.restDelta.default)};_();let v,y,b;if(p<1){let e=In(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=>F(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=F(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(Mn(S),jn),t=An(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var Gn=Object.assign(Wn,{applyToOptions:e=>{let t=Nn(e,100,Wn);return e.ease=t.ease,e.duration=F(t.duration),e.type=`keyframes`,e}});function Kn({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=Gn({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 qn(e,t,n){let r=[],i=n||N.mix||Cn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ie(Array.isArray(t)?t[n]||P:t,a)),r.push(a)}return r}function Jn(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=qn(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=Le(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function Yn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Le(0,t,r);e.push(H(n,1,i))}}function Xn(e){let t=[0];return Yn(t,e.length-1),t}function Zn(e,t){return e.map(e=>e*t)}function Qn(e,t){return e.map(()=>t||rt).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=at(r)?r.map(ut):ut(r)||rt,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:(N.mix||Cn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?M(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Jn(Zn(n&&n.length===t.length?n:Xn(t),e),t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var er=5;function tr(e,t,n){let r=Math.max(t-er,0);return ze(n-e(r),t-r)}function nr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):tr(t=>e.next(t).value,t,e.next(t).value)}var rr=e=>e!==null;function ir(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(rr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ar={decay:Kn,inertia:Kn,tween:$n,keyframes:$n,spring:Gn};function or(e){typeof e.type==`string`&&(e.type=ar[e.type])}var sr=40,cr=(e,t)=>t-e>sr&&!N.useManualTiming?t:e;function lr(e,t){return{kind:e,animation:t,timestamp:R.now(),frameTimestamp:L.timestamp,frameIsProcessing:L.isProcessing}}function ur(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...lr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function dr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...lr(`layout-animation-start`,e),node:t})}catch{}}var fr=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)}},pr=e=>e/100,mr=e=>Math.round(e*1e4)/1e4,hr=class extends fr{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!==R.now()&&this.tick(R.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ur(this,this.options)}initAnimation(){let{options:e}=this;or(e);let{type:t=$n,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||$n;s!==$n&&typeof o[0]!=`number`&&(this.mixKeyframes=Ie(pr,Cn(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=Mn(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=cr(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!==Kn&&(f.value=ir(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??mr((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!==Kn?ir(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=M(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 I(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(this.currentTime)}set time(e){e=F(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 nr(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(R.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=I(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=kn,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(R.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)}};function gr(e){return new hr(e)}var _r=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function vr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_r.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var yr=/\b([a-z-]*)\(.*?\)/gu,br={...V,getAnimatableNone:e=>{let t=e.match(yr);return t?t.map(vr).join(` `):e}},xr={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Sr={...bt,transform:Math.round},Cr={rotate:Pt,pathRotation:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:St,scaleX:St,scaleY:St,scaleZ:St,skew:Pt,skewX:Pt,skewY:Pt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:xt,originX:Rt,originY:Rt,originZ:z},K={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...Cr,zIndex:Sr,fillOpacity:xt,strokeOpacity:xt,numOctaves:Sr},wr={...K,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:br,WebkitFilter:br,mask:xr,WebkitMask:xr},Tr=e=>wr[e],Er=new Set([br,xr]);function Dr(e,t){let n=Tr(e);return Er.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Or(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var kr=e=>e*180/Math.PI,Ar=e=>Mr(kr(Math.atan2(e[1],e[0]))),jr={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:Ar,rotateZ:Ar,skewX:e=>kr(Math.atan(e[1])),skewY:e=>kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mr=e=>(e%=360,e<0&&(e+=360),e),Nr=Ar,Pr=e=>Math.hypot(e[0],e[1]),Fr=e=>Math.hypot(e[4],e[5]),Ir={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pr,scaleY:Fr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Pr(e)+Fr(e))/2,rotateX:e=>Mr(kr(Math.atan2(e[6],e[5]))),rotateY:e=>Mr(kr(Math.atan2(-e[2],e[0]))),rotateZ:Nr,rotate:Nr,skewX:e=>kr(Math.atan(e[4])),skewY:e=>kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lr(e){return+!!e.includes(`scale`)}function Rr(e,t){if(!e||e===`none`)return Lr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ir,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jr,i=t}if(!i)return Lr(t);let a=r[t],o=i[1].split(`,`).map(Br);return typeof a==`function`?a(o):o[a]}var zr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Rr(n,t)};function Br(e){return parseFloat(e.trim())}var q=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],J=new Set([...q,`pathRotation`]),Vr=e=>e===bt||e===z,Hr=new Set([`x`,`y`,`z`]),Ur=q.filter(e=>!Hr.has(e));function Wr(e){let t=[];return Ur.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 Gr=new Set([`bottom`,`right`]);function Kr(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 qr=({transform:e})=>Rr(e,`x`),Jr=({transform:e})=>Rr(e,`y`),Yr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Kr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Kr(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:qr,y:Jr,translateX:qr,translateY:Jr},Xr=new Set,Zr=!1,Qr=!1,$r=!1;function ei(){if(Qr){let e=[],t=new Set,n=new Set;Xr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Gr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Wr(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)})}Qr=!1,Zr=!1,Xr.forEach(e=>e.complete($r)),Xr.clear()}function ti(){Xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qr=!0)})}function ni(){$r=!0,ti(),ei(),$r=!1}function ri(e,t,n){if(typeof e==`string`){if(Me(e)||Pe(e))return parseFloat(e);if(!V.test(e)&&V.test(n))return Dr(t,n)}return e??void 0}var ii=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?(Xr.add(this),Zr||(Zr=!0,U.read(ti),U.resolveKeyframes(ei))):(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=ri(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])}Or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Xr.delete(this)}cancel(){this.state===`scheduled`&&(Xr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ai=e=>e.startsWith(`--`);function oi(e,t,n){ai(t)?e.style.setProperty(t,n):e.style[t]=n}var si={};function ci(e,t){let n=Fe(e);return()=>si[t]??n()}var li=ci(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ui=ci(()=>window.ViewTimeline!==void 0,`viewTimeline`),di=ci(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),fi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pi={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:fi([0,.65,.55,1]),circOut:fi([.55,0,1,.45]),backIn:fi([.31,.01,.66,-.59]),backOut:fi([.33,1.53,.69,.99])};function mi(e,t){if(e)return typeof e==`function`?di()?An(e,t):`ease-out`:st(e)?fi(e):Array.isArray(e)?e.map(e=>mi(e,t)||pi.easeOut):pi[e]}function hi(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=mi(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 gi(e){return typeof e==`function`&&`applyToOptions`in e}function _i({type:e,...t}){return gi(e)&&di()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var vi=class extends fr{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=_i(e);this.animation=hi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ir(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),oi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},ur(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(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,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 I(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=F(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&&li()?(this.animation.timeline=e,t?.(this.animation),P):n(this)}},yi={anticipate:Ze,backInOut:Xe,circInOut:et};function bi(e){return e in yi}function xi(e){typeof e.ease==`string`&&bi(e.ease)&&(e.ease=yi[e.ease])}var Si=class extends vi{constructor(e){xi(e),or(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(R.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 hr({...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?M(0,10,a):0,s=this.sample(a);n&&r&&oi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ci=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function wi(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 Ti(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=Ci(i,t),s=Ci(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):wi(e)||(n===`spring`||gi(n))&&r}function Ei(e){e.duration=0,e.type=`keyframes`}var Di=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Oi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ki(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Oi.test(e[t]))return!0;return!1}var Ai=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ji=()=>!N.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Mi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Di.has(n)||Ai.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 ji()&&(Di.has(n)||Ai.has(n)&&ki(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ni=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Pi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Fi=q.length;function Ii(e,t,n){let r=``,i=!0;for(let a=0;a<Fi;a++){let o=q[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=Ni(s,K[o]);if(!c){i=!1;let t=Pi[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ni(a,K.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Li=new WeakMap,Ri=200,zi=.001,Bi=.1,Vi=.001,Hi=100,Ui=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Wi=(e,t)=>e-t,Gi=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(H(e,t,i/n));return r},Ki=e=>e.motionValue.owner,qi=e=>Li.get(e),Ji=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Yi=({name:e,motionValue:t})=>e&&q.includes(e)&&t?.owner?.current instanceof HTMLElement&&ji()&&di();function Xi(e){let t=Ki(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Ji(t,`transform`)||`none`)===`none`&&!Ji(t,`pathRotation`)&&!t.projection?.isProjecting()}var Zi=class extends hr{constructor(e){let t=Ki(e).current,{driver:n=kn}=e,r,i=Xi(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=qi(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=qi(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 qi(Ki(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(R.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=st(n)?fi(n):Ui(n)&&pi[n];if(o&&!i&&!r&&e.length===2&&t===$n&&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||$n)===$n?u||Xn(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=R.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Qi(Ki(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(R.now())}get time(){return this.isAccelerated()?I(M(0,this.totalDuration,this.at(R.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 Qi(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?q:a){let a=r.get(s),c=t===void 0?Ji(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+=(Pi[e]||e)+`(`+Ni(r[e],K[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Ii(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=R.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)),E.schedule(!1)}),e.oncancel=()=>s.includes(r)&&E.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(Ri,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Gi(t,n,i).concat(r).sort(Wi),o=e=>Le(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)*zi>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=zi)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=zi)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=zi))return`linear`;let l=[],u=(e,t=c(e))=>l.push(mr(t)+` `+mr(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`)?Vi:Bi))),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=Gi(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(Wi))e>c&&o(c,e,0),c=e;return i.sort(Wi)},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=>Le(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=q.filter(t=>{if(r.has(t))return!0;let n=i[t]=Ji(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},ee=()=>!n.size&&(u=!0,qi(t)===E&&Li.delete(t),E.isJS||_(),!0),te=()=>{let t=R.now();if(E.isJS||(E.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]=Ji(e,n.name),o.has(n)||(c=!0))}),E.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),ee()))return;for(let e of n)if(!e.canAccelerate)return E.demote(!0);E.isJS&&(E.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<Hi)return E.demote();f=t}if(!w(t))return E.demote()}},E={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,L.isProcessing?U.render(te,!1,!0):queueMicrotask(te)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),ee()||E.schedule(!0)},check(){if(!E.isJS){for(let t in i)if(Ji(e,t)!==i[t]&&!p(t))return E.schedule(!0,!0)}},demote(e){E.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),E.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Li.set(t,E),E}var $i=class extends fr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.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||ii;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=R.now();let u=!0;Ti(e,i,a,o)||(u=!1,(N.instantAnimations||!s)&&l?.(ir(e,n,t)),e[0]=e[e.length-1],Ei(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Mi(n),p=!f&&Yi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=cr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Si(n)}catch{m=new hr(n)}}else m=p?new Zi(n):new hr(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(),ni()),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()}},ea=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ta(this.animations,`duration`)}get iterationDuration(){return ta(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ta(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var na=class extends ea{then(e,t){return this.finished.finally(e).then(()=>{})}},ra=class extends vi{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},ur(this,{})}},ia=new WeakMap,aa=(e,t=``)=>`${e}:${t}`;function oa(e){let t=ia.get(e);return t||(t=new Map,ia.set(e,t)),t}function sa(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 ca=30,la=e=>!isNaN(parseFloat(e)),ua={current:void 0},da=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=R.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=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=la(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(){U.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(){ua.current&&ua.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=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ca)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ca);return ze(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 Y(e,t){return new da(e,t)}function fa(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function pa(e,t){let n=e?.[t]??e?.default??e;return n===e?n:fa(n,e)}var ma={type:`spring`,stiffness:500,damping:25,restSpeed:10},ha=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ga={type:`keyframes`,duration:.8},_a={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},va=(e,{keyframes:t})=>t.length>2?ga:J.has(e)?e.startsWith(`scale`)?ha(t[1]):ma:_a,ya=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ba(e){for(let t in e)if(!ya.has(t))return!0;return!1}var xa=(e,t,n,r={},i,a)=>o=>{let s=pa(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=F(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};ba(s)||Object.assign(u,va(e,u)),u.duration&&=F(u.duration),u.repeatDelay&&=F(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ei(u),u.delay===0&&(d=!0)),(N.instantAnimations||N.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ei(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ir(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new hr(u):new $i(u)},Sa=20;function Ca(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function wa(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Ta(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function Ea({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Ta(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Ta(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?wa(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?wa(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Ue(-180,180,f-d):0;return e=>{let t={x:Ca(e,r.x,u.x,o.x),y:Ca(e,r.y,u.y,o.y)};return i&&(t.rotate=Ue(-180,180,wa(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Da(e={}){let t=Ea(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Sa))return t({x:n,y:r},{x:0,y:0})},animateValues(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e(`x`),s=e(`y`),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e(`pathRotation`),g={delay:i,...pa(r||{},`x`)};delete g.path;let _=Y(0);_.start(xa(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var Oa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ka(e){let t=Oa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Aa(e,t,n=1){`${e}`;let[r,i]=ka(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Me(e)?parseFloat(e):e}return _t(i)?Aa(i,t,n+1):i}function ja(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ma(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...ja(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Na(e,t,n){return Ma(e.getProps(),t,n,e)}var Pa=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Fa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...q]),Ia=e=>Array.isArray(e);function La(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Y(n))}function Ra(e){return Ia(e)?e[e.length-1]||0:e}function za(e,t){let{transitionEnd:n={},transition:r={},...i}=Na(e,t)||{};i={...i,...n};for(let t in i)La(e,t,Ra(i[t]))}var X=e=>!!(e&&e.getVelocity);function Ba(e){return!!(X(e)&&e.add)}function Va(e,t){let n=e.getValue(`willChange`);if(Ba(n))return n.add(t);if(!n&&N.WillChange){let n=new N.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Ha=`framerAppearId`,Ua=`data-framer-appear-id`;function Wa(e){return e.props[Ua]}var Ga=typeof window<`u`;function Ka({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function qa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?fa(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&&Ka(f,t))continue;let o={delay:n,...pa(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){U.update(()=>r.set(i));continue}let p=!1;if(Ga&&window.MotionHandoffAnimation){let n=Wa(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,p=!0)}}Va(e,t);let m=l??e.shouldReduceMotion;r.start(xa(t,r,i,m&&Fa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>U.update(()=>{o&&za(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ja(e,t,n={}){let r=Na(e,t,Pa(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?qa(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(Ja(e,t,{...n,delay:r+(typeof o==`function`?0:o)+sa(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 Ya(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ja(e,t,n))):typeof t==`string`?Ja(e,t,n):Promise.all(qa(e,Na(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Xa={test:e=>e===`auto`,parse:e=>e},Za=e=>t=>t.test(e),Qa=[bt,z,Ft,Pt,Lt,It,Xa],$a=e=>Qa.find(Za(e));function eo(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Pe(e)}var to=new Set([`auto`,`none`,`0`]);function no(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!to.has(t)&&Xt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Dr(n,i))}var ro=class extends ii{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(yt(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(),_t(r))){let i=Aa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Fa.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=$a(r),o=$a(i);if(yt(r)!==yt(i)&&Yr[n])this.needsMeasurement=!0;else if(a!==o){if(Vr(a)&&Vr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Yr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||eo(e[t]))&&n.push(t);n.length&&no(e,n,t)}measure(){let{element:e,name:t}=this;return Yr[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()}},io=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],ao=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...io,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function oo(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&ao.has(t)&&(e[n]=e[n]+`px`)}function so(e){return!!(typeof e==`function`&&di()||!e||typeof e==`string`&&(e in pi||di())||st(e)||Array.isArray(e)&&e.every(so))}var co=Fe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),lo=[];function uo(e){typeof e.test==`function`&&e.read,fo(e),lo.unshift(e)}function fo(e){De(lo,e)}function po(e){return lo.find(t=>t.test(e))}function mo(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?U.update(()=>l.set(c)):(l.start(xa(o,l,c,s&&Fa.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>U.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function ho(e,t,n,r,i){return mo(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=go(i)??e.read(t,r,i),`${r}`}a=Y(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function go(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function _o(e){return Ne(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function vo(e){return Ne(e)&&`ownerSVGElement`in e}var Z={};function yo(e){return Z.current?.add(e),e}function bo(e){let t=Z.current;if(!t)return;let n=!1,r,i=t.add(()=>{n=!0,r?.()});e.then(e=>{e&&(r=()=>e.stop(),n?r():e.finished.then(i))},i)}var xo=e=>Z.current?Z.current.bind(e):e;function So(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Z.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Co(e){let t=(t,n)=>{let r=So(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var wo=class{constructor(e=U.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function To(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new wo(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var Eo={};function Do(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(Eo[i]||(Eo[i]=(Pi[i]||i)+`(`))+Ni(a,Cr[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ni(i,Cr.pathRotation)+`)`),t||`none`}var Oo=new Set([`originX`,`originY`,`originZ`]),ko=(e,t)=>Ni(e.get(t)?.get(),K[t]),Ao=(e,t,n,r)=>{let i,a;if(J.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>q.indexOf(e)-q.indexOf(t)))}t.get(`transform`)||(!_o(e)&&!t.get(`transformBox`)&&Ao(e,t,`transformBox`,new da(`fill-box`)),t.set(`transform`,new da(`none`),()=>{Li.get(e)?.check(),e.style.transform=Do(t)})),a=t.get(`transform`)}else Oo.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new da(``),()=>{let n=ko(t,`originX`)??`50%`,r=ko(t,`originY`)??`50%`,i=ko(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ai(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ni(r.getCurrent(),K[n])};return t.set(n,r,i,a)},jo=e=>_o(e)||vo(e),Mo=(e,t)=>{if(J.has(t))return zr(e,t);let n=getComputedStyle(e),r=ai(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},No=To(Ao,{test:jo,read:Mo}),Po=Co(No);function Fo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Io(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(J.has(e))o=!0;else if(ht(e))i[e]=n;else{let t=Ni(n,K[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ii(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 Lo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ro={offset:`strokeDashoffset`,array:`strokeDasharray`};function zo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Lo:Ro;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Bo=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Vo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Io(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 Bo)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&&zo(d,i,a,o,!1)}function Ho(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Uo=(e,t,n,r,i=n)=>{let a=Ho(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Fo(i));let o=K[n]||K[i],s=a?()=>{e[i]=Ni(r.get(),K[n])}:()=>{let t=Ni(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},Wo=Co(To(Uo));function Go(e,t,n,r){return U.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new da(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Ko=(e,t,n,r)=>n.startsWith(`path`)&&!J.has(n)?Go(e,t,n,r):n.startsWith(`attr`)?Uo(e,t,n,r,Xo(n)):(J.has(n)||Oo.has(n)||ai(n)||n in e.style?Ao:Uo)(e,t,n,r),qo=(e,t)=>J.has(t)?K[t]?.default||0:ai(t)||Bo.includes(t)?Mo(e,t)||e.getAttribute(Fo(t))||0:(t=Xo(t),e.getAttribute(Fo(t))??e.getAttribute(t)??void 0),Jo=To(Ko,{test:vo,read:qo}),Yo=Co(Jo);function Xo(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Zo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $o(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 es(e){return e===void 0||e===1}function ts({scale:e,scaleX:t,scaleY:n}){return!es(e)||!es(t)||!es(n)}function ns(e){return ts(e)||rs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function rs(e){return is(e.x)||is(e.y)}function is(e){return e&&e!==`0%`}function as(e,t,n){return n+t*(e-n)}function os(e,t,n,r,i){return i!==void 0&&(e=as(e,i,r)),as(e,n,r)+t}function ss(e,t=0,n=1,r,i){e.min=os(e.min,t,n,r,i),e.max=os(e.max,t,n,r,i)}function cs(e,{x:t,y:n}){ss(e.x,t.translate,t.scale,t.originPoint),ss(e.y,n.translate,n.scale,n.originPoint)}var ls=.999999999999,us=1.0000000000001;function ds(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&&(fs(e.x,-a.scroll.offset.x),fs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,cs(e,o)),r&&ns(a.latestValues)&&hs(e,a.latestValues,a.layout?.layoutBox))}t.x<us&&t.x>ls&&(t.x=1),t.y<us&&t.y>ls&&(t.y=1)}function fs(e,t){e.min+=t,e.max+=t}function ps(e,t,n,r,i=.5){ss(e,t,n,H(e.min,e.max,i),r)}function ms(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function hs(e,t,n){let r=n??e;ps(e.x,ms(t.x,r.x),t.scaleX,t.scale,t.originX),ps(e.y,ms(t.y,r.y),t.scaleY,t.scale,t.originY)}function gs(e,t){return Zo($o(e.getBoundingClientRect(),t))}function _s(e,t,n){let r=gs(e,n),{scroll:i}=t;return i&&(fs(r.x,i.offset.x),fs(r.y,i.offset.y)),r}var vs={},ys=e=>vo(e)?Jo:No,bs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ro}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return gs(this.current)}getProps(){return vs}};function xs(e,t,n,r){if(Z.current?.track(e),r)return mo(e=>r.getValue(e,null),t,n,r);let i=ys(e);return ho(i,e,t,n,new bs(i,e))}var Ss=e=>ys(e).state(e)?.release();function Cs(e,t){let n=ys(e).state(e);if(!n)return;let r=Li.get(e);r&&(r.demote(),Li.delete(e));let{transformKeys:i}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&i?.length||(e.owner=t,t.addValue(n,e))})}var ws=To((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ne(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Ts,cancel:Es}=Dn(queueMicrotask,!1),Ds=(e=R.now())=>{if(L.isProcessing)return;let t=e-L.timestamp;L.delta=N.useManualTiming?t:Math.max(Math.min(t,40),1),R.set(L.timestamp=e),L.isProcessing=!0;for(let e in On)On[e].process(L);L.isProcessing=!1};function Os(e,t,n){let r=X(e)?e:Y(e);return r.start(xa(``,r,t,n)),r.animation}var ks={};function As(e){for(let t in e)ks[t]=e[t],ht(t)&&(ks[t].isCSSVariable=!0)}var js={value:null,addProjectionMetrics:null};function Ms(e,t){let n=R.now();e=xo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(W(r),e(a-t))};return U.setup(r,!0),yo(()=>W(r))}function Ns(e,t){return Ms(e,F(t))}function Ps(e){return vo(e)&&e.tagName===`svg`}function Fs(e){return X(e)?e.get():e}var Is=e=>typeof e==`number`?e:parseFloat(e),Ls=io.length,Rs=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],zs=Rs.length,Bs=e=>typeof e==`number`||z.test(e);function Vs(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,Us(r)),e.opacityExit=H(t.opacity??1,0,Ws(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ls;i++){let a=io[i],o=Hs(t,a),s=Hs(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Bs(o)===Bs(s)?(e[a]=Math.max(H(Is(o),Is(s),r),0),(Ft.test(s)||Ft.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<zs;i++){let a=Rs[i];(t[a]||n[a])&&(e[a]=H(t[a]||0,n[a]||0,r))}}function Hs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Us=Gs(0,.5,$e),Ws=Gs(.5,.95,P);function Gs(e,t,n){return r=>r<e?0:r>t?1:n(Le(e,t,r))}function Ks(e,t){e.min=t.min,e.max=t.max}function qs(e,t){Ks(e.x,t.x),Ks(e.y,t.y)}function Js(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ys=.9999,Xs=1.0001,Zs=-.01,Qs=.01;function Q(e){return e.max-e.min}function $s(e,t,n){return Math.abs(e-t)<=n}function ec(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ys&&e.scale<=Xs||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zs&&e.translate<=Qs||isNaN(e.translate))&&(e.translate=0)}function tc(e,t,n,r){ec(e.x,t.x,n.x,r?r.originX:void 0),ec(e.y,t.y,n.y,r?r.originY:void 0)}function nc(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function rc(e,t,n,r){nc(e.x,t.x,n.x,r?.x),nc(e.y,t.y,n.y,r?.y)}function ic(e,t,n,r=0){let i=r?H(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function ac(e,t,n,r){ic(e.x,t.x,n.x,r?.x),ic(e.y,t.y,n.y,r?.y)}function oc(e,t,n,r,i){return e-=t,e=as(e,1/n,r),i!==void 0&&(e=as(e,1/i,r)),e}function sc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=oc(e.min,t,n,s,i),e.max=oc(e.max,t,n,s,i)}function cc(e,t,[n,r,i],a,o){sc(e,t[n],t[r],t[i],t.scale,a,o)}var lc=[`x`,`scaleX`,`originX`],uc=[`y`,`scaleY`,`originY`];function dc(e,t,n,r){cc(e.x,t,lc,n?n.x:void 0,r?r.x:void 0),cc(e.y,t,uc,n?n.y:void 0,r?r.y:void 0)}var fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),pc=()=>({x:fc(),y:fc()}),mc=()=>({min:0,max:0}),$=()=>({x:mc(),y:mc()});function hc(e){return e.translate===0&&e.scale===1}function gc(e){return hc(e.x)&&hc(e.y)}function _c(e,t){return e.min===t.min&&e.max===t.max}function vc(e,t){return _c(e.x,t.x)&&_c(e.y,t.y)}function yc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bc(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function xc(e){return Q(e.x)/Q(e.y)}function Sc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Cc=class{constructor(){this.members=[]}add(e){Ee(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||(De(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(De(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)}};function wc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Tc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(z.test(e))e=parseFloat(e);else return e}return`${wc(e,t.target.x)}% ${wc(e,t.target.y)}%`}},Ec={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.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=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Dc={borderRadius:Object.assign({},Tc,{applyTo:io.slice()}),borderTopLeftRadius:Tc,borderTopRightRadius:Tc,borderBottomLeftRadius:Tc,borderBottomRightRadius:Tc,boxShadow:Ec};function Oc(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`}function kc(e){return[e(`x`),e(`y`)]}var Ac=(e,t)=>e.depth-t.depth,jc=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ee(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ac),this.isDirty=!1,this.children.forEach(e)}},Mc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Pc=[``,`X`,`Y`,`Z`],Fc=1e3,Ic=0;function Lc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Rc=({instance:e})=>e&&Li.get(e)?.demote();function zc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Wa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,U,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zc(r)}function Bc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(ks,{...Dc,...ks}),class{constructor(e={},n=t?.()){this.id=Ic++,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,js.value&&(Nc.nodes=Nc.calculatedTargetDeltas=Nc.calculatedProjections=0),this.nodes.forEach(Uc),this.nodes.forEach(el),this.nodes.forEach(tl),this.nodes.forEach(Wc),js.addProjectionMetrics&&js.addProjectionMetrics(Nc)},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 jc)}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=vo(t)&&!Ps(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;U.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ms(i,250),Mc.hasAnimatedSinceResize&&(Mc.hasAnimatedSinceResize=!1,this.nodes.forEach($c)))})}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()||sl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!bc(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={...pa(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||$c(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,W(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(nl),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&&zc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Rc(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Rc(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(qc),this.nodes.forEach(Kc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Jc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xc),this.nodes.forEach(Zc),this.nodes.forEach(Qc),this.nodes.forEach(Vc),this.nodes.forEach(Hc)):this.nodes.forEach(Jc),this.clearAllSnapshots();let e=R.now();L.delta=M(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,On.update.process(L),On.preRender.process(L),On.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ts.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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||=$(),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&&Rc(this);let t=this.projectionDelta&&!gc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ns(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)),dl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pl))){let{scroll:e}=this.root;e&&(fs(t.x,e.offset.x),fs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(qs(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&&qs(t,e),fs(t.x,i.offset.x),fs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r){let i=n||$();qs(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(fs(i.x,-n.scroll.offset.x),fs(i.y,-n.scroll.offset.y)),ns(n.latestValues)&&hs(i,n.latestValues,n.layout?.layoutBox)}return!r&&ns(this.latestValues)&&hs(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=$();qs(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ns(n.latestValues))continue;let r;n.instance&&(ts(n.latestValues)&&n.updateSnapshot(),r=$(),qs(r,n.measurePageBox())),dc(t,n.latestValues,n.snapshot?.layoutBox,r)}return ns(this.latestValues)&&dc(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!==L.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=L.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=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):qs(this.target,this.layout.layoutBox),cs(this.target,this.targetDelta)):qs(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),js.value&&Nc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ts(this.parent.latestValues)||rs(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=$(),this.relativeTargetOrigin=$(),ac(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),qs(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===L.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;qs(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ds(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=$());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Js(this.prevProjectionDelta.x,this.projectionDelta.x),Js(this.prevProjectionDelta.y,this.projectionDelta.y)),tc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Sc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Sc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),js.value&&Nc.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=pc(),this.projectionDelta=pc(),this.projectionDeltaWithTransform=pc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=pc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),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(ol));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=H(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=H(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rl(o.x,e.x,n),rl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),al(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&vc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),qs(f,this.relativeTarget)),c&&(this.animationValues=a,Vs(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&&=(W(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{Mc.hasAnimatedSinceResize=!0,this.motionValue||=Y(0),this.motionValue.jump(0,!1),this.currentAnimation=Os(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()}}),dr(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(Fc),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&&fl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||$();let t=Q(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Q(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}qs(t,i),hs(t,r),tc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cc),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&&Lc(`z`,e,r,this.animationValues);for(let t=0;t<Pc.length;t++)Lc(`rotate${Pc[t]}`,e,r,this.animationValues),Lc(`skew${Pc[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=Fs(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=Fs(t?.pointerEvents)||``),this.hasProjected&&!ns(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Oc(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 ks){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ks[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?Fs(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(Kc),this.root.sharedNodes.clear()}}}function Vc(e){e.updateLayout(),Yc(e)}function Hc(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`)kc(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ks(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else fl(i,t.layoutBox,n)&&kc(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(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=pc();tc(o,n,t.layoutBox);let s=pc();a?tc(s,e.applyTransform(r,!0),t.measuredBox):tc(s,n,t.layoutBox);let c=!gc(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=$();ac(s,t.layoutBox,i.layoutBox,o);let c=$();ac(c,n,a.layoutBox,o),bc(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 Uc(e){js.value&&Nc.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 Wc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gc(e){e.clearSnapshot()}function Kc(e){e.clearMeasurements()}function qc(e){e.isLayoutDirty=!0,e.updateLayout()}function Jc(e){e.isLayoutDirty=!1}function Yc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;kc(e=>fs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Xc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Zc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Qc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function $c(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function el(e){e.resolveTargetDelta()}function tl(e){e.calcProjection()}function nl(e){e.resetSkewAndRotation()}function rl(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function il(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function al(e,t,n,r){il(e.x,t.x,n.x,r),il(e.y,t.y,n.y,r)}function ol(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var sl={duration:.45,ease:[.4,0,.1,1]},cl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ll=cl(`applewebkit/`)&&!cl(`chrome/`)?Math.round:P;function ul(e){e.min=ll(e.min),e.max=ll(e.max)}function dl(e){ul(e.x),ul(e.y)}function fl(e,t,n){return e===`position`||e===`preserve-aspect`&&!$s(xc(t),xc(n),.2)}function pl(e){return e!==e.root&&e.scroll?.wasRoot}function ml(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var hl=Bc({attachResizeListener:(e,t)=>ml(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),gl={current:void 0},_l=Bc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gl.current){let e=new hl({});e.mount(window),e.setOptions({layoutScroll:!0}),gl.current=e}return gl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),vl=new WeakMap;function yl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function bl(e){return typeof e==`string`||Array.isArray(e)}var xl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Sl=[`initial`].concat(xl);function Cl(e){if(yl(e.animate))return!0;for(let t=0;t<Sl.length;t++)if(bl(e[Sl[t]]))return!0;return!1}function wl(e){return!!(Cl(e)||e.variants)}function Tl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(X(i))e.addValue(r,i);else if(X(a))e.addValue(r,Y(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,Y(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var El={current:null},Dl={current:!1},Ol=typeof window<`u`;function kl(){if(Dl.current=!0,Ol){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>El.current=e.matches;e.addEventListener(`change`,t),t()}else El.current=!1}}var Al=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],jl={};function Ml(e){jl=e}function Nl(){return jl}var Pl=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=ii,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=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,U.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=Cl(t),this.isVariantNode=wl(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&&X(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,vl.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:(Dl.current||kl(),this.shouldReduceMotion=El.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(),W(this.notifyUpdate),W(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&&Di.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new vi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:F(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=J.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&U.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Li.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 jl){let t=jl[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):$()}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)&&Li.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Al.length;t++){let n=Al[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=Tl(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=Y(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`&&(Me(n)||Pe(n))?n=parseFloat(n):typeof n!=`number`&&!V.test(n)&&V.test(t)&&(n=Dr(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(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(){Ts.render(this.render)}},Fl=class extends Pl{constructor(){super(...arguments),this.KeyframeResolver=ro}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;X(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Il(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])}function Ll(e,{layout:t,layoutId:n}){return J.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ks[e]||e===`opacity`)}function Rl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(X(r[t])||i&&X(i[t])||Ll(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function zl(e){return window.getComputedStyle(e)}var Bl=class extends Fl{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Il}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?Lr(t):zr(e,t);{let n=zl(e),r=(ht(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return gs(e,t)}build(e,t,n){Io(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Rl(e,t,n)}},Vl=`[data-layout],[data-layout-id]`,Hl=new WeakMap,Ul;function Wl(e){let t=[];return e instanceof HTMLElement&&e.matches(Vl)&&t.push(e),e.querySelectorAll(Vl).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Gl(){if(L.isProcessing)return;let e=R.now();L.delta=M(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,On.update.process(L),On.preRender.process(L),On.render.process(L),L.isProcessing=!1}function Kl(e){let t=e.parentElement;for(;t;){let e=Hl.get(t);if(e&&e.instance)return e;t=t.parentElement}}function ql(){return new Bl({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Jl(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function Yl(e,t){let n=Hl.get(e);if(n)n.setOptions(Jl(e,t));else{let r=vl.get(e);r||(r=ql(),Cs(e,r)),e.style.transform&&!ns(r.latestValues)&&(e.style.transform=``),n=new _l(r.latestValues,Kl(e)),r.projection=n,n.setOptions({...Jl(e,t),visualElement:r}),n.mount(e),Hl.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Xl(e){let t=Hl.get(e)||vl.get(e)?.projection;if(t?.instance)return[t,()=>{}];let n=Yl(e);return[n,()=>Hl.get(e)===n&&Ql(e,n)]}function Zl(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Ql(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Hl.delete(e)}function $l(){let e=Ul;Ul=void 0,Gl();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Zl(t.keys())){let r=t.get(e),i=Yl(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),Ts.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var eu=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Ul||(Ul=[],queueMicrotask($l)),Ul.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Wl(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of Wl(this.scope)){if(this.tracked.has(t))continue;let n=Yl(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Ql(n,t)}}),t.relegate())return;n.remove()}Ql(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new ea([...e]))}};function tu(e,t,n){return typeof e==`function`?{scope:Z.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:So(e)[0]??document,updateDom:t,defaultOptions:n}}var nu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function ru(e){return{point:{x:e.pageX,y:e.pageY}}}var iu=e=>t=>nu(t)&&e(t,ru(t));function au(e,t,n,r){return ml(e,t,iu(n),r)}var ou=new WeakMap,su,cu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:vo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],lu=cu(`inline`,`width`,`offsetWidth`),uu=cu(`block`,`height`,`offsetHeight`);function du({target:e,borderBoxSize:t}){ou.get(e)?.forEach(n=>{n(e,{get width(){return lu(e,t)},get height(){return uu(e,t)}})})}function fu(e){e.forEach(du)}function pu(){typeof ResizeObserver<`u`&&(su=new ResizeObserver(fu))}function mu(e,t){su||pu();let n=So(e);return n.forEach(e=>{let n=ou.get(e);n||(n=new Set,ou.set(e,n)),n.add(t),su?.observe(e)}),()=>{n.forEach(e=>{let n=ou.get(e);n?.delete(t),n?.size||su?.unobserve(e)})}}var hu=new Set,gu;function _u(){gu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};hu.forEach(t=>t(e))},window.addEventListener(`resize`,gu)}function vu(e){return hu.add(e),gu||_u(),()=>{hu.delete(e),!hu.size&&typeof gu==`function`&&(window.removeEventListener(`resize`,gu),gu=void 0)}}function yu(e,t){return yo(typeof e==`function`?vu(e):mu(e,t))}var bu=(e,t)=>Math.abs(e-t);function xu(e,t){let n=bu(e.x,t.x),r=bu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Su=new Set([`auto`,`scroll`]),Cu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,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.removeScrollListeners=null,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=wu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Eu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:R.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.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=wu(t,this.transformPagePoint),this.hasPendingMove=!0,U.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=Eu(e.type===`pointercancel`?this.lastMoveEventInfo:wu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!nu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=wu(ru(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=L;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Eu(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ie(au(this.contextWindow,`pointermove`,this.handlePointerMove,d),au(this.contextWindow,`pointerup`,this.handlePointerUp,d),au(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Su.has(e.overflowX)||Su.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}),window.addEventListener(`scroll`,this.onWindowScroll),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),U.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),W(this.updatePoint)}};function wu(e,t){return t?{point:t(e.point)}:e}function Tu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Eu({point:e},t){return{point:e,delta:Tu(e,Ou(t)),offset:Tu(e,Du(t)),velocity:ku(t,.1)}}function Du(e){return e[0]}function Ou(e){return e[e.length-1]}function ku(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ou(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>F(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>F(t)*2&&(r=e[1]);let a=I(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}var Au=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ju(e){return Au.has(e.tagName)||e.isContentEditable===!0}var Mu=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Nu(e){return Mu.has(e.tagName)||e.isContentEditable===!0}var Pu={x:!1,y:!1};function Fu(){return Pu.x||Pu.y}function Iu(e){return e===`x`||e===`y`?Pu[e]?null:(Pu[e]=!0,()=>{Pu[e]=!1}):Pu.x||Pu.y?null:(Pu.x=Pu.y=!0,()=>{Pu.x=Pu.y=!1})}function Lu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Ru(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 zu(e,{top:t,left:n,bottom:r,right:i}){return{x:Ru(e.x,n,i),y:Ru(e.y,t,r)}}function Bu(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 Vu(e,t){return{x:Bu(e.x,t.x),y:Bu(e.y,t.y)}}function Hu(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Le(t.min,t.max-r,e.min):r>i&&(n=Le(e.min,e.max-i,t.min)),M(0,1,n)}function Uu(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}var Wu=.35;function Gu(e=Wu){return e===!1?e=0:e===!0&&(e=Wu),{x:Ku(e,`left`,`right`),y:Ku(e,`top`,`bottom`)}}function Ku(e,t,n){return{min:qu(e,t),max:qu(e,n)}}function qu(e,t){return typeof e==`number`?e:e[t]||0}var Ju=new WeakMap,Yu=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Iu(n),!this.openDragLock))return;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),kc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(_t(t)&&(t=Aa(t,this.visualElement.current)||0),z.test(t))t=parseFloat(t);else if(Ft.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&U.update(()=>i(e,t),!1,!0),Va(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=td(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&U.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Cu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&U.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ed(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Lu(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;Xu(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?zu(n.layoutBox,e):!1,this.elastic=Gu(t),r!==this.constraints&&!Xu(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&kc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Uu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Xu(e))return!1;let n=Zu(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=_s(n,r.root,this.visualElement.getTransformPagePoint()),a=Vu(r.layout.layoutBox,i);if(t){let e=t(Qo(a));this.hasMutatedConstraints=!!e,e&&(a=Zo(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=kc(s=>{if(!ed(s,t||n,this.currentDirection))return;let l=c&&c[s]||{};(o===!0||o===s)&&(l={min:0,max:0});let u=i?200:1e6,d=i?40:1e7,f={type:`inertia`,velocity:r?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Va(this.visualElement,e),n.start(xa(e,n,0,t,this.visualElement,!1))}stopAnimation(){kc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[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();kc(e=>{if(!ed(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-H(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Xu(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};kc(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Hu({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),kc(t=>{let n=this.getAxisMotionValue(t);if(!ed(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(H(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ju.set(this.visualElement,this);let e=this.visualElement.current,t=au(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Nu(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Xu(t)&&Zu(t);r&&(this.constraints=this.resolveRefConstraints(),n||=$u(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.read(r);let o=ml(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(kc(t=>{if(!ed(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);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.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Wu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Xu(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Zu=e=>`current`in e?e.current:e;function Qu(e){let t=!0;return()=>{t?t=!1:e()}}function $u(e,t,n){let r=yu(e,Qu(n)),i=yu(t,Qu(n));return()=>{r(),i()}}function ed(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function td(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function nd({dragConstraints:e,onMeasureDragConstraints:t}){return Xu(e)&&!!t}var rd=({axis:e,constraints:t,elastic:n,momentum:r,transition:i,snapToOrigin:a,directionLock:o,propagation:s,onStart:c,onMove:l,onEnd:u,onDirectionLock:d,onTransitionEnd:f,onMeasureConstraints:p})=>({drag:e||!0,dragConstraints:t,dragElastic:n,dragMomentum:r,dragTransition:i,dragSnapToOrigin:a,dragDirectionLock:o,dragPropagation:s,onDragStart:c,onDrag:l,onDragEnd:u,onDirectionLock:d,onDragTransitionEnd:f,onMeasureDragConstraints:p}),id=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function ad(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=id.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return id.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{id.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function od(e,t={}){let n=rd(t),r=Z.current;if(r)for(let e in n){let t=n[e];typeof t==`function`&&(n[e]=r.bind(t))}let i=So(e).map(e=>{r?.track(e);let[i,a]=Xl(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Yu(i.options.visualElement,()=>n),s=o.addListeners(),c=ad(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return yo(()=>i.forEach(e=>e()))}function sd(e,t){let n=So(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},yo(()=>r.abort())]}function cd(e){return!(e.pointerType===`touch`||Fu())}function ld(e,t,n={}){t=xo(t);let[r,i,a]=sd(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(!cd(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 ud=(e,t)=>t?e===t||ud(e,t.parentElement):!1,dd=new WeakSet;function fd(e){return t=>{t.key===`Enter`&&e(t)}}function pd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var md=(e,t)=>{let n=!1,r=fd(()=>{dd.has(e)||(n=!0,pd(e,`down`))}),i=fd(()=>{n&&(n=!1,pd(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&pd(e,`cancel`)},{...t,once:!0})};function hd(e){return nu(e)&&!Fu()}var gd=new WeakSet;function _d(e,t,n={}){t=xo(t);let[r,i,a]=sd(e,n),o=e=>{let r=e.currentTarget;if(!hd(e)||gd.has(e))return;dd.add(r),n.stopPropagation&&gd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),dd.has(r)&&dd.delete(r),hd(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ud(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),_o(e)&&(e.addEventListener(`focus`,()=>md(e,i),i),!ju(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function vd(e,t){let n=window.getComputedStyle(e);return ai(t)?n.getPropertyValue(t):n[t]}var yd={reducedMotion:`(prefers-reduced-motion: reduce)`,motion:`(prefers-reduced-motion: no-preference)`,dark:`(prefers-color-scheme: dark)`,light:`(prefers-color-scheme: light)`,hover:`(hover: hover) and (pointer: fine)`,touch:`(pointer: coarse)`,portrait:`(orientation: portrait)`,landscape:`(orientation: landscape)`};function bd(e){return e.includes(`(`)?e:e.replace(/([<>!]=?)\s+/g,`$1`).trim().split(/\s+/).map(e=>{let t=e[0]===`!`;t&&(e=e.slice(1));let n=/^([<>]=?)([\d.]+)([a-z]*)$/.exec(e),r=n?`(width ${n[1]} ${n[2]}${n[3]||`px`})`:yd[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function xd(...e){let t=typeof e[0]==`function`?void 0:e.shift(),[n,r={}]=e,{transition:i,matchMedia:a}=r,o=[],s=new Map,c=[],l=!1,u={root:So(t)[0],transition:i,add(e){return c.push(e),()=>De(c,e)},bind:e=>((...t)=>{let n=g.run(()=>e(...t));return typeof n==`function`?u.bind(n):n}),track(e){s.has(e)||s.set(e,e.getAttribute(`style`))}},d=e=>{let t=c;c=[];for(let e=t.length-1;e>=0;e--)t[e]();e&&s.forEach((e,t)=>{Ss(t),e===null?t.removeAttribute(`style`):t.setAttribute(`style`,e)}),s.clear()},f=()=>{g.state=`active`;let e=!o.length;g.media={};for(let[t,n]of o)e=(g.media[t]=n.matches)||e;if(e&&n){let e=g.run(()=>n(g));typeof e==`function`&&u.add(e)}},p=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,o.length&&g.refresh()}))},m=e=>{g.state=e?`cancelled`:`stopped`;for(let[,e]of o)e.removeEventListener(`change`,p);o.length=0,d(e)},h=(e,t)=>{let n=Z.current;Z.current=e;try{return t()}finally{Z.current=n}},g={state:`active`,media:{},run:e=>h(u,e),ignore:e=>h(void 0,e),bind:u.bind,stop:()=>m(),cancel:()=>m(!0),refresh(){d(!0),f()}};if(a&&typeof window<`u`){let e=typeof a==`string`?{matches:a}:a;for(let t in e){let n=window.matchMedia(bd(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return yo(g.cancel),f(),g}function Sd(){js.value=null,js.addProjectionMetrics=null}function Cd(){if(js.value)throw Sd(),Error(`Stats are already being measured`);let e=js;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function wd(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Td(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=ut(r)(l/u)*u),t+l}}function Ed(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Jn(i,a,o);return t?s(r):s}var Dd=new Set,Od=({timestamp:e})=>{Dd.forEach(t=>t.tick(e))},kd=class extends fr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(Dd.size||U.update(Od,!0),Dd.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=cr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return nr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():R.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Dd.delete(this),Dd.size||W(Od))}};function Ad(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=Is(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=Is(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new kd({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),X(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(jd(t,o),!1)):e.set(jd(t,o))},a=t.on(`change`,i),s=t.get();Is(s)-Is(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function jd(e,t){return t?e+t:e}function Md(e,t){let n=Y(X(e)?e.get():e);return Nd(n,e,t),n}function Nd(e,t,n={}){let r={type:`spring`,...n};return or(r),r.type=r.type||$n,Ad(e,t,r)}function Pd(e,t,n){let r=()=>t.set(n()),i=()=>U.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),W(r)})}function Fd(e){let t=[];ua.current=t;let n=e();ua.current=void 0;let r=Y(n);return Pd(t,r,e),r}function Id(e,t,n,r){let i=Ed(t,n,r);return Fd(()=>i(e.get()))}function Ld(e,t){let n=Y(X(e)?e.get():e);return Rd(n,e,t),n}function Rd(e,t,n){return Ad(e,t,{...n,type:Gn})}var zd=[...Qa,B,V],Bd=e=>zd.find(Za(e)),Vd=0,Hd=()=>`motion-view-${Vd++}`,Ud=e=>e.startsWith(`motion-view-`);function Wd(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Gd(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Kd(e,t,n,r,i,a=[],o,s=[],c){let l=So(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??Hd();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),Wd(e,i,a),Gd(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!Ud(d)?f=d:(f=Hd(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),Wd(e,i,a),Gd(e,f,o,s,c),f})}function qd(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Jd(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Yd={},Xd=null,Zd={set:(e,t)=>{Yd[e]=t},commit:()=>{Xd||(Xd=document.createElement(`style`),Xd.id=`motion-view`);let e=``;for(let t in Yd){let n=Yd[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
+ `}Xd.textContent=e,document.head.appendChild(Xd),Yd={}},remove:()=>{Xd&&Xd.parentElement&&Xd.parentElement.removeChild(Xd)}};function Qd(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function $d(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ef(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var tf=[`layout`,`enter`,`exit`,`new`,`old`],nf=e=>e.split(` `).every(e=>parseFloat(e)===0),rf={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},af={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},of=.2;function sf(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ea([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,So(n)),b=Kd(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=Kd(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Kd(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=lf(pa(c,n),pa(cf(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=F(r.duration);let{delay:i=0,duration:a,ease:o}=_i(r);return{delay:F(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of io)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),ee=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??te(e))&&h.add(e)},te=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>of},E=()=>{ef(`root`,n)||Zd.set(`:root`,{"view-transition-name":`none`}),Zd.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{Zd.set(`::view-transition-group(${e})`,{overflow:`clip`}),Zd.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{Zd.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),Zd.commit()},ne=()=>{qd(u,d,f),Zd.remove()},re=async()=>{await t(),b(`new`),T(`new`),ee(),E()},ie;try{b(`old`),T(`old`),E(),ie=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return ie.finished.finally(ne),new Promise((e,t)=>{ie.ready.then(()=>{let t=$d(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of tf){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=Jd(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){He(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=lf(pa(c,m),pa(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?af[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=F(f.duration),f.delay&&=F(f.delay),n.push(new vi({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=Qd(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new ra(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:mi(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=F(r.duration)),r=_i(r),d={delay:F(r.delay??0),duration:u&&i!==void 0?F(i):r.duration,easing:u?`linear`:mi(r.ease,r.duration)}}t.updateTiming(d),n.push(new ra(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of io){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;nf(s)&&nf(c)||n.push(new vi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ea(n))}).catch(()=>ie.updateCallbackDone.then(()=>e(new ea([])),t))})}function cf(e,t){for(let n of rf[t]??[]){let t=e?.[n]?.options;if(t)return t}}function lf(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var uf=[],df=null;function ff(){df=null;let[e]=uf;e&&pf(e)}function pf(e){De(uf,e),df=e,sf(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(ff)}function mf(){for(let e=uf.length-1;e>=0;e--){let t=uf[e],{interrupt:n}=t.options;if(n===`immediate`){let n=uf.slice(0,e+1).map(e=>e.update),r=uf.slice(e+1);t.update=()=>{n.forEach(e=>e())},uf=[t,...r];break}}df&&uf[0]?.options.interrupt!==`immediate`||ff()}function hf(e){uf.push(e),Ts.render(mf)}var gf=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=P,this.notifyReject=P,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(P),hf(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function _f(e,t={}){let n=new gf(e,t);return bo(n),n}var vf=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function yf(e,t){return e in t}var bf=class extends Pl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(yf(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return $()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},xf=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`]),Sf=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Cf(e,t,n,r){Il(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(xf.has(n)?n:Fo(n),t.attrs[n])}function wf(e,t,n){let r=Rl(e,t,n);for(let n in e)if(n!==`children`&&(X(e[n])||X(t[n]))){let t=q.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Tf=class extends Fl{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return J.has(t)?super.getBaseTargetFromProps(e,t)??Lr(t):e[t]}getDefaultValue(e){return J.has(e)?this.latestValues[e]??Lr(e):void 0}readValueFromInstance(e,t){if(J.has(t)){let e=Tr(t);return e&&e.default||0}if(Bo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=xf.has(t)?t:Fo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return wf(e,t,n)}build(e,t,n){Vo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Cf(e,t,n,r)}mount(e){this.isSVGTag=Sf(e.tagName),super.mount(e)}};function Ef(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 Df=[...xl].reverse();function Of(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ya(e,t,n))),n=Af(),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(Df.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?bl(g)||g===!1?g:void 0:h,v=bl(_),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||yl(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=kf(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}=Na(e,n,Pa(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:ee}=i;for(let t in{...ee,...T}){if(t in f)continue;let n=T[t],r=ee[t],a=Array.isArray(n)&&Array.isArray(r)?!Ef(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=Na(s,n)?.transition?.delayChildren;r.delay=sa(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Na(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&&!X(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=Af(),i=!0}}}function kf(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ef(t,e):!1}function Af(){let e={};for(let t of xl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var jf=Sl.length;function Mf(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Mf(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<jf;n++){let r=Sl[n],i=e.props[r];(bl(i)||i===!1)&&(t[r]=i)}return t}var Nf=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Pf(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Nf);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}function Ff(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=tu(e,t,n),o=new eu(r,i,{...Z.current?.transition,...a});return bo(o),o}var If=U,Lf=wn.reduce((e,t)=>(e[t]=e=>W(e),e),{}),Rf=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function zf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Bf(...e){return t=>{let n=!1,r=e.map(e=>{let r=zf(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():zf(e[t],null)}}}}function Vf(...e){return ce(Bf(...e),e)}var Hf=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(_o(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=_o(e)&&e.offsetWidth||0,r=_o(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Uf({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:s}){let c=fe(),l=k(null),u=k({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=D(Rf),f=Vf(l,o===!1?void 0:e.props?.ref??e?.ref),p=()=>l.current||s?.current?.current;return me(()=>{let{width:e,height:i,top:s,left:l,right:f,bottom:m,direction:h}=u.current,g=p();if(t||o===!1||!g||!e||!i)return;let _=h===`rtl`,v=n===`left`?_?`right: ${f}`:`left: ${l}`:_?`left: ${l}`:`right: ${f}`,y=r===`bottom`?`bottom: ${m}`:`top: ${s}`;g.dataset.motionPopId=c;let b=g.ownerDocument,x=b.createElement(`style`);d&&(x.nonce=d);let S=a??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
3
+ [data-motion-pop-id="${c}"] {
4
4
  position: absolute !important;
5
5
  width: ${e}px !important;
6
6
  height: ${i}px !important;
7
- ${_}px !important;
8
7
  ${v}px !important;
8
+ ${y}px !important;
9
9
  }
10
- `),()=>{c.current?.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),i(Wd,{isPresent:t,childRef:c,sizeRef:l,pop:o,children:o===!1?e:C(e,{ref:d})})}var Kd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=A(qd),f=fe(),p=k(n),m=k(r);Te(()=>{p.current=n,m.current=r});let h=!0,g=ge(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return o&&h&&(g={...g}),ge(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),O(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Gd,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,children:e}),i(Ee.Provider,{value:g,children:e})};function qd(){return new Map}function Jd(e=!0){let t=D(Ee);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=fe();O(()=>{if(e)return i(a)},[e]);let o=ce(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Yd(){return Xd(D(Ee))}function Xd(e){return e===null||e.isPresent}var Zd=e=>e.key||``;function Qd(e){let t=[];return c.forEach(e,e=>{te(e)&&t.push(e)}),t}var $d=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Jd(c),m=ge(()=>Qd(e),[e]),h=c&&!f?[]:m.map(Zd),g=k(!0),_=A(()=>new Map),v=k(new Set),[y,b]=ye(m),[x,S]=ye(m);Te(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]),Te(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Zd(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let C=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(Zd(n));r===-1?(e.splice(t++,0,n),C.push(n)):t=r+C.length+1}return C.every(e=>_.get(Zd(e)))?e=m:s===`wait`&&(e=C),S(Qd(e)),b(m),null}let{forceRender:w}=D(Ce);return i(r,{children:x.map(e=>{let r=Zd(e),y=c&&!f?!1:m===x||h.includes(r);return i(Kd,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(w?.(),b([]),c&&p?.(),a&&a())},anchorX:l,anchorY:u,children:e},r)})})},ef=w(null);function tf(){let e=k(!1);return Te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function nf(){let e=tf(),[t,n]=ye(0),r=ce(()=>{e.current&&n(t+1)},[t]);return[ce(()=>H.postRender(r),[r]),t]}var rf=e=>e===!0,af=e=>rf(e===!0)||e===`id`,of=({children:e,id:t,inherit:n=!0})=>{let r=D(Ce),a=D(ef),[o,s]=nf(),c=k(null),l=r.id||a;c.current===null&&(af(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:rf(n)&&r.group||bd()});let u=ge(()=>({...c.current,forceRender:o}),[s]);return i(Ce.Provider,{value:u,children:e})},sf=w({strict:!1}),cf={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},lf=!1;function uf(){if(lf)return;let e={};for(let t in cf)e[t]={isEnabled:e=>cf[t].some(t=>!!e[t])};ml(e),lf=!0}function df(){return uf(),hl()}function ff(e){let t=df();for(let n in e)t[n]={...t[n],...e[n]};ml(t)}function pf({children:e,features:t,strict:n=!1}){let[,r]=ye(!mf(t)),a=k(void 0);if(!mf(t)){let{renderer:e,...n}=t;a.current=e,ff(n)}return O(()=>{mf(t)&&t().then(({renderer:e,...t})=>{ff(t),a.current=e,r(!0)})},[]),i(sf.Provider,{value:{renderer:a.current,strict:n},children:e})}function mf(e){return typeof e==`function`}function hf({children:e,...t}){let n=D(Bd);t={...n,...t},t.transition=ua(t.transition,n.transition),t.isStatic=A(()=>t.isStatic);let r=ge(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Bd.Provider,{value:r,children:e})}var gf=w({});function _f(e,t){if(al(e)){let{initial:t,animate:n}=e;return{initial:t===!1||nl(t)?t:void 0,animate:nl(n)?n:void 0}}return e.inherit===!1?{}:t}function vf(e){let{initial:t,animate:n}=_f(e,D(gf));return ge(()=>({initial:t,animate:n}),[yf(t),yf(n)])}function yf(e){return Array.isArray(e)?e.join(` `):e}var bf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xf(e,t,n){for(let r in t)!Y(t[r])&&!Sl(r,n)&&(e[r]=t[r])}function Sf({transformTemplate:e},t){return ge(()=>{let n=bf();return jo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Cf(e,t){let n=e.style||{},r={};return xf(r,n,e),Object.assign(r,Sf(e,t)),r}function wf(e,t){let n={},r=Cf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Tf=()=>({...bf(),attrs:{}});function Ef(e,t,n,r){let i=ge(()=>{let n=Tf();return Io(n,t,kl(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};xf(t,e.style,e),i.style={...t,...i.style}}return i}var Df=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Of(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Df.has(e)}function kf(e,t){return e.startsWith(`on`)?!Of(e):t?.(e)??!Of(e)}function Af(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(Y(e[a])||(kf(a,r)||n===!0&&Of(a)||!t&&!Of(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var jf=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Mf(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(jf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Nf(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Mf(e)?Ef:wf)(t,r,i,e),l=Af(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ge(()=>Y(f)?f.get():f,[f]);return T(e,{...d,children:p})}function Pf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ff(n,r,i,e),renderState:t()}}function Ff(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Mu(a[e]);let{initial:o,animate:s}=e,c=al(e),l=ol(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!tl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Aa(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var If=e=>(t,n)=>{let r=D(gf),i=D(Ee),a=()=>Pf(e,t,r,i);return n?a():A(a)},Lf=If({scrapeMotionValuesFromProps:Cl,createRenderState:bf}),Rf=If({scrapeMotionValuesFromProps:jl,createRenderState:Tf}),zf=Symbol.for(`motionComponentSymbol`);function Bf(e,t,n){let r=k(n);me(()=>{r.current=n});let i=k(null);return ce(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Vf=w({});function Hf(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Uf(e,t,n,r,i,a){let{visualElement:o}=D(gf),s=D(sf),c=D(Ee),l=D(Bd),u=l.reducedMotion,d=l.skipAnimations,f=k(null),p=k(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=D(Vf);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Wf(f.current,n,i,h);let g=k(!1);me(()=>{m&&g.current&&m.update(n,c)});let _=n[Ha],v=k(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Te(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Te(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),O(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Wf(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Gf(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Hf(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Gf(e){if(e)return e.options.allowProjection===!1?Gf(e.parent):e.projection}function Kf(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&ff(r);let s=n?n===`svg`:Mf(e),c=s?Rf:Lf;function l(n,l){let u,d={...D(Bd),...n,layoutId:qf(n)},{isStatic:f,isValidProp:p}=d,m=vf(n),h=c(n,f);if(!f&&typeof window<`u`){Jf(d,r);let t=Yf(d);u=t.MeasureLayout,m.visualElement=Uf(e,h,d,o,t.ProjectionNode,s)}return a(gf.Provider,{value:m,children:[u&&m.visualElement?i(u,{visualElement:m.visualElement,...d}):null,Nf(e,n,Bf(h,m.visualElement,l),h,f,t,s,p)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ee(l);return u[zf]=e,u}function qf({layoutId:e}){let t=D(Ce).id;return t&&e!==void 0?t+`-`+e:e}function Jf(e,t){D(sf).strict}function Yf(e){let{drag:t,layout:n}=df();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Xf(e,t){if(typeof Proxy>`u`)return Kf;let n=new Map,r=(n,r)=>Kf(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Kf(a,void 0,e,t)),n.get(a))})}var Zf=Xf(),Qf=(e,t)=>t.isSVG??Mf(e)?new Ml(t):new Tl(t,{allowProjection:e!==u}),$f=class extends vl{constructor(e){super(e),e.animationState||=Fl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},ep=0,tp={animation:{Feature:$f},exit:{Feature:class extends vl{constructor(){super(...arguments),this.id=ep++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=ja(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function np(e){return{point:{x:e.pageX,y:e.pageY}}}var rp=e=>t=>Es(t)&&e(t,np(t));function ip(e,t,n,r){return Du(e,t,rp(n),r)}var ap=({current:e})=>e?e.ownerDocument.defaultView:null,op=(e,t)=>Math.abs(e-t);function sp(e,t){let n=op(e.x,t.x),r=op(e.y,t.y);return Math.sqrt(n**2+r**2)}var cp=new Set([`auto`,`scroll`]),lp=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,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.removeScrollListeners=null,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=up(this.lastRawMoveEventInfo,this.transformPagePoint));let e=fp(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=sp(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:L.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=up(t,this.transformPagePoint),this.hasPendingMove=!0,H.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=fp(e.type===`pointercancel`?this.lastMoveEventInfo:up(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Es(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=up(np(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=I;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,fp(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Le(ip(this.contextWindow,`pointermove`,this.handlePointerMove,d),ip(this.contextWindow,`pointerup`,this.handlePointerUp,d),ip(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(cp.has(e.overflowX)||cp.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}),window.addEventListener(`scroll`,this.onWindowScroll),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),H.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),U(this.updatePoint)}};function up(e,t){return t?{point:t(e.point)}:e}function dp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fp({point:e},t){return{point:e,delta:dp(e,mp(t)),offset:dp(e,pp(t)),velocity:hp(t,.1)}}function pp(e){return e[0]}function mp(e){return e[e.length-1]}function hp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=mp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>P(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>P(t)*2&&(r=e[1]);let a=F(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 gp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?V(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?V(n,e,r.max):Math.min(e,n)),e}function _p(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 vp(e,{top:t,left:n,bottom:r,right:i}){return{x:_p(e.x,n,i),y:_p(e.y,t,r)}}function yp(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 bp(e,t){return{x:yp(e.x,t.x),y:yp(e.y,t.y)}}function xp(e,t){let n=.5,r=$(e),i=$(t);return i>r?n=Re(t.min,t.max-r,e.min):r>i&&(n=Re(e.min,e.max-i,t.min)),j(0,1,n)}function Sp(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}var Cp=.35;function wp(e=Cp){return e===!1?e=0:e===!0&&(e=Cp),{x:Tp(e,`left`,`right`),y:Tp(e,`top`,`bottom`)}}function Tp(e,t,n){return{min:Ep(e,t),max:Ep(e,n)}}function Ep(e,t){return typeof e==`number`?e:e[t]||0}var Dp=new WeakMap,Op=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xs(n),!this.openDragLock))return;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),mu(e=>{let t=this.getAxisMotionValue(e).get()||0;if(It.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&H.update(()=>i(e,t),!1,!0),za(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=Mp(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&H.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new lp(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ap(this.visualElement),element:this.visualElement.current})}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&&H.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!jp(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=gp(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&&Hf(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?vp(n.layoutBox,e):!1,this.elastic=wp(t),r!==this.constraints&&!Hf(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&mu(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Sp(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Hf(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=ds(n,r.root,this.visualElement.getTransformPagePoint()),a=bp(r.layout.layoutBox,i);if(t){let e=t(qo(a));this.hasMutatedConstraints=!!e,e&&(a=Ko(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=mu(o=>{if(!jp(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 za(this.visualElement,e),n.start(ya(e,n,0,t,this.visualElement,!1))}stopAnimation(){mu(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();mu(e=>{if(!jp(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-V(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Hf(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};mu(e=>{let t=this.getAxisMotionValue(e).get();i[e]=xp({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),mu(t=>{let n=this.getAxisMotionValue(t);if(!jp(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(V(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Dp.set(this.visualElement,this);let e=this.visualElement.current,t=ip(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&As(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Hf(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Ap(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);let o=Du(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(mu(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=Cp,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function kp(e){let t=!0;return()=>{t?t=!1:e()}}function Ap(e,t,n){let r=Qs(e,kp(n)),i=Qs(t,kp(n));return()=>{r(),i()}}function jp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mp(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Np=class extends vl{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Op(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Pp=e=>(t,n)=>{e&&H.update(()=>e(t,n),!1,!0)},Fp=class extends vl{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new lp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ap(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Pp(e),onStart:Pp(t),onMove:Pp(n),onEnd:(e,t)=>{delete this.session,r&&H.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ip(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Ip=!1,Lp=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Ip&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Fu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Ip=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||H.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),vs.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ip=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Rp(e){let[t,n]=Jd(),r=D(Ce);return i(Lp,{...e,layoutGroup:r,switchLayoutGroup:D(Vf),isPresent:t,safeToRemove:n})}var zp={pan:{Feature:Fp},drag:{Feature:Np,ProjectionNode:Sd,MeasureLayout:Rp}};function Bp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&H.postRender(()=>i(t,np(t)))}var Vp=class extends vl{mount(){let{current:e}=this.node;e&&(this.unmount=ws(e,(e,t)=>(Bp(this.node,t,`Start`),e=>Bp(this.node,e,`End`))))}unmount(){}},Hp=class extends vl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Le(Du(this.node.current,`focus`,()=>this.onFocus()),Du(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Up(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&H.postRender(()=>i(t,np(t)))}var Wp=class extends vl{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ls(e,(e,t)=>(Up(this.node,t,`Start`),(e,{success:t})=>Up(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Gp=new WeakMap,Kp=new WeakMap,qp=e=>{let t=Gp.get(e.target);t&&t(e)},Jp=e=>{e.forEach(qp)};function Yp({root:e,...t}){let n=e||document;Kp.has(n)||Kp.set(n,{});let r=Kp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Jp,{root:e,...t})),r[i]}function Xp(e,t,n){let r=Yp(t);return Gp.set(e,n),r.observe(e),()=>{Gp.delete(e),r.unobserve(e)}}var Zp={some:0,all:1},Qp=class extends vl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Zp[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Xp(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some($p(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function $p({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var em={inView:{Feature:Qp},tap:{Feature:Wp},focus:{Feature:Hp},hover:{Feature:Vp}},tm={layout:{ProjectionNode:Sd,MeasureLayout:Rp}},nm=Xf({...tp,...em,...zp,...tm},Qf);function rm(e){return O(()=>()=>e(),[])}var im={renderer:Qf,...tp,...em},am={...im,...zp,...tm},om={renderer:Qf,...tp};function sm(e,t,n){me(()=>e.on(t,n),[e,t,n])}var cm=50,lm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),um=()=>({time:0,x:lm(),y:lm()}),dm={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},fm=new WeakMap;function pm(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=fm.get(r);i||fm.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function mm(e,t,n,r){let i=n[t],{length:a,position:o}=dm[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=pm(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=j(0,1,Re(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>cm?0:Be(i.current-s,u)}function hm(e,t,n){for(let r in dm)mm(e,r,t,n);t.time=n}var gm={start:0,center:.5,end:1};function _m(e,t,n=0){let r=0;if(e in gm&&(e=gm[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var vm=[0,0];function ym(e,t,n,r){let i=Array.isArray(e)?e:vm,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,gm[e]?e:`0`]),a=_m(i[0],n,r),o=_m(i[1],t),a-o}var bm={All:[[0,0],[1,1]]};function xm(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Re(i(a),i(a+1),t))/n;return r?1-o:o}function Sm(e,t){let{offset:n=bm.All,axis:r=`y`}=t,i=e[r];i.offset.length=0;let a=n.length;for(let e=0;e<a;e++)i.offset[e]=ym(n[e],i.containerLength,i.targetLength,i.targetOffset);i.progress=j(0,1,xm(i.offset,i.current))}function Cm(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(go(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}function wm(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Tm(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in dm){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Cm(i,e),r=wm(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Sm(n,r)}},notify:e=>t(a?n:e)}}var Em=new WeakMap,Dm=new WeakMap,Om=new WeakMap,km=new WeakMap,Am=e=>e===document.scrollingElement?window:e;function jm(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return N;let i=Om.get(t);i||(i=new Set,Om.set(t,i));let a=Tm(t,e,um(),r);if(i.add(a),!Em.has(t)){let e=um(),n=()=>{hm(t,e,I.timestamp);for(let t of i)t.measure(e);H.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>H.read(n);Em.set(t,a);let o=Am(t);window.addEventListener(`resize`,a),t!==document.documentElement&&Dm.set(t,Qs(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!km.has(t)){let e=Em.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=H.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);km.set(t,r)}let o=Em.get(t);return H.read(o,!1,!0),()=>{U(o);let e=Om.get(t);if(!e||(e.delete(a),e.size))return;Om.delete(t);let n=Em.get(t);Em.delete(t),n&&(Am(t).removeEventListener(`scroll`,n),Dm.get(t)?.(),window.removeEventListener(`resize`,n));let r=km.get(t);r&&(U(r),km.delete(t))}}function Mm(e){return typeof window>`u`?!1:e?ci():si()}var Nm=new Map;function Pm({container:e,target:t,axis:n}){let r=Nm.get(e);r||(r=new Map,Nm.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var Fm=e=>{if(/v/u.test(e))return[];let t=ym(e,0,0,0);return[ym(e,0,1,0)-t,t-ym(e,1,0,0),t]},Im=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function Lm(e=bm.All){if(e.length!==2)return;let[t,n]=e.map(Fm),r=[Im(t),Im(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function Rm(e,t){let{target:n,container:r,axis:i}=t,a=n&&Lm(t.offset),o=Mm(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?Pm(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=jm(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(Qs(c),Qs([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function zm(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return N;let a={axis:t,container:n||r,...i};return typeof e==`function`?jm(n=>e(n[t].progress,n),a):Rm(e,a)}var Bm=()=>({scrollX:J(0),scrollY:J(0),scrollXProgress:J(0),scrollYProgress:J(0)}),Vm=e=>e?!e.current:!1;function Hm(e,t,n,r){return{factory:i=>{let a,o=()=>{Vm(n)||Vm(r)?vs.read(o):a=zm(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return vs.read(o),()=>{ys(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Um(e,t){return typeof window>`u`?!1:e?ci()&&!!Lm(t):si()&&!t}function Wm({container:e,target:t,...n}={}){let r=A(Bm);Um(t,n.offset)&&(r.scrollXProgress.accelerate=Hm(`x`,n,e,t),r.scrollYProgress.accelerate=Hm(`y`,n,e,t));let i=k(null),a=k(!1),o=ce(()=>(i.current=zm((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Te(()=>{if(a.current=!1,Vm(e)||Vm(t))a.current=!0;else return o()},[o]),O(()=>{if(!a.current)return;let n,r=()=>{let r=Vm(e),i=Vm(t);!r&&!i&&(n=o())};return vs.read(r),()=>{ys(r),n?.()}},[o]),r}function Gm(e){return Wm({container:e})}function Km(){return Wm()}function qm(e){let t=A(()=>J(e)),{isStatic:n}=D(Bd);if(n){let[,n]=ye(e);O(()=>t.on(`change`,n),[])}return t}function Jm(e,t){let n=qm(t()),r=()=>n.set(t());return r(),Te(()=>{let t=()=>H.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),U(r)}}),n}function Ym(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=Y(n)?n.get():n)}return r}return Jm(t.filter(Y),r)}function Xm(e){ca.current=[],e();let t=Jm(ca.current,e);return ca.current=void 0,t}function Zm(e,t,n,r){if(typeof e==`function`)return Xm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return $m(e,t,n,r);let i=typeof t==`function`?t:ac(t,n,r),a=Array.isArray(e)?Qm(e,i):Qm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function Qm(e,t){let n=A(()=>[]);return Jm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function $m(e,t,n,r){let i=A(()=>Object.keys(n)),a=A(()=>({}));for(let o of i)a[o]=Zm(e,t,n[o],r);return a}function eh(e,t={}){return th(e,t,pc)}function th(e,t,n){let{isStatic:r}=D(Bd),i=()=>Y(e)?e.get():e;if(r)return Zm(i);let a=qm(i());return me(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function nh(e,t={}){return th(e,t,vc)}function rh(e){let t=k(0),{isStatic:n}=D(Bd);O(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return H.update(r,!0),()=>U(r)},[e])}function ih(){let e=qm(0);return rh(t=>e.set(t)),e}function ah(e){let t=qm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&H.update(n)};return sm(e,`change`,()=>{H.update(n,!1,!0)}),t}var oh=class extends la{constructor(){super(...arguments),this.isEnabled=!1}add(e){(q.has(e)||Ti.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function sh(){return A(()=>new oh(`auto`))}function ch(){!ll.current&&dl();let[e]=ye(cl.current);return e}function lh(){let e=ch(),{reducedMotion:t}=D(Bd);return t===`never`?!1:t===`always`||e}function uh(e){e.values.forEach(e=>e.stop())}function dh(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&La(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{dh(e,t)})})}function fh(e,t){if(Array.isArray(t))return dh(e,t);if(typeof t==`string`)return dh(e,[t]);La(e,t)}function ph(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(Ja(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{fh(e,t)})},stop(){e.forEach(e=>{uh(e)})},mount(){return()=>{t.stop()}}};return t}function mh(e){return typeof e==`object`&&!Array.isArray(e)}function hh(e,t,n,r){return e==null?[]:typeof e==`string`&&mh(t)?vo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function gh(e,t,n){return e*(t+1)+n*t}function _h(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function vh(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Oe(e,i),r--)}}function yh(e,t,n,r,i,a){vh(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:V(i,a,r[o]),easing:st(n,o)})}function bh(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function xh(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Sh=`easeInOut`,Ch=20;function wh(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,_h(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=_h(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Dh(e),{delay:l=0,times:u=Xn(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=mi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Ah(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=P(b));let r=Pn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Yn(u,T),c.length===1&&c.unshift(null),m&&`${m}${Ch}`,m&&m<Ch){let e=b>0?_/b:0;b=gh(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Je(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:st(f,e-1))}bh(u,m,e)}let E=w+b;yh(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Y(p)){let e=Th(p,s);_(m,h,Eh(`default`,e))}else{let e=hh(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Th(r,s);for(let e in m)_(m[e],Oh(h,e),Eh(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(xh);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Re(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Sh)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Th(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Eh(e,t){return t[e]||(t[e]=[]),t[e]}function Dh(e){return Array.isArray(e)?e:[e]}function Oh(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var kh=e=>typeof e==`number`,Ah=e=>e.every(kh);function jh(e,t){return Y(e)||typeof e==`number`||typeof e==`string`&&!mh(t)}function Mh(e,t,n,r){let i=[];if(jh(e,t))i.push(Eu(e,mh(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=hh(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...hs(r,t,s,el.get(r))):i.push(...mo(fo(r)??_s,r,t,s))}}return i}function Nh(e,t,n){let r=[];return wh(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=J(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Gn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Mh(n,e,t))}),r}function Ph(e){return Array.isArray(e)&&e.some(Array.isArray)}function Fh(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Ph(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Nh(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Mh(e,i,{...c,...r},t)}let l=new ea(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Oe(t.animations,l)})),l}return i}var Ih=Object.assign(Fh(),{addEffect:lo,removeEffect:uo});function Lh(){let e=A(()=>({current:null,animations:[]})),t=lh()??void 0,{skipAnimations:n}=D(Bd),r=ge(()=>Fh({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return rm(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function Rh(e,t,n,r){if(e==null)return[];let i=vo(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...da(s,e)};i.duration&&=P(i.duration),i.delay&&=P(i.delay);let a=ia(r),c=ra(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Rs(r,i)),Or(t),ao(t,i),!a&&t.length<2&&t.unshift(Rs(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new gi(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var zh=e=>{function t(t,n,r){return new ea(Rh(t,n,r,e))}return t},Bh=zh();function Vh(){let e=A(()=>({current:null,animations:[]})),t=A(()=>zh(e));return rm(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function Hh(){let e=A(ph);return Te(e.mount,[]),e}var Uh=Hh;function Wh(){let e=D(Ee);return e?e.custom:void 0}function Gh(e,t,n,r){O(()=>{let i=e.current;if(n&&i)return Du(i,t,n,r)},[e,t,n,r])}var Kh=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},qh=()=>new Kh;function Jh(){return A(qh)}function Yh(e){return typeof e==`object`&&!!e&&zf in e}function Xh(e){if(Yh(e))return e[zf]}function Zh(){return Qh}function Qh(e){xd.current&&(xd.current.isUpdating=!1,xd.current.blockUpdate(),e&&e())}function $h(){return ce(()=>{let e=xd.current;e&&e.resetTree()},[])}function eg(...e){let t=k(0),[n,r]=ye(e[t.current]);return[n,ce(n=>{t.current=typeof n==`number`?n:We(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var tg={some:0,all:1};function ng(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=vo(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:tg[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function rg(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=ye(a);return O(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return ng(e.current,a,c)},[t,e,n,i,r]),o}function ig(){let[e,t]=nf(),n=Zh(),r=k(-1);return O(()=>{H.postRender(()=>H.postRender(()=>{t===r.current&&(M.instantAnimations=!1)}))},[t]),i=>{n(()=>{M.instantAnimations=!0,e(),i(),r.current=t+1})}}function ag(){M.instantAnimations=!1}function og(){let[e,t]=ye(!0);return O(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function sg(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function cg(e){return t=>{let n=e.current;if(!n)return t;let r=lg(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function lg(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var ug=new Map,dg=new Map,fg=(e,t)=>`${e}: ${q.has(t)?`transform`:t}`;function pg(e,t,n){let r=fg(e,t),i=ug.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var mg,hg,gg=new Set;function _g(){gg.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),gg.clear()}function vg(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Va];if(!a)return;window.MotionHandoffAnimation=pg;let o=fg(a,t);hg||(hg=pi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),ug.set(o,{animation:hg,startTime:null}),window.MotionHandoffAnimation=pg,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return dg.has(e);let n=fg(e,t);return!!ug.get(n)},window.MotionHandoffMarkAsComplete=e=>{dg.has(e)&&dg.set(e,!0)},window.MotionHandoffIsComplete=e=>dg.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=fg(e,t),a=ug.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(gg.add(a),n.render(_g)):(ug.delete(i),ug.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=Ua(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{hg.cancel();let a=pi(e,t,n,r);mg===void 0&&(mg=performance.now()),a.startTime=mg,ug.set(o,{animation:a,startTime:mg}),i&&i(a)};dg.set(a,!1),hg.ready?hg.ready.then(s).catch(N):s()}var yg=()=>({}),bg=class extends gl{constructor(){super(...arguments),this.measureInstanceViewportBox=Q}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return yg()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},xg=If({scrapeMotionValuesFromProps:yg,createRenderState:yg});function Sg(e){let[t,n]=ye(e),r=xg({},!1),i=A(()=>new bg({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return he(()=>(i.mount({}),()=>i.unmount()),[i]),[t,A(()=>e=>Ja(i,e))]}var Cg=0,wg=({children:e})=>(O(()=>{},[]),i(of,{id:A(()=>`asl-${Cg++}`),children:e})),Tg=1e5,Eg=e=>e>.001?1/e:Tg;function Dg(e){let t=qm(1),n=qm(1),{visualElement:r}=D(gf);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Zm(t,Eg),scaleY:Zm(n,Eg)}}var Og=w(null);function kg(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:V(t.x.min,t.x.max,.5)+n.x,y:V(t.y.min,t.y.max,.5)+n.y},i=Ag(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>jg(r.y,t)<jg(r.y,e)?t:e);if(c!==s)return Mg(e,o,r.x,c,a);let l=Ng(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Ng(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:ke(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=V(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?ke(e,o,o+s):e}function Ag(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function jg(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function Mg(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=V(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Ng(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Pg=(e,t)=>e.max<=t.min||t.max<=e.min;function Fg(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Pg(e[r].x,e[i].x),n||=Pg(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Ig({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l){let u=A(()=>nm[t]),d=k(new Map),[f,p]=ye(`y`),m=k(!1),h=k(!1),g=k(null),_=n||f,v=new Set(a);d.current.forEach((e,t)=>{v.has(t)||d.current.delete(t)});let y={axis:_,groupRef:g,hasReordered:h,registerItem:(e,t)=>{if(d.current.set(e,t),!n){let e=Fg(a.flatMap(e=>{let t=d.current.get(e);return t?[t]:[]}));e!==f&&p(e)}},updateOrder:(e,t,n)=>{if(m.current)return;let i=a.flatMap(e=>{let t=d.current.get(e);return t?[{value:e,layout:t}]:[]}),o=g.current?.ownerDocument.defaultView?.getComputedStyle(g.current).direction===`rtl`?`rtl`:`ltr`,s=kg(i,e,t,n,_,o);if(i!==s){m.current=!0,h.current=!0;let e=[...a],t=i.map(({value:e})=>a.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};O(()=>{m.current=!1},[a]);let b=e=>{g.current=e,typeof l==`function`?l(e):l&&(l.current=e)},x={overflowAnchor:`none`,...c.style};return i(u,{...c,style:x,ref:b,onPointerDownCapture:e=>{h.current=!1,o?.(e)},onClickCapture:e=>{h.current&&e.detail&&(h.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(Og.Provider,{value:y,children:e})})}var Lg=ee(Ig),Rg=50,zg=25,Bg=new Set([`auto`,`scroll`]),Vg=new WeakMap,Hg=new WeakMap,Ug=null;function Wg(){if(Ug){let e=Kg(Ug,`y`);e&&(Hg.delete(e),Vg.delete(e));let t=Kg(Ug,`x`);t&&t!==e&&(Hg.delete(t),Vg.delete(t)),Ug=null}}function Gg(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Bg.has(r)||i}function Kg(e,t){let n=e?.parentElement;for(;n;){if(Gg(n,t))return n;n=n.parentElement}return null}function qg(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Rg){let e=1-o/Rg;return{amount:-25*e*e,edge:`start`}}if(s<Rg){let e=1-s/Rg;return{amount:zg*e*e,edge:`end`}}return{amount:0,edge:null}}function Jg(e,t,n,r){if(!e)return;Ug=e;let i=Kg(e,n);if(!i)return;let{amount:a,edge:o}=qg(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Hg.delete(i),Vg.delete(i);return}let s=Hg.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Hg.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Vg.set(i,e)}if(a>0){let e=Vg.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Yg(e,t=0){return Y(e)?e:qm(t)}function Xg({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,layout:s=!0,...c},l){let u=A(()=>nm[r]),d=D(Og),f={x:Yg(t.x),y:Yg(t.y)},p=Zm([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_,hasReordered:v}=d;return i(u,{drag:m===`xy`||m,...c,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:f.x.get(),y:f.y.get()};g(n,o,r);let s=m===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:m;Jg(_.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{v.current=!1,Wg(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var Zg=ee(Xg),Qg=t({Group:()=>Lg,Item:()=>Zg}),$g=t({AnimatePresence:()=>$d,AnimateSharedLayout:()=>wg,AsyncMotionValueAnimation:()=>Zi,DOMKeyframesResolver:()=>no,DOMVisualElement:()=>_l,DeprecatedLayoutGroupContext:()=>ef,DocumentProjectionNode:()=>vd,DragControls:()=>Kh,Feature:()=>vl,FlatTree:()=>ku,GroupAnimation:()=>Qi,GroupAnimationWithThen:()=>ea,HTMLProjectionNode:()=>Sd,HTMLVisualElement:()=>Tl,JSAnimation:()=>hr,KeyframeResolver:()=>ni,LayoutAnimationBuilder:()=>Fd,LayoutGroup:()=>of,LayoutGroupContext:()=>Ce,LazyMotion:()=>pf,MotionConfig:()=>hf,MotionConfigContext:()=>Bd,MotionContext:()=>gf,MotionGlobalConfig:()=>M,MotionValue:()=>la,MotionValueState:()=>bo,NativeAnimation:()=>gi,NativeAnimationExtended:()=>bi,NativeAnimationWrapper:()=>ta,NodeStack:()=>Nu,ObjectVisualElement:()=>Dl,PopChild:()=>Gd,PresenceChild:()=>Kd,PresenceContext:()=>Ee,Reorder:()=>Qg,SVGVisualElement:()=>Ml,SubscriptionManager:()=>ze,SwitchLayoutGroupContext:()=>Vf,ViewTransitionBuilder:()=>Yc,VisualElement:()=>gl,WillChangeMotionValue:()=>oh,acceleratedValues:()=>Ti,addAttrValue:()=>Ro,addDomEvent:()=>Du,addEffect:()=>lo,addPointerEvent:()=>ip,addPointerInfo:()=>rp,addSVGValue:()=>Vo,addScaleCorrector:()=>xl,addStyleValue:()=>Eo,addUniqueItem:()=>De,addValueToWillChange:()=>za,alpha:()=>St,analyseComplexValue:()=>Qt,animate:()=>Ih,animateEffectSubject:()=>mo,animateElement:()=>hs,animateLayout:()=>Ld,animateMini:()=>Bh,animateMotionValue:()=>ya,animateSingleValue:()=>Eu,animateTarget:()=>Ka,animateValue:()=>gr,animateValues:()=>po,animateVariant:()=>qa,animateView:()=>Xc,animateVisualElement:()=>Ja,animationControls:()=>ph,animationMapKey:()=>ra,animations:()=>tp,anticipate:()=>Qe,applyAxisDelta:()=>ns,applyBoxDelta:()=>rs,applyGeneratorOptions:()=>hi,applyPointDelta:()=>ts,applyPxDefaults:()=>ao,applyTreeDeltas:()=>os,arc:()=>Ta,aspectRatio:()=>fu,attachFollow:()=>pc,attachSpring:()=>vc,attrEffect:()=>zo,axisDeltaEquals:()=>pu,axisEquals:()=>cu,axisEqualsRounded:()=>uu,backIn:()=>Xe,backInOut:()=>Ze,backOut:()=>Ye,boxEquals:()=>lu,boxEqualsRounded:()=>du,buildHTMLStyles:()=>jo,buildProjectionTransform:()=>vu,buildSVGAttrs:()=>Io,buildSVGPath:()=>Po,buildTransform:()=>Pi,calcAxisDelta:()=>Jl,calcBoxDelta:()=>Yl,calcChildStagger:()=>aa,calcGeneratorDuration:()=>Nn,calcLength:()=>$,calcRelativeAxis:()=>Xl,calcRelativeAxisPosition:()=>Ql,calcRelativeBox:()=>Zl,calcRelativePosition:()=>$l,camelCaseAttributes:()=>Ol,camelToDash:()=>Ba,cancelFrame:()=>U,cancelMicrotask:()=>ys,cancelSync:()=>zd,checkVariantsDidChange:()=>Il,circIn:()=>$e,circInOut:()=>tt,circOut:()=>et,clamp:()=>j,cleanDirtyNodes:()=>qu,collectMotionValues:()=>ca,color:()=>z,compareByDepth:()=>Ou,complex:()=>B,containsCSSVariable:()=>bt,convertBoundingBoxToBox:()=>Ko,convertBoxToBoundingBox:()=>qo,convertOffsetToTimes:()=>Zn,copyAxisDeltaInto:()=>Hl,copyAxisInto:()=>Bl,copyBoxInto:()=>Vl,correctBorderRadius:()=>gu,correctBoxShadow:()=>_u,correctParentTransform:()=>cg,createAnimationState:()=>Fl,createAxis:()=>$c,createAxisDelta:()=>Zc,createBox:()=>Q,createDelta:()=>Qc,createEffect:()=>xo,createGeneratorEasing:()=>Pn,createProjectionNode:()=>Uu,createRenderBatcher:()=>On,createScopedAnimate:()=>Fh,cubicBezier:()=>Ke,cubicBezierAsString:()=>ui,defaultEasing:()=>Qn,defaultOffset:()=>Xn,defaultTransformValue:()=>Lr,defaultValueTypes:()=>wr,degrees:()=>Ft,delay:()=>Au,delayInSeconds:()=>ju,dimensionValueTypes:()=>Za,disableInstantTransitions:()=>ag,distance:()=>op,distance2D:()=>sp,domAnimation:()=>im,domMax:()=>am,domMin:()=>om,eachAxis:()=>mu,easeIn:()=>nt,easeInOut:()=>it,easeOut:()=>rt,easingDefinitionToFunction:()=>dt,fillOffset:()=>Yn,fillWildcards:()=>Or,filterProps:()=>Af,findDimensionValueType:()=>Qa,findEffect:()=>fo,findValueType:()=>bc,flushKeyframeResolvers:()=>ei,followValue:()=>fc,frame:()=>H,frameData:()=>I,frameSteps:()=>kn,generateLinearEasing:()=>jn,getAnimatableNone:()=>Dr,getAnimationMap:()=>ia,getComputedStyle:()=>Rs,getDefaultTransition:()=>ga,getDefaultValueType:()=>Tr,getEasingForSegment:()=>st,getFeatureDefinitions:()=>hl,getFinalKeyframe:()=>ir,getMixer:()=>_n,getOptimisedAppearId:()=>Ua,getOriginIndex:()=>rc,getValueAsType:()=>ji,getValueTransition:()=>da,getVariableValue:()=>Oa,getVariantContext:()=>zl,getViewAnimationLayerInfo:()=>Mc,getViewAnimations:()=>Nc,globalProjectionState:()=>Fu,handOffElementState:()=>gs,has2DTranslate:()=>Qo,hasComplexValues:()=>Zt,hasReducedMotionListener:()=>ll,hasScale:()=>Xo,hasTransform:()=>Zo,hasWarned:()=>He,hex:()=>Nt,hover:()=>ws,hsla:()=>Bt,hslaToRgba:()=>sn,inView:()=>ng,inertia:()=>Kn,initPrefersReducedMotion:()=>dl,interpolate:()=>Jn,invariant:()=>Me,invisibleValues:()=>mn,isAnimationControls:()=>tl,isBezierDefinition:()=>ct,isBrowser:()=>we,isCSSVariableName:()=>gt,isCSSVariableToken:()=>vt,isControllingVariants:()=>al,isDeltaZero:()=>su,isDragActive:()=>bs,isDragging:()=>Z,isEasingArray:()=>ot,isElementKeyboardAccessible:()=>Os,isElementTextInput:()=>As,isForcedMotionValue:()=>Sl,isGenerator:()=>mi,isHTMLElement:()=>go,isKeyframesTarget:()=>Pa,isMotionComponent:()=>Yh,isMotionValue:()=>Y,isNear:()=>ql,isNodeOrChild:()=>Ts,isNumericalString:()=>Ne,isObject:()=>Pe,isPrimaryPointer:()=>Es,isSVGElement:()=>_o,isSVGSVGElement:()=>nc,isSVGTag:()=>kl,isTransitionDefined:()=>va,isValidMotionProp:()=>Of,isVariantLabel:()=>nl,isVariantNode:()=>ol,isWaapiSupportedEasing:()=>oo,isWillChangeMotionValue:()=>Ra,isZeroValueString:()=>Fe,keyframes:()=>$n,m:()=>Zf,makeAnimationInstant:()=>wi,makeUseVisualState:()=>If,mapEasingToNativeEasing:()=>fi,mapValue:()=>gc,maxGeneratorDuration:()=>Mn,measurePageBox:()=>ds,measureViewportBox:()=>us,memo:()=>Ie,microtask:()=>vs,millisecondsToSeconds:()=>F,mirrorEasing:()=>qe,mix:()=>wn,mixArray:()=>vn,mixColor:()=>pn,mixComplex:()=>xn,mixImmediate:()=>cn,mixLinearColor:()=>ln,mixNumber:()=>V,mixObject:()=>yn,mixValues:()=>xu,mixVisibility:()=>hn,motion:()=>nm,motionValue:()=>J,moveItem:()=>ke,nodeGroup:()=>bd,noop:()=>N,number:()=>xt,numberValueTypes:()=>G,optimizedAppearDataAttribute:()=>Ha,optimizedAppearDataId:()=>Va,originProps:()=>wo,parseAnimateLayoutArgs:()=>Id,parseCSSVariable:()=>Da,parseValueFromTransform:()=>Rr,percent:()=>It,pipe:()=>Le,pixelsToPercent:()=>hu,positionalKeys:()=>Na,prefersReducedMotion:()=>cl,press:()=>Ls,progress:()=>Re,progressPercentage:()=>zt,propEffect:()=>_s,propagateDirtyNodes:()=>Ku,px:()=>R,readSVGValue:()=>Ho,readStyleValue:()=>Oo,readTransformValue:()=>zr,recordStats:()=>tc,removeAxisDelta:()=>tu,removeAxisTransforms:()=>nu,removeBoxTransforms:()=>au,removeEffect:()=>uo,removeItem:()=>Oe,removePointDelta:()=>eu,renderHTML:()=>yl,renderSVG:()=>Al,resize:()=>Qs,resolveElements:()=>vo,resolveMotionValue:()=>Mu,resolveTransition:()=>ua,resolveVariant:()=>ja,resolveVariantFromProps:()=>Aa,reverseEasing:()=>Je,rgbUnit:()=>At,rgba:()=>jt,rootProjectionNode:()=>xd,round:()=>mr,sampleDelta:()=>10,scale:()=>Ct,scaleCorrectors:()=>bl,scalePoint:()=>es,scrapeHTMLMotionValuesFromProps:()=>Cl,scrapeSVGMotionValuesFromProps:()=>jl,scroll:()=>zm,scrollInfo:()=>jm,secondsToMilliseconds:()=>P,setDragLock:()=>xs,setFeatureDefinitions:()=>ml,setStyle:()=>ii,setTarget:()=>La,spring:()=>Gn,springValue:()=>_c,stagger:()=>ic,startOptimizedAppearAnimation:()=>vg,startWaapiAnimation:()=>pi,statsBuffer:()=>$s,steps:()=>at,styleEffect:()=>Ao,styleSubjectEffect:()=>ko,supportedWaapiEasing:()=>di,supportsBrowserAnimation:()=>Ai,supportsFlags:()=>ai,supportsLinearEasing:()=>li,supportsPartialKeyframes:()=>so,supportsScrollTimeline:()=>si,supportsViewTimeline:()=>ci,supportsWaapi:()=>ki,svgEffect:()=>Wo,svgSubjectEffect:()=>Uo,sync:()=>Rd,testValueType:()=>Xa,time:()=>L,transform:()=>ac,transformAxis:()=>ss,transformBox:()=>ls,transformBoxPoints:()=>Jo,transformPropOrder:()=>K,transformProps:()=>q,transformValue:()=>hc,transformValueTypes:()=>Cr,transformViewBoxPoint:()=>sg,translateAxis:()=>X,unwrapMotionComponent:()=>Xh,updateMotionValuesFromProps:()=>sl,useAnimate:()=>Lh,useAnimateMini:()=>Vh,useAnimation:()=>Uh,useAnimationControls:()=>Hh,useAnimationFrame:()=>rh,useComposedRefs:()=>Ud,useCycle:()=>eg,useDeprecatedAnimatedState:()=>Sg,useDeprecatedInvertedScale:()=>Dg,useDomEvent:()=>Gh,useDragControls:()=>Jh,useElementScroll:()=>Gm,useFollowValue:()=>eh,useForceUpdate:()=>nf,useInView:()=>rg,useInstantLayoutTransition:()=>Zh,useInstantTransition:()=>ig,useIsPresent:()=>Yd,useIsomorphicLayoutEffect:()=>Te,useMotionTemplate:()=>Ym,useMotionValue:()=>qm,useMotionValueEvent:()=>sm,usePageInView:()=>og,usePresence:()=>Jd,usePresenceData:()=>Wh,useReducedMotion:()=>ch,useReducedMotionConfig:()=>lh,useResetProjection:()=>$h,useScroll:()=>Wm,useSpring:()=>nh,useTime:()=>ih,useTransform:()=>Zm,useUnmountEffect:()=>rm,useVelocity:()=>ah,useViewportScroll:()=>Km,useWillChange:()=>sh,variantPriorityOrder:()=>rl,variantProps:()=>il,velocityPerSecond:()=>Be,vh:()=>Lt,visualElementStore:()=>el,vw:()=>Rt,warnOnce:()=>Ue,warning:()=>je,wrap:()=>We}),e_=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},t_=$g;e_.register([`framer-motion`,`motion/react`,`motion`],t_),window.Motion=t_})();
10
+ `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),i(Hf,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Wf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=j(Gf),f=fe(),p=k(),m=k(n),h=k(r);we(()=>{m.current=n,h.current=r});let g=!0,_=ge(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:(e,t)=>(d.set(e,!1),t&&t.parent?.presenceContext?.id!==f&&(p.current=t),()=>{d.delete(e),!m.current&&!d.size&&h.current?.()})}),[n,d,r]);return o&&g&&(_={..._}),ge(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),O(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Uf,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,popNode:p,children:e}),i(Te.Provider,{value:_,children:e})};function Gf(){return new Map}function Kf(e=!0){let t=D(Te);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=fe();O(()=>{if(e)return i(a)},[e]);let o=ce(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function qf(){return Jf(D(Te))}function Jf(e){return e===null||e.isPresent}var Yf=e=>e.key||``;function Xf(e){let t=[];return c.forEach(e,e=>{E(e)&&t.push(e)}),t}var Zf=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Kf(c),m=ge(()=>Xf(e),[e]),h=c&&!f?[]:m.map(Yf),g=k(!0),_=j(()=>new Map),v=k(new Set),[y,b]=A(m),[x,S]=A(m);we(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=k();O(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),we(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Yf(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let w=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(Yf(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(Yf(e)))?e=m:s===`wait`&&(e=w),S(Xf(e)),b(m),null}let{forceRender:T}=D(Se);return i(r,{children:x.map(e=>{let r=Yf(e),y=c&&!f?!1:m===x||h.includes(r);return i(Wf,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),b([]),c&&p?.(),C.current=a)},anchorX:l,anchorY:u,children:e},r)})})},Qf=w(null);function $f(){let e=k(!1);return we(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ep(){let e=$f(),[t,n]=A(0),r=ce(()=>{e.current&&n(t+1)},[t]);return[ce(()=>U.postRender(r),[r]),t]}var tp=e=>e===!0,np=e=>tp(e===!0)||e===`id`,rp=({children:e,id:t,inherit:n=!0})=>{let r=D(Se),a=D(Qf),[o,s]=ep(),c=k(null),l=r.id||a;c.current===null&&(np(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:tp(n)&&r.group||Pf()});let u=ge(()=>({...c.current,forceRender:o}),[s]);return i(Se.Provider,{value:u,children:e})},ip=w({strict:!1}),ap={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},op=!1;function sp(){if(op)return;let e={};for(let t in ap)e[t]={isEnabled:e=>ap[t].some(t=>!!e[t])};Ml(e),op=!0}function cp(){return sp(),Nl()}function lp(e){let t=cp();for(let n in e)t[n]={...t[n],...e[n]};Ml(t)}function up({children:e,features:t,strict:n=!1}){let[,r]=A(!dp(t)),a=k(void 0);if(!dp(t)){let{renderer:e,...n}=t;a.current=e,lp(n)}return O(()=>{dp(t)&&t().then(({renderer:e,...t})=>{lp(t),a.current=e,r(!0)})},[]),i(ip.Provider,{value:{renderer:a.current,strict:n},children:e})}function dp(e){return typeof e==`function`}function fp({children:e,...t}){let n=D(Rf);t={...n,...t},t.transition=fa(t.transition,n.transition),t.isStatic=j(()=>t.isStatic);let r=ge(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Rf.Provider,{value:r,children:e})}var pp=w({});function mp(e,t){if(Cl(e)){let{initial:t,animate:n}=e;return{initial:t===!1||bl(t)?t:void 0,animate:bl(n)?n:void 0}}return e.inherit===!1?{}:t}function hp(e){let{initial:t,animate:n}=mp(e,D(pp));return ge(()=>({initial:t,animate:n}),[gp(t),gp(n)])}function gp(e){return Array.isArray(e)?e.join(` `):e}var _p=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vp(e,t,n){for(let r in t)!X(t[r])&&!Ll(r,n)&&(e[r]=t[r])}function yp({transformTemplate:e},t){return ge(()=>{let n=_p();return Io(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bp(e,t){let n=e.style||{},r={};return vp(r,n,e),Object.assign(r,yp(e,t)),r}function xp(e,t){let n={},r=bp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Sp=()=>({..._p(),attrs:{}});function Cp(e,t,n,r){let i=ge(()=>{let n=Sp();return Vo(n,t,Sf(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return vp(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var wp=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Tp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||wp.has(e)}function Ep(e,t){return e.startsWith(`on`)?!Tp(e):t?.(e)??!Tp(e)}function Dp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||X(e[a])||(Ep(a,r)||n===!0&&Tp(a)||!t&&!Tp(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Op=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function kp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Op.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ap(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??kp(e)?Cp:xp)(t,r,i,e),l=Dp(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ge(()=>X(f)?f.get():f,[f]);return T(e,{...d,children:p})}function jp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Mp(n,r,i,e),renderState:t()}}function Mp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Fs(a[e]);let{initial:o,animate:s}=e,c=Cl(e),l=wl(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!yl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ma(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Np=e=>(t,n)=>{let r=D(pp),i=D(Te),a=()=>jp(e,t,r,i);return n?a():j(a)},Pp=Np({scrapeMotionValuesFromProps:Rl,createRenderState:_p}),Fp=Np({scrapeMotionValuesFromProps:wf,createRenderState:Sp}),Ip=Symbol.for(`motionComponentSymbol`);function Lp(e,t,n){let r=k(n);me(()=>{r.current=n});let i=k(null);return ce(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Rp=w({});function zp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Bp(e,t,n,r,i,a){let{visualElement:o}=D(pp),s=D(ip),c=D(Te),l=D(Rf),u=l.reducedMotion,d=l.skipAnimations,f=k(null),p=k(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=D(Rp);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Vp(f.current,n,i,h),me(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[Ua],_=k(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return we(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),we(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),O(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function Vp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t,f=e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Hp(e.parent));f.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&zp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u});let p=f.getStack()?.lead;p&&!f.root.isUpdateBlocked()&&(p.willUpdate(),p.scheduleCheckAfterUnmount())}function Hp(e){if(e)return e.options.allowProjection===!1?Hp(e.parent):e.projection}function Up(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&lp(r);let s=n?n===`svg`:kp(e),c=s?Fp:Pp;function l(n,l){let u,d=Wp(n);j(()=>!!gl.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...D(Rf),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=hp(n),g=c(n,p);if(!p&&typeof window<`u`){Gp(f,r);let t=Kp(f);u=t.MeasureLayout,h.visualElement=Bp(e,g,f,o,t.ProjectionNode,s)}return a(pp.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,Ap(e,n,Lp(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=te(l);return u[Ip]=e,u}function Wp({layoutId:e}){let t=D(Se).id;return t&&e!==void 0?t+`-`+e:e}function Gp(e,t){D(ip).strict}function Kp(e){let{drag:t,layout:n}=cp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qp(e,t){if(typeof Proxy>`u`)return Up;let n=new Map,r=(n,r)=>Up(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Up(a,void 0,e,t)),n.get(a))})}var Jp=qp(),Yp=(e,t)=>t.isSVG??kp(e)?new Tf(t):new Bl(t,{allowProjection:e!==u}),Xp=class extends vf{constructor(e){super(e),e.animationState||=Of(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();yl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Zp=0,Qp={animation:{Feature:Xp},exit:{Feature:class extends vf{constructor(){super(...arguments),this.id=Zp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Na(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},$p=class extends vf{constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Yu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},em=({current:e})=>e?e.ownerDocument.defaultView:null,tm=e=>(t,n)=>{e&&U.update(()=>e(t,n),!1,!0)},nm=class extends vf{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(e){this.session=new Cu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:em(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:tm(e),onStart:tm(t),onMove:tm(n),onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=au(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},rm=!1,im=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),am=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),rm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...im(this.props),onExitComplete:()=>this.safeToRemove()})),Mc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...im(this.props)}),rm=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||U.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ts.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;rm=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function om(e){let[t,n]=Kf(),r=D(Se);return i(am,{...e,layoutGroup:r,switchLayoutGroup:D(Rp),isPresent:t,safeToRemove:n})}var sm={pan:{Feature:nm},drag:{Feature:$p,ProjectionNode:_l,MeasureLayout:om}};function cm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&U.postRender(()=>i(t,ru(t)))}var lm=class extends vf{mount(){let{current:e}=this.node;e&&(this.unmount=ld(e,(e,t)=>(cm(this.node,t,`Start`),e=>cm(this.node,e,`End`))))}unmount(){}},um=class extends vf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Ie(ml(this.node.current,`focus`,()=>this.onFocus()),ml(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function dm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&U.postRender(()=>i(t,ru(t)))}var fm=class extends vf{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=_d(e,(e,t)=>(dm(this.node,t,`Start`),(e,{success:t})=>dm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},pm=new WeakMap,mm=new WeakMap,hm=e=>{let t=pm.get(e.target);t&&t(e)},gm=e=>{e.forEach(hm)};function _m({root:e,...t}){let n=e||document;mm.has(n)||mm.set(n,{});let r=mm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gm,{root:e,...t})),r[i]}function vm(e,t,n){let r=_m(t);return pm.set(e,n),r.observe(e),()=>{pm.delete(e),r.unobserve(e)}}var ym={some:0,all:1},bm=class extends vf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ym[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=vm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(xm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function xm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Sm={inView:{Feature:bm},tap:{Feature:fm},focus:{Feature:um},hover:{Feature:lm}},Cm={layout:{ProjectionNode:_l,MeasureLayout:om}},wm=qp(Object.assign({},Qp,Sm,sm,Cm),Yp);function Tm(e){return O(()=>()=>e(),[])}var Em=Object.assign({renderer:Yp},Qp,Sm),Dm=Object.assign({},Em,sm,Cm),Om={renderer:Yp,...Qp};function km(e,t,n){me(()=>e.on(t,n),[e,t,n])}var Am=50,jm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Mm=()=>({time:0,x:jm(),y:jm()}),Nm={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Pm=new WeakMap;function Fm(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=Pm.get(r);i||Pm.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function Im(e,t,n,r){let i=n[t],{length:a,position:o}=Nm[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=Fm(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=M(0,1,Le(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>Am?0:ze(i.current-s,u)}function Lm(e,t,n){for(let r in Nm)Im(e,r,t,n);t.time=n}var Rm={start:0,center:.5,end:1};function zm(e,t,n=0){let r=0;if(e in Rm&&(e=Rm[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var Bm=[0,0];function Vm(e,t,n,r){let i=Array.isArray(e)?e:Bm,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Rm[e]?e:`0`]),a=zm(i[0],n,r),o=zm(i[1],t),a-o}var Hm={All:[[0,0],[1,1]]};function Um(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Le(i(a),i(a+1),t))/n;return r?1-o:o}function Wm(e,t){let{offset:n=Hm.All,axis:r=`y`}=t,i=e[r];i.offset.length=0;let a=n.length;for(let e=0;e<a;e++)i.offset[e]=Vm(n[e],i.containerLength,i.targetLength,i.targetOffset);i.progress=M(0,1,Um(i.offset,i.current))}function Gm(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(_o(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}function Km(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function qm(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in Nm){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Gm(i,e),r=Km(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Wm(n,r)}},notify:e=>t(a?n:e)}}var Jm=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,Zm=new WeakMap,Qm=e=>e===document.scrollingElement?window:e;function $m(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return P;let i=Xm.get(t);i||(i=new Set,Xm.set(t,i));let a=qm(t,e,Mm(),r);if(i.add(a),!Jm.has(t)){let e=Mm(),n=()=>{Lm(t,e,L.timestamp);for(let t of i)t.measure(e);U.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>U.read(n);Jm.set(t,a);let o=Qm(t);window.addEventListener(`resize`,a),t!==document.documentElement&&Ym.set(t,yu(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!Zm.has(t)){let e=Jm.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=U.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Zm.set(t,r)}let o=Jm.get(t);return U.read(o,!1,!0),()=>{W(o);let e=Xm.get(t);if(!e||(e.delete(a),e.size))return;Xm.delete(t);let n=Jm.get(t);Jm.delete(t),n&&(Qm(t).removeEventListener(`scroll`,n),Ym.get(t)?.(),window.removeEventListener(`resize`,n));let r=Zm.get(t);r&&(W(r),Zm.delete(t))}}function eh(e){return typeof window>`u`?!1:e?ui():li()}var th=new Map;function nh({container:e,target:t,axis:n}){let r=th.get(e);r||(r=new Map,th.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var rh=e=>{if(/v/u.test(e))return[];let t=Vm(e,0,0,0);return[Vm(e,0,1,0)-t,t-Vm(e,1,0,0),t]},ih=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function ah(e=Hm.All){if(e.length!==2)return;let[t,n]=e.map(rh),r=[ih(t),ih(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function oh(e,t){let{target:n,container:r,axis:i}=t,a=n&&ah(t.offset),o=eh(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?nh(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=$m(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(yu(c),yu([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function sh(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return P;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=xo(e);return yo($m(e=>n(e[t].progress,e),a))}return yo(oh(e,a))}var ch=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0)}),lh=e=>e?!e.current:!1;function uh(e,t,n,r){return{factory:i=>{let a,o=()=>{lh(n)||lh(r)?Ts.read(o):a=sh(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Ts.read(o),()=>{Es(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function dh(e,t){return typeof window>`u`?!1:e?ui()&&!!ah(t):li()&&!t}function fh({container:e,target:t,...n}={}){let r=j(ch);dh(t,n.offset)&&(r.scrollXProgress.accelerate=uh(`x`,n,e,t),r.scrollYProgress.accelerate=uh(`y`,n,e,t));let i=k(null),a=k(!1),o=ce(()=>(i.current=sh((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return we(()=>{if(a.current=!1,lh(e)||lh(t))a.current=!0;else return o()},[o]),O(()=>{if(!a.current)return;let n,r=()=>{let r=lh(e),i=lh(t);!r&&!i&&(n=o())};return Ts.read(r),()=>{Es(r),n?.()}},[o]),r}function ph(e){return fh({container:e})}function mh(){return fh()}function hh(e){let t=j(()=>Y(e)),{isStatic:n}=D(Rf);if(n){let[,n]=A(e);O(()=>t.on(`change`,n),[])}return t}function gh(e,t){let n=hh(t()),r=()=>n.set(t());return r(),we(()=>{let t=()=>U.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),W(r)}}),n}function _h(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=X(n)?n.get():n)}return r}return gh(t.filter(X),r)}function vh(e){ua.current=[],e();let t=gh(ua.current,e);return ua.current=void 0,t}function yh(e,t,n,r){if(typeof e==`function`)return vh(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return xh(e,t,n,r);let i=typeof t==`function`?t:Ed(t,n,r),a=Array.isArray(e)?bh(e,i):bh([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function bh(e,t){let n=j(()=>[]);return gh(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function xh(e,t,n,r){let i=j(()=>Object.keys(n)),a=j(()=>({}));for(let o of i)a[o]=yh(e,t,n[o],r);return a}function Sh(e,t={}){return Ch(e,t,Nd)}function Ch(e,t,n){let{isStatic:r}=D(Rf),i=()=>X(e)?e.get():e;if(r)return yh(i);let a=hh(i());return me(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function wh(e,t={}){return Ch(e,t,Rd)}function Th(e){let t=k(0),{isStatic:n}=D(Rf);O(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return U.update(r,!0),()=>W(r)},[e])}function Eh(){let e=hh(0);return Th(t=>e.set(t)),e}function Dh(e){let t=hh(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&U.update(n)};return km(e,`change`,()=>{U.update(n,!1,!0)}),t}var Oh=class extends da{constructor(){super(...arguments),this.isEnabled=!1}add(e){(J.has(e)||Di.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function kh(){return j(()=>new Oh(`auto`))}function Ah(){!Dl.current&&kl();let[e]=A(El.current);return e}function jh(){let e=Ah(),{reducedMotion:t}=D(Rf);return t===`never`?!1:t===`always`||e}function Mh(e){e.values.forEach(e=>e.stop())}function Nh(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&za(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Nh(e,t)})})}function Ph(e,t){if(Array.isArray(t))return Nh(e,t);if(typeof t==`string`)return Nh(e,[t]);za(e,t)}function Fh(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(Ya(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Ph(e,t)})},stop(){e.forEach(e=>{Mh(e)})},mount(){return()=>{t.stop()}}};return t}function Ih(e){return typeof e==`object`&&!Array.isArray(e)}function Lh(e,t,n,r){return e==null?[]:typeof e==`string`&&Ih(t)?So(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Rh(e,t,n){return e*(t+1)+n*t}function zh(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Bh(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(De(e,i),r--)}}function Vh(e,t,n,r,i,a){Bh(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:H(i,a,r[o]),easing:ot(n,o)})}function Hh(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Uh(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Wh=`easeInOut`,Gh=20;function Kh(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,zh(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=zh(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Yh(e),{delay:l=0,times:u=Xn(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=gi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Qh(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=F(b));let r=Nn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Yn(u,T),c.length===1&&c.unshift(null),m&&`${m}${Gh}`,m&&m<Gh){let e=b>0?_/b:0;b=Rh(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?qe(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:ot(f,e-1))}Hh(u,m,e)}let ee=w+b;Vh(r,c,y,u,w,ee),g=Math.max(x+b,g),f=Math.max(ee,f)};if(X(p)){let e=qh(p,s);_(m,h,Jh(`default`,e))}else{let e=Lh(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=qh(r,s);for(let e in m)_(m[e],Xh(h,e),Jh(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Uh);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Le(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Wh)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function qh(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Jh(e,t){return t[e]||(t[e]=[]),t[e]}function Yh(e){return Array.isArray(e)?e:[e]}function Xh(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Zh=e=>typeof e==`number`,Qh=e=>e.every(Zh);function $h(e,t){return X(e)||typeof e==`number`||typeof e==`string`&&!Ih(t)}function eg(e,t,n,r){let i=[];if($h(e,t))i.push(Os(e,Ih(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Lh(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...xs(r,t,s,vl.get(r))):i.push(...ho(po(r)??ws,r,t,s))}}return i}function tg(e,t,n){let r=[];return Kh(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Y(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Gn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...eg(n,e,t))}),r}function ng(e){return Array.isArray(e)&&e.some(Array.isArray)}function rg(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c=Z.current,l=c?.transition,u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),ng(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),l&&(r.defaultTransition={...l,...r.defaultTransition}),o=tg(e,{...u,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=eg(e,i,{...u,...l,...r},t)}let d=new na(o);return s&&d.finished.then(s),c&&d.finished.then(c.add(()=>d.stop())),t&&(t.animations.push(d),d.finished.then(()=>{De(t.animations,d)})),d}return i}var ig=Object.assign(rg(),{addEffect:uo,removeEffect:fo});function ag(){let e=j(()=>({current:null,animations:[]})),t=jh()??void 0,{skipAnimations:n}=D(Rf),r=ge(()=>rg({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return Tm(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function og(e,t,{deps:n=[],...r}={}){let i=k(null),a=k(t);return a.current=t,we(()=>{let t=i.current=xd(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function sg(e,t,n,r){if(e==null)return[];let i=So(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...pa(s,e)};i.duration&&=F(i.duration),i.delay&&=F(i.delay);let a=oa(r),c=aa(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=vd(r,i)),Or(t),oo(t,i),!a&&t.length<2&&t.unshift(vd(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new vi(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var cg=e=>{function t(t,n,r){return new na(sg(t,n,r,e))}return t},lg=cg();function ug(){let e=j(()=>({current:null,animations:[]})),t=j(()=>cg(e));return Tm(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function dg(){let e=j(Fh);return we(e.mount,[]),e}var fg=dg;function pg(){let e=D(Te);return e?e.custom:void 0}function mg(e,t,n,r){O(()=>{let i=e.current;if(n&&i)return ml(i,t,n,r)},[e,t,n,r])}var hg=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},gg=()=>new hg;function _g(){return j(gg)}function vg(e){return typeof e==`object`&&!!e&&Ip in e}function yg(e){if(vg(e))return e[Ip]}function bg(){return xg}function xg(e){gl.current&&(gl.current.isUpdating=!1,gl.current.blockUpdate(),e&&e())}function Sg(){return ce(()=>{let e=gl.current;e&&e.resetTree()},[])}function Cg(...e){let t=k(0),[n,r]=A(e[t.current]);return[n,ce(n=>{t.current=typeof n==`number`?n:Ue(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var wg={some:0,all:1};function Tg(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=So(e);t=xo(t);let 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:wg[i]});return a.forEach(e=>s.observe(e)),yo(()=>s.disconnect())}function Eg(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=A(a),[c,l]=A({});return O(()=>{let a=c.current=e.current;return!a||i&&o?void 0:Tg(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),O(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function Dg(){let[e,t]=ep(),n=bg(),r=k(-1);return O(()=>{U.postRender(()=>U.postRender(()=>{t===r.current&&(N.instantAnimations=!1)}))},[t]),i=>{n(()=>{N.instantAnimations=!0,e(),i(),r.current=t+1})}}function Og(){N.instantAnimations=!1}function kg(){let[e,t]=A(!0);return O(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Ag(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function jg(e){return t=>{let n=e.current;if(!n)return t;let r=Mg(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function Mg(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var Ng=new Map,Pg=new Map,Fg=(e,t)=>`${e}: ${J.has(t)?`transform`:t}`;function Ig(e,t,n){let r=Fg(e,t),i=Ng.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var Lg,Rg,zg=new Set;function Bg(){zg.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),zg.clear()}function Vg(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Ha];if(!a)return;window.MotionHandoffAnimation=Ig;let o=Fg(a,t);Rg||(Rg=hi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),Ng.set(o,{animation:Rg,startTime:null}),window.MotionHandoffAnimation=Ig,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Pg.has(e);let n=Fg(e,t);return!!Ng.get(n)},window.MotionHandoffMarkAsComplete=e=>{Pg.has(e)&&Pg.set(e,!0)},window.MotionHandoffIsComplete=e=>Pg.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=Fg(e,t),a=Ng.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(zg.add(a),n.render(Bg)):(Ng.delete(i),Ng.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=Wa(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{Rg.cancel();let a=hi(e,t,n,r);Lg===void 0&&(Lg=performance.now()),a.startTime=Lg,Ng.set(o,{animation:a,startTime:Lg}),i&&i(a)};Pg.set(a,!1),Rg.ready?Rg.ready.then(s).catch(P):s()}var Hg=()=>({}),Ug=class extends Pl{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Hg()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},Wg=Np({scrapeMotionValuesFromProps:Hg,createRenderState:Hg});function Gg(e){let[t,n]=A(e),r=Wg({},!1),i=j(()=>new Ug({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return he(()=>(i.mount({}),()=>i.unmount()),[i]),[t,j(()=>e=>Ya(i,e))]}var Kg=0,qg=({children:e})=>(O(()=>{},[]),i(rp,{id:j(()=>`asl-${Kg++}`),children:e})),Jg=1e5,Yg=e=>e>.001?1/e:Jg;function Xg(e){let t=hh(1),n=hh(1),{visualElement:r}=D(pp);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:yh(t,Yg),scaleY:yh(n,Yg)}}var Zg=w(null);function Qg(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:H(t.x.min,t.x.max,.5)+n.x,y:H(t.y.min,t.y.max,.5)+n.y},i=$g(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>e_(r.y,t)<e_(r.y,e)?t:e);if(c!==s)return t_(e,o,r.x,c,a);let l=n_(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=n_(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:Oe(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=H(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?Oe(e,o,o+s):e}function $g(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function e_(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function t_(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=H(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function n_(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var r_=(e,t)=>e.max<=t.min||t.max<=e.min;function i_(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=r_(e[r].x,e[i].x),n||=r_(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function a_({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l){let u=j(()=>wm[t]),d=k(new Map),[f,p]=A(`y`),m=k(!1),h=k(!1),g=k(null),_=n||f,v=new Set(a);d.current.forEach((e,t)=>{v.has(t)||d.current.delete(t)});let y=()=>a.flatMap(e=>{let t=d.current.get(e);return t?[{value:e,layout:t}]:[]}),b=()=>g.current?.ownerDocument.defaultView?.getComputedStyle(g.current).direction===`rtl`,x=(e,t)=>{let n=0,i=a.map(t=>d.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},S={axis:_,groupRef:g,hasReordered:h,onKeyDown:(e,t,n,r)=>{let{key:i,currentTarget:o}=e;if(e.defaultPrevented||e.target!==o||e.altKey||e.ctrlKey||e.metaKey)return;let s=y(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(!n)return;else if(i===`Escape`){let e=n.flatMap(e=>s.filter(t=>t.value===e));x(s.map(t=>n.includes(t.value)?e.shift():t),t),r(o)}else if(c<0||_!==`xy`&&_!==(l?`x`:`y`))return;else{let e=s.findIndex(({value:e})=>e===t),n=e+(c>1==!!(l&&b())?-1:1);e>-1&&s[n]&&x(Oe(s,e,n),t)}e.preventDefault()},registerItem:(e,t)=>{if(d.current.set(e,t),!n){let e=i_(a.flatMap(e=>{let t=d.current.get(e);return t?[t]:[]}));e!==f&&p(e)}},updateOrder:(e,t,n)=>{if(m.current)return;let r=y(),i=Qg(r,e,t,n,_,b()?`rtl`:`ltr`);r!==i&&(m.current=!0,h.current=!0,x(i,e))}};O(()=>{m.current=!1},[a]);let C=e=>{g.current=e,typeof l==`function`?l(e):l&&(l.current=e)},w={overflowAnchor:`none`,...c.style};return i(u,{...c,style:w,ref:C,onPointerDownCapture:e=>{h.current=!1,o?.(e)},onClickCapture:e=>{h.current&&e.detail&&(h.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(Zg.Provider,{value:S,children:e})})}var o_=te(a_),s_=50,c_=1.5,l_=new Set([`auto`,`scroll`]),u_=new WeakMap,d_=new WeakMap,f_=null;function p_(){if(f_){let e=h_(f_,`y`);e&&(d_.delete(e),u_.delete(e));let t=h_(f_,`x`);t&&t!==e&&(d_.delete(t),u_.delete(t)),f_=null}}function m_(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return l_.has(r)||i}function h_(e,t){let n=e?.parentElement;for(;n;){if(m_(n,t))return n;n=n.parentElement}return null}function g_(e){let t=Math.min(1,1-e/s_);return c_*t*t*L.delta}function __(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;return o<s_?{amount:-g_(o),edge:`start`}:s<s_?{amount:g_(s),edge:`end`}:{amount:0,edge:null}}function v_(e,t,n,r){if(!e)return;f_=e;let i=h_(e,n);if(!i)return;let{amount:a,edge:o}=__(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){d_.delete(i),u_.delete(i);return}let s=d_.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;d_.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);u_.set(i,e)}if(a>0){let e=u_.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function y_(e,t=0){return X(e)?e:hh(t)}function b_({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,onKeyDown:s,onBlur:c,layout:l=!0,...u},d){let f=j(()=>wm[r]),p=D(Zg),[m,h]=A(),g={x:y_(t.x),y:y_(t.y)},_=yh([g.x,g.y],([e,t])=>e||t?1:`unset`),{axis:v,registerItem:y,updateOrder:b,groupRef:x,hasReordered:S,onKeyDown:C}=p,w=v===`xy`||v,T=(e,t)=>{h(t),vl.get(e)?.animationState?.setActive(`whileDrag`,!!t)};return i(f,{drag:w,tabIndex:0,...u,dragSnapToOrigin:!0,style:{...t,x:g.x,y:g.y,zIndex:_},layout:l,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:g.x.get(),y:g.y.get()};b(n,o,r);let s=v===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:v;v_(x.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{S.current=!1,p_(),o&&o(e,t)},onKeyDown:e=>{s?.(e),C(e,n,m,T)},onBlur:e=>{c?.(e),m&&T(e.currentTarget)},onLayoutMeasure:e=>{y(n,e)},ref:d,ignoreStrict:!0,children:e})}var x_=te(b_),S_=t({Group:()=>o_,Item:()=>x_}),C_=t({AnimatePresence:()=>Zf,AnimateSharedLayout:()=>qg,AsyncMotionValueAnimation:()=>$i,DOMKeyframesResolver:()=>ro,DOMVisualElement:()=>Fl,DeprecatedLayoutGroupContext:()=>Qf,DocumentProjectionNode:()=>hl,DragControls:()=>hg,Feature:()=>vf,FlatTree:()=>jc,GroupAnimation:()=>ea,GroupAnimationWithThen:()=>na,HTMLProjectionNode:()=>_l,HTMLVisualElement:()=>Bl,JSAnimation:()=>hr,KeyframeResolver:()=>ii,LayoutAnimationBuilder:()=>eu,LayoutGroup:()=>rp,LayoutGroupContext:()=>Se,LazyMotion:()=>up,MotionConfig:()=>fp,MotionConfigContext:()=>Rf,MotionContext:()=>pp,MotionGlobalConfig:()=>N,MotionValue:()=>da,MotionValueState:()=>wo,NativeAnimation:()=>vi,NativeAnimationExtended:()=>Si,NativeAnimationWrapper:()=>ra,NodeStack:()=>Cc,ObjectVisualElement:()=>bf,PanSession:()=>Cu,PopChild:()=>Uf,PresenceChild:()=>Wf,PresenceContext:()=>Te,Reorder:()=>S_,SVGVisualElement:()=>Tf,SubscriptionManager:()=>Re,SwitchLayoutGroupContext:()=>Rp,ViewTransitionBuilder:()=>gf,VisualElement:()=>Pl,VisualElementDragControls:()=>Yu,WillChangeMotionValue:()=>Oh,acceleratedValues:()=>Di,activeScope:()=>Z,addAttrValue:()=>Uo,addBuilderToScope:()=>bo,addDomEvent:()=>ml,addEffect:()=>uo,addPointerEvent:()=>au,addPointerInfo:()=>iu,addSVGValue:()=>Ko,addScaleCorrector:()=>As,addStyleValue:()=>Ao,addToScope:()=>yo,addUniqueItem:()=>Ee,addValueToWillChange:()=>Va,alpha:()=>xt,analyseComplexValue:()=>Zt,animate:()=>ig,animateEffectSubject:()=>ho,animateElement:()=>xs,animateLayout:()=>Ff,animateMini:()=>lg,animateMotionValue:()=>xa,animateSingleValue:()=>Os,animateTarget:()=>qa,animateValue:()=>gr,animateValues:()=>mo,animateVariant:()=>Ja,animateView:()=>_f,animateVisualElement:()=>Ya,animationControls:()=>Fh,animationMapKey:()=>aa,animations:()=>Qp,anticipate:()=>Ze,applyAxisDelta:()=>ss,applyBoxDelta:()=>cs,applyGeneratorOptions:()=>_i,applyPointDelta:()=>os,applyPxDefaults:()=>oo,applyTreeDeltas:()=>ds,arc:()=>Da,aspectRatio:()=>xc,attachFollow:()=>Nd,attachSpring:()=>Rd,attrEffect:()=>Wo,axisDeltaEquals:()=>Sc,axisEquals:()=>_c,axisEqualsRounded:()=>yc,backIn:()=>Ye,backInOut:()=>Xe,backOut:()=>Je,bindToScope:()=>xo,boxEquals:()=>vc,boxEqualsRounded:()=>bc,buildHTMLStyles:()=>Io,buildProjectionTransform:()=>Oc,buildSVGAttrs:()=>Vo,buildSVGPath:()=>zo,buildTransform:()=>Ii,calcAxisDelta:()=>ec,calcBoxDelta:()=>tc,calcChildStagger:()=>sa,calcGeneratorDuration:()=>Mn,calcLength:()=>Q,calcRelativeAxis:()=>nc,calcRelativeAxisPosition:()=>ic,calcRelativeBox:()=>rc,calcRelativePosition:()=>ac,camelCaseAttributes:()=>xf,camelToDash:()=>Fo,cancelFrame:()=>W,cancelMicrotask:()=>Es,cancelSync:()=>Lf,checkVariantsDidChange:()=>kf,circIn:()=>Qe,circInOut:()=>et,circOut:()=>$e,clamp:()=>M,cleanDirtyNodes:()=>Wc,collectMotionValues:()=>ua,color:()=>B,compareByDepth:()=>Ac,complex:()=>V,containsCSSVariable:()=>yt,convertBoundingBoxToBox:()=>Zo,convertBoxToBoundingBox:()=>Qo,convertOffsetToTimes:()=>Zn,copyAxisDeltaInto:()=>Js,copyAxisInto:()=>Ks,copyBoxInto:()=>qs,correctBorderRadius:()=>Tc,correctBoxShadow:()=>Ec,correctParentTransform:()=>jg,createAnimationState:()=>Of,createAxis:()=>mc,createAxisDelta:()=>fc,createBox:()=>$,createDelta:()=>pc,createEffect:()=>To,createGeneratorEasing:()=>Nn,createProjectionNode:()=>Bc,createRenderBatcher:()=>Dn,createScopedAnimate:()=>rg,cubicBezier:()=>Ge,cubicBezierAsString:()=>fi,defaultEasing:()=>Qn,defaultOffset:()=>Xn,defaultTransformValue:()=>Lr,defaultValueTypes:()=>wr,degrees:()=>Pt,delay:()=>Ms,delayInSeconds:()=>Ns,dimensionValueTypes:()=>Qa,disableInstantTransitions:()=>Og,distance:()=>bu,distance2D:()=>xu,domAnimation:()=>Em,domMax:()=>Dm,domMin:()=>Om,drag:()=>od,eachAxis:()=>kc,easeIn:()=>tt,easeInOut:()=>rt,easeOut:()=>nt,easingDefinitionToFunction:()=>ut,elementDragControls:()=>Ju,expectsResolvedDragConstraints:()=>nd,extractEventInfo:()=>ru,fillOffset:()=>Yn,fillWildcards:()=>Or,filterProps:()=>Dp,findDimensionValueType:()=>$a,findEffect:()=>po,findValueType:()=>Bd,flushKeyframeResolvers:()=>ni,followValue:()=>Md,frame:()=>U,frameData:()=>L,frameSteps:()=>On,generateLinearEasing:()=>An,getAnimatableNone:()=>Dr,getAnimationMap:()=>oa,getComputedStyle:()=>vd,getDefaultTransition:()=>va,getDefaultValueType:()=>Tr,getEasingForSegment:()=>ot,getFeatureDefinitions:()=>Nl,getFinalKeyframe:()=>ir,getMixer:()=>gn,getOptimisedAppearId:()=>Wa,getOriginIndex:()=>wd,getValueAsType:()=>Ni,getValueTransition:()=>pa,getVariableValue:()=>Aa,getVariantContext:()=>Mf,getViewAnimationLayerInfo:()=>Qd,getViewAnimations:()=>$d,globalProjectionState:()=>Mc,handOffElementState:()=>Cs,has2DTranslate:()=>rs,hasComplexValues:()=>Xt,hasReducedMotionListener:()=>Dl,hasScale:()=>ts,hasTransform:()=>ns,hasWarned:()=>Ve,hex:()=>Mt,hover:()=>ld,hsla:()=>zt,hslaToRgba:()=>on,inView:()=>Tg,inertia:()=>Kn,initPrefersReducedMotion:()=>kl,interpolate:()=>Jn,invariant:()=>je,invisibleValues:()=>pn,isAnimationControls:()=>yl,isBezierDefinition:()=>st,isBrowser:()=>Ce,isCSSVariableName:()=>ht,isCSSVariableToken:()=>_t,isControllingVariants:()=>Cl,isDeltaZero:()=>gc,isDragActive:()=>Fu,isDragging:()=>Pu,isEasingArray:()=>at,isElementKeyboardAccessible:()=>ju,isElementTextInput:()=>Nu,isForcedMotionValue:()=>Ll,isGenerator:()=>gi,isHTMLElement:()=>_o,isKeyframesTarget:()=>Ia,isMotionComponent:()=>vg,isMotionValue:()=>X,isNear:()=>$s,isNodeOrChild:()=>ud,isNumericalString:()=>Me,isObject:()=>Ne,isPrimaryPointer:()=>nu,isSVGElement:()=>vo,isSVGSVGElement:()=>Ps,isSVGTag:()=>Sf,isTransitionDefined:()=>ba,isValidMotionProp:()=>Tp,isVariantLabel:()=>bl,isVariantNode:()=>wl,isWaapiSupportedEasing:()=>so,isWillChangeMotionValue:()=>Ba,isZeroValueString:()=>Pe,keyframes:()=>$n,m:()=>Jp,makeAnimationInstant:()=>Ei,makeUseVisualState:()=>Np,mapEasingToNativeEasing:()=>mi,mapValue:()=>Id,maxGeneratorDuration:()=>jn,measurePageBox:()=>_s,measureViewportBox:()=>gs,memo:()=>Fe,microtask:()=>Ts,millisecondsToSeconds:()=>I,mirrorEasing:()=>Ke,mix:()=>Cn,mixArray:()=>_n,mixColor:()=>fn,mixComplex:()=>bn,mixImmediate:()=>sn,mixLinearColor:()=>cn,mixNumber:()=>H,mixObject:()=>vn,mixValues:()=>Vs,mixVisibility:()=>mn,motion:()=>wm,motionValue:()=>Y,moveItem:()=>Oe,nodeGroup:()=>Pf,noop:()=>P,number:()=>bt,numberValueTypes:()=>K,optimizedAppearDataAttribute:()=>Ua,optimizedAppearDataId:()=>Ha,originProps:()=>Oo,parseAnimateLayoutArgs:()=>tu,parseCSSVariable:()=>ka,parseValueFromTransform:()=>Rr,percent:()=>Ft,pipe:()=>Ie,pixelsToPercent:()=>wc,positionalKeys:()=>Fa,prefersReducedMotion:()=>El,press:()=>_d,processFrame:()=>Ds,progress:()=>Le,progressPercentage:()=>Rt,propEffect:()=>ws,propagateDirtyNodes:()=>Uc,px:()=>z,readSVGValue:()=>qo,readStyleValue:()=>Mo,readTransformValue:()=>zr,recordStats:()=>Cd,releaseElement:()=>Ss,removeAxisDelta:()=>sc,removeAxisTransforms:()=>cc,removeBoxTransforms:()=>dc,removeEffect:()=>fo,removeItem:()=>De,removePointDelta:()=>oc,renderHTML:()=>Il,renderSVG:()=>Cf,resize:()=>yu,resolveElements:()=>So,resolveMotionValue:()=>Fs,resolveTransition:()=>fa,resolveVariant:()=>Na,resolveVariantFromProps:()=>Ma,reverseEasing:()=>qe,rgbUnit:()=>kt,rgba:()=>At,rootProjectionNode:()=>gl,round:()=>mr,sampleDelta:()=>10,scale:()=>St,scaleCorrectors:()=>ks,scalePoint:()=>as,scopeMotion:()=>xd,scrapeHTMLMotionValuesFromProps:()=>Rl,scrapeSVGMotionValuesFromProps:()=>wf,scroll:()=>sh,scrollInfo:()=>$m,secondsToMilliseconds:()=>F,setDragLock:()=>Iu,setFeatureDefinitions:()=>Ml,setStyle:()=>oi,setTarget:()=>za,spring:()=>Gn,springValue:()=>Ld,stagger:()=>Td,startOptimizedAppearAnimation:()=>Vg,startWaapiAnimation:()=>hi,statsBuffer:()=>js,steps:()=>it,styleEffect:()=>Po,styleSubjectEffect:()=>No,supportedWaapiEasing:()=>pi,supportsBrowserAnimation:()=>Mi,supportsFlags:()=>si,supportsLinearEasing:()=>di,supportsPartialKeyframes:()=>co,supportsScrollTimeline:()=>li,supportsViewTimeline:()=>ui,supportsWaapi:()=>ji,svgEffect:()=>Yo,svgSubjectEffect:()=>Jo,sync:()=>If,testValueType:()=>Za,time:()=>R,toMediaQuery:()=>bd,transform:()=>Ed,transformAxis:()=>ps,transformBox:()=>hs,transformBoxPoints:()=>$o,transformPropOrder:()=>q,transformProps:()=>J,transformValue:()=>Fd,transformValueTypes:()=>Cr,transformViewBoxPoint:()=>Ag,translateAxis:()=>fs,unwrapMotionComponent:()=>yg,updateMotionValuesFromProps:()=>Tl,useAnimate:()=>ag,useAnimateMini:()=>ug,useAnimation:()=>fg,useAnimationControls:()=>dg,useAnimationFrame:()=>Th,useComposedRefs:()=>Vf,useCycle:()=>Cg,useDeprecatedAnimatedState:()=>Gg,useDeprecatedInvertedScale:()=>Xg,useDomEvent:()=>mg,useDragControls:()=>_g,useElementScroll:()=>ph,useFollowValue:()=>Sh,useForceUpdate:()=>ep,useInView:()=>Eg,useInstantLayoutTransition:()=>bg,useInstantTransition:()=>Dg,useIsPresent:()=>qf,useIsomorphicLayoutEffect:()=>we,useMotionTemplate:()=>_h,useMotionValue:()=>hh,useMotionValueEvent:()=>km,usePageInView:()=>kg,usePresence:()=>Kf,usePresenceData:()=>pg,useReducedMotion:()=>Ah,useReducedMotionConfig:()=>jh,useResetProjection:()=>Sg,useScopeMotion:()=>og,useScroll:()=>fh,useSpring:()=>wh,useTime:()=>Eh,useTransform:()=>yh,useUnmountEffect:()=>Tm,useVelocity:()=>Dh,useViewportScroll:()=>mh,useWillChange:()=>kh,variantPriorityOrder:()=>xl,variantProps:()=>Sl,velocityPerSecond:()=>ze,vh:()=>It,visualElementStore:()=>vl,vw:()=>Lt,warnOnce:()=>He,warning:()=>Ae,wrap:()=>Ue}),w_=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},T_=C_;w_.register([`framer-motion`,`motion/react`,`motion`],T_),window.Motion=T_})();