@yuriai/web 0.3.1 → 0.3.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/assets/{AgentAvatar-BwB9S5gR.js → AgentAvatar-B9ucI2MO.js} +1 -1
  2. package/dist/assets/{AssistantConversationSurface-BQJZ0RY8.js → AssistantConversationSurface-Blm96EOU.js} +3 -3
  3. package/dist/assets/{AssistantSessionCard-CSpwjbEO.js → AssistantSessionCard-DX38brAH.js} +2 -2
  4. package/dist/assets/{AssistantUnreadBadge-DJQUBf7P.js → AssistantUnreadBadge-RQ0DmUi6.js} +1 -1
  5. package/dist/assets/{AssistantView-BNYeCdPt.js → AssistantView-Bo5BZS0L.js} +1 -1
  6. package/dist/assets/{DiagramView-4xy78PeY.js → DiagramView-B-78GB_f.js} +1 -1
  7. package/dist/assets/{FadeInOnReveal-BSm_Y5N-.js → FadeInOnReveal-C-CtY8g9.js} +1 -1
  8. package/dist/assets/{GuiPluginPage-Zn-NJGcV.js → GuiPluginPage-B1YKmblD.js} +1 -1
  9. package/dist/assets/{GuiPluginSurface-BzbqxS7y.js → GuiPluginSurface-hm7K6byY.js} +1 -1
  10. package/dist/assets/{GuiPluginWindow-DACvDqJe.js → GuiPluginWindow-7DO5ZOvG.js} +1 -1
  11. package/dist/assets/{Icon-CbRhi6Fu.js → Icon-C6CNZZkk.js} +1 -1
  12. package/dist/assets/{ImageLoadingPlaceholder-DoSf5jCj.js → ImageLoadingPlaceholder-B6Zer2YL.js} +1 -1
  13. package/dist/assets/{LoadingImage-2mWVVnaP.js → LoadingImage-BPX-DCAP.js} +1 -1
  14. package/dist/assets/MarkdownRenderer-DrXbG9Y5.js +2 -0
  15. package/dist/assets/{MarkdownRendererImpl-Bs4elVH3.js → MarkdownRendererImpl-D9FUbv9O.js} +1 -1
  16. package/dist/assets/{MarkstreamRendererImpl-rHAAvqOj.js → MarkstreamRendererImpl-BXEYnxur.js} +1 -1
  17. package/dist/assets/{MobileDetailNavigation-l_n1taf1.js → MobileDetailNavigation-CpjB_jck.js} +1 -1
  18. package/dist/assets/{MobileResizableSheet-eCQDQAYS.js → MobileResizableSheet-Cn4FFye8.js} +1 -1
  19. package/dist/assets/{MobileShareBridge-DGb2HExd.js → MobileShareBridge-DuDpHmZD.js} +1 -1
  20. package/dist/assets/{MobileSurface-lAYRO5L7.js → MobileSurface-D93ybkxD.js} +1 -1
  21. package/dist/assets/{MultiRunWindow-BzkslOOz.js → MultiRunWindow--3wAH_2i.js} +1 -1
  22. package/dist/assets/{OnboardingScreen-YNlP1MQe.js → OnboardingScreen-Cr6g_uej.js} +1 -1
  23. package/dist/assets/{OverlayScrollbar-CTdoPf6E.js → OverlayScrollbar-CHgqvqG3.js} +1 -1
  24. package/dist/assets/{RemoteAssistantSessionCard-B1Pavyxf.js → RemoteAssistantSessionCard-CE-B_FHL.js} +1 -1
  25. package/dist/assets/{SettingsView-Bl2kgume.js → SettingsView-BoQRiuVv.js} +1 -1
  26. package/dist/assets/{SettingsWindow-IUQlRvAB.js → SettingsWindow-B1JkVKIr.js} +1 -1
  27. package/dist/assets/{SetupTourDialog-CPBnXSzq.js → SetupTourDialog-B43dbK2I.js} +1 -1
  28. package/dist/assets/{TerminalView-9qSzxiHi.js → TerminalView-DKS2KRh0.js} +1 -1
  29. package/dist/assets/{ToolOutputDialog-CmhQV6kW.js → ToolOutputDialog-CBk9ZNkY.js} +1 -1
  30. package/dist/assets/{VoiceSettings-CfYrDKgr.js → VoiceSettings-C6jznmzY.js} +1 -1
  31. package/dist/assets/{YuriLogo-VXtP1vhh.js → YuriLogo-DNvrroBa.js} +1 -1
  32. package/dist/assets/{YuriWordmark-B7lmpLRB.js → YuriWordmark-bJX68f2Y.js} +1 -1
  33. package/dist/assets/{assistant-attachment-cache-D-LmCflm.js → assistant-attachment-cache-zu9sz4ex.js} +1 -1
  34. package/dist/assets/{capgoAdapter-BEKE5h5I.js → capgoAdapter-B3s9u7sG.js} +1 -1
  35. package/dist/assets/{checkbox-gVpQUiVY.js → checkbox-Cossbslk.js} +1 -1
  36. package/dist/assets/{client-1Fk5IbQR.js → client-CgAFd1ew.js} +1 -1
  37. package/dist/assets/{collapsible-DCBnoRLL.js → collapsible-Bt9trgB2.js} +1 -1
  38. package/dist/assets/context-menu-DUzve8Id.js +1 -0
  39. package/dist/assets/{device-QL8KNSLM.js → device-C8ZHblkr.js} +1 -1
  40. package/dist/assets/{diagram-DGTlsED0.js → diagram-CCwMM241.js} +1 -1
  41. package/dist/assets/{dialog-wyG1j1ZY.js → dialog-CDfUL86v.js} +1 -1
  42. package/dist/assets/{fileMentionTouchSelection-YTaXrwGt.js → fileMentionTouchSelection-BsMdH79T.js} +1 -1
  43. package/dist/assets/{fileReferenceActions-cYqdsXFz.js → fileReferenceActions-DX-Stroq.js} +1 -1
  44. package/dist/assets/{gitApi-Bxuv7iZR.js → gitApi-6bjyfJ0P.js} +1 -1
  45. package/dist/assets/{gitApiHttp-B0FJaIhU.js → gitApiHttp-BEMPJCIG.js} +1 -1
  46. package/dist/assets/{historyImportQueries-D_9RlrLp.js → historyImportQueries-eR7Bj6VN.js} +1 -1
  47. package/dist/assets/host-iM7aLAip.js +1 -0
  48. package/dist/assets/{i18n-qHllte6P.js → i18n-OsFhnlRH.js} +1 -1
  49. package/dist/assets/{image-loading-DBqnxgDH.js → image-loading-ZB1bYt51.js} +1 -1
  50. package/dist/assets/{input-Bv6SbhDB.js → input-Dc9Few6S.js} +1 -1
  51. package/dist/assets/{input-store-CsY-uaSj.js → input-store-DRTu4uZc.js} +1 -1
  52. package/dist/assets/{insertionBoundaries-CIvMb0MT.js → insertionBoundaries-DImWCHHe.js} +1 -1
  53. package/dist/assets/{main-DrYyJLms.js → main-C27KIa4w.js} +21 -21
  54. package/dist/assets/{main-wQ79inDK.js → main-ClvHuS1l.js} +2 -2
  55. package/dist/assets/{markdownHeightCache-D2mAXH8W.js → markdownHeightCache-CgEzszwt.js} +1 -1
  56. package/dist/assets/{markdownTheme-DFDWa8Gh.js → markdownTheme-C2LJ3cJo.js} +1 -1
  57. package/dist/assets/{mcpQueries-CUIUymwN.js → mcpQueries-D-c3h-8F.js} +1 -1
  58. package/dist/assets/miniChat-BV82mwxi.js +2 -0
  59. package/dist/assets/mobile-CiUCPZu-.js +2 -0
  60. package/dist/assets/{mobileBackNavigation-DwKmPsU6.js → mobileBackNavigation-CX1dqatK.js} +1 -1
  61. package/dist/assets/{mobileConnections-BaVOE5PX.js → mobileConnections-BdfBfyV4.js} +2 -2
  62. package/dist/assets/{multirun-Di_vmRR_.js → multirun-BqGvXgzB.js} +1 -1
  63. package/dist/assets/{native-config-B3D9Nv0p.js → native-config--i6wCD4P.js} +1 -1
  64. package/dist/assets/{navigation-lAkZZJTN.js → navigation-DEIXKsz9.js} +2 -2
  65. package/dist/assets/{openRemoteProjectSession-APe4n1gm.js → openRemoteProjectSession-DkaBkopU.js} +1 -1
  66. package/dist/assets/{project-preview-2H-TmJkd.js → project-preview-BhNspxqe.js} +1 -1
  67. package/dist/assets/{projectMeta--OgVpG4Z.js → projectMeta-CX7xsn7U.js} +1 -1
  68. package/dist/assets/{prompt-attachment-upload-9fjmgafL.js → prompt-attachment-upload-8bssUUT3.js} +1 -1
  69. package/dist/assets/pwa-CUF8fchS.js +2 -0
  70. package/dist/assets/{queue-abort-optimistic-DYFaJQrY.js → queue-abort-optimistic-DnJeXLxG.js} +1 -1
  71. package/dist/assets/{react-DVXKhubI.js → react-_vsw1y6L.js} +1 -1
  72. package/dist/assets/{readiness-Di6b1RDu.js → readiness-jkhl68VV.js} +2 -2
  73. package/dist/assets/{reference-history-DO4BO4M5.js → reference-history-D9aLqiz1.js} +1 -1
  74. package/dist/assets/{remote-input-store-84i8uDyM.js → remote-input-store-DFBMyVS-.js} +1 -1
  75. package/dist/assets/{remoteProjectQueries-Dfms-cCx.js → remoteProjectQueries-8giIAvzL.js} +1 -1
  76. package/dist/assets/{remoteSessionReference-CabFQNo2.js → remoteSessionReference-BODrh2wf.js} +1 -1
  77. package/dist/assets/{renderElectronMiniChatApp-BkHYTNcZ.js → renderElectronMiniChatApp-Bj1TCHnZ.js} +2 -2
  78. package/dist/assets/{renderMobileApp-tKRbh1UN.js → renderMobileApp-ZBJF50-1.js} +5 -5
  79. package/dist/assets/{runtime-file-download-D11Nnedg.js → runtime-file-download-Dc459c9e.js} +1 -1
  80. package/dist/assets/{runtime-file-resource-CuLP3xp7.js → runtime-file-resource-DnhWnndu.js} +1 -1
  81. package/dist/assets/{runtimeConfig-Ez0YVcLS.js → runtimeConfig-9qXX2ix1.js} +1 -1
  82. package/dist/assets/runtimeEndpointReset-nUC5uMtu.js +151 -0
  83. package/dist/assets/{scheduledTaskNavigation-y5g8D2ee.js → scheduledTaskNavigation-Bi7sRiFW.js} +1 -1
  84. package/dist/assets/{select-CrwouN4e.js → select-RfWO-Q8r.js} +1 -1
  85. package/dist/assets/{sessionLookup-BpilZd_w.js → sessionLookup-BnWJnI1i.js} +1 -1
  86. package/dist/assets/{sortable-tabs-strip-Ijc1-z3K.js → sortable-tabs-strip-BQhg8ugs.js} +1 -1
  87. package/dist/assets/{speechSettingsQueries-cV1mK7RB.js → speechSettingsQueries-B5nF726M.js} +1 -1
  88. package/dist/assets/{store-BOD3jjMl.js → store-Dj5cSf8B.js} +1 -1
  89. package/dist/assets/{terminalApi-Cq0vjFe1.js → terminalApi-eR_918UZ.js} +1 -1
  90. package/dist/assets/{textarea-BPhvk5Vd.js → textarea-7J-b5mR2.js} +1 -1
  91. package/dist/assets/{tooltip-BQ1xVNC6.js → tooltip-IVmealjG.js} +1 -1
  92. package/dist/assets/types-fkNzcMt6.js +2 -0
  93. package/dist/assets/{useAppFontEffects-PZ3Y-JIL.js → useAppFontEffects-BGhC1aSo.js} +62 -61
  94. package/dist/assets/{useAssistantUIStore-jOKVcBK8.js → useAssistantUIStore-CphyXHEY.js} +1 -1
  95. package/dist/assets/{useDesktopWindowControlsLayout-Z6PBzcuL.js → useDesktopWindowControlsLayout-CqAP968J.js} +1 -1
  96. package/dist/assets/{useDictation-De8WB_Z7.js → useDictation-Do12BpsS.js} +1 -1
  97. package/dist/assets/{useEffectiveDirectory-DWiz5-Xa.js → useEffectiveDirectory-D_gt64gp.js} +1 -1
  98. package/dist/assets/{useFontPreferences-CO-L-Gd7.js → useFontPreferences-DFF-uEAD.js} +1 -1
  99. package/dist/assets/{useMobileHtmlPreviewStore-EOAzZiAy.js → useMobileHtmlPreviewStore-DUquFMmd.js} +1 -1
  100. package/dist/assets/{useMobileNavigationStore-D2FLOd1l.js → useMobileNavigationStore-Dlt-Ip-3.js} +6 -6
  101. package/dist/assets/{usePluginsStore-pd_Lgl6m.js → usePluginsStore-GVUi9ssB.js} +1 -1
  102. package/dist/assets/{useProjectRuntimeAPIs-Me0Uy2tM.js → useProjectRuntimeAPIs-MBstcTXw.js} +1 -1
  103. package/dist/assets/{useStreamingTextThrottle-eJaQ-Vpw.js → useStreamingTextThrottle-B9fGpeQT.js} +1 -1
  104. package/dist/assets/{useThemeSystem-C57Z9mV2.js → useThemeSystem-D2YBbLma.js} +1 -1
  105. package/dist/assets/{useUIStore-Cfmg-aDQ.js → useUIStore-CYex4rbF.js} +1 -1
  106. package/dist/assets/{vendor-base-ui-z2M4boRm.js → vendor-base-ui-fom6orB6.js} +1 -1
  107. package/dist/assets/{vendor-cmdk-BgHvMv5l.js → vendor-cmdk-BKc6RGpL.js} +1 -1
  108. package/dist/assets/{vendor-dnd-kit-accessibility-gVi9ga0x.js → vendor-dnd-kit-accessibility-Cf9EEJvm.js} +1 -1
  109. package/dist/assets/{vendor-dnd-kit-core-Dd5yS2-T.js → vendor-dnd-kit-core-DRyd7I0I.js} +1 -1
  110. package/dist/assets/{vendor-dnd-kit-sortable-CV-SGi8y.js → vendor-dnd-kit-sortable-C8S8cyRO.js} +1 -1
  111. package/dist/assets/{vendor-framer-motion-CF9BQLta.js → vendor-framer-motion-DiGWHm7K.js} +1 -1
  112. package/dist/assets/{vendor-markstream-react-TwEpkgfP.js → vendor-markstream-react-Cwc-VXWM.js} +3 -3
  113. package/dist/assets/vendor-motion-DtmZZeEm.js +1 -0
  114. package/dist/assets/{vendor-pierre-diffs-tqo4Z3TC.js → vendor-pierre-diffs-HJfPTtu2.js} +1 -1
  115. package/dist/assets/{vendor-react-P8wFrkcT.js → vendor-react-D5BntRmA.js} +1 -1
  116. package/dist/assets/{vendor-react-drawio-CQW1YP2l.js → vendor-react-drawio-DXADKcSU.js} +1 -1
  117. package/dist/assets/{vendor-reactuses-core-Dyjw5sZR.js → vendor-reactuses-core-B8s-Rcd-.js} +1 -1
  118. package/dist/assets/{vendor-sonner-B5HgJenP.js → vendor-sonner-Y-KPX915.js} +1 -1
  119. package/dist/assets/{vendor-stream-diffs-DCMtZcS3.js → vendor-stream-diffs-BMT21f-n.js} +2 -2
  120. package/dist/assets/{vendor-tanstack-react-query-B-KblYBV.js → vendor-tanstack-react-query-ChSd65dm.js} +1 -1
  121. package/dist/assets/{vendor-tanstack-react-virtual-BkuqzrEV.js → vendor-tanstack-react-virtual-WY42p6U6.js} +1 -1
  122. package/dist/assets/{vendor-zustand-Cwko4FG1.js → vendor-zustand-CNn3HHhT.js} +1 -1
  123. package/dist/index.html +18 -18
  124. package/dist/mini-chat.html +18 -18
  125. package/dist/mobile.html +1 -1
  126. package/package.json +1 -1
  127. package/server/lib/gui-customization/skill/references/work-status.md +4 -2
  128. package/dist/assets/MarkdownRenderer-BHK_Ba71.js +0 -2
  129. package/dist/assets/context-menu-w28HFXdm.js +0 -1
  130. package/dist/assets/host-D9EDWNmx.js +0 -1
  131. package/dist/assets/miniChat-BTPvGmaS.js +0 -2
  132. package/dist/assets/mobile-DtTmIm4s.js +0 -2
  133. package/dist/assets/pwa-B6o6xxPS.js +0 -2
  134. package/dist/assets/runtimeEndpointReset-C105_37x.js +0 -151
  135. package/dist/assets/types-CO7YCNVq.js +0 -2
  136. package/dist/assets/vendor-motion-Dv27UnOI.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-z2M4boRm.js";function r(e,t){e.indexOf(t)===-1&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var a=(e,t,n)=>n>t?t:n<e?e:n,o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return r(this.subscriptions,e),()=>this.remove(e)}remove(e){i(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}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},y=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function b(e,t,n,r){return e===t&&n===r?d:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=y(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(y(s+1e-7,e,n)-i-r)}return y(s,t,r)}}var x=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,S=e=>t=>1-e(1-t),C=b(.33,1.53,.69,.99),w=S(C),T=x(w),ee=e=>e>=1?1:(e*=2)<1?.5*w(e):.5*(2-2**(-10*(e-1))),te=e=>1-Math.sin(Math.acos(e)),ne=S(te),E=x(te),re=b(.42,0,1,1),ie=b(0,0,.58,1),ae=b(.42,0,.58,1),oe=e=>Array.isArray(e)&&typeof e[0]!=`number`;function se(e,t){return oe(e)?e[v(0,e.length,t)]:e}var ce=e=>Array.isArray(e)&&typeof e[0]==`number`,le={linear:d,easeIn:re,easeInOut:ae,easeOut:ie,circIn:te,circInOut:E,circOut:ne,backIn:w,backInOut:T,backOut:C,anticipate:ee},ue=e=>typeof e==`string`,de=e=>{if(ce(e)){e.length;let[t,n,r,i]=e;return b(t,n,r,i)}return ue(e)?(le[e],`${e}`,le[e]):e},D={delta:0,timestamp:0,isProcessing:!1},fe;function pe(){fe=void 0}var O={now:()=>(fe===void 0&&O.set(D.isProcessing||o.useManualTiming?D.timestamp:performance.now()),fe),set:e=>{fe=e,queueMicrotask(pe)}},me=e=>Math.round(e*1e5)/1e5,he=e=>t=>typeof t==`string`&&t.startsWith(e),ge=he(`--`),_e=he(`var(--`),ve=e=>_e(e)?ye.test(e.split(`/*`)[0].trim()):!1,ye=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function be(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var xe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Se={...xe,transform:e=>a(0,1,e)},Ce={...xe,default:1},we=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Te(e){return e==null}var Ee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,De=(e,t)=>n=>!!(typeof n==`string`&&Ee.test(n)&&n.startsWith(e)||t&&!Te(n)&&Object.prototype.hasOwnProperty.call(n,t)),Oe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(we);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ke=e=>a(0,255,e),Ae={...xe,transform:e=>Math.round(ke(e))},je={test:De(`rgb`,`red`),parse:Oe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ae.transform(e)+`, `+Ae.transform(t)+`, `+Ae.transform(n)+`, `+me(Se.transform(r))+`)`};function Me(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 Ne={test:De(`#`),parse:Me,transform:je.transform},Pe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),k=Pe(`deg`),A=Pe(`%`),j=Pe(`px`),Fe=Pe(`vh`),Ie=Pe(`vw`),Le={...A,parse:e=>A.parse(e)/100,transform:e=>A.transform(e*100)},Re={test:De(`hsl`,`hue`),parse:Oe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+A.transform(me(t))+`, `+A.transform(me(n))+`, `+me(Se.transform(r))+`)`},M={test:e=>je.test(e)||Ne.test(e)||Re.test(e),parse:e=>je.test(e)?je.parse(e):Re.test(e)?Re.parse(e):Ne.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?je.transform(e):Re.transform(e),getAnimatableNone:e=>{let t=M.parse(e);return t.alpha=0,M.transform(t)}},ze=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Be=new RegExp(we.source),Ve=new RegExp(ze.source,`i`);function He(e){return isNaN(e)&&typeof e==`string`&&(Be.test(e)||Ve.test(e))}var Ue=`number`,We=`color`,Ge=`var`,Ke=`var(`,qe="${}",Je=/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 Ye(e){let t=e.toString();return Be.test(t)||Ve.test(t)}function Xe(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Je,e=>(M.test(e)?(r.color.push(a),i.push(We),n.push(M.parse(e))):e.startsWith(Ke)?(r.var.push(a),i.push(Ge),n.push(e)):(r.number.push(a),i.push(Ue),n.push(parseFloat(e))),++a,qe)).split(qe),indexes:r,types:i}}function Ze(e){return Xe(e).values}function Qe({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===Ue?me(r[a]):e===We?M.transform(r[a]):r[a]}return i}}function $e(e){return Qe(Xe(e))}var et=e=>typeof e==`number`?0:M.test(e)?M.getAnimatableNone(e):e,tt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:et(e);function nt(e){let t=Xe(e);return Qe(t)(t.values.map((e,n)=>tt(e,t.split[n])))}var N={test:He,parse:Ze,createTransformer:$e,getAnimatableNone:nt};function rt(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 it({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=rt(s,r,e+1/3),a=rt(s,r,e),o=rt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function at(e,t){return n=>n>0?t:e}var P=(e,t,n)=>e+(t-e)*n,ot=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},st=[Ne,je,Re],ct=e=>st.find(t=>t.test(e));function lt(e){let t=ct(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Re&&(n=it(n)),n}var ut=(e,t)=>{let n=lt(e),r=lt(t);if(!n||!r)return at(e,t);let i={...n};return e=>(i.red=ot(n.red,r.red,e),i.green=ot(n.green,r.green,e),i.blue=ot(n.blue,r.blue,e),i.alpha=P(n.alpha,r.alpha,e),je.transform(i))},dt=new Set([`none`,`hidden`]);function ft(e,t){return dt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pt(e,t){return n=>P(e,t,n)}function mt(e){return typeof e==`number`?pt:typeof e==`string`?ve(e)?at:M.test(e)?ut:vt:Array.isArray(e)?ht:typeof e==`object`?M.test(e)?ut:gt:at}function ht(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _t(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 vt=(e,t)=>{let n=N.createTransformer(t),r=Xe(e),i=Xe(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?dt.has(e)&&!i.values.length||dt.has(t)&&!r.values.length?ft(e,t):f(ht(_t(r,i),i.values),n):(`${e}${t}`,at(e,t))},yt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function bt(e,t){let n=yt.exec(e);if(!n)return;let r=yt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>me(P(a,o,e))+i}function xt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return P(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=bt(e,t);if(n)return n}return mt(e)(e,t)}var St=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ct(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 wt=40;function Tt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,s=St.reduce((e,t)=>(e[t]=Ct(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(s-n.timestamp,wt),1)),n.timestamp=s,n.isProcessing=!0,c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),h.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(g))},_=()=>{r=!0,i=!0,n.isProcessing||e(g)};return{schedule:St.reduce((e,t)=>{let n=s[t];return e[t]=(e,t=!1,i=!1)=>(r||_(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<St.length;t++)s[St[t]].cancel(e)},state:n,steps:s}}var{schedule:F,cancel:I,steps:Et}=Tt(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0,D),Dt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>I(t),now:()=>D.isProcessing?D.timestamp:O.now()}},Ot=(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)})`},kt=2e4;function At(e,t=50,n=kt,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 jt(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(At(o),kt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:g(s)}}var L={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},Mt=e=>e<0?1/Math.max(1+e,L.minDamping):Math.max(1-e,L.minDamping);function Nt(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 It(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Pt(e,t){return e*Math.sqrt(1-t*t)}var Ft=12;function It(e,t,n){let r=n;for(let n=1;n<Ft;n++)r-=e(r)/t(r);return r}var Lt=.001;function Rt({duration:e=L.duration,bounce:t=L.bounce}){let n,r;L.maxDuration;let i=Mt(t);e=a(L.minDuration,L.maxDuration,g(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Pt(t,i),o=Math.exp(-r);return Lt-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Pt(t*t,i);return(-n(t)+Lt>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 o=5/e,s=It(n,r,o),c=s*Nt(i,s*e),l=c*c;return{stiffness:l,damping:i*2*Math.sqrt(l),duration:h(e)}}var zt=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Bt(e,t){if(zt(e,t))return e}function Vt(e){let t=Bt(e.stiffness),n=Bt(e.damping,!0),r=Bt(e.mass),i={...e,stiffness:t??L.stiffness,damping:n??L.damping,mass:r??L.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=Mt(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Nt(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Rt(i)),i.isResolvedFromDuration=!0;(!zt(i.stiffness)||!zt(i.damping,!0))&&(i.stiffness=L.stiffness,i.damping=L.damping)}return i}function Ht(e=L.visualDuration,t=L.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}=Vt({...n}),f=e=>d?0:-g(e),p=s/(2*Math.sqrt(o*c)),m=g(Math.sqrt(o/c)),_=p*m,v={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},y=()=>{let e=Math.abs(v.delta)<5;v.restSpeed=n.restSpeed||(e?L.restSpeed.granular:L.restSpeed.default),v.restDelta=n.restDelta||(e?L.restDelta.granular:L.restDelta.default)};y();let b,x,S;if(p<1){let e=Pt(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{t.A=(v.velocity+_*v.delta)/e,t.sinC=_*t.A+v.delta*e,t.cosC=_*v.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-_*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};b=e=>(n(e),v.target-t.env*(t.A*t.sin+v.delta*t.cos)),x=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){b=e=>v.target-Math.exp(-m*e)*(v.delta+(v.velocity+m*v.delta)*e);let e={C:0};S=()=>{e.C=v.velocity+m*v.delta},x=t=>Math.exp(-m*t)*(m*e.C*t-v.velocity)}else{let e=m*Math.sqrt(p*p-1),t=_-e,n=_+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-_*(t-r):-e*t),a={S:0,F:0};S=()=>{let t=(v.velocity+_*v.delta)/e;a.S=(v.delta+t)/2,a.F=(v.delta-t)/2},b=e=>v.target-a.S*i(t,e)-a.F*i(n,e),x=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}S();let C=u&&l||null,w={calculatedDuration:C,retarget:(e,t)=>{v.target=e[e.length-1],v.delta=v.target-e[0],v.velocity=f(t),n.restSpeed&&n.restDelta||y(),w.calculatedDuration=C,a.done=!1,S()},velocity:e=>h(x(e)),next:e=>{let t=b(e);if(u)a.done=e>=l;else{let n=h(x(e));a.done=Math.abs(n)<=v.restSpeed&&Math.abs(v.target-t)<=v.restDelta}return a.value=a.done?v.target:t,a},toString:()=>{let e=Math.min(At(w),kt),t=Ot(t=>w.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return w}Ht.applyToOptions=e=>{let t=jt(e,100,Ht);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};function Ut({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=Ht({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 Wt(e,t,n){let r=[],i=n||o.mix||xt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Gt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Wt(t,r,i),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(a(e[0],e[o-1],t)):u}function Kt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(P(n,1,i))}}function qt(e){let t=[0];return Kt(t,e.length-1),t}function Jt(e,t){return e.map(e=>e*t)}function Yt(e,t){return e.map(()=>t||ae).splice(0,e.length-1)}function R({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=oe(r)?r.map(de):de(r)||ae,s={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,c=n===r?void 0:(o.mix||xt)(n,r);return{calculatedDuration:e,next:t=>(s.value=c?c(i(e>0?a(0,1,t/e):1)):r,s.done=t>=e,s)}}let c=Gt(Jt(n&&n.length===t.length?n:qt(t),e),t,{ease:Array.isArray(i)?i:Yt(t,i)});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var Xt=5;function Zt(e,t,n){let r=Math.max(t-Xt,0);return _(n-e(r),t-r)}function Qt(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Zt(t=>e.next(t).value,t,e.next(t).value)}var $t=e=>e!==null;function en(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter($t),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var tn={decay:Ut,inertia:Ut,tween:R,keyframes:R,spring:Ht};function nn(e){typeof e.type==`string`&&(e.type=tn[e.type])}var rn=40,an=(e,t)=>t-e>rn&&!o.useManualTiming?t:e;function on(e,t){return{kind:e,animation:t,timestamp:O.now(),frameTimestamp:D.timestamp,frameIsProcessing:D.isProcessing}}function sn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...on(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function cn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...on(`layout-animation-start`,e),node:t})}catch{}}var ln=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)}},un=e=>e/100,dn=e=>Math.round(e*1e4)/1e4,fn=class extends ln{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!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),sn(this,this.options)}initAnimation(){let{options:e}=this;nn(e);let{type:t=R,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||R;s!==R&&typeof o[0]!=`number`&&(this.mixKeyframes=f(un,xt(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=At(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=an(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!==Ut&&(f.value=en(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??dn((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!==Ut?en(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:o,resolvedDuration:s}=this,{keyframes:c,repeat:l,repeatType:u,repeatDelay:d}=this.options,f=e,p=n;if(l){let t=Math.min(e,r)/s,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,l+1),n%2&&(u===`reverse`?(i=1-i,d&&(i-=d/s)):u===`mirror`&&(p=o)),f=a(0,1,i)*s}let m;return t?(this.delayState.value=c[0],m=this.delayState):m=p.next(f),i&&!t&&(m.value=i(m.value)),m}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(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 Qt(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(O.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dt,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(O.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)}},pn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function mn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(we)||[];if(!r)return e;let i=n.replace(r,``),a=+!!pn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var hn=/\b([a-z-]*)\(.*?\)/gu,gn={...N,getAnimatableNone:e=>{let t=e.match(hn);return t?t.map(mn).join(` `):e}},_n={...N,getAnimatableNone:e=>{let t=N.parse(e);return N.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},vn={...xe,transform:Math.round},yn={rotate:k,pathRotation:k,rotateX:k,rotateY:k,rotateZ:k,scale:Ce,scaleX:Ce,scaleY:Ce,scaleZ:Ce,skew:k,skewX:k,skewY:k,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Se,originX:Le,originY:Le,originZ:j},z={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,inset:j,insetBlock:j,insetBlockStart:j,insetBlockEnd:j,insetInline:j,insetInlineStart:j,insetInlineEnd:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,paddingBlock:j,paddingBlockStart:j,paddingBlockEnd:j,paddingInline:j,paddingInlineStart:j,paddingInlineEnd:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,marginBlock:j,marginBlockStart:j,marginBlockEnd:j,marginInline:j,marginInlineStart:j,marginInlineEnd:j,fontSize:j,backgroundPositionX:j,backgroundPositionY:j,...yn,zIndex:vn,fillOpacity:Se,strokeOpacity:Se,numOctaves:vn},bn={...z,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:gn,WebkitFilter:gn,mask:_n,WebkitMask:_n},xn=e=>bn[e],Sn=new Set([gn,_n]);function Cn(e,t){let n=xn(e);return Sn.has(n)||(n=N),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function wn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Tn=e=>e*180/Math.PI,En=e=>On(Tn(Math.atan2(e[1],e[0]))),Dn={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:En,rotateZ:En,skewX:e=>Tn(Math.atan(e[1])),skewY:e=>Tn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},On=e=>(e%=360,e<0&&(e+=360),e),kn=En,An=e=>Math.hypot(e[0],e[1]),jn=e=>Math.hypot(e[4],e[5]),Mn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:An,scaleY:jn,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(An(e)+jn(e))/2,rotateX:e=>On(Tn(Math.atan2(e[6],e[5]))),rotateY:e=>On(Tn(Math.atan2(-e[2],e[0]))),rotateZ:kn,rotate:kn,skewX:e=>Tn(Math.atan(e[4])),skewY:e=>Tn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nn(e){return+!!e.includes(`scale`)}function Pn(e,t){if(!e||e===`none`)return Nn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Mn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Dn,i=t}if(!i)return Nn(t);let a=r[t],o=i[1].split(`,`).map(In);return typeof a==`function`?a(o):o[a]}var Fn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Pn(n,t)};function In(e){return parseFloat(e.trim())}var B=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],V=new Set([...B,`pathRotation`]),Ln=e=>e===xe||e===j,Rn=new Set([`x`,`y`,`z`]),zn=B.filter(e=>!Rn.has(e));function Bn(e){let t=[];return zn.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Vn=new Set([`bottom`,`right`]);function Hn(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 Un={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Hn(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Hn(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})=>Pn(e,`x`),y:({transform:e})=>Pn(e,`y`)};Un.translateX=Un.x,Un.translateY=Un.y;var Wn=new Set,Gn=!1,Kn=!1,qn=!1;function Jn(){if(Kn){let e=[],t=new Set,n=new Set;Wn.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Vn.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Bn(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)})}Kn=!1,Gn=!1,Wn.forEach(e=>e.complete(qn)),Wn.clear()}function Yn(){Wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Kn=!0)})}function Xn(){qn=!0,Yn(),Jn(),qn=!1}function Zn(e,t,n){if(typeof e==`string`){if(s(e)||l(e))return parseFloat(e);if(!N.test(e)&&N.test(n))return Cn(t,n)}return e??void 0}var Qn=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?(Wn.add(this),Gn||(Gn=!0,F.read(Yn),F.resolveKeyframes(Jn))):(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=Zn(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])}wn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Wn.delete(this)}cancel(){this.state===`scheduled`&&(Wn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},$n=e=>e.startsWith(`--`);function er(e,t,n){$n(t)?e.style.setProperty(t,n):e.style[t]=n}var tr={};function nr(e,t){let n=u(e);return()=>tr[t]??n()}var rr=nr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ir=nr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ar=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,or={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function sr(e,t){if(e)return typeof e==`function`?ir()?Ot(e,t):`ease-out`:ce(e)?ar(e):Array.isArray(e)?e.map(e=>sr(e,t)||or.easeOut):or[e]}function cr(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=sr(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 lr(e){return typeof e==`function`&&`applyToOptions`in e}function ur({type:e,...t}){return lr(e)&&ir()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var dr=class extends ln{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=ur(e);this.animation=cr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=en(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),er(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},sn(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 g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(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&&rr()?(this.animation.timeline=e,t?.(this.animation),d):n(this)}},fr={anticipate:ee,backInOut:T,circInOut:E};function pr(e){return e in fr}function mr(e){typeof e.ease==`string`&&pr(e.ease)&&(e.ease=fr[e.ease])}var hr=class extends dr{constructor(e){mr(e),nn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(O.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 fn({...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,o=this.elapsed(),s=this.state===`running`&&i?a(0,10,o):0,c=this.sample(o);n&&r&&er(n,r,c),t.setWithVelocity(this.sample(o-s*Math.sign(i)),c,s/Math.abs(i||1))}},gr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(N.test(e)||e===`0`)&&!e.startsWith(`url(`));function _r(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 vr(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=gr(i,t),s=gr(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):_r(e)||(n===`spring`||lr(n))&&r}function yr(e){e.duration=0,e.type=`keyframes`}var br=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),xr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Sr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&xr.test(e[t]))return!0;return!1}var Cr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),wr=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(br.has(n)||Cr.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 wr()&&(br.has(n)||Cr.has(n)&&Sr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var H=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Er={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Dr=B.length;function Or(e,t,n){let r=``,i=!0;for(let a=0;a<Dr;a++){let o=B[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=H(s,z[o]);if(!c){i=!1;let t=Er[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${H(a,z.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var kr=new WeakMap,Ar=200,jr=.001,Mr=.1,Nr=.001,Pr=100,Fr=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ir=(e,t)=>e-t,Lr=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(P(e,t,i/n));return r},Rr=e=>e.motionValue.owner,zr=e=>kr.get(e),Br=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Vr=({name:e,motionValue:t})=>e&&B.includes(e)&&t?.owner?.current instanceof HTMLElement&&wr()&&ir();function Hr(e){let t=Rr(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Br(t,`transform`)||`none`)===`none`&&!Br(t,`pathRotation`)&&!t.projection?.isProjecting()}var Ur=class extends fn{constructor(e){let t=Rr(e).current,{driver:n=Dt}=e,r,i=Hr(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=zr(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=zr(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 zr(Rr(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(O.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ce(n)?ar(n):Fr(n)&&or[n];if(o&&!i&&!r&&e.length===2&&t===R&&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||R)===R?u||qt(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=O.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Wr(Rr(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(O.now())}get time(){return this.isAccelerated()?g(a(0,this.totalDuration,this.at(O.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 Wr(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,m=e=>{for(let t of n)if(t.name===e)return!0},h=(t,n)=>{let o={};for(let s of t===void 0?B:a){let a=r.get(s),c=t===void 0?Br(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},g=(e,t)=>{let n=``,r=h(e,t);for(let e in r)n+=(Er[e]||e)+`(`+H(r[e],z[e])+`) `;return n||`none`},_=(e=h())=>{t.style.transform=Or(e,{})},v=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>e.cancel()),s=[]},y=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=O.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)},b=(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]:[]},x=(e,t,n,r)=>{let i=Math.min(Ar,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Lr(t,n,i).concat(r).sort(Ir),o=e=>p(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)*jr>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=jr)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=jr)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=jr))return`linear`;let l=[],u=(e,t=c(e))=>l.push(dn(t)+` `+dn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&b(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},S=(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`)?Nr:Mr))),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(...b(e=>r.numberAt(e),t,n));i.push(n)}},s=Lr(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(Ir))e>c&&o(c,e,0),c=e;return i.sort(Ir)},C=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},w=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||x(e,n,r,s),l=c?[n,r]:S(e,n,r,s),u=l.map(e=>g(e,a)),d={transform:u};return c||(d.offset=l.map(e=>p(n,r,e))),u.every(e=>e===u[0])&&(_(h(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},T=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();continue}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=B.filter(t=>{if(r.has(t))return!0;let n=i[t]=Br(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),v(!1);let h=!u&&C(f);try{if(h&&h[1]>c){let[e,t,n]=h;y(w(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(y(w(f,c,l),0,l-c),m.forEach(e=>e<l-1&&y(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;y(w(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||v(),!0},ee=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},te=()=>!n.size&&(u=!0,zr(t)===E&&kr.delete(t),E.isJS||v(),!0),ne=()=>{let t=O.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]=Br(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)}),te()))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||!ee(t)){if(a){if(t-f<Pr)return E.demote();f=t}if(!T(t))return E.demote()}},E={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,D.isProcessing?F.render(ne,!1,!0):queueMicrotask(ne)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),te()||E.schedule(!0)},check(){if(!E.isJS){for(let t in i)if(Br(e,t)!==i[t]&&!m(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,v(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return kr.set(t,E),E}var Gr=class extends ln{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.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||Qn;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:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=O.now();let d=!0;vr(e,i,a,s)||(d=!1,(o.instantAnimations||!c)&&u?.(en(e,n,t)),e[0]=e[e.length-1],yr(n),n.repeat=0);let{onComplete:f}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=d&&!l&&Tr(n),m=!p&&Vr(n);r&&(p||m||this.resolvedAt!==this.createdAt)&&(n.startTime??=an(this.createdAt,this.resolvedAt));let h;if(p){n.element=n.motionValue?.owner?.current;try{h=new hr(n)}catch{h=new fn(n)}}else h=m?new Ur(n):new fn(n);this.pendingTimeline&&=(this.stopTimeline=h.attachTimeline(this.pendingTimeline),void 0),this._animation=h}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(),Xn()),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()}},Kr=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 qr(this.animations,`duration`)}get iterationDuration(){return qr(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 qr(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 Jr=class extends Kr{then(e,t){return this.finished.finally(e).then(()=>{})}},Yr=new WeakMap,Xr=(e,t=``)=>`${e}:${t}`;function Zr(e){let t=Yr.get(e);return t||(t=new Map,Yr.set(e,t)),t}function Qr(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 $r=30,ei=e=>!isNaN(parseFloat(e)),ti={current:void 0},ni=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=O.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=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ei(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 m)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new m,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(){F.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(){ti.current&&ti.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=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$r)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,$r);return _(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 U(e,t){return new ni(e,t)}function ri(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ii(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ri(n,e)}var ai={type:`spring`,stiffness:500,damping:25,restSpeed:10},oi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),si={type:`keyframes`,duration:.8},ci={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},li=(e,{keyframes:t})=>t.length>2?si:V.has(e)?e.startsWith(`scale`)?oi(t[1]):ai:ci,ui=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function di(e){for(let t in e)if(!ui.has(t))return!0;return!1}var fi=(e,t,n,r={},i,a)=>s=>{let c=ii(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!c.onUpdate};di(c)||Object.assign(d,li(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(yr(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,yr(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=en(d.keyframes,c);if(e!==void 0){F.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new fn(d):new Gr(d)},pi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mi(e){let t=pi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function hi(e,t,n=1){`${e}`;let[r,i]=mi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return ve(i)?hi(i,t,n+1):i}function gi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _i(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...gi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function vi(e,t,n){return _i(e.getProps(),t,n,e)}var yi=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,bi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...B]),xi=e=>Array.isArray(e);function Si(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,U(n))}function Ci(e){return xi(e)?e[e.length-1]||0:e}function wi(e,t){let{transitionEnd:n={},transition:r={},...i}=vi(e,t)||{};i={...i,...n};for(let t in i)Si(e,t,Ci(i[t]))}var W=e=>!!(e&&e.getVelocity);function Ti(e){return!!(W(e)&&e.add)}function Ei(e,t){let n=e.getValue(`willChange`);if(Ti(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Di(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Oi=`data-`+Di(`framerAppearId`);function ki(e){return e.props[Oi]}var Ai=typeof window<`u`;function ji({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Mi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ri(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&&ji(f,t))continue;let o={delay:n,...ii(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let p=!1;if(Ai&&window.MotionHandoffAnimation){let n=ki(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,p=!0)}}Ei(e,t);let m=l??e.shouldReduceMotion;r.start(fi(t,r,i,m&&bi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>F.update(()=>{o&&wi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ni(e,t,n={}){let r=vi(e,t,yi(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Mi(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(Ni(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Qr(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 Pi(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ni(e,t,n))):typeof t==`string`?Ni(e,t,n):Promise.all(Mi(e,vi(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Fi={test:e=>e===`auto`,parse:e=>e},Ii=e=>t=>t.test(e),Li=[xe,j,A,k,Ie,Fe,Fi],Ri=e=>Li.find(Ii(e));function zi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||l(e)}var Bi=new Set([`auto`,`none`,`0`]);function Vi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Bi.has(t)&&Ye(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Cn(n,i))}var Hi=class extends Qn{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(be(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(),ve(r))){let i=hi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!bi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ri(r),o=Ri(i);if(be(r)!==be(i)&&Un[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ln(a)&&Ln(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Un[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||zi(e[t]))&&n.push(t);n.length&&Vi(e,n,t)}measure(){let{element:e,name:t}=this;return Un[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()}},Ui=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Wi=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Ui,`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 Gi(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Wi.has(t)&&(e[n]=e[n]+`px`)}var Ki=[];function qi(e){typeof e.test==`function`&&e.read,Ji(e),Ki.unshift(e)}function Ji(e){i(Ki,e)}function Yi(e){return Ki.find(t=>t.test(e))}function Xi(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();if(u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a){F.update(()=>l.set(c));continue}l.start(fi(o,l,c,s&&bi.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation)}let{transitionEnd:c}=t;if(c){let t=()=>F.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Zi(e,t,n,r,i){return Xi(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Qi(i)??e.read(t,r,i),`${r}`}a=U(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Qi(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function $i(e){return c(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ea(e){return c(e)&&`ownerSVGElement`in e}var ta={};function na(e){return ta.current?.add(e),e}var ra=e=>ta.current?ta.current.bind(e):e;function ia(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:ta.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var aa=class{constructor(e=F.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 oa(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new aa(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 sa={};function ca(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&&` `)+(sa[i]||(sa[i]=(Er[i]||i)+`(`))+H(a,yn[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+H(i,yn.pathRotation)+`)`),t||`none`}var la=new Set([`originX`,`originY`,`originZ`]),ua=(e,t)=>H(e.get(t)?.get(),z[t]),da=(e,t,n,r)=>{let i,a;if(V.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>B.indexOf(e)-B.indexOf(t)))}t.get(`transform`)||(!$i(e)&&!t.get(`transformBox`)&&da(e,t,`transformBox`,new ni(`fill-box`)),t.set(`transform`,new ni(`none`),()=>{kr.get(e)?.check(),e.style.transform=ca(t)})),a=t.get(`transform`)}else la.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new ni(``),()=>{let n=ua(t,`originX`)??`50%`,r=ua(t,`originY`)??`50%`,i=ua(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=$n(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=H(r.getCurrent(),z[n])};return t.set(n,r,i,a)},fa=e=>$i(e)||ea(e),pa=(e,t)=>{if(V.has(t))return Fn(e,t);let n=getComputedStyle(e),r=$n(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},ma=oa(da,{test:fa,read:pa});function ha(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(V.has(e)){o=!0;continue}if(ge(e)){i[e]=n;continue}{let t=H(n,z[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Or(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 ga={offset:`stroke-dashoffset`,array:`stroke-dasharray`},_a={offset:`strokeDashoffset`,array:`strokeDasharray`};function va(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ga:_a;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ya=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ba(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ha(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 ya)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&&va(d,i,a,o,!1)}function xa(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 Sa=(e,t,n,r,i=n)=>{let a=xa(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Di(i));let o=z[n]||z[i],s=a?()=>{e[i]=H(r.get(),z[n])}:()=>{let t=H(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ca(e,t,n,r){return F.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 ni(`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 wa=oa((e,t,n,r)=>n.startsWith(`path`)&&!V.has(n)?Ca(e,t,n,r):n.startsWith(`attr`)?Sa(e,t,n,r,Ta(n)):(V.has(n)||la.has(n)||$n(n)||n in e.style?da:Sa)(e,t,n,r),{test:ea,read:(e,t)=>V.has(t)?z[t]?.default||0:$n(t)||ya.includes(t)?pa(e,t)||e.getAttribute(Di(t))||0:(t=Ta(t),e.getAttribute(Di(t))??e.getAttribute(t)??void 0)});function Ta(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ea({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Da({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Oa(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 ka(e){return e===void 0||e===1}function Aa({scale:e,scaleX:t,scaleY:n}){return!ka(e)||!ka(t)||!ka(n)}function ja(e){return Aa(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ma(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!==`0%`}function Pa(e,t,n){return n+t*(e-n)}function Fa(e,t,n,r,i){return i!==void 0&&(e=Pa(e,i,r)),Pa(e,n,r)+t}function Ia(e,t=0,n=1,r,i){e.min=Fa(e.min,t,n,r,i),e.max=Fa(e.max,t,n,r,i)}function La(e,{x:t,y:n}){Ia(e.x,t.translate,t.scale,t.originPoint),Ia(e.y,n.translate,n.scale,n.originPoint)}var Ra=.999999999999,za=1.0000000000001;function Ba(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&&(G(e.x,-a.scroll.offset.x),G(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,La(e,o)),r&&ja(a.latestValues)&&Ua(e,a.latestValues,a.layout?.layoutBox))}t.x<za&&t.x>Ra&&(t.x=1),t.y<za&&t.y>Ra&&(t.y=1)}function G(e,t){e.min+=t,e.max+=t}function Va(e,t,n,r,i=.5){Ia(e,t,n,P(e.min,e.max,i),r)}function Ha(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ua(e,t,n){let r=n??e;Va(e.x,Ha(t.x,r.x),t.scaleX,t.scale,t.originX),Va(e.y,Ha(t.y,r.y),t.scaleY,t.scale,t.originY)}function Wa(e,t){return Ea(Oa(e.getBoundingClientRect(),t))}function Ga(e,t,n){let r=Wa(e,n),{scroll:i}=t;return i&&(G(r.x,i.offset.x),G(r.y,i.offset.y)),r}var Ka={},qa=e=>ea(e)?wa:ma,Ja=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Hi}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 Wa(this.current)}getProps(){return Ka}};function Ya(e,t,n,r){if(ta.current?.track(e),r)return Xi(e=>r.getValue(e,null),t,n,r);let i=qa(e);return Zi(i,e,t,n,new Ja(i,e))}var Xa=oa((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>c(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Za,cancel:Qa}=Tt(queueMicrotask,!1);function $a(e,t,n){let r=W(e)?e:U(e);return r.start(fi(``,r,t,n)),r.animation}var eo={},to={value:null,addProjectionMetrics:null};function no(e,t){let n=O.now();e=ra(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(I(r),e(a-t))};return F.setup(r,!0),na(()=>I(r))}function ro(e){return ea(e)&&e.tagName===`svg`}function io(e){return W(e)?e.get():e}var ao=e=>typeof e==`number`?e:parseFloat(e),oo=Ui.length,so=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],co=so.length,lo=e=>typeof e==`number`||j.test(e);function uo(e,t,n,r,i,a){i?(e.opacity=P(0,n.opacity??1,po(r)),e.opacityExit=P(t.opacity??1,0,mo(r))):a&&(e.opacity=P(t.opacity??1,n.opacity??1,r));for(let i=0;i<oo;i++){let a=Ui[i],o=fo(t,a),s=fo(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||lo(o)===lo(s)?(e[a]=Math.max(P(ao(o),ao(s),r),0),(A.test(s)||A.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<co;i++){let a=so[i];(t[a]||n[a])&&(e[a]=P(t[a]||0,n[a]||0,r))}}function fo(e,t){return e[t]===void 0?e.borderRadius:e[t]}var po=ho(0,.5,ne),mo=ho(.5,.95,d);function ho(e,t,n){return r=>r<e?0:r>t?1:n(p(e,t,r))}function go(e,t){e.min=t.min,e.max=t.max}function K(e,t){go(e.x,t.x),go(e.y,t.y)}function _o(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var vo=.9999,yo=1.0001,bo=-.01,xo=.01;function q(e){return e.max-e.min}function So(e,t,n){return Math.abs(e-t)<=n}function Co(e,t,n,r=.5){e.origin=r,e.originPoint=P(t.min,t.max,e.origin),e.scale=q(n)/q(t),e.translate=P(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vo&&e.scale<=yo||isNaN(e.scale))&&(e.scale=1),(e.translate>=bo&&e.translate<=xo||isNaN(e.translate))&&(e.translate=0)}function wo(e,t,n,r){Co(e.x,t.x,n.x,r?r.originX:void 0),Co(e.y,t.y,n.y,r?r.originY:void 0)}function To(e,t,n,r=0){e.min=(r?P(n.min,n.max,r):n.min)+t.min,e.max=e.min+q(t)}function Eo(e,t,n,r){To(e.x,t.x,n.x,r?.x),To(e.y,t.y,n.y,r?.y)}function Do(e,t,n,r=0){let i=r?P(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+q(t)}function Oo(e,t,n,r){Do(e.x,t.x,n.x,r?.x),Do(e.y,t.y,n.y,r?.y)}function ko(e,t,n,r,i){return e-=t,e=Pa(e,1/n,r),i!==void 0&&(e=Pa(e,1/i,r)),e}function Ao(e,t=0,n=1,r=.5,i,a=e,o=e){if(A.test(t)&&(t=parseFloat(t),t=P(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=P(a.min,a.max,r);e===a&&(s-=t),e.min=ko(e.min,t,n,s,i),e.max=ko(e.max,t,n,s,i)}function jo(e,t,[n,r,i],a,o){Ao(e,t[n],t[r],t[i],t.scale,a,o)}var Mo=[`x`,`scaleX`,`originX`],No=[`y`,`scaleY`,`originY`];function Po(e,t,n,r){jo(e.x,t,Mo,n?n.x:void 0,r?r.x:void 0),jo(e.y,t,No,n?n.y:void 0,r?r.y:void 0)}var Fo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Io=()=>({x:Fo(),y:Fo()}),Lo=()=>({min:0,max:0}),J=()=>({x:Lo(),y:Lo()});function Ro(e){return e.translate===0&&e.scale===1}function zo(e){return Ro(e.x)&&Ro(e.y)}function Bo(e,t){return e.min===t.min&&e.max===t.max}function Vo(e,t){return Bo(e.x,t.x)&&Bo(e.y,t.y)}function Ho(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uo(e,t){return Ho(e.x,t.x)&&Ho(e.y,t.y)}function Wo(e){return q(e.x)/q(e.y)}function Go(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Ko=class{constructor(){this.members=[]}add(e){r(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&&(i(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(i(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 qo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(j.test(e))e=parseFloat(e);else return e;return`${qo(e,t.target.x)}% ${qo(e,t.target.y)}%`}},Yo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=N.parse(e);if(i.length>5)return r;let a=N.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=P(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Xo={borderRadius:{...Jo,applyTo:[...Ui]},borderTopLeftRadius:Jo,borderTopRightRadius:Jo,borderBottomLeftRadius:Jo,borderBottomRightRadius:Jo,boxShadow:Yo};function Zo(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 Y(e){return[e(`x`),e(`y`)]}var Qo=(e,t)=>e.depth-t.depth,$o=class{constructor(){this.children=[],this.isDirty=!1}add(e){r(this.children,e),this.isDirty=!0}remove(e){i(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qo),this.isDirty=!1,this.children.forEach(e)}},es={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(eo,{...Xo,...eo});var ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ns=[``,`X`,`Y`,`Z`],rs=1e3,is=0;function as(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var os=({instance:e})=>e&&kr.get(e)?.demote();function ss(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ki(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ss(r)}function cs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=is++,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,to.value&&(ts.nodes=ts.calculatedTargetDeltas=ts.calculatedProjections=0),this.nodes.forEach(ds),this.nodes.forEach(Ss),this.nodes.forEach(Cs),this.nodes.forEach(fs),to.addProjectionMetrics&&to.addProjectionMetrics(ts)},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 $o)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new m),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=ea(t)&&!ro(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;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=no(i,250),es.hasAnimatedSinceResize&&(es.hasAnimatedSinceResize=!1,this.nodes.forEach(xs)))})}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()||ks,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Uo(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={...ii(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||xs(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,I(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(ws),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&&ss(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;os(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,os(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(hs),this.nodes.forEach(ms);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(vs),this.nodes.forEach(ys),this.nodes.forEach(bs),this.nodes.forEach(ls),this.nodes.forEach(us)):this.nodes.forEach(gs),this.clearAllSnapshots();let e=O.now();D.delta=a(0,1e3/60,e-D.timestamp),D.timestamp=e,D.isProcessing=!0,Et.update.process(D),Et.preRender.process(D),Et.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Za.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ps),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.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||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&os(this);let t=this.projectionDelta&&!zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ja(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)),Ns(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Fs))){let{scroll:e}=this.root;e&&(G(t.x,e.offset.x),G(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(K(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&&K(t,e),G(t.x,i.offset.x),G(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();K(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&&(G(r.x,-n.scroll.offset.x),G(r.y,-n.scroll.offset.y)),ja(n.latestValues)&&Ua(r,n.latestValues,n.layout?.layoutBox)}return ja(this.latestValues)&&Ua(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();K(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ja(n.latestValues))continue;let r;n.instance&&(Aa(n.latestValues)&&n.updateSnapshot(),r=J(),K(r,n.measurePageBox())),Po(t,n.latestValues,n.snapshot?.layoutBox,r)}return ja(this.latestValues)&&Po(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!==D.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=D.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Eo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):K(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):K(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),to.value&&ts.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Aa(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Oo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),K(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===D.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;K(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ba(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_o(this.prevProjectionDelta.x,this.projectionDelta.x),_o(this.prevProjectionDelta.y,this.projectionDelta.y)),wo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Go(this.projectionDelta.x,this.prevProjectionDelta.x)||!Go(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),to.value&&ts.calculatedProjections++}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=Io(),this.projectionDelta=Io(),this.projectionDeltaWithTransform=Io()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Io();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Os));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=P(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=P(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ts(o.x,e.x,n),Ts(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ds(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),K(f,this.relativeTarget)),c&&(this.animationValues=a,uo(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&&=(I(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{es.hasAnimatedSinceResize=!0,this.motionValue||=U(0),this.motionValue.jump(0,!1),this.currentAnimation=$a(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()}}),cn(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(rs),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&&Ps(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||J();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}K(t,i),Ua(t,r),wo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ko),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&&as(`z`,e,r,this.animationValues);for(let t=0;t<ns.length;t++)as(`rotate${ns[t]}`,e,r,this.animationValues),as(`skew${ns[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=io(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=io(t?.pointerEvents)||``),this.hasProjected&&!ja(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Zo(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 eo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=eo[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?io(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(ms),this.root.sharedNodes.clear()}}}function ls(e){e.updateLayout(),_s(e)}function us(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`)Y(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`;go(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ps(i,t.layoutBox,n)&&Y(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=Io();wo(o,n,t.layoutBox);let s=Io();a?wo(s,e.applyTransform(r,!0),t.measuredBox):wo(s,n,t.layoutBox);let c=!zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();Oo(s,t.layoutBox,i.layoutBox,o);let c=J();Oo(c,n,a.layoutBox,o),Uo(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 ds(e){to.value&&ts.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 fs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ps(e){e.clearSnapshot()}function ms(e){e.clearMeasurements()}function hs(e){e.isLayoutDirty=!0,e.updateLayout()}function gs(e){e.isLayoutDirty=!1}function _s(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Y(e=>G(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function vs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function ys(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function bs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function xs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ss(e){e.resolveTargetDelta()}function Cs(e){e.calcProjection()}function ws(e){e.resetSkewAndRotation()}function Ts(e,t,n){e.translate=P(t.translate,0,n),e.scale=P(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Es(e,t,n,r){e.min=P(t.min,n.min,r),e.max=P(t.max,n.max,r)}function Ds(e,t,n,r){Es(e.x,t.x,n.x,r),Es(e.y,t.y,n.y,r)}function Os(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var ks={duration:.45,ease:[.4,0,.1,1]},As=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),js=As(`applewebkit/`)&&!As(`chrome/`)?Math.round:d;function Ms(e){e.min=js(e.min),e.max=js(e.max)}function Ns(e){Ms(e.x),Ms(e.y)}function Ps(e,t,n){return e===`position`||e===`preserve-aspect`&&!So(Wo(t),Wo(n),.2)}function Fs(e){return e!==e.root&&e.scroll?.wasRoot}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ls=cs({attachResizeListener:(e,t)=>Is(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Rs={current:void 0},zs=cs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rs.current){let e=new Ls({});e.mount(window),e.setOptions({layoutScroll:!0}),Rs.current=e}return Rs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Bs=new WeakMap;function Vs(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Hs(e){return typeof e==`string`||Array.isArray(e)}var Us=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ws=[`initial`,...Us];function Gs(e){if(Vs(e.animate))return!0;for(let t=0;t<Ws.length;t++)if(Hs(e[Ws[t]]))return!0;return!1}function Ks(e){return!!(Gs(e)||e.variants)}function qs(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,U(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,U(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Js={current:null},Ys={current:!1},Xs=typeof window<`u`;function Zs(){if(Ys.current=!0,Xs)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Js.current=e.matches;e.addEventListener(`change`,t),t()}else Js.current=!1}var Qs=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],$s={};function ec(e){$s=e}function tc(){return $s}var nc=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=Qn,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=O.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.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=Gs(t),this.isVariantNode=Ks(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&&W(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,Bs.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:(Ys.current||Zs(),this.shouldReduceMotion=Js.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(),I(this.notifyUpdate),I(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&&br.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new dr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=V.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),kr.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 $s){let t=$s[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&kr.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Qs.length;t++){let n=Qs[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=qs(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=U(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`&&(s(n)||l(n))?n=parseFloat(n):typeof n!=`number`&&!N.test(n)&&N.test(t)&&(n=Cn(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Za.render(this.render)}},rc=class extends nc{constructor(){super(...arguments),this.KeyframeResolver=Hi}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;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function ic(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 ac(e,{layout:t,layoutId:n}){return V.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!eo[e]||e===`opacity`)}function oc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||ac(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function sc(e){return window.getComputedStyle(e)}var cc=class extends rc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ic}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(V.has(t))return this.projection?.isProjecting?Nn(t):Fn(e,t);{let n=sc(e),r=(ge(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Wa(e,t)}build(e,t,n){ha(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return oc(e,t,n)}},lc=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function uc(e){return{point:{x:e.pageX,y:e.pageY}}}var dc=e=>t=>lc(t)&&e(t,uc(t));function fc(e,t,n,r){return Is(e,t,dc(n),r)}var pc=new WeakMap,mc,hc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ea(r)&&`getBBox`in r?r.getBBox()[t]:r[n],gc=hc(`inline`,`width`,`offsetWidth`),_c=hc(`block`,`height`,`offsetHeight`);function vc({target:e,borderBoxSize:t}){pc.get(e)?.forEach(n=>{n(e,{get width(){return gc(e,t)},get height(){return _c(e,t)}})})}function yc(e){e.forEach(vc)}function bc(){typeof ResizeObserver>`u`||(mc=new ResizeObserver(yc))}function xc(e,t){mc||bc();let n=ia(e);return n.forEach(e=>{let n=pc.get(e);n||(n=new Set,pc.set(e,n)),n.add(t),mc?.observe(e)}),()=>{n.forEach(e=>{let n=pc.get(e);n?.delete(t),n?.size||mc?.unobserve(e)})}}var Sc=new Set,Cc;function wc(){Cc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Sc.forEach(t=>t(e))},window.addEventListener(`resize`,Cc)}function Tc(e){return Sc.add(e),Cc||wc(),()=>{Sc.delete(e),!Sc.size&&typeof Cc==`function`&&(window.removeEventListener(`resize`,Cc),Cc=void 0)}}function Ec(e,t){return na(typeof e==`function`?Tc(e):xc(e,t))}var Dc=(e,t)=>Math.abs(e-t);function Oc(e,t){let n=Dc(e.x,t.x),r=Dc(e.y,t.y);return Math.sqrt(n**2+r**2)}var kc=new Set([`auto`,`scroll`]),Ac=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=jc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Nc(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Oc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:O.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=jc(t,this.transformPagePoint),this.hasPendingMove=!0,F.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=Nc(e.type===`pointercancel`?this.lastMoveEventInfo:jc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!lc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=jc(uc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=D;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Nc(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=f(fc(this.contextWindow,`pointermove`,this.handlePointerMove,d),fc(this.contextWindow,`pointerup`,this.handlePointerUp,d),fc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(kc.has(e.overflowX)||kc.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),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),I(this.updatePoint)}};function jc(e,t){return t?{point:t(e.point)}:e}function Mc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nc({point:e},t){return{point:e,delta:Mc(e,Fc(t)),offset:Mc(e,Pc(t)),velocity:Ic(t,.1)}}function Pc(e){return e[0]}function Fc(e){return e[e.length-1]}function Ic(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Fc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>h(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>h(t)*2&&(r=e[1]);let a=g(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 Lc=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Rc(e){return Lc.has(e.tagName)||e.isContentEditable===!0}var zc=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Bc(e){return zc.has(e.tagName)||e.isContentEditable===!0}var X={x:!1,y:!1};function Vc(){return X.x||X.y}function Hc(e){return e===`x`||e===`y`?X[e]?null:(X[e]=!0,()=>{X[e]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function Uc(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?P(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?P(n,e,r.max):Math.min(e,n)),e}function Wc(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 Gc(e,{top:t,left:n,bottom:r,right:i}){return{x:Wc(e.x,n,i),y:Wc(e.y,t,r)}}function Kc(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 qc(e,t){return{x:Kc(e.x,t.x),y:Kc(e.y,t.y)}}function Jc(e,t){let n=.5,r=q(e),i=q(t);return i>r?n=p(t.min,t.max-r,e.min):r>i&&(n=p(e.min,e.max-i,t.min)),a(0,1,n)}function Yc(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 Xc=.35;function Zc(e=Xc){return e===!1?e=0:e===!0&&(e=Xc),{x:Qc(e,`left`,`right`),y:Qc(e,`top`,`bottom`)}}function Qc(e,t,n){return{min:$c(e,t),max:$c(e,n)}}function $c(e,t){return typeof e==`number`?e:e[t]||0}var el=new WeakMap,tl=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=J(),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=Hc(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),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ve(t)&&(t=hi(t,this.visualElement.current)||0),j.test(t))t=parseFloat(t);else if(A.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&&F.update(()=>i(e,t),!1,!0),Ei(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=sl(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&&F.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 Ac(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){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&&F.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||!ol(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Uc(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;nl(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Gc(n.layoutBox,e):!1,this.elastic=Zc(t),r!==this.constraints&&!nl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Yc(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!nl(e))return!1;let n=rl(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ga(n,r.root,this.visualElement.getTransformPagePoint()),a=qc(r.layout.layoutBox,i);if(t){let e=t(Da(a));this.hasMutatedConstraints=!!e,e&&(a=Ea(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!ol(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 Ei(this.visualElement,e),n.start(fi(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(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();Y(e=>{if(!ol(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-P(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nl(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Jc({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(),Y(t=>{let n=this.getAxisMotionValue(t);if(!ol(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(P(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;el.set(this.visualElement,this);let e=this.visualElement.current,t=fc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Bc(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=nl(t)&&rl(t);r&&(this.constraints=this.resolveRefConstraints(),n||=al(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(r);let o=Is(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(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.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Xc,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function nl(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var rl=e=>`current`in e?e.current:e;function il(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function al(e,t,n){let r=Ec(e,il(n)),i=Ec(t,il(n));return()=>{r(),i()}}function ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function cl(e,t){let n=ia(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},na(()=>r.abort())]}function ll(e){return!(e.pointerType===`touch`||Vc())}function ul(e,t,n={}){t=ra(t);let[r,i,a]=cl(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=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ll(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 dl=(e,t)=>t?e===t||dl(e,t.parentElement):!1,fl=new WeakSet;function pl(e){return t=>{t.key===`Enter`&&e(t)}}function ml(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var hl=(e,t)=>{let n=!1,r=pl(()=>{fl.has(e)||(n=!0,ml(e,`down`))}),i=pl(()=>{n&&(n=!1,ml(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&ml(e,`cancel`)},{...t,once:!0})};function gl(e){return lc(e)&&!Vc()}var _l=new WeakSet;function vl(e,t,n={}){t=ra(t);let[r,i,a]=cl(e,n),o=e=>{let r=e.currentTarget;if(!gl(e)||_l.has(e))return;fl.add(r),n.stopPropagation&&_l.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),fl.has(r)&&fl.delete(r),gl(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||dl(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),$i(e)&&(e.addEventListener(`focus`,()=>hl(e,i),i),!Rc(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function yl(e,t){let n=window.getComputedStyle(e);return $n(t)?n.getPropertyValue(t):n[t]}var Z=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},bl=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`]),xl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Sl(e,t,n,r){ic(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(bl.has(n)?n:Di(n),t.attrs[n])}function Cl(e,t,n){let r=oc(e,t,n);for(let n in e)if(n!==`children`&&(W(e[n])||W(t[n]))){let t=B.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var wl=class extends rc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return V.has(t)?super.getBaseTargetFromProps(e,t)??Nn(t):e[t]}getDefaultValue(e){return V.has(e)?this.latestValues[e]??Nn(e):void 0}readValueFromInstance(e,t){if(V.has(t)){let e=xn(t);return e&&e.default||0}if(ya.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=bl.has(t)?t:Di(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Cl(e,t,n)}build(e,t,n){ba(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Sl(e,t,n,r)}mount(e){this.isSVGTag=xl(e.tagName),super.mount(e)}};function Tl(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 El=[...Us].reverse();function Dl(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Pi(e,t,n))),n=kl(),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(El.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?Hs(g)||g===!1?g:void 0:h,v=Hs(_),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||Vs(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Ol(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}=vi(e,n,yi(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)?!Tl(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=vi(s,n)?.transition?.delayChildren;r.delay=Qr(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&vi(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&&!W(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=kl(),i=!0}}}function Ol(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Tl(t,e):!1}function kl(){let e={};for(let t of Us)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Al(e){return typeof e==`object`&&!Array.isArray(e)}function jl(e,t,n,r){return e==null?[]:typeof e==`string`&&Al(t)?ia(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ml(e,t,n){return e*(t+1)+n*t}function Nl(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 Pl(e,t,n){for(let r=0;r<e.length;r++){let a=e[r];a.at>t&&a.at<n&&(i(e,a),r--)}}function Fl(e,t,n,r,i,a){Pl(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:P(i,a,r[o]),easing:se(n,o)})}function Il(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Ll(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Rl=`easeInOut`,zl=20;function Bl(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,Nl(d,o.at,u,l));continue}let[p,m,g={}]=o;g.at!==void 0&&(d=Nl(d,g.at,u,l));let _=0,v=(e,n,r,o=0,s=0)=>{let c=Ul(e),{delay:l=0,times:u=qt(c),type:p=t.type||`keyframes`,repeat:m,repeatType:g,repeatDelay:v=0,...y}=n,{ease:b=t.ease||`easeOut`,duration:x}=n,C=typeof l==`function`?l(o,s):l,w=c.length,T=lr(p)?p:i?.[p||`keyframes`];if(w<=2&&T){let e=100;if(w===2&&Kl(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...y};x!==void 0&&(n.duration=h(x));let r=jt(n,e,T);b=r.ease,x=r.duration}x??=a;let ee=d+C;u.length===1&&u[0]===0&&(u[1]=1);let te=u.length-c.length;if(te>0&&Kt(u,te),c.length===1&&c.unshift(null),m&&`${m}${zl}`,m&&m<zl){let e=x>0?v/x:0;x=Ml(x,m,v);let t=[...c],n=[...u];b=Array.isArray(b)?[...b]:[b];let r=[...b],i=g===`reverse`||g===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),g===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?S(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),b.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),b.push(e===0?`linear`:se(f,e-1))}Il(u,m,e)}let ne=ee+x;Fl(r,c,b,u,ee,ne),_=Math.max(C+x,_),f=Math.max(ne,f)};if(W(p)){let e=Vl(p,s);v(m,g,Hl(`default`,e))}else{let e=jl(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,g=g;let r=e[n],i=Vl(r,s);for(let e in m)v(m[e],Wl(g,e),Hl(e,i),n,t)}}u=d,d+=_}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Ll);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(p(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Rl)),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,...m}=t;u.transition[i]={...m,duration:f,ease:l,times:c,...n}}}),o}function Vl(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Hl(e,t){return t[e]||(t[e]=[]),t[e]}function Ul(e){return Array.isArray(e)?e:[e]}function Wl(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Gl=e=>typeof e==`number`,Kl=e=>e.every(Gl);function ql(e,t){return W(e)||typeof e==`number`||typeof e==`string`&&!Al(t)}function Jl(e,t,n,r){let i=[];if(ql(e,t))i.push($a(e,Al(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=jl(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(...Ya(r,t,s,Bs.get(r))):i.push(...Zi(Yi(r)??Xa,r,t,s))}}return i}function Yl(e,t,n){let r=[];return Bl(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=U(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:Ht}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Jl(n,e,t))}),r}function Xl(e){return Array.isArray(e)&&e.some(Array.isArray)}function Zl(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function a(e,a,o){let s=[],c,l=ta.current,u=l?.transition,d={};if(n!==void 0&&(d.reduceMotion=n),r!==void 0&&(d.skipAnimations=r),Xl(e)){let{onComplete:n,...r}=a||{};typeof n==`function`&&(c=n),u&&(r.defaultTransition={...u,...r.defaultTransition}),s=Yl(e,{...d,...r},t)}else{let{onComplete:n,...r}=o||{};typeof n==`function`&&(c=n),s=Jl(e,a,{...d,...u,...r},t)}let f=new Jr(s);return c&&f.finished.then(c),l&&f.finished.then(l.add(()=>f.stop())),t&&(t.animations.push(f),f.finished.then(()=>{i(t.animations,f)})),f}return a}var Ql=Object.assign(Zl(),{addEffect:qi,removeEffect:Ji});function $l(e,t,n,r){if(e==null)return[];let i=ia(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={...ii(s,e)};i.duration&&=h(i.duration),i.delay&&=h(i.delay);let a=Zr(r),c=Xr(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]=yl(r,i)),wn(t),Gi(t,i),!a&&t.length<2&&t.unshift(yl(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 dr(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var eu=(e=>{function t(t,n,r){return new Jr($l(t,n,r,e))}return t})(),Q=t(),$=e(n(),1),tu=(0,$.createContext)({});function nu(e){let t=(0,$.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ru=typeof window<`u`?$.useLayoutEffect:$.useEffect,iu=(0,$.createContext)(null),au=(0,$.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ou(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function su(...e){return t=>{let n=!1,r=e.map(e=>{let r=ou(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():ou(e[t],null)}}}}function cu(...e){return $.useCallback(su(...e),e)}var lu=class extends $.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if($i(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=$i(e)&&e.offsetWidth||0,r=$i(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 uu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,$.useId)(),c=(0,$.useRef)(null),l=(0,$.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,$.useContext)(au),d=cu(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,$.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-fom6orB6.js";function r(e,t){e.indexOf(t)===-1&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var a=(e,t,n)=>n>t?t:n<e?e:n,o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return r(this.subscriptions,e),()=>this.remove(e)}remove(e){i(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}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},y=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function b(e,t,n,r){return e===t&&n===r?d:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=y(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(y(s+1e-7,e,n)-i-r)}return y(s,t,r)}}var x=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,S=e=>t=>1-e(1-t),C=b(.33,1.53,.69,.99),w=S(C),T=x(w),ee=e=>e>=1?1:(e*=2)<1?.5*w(e):.5*(2-2**(-10*(e-1))),te=e=>1-Math.sin(Math.acos(e)),ne=S(te),E=x(te),re=b(.42,0,1,1),ie=b(0,0,.58,1),ae=b(.42,0,.58,1),oe=e=>Array.isArray(e)&&typeof e[0]!=`number`;function se(e,t){return oe(e)?e[v(0,e.length,t)]:e}var ce=e=>Array.isArray(e)&&typeof e[0]==`number`,le={linear:d,easeIn:re,easeInOut:ae,easeOut:ie,circIn:te,circInOut:E,circOut:ne,backIn:w,backInOut:T,backOut:C,anticipate:ee},ue=e=>typeof e==`string`,de=e=>{if(ce(e)){e.length;let[t,n,r,i]=e;return b(t,n,r,i)}return ue(e)?(le[e],`${e}`,le[e]):e},D={delta:0,timestamp:0,isProcessing:!1},fe;function pe(){fe=void 0}var O={now:()=>(fe===void 0&&O.set(D.isProcessing||o.useManualTiming?D.timestamp:performance.now()),fe),set:e=>{fe=e,queueMicrotask(pe)}},me=e=>Math.round(e*1e5)/1e5,he=e=>t=>typeof t==`string`&&t.startsWith(e),ge=he(`--`),_e=he(`var(--`),ve=e=>_e(e)?ye.test(e.split(`/*`)[0].trim()):!1,ye=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function be(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var xe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Se={...xe,transform:e=>a(0,1,e)},Ce={...xe,default:1},we=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Te(e){return e==null}var Ee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,De=(e,t)=>n=>!!(typeof n==`string`&&Ee.test(n)&&n.startsWith(e)||t&&!Te(n)&&Object.prototype.hasOwnProperty.call(n,t)),Oe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(we);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ke=e=>a(0,255,e),Ae={...xe,transform:e=>Math.round(ke(e))},je={test:De(`rgb`,`red`),parse:Oe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ae.transform(e)+`, `+Ae.transform(t)+`, `+Ae.transform(n)+`, `+me(Se.transform(r))+`)`};function Me(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 Ne={test:De(`#`),parse:Me,transform:je.transform},Pe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),k=Pe(`deg`),A=Pe(`%`),j=Pe(`px`),Fe=Pe(`vh`),Ie=Pe(`vw`),Le={...A,parse:e=>A.parse(e)/100,transform:e=>A.transform(e*100)},Re={test:De(`hsl`,`hue`),parse:Oe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+A.transform(me(t))+`, `+A.transform(me(n))+`, `+me(Se.transform(r))+`)`},M={test:e=>je.test(e)||Ne.test(e)||Re.test(e),parse:e=>je.test(e)?je.parse(e):Re.test(e)?Re.parse(e):Ne.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?je.transform(e):Re.transform(e),getAnimatableNone:e=>{let t=M.parse(e);return t.alpha=0,M.transform(t)}},ze=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Be=new RegExp(we.source),Ve=new RegExp(ze.source,`i`);function He(e){return isNaN(e)&&typeof e==`string`&&(Be.test(e)||Ve.test(e))}var Ue=`number`,We=`color`,Ge=`var`,Ke=`var(`,qe="${}",Je=/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 Ye(e){let t=e.toString();return Be.test(t)||Ve.test(t)}function Xe(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Je,e=>(M.test(e)?(r.color.push(a),i.push(We),n.push(M.parse(e))):e.startsWith(Ke)?(r.var.push(a),i.push(Ge),n.push(e)):(r.number.push(a),i.push(Ue),n.push(parseFloat(e))),++a,qe)).split(qe),indexes:r,types:i}}function Ze(e){return Xe(e).values}function Qe({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===Ue?me(r[a]):e===We?M.transform(r[a]):r[a]}return i}}function $e(e){return Qe(Xe(e))}var et=e=>typeof e==`number`?0:M.test(e)?M.getAnimatableNone(e):e,tt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:et(e);function nt(e){let t=Xe(e);return Qe(t)(t.values.map((e,n)=>tt(e,t.split[n])))}var N={test:He,parse:Ze,createTransformer:$e,getAnimatableNone:nt};function rt(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 it({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=rt(s,r,e+1/3),a=rt(s,r,e),o=rt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function at(e,t){return n=>n>0?t:e}var P=(e,t,n)=>e+(t-e)*n,ot=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},st=[Ne,je,Re],ct=e=>st.find(t=>t.test(e));function lt(e){let t=ct(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Re&&(n=it(n)),n}var ut=(e,t)=>{let n=lt(e),r=lt(t);if(!n||!r)return at(e,t);let i={...n};return e=>(i.red=ot(n.red,r.red,e),i.green=ot(n.green,r.green,e),i.blue=ot(n.blue,r.blue,e),i.alpha=P(n.alpha,r.alpha,e),je.transform(i))},dt=new Set([`none`,`hidden`]);function ft(e,t){return dt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pt(e,t){return n=>P(e,t,n)}function mt(e){return typeof e==`number`?pt:typeof e==`string`?ve(e)?at:M.test(e)?ut:vt:Array.isArray(e)?ht:typeof e==`object`?M.test(e)?ut:gt:at}function ht(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _t(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 vt=(e,t)=>{let n=N.createTransformer(t),r=Xe(e),i=Xe(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?dt.has(e)&&!i.values.length||dt.has(t)&&!r.values.length?ft(e,t):f(ht(_t(r,i),i.values),n):(`${e}${t}`,at(e,t))},yt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function bt(e,t){let n=yt.exec(e);if(!n)return;let r=yt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>me(P(a,o,e))+i}function xt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return P(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=bt(e,t);if(n)return n}return mt(e)(e,t)}var St=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ct(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 wt=40;function Tt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,s=St.reduce((e,t)=>(e[t]=Ct(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(s-n.timestamp,wt),1)),n.timestamp=s,n.isProcessing=!0,c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),h.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(g))},_=()=>{r=!0,i=!0,n.isProcessing||e(g)};return{schedule:St.reduce((e,t)=>{let n=s[t];return e[t]=(e,t=!1,i=!1)=>(r||_(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<St.length;t++)s[St[t]].cancel(e)},state:n,steps:s}}var{schedule:F,cancel:I,steps:Et}=Tt(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0,D),Dt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>I(t),now:()=>D.isProcessing?D.timestamp:O.now()}},Ot=(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)})`},kt=2e4;function At(e,t=50,n=kt,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 jt(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(At(o),kt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:g(s)}}var L={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},Mt=e=>e<0?1/Math.max(1+e,L.minDamping):Math.max(1-e,L.minDamping);function Nt(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 It(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Pt(e,t){return e*Math.sqrt(1-t*t)}var Ft=12;function It(e,t,n){let r=n;for(let n=1;n<Ft;n++)r-=e(r)/t(r);return r}var Lt=.001;function Rt({duration:e=L.duration,bounce:t=L.bounce}){let n,r;L.maxDuration;let i=Mt(t);e=a(L.minDuration,L.maxDuration,g(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Pt(t,i),o=Math.exp(-r);return Lt-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Pt(t*t,i);return(-n(t)+Lt>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 o=5/e,s=It(n,r,o),c=s*Nt(i,s*e),l=c*c;return{stiffness:l,damping:i*2*Math.sqrt(l),duration:h(e)}}var zt=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Bt(e,t){if(zt(e,t))return e}function Vt(e){let t=Bt(e.stiffness),n=Bt(e.damping,!0),r=Bt(e.mass),i={...e,stiffness:t??L.stiffness,damping:n??L.damping,mass:r??L.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=Mt(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Nt(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Rt(i)),i.isResolvedFromDuration=!0;(!zt(i.stiffness)||!zt(i.damping,!0))&&(i.stiffness=L.stiffness,i.damping=L.damping)}return i}function Ht(e=L.visualDuration,t=L.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}=Vt({...n}),f=e=>d?0:-g(e),p=s/(2*Math.sqrt(o*c)),m=g(Math.sqrt(o/c)),_=p*m,v={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},y=()=>{let e=Math.abs(v.delta)<5;v.restSpeed=n.restSpeed||(e?L.restSpeed.granular:L.restSpeed.default),v.restDelta=n.restDelta||(e?L.restDelta.granular:L.restDelta.default)};y();let b,x,S;if(p<1){let e=Pt(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{t.A=(v.velocity+_*v.delta)/e,t.sinC=_*t.A+v.delta*e,t.cosC=_*v.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-_*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};b=e=>(n(e),v.target-t.env*(t.A*t.sin+v.delta*t.cos)),x=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){b=e=>v.target-Math.exp(-m*e)*(v.delta+(v.velocity+m*v.delta)*e);let e={C:0};S=()=>{e.C=v.velocity+m*v.delta},x=t=>Math.exp(-m*t)*(m*e.C*t-v.velocity)}else{let e=m*Math.sqrt(p*p-1),t=_-e,n=_+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-_*(t-r):-e*t),a={S:0,F:0};S=()=>{let t=(v.velocity+_*v.delta)/e;a.S=(v.delta+t)/2,a.F=(v.delta-t)/2},b=e=>v.target-a.S*i(t,e)-a.F*i(n,e),x=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}S();let C=u&&l||null,w={calculatedDuration:C,retarget:(e,t)=>{v.target=e[e.length-1],v.delta=v.target-e[0],v.velocity=f(t),n.restSpeed&&n.restDelta||y(),w.calculatedDuration=C,a.done=!1,S()},velocity:e=>h(x(e)),next:e=>{let t=b(e);if(u)a.done=e>=l;else{let n=h(x(e));a.done=Math.abs(n)<=v.restSpeed&&Math.abs(v.target-t)<=v.restDelta}return a.value=a.done?v.target:t,a},toString:()=>{let e=Math.min(At(w),kt),t=Ot(t=>w.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return w}Ht.applyToOptions=e=>{let t=jt(e,100,Ht);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};function Ut({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=Ht({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 Wt(e,t,n){let r=[],i=n||o.mix||xt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Gt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Wt(t,r,i),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(a(e[0],e[o-1],t)):u}function Kt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(P(n,1,i))}}function qt(e){let t=[0];return Kt(t,e.length-1),t}function Jt(e,t){return e.map(e=>e*t)}function Yt(e,t){return e.map(()=>t||ae).splice(0,e.length-1)}function R({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=oe(r)?r.map(de):de(r)||ae,s={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,c=n===r?void 0:(o.mix||xt)(n,r);return{calculatedDuration:e,next:t=>(s.value=c?c(i(e>0?a(0,1,t/e):1)):r,s.done=t>=e,s)}}let c=Gt(Jt(n&&n.length===t.length?n:qt(t),e),t,{ease:Array.isArray(i)?i:Yt(t,i)});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var Xt=5;function Zt(e,t,n){let r=Math.max(t-Xt,0);return _(n-e(r),t-r)}function Qt(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Zt(t=>e.next(t).value,t,e.next(t).value)}var $t=e=>e!==null;function en(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter($t),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var tn={decay:Ut,inertia:Ut,tween:R,keyframes:R,spring:Ht};function nn(e){typeof e.type==`string`&&(e.type=tn[e.type])}var rn=40,an=(e,t)=>t-e>rn&&!o.useManualTiming?t:e;function on(e,t){return{kind:e,animation:t,timestamp:O.now(),frameTimestamp:D.timestamp,frameIsProcessing:D.isProcessing}}function sn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...on(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function cn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...on(`layout-animation-start`,e),node:t})}catch{}}var ln=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)}},un=e=>e/100,dn=e=>Math.round(e*1e4)/1e4,fn=class extends ln{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!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),sn(this,this.options)}initAnimation(){let{options:e}=this;nn(e);let{type:t=R,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||R;s!==R&&typeof o[0]!=`number`&&(this.mixKeyframes=f(un,xt(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=At(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=an(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!==Ut&&(f.value=en(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??dn((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!==Ut?en(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:o,resolvedDuration:s}=this,{keyframes:c,repeat:l,repeatType:u,repeatDelay:d}=this.options,f=e,p=n;if(l){let t=Math.min(e,r)/s,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,l+1),n%2&&(u===`reverse`?(i=1-i,d&&(i-=d/s)):u===`mirror`&&(p=o)),f=a(0,1,i)*s}let m;return t?(this.delayState.value=c[0],m=this.delayState):m=p.next(f),i&&!t&&(m.value=i(m.value)),m}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(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 Qt(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(O.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dt,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(O.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)}},pn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function mn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(we)||[];if(!r)return e;let i=n.replace(r,``),a=+!!pn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var hn=/\b([a-z-]*)\(.*?\)/gu,gn={...N,getAnimatableNone:e=>{let t=e.match(hn);return t?t.map(mn).join(` `):e}},_n={...N,getAnimatableNone:e=>{let t=N.parse(e);return N.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},vn={...xe,transform:Math.round},yn={rotate:k,pathRotation:k,rotateX:k,rotateY:k,rotateZ:k,scale:Ce,scaleX:Ce,scaleY:Ce,scaleZ:Ce,skew:k,skewX:k,skewY:k,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Se,originX:Le,originY:Le,originZ:j},z={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,inset:j,insetBlock:j,insetBlockStart:j,insetBlockEnd:j,insetInline:j,insetInlineStart:j,insetInlineEnd:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,paddingBlock:j,paddingBlockStart:j,paddingBlockEnd:j,paddingInline:j,paddingInlineStart:j,paddingInlineEnd:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,marginBlock:j,marginBlockStart:j,marginBlockEnd:j,marginInline:j,marginInlineStart:j,marginInlineEnd:j,fontSize:j,backgroundPositionX:j,backgroundPositionY:j,...yn,zIndex:vn,fillOpacity:Se,strokeOpacity:Se,numOctaves:vn},bn={...z,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:gn,WebkitFilter:gn,mask:_n,WebkitMask:_n},xn=e=>bn[e],Sn=new Set([gn,_n]);function Cn(e,t){let n=xn(e);return Sn.has(n)||(n=N),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function wn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Tn=e=>e*180/Math.PI,En=e=>On(Tn(Math.atan2(e[1],e[0]))),Dn={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:En,rotateZ:En,skewX:e=>Tn(Math.atan(e[1])),skewY:e=>Tn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},On=e=>(e%=360,e<0&&(e+=360),e),kn=En,An=e=>Math.hypot(e[0],e[1]),jn=e=>Math.hypot(e[4],e[5]),Mn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:An,scaleY:jn,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(An(e)+jn(e))/2,rotateX:e=>On(Tn(Math.atan2(e[6],e[5]))),rotateY:e=>On(Tn(Math.atan2(-e[2],e[0]))),rotateZ:kn,rotate:kn,skewX:e=>Tn(Math.atan(e[4])),skewY:e=>Tn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nn(e){return+!!e.includes(`scale`)}function Pn(e,t){if(!e||e===`none`)return Nn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Mn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Dn,i=t}if(!i)return Nn(t);let a=r[t],o=i[1].split(`,`).map(In);return typeof a==`function`?a(o):o[a]}var Fn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Pn(n,t)};function In(e){return parseFloat(e.trim())}var B=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],V=new Set([...B,`pathRotation`]),Ln=e=>e===xe||e===j,Rn=new Set([`x`,`y`,`z`]),zn=B.filter(e=>!Rn.has(e));function Bn(e){let t=[];return zn.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Vn=new Set([`bottom`,`right`]);function Hn(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 Un={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Hn(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Hn(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})=>Pn(e,`x`),y:({transform:e})=>Pn(e,`y`)};Un.translateX=Un.x,Un.translateY=Un.y;var Wn=new Set,Gn=!1,Kn=!1,qn=!1;function Jn(){if(Kn){let e=[],t=new Set,n=new Set;Wn.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Vn.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Bn(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)})}Kn=!1,Gn=!1,Wn.forEach(e=>e.complete(qn)),Wn.clear()}function Yn(){Wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Kn=!0)})}function Xn(){qn=!0,Yn(),Jn(),qn=!1}function Zn(e,t,n){if(typeof e==`string`){if(s(e)||l(e))return parseFloat(e);if(!N.test(e)&&N.test(n))return Cn(t,n)}return e??void 0}var Qn=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?(Wn.add(this),Gn||(Gn=!0,F.read(Yn),F.resolveKeyframes(Jn))):(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=Zn(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])}wn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Wn.delete(this)}cancel(){this.state===`scheduled`&&(Wn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},$n=e=>e.startsWith(`--`);function er(e,t,n){$n(t)?e.style.setProperty(t,n):e.style[t]=n}var tr={};function nr(e,t){let n=u(e);return()=>tr[t]??n()}var rr=nr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ir=nr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ar=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,or={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function sr(e,t){if(e)return typeof e==`function`?ir()?Ot(e,t):`ease-out`:ce(e)?ar(e):Array.isArray(e)?e.map(e=>sr(e,t)||or.easeOut):or[e]}function cr(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=sr(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 lr(e){return typeof e==`function`&&`applyToOptions`in e}function ur({type:e,...t}){return lr(e)&&ir()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var dr=class extends ln{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=ur(e);this.animation=cr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=en(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),er(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},sn(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 g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(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&&rr()?(this.animation.timeline=e,t?.(this.animation),d):n(this)}},fr={anticipate:ee,backInOut:T,circInOut:E};function pr(e){return e in fr}function mr(e){typeof e.ease==`string`&&pr(e.ease)&&(e.ease=fr[e.ease])}var hr=class extends dr{constructor(e){mr(e),nn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(O.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 fn({...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,o=this.elapsed(),s=this.state===`running`&&i?a(0,10,o):0,c=this.sample(o);n&&r&&er(n,r,c),t.setWithVelocity(this.sample(o-s*Math.sign(i)),c,s/Math.abs(i||1))}},gr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(N.test(e)||e===`0`)&&!e.startsWith(`url(`));function _r(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 vr(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=gr(i,t),s=gr(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):_r(e)||(n===`spring`||lr(n))&&r}function yr(e){e.duration=0,e.type=`keyframes`}var br=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),xr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Sr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&xr.test(e[t]))return!0;return!1}var Cr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),wr=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(br.has(n)||Cr.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 wr()&&(br.has(n)||Cr.has(n)&&Sr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var H=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Er={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Dr=B.length;function Or(e,t,n){let r=``,i=!0;for(let a=0;a<Dr;a++){let o=B[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=H(s,z[o]);if(!c){i=!1;let t=Er[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${H(a,z.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var kr=new WeakMap,Ar=200,jr=.001,Mr=.1,Nr=.001,Pr=100,Fr=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ir=(e,t)=>e-t,Lr=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(P(e,t,i/n));return r},Rr=e=>e.motionValue.owner,zr=e=>kr.get(e),Br=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Vr=({name:e,motionValue:t})=>e&&B.includes(e)&&t?.owner?.current instanceof HTMLElement&&wr()&&ir();function Hr(e){let t=Rr(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Br(t,`transform`)||`none`)===`none`&&!Br(t,`pathRotation`)&&!t.projection?.isProjecting()}var Ur=class extends fn{constructor(e){let t=Rr(e).current,{driver:n=Dt}=e,r,i=Hr(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=zr(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=zr(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 zr(Rr(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(O.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ce(n)?ar(n):Fr(n)&&or[n];if(o&&!i&&!r&&e.length===2&&t===R&&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||R)===R?u||qt(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=O.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Wr(Rr(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(O.now())}get time(){return this.isAccelerated()?g(a(0,this.totalDuration,this.at(O.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 Wr(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,m=e=>{for(let t of n)if(t.name===e)return!0},h=(t,n)=>{let o={};for(let s of t===void 0?B:a){let a=r.get(s),c=t===void 0?Br(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},g=(e,t)=>{let n=``,r=h(e,t);for(let e in r)n+=(Er[e]||e)+`(`+H(r[e],z[e])+`) `;return n||`none`},_=(e=h())=>{t.style.transform=Or(e,{})},v=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>e.cancel()),s=[]},y=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=O.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)},b=(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]:[]},x=(e,t,n,r)=>{let i=Math.min(Ar,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Lr(t,n,i).concat(r).sort(Ir),o=e=>p(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)*jr>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=jr)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=jr)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=jr))return`linear`;let l=[],u=(e,t=c(e))=>l.push(dn(t)+` `+dn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&b(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},S=(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`)?Nr:Mr))),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(...b(e=>r.numberAt(e),t,n));i.push(n)}},s=Lr(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(Ir))e>c&&o(c,e,0),c=e;return i.sort(Ir)},C=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},w=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||x(e,n,r,s),l=c?[n,r]:S(e,n,r,s),u=l.map(e=>g(e,a)),d={transform:u};return c||(d.offset=l.map(e=>p(n,r,e))),u.every(e=>e===u[0])&&(_(h(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},T=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();continue}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=B.filter(t=>{if(r.has(t))return!0;let n=i[t]=Br(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),v(!1);let h=!u&&C(f);try{if(h&&h[1]>c){let[e,t,n]=h;y(w(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(y(w(f,c,l),0,l-c),m.forEach(e=>e<l-1&&y(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;y(w(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||v(),!0},ee=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},te=()=>!n.size&&(u=!0,zr(t)===E&&kr.delete(t),E.isJS||v(),!0),ne=()=>{let t=O.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]=Br(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)}),te()))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||!ee(t)){if(a){if(t-f<Pr)return E.demote();f=t}if(!T(t))return E.demote()}},E={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,D.isProcessing?F.render(ne,!1,!0):queueMicrotask(ne)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),te()||E.schedule(!0)},check(){if(!E.isJS){for(let t in i)if(Br(e,t)!==i[t]&&!m(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,v(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return kr.set(t,E),E}var Gr=class extends ln{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.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||Qn;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:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=O.now();let d=!0;vr(e,i,a,s)||(d=!1,(o.instantAnimations||!c)&&u?.(en(e,n,t)),e[0]=e[e.length-1],yr(n),n.repeat=0);let{onComplete:f}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=d&&!l&&Tr(n),m=!p&&Vr(n);r&&(p||m||this.resolvedAt!==this.createdAt)&&(n.startTime??=an(this.createdAt,this.resolvedAt));let h;if(p){n.element=n.motionValue?.owner?.current;try{h=new hr(n)}catch{h=new fn(n)}}else h=m?new Ur(n):new fn(n);this.pendingTimeline&&=(this.stopTimeline=h.attachTimeline(this.pendingTimeline),void 0),this._animation=h}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(),Xn()),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()}},Kr=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 qr(this.animations,`duration`)}get iterationDuration(){return qr(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 qr(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 Jr=class extends Kr{then(e,t){return this.finished.finally(e).then(()=>{})}},Yr=new WeakMap,Xr=(e,t=``)=>`${e}:${t}`;function Zr(e){let t=Yr.get(e);return t||(t=new Map,Yr.set(e,t)),t}function Qr(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 $r=30,ei=e=>!isNaN(parseFloat(e)),ti={current:void 0},ni=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=O.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=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ei(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 m)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new m,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(){F.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(){ti.current&&ti.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=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$r)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,$r);return _(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 U(e,t){return new ni(e,t)}function ri(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ii(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ri(n,e)}var ai={type:`spring`,stiffness:500,damping:25,restSpeed:10},oi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),si={type:`keyframes`,duration:.8},ci={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},li=(e,{keyframes:t})=>t.length>2?si:V.has(e)?e.startsWith(`scale`)?oi(t[1]):ai:ci,ui=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function di(e){for(let t in e)if(!ui.has(t))return!0;return!1}var fi=(e,t,n,r={},i,a)=>s=>{let c=ii(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!c.onUpdate};di(c)||Object.assign(d,li(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(yr(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,yr(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=en(d.keyframes,c);if(e!==void 0){F.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new fn(d):new Gr(d)},pi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mi(e){let t=pi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function hi(e,t,n=1){`${e}`;let[r,i]=mi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return ve(i)?hi(i,t,n+1):i}function gi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _i(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...gi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function vi(e,t,n){return _i(e.getProps(),t,n,e)}var yi=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,bi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...B]),xi=e=>Array.isArray(e);function Si(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,U(n))}function Ci(e){return xi(e)?e[e.length-1]||0:e}function wi(e,t){let{transitionEnd:n={},transition:r={},...i}=vi(e,t)||{};i={...i,...n};for(let t in i)Si(e,t,Ci(i[t]))}var W=e=>!!(e&&e.getVelocity);function Ti(e){return!!(W(e)&&e.add)}function Ei(e,t){let n=e.getValue(`willChange`);if(Ti(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Di(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Oi=`data-`+Di(`framerAppearId`);function ki(e){return e.props[Oi]}var Ai=typeof window<`u`;function ji({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Mi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ri(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&&ji(f,t))continue;let o={delay:n,...ii(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let p=!1;if(Ai&&window.MotionHandoffAnimation){let n=ki(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,p=!0)}}Ei(e,t);let m=l??e.shouldReduceMotion;r.start(fi(t,r,i,m&&bi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>F.update(()=>{o&&wi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ni(e,t,n={}){let r=vi(e,t,yi(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Mi(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(Ni(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Qr(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 Pi(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ni(e,t,n))):typeof t==`string`?Ni(e,t,n):Promise.all(Mi(e,vi(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Fi={test:e=>e===`auto`,parse:e=>e},Ii=e=>t=>t.test(e),Li=[xe,j,A,k,Ie,Fe,Fi],Ri=e=>Li.find(Ii(e));function zi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||l(e)}var Bi=new Set([`auto`,`none`,`0`]);function Vi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Bi.has(t)&&Ye(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Cn(n,i))}var Hi=class extends Qn{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(be(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(),ve(r))){let i=hi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!bi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ri(r),o=Ri(i);if(be(r)!==be(i)&&Un[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ln(a)&&Ln(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Un[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||zi(e[t]))&&n.push(t);n.length&&Vi(e,n,t)}measure(){let{element:e,name:t}=this;return Un[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()}},Ui=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Wi=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Ui,`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 Gi(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Wi.has(t)&&(e[n]=e[n]+`px`)}var Ki=[];function qi(e){typeof e.test==`function`&&e.read,Ji(e),Ki.unshift(e)}function Ji(e){i(Ki,e)}function Yi(e){return Ki.find(t=>t.test(e))}function Xi(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();if(u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a){F.update(()=>l.set(c));continue}l.start(fi(o,l,c,s&&bi.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation)}let{transitionEnd:c}=t;if(c){let t=()=>F.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Zi(e,t,n,r,i){return Xi(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Qi(i)??e.read(t,r,i),`${r}`}a=U(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Qi(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function $i(e){return c(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ea(e){return c(e)&&`ownerSVGElement`in e}var ta={};function na(e){return ta.current?.add(e),e}var ra=e=>ta.current?ta.current.bind(e):e;function ia(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:ta.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var aa=class{constructor(e=F.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 oa(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new aa(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 sa={};function ca(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&&` `)+(sa[i]||(sa[i]=(Er[i]||i)+`(`))+H(a,yn[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+H(i,yn.pathRotation)+`)`),t||`none`}var la=new Set([`originX`,`originY`,`originZ`]),ua=(e,t)=>H(e.get(t)?.get(),z[t]),da=(e,t,n,r)=>{let i,a;if(V.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>B.indexOf(e)-B.indexOf(t)))}t.get(`transform`)||(!$i(e)&&!t.get(`transformBox`)&&da(e,t,`transformBox`,new ni(`fill-box`)),t.set(`transform`,new ni(`none`),()=>{kr.get(e)?.check(),e.style.transform=ca(t)})),a=t.get(`transform`)}else la.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new ni(``),()=>{let n=ua(t,`originX`)??`50%`,r=ua(t,`originY`)??`50%`,i=ua(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=$n(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=H(r.getCurrent(),z[n])};return t.set(n,r,i,a)},fa=e=>$i(e)||ea(e),pa=(e,t)=>{if(V.has(t))return Fn(e,t);let n=getComputedStyle(e),r=$n(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},ma=oa(da,{test:fa,read:pa});function ha(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(V.has(e)){o=!0;continue}if(ge(e)){i[e]=n;continue}{let t=H(n,z[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Or(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 ga={offset:`stroke-dashoffset`,array:`stroke-dasharray`},_a={offset:`strokeDashoffset`,array:`strokeDasharray`};function va(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ga:_a;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ya=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ba(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ha(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 ya)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&&va(d,i,a,o,!1)}function xa(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 Sa=(e,t,n,r,i=n)=>{let a=xa(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Di(i));let o=z[n]||z[i],s=a?()=>{e[i]=H(r.get(),z[n])}:()=>{let t=H(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ca(e,t,n,r){return F.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 ni(`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 wa=oa((e,t,n,r)=>n.startsWith(`path`)&&!V.has(n)?Ca(e,t,n,r):n.startsWith(`attr`)?Sa(e,t,n,r,Ta(n)):(V.has(n)||la.has(n)||$n(n)||n in e.style?da:Sa)(e,t,n,r),{test:ea,read:(e,t)=>V.has(t)?z[t]?.default||0:$n(t)||ya.includes(t)?pa(e,t)||e.getAttribute(Di(t))||0:(t=Ta(t),e.getAttribute(Di(t))??e.getAttribute(t)??void 0)});function Ta(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ea({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Da({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Oa(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 ka(e){return e===void 0||e===1}function Aa({scale:e,scaleX:t,scaleY:n}){return!ka(e)||!ka(t)||!ka(n)}function ja(e){return Aa(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ma(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!==`0%`}function Pa(e,t,n){return n+t*(e-n)}function Fa(e,t,n,r,i){return i!==void 0&&(e=Pa(e,i,r)),Pa(e,n,r)+t}function Ia(e,t=0,n=1,r,i){e.min=Fa(e.min,t,n,r,i),e.max=Fa(e.max,t,n,r,i)}function La(e,{x:t,y:n}){Ia(e.x,t.translate,t.scale,t.originPoint),Ia(e.y,n.translate,n.scale,n.originPoint)}var Ra=.999999999999,za=1.0000000000001;function Ba(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&&(G(e.x,-a.scroll.offset.x),G(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,La(e,o)),r&&ja(a.latestValues)&&Ua(e,a.latestValues,a.layout?.layoutBox))}t.x<za&&t.x>Ra&&(t.x=1),t.y<za&&t.y>Ra&&(t.y=1)}function G(e,t){e.min+=t,e.max+=t}function Va(e,t,n,r,i=.5){Ia(e,t,n,P(e.min,e.max,i),r)}function Ha(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ua(e,t,n){let r=n??e;Va(e.x,Ha(t.x,r.x),t.scaleX,t.scale,t.originX),Va(e.y,Ha(t.y,r.y),t.scaleY,t.scale,t.originY)}function Wa(e,t){return Ea(Oa(e.getBoundingClientRect(),t))}function Ga(e,t,n){let r=Wa(e,n),{scroll:i}=t;return i&&(G(r.x,i.offset.x),G(r.y,i.offset.y)),r}var Ka={},qa=e=>ea(e)?wa:ma,Ja=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Hi}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 Wa(this.current)}getProps(){return Ka}};function Ya(e,t,n,r){if(ta.current?.track(e),r)return Xi(e=>r.getValue(e,null),t,n,r);let i=qa(e);return Zi(i,e,t,n,new Ja(i,e))}var Xa=oa((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>c(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Za,cancel:Qa}=Tt(queueMicrotask,!1);function $a(e,t,n){let r=W(e)?e:U(e);return r.start(fi(``,r,t,n)),r.animation}var eo={},to={value:null,addProjectionMetrics:null};function no(e,t){let n=O.now();e=ra(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(I(r),e(a-t))};return F.setup(r,!0),na(()=>I(r))}function ro(e){return ea(e)&&e.tagName===`svg`}function io(e){return W(e)?e.get():e}var ao=e=>typeof e==`number`?e:parseFloat(e),oo=Ui.length,so=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],co=so.length,lo=e=>typeof e==`number`||j.test(e);function uo(e,t,n,r,i,a){i?(e.opacity=P(0,n.opacity??1,po(r)),e.opacityExit=P(t.opacity??1,0,mo(r))):a&&(e.opacity=P(t.opacity??1,n.opacity??1,r));for(let i=0;i<oo;i++){let a=Ui[i],o=fo(t,a),s=fo(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||lo(o)===lo(s)?(e[a]=Math.max(P(ao(o),ao(s),r),0),(A.test(s)||A.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<co;i++){let a=so[i];(t[a]||n[a])&&(e[a]=P(t[a]||0,n[a]||0,r))}}function fo(e,t){return e[t]===void 0?e.borderRadius:e[t]}var po=ho(0,.5,ne),mo=ho(.5,.95,d);function ho(e,t,n){return r=>r<e?0:r>t?1:n(p(e,t,r))}function go(e,t){e.min=t.min,e.max=t.max}function K(e,t){go(e.x,t.x),go(e.y,t.y)}function _o(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var vo=.9999,yo=1.0001,bo=-.01,xo=.01;function q(e){return e.max-e.min}function So(e,t,n){return Math.abs(e-t)<=n}function Co(e,t,n,r=.5){e.origin=r,e.originPoint=P(t.min,t.max,e.origin),e.scale=q(n)/q(t),e.translate=P(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vo&&e.scale<=yo||isNaN(e.scale))&&(e.scale=1),(e.translate>=bo&&e.translate<=xo||isNaN(e.translate))&&(e.translate=0)}function wo(e,t,n,r){Co(e.x,t.x,n.x,r?r.originX:void 0),Co(e.y,t.y,n.y,r?r.originY:void 0)}function To(e,t,n,r=0){e.min=(r?P(n.min,n.max,r):n.min)+t.min,e.max=e.min+q(t)}function Eo(e,t,n,r){To(e.x,t.x,n.x,r?.x),To(e.y,t.y,n.y,r?.y)}function Do(e,t,n,r=0){let i=r?P(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+q(t)}function Oo(e,t,n,r){Do(e.x,t.x,n.x,r?.x),Do(e.y,t.y,n.y,r?.y)}function ko(e,t,n,r,i){return e-=t,e=Pa(e,1/n,r),i!==void 0&&(e=Pa(e,1/i,r)),e}function Ao(e,t=0,n=1,r=.5,i,a=e,o=e){if(A.test(t)&&(t=parseFloat(t),t=P(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=P(a.min,a.max,r);e===a&&(s-=t),e.min=ko(e.min,t,n,s,i),e.max=ko(e.max,t,n,s,i)}function jo(e,t,[n,r,i],a,o){Ao(e,t[n],t[r],t[i],t.scale,a,o)}var Mo=[`x`,`scaleX`,`originX`],No=[`y`,`scaleY`,`originY`];function Po(e,t,n,r){jo(e.x,t,Mo,n?n.x:void 0,r?r.x:void 0),jo(e.y,t,No,n?n.y:void 0,r?r.y:void 0)}var Fo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Io=()=>({x:Fo(),y:Fo()}),Lo=()=>({min:0,max:0}),J=()=>({x:Lo(),y:Lo()});function Ro(e){return e.translate===0&&e.scale===1}function zo(e){return Ro(e.x)&&Ro(e.y)}function Bo(e,t){return e.min===t.min&&e.max===t.max}function Vo(e,t){return Bo(e.x,t.x)&&Bo(e.y,t.y)}function Ho(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uo(e,t){return Ho(e.x,t.x)&&Ho(e.y,t.y)}function Wo(e){return q(e.x)/q(e.y)}function Go(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Ko=class{constructor(){this.members=[]}add(e){r(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&&(i(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(i(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 qo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(j.test(e))e=parseFloat(e);else return e;return`${qo(e,t.target.x)}% ${qo(e,t.target.y)}%`}},Yo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=N.parse(e);if(i.length>5)return r;let a=N.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=P(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Xo={borderRadius:{...Jo,applyTo:[...Ui]},borderTopLeftRadius:Jo,borderTopRightRadius:Jo,borderBottomLeftRadius:Jo,borderBottomRightRadius:Jo,boxShadow:Yo};function Zo(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 Y(e){return[e(`x`),e(`y`)]}var Qo=(e,t)=>e.depth-t.depth,$o=class{constructor(){this.children=[],this.isDirty=!1}add(e){r(this.children,e),this.isDirty=!0}remove(e){i(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qo),this.isDirty=!1,this.children.forEach(e)}},es={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(eo,{...Xo,...eo});var ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ns=[``,`X`,`Y`,`Z`],rs=1e3,is=0;function as(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var os=({instance:e})=>e&&kr.get(e)?.demote();function ss(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ki(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ss(r)}function cs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=is++,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,to.value&&(ts.nodes=ts.calculatedTargetDeltas=ts.calculatedProjections=0),this.nodes.forEach(ds),this.nodes.forEach(Ss),this.nodes.forEach(Cs),this.nodes.forEach(fs),to.addProjectionMetrics&&to.addProjectionMetrics(ts)},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 $o)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new m),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=ea(t)&&!ro(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;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=no(i,250),es.hasAnimatedSinceResize&&(es.hasAnimatedSinceResize=!1,this.nodes.forEach(xs)))})}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()||ks,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Uo(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={...ii(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||xs(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,I(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(ws),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&&ss(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;os(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,os(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(hs),this.nodes.forEach(ms);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(vs),this.nodes.forEach(ys),this.nodes.forEach(bs),this.nodes.forEach(ls),this.nodes.forEach(us)):this.nodes.forEach(gs),this.clearAllSnapshots();let e=O.now();D.delta=a(0,1e3/60,e-D.timestamp),D.timestamp=e,D.isProcessing=!0,Et.update.process(D),Et.preRender.process(D),Et.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Za.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ps),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.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||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&os(this);let t=this.projectionDelta&&!zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ja(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)),Ns(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Fs))){let{scroll:e}=this.root;e&&(G(t.x,e.offset.x),G(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(K(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&&K(t,e),G(t.x,i.offset.x),G(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();K(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&&(G(r.x,-n.scroll.offset.x),G(r.y,-n.scroll.offset.y)),ja(n.latestValues)&&Ua(r,n.latestValues,n.layout?.layoutBox)}return ja(this.latestValues)&&Ua(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();K(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ja(n.latestValues))continue;let r;n.instance&&(Aa(n.latestValues)&&n.updateSnapshot(),r=J(),K(r,n.measurePageBox())),Po(t,n.latestValues,n.snapshot?.layoutBox,r)}return ja(this.latestValues)&&Po(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!==D.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=D.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Eo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):K(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):K(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),to.value&&ts.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Aa(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Oo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),K(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===D.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;K(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ba(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_o(this.prevProjectionDelta.x,this.projectionDelta.x),_o(this.prevProjectionDelta.y,this.projectionDelta.y)),wo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Go(this.projectionDelta.x,this.prevProjectionDelta.x)||!Go(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),to.value&&ts.calculatedProjections++}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=Io(),this.projectionDelta=Io(),this.projectionDeltaWithTransform=Io()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Io();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Os));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=P(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=P(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ts(o.x,e.x,n),Ts(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ds(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),K(f,this.relativeTarget)),c&&(this.animationValues=a,uo(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&&=(I(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{es.hasAnimatedSinceResize=!0,this.motionValue||=U(0),this.motionValue.jump(0,!1),this.currentAnimation=$a(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()}}),cn(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(rs),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&&Ps(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||J();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}K(t,i),Ua(t,r),wo(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ko),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&&as(`z`,e,r,this.animationValues);for(let t=0;t<ns.length;t++)as(`rotate${ns[t]}`,e,r,this.animationValues),as(`skew${ns[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=io(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=io(t?.pointerEvents)||``),this.hasProjected&&!ja(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Zo(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 eo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=eo[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?io(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(ms),this.root.sharedNodes.clear()}}}function ls(e){e.updateLayout(),_s(e)}function us(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`)Y(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`;go(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ps(i,t.layoutBox,n)&&Y(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=Io();wo(o,n,t.layoutBox);let s=Io();a?wo(s,e.applyTransform(r,!0),t.measuredBox):wo(s,n,t.layoutBox);let c=!zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();Oo(s,t.layoutBox,i.layoutBox,o);let c=J();Oo(c,n,a.layoutBox,o),Uo(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 ds(e){to.value&&ts.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 fs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ps(e){e.clearSnapshot()}function ms(e){e.clearMeasurements()}function hs(e){e.isLayoutDirty=!0,e.updateLayout()}function gs(e){e.isLayoutDirty=!1}function _s(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Y(e=>G(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function vs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function ys(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function bs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function xs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ss(e){e.resolveTargetDelta()}function Cs(e){e.calcProjection()}function ws(e){e.resetSkewAndRotation()}function Ts(e,t,n){e.translate=P(t.translate,0,n),e.scale=P(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Es(e,t,n,r){e.min=P(t.min,n.min,r),e.max=P(t.max,n.max,r)}function Ds(e,t,n,r){Es(e.x,t.x,n.x,r),Es(e.y,t.y,n.y,r)}function Os(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var ks={duration:.45,ease:[.4,0,.1,1]},As=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),js=As(`applewebkit/`)&&!As(`chrome/`)?Math.round:d;function Ms(e){e.min=js(e.min),e.max=js(e.max)}function Ns(e){Ms(e.x),Ms(e.y)}function Ps(e,t,n){return e===`position`||e===`preserve-aspect`&&!So(Wo(t),Wo(n),.2)}function Fs(e){return e!==e.root&&e.scroll?.wasRoot}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ls=cs({attachResizeListener:(e,t)=>Is(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Rs={current:void 0},zs=cs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rs.current){let e=new Ls({});e.mount(window),e.setOptions({layoutScroll:!0}),Rs.current=e}return Rs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Bs=new WeakMap;function Vs(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Hs(e){return typeof e==`string`||Array.isArray(e)}var Us=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ws=[`initial`,...Us];function Gs(e){if(Vs(e.animate))return!0;for(let t=0;t<Ws.length;t++)if(Hs(e[Ws[t]]))return!0;return!1}function Ks(e){return!!(Gs(e)||e.variants)}function qs(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,U(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,U(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Js={current:null},Ys={current:!1},Xs=typeof window<`u`;function Zs(){if(Ys.current=!0,Xs)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Js.current=e.matches;e.addEventListener(`change`,t),t()}else Js.current=!1}var Qs=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],$s={};function ec(e){$s=e}function tc(){return $s}var nc=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=Qn,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=O.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.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=Gs(t),this.isVariantNode=Ks(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&&W(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,Bs.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:(Ys.current||Zs(),this.shouldReduceMotion=Js.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(),I(this.notifyUpdate),I(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&&br.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new dr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=V.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),kr.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 $s){let t=$s[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&kr.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Qs.length;t++){let n=Qs[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=qs(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=U(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`&&(s(n)||l(n))?n=parseFloat(n):typeof n!=`number`&&!N.test(n)&&N.test(t)&&(n=Cn(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Za.render(this.render)}},rc=class extends nc{constructor(){super(...arguments),this.KeyframeResolver=Hi}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;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function ic(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 ac(e,{layout:t,layoutId:n}){return V.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!eo[e]||e===`opacity`)}function oc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||ac(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function sc(e){return window.getComputedStyle(e)}var cc=class extends rc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ic}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(V.has(t))return this.projection?.isProjecting?Nn(t):Fn(e,t);{let n=sc(e),r=(ge(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Wa(e,t)}build(e,t,n){ha(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return oc(e,t,n)}},lc=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function uc(e){return{point:{x:e.pageX,y:e.pageY}}}var dc=e=>t=>lc(t)&&e(t,uc(t));function fc(e,t,n,r){return Is(e,t,dc(n),r)}var pc=new WeakMap,mc,hc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ea(r)&&`getBBox`in r?r.getBBox()[t]:r[n],gc=hc(`inline`,`width`,`offsetWidth`),_c=hc(`block`,`height`,`offsetHeight`);function vc({target:e,borderBoxSize:t}){pc.get(e)?.forEach(n=>{n(e,{get width(){return gc(e,t)},get height(){return _c(e,t)}})})}function yc(e){e.forEach(vc)}function bc(){typeof ResizeObserver>`u`||(mc=new ResizeObserver(yc))}function xc(e,t){mc||bc();let n=ia(e);return n.forEach(e=>{let n=pc.get(e);n||(n=new Set,pc.set(e,n)),n.add(t),mc?.observe(e)}),()=>{n.forEach(e=>{let n=pc.get(e);n?.delete(t),n?.size||mc?.unobserve(e)})}}var Sc=new Set,Cc;function wc(){Cc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Sc.forEach(t=>t(e))},window.addEventListener(`resize`,Cc)}function Tc(e){return Sc.add(e),Cc||wc(),()=>{Sc.delete(e),!Sc.size&&typeof Cc==`function`&&(window.removeEventListener(`resize`,Cc),Cc=void 0)}}function Ec(e,t){return na(typeof e==`function`?Tc(e):xc(e,t))}var Dc=(e,t)=>Math.abs(e-t);function Oc(e,t){let n=Dc(e.x,t.x),r=Dc(e.y,t.y);return Math.sqrt(n**2+r**2)}var kc=new Set([`auto`,`scroll`]),Ac=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=jc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Nc(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Oc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:O.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=jc(t,this.transformPagePoint),this.hasPendingMove=!0,F.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=Nc(e.type===`pointercancel`?this.lastMoveEventInfo:jc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!lc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=jc(uc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=D;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Nc(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=f(fc(this.contextWindow,`pointermove`,this.handlePointerMove,d),fc(this.contextWindow,`pointerup`,this.handlePointerUp,d),fc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(kc.has(e.overflowX)||kc.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),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),I(this.updatePoint)}};function jc(e,t){return t?{point:t(e.point)}:e}function Mc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nc({point:e},t){return{point:e,delta:Mc(e,Fc(t)),offset:Mc(e,Pc(t)),velocity:Ic(t,.1)}}function Pc(e){return e[0]}function Fc(e){return e[e.length-1]}function Ic(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Fc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>h(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>h(t)*2&&(r=e[1]);let a=g(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 Lc=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Rc(e){return Lc.has(e.tagName)||e.isContentEditable===!0}var zc=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Bc(e){return zc.has(e.tagName)||e.isContentEditable===!0}var X={x:!1,y:!1};function Vc(){return X.x||X.y}function Hc(e){return e===`x`||e===`y`?X[e]?null:(X[e]=!0,()=>{X[e]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function Uc(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?P(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?P(n,e,r.max):Math.min(e,n)),e}function Wc(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 Gc(e,{top:t,left:n,bottom:r,right:i}){return{x:Wc(e.x,n,i),y:Wc(e.y,t,r)}}function Kc(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 qc(e,t){return{x:Kc(e.x,t.x),y:Kc(e.y,t.y)}}function Jc(e,t){let n=.5,r=q(e),i=q(t);return i>r?n=p(t.min,t.max-r,e.min):r>i&&(n=p(e.min,e.max-i,t.min)),a(0,1,n)}function Yc(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 Xc=.35;function Zc(e=Xc){return e===!1?e=0:e===!0&&(e=Xc),{x:Qc(e,`left`,`right`),y:Qc(e,`top`,`bottom`)}}function Qc(e,t,n){return{min:$c(e,t),max:$c(e,n)}}function $c(e,t){return typeof e==`number`?e:e[t]||0}var el=new WeakMap,tl=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=J(),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=Hc(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),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ve(t)&&(t=hi(t,this.visualElement.current)||0),j.test(t))t=parseFloat(t);else if(A.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&&F.update(()=>i(e,t),!1,!0),Ei(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=sl(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&&F.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 Ac(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){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&&F.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||!ol(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Uc(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;nl(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Gc(n.layoutBox,e):!1,this.elastic=Zc(t),r!==this.constraints&&!nl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Yc(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!nl(e))return!1;let n=rl(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ga(n,r.root,this.visualElement.getTransformPagePoint()),a=qc(r.layout.layoutBox,i);if(t){let e=t(Da(a));this.hasMutatedConstraints=!!e,e&&(a=Ea(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!ol(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 Ei(this.visualElement,e),n.start(fi(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(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();Y(e=>{if(!ol(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-P(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nl(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Jc({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(),Y(t=>{let n=this.getAxisMotionValue(t);if(!ol(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(P(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;el.set(this.visualElement,this);let e=this.visualElement.current,t=fc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Bc(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=nl(t)&&rl(t);r&&(this.constraints=this.resolveRefConstraints(),n||=al(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(r);let o=Is(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(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.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Xc,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function nl(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var rl=e=>`current`in e?e.current:e;function il(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function al(e,t,n){let r=Ec(e,il(n)),i=Ec(t,il(n));return()=>{r(),i()}}function ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function cl(e,t){let n=ia(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},na(()=>r.abort())]}function ll(e){return!(e.pointerType===`touch`||Vc())}function ul(e,t,n={}){t=ra(t);let[r,i,a]=cl(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=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ll(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 dl=(e,t)=>t?e===t||dl(e,t.parentElement):!1,fl=new WeakSet;function pl(e){return t=>{t.key===`Enter`&&e(t)}}function ml(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var hl=(e,t)=>{let n=!1,r=pl(()=>{fl.has(e)||(n=!0,ml(e,`down`))}),i=pl(()=>{n&&(n=!1,ml(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&ml(e,`cancel`)},{...t,once:!0})};function gl(e){return lc(e)&&!Vc()}var _l=new WeakSet;function vl(e,t,n={}){t=ra(t);let[r,i,a]=cl(e,n),o=e=>{let r=e.currentTarget;if(!gl(e)||_l.has(e))return;fl.add(r),n.stopPropagation&&_l.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),fl.has(r)&&fl.delete(r),gl(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||dl(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),$i(e)&&(e.addEventListener(`focus`,()=>hl(e,i),i),!Rc(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function yl(e,t){let n=window.getComputedStyle(e);return $n(t)?n.getPropertyValue(t):n[t]}var Z=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},bl=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`]),xl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Sl(e,t,n,r){ic(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(bl.has(n)?n:Di(n),t.attrs[n])}function Cl(e,t,n){let r=oc(e,t,n);for(let n in e)if(n!==`children`&&(W(e[n])||W(t[n]))){let t=B.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var wl=class extends rc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return V.has(t)?super.getBaseTargetFromProps(e,t)??Nn(t):e[t]}getDefaultValue(e){return V.has(e)?this.latestValues[e]??Nn(e):void 0}readValueFromInstance(e,t){if(V.has(t)){let e=xn(t);return e&&e.default||0}if(ya.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=bl.has(t)?t:Di(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Cl(e,t,n)}build(e,t,n){ba(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Sl(e,t,n,r)}mount(e){this.isSVGTag=xl(e.tagName),super.mount(e)}};function Tl(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 El=[...Us].reverse();function Dl(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Pi(e,t,n))),n=kl(),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(El.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?Hs(g)||g===!1?g:void 0:h,v=Hs(_),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||Vs(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Ol(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}=vi(e,n,yi(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)?!Tl(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=vi(s,n)?.transition?.delayChildren;r.delay=Qr(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&vi(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&&!W(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=kl(),i=!0}}}function Ol(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Tl(t,e):!1}function kl(){let e={};for(let t of Us)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Al(e){return typeof e==`object`&&!Array.isArray(e)}function jl(e,t,n,r){return e==null?[]:typeof e==`string`&&Al(t)?ia(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ml(e,t,n){return e*(t+1)+n*t}function Nl(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 Pl(e,t,n){for(let r=0;r<e.length;r++){let a=e[r];a.at>t&&a.at<n&&(i(e,a),r--)}}function Fl(e,t,n,r,i,a){Pl(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:P(i,a,r[o]),easing:se(n,o)})}function Il(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Ll(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Rl=`easeInOut`,zl=20;function Bl(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,Nl(d,o.at,u,l));continue}let[p,m,g={}]=o;g.at!==void 0&&(d=Nl(d,g.at,u,l));let _=0,v=(e,n,r,o=0,s=0)=>{let c=Ul(e),{delay:l=0,times:u=qt(c),type:p=t.type||`keyframes`,repeat:m,repeatType:g,repeatDelay:v=0,...y}=n,{ease:b=t.ease||`easeOut`,duration:x}=n,C=typeof l==`function`?l(o,s):l,w=c.length,T=lr(p)?p:i?.[p||`keyframes`];if(w<=2&&T){let e=100;if(w===2&&Kl(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...y};x!==void 0&&(n.duration=h(x));let r=jt(n,e,T);b=r.ease,x=r.duration}x??=a;let ee=d+C;u.length===1&&u[0]===0&&(u[1]=1);let te=u.length-c.length;if(te>0&&Kt(u,te),c.length===1&&c.unshift(null),m&&`${m}${zl}`,m&&m<zl){let e=x>0?v/x:0;x=Ml(x,m,v);let t=[...c],n=[...u];b=Array.isArray(b)?[...b]:[b];let r=[...b],i=g===`reverse`||g===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),g===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?S(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),b.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),b.push(e===0?`linear`:se(f,e-1))}Il(u,m,e)}let ne=ee+x;Fl(r,c,b,u,ee,ne),_=Math.max(C+x,_),f=Math.max(ne,f)};if(W(p)){let e=Vl(p,s);v(m,g,Hl(`default`,e))}else{let e=jl(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,g=g;let r=e[n],i=Vl(r,s);for(let e in m)v(m[e],Wl(g,e),Hl(e,i),n,t)}}u=d,d+=_}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Ll);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(p(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Rl)),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,...m}=t;u.transition[i]={...m,duration:f,ease:l,times:c,...n}}}),o}function Vl(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Hl(e,t){return t[e]||(t[e]=[]),t[e]}function Ul(e){return Array.isArray(e)?e:[e]}function Wl(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Gl=e=>typeof e==`number`,Kl=e=>e.every(Gl);function ql(e,t){return W(e)||typeof e==`number`||typeof e==`string`&&!Al(t)}function Jl(e,t,n,r){let i=[];if(ql(e,t))i.push($a(e,Al(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=jl(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(...Ya(r,t,s,Bs.get(r))):i.push(...Zi(Yi(r)??Xa,r,t,s))}}return i}function Yl(e,t,n){let r=[];return Bl(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=U(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:Ht}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Jl(n,e,t))}),r}function Xl(e){return Array.isArray(e)&&e.some(Array.isArray)}function Zl(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function a(e,a,o){let s=[],c,l=ta.current,u=l?.transition,d={};if(n!==void 0&&(d.reduceMotion=n),r!==void 0&&(d.skipAnimations=r),Xl(e)){let{onComplete:n,...r}=a||{};typeof n==`function`&&(c=n),u&&(r.defaultTransition={...u,...r.defaultTransition}),s=Yl(e,{...d,...r},t)}else{let{onComplete:n,...r}=o||{};typeof n==`function`&&(c=n),s=Jl(e,a,{...d,...u,...r},t)}let f=new Jr(s);return c&&f.finished.then(c),l&&f.finished.then(l.add(()=>f.stop())),t&&(t.animations.push(f),f.finished.then(()=>{i(t.animations,f)})),f}return a}var Ql=Object.assign(Zl(),{addEffect:qi,removeEffect:Ji});function $l(e,t,n,r){if(e==null)return[];let i=ia(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={...ii(s,e)};i.duration&&=h(i.duration),i.delay&&=h(i.delay);let a=Zr(r),c=Xr(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]=yl(r,i)),wn(t),Gi(t,i),!a&&t.length<2&&t.unshift(yl(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 dr(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var eu=(e=>{function t(t,n,r){return new Jr($l(t,n,r,e))}return t})(),Q=t(),$=e(n(),1),tu=(0,$.createContext)({});function nu(e){let t=(0,$.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ru=typeof window<`u`?$.useLayoutEffect:$.useEffect,iu=(0,$.createContext)(null),au=(0,$.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ou(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function su(...e){return t=>{let n=!1,r=e.map(e=>{let r=ou(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():ou(e[t],null)}}}}function cu(...e){return $.useCallback(su(...e),e)}var lu=class extends $.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if($i(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=$i(e)&&e.offsetWidth||0,r=$i(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 uu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,$.useId)(),c=(0,$.useRef)(null),l=(0,$.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,$.useContext)(au),d=cu(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,$.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
2
2
  [data-motion-pop-id="${s}"] {
3
3
  position: absolute !important;
4
4
  width: ${e}px !important;