PageSourceSearch

https://hellodoktor.com/assets/process-3.webp.asset-BK_nlR1u.js

js hellodoktor.com collected 2026-10-02 11:49:44 UTC 142,578 bytes, 1 lines download raw bytes

1import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{a as n,at as r,c as i,h as a,n as o,r as s,t as c,u as l}from"./track-3ARTrxOT.js";var u=e(r(),1),d={version:1,asset_id:`ba33ed65-f051-43ad-afb9-779713ee1289`,project_id:`d822556b-d51e-44ed-8cba-d9352936086e`,url:`/__l5e/assets-v1/ba33ed65-f051-43ad-afb9-779713ee1289/hellodoktor.png`,r2_key:`a/v1/d822556b-d51e-44ed-8cba-d9352936086e/ba33ed65-f051-43ad-afb9-779713ee1289/hellodoktor.png`,original_filename:`hellodoktor.png`,size:3274,content_type:`image/png`,created_at:`2026-08-13T09:28:04Z`},f=t(),p=[{code:`en`,label:`EN`},{code:`ms`,label:`BM`}];function m({label:e,className:t=``}){let n=i(),r=a(),o=l();return(0,f.jsx)(`div`,{className:`hd-lang ${t}`.trim(),role:`group`,"aria-label":e,children:p.map(e=>(0,f.jsx)(`button`,{type:`button`,lang:e.code===`ms`?`ms`:`en`,"aria-pressed":n===e.code,"data-event-category":c,"data-event-action":`Header navigate - change language`,"data-event-label":`${o.pathname}?lan=${e.code}`,className:`hd-lang-btn${n===e.code?` is-active`:``}`,onClick:()=>r({to:`.`,search:(t=>({...t,lan:e.code})),resetScroll:!1}),children:e.label},e.code))})}var h={"#process":`Header navigate - how it works`,"#programme":`Header navigate - programme`,"#doctors":`Header navigate - doctors`,"#faq":`Header navigate - faq`};function g({ctaHref:e}){let t=i(),r=s(),a=n[t].header,o=a.nav,[c,l]=(0,u.useState)(!1),[p,g]=(0,u.useState)(!1),_=(0,u.useRef)(0),v=(0,u.useId)(),y=(0,u.useRef)(null),b=(0,u.useRef)(null);return(0,u.useEffect)(()=>{let e=()=>{let e=window.scrollY;e<10||e<_.current?l(!1):l(!0),_.current=e};return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,u.useEffect)(()=>{if(!p)return;let e=document.documentElement.style.overflow;document.documentElement.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&g(!1)};window.addEventListener(`keydown`,t);let n=window.setTimeout(()=>b.current?.focus(),0);return()=>{document.documentElement.style.overflow=e,window.removeEventListener(`keydown`,t),window.clearTimeout(n),y.current?.focus()}},[p]),(0,f.jsxs)(`header`,{className:`hd-header${c?` hd-header-hidden`:``}`,children:[(0,f.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[1160px] items-center justify-between px-6 py-4`,children:[(0,f.jsx)(`a`,{href:`https://hellodoktor.com/`,className:`flex shrink-0 items-center`,"aria-label":a.homeAria,...r.dest(`Header navigate - logo`,`https://hellodoktor.com/`),children:(0,f.jsx)(`img`,{src:d.url,alt:`Hello Doktor`,className:`h-6 w-auto`,width:140,height:24,style:{filter:`brightness(0) invert(1)`}})}),(0,f.jsxs)(`nav`,{className:`hidden items-center gap-7 md:flex`,children:[o.map(e=>(0,f.jsx)(`a`,{href:e.href,...r.page(h[e.href]??`Header navigate`),className:`text-sm font-medium opacity-80 transition hover:opacity-100`,children:e.label},e.label)),(0,f.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,...r.dest(`Header navigate - speak to a doctor`,e),className:`hd-header-cta`,children:a.cta}),(0,f.jsx)(m,{label:a.language})]}),(0,f.jsx)(`div`,{className:`flex items-center gap-2 md:hidden`,children:(0,f.jsx)(`button`,{ref:y,type:`button`,"aria-label":a.openMenu,"aria-haspopup":`dialog`,"aria-expanded":p,"aria-controls":v,onClick:()=>g(!0),...r.page(`Header navigate - open menu`),style:{padding:8},children:(0,f.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,children:(0,f.jsx)(`path`,{d:`M3 6h18M3 12h18M3 18h18`,strokeLinecap:`round`})})})})]}),p&&(0,f.jsx)(`div`,{className:`hd-drawer`,onClick:()=>g(!1),children:(0,f.jsxs)(`div`,{id:v,className:`hd-drawer-panel`,role:`dialog`,"aria-modal":`true`,"aria-label":a.menu,onClick:e=>e.stopPropagation(),children:[(0,f.jsxs)(`div`,{className:`mb-4 flex items-center justify-between`,children:[(0,f.jsx)(`span`,{className:`font-semibold`,children:a.menu}),(0,f.jsx)(`button`,{ref:b,"aria-label":a.closeMenu,onClick:()=>g(!1),...r.page(`Header navigate - close menu`),style:{padding:8},children:(0,f.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,children:(0,f.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`,strokeLinecap:`round`})})})]}),o.map(e=>(0,f.jsx)(`a`,{href:e.href,onClick:()=>g(!1),...r.page(h[e.href]??`Header navigate`),className:`rounded-md px-2 py-3 text-base font-medium`,children:e.label},e.label)),(0,f.jsx)(m,{label:a.language,className:`hd-lang-drawer mt-4`}),(0,f.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>g(!1),...r.dest(`Header navigate - speak to a doctor`,e),className:`hd-drawer-cta hd-header-cta mt-3 w-full`,children:a.drawerCta})]})})]})}var _=(...e)=>
vendor: 4,557 bytes, line 1
1e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),v=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),y=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),b=e=>{let t=y(e);return t.charAt(0).toUpperCase()+t.slice(1)},x={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},S=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},C=(0,u.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,u.createElement)(`svg`,{ref:c,...x,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_(`lucide`,i),...!a&&!S(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,u.createElement)(e,t)),...Array.isArray(a)?a:[a]])),w=(e,t)=>{let n=(0,u.forwardRef)(({className:n,...r},i)=>(0,u.createElement)(C,{ref:i,iconNode:t,className:_(`lucide-${v(b(e))}`,`lucide-${e}`,n),...r}));return n.displayName=b(e),n},ee=w(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),te=w(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ne=w(`facebook`,[[`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`,key:`1jg4f8`}]]),re=w(`instagram`,[[`rect`,{width:`20`,height:`20`,x:`2`,y:`2`,rx:`5`,ry:`5`,key:`2e1cvw`}],[`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`,key:`9exkf1`}],[`line`,{x1:`17.5`,x2:`17.51`,y1:`6.5`,y2:`6.5`,key:`r4j83e`}]]),ie=w(`linkedin`,[[`path`,{d:`M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z`,key:`c2jq9f`}],[`rect`,{width:`4`,height:`12`,x:`2`,y:`9`,key:`mk3on5`}],[`circle`,{cx:`4`,cy:`4`,r:`2`,key:`bt5ra8`}]]),ae=w(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),oe=w(`youtube`,[[`path`,{d:`M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17`,key:`1q2vi4`}],[`path`,{d:`m10 15 5-3-5-3z`,key:`1jp15x`}]]),se=`data:image/webp;base64,UklGRpYKAABXRUJQVlA4WAoAAAAQAAAAxwAARwAAQUxQSGoAAAABP6CgjSQ1eGCARcCTg4+I4C3/lSVc1bYqRDeCzwhUwAZiA7GBVqD/Qv/u/dOZiP5PAADPi/gRhs7tvMti78AkIYq/aRglMDS4gvr776XFFKQGpAAXYfx2KAgAYyO3oiW5pQHDiM94pGYNVlA4IAYKAADwMACdASrIAEgAPmEqkkWkIqIZ2za0QAYEtgBk/w4/Ven8+P5D5APlytH+S3oiu/Oy59/Lvqn9UH6C3l/mL/mv9y/cz3VP+f6v/QA/t3+N63j0CPLn9mj91PSzzWT/Gdrf+O8OfxD5V+zflRy2ulv9L5J/wP5o9EPAX1T+oF+RbhD9nlyaA/s3nt/nem/yB/yfhv/DP7F6gH9V9DbS3/Sek8nKFBikH9QuPQeljgIm9DI5D0e4xPsOHmIrImlFldnEEqIRcV7ffB79UAV3EQl+LGMyB94dWu4NVtWPBly5dOwmzPOebWN1PRjF1xH8wRX+SaIDsDFFx5/DweOsSOUoD5yhtgfRaTfLN85VPYxq3iCGmofQ56uO1JYtoBoj0a/GYYrujED6UAomvH6tMhkRMgI2pBuKljNFkq4/eLlVRcRMUH/uNIZpBw14peEIDq5O6gvpemwx5gh5ifs5mp5J+YROARPrkK8Yrdw0OfaVTzTeNptJzGE8B5391tsq+dXfFh1IbrgDJ+G7Kduvc5GAAPuUSFnLluXpp/WJt2jil8mwiPB3O7kXXe9UPnykBvMIWFH6VVblczNk+aAjRJYUncy+D2wrCgZPF1KzkbijTfzGp/tldA9kPA/5ZTv+Lt8uyudpT/I6NTgIhbQn/ewzIFCLTllIJgz6kEApTrxLGj3uAVPvtFMBB6ajjUB3CKTdDthMIb0P1l6zQ/ram7gJxVpo7bPRDIXGfDlwtXzDW8TCV058rXN1Dz94+sQmwQxw8DzWumes2t24jNY/3ucSWku/HG/xF6lznlC8odc0foHe8Ic8FbZ4mhqKerTHVHVVlOYmK09hfZ/R8BPMlGQ5dIfBPJC7b7kkqjy9H69nv3Ct2DcxFsZ/qzyxYmEzplbzVKLHA+RwtxupoIhHWazqvVY6opsDpx/wYZwLNAfseRug2krPiK/I42kT4MxEA3NSyCsF7B0ag3R1iihJZl66aUl7MUlKjcCiID5RJ5TFxvGkER3EotBEUZmrZf5k1tKn1LF/IvU7j6Jd9DzWybG7i5UTFRLq3Y6VqAbKynz5ghxNLXpv6hoe3iBdF0yJsn/0VLzcgCCXKS/fqmj3SYZxUYP04Cs9uwiUiFW+K0LwzkBTXZyxlx9j9cJvqH16F2l0ZZbK/ghYyLa66uHZNs28VX3nmONcBcnzxk5d0WFOEtlGP1Wx8yi/0O9eCx/Ar+Ei6Ex+XL+vEwOPY4btTck+LkQNR/8HJwv4LX7j+/8LZjot3Ky0LWCQrQLWAgZFJwDatvScSoY6EceFbaJWnO/bh4gHOa60L0tlRcVOM1s79P2I+rVz6XFrME++aTezM63NJub0vMbGZ+hPxqAzjV2K2StD5xA3hFUZYjjM1Ia2KGjsY12S1WSPFQU89cW7v7SVAYrBifApGL1oGupx+iva6tvdsaOOVyq0/OsGTbSye/P9rZN/RLqQFHIMbYfYudC0RgHxMOuBqQG70U7m80pcMbN57C+rSr2vjT08oHIWBpiaB36jzsOn0FzM6XuF1y3lE9pF+5XMhHV32G7nhsUxyexvsK9NOSSs6u4/HTVs8+q2zccXMNyoBxVAYuTZ0kWaMumcsnHiuKmFXVcW23AflZuYOtiZFy4VRXqfuUeZx/IxsSDgjtaJxHx2UA+5KzuHIy6XaedcW4Uglo6rveBikZvcpN+7+7DYibCBMsBKalBEcEt2pvj02PO2sA6NHvK4jC1KWfHpdoyZOvZW3hNqXv0K9sJ3RwUFYh+0nqLWwD/ImjqOYuLshWaEd9Fl/Fd00GNyrEuZsPK0UBN7HI5Oi6eaZJ64xethNmsn+DN0OMMGy6Is15G+Mdrj8RCvPbzQl9RhgBHu06oUX4fzwa6wF1+SSl+V869xAPAx2EHXHaINbpVq3K5B3YT4Bc4AQwjmSEzT2EvHiHK7ahKgJrVmyKMTffkerxrrlW6ewApVwE
1ZhK8kGMqmxaUriSVAsaFNIWgeptGnjmfLhqKyM3fcqIOpwBkeCwxJ+TD/NuvmZtbl3kNTiszADNrU59+BqMLa9bT60MAiLdEZBTcPXKk4dMauC7nGaKDrJvSyXM69vVH3J3ivwWSbvlWyjy3auausplm4aVlST2d+h6whz0PFJjSdyEJSlqlNRV//rQja1VraxH1bHOXpr/fgn0Lx0vDRpDxUzP7Qw3JE+SsQ/Q4//ZeUyUN4NdLCDQqx766rwllVVXpjCsaJqUNjcaWqFo/emkkPE+VyQGiwVsp9InssNmxmE8Mokg4guLaer7F2/suSeniapqTW0GY8Pjcvgz/8xxocsRijU15VUqwlnA1pYsXLK6QSjQ0WhYRUA2IX0p85ffNaif4XQXmywj4D081bUptN8obSRWFAbCP/q+Siin6nSa5R9FpM1xC0TT5FkL1rzNoobLWOF2OhMGLeX7kJTrkrQUeXl9vGVtES69HivwNeaE5829rsc56eXSX0ydisO/9fjmuAzlwNaITuzvi7Sfa7mhCWzl1ESAuI1zA9RhhSA3EcpeQhmN/+/mtmKEnnCnkt7pqoOumGYtxotoJcn+tBnBqgPCnjCMCf6jjk6FONMfRMX/O9qAZ3W/gonxBRiG8yUa+bunhpZSgYpLArAMYoJ1ECG6FOYut/KKia/lRvioWomPh/r0USJuwg+rhpR1JxjNApG+KCXwKOR6k96L5fv3kY3NIQkWnDtEQnQa6Z5TLwnwPM6FcMC9VHs0A1jMvK8vfv9+62sPZd9yHizDjV9+iPmJ3efA6L78inO5KTXuoPO/YlpFFzNxVV5LpdSi/w5YltY1nmsu0hXISTcf1ru66VNHyE0weCQtadYICfdWIAun59I5csmzTm4u/b2aKu5kojjc7aEkluBK9ABgQzy+DaZTqrmJivOHDIXz3PpCZdPFLwInfQYu6k6apa6kg0mTwTkCkjuuhNOYFIA2r1b0bImQdxDTmie2b/5G8ZA1wRCDAeNohbORZEk4GfoSqU7m49MyhmkVNI3CfCRNBgahe3tZ5pn9rGz4ySGk8pyjH/eKP98K7+wzC676hhqSOoez2Fyqu4JS2Y8yV5WGcABByk34GiT+doboM6fBZTiDG6MMZHmtyetmyKZ8a0JI8uxBcUqOX+dJh9D8uXWwZ+LvZdNFwYQr/UVLUkH0D2EAkngcJJg5CN9MXQicf5ZpgScu0y5InPSMawcYDk0gdWqBfUTIWkWyxkaEnH3wTIkuIiQXcAUKNxf8kYJUWNWFjaG2Bv6ItSCPsYCe95QhOLBmSAmQknH3/MwKQvKUgZwDKOrskKpi1qw0ABa5RBVvhcRmUuz4AALIBPgVEmSmFfnXszoctpo4cg63Zk0LkAoYGPNV3i2Py0UwyPYl03Y6I96hWAx9uNAA4IpHDHLxv3Z1vQWPjPRrOZvjoH6lKB3gAAA`,ce=`Footer`,le=[{name:`Facebook`,href:`https://www.facebook.com/HelloDoktorMY`,Icon:ne},{name:`Instagram`,href:`https://www.instagram.com/hellodoktor.my/`,Icon:re},{name:`Threads`,href:`https://www.threads.net/@hellodoktor.my`,Icon:({className:e=``})=>(0,f.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,className:e,fill:`currentColor`,children:(0,f.jsx)(`path`,{d:`M17.46 11.13c-.08-.04-.17-.08-.25-.11-.15-2.79-1.67-4.39-4.23-4.41-1.55-.01-2.83.65-3.62 1.86l1.42.97c.59-.9 1.52-1.09 2.19-1.09h.03c.83.01 1.46.25 1.86.72.29.34.49.81.59 1.4-.74-.13-1.55-.17-2.41-.12-2.42.14-3.97 1.55-3.86 3.51.05.99.55 1.85 1.39 2.41.71.47 1.62.7 2.57.65 1.25-.07 2.23-.55 2.92-1.42.52-.66.85-1.51 1-2.59.6.36 1.05.84 1.29 1.41.42.97.44 2.57-.86 3.87-1.14 1.14-2.51 1.63-4.58 1.65-2.3-.02-4.04-.76-5.17-2.19C5.71 16.31 5.16 14.4 5.14 12c.02-2.4.57-4.31 1.62-5.65C7.89 4.92 9.63 4.18 11.93 4.16c2.32.02 4.09.76 5.27 2.21.58.71 1.02 1.61 1.31 2.65l1.69-.45c-.35-1.28-.91-2.4-1.66-3.31C16.96 3.39 14.74 2.46 11.94 2.44h-.01C9.13 2.46 6.94 3.4 5.43 5.22 4.08 6.85 3.39 9.13 3.36 12v.01c.03 2.86.72 5.14 2.07 6.78 1.51 1.82 3.7 2.75 6.51 2.77h.01c2.5-.02 4.27-.67 5.72-2.13 1.9-1.9 1.85-4.27 1.22-5.74-.45-1.04-1.27-1.89-2.43-2.56zM12.18 16.15c-1.05.06-2.14-.41-2.2-1.45-.04-.77.55-1.63 2.27-1.73.2-.01.39-.02.58-.02.62 0 1.21.06 1.74.18-.2 2.5-1.36 2.96-2.39 3.02z`})})},{name:`TikTok`,href:`https://www.tiktok.com/@hellodoktor.my`,Icon:({className:e=``})=>(0,f.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,className:e,fill:`currentColor`,children:(0,f.jsx)(`path`,{d:`M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5.8 20.1a6.34 6.34 0 0 0 10.86-4.43V8.7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1.84-.13z`})})},{name:`YouTube`,href:`https://www.youtube.com/@hellodoktormy`,Icon:oe},{name:`LinkedIn`,href:`https://www.linkedin.com/company/hello-health-group`,Icon:ie},{name:`Spotify`,href:`https://open.spotify.com/user/hellodoktor`,Icon:({className:e=``})=>(0,f.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,className:e,fill:`currentColor`,children:(0,f.jsx)(`path`,{d:`M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.559.3z`})})}],ue=[`https://hellodoktor.com/static/terma-dan-syarat/`,`https://hellodoktor.com/static/polisi-privasi/`,`https://hellodoktor.com/static/polisi-editorial/`,`https://hellodoktor.com/static/polisi-pengiklanan/`,`https://hellodoktor.com/static/panduan-komuniti/`,`https://hellodoktor.com/static/polisi-pembatalan-bayaran-balik/`,`https://hellodoktor.com/static/dasar-pemenuhan-preskripsi-pendispensan-ubat-ubatan/`],de=[`https://hellodoktor.com/about-us/`,`https://hellohealthgroup.com/malaysia/`,`https://hellohealthgroup.com/careers/`,`https://hellodoktor.com/static/pengiklanan/`,`https://hellodoktor.com/static/hubungi-kami/`],fe=`text-sm text-white hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white rounded-sm transition-colors`;function pe(){let e=n[i()].footer,t=ue.map((t,n)=>({href:t,label:e.informationLinks[n]})),r=de.map((t,n)=>({href:t,label:e.groupLinks[n]}));return(0,f.jsx)(`footer`,{"aria-label":e.aria,className:`hd-footer w-full text-white`,style:{backgroundColor:`#101840`},children:(0,f.jsxs)(`div`,{className:`mx-auto w-full max-w-screen-xl px-6 pt-12 pb-28 md:pt-16 md:pb-12`,children:[(0,f.jsxs)(`div`,{className:`grid grid-cols-1 gap-10 md:grid-cols-2 md:grid-rows-[auto_auto] lg:grid-cols-4 lg:grid-rows-1`,children:[(0,f.jsxs)(`div`,{className:`md:row-span-2 lg:col-span-1 lg:row-span-1`,children:[(0,f.jsx)(`img`,{src:d.url,alt:`Hello Doktor`,className:`h-7 w-auto brightness-0 invert`,width:140,height:28}),(0,f.jsx)(`p`,{className:`mt-6 max-w-xs text-sm font-medium leading-normal text-white`,children:e.tagline}),(0,f.jsx)(`p`,{className:`mt-6 text-xs text-white/60`,children:e.follow}),(0,f.jsx)(`ul`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:le.map(({name:e,href:t,Icon:n})=>(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Hello Doktor on ${e}`,...o(ce,`Footer social - ${e.toLowerCase()}`,t),className:`inline-flex h-8 w-8 items-center justify-center rounded-full border border-white/20 text-white transition-colors hover:bg-white/20 focu
1s-visible:outline-none focus-visible:ring-2 focus-visible:ring-white`,children:(0,f.jsx)(n,{className:`h-4 w-4`})})},e))})]}),(0,f.jsxs)(`nav`,{"aria-label":e.information,children:[(0,f.jsx)(`h2`,{className:`mb-4 text-base font-medium text-white`,children:e.information}),(0,f.jsx)(`ul`,{className:`space-y-3`,children:t.map(e=>(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,...o(ce,`Footer information link`,e.href),className:fe,children:e.label})},e.href))})]}),(0,f.jsxs)(`nav`,{"aria-label":e.group,children:[(0,f.jsx)(`h2`,{className:`mb-4 text-base font-medium text-white`,children:e.group}),(0,f.jsx)(`ul`,{className:`space-y-3`,children:r.map(e=>(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,...o(ce,`Footer group link`,e.href),className:fe,children:e.label})},e.href))})]}),(0,f.jsx)(`div`,{className:`hidden lg:block`,"aria-hidden":`true`})]}),(0,f.jsx)(`div`,{className:`mt-10 border-t border-white/10 pt-6`,children:(0,f.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,f.jsxs)(`div`,{className:`space-y-1`,children:[(0,f.jsx)(`p`,{className:`text-xs font-medium text-white`,children:e.company}),(0,f.jsx)(`p`,{className:`max-w-2xl text-xs text-white/70`,children:`©${new Date().getFullYear()} ${e.rights}`}),(0,f.jsx)(`p`,{className:`max-w-2xl pt-2 text-xs leading-relaxed text-white/70`,children:e.disclaimer})]}),(0,f.jsxs)(`div`,{className:`flex flex-shrink-0 items-center gap-4`,children:[(0,f.jsx)(`a`,{href:`https://www.dmca.com`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`DMCA Protected`,...o(ce,`Footer badge - dmca`,`https://www.dmca.com`),className:`inline-block rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white`,children:(0,f.jsx)(`img`,{src:se,alt:`DMCA Protected`,width:120,height:32,loading:`lazy`,className:`h-8 w-auto`})}),(0,f.jsx)(`a`,{href:`https://www.legitscript.com/websites/?checker_keywords=hellodoktor.com`,target:`_blank`,rel:`noopener noreferrer`,title:`Verify LegitScript Approval for www.hellodoktor.com`,"aria-label":`Verify LegitScript Approval for www.hellodoktor.com (opens in a new tab)`,...o(ce,`Footer badge - legitscript`,`https://www.legitscript.com/websites/?checker_keywords=hellodoktor.com`),className:`inline-block rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white`,children:(0,f.jsx)(`img`,{src:`https://static.legitscript.com/seals/2774659.png`,alt:`LegitScript Certified. Verify Approval for www.hellodoktor.com`,width:73,height:79,loading:`lazy`,decoding:`async`})})]})]})})]})})}var me=`601133221899`;function he(e,t){let r=t??n[e].mobileBar.whatsappMessage;return`https://api.whatsapp.com/send/?phone=${me}&text=${encodeURIComponent(r)}&type=phone_number&app_absent=0`}var ge={"1mg":{en:`Hi Hello Doktor, I would like to know more about finasteride 1mg for hair loss.`,ms:`Hai Hello Doktor, saya ingin tahu lebih lanjut tentang finasteride 1mg untuk rambut gugur.`},"5mg":{en:`Hi Hello Doktor, I would like to know more about finasteride 5mg for an enlarged prostate.`,ms:`Hai Hello Doktor, saya ingin tahu lebih lanjut tentang finasteride 5mg untuk prostat membesar.`}};function _e({message:e,track:t=!1,trackAction:r=`Floating button - whatsapp`}={}){let a=i(),s=n[a].mobileBar,l=he(a,e);return(0,f.jsx)(`a`,{href:l,target:`_blank`,rel:`noopener noreferrer`,...t?o(c,r,l):{},className:`hl-wa`,"aria-label":s.whatsapp,children:(0,f.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`26`,height:`26`,"aria-hidden":`true`,fill:`currentColor`,children:(0,f.jsx)(`path`,{d:`M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.28-1.38a9.9 9.9 0 0 0 4.76 1.21h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2Zm0 18.02h-.01a8.2 8.2 0 0 1-4.19-1.15l-.3-.18-3.13.82.84-3.05-.2-.31a8.19 8.19 0 0 1-1.26-4.38c0-4.54 3.7-8.23 8.25-8.23 2.2 0 4.27.86 5.83 2.42a8.18 8.18 0 0 1 2.41 5.82c0 4.54-3.7 8.24-8.24 8.24Zm4.52-6.17c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.16.24-.64.8-.79.97-.14.16-.29.18-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.65-1.23-1.46-1.38-1.71-.14-.25-.01-.38.11-.5.11-.11.25-.29.37-.43.13-.15.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.
112-.56-1.34-.76-1.84-.2-.48-.4-.42-.56-.43h-.48c-.16 0-.43.06-.65.31-.22.25-.85.83-.85 2.02s.87 2.34.99 2.5c.12.17 1.71 2.62 4.15 3.67.58.25 1.03.4 1.39.51.58.19 1.11.16 1.53.1.47-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.14-1.18-.06-.11-.22-.17-.47-.29Z`})})})}var ve=(0,u.createContext)({});function ye(e){let t=(0,u.useRef)(null);return t.current===null&&(t.current=e()),t.current}var be=typeof window<`u`?u.useLayoutEffect:u.useEffect,xe=(0,u.createContext)(null);function Se(e,t){e.indexOf(t)===-1&&e.push(t)}function Ce(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var T=(e,t,n)=>n>t?t:n<e?e:n,E={},we=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Te=e=>typeof e==`object`&&!!e,Ee=e=>/^0[^.\s]+$/u.test(e);function De(e){let t;return()=>(t===void 0&&(t=e()),t)}var D=e=>e,Oe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ke=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ae=class{constructor(){this.subscriptions=[]}add(e){return Se(this.subscriptions,e),()=>Ce(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}},O=e=>e*1e3,k=e=>e/1e3,je=(e,t)=>t?1e3/t*e:0,Me=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ne=1e-7,Pe=12;function Fe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Me(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ne&&++s<Pe);return o}function Ie(e,t,n,r){if(e===t&&n===r)return D;let i=t=>Fe(t,0,1,e,n);return e=>e===0||e===1?e:Me(i(e),t,r)}var Le=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Re=e=>t=>1-e(1-t),ze=Ie(.33,1.53,.69,.99),Be=Re(ze),Ve=Le(Be),He=e=>e>=1?1:(e*=2)<1?.5*Be(e):.5*(2-2**(-10*(e-1))),Ue=e=>1-Math.sin(Math.acos(e)),We=Re(Ue),Ge=Le(Ue),Ke=Ie(.42,0,1,1),qe=Ie(0,0,.58,1),Je=Ie(.42,0,.58,1),Ye=e=>Array.isArray(e)&&typeof e[0]!=`number`,Xe=e=>Array.isArray(e)&&typeof e[0]==`number`,Ze={linear:D,easeIn:Ke,easeInOut:Je,easeOut:qe,circIn:Ue,circInOut:Ge,circOut:We,backIn:Be,backInOut:Ve,backOut:ze,anticipate:He},Qe=e=>typeof e==`string`,$e=e=>{if(Xe(e)){e.length;let[t,n,r,i]=e;return Ie(t,n,r,i)}else if(Qe(e))return Ze[e],`${e}`,Ze[e];return e},et=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function tt(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(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 nt=40;function rt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=et.reduce((e,t)=>(e[t]=tt(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=E.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,nt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:et.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<et.length;t++)o[et[t]].cancel(e)},state:i,steps:o}}var{schedule:A,cancel:j,state:M,steps:it}=rt(typeof requestAnimationFrame<`u`?requestAnimationFrame:D,!0),at;function ot(){at=void 0}var N={now:()=>(at===void 0&&N.set(M.isProcessing||E.useManualTiming?M.timestamp:performance.now()),at),set:e=>{at=e,queueMicrotask(ot)}},st=e=>t=>typeof t==`string`&&t.startsWith(e),ct=st(`--`),lt=st(`var(--`),ut=e=>lt(e)?dt.test(e.split(`/*`)[0].trim()):!1,dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ft(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var pt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},mt={...pt,transform:e=>T(0,1,e)},ht={...pt,default:1},gt=e=>Math.round(e*1e5)/1e5,_t=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vt(e){return e==null}var yt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bt=(e,t)=>n=>!!(typeof n==`string`&&yt.test(n)&&n.startsWith(e)||t&&!vt(n)&&Object.prototype.hasOwnProperty.call(n,t)),xt=(e,t,n
1)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(_t);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},St=e=>T(0,255,e),Ct={...pt,transform:e=>Math.round(St(e))},P={test:bt(`rgb`,`red`),parse:xt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ct.transform(e)+`, `+Ct.transform(t)+`, `+Ct.transform(n)+`, `+gt(mt.transform(r))+`)`};function wt(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 Tt={test:bt(`#`),parse:wt,transform:P.transform},Et=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=Et(`deg`),I=Et(`%`),L=Et(`px`),Dt=Et(`vh`),Ot=Et(`vw`),kt={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},At={test:bt(`hsl`,`hue`),parse:xt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(gt(t))+`, `+I.transform(gt(n))+`, `+gt(mt.transform(r))+`)`},R={test:e=>P.test(e)||Tt.test(e)||At.test(e),parse:e=>P.test(e)?P.parse(e):At.test(e)?At.parse(e):Tt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?P.transform(e):At.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mt(e){return isNaN(e)&&typeof e==`string`&&(e.match(_t)?.length||0)+(e.match(jt)?.length||0)>0}var Nt=`number`,Pt=`color`,Ft=`var`,It=`var(`,Lt="${}",Rt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Rt,e=>(R.test(e)?(r.color.push(a),i.push(Pt),n.push(R.parse(e))):e.startsWith(It)?(r.var.push(a),i.push(Ft),n.push(e)):(r.number.push(a),i.push(Nt),n.push(parseFloat(e))),++a,Lt)).split(Lt),indexes:r,types:i}}function Bt(e){return zt(e).values}function Vt({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];e===Nt?i+=gt(r[a]):e===Pt?i+=R.transform(r[a]):i+=r[a]}return i}}function Ht(e){return Vt(zt(e))}var Ut=e=>typeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,Wt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ut(e);function Gt(e){let t=zt(e);return Vt(t)(t.values.map((e,n)=>Wt(e,t.split[n])))}var z={test:Mt,parse:Bt,createTransformer:Ht,getAnimatableNone:Gt};function Kt(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 qt({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=Kt(s,r,e+1/3),a=Kt(s,r,e),o=Kt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Jt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Yt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xt=[Tt,P,At],Zt=e=>Xt.find(t=>t.test(e));function Qt(e){let t=Zt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===At&&(n=qt(n)),n}var $t=(e,t)=>{let n=Qt(e),r=Qt(t);if(!n||!r)return Jt(e,t);let i={...n};return e=>(i.red=Yt(n.red,r.red,e),i.green=Yt(n.green,r.green,e),i.blue=Yt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),P.transform(i))},en=new Set([`none`,`hidden`]);function tn(e,t){return en.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nn(e,t){return n=>B(e,t,n)}function rn(e){return typeof e==`number`?nn:typeof e==`string`?ut(e)?Jt:R.test(e)?$t:cn:Array.isArray(e)?an:typeof e==`object`?R.test(e)?$t:on:Jt}function an(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function on(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function sn(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]];n[i]=e.values[o]??0,r[a]++}return n}var cn=(e,t)=>{let n=z.createTransformer(t),r=zt(e),i=zt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?en.has(e)&&!i.values.length||en.has(t)&&!r.values.length?tn(e,t):Oe(an(sn(r,i),i.values),n):(`${e}${t}`,Jt(e,t))};
1function ln(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):rn(e)(e,t)}var un=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>j(t),now:()=>M.isProcessing?M.timestamp:N.now()}},dn=(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)})`},fn=2e4;function pn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function mn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(pn(r),fn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:k(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function hn(e,t){return e*Math.sqrt(1-t*t)}var gn=12;function _n(e,t,n){let r=n;for(let n=1;n<gn;n++)r-=e(r)/t(r);return r}var vn=.001;function yn({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,a;V.maxDuration;let o=1-t;o=T(V.minDamping,V.maxDamping,o),e=T(V.minDuration,V.maxDuration,k(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=hn(t,o),c=Math.exp(-i);return vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=hn(t**2,o);return(-i(t)+vn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=_n(i,a,s);if(e=O(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var bn=[`duration`,`bounce`],xn=[`stiffness`,`damping`,`mass`];function Sn(e,t){return t.some(t=>e[t]!==void 0)}function Cn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Sn(e,xn)&&Sn(e,bn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*T(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=yn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function wn(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Cn({...n,velocity:-k(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=k(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,w;if(h<1)x=hn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>O(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=O(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=O(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(pn(ee),fn),t=dn(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}wn.applyToOptions=e=>{let t=mn(e,100,wn);return e.ease=t.ease,e.duration=O(t.duration),e.type=`keyframes`,e};var Tn=5;function En(e,t,n){let r=Math.max(t-Tn,0);return je(n-e(r),t-r)}function Dn({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=>s!==void 0&&e<s||c!==void 0&&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=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=wn({keyframes:[f.value,m(f.value)],velocity:En(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function On(e,t,n){let r=[],i=n||E.mix||ln,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Oe(Array.isArray(t)?t[n]||D:t,a)),r.push(a)}return r}function kn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=On(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ke(e[r],e[r+1],n);return s[r](i)};return n?t=>l(T(e[0],e[a-1],t)):l}function An(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ke(0,t,r);e.push(B(n,1,i))}}function jn(e){let t=[0];return An(t,e.length-1),t}function Mn(e,t){return e.map(e=>e*t)}function Nn(e,t){return e.map(()=>t||Je).splice(0,e.length-1)}function Pn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ye(r)?r.map($e):$e(r),a={done:!1,value:t[0]},o=kn(Mn(n&&n.length===t.length?n:jn(t),e),t,{ease:Array.isArray(i)?i:Nn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Fn=e=>e!==null;function In(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ln={decay:Dn,inertia:Dn,tween:Pn,keyframes:Pn,spring:wn};function Rn(e){typeof e.type==`string`&&(e.type=Ln[e.type])}var zn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Bn=e=>e/100,Vn=class extends zn{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!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Rn(e);let{type:t=Pn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Pn;s!==Pn&&typeof o[0]!=`number`&&(this.mixKeyframes=Oe(Bn,ln(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=pn(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.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=T(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);
1return S&&p!==Dn&&(b.value=In(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return k(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(this.currentTime)}set time(e){e=O(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(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return En(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=k(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=un,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??n:this.startTime=n-this.holdTime,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(N.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Hn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var H=e=>e*180/Math.PI,Un=e=>Gn(H(Math.atan2(e[1],e[0]))),Wn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Un,rotateZ:Un,skewX:e=>H(Math.atan(e[1])),skewY:e=>H(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gn=e=>(e%=360,e<0&&(e+=360),e),Kn=Un,qn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Jn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Yn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qn,scaleY:Jn,scale:e=>(qn(e)+Jn(e))/2,rotateX:e=>Gn(H(Math.atan2(e[6],e[5]))),rotateY:e=>Gn(H(Math.atan2(-e[2],e[0]))),rotateZ:Kn,rotate:Kn,skewX:e=>H(Math.atan(e[4])),skewY:e=>H(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xn(e){return+!!e.includes(`scale`)}function Zn(e,t){if(!e||e===`none`)return Xn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Yn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wn,i=t}if(!i)return Xn(t);let a=r[t],o=i[1].split(`,`).map($n);return typeof a==`function`?a(o):o[a]}var Qn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Zn(n,t)};function $n(e){return parseFloat(e.trim())}var er=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],tr=new Set([...er,`pathRotation`]),nr=e=>e===pt||e===L,rr=new Set([`x`,`y`,`z`]),ir=er.filter(e=>!rr.has(e));function ar(e){let t=[];return ir.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var U={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Zn(t,`x`),y:(e,{transform:t})=>Zn(t,`y`)};U.translateX=U.x,U.translateY=U.y;
1var W=new Set,or=!1,sr=!1,cr=!1;function lr(){if(sr){let e=Array.from(W).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=ar(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.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)})}sr=!1,or=!1,W.forEach(e=>e.complete(cr)),W.clear()}function ur(){W.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sr=!0)})}function dr(){cr=!0,ur(),lr(),cr=!1}var fr=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?(W.add(this),or||(or=!0,A.read(ur),A.resolveKeyframes(lr))):(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=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),W.delete(this)}cancel(){this.state===`scheduled`&&(W.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pr=e=>e.startsWith(`--`);function mr(e,t,n){pr(t)?e.style.setProperty(t,n):e.style[t]=n}var hr={};function gr(e,t){let n=De(e);return()=>hr[t]??n()}var _r=gr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),vr=gr(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,br={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yr([0,.65,.55,1]),circOut:yr([.55,0,1,.45]),backIn:yr([.31,.01,.66,-.59]),backOut:yr([.33,1.53,.69,.99])};function xr(e,t){if(e)return typeof e==`function`?vr()?dn(e,t):`ease-out`:Xe(e)?yr(e):Array.isArray(e)?e.map(e=>xr(e,t)||br.easeOut):br[e]}function Sr(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=xr(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 Cr(e){return typeof e==`function`&&`applyToOptions`in e}function wr({type:e,...t}){return Cr(e)&&vr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tr=class extends zn{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=wr(e);this.animation=Sr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=In(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),mr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}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 k(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=O(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:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_r()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D):r(this)}},Er={anticipate:He,backInOut:Ve,circInOut:Ge};function Dr(e){return e in Er}function Or(e){typeof e.ease==`string`&&Dr(e.ease)&&(e.ease=Er[e.ease])}var kr=10,Ar=class extends Tr{constructor(e){Or(e),Rn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Vn({...a,autoplay:!1}),s=Math.max(kr,N.now()-this.startTime),c=T(0,kr,s-kr),l=o.sample(s).value,{name:u}=this.options;i&&u&&mr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},jr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function Mr(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 Nr(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=jr(i,t),s=jr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Mr(e)||(n===`spring`||Cr(n))&&r}function Pr(e){e.duration=0,e.type=`keyframes`}var Fr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ir=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ir.test(e[t]))return!0;return!1}var Rr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zr=De(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Br(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return zr()&&n&&(Fr.has(n)||Rr.has(n)&&Lr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vr=40,Hr=class extends zn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||fr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N.now();let u=!0;Nr(e,i,a,o)||(u=!1,(E.instantAnimations||!s)&&l?.(In(e,n,t)),e[0]=e[e.length-1],Pr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Br(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ar({...d,element:p})}catch{m=new Vn(d)}else m=new Vn(d);m.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Ur(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.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 Wr=30,Gr=e=>!isNaN(parseFloat(e)),Kr={current:void 0},qr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),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=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ae);let n=this.events[e].add(t);return e===`change`?()=>{n(),A.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){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.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Kr.current&&Kr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Wr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Wr);return je(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Jr(e,t){return new qr(e,t)}function Yr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Xr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Yr(n,e)}var Zr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$r={type:`keyframes`,duration:.8},ei={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ti=(e,{keyframes:t})=>t.length>2?$r:tr.has(e)?e.startsWith(`scale`)?Qr(t[1]):Zr:ei,ni=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ri(e){for(let t in e)if(!ni.has(t))return!0;return!1}var ii=(e,t,n,r={},i,a)=>o=>{let s=Xr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=O(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ri(s)||Object.assign(u,ti(e,u)),u.duration&&=O(u.duration),u.repeatDelay&&=O(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pr(u),u.delay===0&&(d=!0)),(E.instantAnimations||E.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Pr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=In(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Vn(u):new Hr(u)},ai=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oi(e){let t=ai.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function si(e,t,n=1){`${e}`;let[r,i]=oi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return we(e)?parseFloat(e):e}return ut(i)?si(i,t,n+1):i}function ci(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function li(e,t,n,r){if(typeof t==`function`){let[i,a]=ci(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ci(r);t=t(n===void 0?e.custom:n,i,a)}return t}function G(e,t,n){let r=e.getProps();return li(r,t,n===void 0?r.custom:n,e)}var ui=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...er]),di=e=>Array.isArray(e);function fi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jr(n))}function pi(e){return di(e)?e[e.length-1]||0:e}function mi(e,t){let{transitionEnd:n={},transition:r={},...i}=G(e,t)||{};i={...i,...n};for(let t in i)fi(e,t,pi(i[t]))}var K=e=>!!(e&&e.getVelocity);function hi(e){return!!(K(e)&&e.add)}function gi(e,t){let n=e.getValue(`willChange`);if(hi(n))return n.add(t);if(!n&&E.WillChange){let n=new E.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function _i(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var vi=`data-`+_i(`framerAppearId`);function yi(e){return e.props[vi]}function bi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Yr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&bi(f,t))continue;let o={delay:n,...Xr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=yi(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}gi(e,t);let m=l??e.shouldReduceMotion;r.start(ii(t,r,i,m&&ui.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&mi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Si(e,t,n={}){let r=G(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(xi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ci(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Ci(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Si(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Ur(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function wi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Si(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Si(e,t,n);else{let i=typeof t==`function`?G(e,t,n.custom):t;r=Promise.all(xi(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Ti={test:e=>e===`auto`,parse:e=>e},Ei=e=>t=>t.test(e),Di=[pt,L,I,F,Ot,Dt,Ti],Oi=e=>Di.find(Ei(e));function ki(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ee(e)}var Ai=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ji(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(_t)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ai.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Mi=/\b([a-z-]*)\(.*?\)/gu,Ni={...z,getAnimatableNone:e=>{let t=e.match(Mi);return t?t.map(ji).join(` `):e}},Pi={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Fi={...pt,transform:Math.round},Ii={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:mt,originX:kt,originY:kt,originZ:L,zIndex:Fi,fillOpacity:mt,strokeOpacity:mt,numOctaves:Fi},Li={...Ii,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:
1R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Ni,WebkitFilter:Ni,mask:Pi,WebkitMask:Pi},Ri=e=>Li[e],zi=new Set([Ni,Pi]);function Bi(e,t){let n=Ri(e);return zi.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Vi=new Set([`auto`,`none`,`0`]);function Hi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Vi.has(t)&&zt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Bi(n,i)}var Ui=class extends fr{constructor(e,t,n,r,i){super(e,t,n,r,i,!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(),ut(r))){let i=si(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ui.has(n)||e.length!==2)return;let[r,i]=e,a=Oi(r),o=Oi(i);if(ft(r)!==ft(i)&&U[n]){this.needsMeasurement=!0;return}if(a!==o)if(nr(a)&&nr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else U[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ki(e[t]))&&n.push(t);n.length&&Hi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=U[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Wi=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Gi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Ki=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function qi(e){return Te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ji,cancel:Yi}=rt(queueMicrotask,!1),q={x:!1,y:!1};function Xi(){return q.x||q.y}function Zi(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function Qi(e,t){let n=Gi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function $i(e){return!(e.pointerType===`touch`||Xi())}function ea(e,t,n={}){let[r,i,a]=Qi(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(!$i(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 ta=(e,t)=>t?e===t||ta(e,t.parentElement):!1,na=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,ra=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ia(e){return ra.has(e.tagName)||e.isContentEditable===!0}var aa=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function oa(e){return aa.has(e.tagName)||e.isContentEditable===!0}var sa=new WeakSet;function ca(e){return t=>{t.key===`Enter`&&e(t)}}function la(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ua=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ca(()=>{if(sa.has(n))return;la(n,`down`);let e=ca(()=>{la(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>la(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function da(e){return na(e)&&!Xi()}var fa=new WeakSet;function pa(e,t,n={}){let[r,i,a]=Qi(e,n),o=e=>{let r=e.currentTarget;if(!da(e)||fa.has(e))return;sa.add(r),n.stopPropagation&&fa.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),sa.has(r)&&sa.delete(r),da(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ta(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),qi(e)&&(e.addEventListener(`focus`,e=>ua(e,i)),!ia(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ma(e){return Te(e)&&`ownerSVGElement`in e}var ha=new WeakMap,ga,_a=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ma(r)&&`getBBox`in r?r.getBBox()[t]:r[n],va=_a(`inline`,`width`,`offsetWidth`),ya=_a(`block`,`height`,`offsetHeight`);function ba({target:e,borderBoxSize:t}){ha.get(e)?.forEach(n=>{n(e,{get width(){return va(e,t)},get height(){return ya(e,t)}})})}function xa(e){e.forEach(ba)}function Sa(){typeof ResizeObserver>`u`||(ga=new ResizeObserver(xa))}function Ca(e,t){ga||Sa();let n=Gi(e);return n.forEach(e=>{let n=ha.get(e);n||(n=new Set,ha.set(e,n)),n.add(t),ga?.observe(e)}),()=>{n.forEach(e=>{let n=ha.get(e);n?.delete(t),n?.size||ga?.unobserve(e)})}}var wa=new Set,Ta;function Ea(){Ta=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};wa.forEach(t=>t(e))},window.addEventListener(`resize`,Ta)}function Da(e){return wa.add(e),Ta||Ea(),()=>{wa.delete(e),!wa.size&&typeof Ta==`function`&&(window.removeEventListener(`resize`,Ta),Ta=void 0)}}function Oa(e,t){return typeof e==`function`?Da(e):Ca(e,t)}var ka={value:null,addProjectionMetrics:null};function Aa(e){return ma(e)&&e.tagName===`svg`}var ja=[...Di,R,z],Ma=e=>ja.find(Ei(e)),Na=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pa=()=>({x:Na(),y:Na()}),Fa=()=>({min:0,max:0}),J=()=>({x:Fa(),y:Fa()}),Ia=new WeakMap;function La(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ra(e){return typeof e==`string`||Array.isArray(e)}var za=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ba=[`initial`,...za];function Va(e){return La(e.animate)||Ba.some(t=>Ra(e[t]))}function Ha(e){return!!(Va(e)||e.variants)}function Ua(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,Jr(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,Jr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Wa={current:null},Ga={current:!1},Ka=typeof window<`u`;function qa(){if(Ga.current=!0,Ka)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Wa.current=e.matches;e.addEventListener(`change`,t),t()}else Wa.current=!1}var Ja=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ya={};function Xa(e){Ya=e}function Za(){return Ya}var Qa=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=fr,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=N.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,A.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=Va(t),this.isVariantNode=Ha(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&&K(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];this.current=e,Ia.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ga.current||qa(),this.shouldReduceMotion=Wa.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(),j(this.notifyUpdate),j(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&&Fr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Tr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:O(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=tr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&A.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),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||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ya){let t=Ya[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){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ja.length;t++){let n=Ja[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=Ua(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}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=Jr(t===null?void 0:t,{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`&&(we(n)||Ee(n))?n=parseFloat(n):!Ma(n)&&z.test(t)&&(n=Bi(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=li(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ae),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ji.render(this.render)}},$a=class extends Qa{constructor(){super(...arguments),this.KeyframeResolver=Ui}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;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Y=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function eo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function to({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function no(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 ro(e){return e===void 0||e===1}function io({scale:e,scaleX:t,scaleY:n}){return!ro(e)||!ro(t)||!ro(n)}function ao(e){return io(e)||oo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oo(e){return so(e.x)||so(e.y)}function so(e){return e&&e!==`0%`}function co(e,t,n){return n+t*(e-n)}function lo(e,t,n,r,i){return i!==void 0&&(e=co(e,i,r)),co(e,n,r)+t}function uo(e,t=0,n=1,r,i){e.min=lo(e.min,t,n,r,i),e.max=lo(e.max,t,n,r,i)}function fo(e,{x:t,y:n}){uo(e.x,t.translate,t.scale,t.originPoint),uo(e.y,n.translate,n.scale,n.originPoint)}var po=.999999999999,mo=1.0000000000001;function ho(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,fo(e,o)),r&&ao(a.latestValues)&&vo(e,a.latestValues,a.layout?.layoutBox))}t.x<mo&&t.x>po&&(t.x=1),t.y<mo&&t.y>po&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function go(e,t,n,r,i=.5){uo(e,t,n,B(e.min,e.max,i),r)}function _o(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function vo(e,t,n){let r=n??e;go(e.x,_o(t.x,r.x),t.scaleX,t.scale,t.originX),go(e.y,_o(t.y,r.y),t.scaleY,t.scale,t.originY)}function yo(e,t){return eo(no(e.getBoundingClientRect(),t))}function bo(e,t,n){let r=yo(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var xo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},So=er.length;function Co(e,t,n){let r=``,i=!0;for(let a=0;a<So;a++){let o=er[a],s=e[o];if(s===void 0)continue;let c=!0;
1if(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=Ki(s,Ii[o]);if(!c){i=!1;let t=xo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ki(a,Ii.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function wo(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(tr.has(e)){o=!0;continue}else if(ct(e)){i[e]=n;continue}else{let t=Ki(n,Ii[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Co(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function To(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 Eo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${Eo(e,t.target.x)}% ${Eo(e,t.target.y)}%`}},Oo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.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=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ko={borderRadius:{...Do,applyTo:[...Wi]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:Oo};function Ao(e,{layout:t,layoutId:n}){return tr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ko[e]||e===`opacity`)}function jo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||Ao(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Mo(e){return window.getComputedStyle(e)}var No=class extends $a{constructor(){super(...arguments),this.type=`html`,this.renderInstance=To}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(tr.has(t))return this.projection?.isProjecting?Xn(t):Qn(e,t);{let n=Mo(e),r=(ct(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return yo(e,t)}build(e,t,n){wo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return jo(e,t,n)}},Po={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Fo={offset:`strokeDashoffset`,array:`strokeDasharray`};function Io(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Po:Fo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Lo=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ro(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(wo(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 Lo)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&&Io(d,i,a,o,!1)}var zo=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`]),Bo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Vo(e,t,n,r){To(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(zo.has(n)?n:_i(n),t.attrs[n])}function Ho(e,t,n){let r=jo(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=er.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Uo=class extends $a{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(tr.has(t)){let e=Ri(t);return e&&e.default||0}if(Lo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=zo.has(t)?t:_i(t),e.getAttribute(t)}
1scrapeMotionValuesFromProps(e,t,n){return Ho(e,t,n)}build(e,t,n){Ro(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Vo(e,t,n,r)}mount(e){this.isSVGTag=Bo(e.tagName),super.mount(e)}},Wo=Ba.length;function Go(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Go(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Wo;n++){let r=Ba[n],i=e.props[r];(Ra(i)||i===!1)&&(t[r]=i)}return t}function Ko(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 qo=[...za].reverse(),Jo=za.length;function Yo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>wi(e,t,n)))}function Xo(e){let t=Yo(e),n=$o(),r=!0,i=!1,a=t=>(n,r)=>{let i=G(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Go(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Jo;t++){let p=qo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ra(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||La(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Zo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=di(t)&&di(n)?!Ko(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=G(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Ur(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=G(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(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=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$o(),i=!0}}}function Zo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ko(t,e):!1}function Qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $o(){return{animate:Qo(!0),whileInView:Qo(),whileHover:Qo(),whileTap:Qo(),whileDrag:Qo(),whileFocus:Qo(),exit:Qo()}}function es(e,t){e.min=t.min,e.max=t.max}function Z(e,t){es(e.x,t.x),es(e.y,t.y)}function ts(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var ns=.9999,rs=1.0001,is=-.01,as=.01;function Q(e){return e.max-e.min}function os(e,t,n){return Math.abs(e-t)<=n}function ss(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ns&&e.scale<=rs||isNaN(e.scale))&&(e.scale=1),(e.translate>=is&&e.translate<=as||isNaN(e.translate))&&(e.translate=0)}function cs(e,t,n,r){ss(e.x,t.x,n.x,r?r.originX:void 0),ss(e.y,t.y,n.y,r?r.originY:void 0)}function ls(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function us(e,t,n,r){ls(e.x,t.x,n.x,r?.x),ls(e.y,t.y,n.y,r?.y)}function ds(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function fs(e,t,n,r){ds(e.x,t.x,n.x,r?.x),ds(e.y,t.y,n.y,r?.y)}function ps(e,t,n,r,i){return e-=t,e=co(e,1/n,r),i!==void 0&&(e=co(e,1/i,r)),e}function ms(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=ps(e.min,t,n,s,i),e.max=ps(e.max,t,n,s,i)}function hs(e,t,[n,r,i],a,o){ms(e,t[n],t[r],t[i],t.scale,a,o)}var gs=[`x`,`scaleX`,`originX`],_s=[`y`,`scaleY`,`originY`];function vs(e,t,n,r){hs(e.x,t,gs,n?n.x:void 0,r?r.x:void 0),hs(e.y,t,_s,n?n.y:void 0,r?r.y:void 0)}function ys(e){return e.translate===0&&e.scale===1}function bs(e){return ys(e.x)&&ys(e.y)}function xs(e,t){return e.min===t.min&&e.max===t.max}function Ss(e,t){return xs(e.x,t.x)&&xs(e.y,t.y)}function Cs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ws(e,t){return Cs(e.x,t.x)&&Cs(e.y,t.y)}function Ts(e){return Q(e.x)/Q(e.y)}function Es(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function Ds(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Os=Wi.length,ks=e=>typeof e==`string`?parseFloat(e):e,As=e=>typeof e==`number`||L.test(e);function js(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,Ns(r)),e.opacityExit=B(t.opacity??1,0,Ps(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;i<Os;i++){let a=Wi[i],o=Ms(t,a),s=Ms(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||As(o)===As(s)?(e[a]=Math.max(B(ks(o),ks(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function Ms(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ns=Fs(0,.5,We),Ps=Fs(.5,.95,D);function Fs(e,t,n){return r=>r<e?0:r>t?1:n(ke(e,t,r))}function Is(e,t,n){let r=K(e)?e:Jr(e);return r.start(ii(``,r,t,n)),r.animation}function Ls(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Rs=(e,t)=>e.depth-t.depth,zs=class{constructor(){this.children=[],this.isDirty=!1}add(e){Se(this.children,e),this.isDirty=!0}remove(e){Ce(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Rs),this.isDirty=!1,this.children.forEac
1h(e)}};function Bs(e,t){let n=N.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(j(r),e(a-t))};return A.setup(r,!0),()=>j(r)}function Vs(e){return K(e)?e.get():e}var Hs=class{constructor(){this.members=[]}add(e){Se(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&&(Ce(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ce(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)}},Us={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ws={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Gs=[``,`X`,`Y`,`Z`],Ks=1e3,qs=0;function Js(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ys(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=yi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ys(r)}function Xs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=qs++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ka.value&&(Ws.nodes=Ws.calculatedTargetDeltas=Ws.calculatedProjections=0),this.nodes.forEach($s),this.nodes.forEach(cc),this.nodes.forEach(lc),this.nodes.forEach(ec),ka.addProjectionMetrics&&ka.addProjectionMetrics(Ws)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 zs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ae),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=ma(t)&&!Aa(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;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Bs(i,250),Us.hasAnimatedSinceResize&&(Us.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(sc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||gc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ws(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Xr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||sc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),j(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ys(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}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(rc),this.nodes.forEach(nc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ic);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ac),this.nodes.forEach(oc),this.nodes.forEach(Zs),this.nodes.forEach(Qs)):this.nodes.forEach(ic),this.clearAllSnapshots();let e=N.now();M.delta=T(0,1e3/60,e-M.timestamp),M.timestamp=e,M.isProcessing=!0,it.update.process(M),it.preRender.process(M),it.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ji.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tc),this.sharedNodes.forEach(dc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),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.layoutVersion++,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,t=this.projectionDelta&&!bs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ao(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)),bc(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(Sc))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Z(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&&Z(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),ao(n.latestValues)&&vo(r,n.latestValues,n.layout?.layoutBox)}return ao(this.latestValues)&&vo(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ao(n.latestValues))continue;let r;n.instance&&(io(n.latestValues)&&n.updateSnapshot(),r=J(),Z(r,n.measurePageBox())),vs(t,n.latestValues,n.snapshot?.layoutBox,r)}return ao(this.latestValues)&&vs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.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;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=M.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!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(),us(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),fo(this.target,this.targetDelta)):Z(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),ka.value&&Ws.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||io(this.parent.latestValues)||oo(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.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),fs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(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===M.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;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ho(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():(ts(this.prevProjectionDelta.x,this.projectionDelta.x),ts(this.prevProjectionDelta.y,this.projectionDelta.y)),cs(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Es(this.projectionDelta.x,this.prevProjectionDelta.x)||!Es(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),ka.value&&Ws.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=Pa(),this.projectionDelta=Pa(),this.projectionDeltaWithTransform=Pa()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Pa();(!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(hc));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=B(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=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(fc(o.x,e.x,n),fc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),mc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ss(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,js(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&&=(j(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{Us.hasAnimatedSinceResize=!0,this.motionValue||=Jr(0),this.motionValue.jump(0,!1),this.currentAnimation=Is(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()}}),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(Ks),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&xc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),vo(t,i),cs(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hs),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&&Js(`z`,e,r,this.animationValues);for(let t=0;t<Gs.length;t++)Js(`rotate${Gs[t]}`,e,r,this.animationValues),Js(`skew${Gs[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=Vs(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=Vs(t?.pointerEvents)||``),this.hasProjected&&!ao(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ds(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`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in ko){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ko[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?Vs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(nc),this.root.sharedNodes.clear()}}}function Zs(e){e.updateLayout()}function Qs(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`)$(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`;es(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else xc(i,t.layoutBox,n)&&$(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=Pa();cs(o,n,t.layoutBox);let s=Pa();a?cs(s,e.applyTransform(r,!0),t.measuredBox):cs(s,n,t.layoutBox);let c=!bs(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();fs(s,t.layoutBox,i.layoutBox,o);let c=J();fs(c,n,a.layoutBox,o),ws(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 $s(e){ka.value&&Ws.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 ec(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tc(e){e.clearSnapshot()}function nc(e){e.clearMeasurements()}function rc(e){e.isLayoutDirty=!0,e.updateLayout()}function ic(e){e.isLayoutDirty=!1}function ac(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function oc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function sc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cc(e){e.resolveTargetDelta()}function lc(e){e.calcProjection()}
1function uc(e){e.resetSkewAndRotation()}function dc(e){e.removeLeadSnapshot()}function fc(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pc(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function mc(e,t,n,r){pc(e.x,t.x,n.x,r),pc(e.y,t.y,n.y,r)}function hc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var gc={duration:.45,ease:[.4,0,.1,1]},_c=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vc=_c(`applewebkit/`)&&!_c(`chrome/`)?Math.round:D;function yc(e){e.min=vc(e.min),e.max=vc(e.max)}function bc(e){yc(e.x),yc(e.y)}function xc(e,t,n){return e===`position`||e===`preserve-aspect`&&!os(Ts(t),Ts(n),.2)}function Sc(e){return e!==e.root&&e.scroll?.wasRoot}var Cc=Xs({attachResizeListener:(e,t)=>Ls(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),wc={current:void 0},Tc=Xs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wc.current){let e=new Cc({});e.mount(window),e.setOptions({layoutScroll:!0}),wc.current=e}return wc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ec=(0,u.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Dc(e=!0){let t=(0,u.useContext)(xe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,u.useId)();(0,u.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,u.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Oc=(0,u.createContext)({strict:!1}),kc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Ac=!1;function jc(){if(Ac)return;let e={};for(let t in kc)e[t]={isEnabled:e=>kc[t].some(t=>!!e[t])};Xa(e),Ac=!0}function Mc(){return jc(),Za()}function Nc(e){let t=Mc();for(let n in e)t[n]={...t[n],...e[n]};Xa(t)}var Pc=(0,u.createContext)({});function Fc(e,t){if(Va(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ra(t)?t:void 0,animate:Ra(n)?n:void 0}}return e.inherit===!1?{}:t}function Ic(e){let{initial:t,animate:n}=Fc(e,(0,u.useContext)(Pc));return(0,u.useMemo)(()=>({initial:t,animate:n}),[Lc(t),Lc(n)])}function Lc(e){return Array.isArray(e)?e.join(` `):e}var Rc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zc(e,t,n){for(let r in t)!K(t[r])&&!Ao(r,n)&&(e[r]=t[r])}function Bc({transformTemplate:e},t){return(0,u.useMemo)(()=>{let n=Rc();return wo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vc(e,t){let n=e.style||{},r={};return zc(r,n,e),Object.assign(r,Bc(e,t)),r}function Hc(e,t){let n={},r=Vc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Uc=()=>({...Rc(),attrs:{}});function Wc(e,t,n,r){let i=(0,u.useMemo)(()=>{let n=Uc();return Ro(n,t,Bo(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};zc(t,e.style,e),i.style={...t,...i.style}}return i}var Gc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Kc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Gc.has(e)}function qc(e,t){return e.startsWith(`on`)?!Kc(e):t?.(e)??!Kc(e)}
1function Jc(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(K(e[a])||(qc(a,r)||n===!0&&Kc(a)||!t&&!Kc(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Yc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Xc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Yc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Zc(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Xc(e)?Wc:Hc)(t,r,i,e),l=Jc(t,typeof e==`string`,a,s),d=e===u.Fragment?{}:{...l,...c,ref:n},{children:f}=t,p=(0,u.useMemo)(()=>K(f)?f.get():f,[f]);return(0,u.createElement)(e,{...d,children:p})}function Qc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$c(n,r,i,e),renderState:t()}}function $c(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Vs(a[e]);let{initial:o,animate:s}=e,c=Va(e),l=Ha(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!La(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=li(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var el=e=>(t,n)=>{let r=(0,u.useContext)(Pc),i=(0,u.useContext)(xe),a=()=>Qc(e,t,r,i);return n?a():ye(a)},tl=el({scrapeMotionValuesFromProps:jo,createRenderState:Rc}),nl=el({scrapeMotionValuesFromProps:Ho,createRenderState:Uc}),rl=Symbol.for(`motionComponentSymbol`);function il(e,t,n){let r=(0,u.useRef)(n);(0,u.useInsertionEffect)(()=>{r.current=n});let i=(0,u.useRef)(null);return(0,u.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var al=(0,u.createContext)({});function ol(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function sl(e,t,n,r,i,a){let{visualElement:o}=(0,u.useContext)(Pc),s=(0,u.useContext)(Oc),c=(0,u.useContext)(xe),l=(0,u.useContext)(Ec),d=l.reducedMotion,f=l.skipAnimations,p=(0,u.useRef)(null),m=(0,u.useRef)(!1);r||=s.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:a}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let h=p.current,g=(0,u.useContext)(al);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&cl(p.current,n,i,g);let _=(0,u.useRef)(!1);(0,u.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[vi],y=(0,u.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return be(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,u.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function cl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:ll(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&ol(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function ll(e){if(e)return e.options.allowProjection===!1?ll(e.parent):e.projection}function ul(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Nc(r);let a=n?n===`svg`:Xc(e),o=a?nl:tl;function s(n,s){let c,l={...(0,u.useContext)(Ec),...n,layoutId:dl(n)},{isStatic:d,isValidProp:p}=l,m=Ic(n),h=o(n,d);if(!d&&typeof window<`u`){fl(l,r);let t=pl(l);c=t.MeasureLayout,m.visualElement=sl(e,h,l,i,t.ProjectionNode,a)}return(0,f.jsxs)(Pc.Provider,{value:m,children:[c&&m.visualElement?(0,f.jsx)(c,{visualElement:m.visualElement,...l}):null,Zc(e,n,il(h,m.visualElement,s),h,d,t,a,p)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,u.forwardRef)(s);return c[rl]=e,c}function dl({layoutId:e}){let t=(0,u.useContext)(ve).id;return t&&e!==void 0?t+`-`+e:e}function fl(e,t){(0,u.useContext)(Oc).strict}function pl(e){let{drag:t,layout:n}=Mc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1function ml(e,t){if(typeof Proxy>`u`)return ul;let n=new Map,r=(n,r)=>ul(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,ul(a,void 0,e,t)),n.get(a))})}var hl=(e,t)=>t.isSVG??Xc(e)?new Uo(t):new No(t,{allowProjection:e!==u.Fragment}),gl=class extends Y{constructor(e){super(e),e.animationState||=Xo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();La(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},_l=0,vl={animation:{Feature:gl},exit:{Feature:class extends Y{constructor(){super(...arguments),this.id=_l++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=G(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function yl(e){return{point:{x:e.pageX,y:e.pageY}}}var bl=e=>t=>na(t)&&e(t,yl(t));function xl(e,t,n,r){return Ls(e,t,bl(n),r)}var Sl=({current:e})=>e?e.ownerDocument.defaultView:null,Cl=(e,t)=>Math.abs(e-t);function wl(e,t){let n=Cl(e.x,t.x),r=Cl(e.y,t.y);return Math.sqrt(n**2+r**2)}var Tl=new Set([`auto`,`scroll`]),El=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.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Dl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=kl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=wl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=M;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Dl(t,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{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=kl(e.type===`pointercancel`?this.lastMoveEventInfo:Dl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!na(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Dl(yl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=M;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,kl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Oe(xl(this.contextWindow,`pointermove`,this.handlePointerMove,d),xl(this.contextWindow,`pointerup`,this.handlePointerUp,d),xl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Tl.has(e.overflowX)||Tl.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),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),j(this.updatePoint)}};function Dl(e,t){return t?{point:t(e.point)}:e}function Ol(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kl({point:e},t){return{point:e,delta:Ol(e,jl(t)),offset:Ol(e,Al(t)),velocity:Ml(t,.1)}}function Al(e){return e[0]}function jl(e){return e[e.length-1]}function Ml(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=jl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>O(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>O(t)*2&&(r=e[1]);let a=k(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Nl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function Pl(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 Fl(e,{top:t,left:n,bottom:r,right:i}){return{x:Pl(e.x,n,i),y:Pl(e.y,t,r)}}function Il(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 Ll(e,t){return{x:Il(e.x,t.x),y:Il(e.y,t.y)}}function Rl(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=ke(t.min,t.max-r,e.min):r>i&&(n=ke(e.min,e.max-i,t.min)),T(0,1,n)}function zl(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 Bl=.35;function Vl(e=Bl){return e===!1?e=0:e===!0&&(e=Bl),{x:Hl(e,`left`,`right`),y:Hl(e,`top`,`bottom`)}}function Hl(e,t,n){return{min:Ul(e,t),max:Ul(e,n)}}function Ul(e,t){return typeof e==`number`?e:e[t]||0}var Wl=new WeakMap,Gl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(yl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zi(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),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.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&&A.update(()=>i(e,t),!1,!0),gi(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){this.currentDirection=Yl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.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 El(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Sl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.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||!Jl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Nl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&ol(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Fl(n.layoutBox,e):this.constraints=!1,this.elastic=Vl(t),r!==this.constraints&&!ol(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=zl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ol(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=bo(n,r.root,this.visualElement.getTransformPagePoint()),a=Ll(r.layout.layoutBox,i);if(t){let e=t(to(a));this.hasMutatedConstraints=!!e,e&&(a=eo(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!Jl(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 gi(this.visualElement,e),n.start(ii(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!Jl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ol(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Rl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!Jl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Wl.set(this.visualElement,this);let e=this.visualElement.current,t=xl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&oa(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();ol(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=ql(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=Ls(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Bl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Kl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ql(e,t,n){let r=Oa(e,Kl(n)),i=Oa(t,Kl(n));return()=>{r(),i()}}function Jl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Yl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Xl=class extends Y{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new Gl
1(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Zl=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},Ql=class extends Y{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new El(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Zl(e),onStart:Zl(t),onMove:Zl(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=xl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},$l=!1,eu=class extends u.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),$l&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Us.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),$l=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ji.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;$l=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function tu(e){let[t,n]=Dc(),r=(0,u.useContext)(ve);return(0,f.jsx)(eu,{...e,layoutGroup:r,switchLayoutGroup:(0,u.useContext)(al),isPresent:t,safeToRemove:n})}var nu={pan:{Feature:Ql},drag:{Feature:Xl,ProjectionNode:Tc,MeasureLayout:tu}};function ru(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,yl(t)))}var iu=class extends Y{mount(){let{current:e}=this.node;e&&(this.unmount=ea(e,(e,t)=>(ru(this.node,t,`Start`),e=>ru(this.node,e,`End`))))}unmount(){}},au=class extends Y{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Oe(Ls(this.node.current,`focus`,()=>this.onFocus()),Ls(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function ou(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,yl(t)))}var su=class extends Y{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=pa(e,(e,t)=>(ou(this.node,t,`Start`),(e,{success:t})=>ou(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},cu=new WeakMap,lu=new WeakMap,uu=e=>{let t=cu.get(e.target);t&&t(e)}
1,du=e=>{e.forEach(uu)};function fu({root:e,...t}){let n=e||document;lu.has(n)||lu.set(n,{});let r=lu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(du,{root:e,...t})),r[i]}function pu(e,t,n){let r=fu(t);return cu.set(e,n),r.observe(e),()=>{cu.delete(e),r.unobserve(e)}}var mu={some:0,all:1},hu=class extends Y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:mu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=pu(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(gu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function gu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var _u={inView:{Feature:hu},tap:{Feature:su},focus:{Feature:au},hover:{Feature:iu}},vu={layout:{ProjectionNode:Tc,MeasureLayout:tu}},yu=ml({...vl,..._u,...nu,...vu},hl);function bu(){!Ga.current&&qa();let[e]=(0,u.useState)(Wa.current);return e}var xu=yu;function Su({children:e,delay:t=0,className:n,as:r=`div`}){let i=bu(),a=xu[r];return(0,f.jsx)(a,{className:n,initial:!i&&{opacity:0,y:16},...i?{}:{whileInView:{opacity:1,y:0}},viewport:{once:!0,margin:`-60px`},transition:{duration:.5,ease:`easeOut`,delay:t},children:e})}var Cu={version:1,asset_id:`307c1d94-680a-4baf-8fd8-1d91b447a558`,project_id:`d822556b-d51e-44ed-8cba-d9352936086e`,url:`/__l5e/assets-v1/307c1d94-680a-4baf-8fd8-1d91b447a558/process-1.webp`,r2_key:`a/v1/d822556b-d51e-44ed-8cba-d9352936086e/307c1d94-680a-4baf-8fd8-1d91b447a558/process-1.webp`,original_filename:`process-1.webp`,size:20304,content_type:`image/webp`,created_at:`2026-08-14T11:45:29Z`},wu={version:1,asset_id:`41ea32dd-8c30-4d67-8fa7-c052fd951f6e`,project_id:`d822556b-d51e-44ed-8cba-d9352936086e`,url:`/__l5e/assets-v1/41ea32dd-8c30-4d67-8fa7-c052fd951f6e/process-2.webp`,r2_key:`a/v1/d822556b-d51e-44ed-8cba-d9352936086e/41ea32dd-8c30-4d67-8fa7-c052fd951f6e/process-2.webp`,original_filename:`process-2.webp`,size:21716,content_type:`image/webp`,created_at:`2026-08-14T11:45:32Z`},Tu={version:1,asset_id:`c92f750a-a356-4f01-ae07-cc77cad5583a`,project_id:`d822556b-d51e-44ed-8cba-d9352936086e`,url:`/__l5e/assets-v1/c92f750a-a356-4f01-ae07-cc77cad5583a/process-3.webp`,r2_key:`a/v1/d822556b-d51e-44ed-8cba-d9352936086e/c92f750a-a356-4f01-ae07-cc77cad5583a/process-3.webp`,original_filename:`process-3.webp`,size:18154,content_type:`image/webp`,created_at:`2026-08-14T11:45:35Z`};export{g as S,pe as _,xu as a,ee as b,Ec as c,be as d,ye as f,he as g,ge as h,Su as i,qi as l,_e as m,wu as n,bu as o,ve as p,Cu as r,Dc as s,Tu as t,xe as u,ae as v,w as x,te as y};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.