PageSourceSearch

https://memarketplace.io/assets/vendor-animation-w0IFnZBX.js

js memarketplace.io collected 2026-09-28 06:14:04 UTC 116,486 bytes, 9 lines download raw bytes

vendor: 6,308 bytes, lines 1-9
1import{r as g,j as z}from"./vendor-router-Dm7h6vZB.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"0eefa8a32a2ed38053137442887d6aa677f5be48"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="27961f84-ddff-44e9-953e-eae635e99558",t._sentryDebugIdIdentifier="sentry-dbid-27961f84-ddff-44e9-953e-eae635e99558")})()}catch{}const Be=g.createContext({});function rt(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ie=typeof window<"u",Zt=Ie?g.useLayoutEffect:g.useEffect,Jt=g.createContext(null),Ft=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class ur extends g.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=s instanceof HTMLElement&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function hr({children:t,isPresent:e,anchorX:n}){const s=g.useId(),i=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:r}=g.useContext(Ft);return g.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:c,right:h}=o.current;if(e||!i.current||!a||!l)return;const f=n==="left"?`left: ${c}`:`right: ${h}`;i.current.dataset.motionPopId=s;const d=document.createElement("style");return r&&(d.nonce=r),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
2          [data-motion-pop-id="${s}"] {
3            position: absolute !important;
4            width: ${a}px !important;
5            height: ${l}px !important;
6            ${f}px !important;
7            top: ${u}px !important;
8          }
9        `),()=>{document.head.removeChild(d)}},[e]),z.jsx(ur,{isPresent:e,childRef:i,sizeRef:o,children:g.cloneElement(t,{ref:i})})}const fr=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a})=>{const l=rt(dr),u=g.useId();let c=!0,h=g.useMemo(()=>(c=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:f=>{l.set(f,!0);for(const d of l.values())if(!d)return;s&&s()},register:f=>(l.set(f,!1),()=>l.delete(f))}),[n,l,s]);return o&&c&&(h={...h}),g.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),g.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),r==="popLayout"&&(t=z.jsx(hr,{isPresent:n,anchorX:a,children:t})),z.jsx(Jt.Provider,{value:h,children:t})};function dr(){return new Map}function ks(t=!0){const e=g.useContext(Jt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=g.useId();g.useEffect(()=>{if(t)return i(o)},[t]);const r=g.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Nt=t=>t.key||"";function gn(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const Zc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left"})=>{const[l,u]=ks(r),c=g.useMemo(()=>gn(t),[t]),h=r&&!l?[]:c.map(Nt),f=g.useRef(!0),d=g.useRef(c),m=rt(()=>new Map),[y,T]=g.useState(c),[p,P]=g.useState(c);Zt(()=>{f.current=!1,d.current=c;for(let x=0;x<p.length;x++){const b=Nt(p[x]);h.includes(b)?m.delete(b):m.get(b)!==!0&&m.set(b,!1)}},[p,h.length,h.join("-")]);const v=[];if(c!==y){let x=[...c];for(let b=0;b<p.length;b++){const V=p[b],A=Nt(V);h.includes(A)||(x.splice(b,0,V),v.push(V))}return o==="wait"&&v.length&&(x=v),P(gn(x)),T(c),null}const{forceRender:w}=g.useContext(Be);return z.jsx(z.Fragment,{children:p.map(x=>{const b=Nt(x),V=r&&!l?!1:c===p||h.includes(b),A=()=>{if(m.has(b))m.set(b,!0);else return;let L=!0;m.forEach(O=>{O||(L=!1)}),L&&(w==null||w(),P(d.current),r&&(u==null||u()),s&&s())};return z.jsx(fr,{isPresent:V,initial:!f.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:A,anchorX:a,children:x},b)})})};function Oe(t,e){t.indexOf(e)===-1&&t.push(e)}function je(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X=(t,e,n)=>n>e?e:n<t?t:n;let Ne=()=>{};const Y={},Fs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Bs=t=>/^0[^.\s]+$/u.test(t);function Ue(t){let e;return()=>(e===void 0&&(e=t()),e)}const N=t=>t,mr=(t,e)=>n=>e(t(n)),Bt=(...t)=>t.reduce(mr),Ct=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Ke{constructor(){this.subscriptions=[]}add(e){return Oe(this.subscriptions,e),()=>je(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $=t=>t*1e3,_=t=>t/1e3;function Is(t,e){return e?t*(1e3/e):0}const Os=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,pr=1e-7,gr=12;function yr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Os(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>pr&&++a<gr);return r}function It(t,e,n,s){if(t===e&&n===s)return N;const i=o=>yr(o,0,1,t,n);return o=>o===0||o===1?o:Os(i(o),e,s)}const js=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ns=t=>e=>1-t(1-e),Us=It(.33,1.53,.69,.99),We=Ns(Us),Ks=js(We),Ws=t=>(t*=2)<1?.5*We(t):.5*(2-Math.pow(2,-10*(t-1))),$e=t=>1-Math.sin(Math.acos(t)),$s=Ns($e),_s=js($e),vr=It(.42,0,1,1),Tr=It(0,0,.58,1),Gs=It(.42,0,.58,1),xr=t=>Array.isArray(t)&&typeof t[0]!="number",Hs=t=>Array.isArray(t)&&typeof t[0]=="number",Sr={linear:N,easeIn:vr,easeInOut:Gs,easeOut:Tr,circIn:$e,circInOut:_s,circOut:$s,backIn:We,backInOut:Ks,backOut:Us,anticipate:Ws},Pr=t=>typeof t=="string",yn=t=>{if(Hs(t)){Ne(t.length===4);const[e,n,s,i]=t;return It(e,n,s,i)}else if(Pr(t))return Sr[t];return t},Ut=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function br(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}
vendor: 5,079 bytes, line 9
9i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Ar=40;function zs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ut.reduce((v,w)=>(v[w]=br(o),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,y=()=>{const v=Y.useManualTiming?i.timestamp:performance.now();n=!1,Y.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Ar),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},T=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Ut.reduce((v,w)=>{const x=r[w];return v[w]=(b,V=!1,A=!1)=>(n||T(),x.schedule(b,V,A)),v},{}),cancel:v=>{for(let w=0;w<Ut.length;w++)r[Ut[w]].cancel(v)},state:i,steps:r}}const{schedule:C,cancel:q,state:k,steps:ie}=zs(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0);let $t;function wr(){$t=void 0}const j={now:()=>($t===void 0&&j.set(k.isProcessing||Y.useManualTiming?k.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(wr)}},Xs=t=>e=>typeof e=="string"&&e.startsWith(t),_e=Xs("--"),Vr=Xs("var(--"),Ge=t=>Vr(t)?Cr.test(t.split("/*")[0].trim()):!1,Cr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Mt={...pt,transform:t=>X(0,1,t)},Kt={...pt,default:1},St=t=>Math.round(t*1e5)/1e5,He=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mr(t){return t==null}const Dr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ze=(t,e)=>n=>!!(typeof n=="string"&&Dr.test(n)&&n.startsWith(t)||e&&!Mr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ys=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(He);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Rr=t=>X(0,255,t),re={...pt,transform:t=>Math.round(Rr(t))},nt={test:ze("rgb","red"),parse:Ys("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+re.transform(t)+", "+re.transform(e)+", "+re.transform(n)+", "+St(Mt.transform(s))+")"};function Er(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ge={test:ze("#"),parse:Er,transform:nt.transform},Ot=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=Ot("deg"),G=Ot("%"),S=Ot("px"),Lr=Ot("vh"),kr=Ot("vw"),vn={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},at={test:ze("hsl","hue"),parse:Ys("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+G.transform(St(e))+", "+G.transform(St(n))+", "+St(Mt.transform(s))+")"},F={test:t=>nt.test(t)||ge.test(t)||at.test(t),parse:t=>nt.test(t)?nt.parse(t):at.test(t)?at.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):at.transform(t)},Fr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Br(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(He))==null?void 0:e.length)||0)+(((n=t.match(Fr))==null?void 0:n.length)||0)>0}const qs="number",Zs="color",Ir="var",Or="var(",Tn="${}",jr=/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 Dt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(jr,l=>(F.test(l)?(s.color.push(o),i.push(Zs),n.push(F.parse(l))):l.startsWith(Or)?(s.var.push(o),i.push(Ir),n.push(l)):(s.number.push(o),i.push(qs),n.push(parseFloat(l))),++o,Tn)).split(Tn);return{values:n,split:a,indexes:s,types:i}}function Js(t){return Dt(t).values}function Qs(t){const{split:e,types:n}=Dt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===qs?o+=St(i[r]):a===Zs?o+=F.transform(i[r]):o+=i[r]}return o}}const Nr=t=>typeof t=="number"?0:t;function Ur(t){const e=Js(t);return Qs(t)(e.map(Nr))}const J={test:Br,parse:Js,createTransformer:Qs,getAnimatableNone:Ur};function oe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=oe(l,a,t+1/3),o=oe(l,a,t),r=oe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ht(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Wr=[ge,nt,at],$r=t=>
vendor: 15,254 bytes, line 9
9Wr.find(e=>e.test(t));function xn(t){const e=$r(t);if(!e)return!1;let n=e.parse(t);return e===at&&(n=Kr(n)),n}const Sn=(t,e)=>{const n=xn(t),s=xn(e);if(!n||!s)return Ht(t,e);const i={...n};return o=>(i.red=ae(n.red,s.red,o),i.green=ae(n.green,s.green,o),i.blue=ae(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),nt.transform(i))},ye=new Set(["none","hidden"]);function _r(t,e){return ye.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Gr(t,e){return n=>M(t,e,n)}function Xe(t){return typeof t=="number"?Gr:typeof t=="string"?Ge(t)?Ht:F.test(t)?Sn:Xr:Array.isArray(t)?ti:typeof t=="object"?F.test(t)?Sn:Hr:Ht}function ti(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Xe(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Hr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Xe(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function zr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Xr=(t,e)=>{const n=J.createTransformer(e),s=Dt(t),i=Dt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ye.has(t)&&!i.values.length||ye.has(e)&&!s.values.length?_r(t,e):Bt(ti(zr(s,i),i.values),n):Ht(t,e)};function ei(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):Xe(t)(t,e)}const Yr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>C.update(e,!0),stop:()=>q(e),now:()=>k.isProcessing?k.timestamp:j.now()}},ni=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(o/(i-1))+", ";return`linear(${s.substring(0,s.length-2)})`},zt=2e4;function Ye(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<zt;)e+=n,s=t.next(e);return e>=zt?1/0:e}function qr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Ye(s),zt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:_(i)}}const Zr=5;function si(t,e,n){const s=Math.max(e-Zr,0);return Is(n-t(s),e-s)}const D={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},Pn=.001;function Jr({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=X(D.minDamping,D.maxDamping,r),t=X(D.minDuration,D.maxDuration,_(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=ve(u,r),m=Math.exp(-h);return Pn-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),y=ve(Math.pow(u,2),r);return(-i(u)+Pn>0?-1:1)*((f-d)*m)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-.001+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=to(i,o,a);if(t=$(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Qr=12;function to(t,e,n){let s=n;for(let i=1;i<Qr;i++)s=s-t(s)/e(s);return s}function ve(t,e){return t*Math.sqrt(1-e*e)}const eo=["duration","bounce"],no=["stiffness","damping","mass"];function bn(t,e){return e.some(n=>t[n]!==void 0)}function so(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!bn(t,no)&&bn(t,eo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=Jr(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Xt(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=so({...n,velocity:-_(n.velocity||0)}),m=f||0,y=u/(2*Math.sqrt(l*c)),T=r-o,p=_(Math.sqrt(l/c)),P=Math.abs(T)<5;s||(s=P?D.restSpeed.granular:D.restSpeed.default),i||(i=P?D.restDelta.granular:D.restDelta.default);let v;if(y<1){const x=ve(p,y);v=b=>{const V=Math.exp(-y*p*b);return r-V*((m+y*p*T)/x*Math.sin(x*b)+T*Math.cos(x*b))}}else if(y===1)v=x=>r-Math.exp(-p*x)*(T+(m+p*T)*x);else{const x=p*Math.sqrt(y*y-1);v=b=>{const V=Math.exp(-y*p*b),A=Math.min(x*b,300);return r-V*((m+y*p*T)*Math.sinh(A)+x*T*Math.cosh(A))/x}}const w={calculatedDuration:d&&h||null,next:x=>{const b=v(x);if(d)a.done=x>=h;else{let V=x===0?m:0;y<1&&(V=x===0?$(m):si(v,x,b));const A=Math.abs(V)<=s,L=Math.abs(r-b)<=i;a.done=A&&L}return a.value=a.done?r:b,a},toString:()=>{const x=Math.min(Ye(w),zt),b=ni(V=>w.next(x*V).value,x,30);return x+"ms "+b},toTransition:()=>{}};return w}Xt.applyToOptions=t=>{const e=qr(t,100,Xt);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};function Te({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let y=n*e;const T=h+y,p=r===void 0?T:r(T);p!==T&&(y=p-h);const P=A=>-y*Math.exp(-A/s),v=A=>p+P(A),w=A=>{const L=P(A),O=v(A);f.done=Math.abs(L)<=u,f.value=f.done?p:O};let x,b;const V=A=>{d(f.value)&&(x=A,b=Xt({keyframes:[f.value,m(f.value)],velocity:si(v,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:A=>{let L=!1;return!b&&x===void 0&&(L=!0,w(A),V(A)),x!==void 0&&A>=x?b.next(A-x):(!L&&w(A),f)}}}function io(t,e,n){const s=[],i=n||Y.mix||ei,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||N:e;a=Bt(l,a)}s.push(a)}return s}function ii(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ne(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=io(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=Ct(t[h],t[h+1],c);return a[h](f)};return n?c=>u(X(t[0],t[o-1],c)):u}function ro(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ct(0,e,s);t.push(M(n,1,i))}}function oo(t){const e=[0];return ro(e,t.length-1),e}function ao(t,e){return t.map(n=>n*e)}function lo(t,e){return t.map(()=>e||Gs).splice(0,t.length-1)}function Pt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=xr(s)?s.map(yn):yn(s),o={done:!1,value:e[0]},r=ao(n&&n.length===e.length?n:oo(e),t),a=ii(r,e,{ease:Array.isArray(i)?i:lo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const co=t=>t!==null;function qe(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(co),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const uo={decay:Te,inertia:Te,tween:Pt,keyframes:Pt,spring:Xt};function ri(t){typeof t.type=="string"&&(t.type=uo[t.type])}class Ze{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ho=t=>t/100;class Je extends Ze{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;if(n&&n.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ri(e);const{type:n=Pt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Pt;l!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=Bt(ho,ei(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Ye(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,w=s;if(h){const A=Math.min(this.currentTime,i)/a;let L=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(f==="reverse"?(O=1-O,d&&(O-=d/a)):f==="mirror"&&(w=r)),v=X(0,1,O)*a}const x=P?{done:!1,value:c[0]}:w.next(v);o&&(x.value=o(x.value));let{done:b}=x;!P&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return V&&m!==Te&&(x.value=qe(c,this.options,T,this.speed)),y&&y(x.value),V&&this.finish(),x}then(e,n){return this.finished.then(e,n)}get duration(){return _(this.calculatedDuration)}get time(){return _(this.currentTime)}set time(e){e=$(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)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(j.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Yr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=s??i),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(j.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=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()),e.observe(this)}}function fo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const st=t=>t*180/Math.PI,xe=t=>{const e=st(Math.atan2(t[1],t[0]));return Se(e)},mo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xe,rotateZ:xe,skewX:t=>st(Math.atan(t[1])),skewY:t=>st(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Se=t=>(t=t%360,t<0&&(t+=360),t),An=xe,wn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Vn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),po={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wn,scaleY:Vn,scale:t=>(wn(t)+Vn(t))/2,rotateX:t=>Se(st(Math.atan2(t[6],t[5]))),rotateY:t=>Se(st(Math.atan2(-t[2],t[0]))),rotateZ:An,rotate:An,skewX:t=>st(Math.atan(t[4])),skewY:t=>st(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Cn(t){return t.includes("scale")?1:0}function Pe(t,e){if(!t||t==="none")return Cn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=po,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=mo,i=a}if(!i)return Cn(e);const o=s[e],r=i[1].split(",").map(yo);return typeof o=="function"?o(r):r[o]}const go=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Pe(n,e)};function yo(t){return parseFloat(t.trim())}const gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(gt),Mn=t=>t===pt||t===S,vo=new Set(["x","y","z"]),To=gt.filter(t=>!vo.has(t));function xo(t){const e=[];return To.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ft={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Pe(e,"x"),y:(t,{transform:e})=>Pe(e,"y")};ft.translateX=ft.x;ft.translateY=ft.y;const it=new Set;let be=!1,Ae=!1,we=!1;function oi(){if(Ae){const t=Array.from(it).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=xo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ae=!1,be=!1,it.forEach(t=>t.complete(we)),it.clear()}function ai(){it.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ae=!0)})}function So(){we=!0,ai(),oi(),we=!1}class Qe{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(it.add(this),be||(be=!0,C.read(ai),C.resolveKeyframes(oi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}fo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),it.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,it.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Po=t=>t.startsWith("--");function bo(t,e,n){Po(e)?t.style.setProperty(e,n):t.style[e]=n}const Ao=Ue(()=>window.ScrollTimeline!==void 0),wo={};function Vo(t,e){const n=Ue(t);return()=>wo[e]??n()}const li=Vo(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Dn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function ci(t,e){if(t)return typeof t=="function"?li()?ni(t,e):"ease-out":Hs(t)?Tt(t):Array.isArray(t)?t.map(n=>ci(n,e)||Dn.easeOut):Dn[t]}function Co(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=ci(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function ui(t){return typeof t=="function"&&"applyToOptions"in t}function Mo({type:t,...e}){return ui(t)&&li()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Do extends Ze{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Ne(typeof e.type!="string");const u=Mo(e);this.animation=Co(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=qe(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):bo(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return _(Number(e))}get time(){return _(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=$(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Ao()?(this.animation.timeline=e,N):n(this)}}const hi={anticipate:Ws,backInOut:Ks,circInOut:_s};function Ro(t){return t in hi}function Eo(t){typeof t.ease=="string"&&Ro(t.ease)&&(t.ease=hi[t.ease])}const Rn=10;class Lo extends Do{constructor(e){Eo(e),ri(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Je({...r,autoplay:!1}),l=$(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Rn).value,a.sample(l).value,Rn),a.stop()}}const En=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function ko(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Fo(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=En(i,e),a=En(o,e);return!r||!a?!1:ko(t)||(n==="spring"||ui(n))&&s}const Bo=new Set(["opacity","clipPath","filter","transform"]),Io=Ue(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Oo(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Io()&&n&&Bo.has(n)&&(n!=="transform"||!l)&&!a&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const jo=40;class No extends Ze{constructor({autoplay:e=!0,delay:n=0,type:s="
9keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){var m;super(),this.stop=()=>{var y,T;this._animation?(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)):(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=j.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=(c==null?void 0:c.KeyframeResolver)||Qe;this.keyframeResolver=new d(a,(y,T,p)=>this.onKeyframesResolved(y,T,f,!p),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=j.now(),Fo(e,o,r,a)||((Y.instantAnimations||!l)&&(c==null||c(qe(e,s,n))),e[0]=e[e.length-1],s.duration=0,s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>jo?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&Oo(f)?new Lo({...f,element:f.motionValue.owner.current}):new Je(f);d.finished.then(()=>this.notifyFinished()).catch(N),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||So(),this._animation}get duration(){return this.animation.duration}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.cancel()}}const Uo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ko(t){const e=Uo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function fi(t,e,n=1){const[s,i]=Ko(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Fs(r)?parseFloat(r):r}return Ge(i)?fi(i,e,n+1):i}function tn(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const di=new Set(["width","height","top","left","right","bottom",...gt]),Wo={test:t=>t==="auto",parse:t=>t},mi=t=>e=>e.test(t),pi=[pt,S,G,Z,kr,Lr,Wo],Ln=t=>pi.find(mi(t));function $o(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bs(t):!0}const _o=new Set(["brightness","contrast","saturate","opacity"]);function Go(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(He)||[];if(!s)return t;const i=n.replace(s,"");let o=_o.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ho=/\b([a-z-]*)\(.*?\)/gu,Ve={...J,getAnimatableNone:t=>{const e=t.match(Ho);return e?e.map(Go).join(" "):t}},kn={...pt,transform:Math.round},zo={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:Kt,scaleX:Kt,scaleY:Kt,scaleZ:Kt,skew:Z,skewX:Z,skewY:Z,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Mt,originX:vn,originY:vn,originZ:S},en={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...zo,zIndex:kn,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:kn},Xo={...en,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Ve,WebkitFilter:Ve},gi=t=>Xo[t];function yi(t,e){let n=gi(t);return n!==Ve&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,108 bytes, line 9
9const Yo=new Set(["auto","none","0"]);function qo(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Yo.has(o)&&Dt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=yi(n,i)}class Zo extends Qe{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Ge(u))){const c=fi(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!di.has(s)||e.length!==2)return;const[i,o]=e,r=Ln(i),a=Ln(o);if(r!==a)if(Mn(r)&&Mn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||$o(e[i]))&&s.push(i);s.length&&qo(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ft[
vendor: 45,929 bytes, line 9
9s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=ft[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{e.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Jo(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const{schedule:nn}=zs(queueMicrotask,!1),W={x:!1,y:!1};function vi(){return W.x||W.y}function Qo(t){return t==="x"||t==="y"?W[t]?null:(W[t]=!0,()=>{W[t]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Ti(t,e){const n=Jo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Fn(t){return!(t.pointerType==="touch"||vi())}function ta(t,e,n={}){const[s,i,o]=Ti(t,n),r=a=>{if(!Fn(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{Fn(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const xi=(t,e)=>e?t===e?!0:xi(t,e.parentElement):!1,sn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ea=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function na(t){return ea.has(t.tagName)||t.tabIndex!==-1}const xt=new WeakSet;function Bn(t){return e=>{e.key==="Enter"&&t(e)}}function le(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const sa=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Bn(()=>{if(xt.has(n))return;le(n,"down");const i=Bn(()=>{le(n,"up")}),o=()=>le(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function In(t){return sn(t)&&!vi()}function ia(t,e,n={}){const[s,i,o]=Ti(t,n),r=a=>{const l=a.currentTarget;if(!In(a)||xt.has(l))return;xt.add(l);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!In(d)||!xt.has(l))&&(xt.delete(l),typeof u=="function"&&u(d,{success:m}))},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||xi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a instanceof HTMLElement&&(a.addEventListener("focus",u=>sa(u,i)),!na(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ra(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=ii(i,o,r);return e?a(s):a}const On=30,oa=t=>!isNaN(parseFloat(t)),bt={current:void 0};class aa{constructor(e,n={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{var r,a;const o=j.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current)),i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=oa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ke);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return bt.current&&bt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>On)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,On);return Is(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e;(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dt(t,e){return new aa(t,e)}const la=[...pi,F,J],ca=t=>la.find(mi(t)),Si=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Pi=g.createContext({strict:!1}),jn={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"]},mt={};for(const t in jn)mt[t]={isEnabled:e=>jn[t].some(n=>!!e[n])};function ua(t){for(const e in t)mt[e]={...mt[e],...t[e]}}const ha=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ha.has(t)}let bi=t=>!Yt(t);function fa(t){t&&(bi=e=>e.startsWith("on")?!Yt(e):t(e))}try{fa(require("@emotion/is-prop-valid").default)}catch{}function da(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(bi(i)||n===!0&&Yt(i)||!e&&!Yt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function ma(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Qt=g.createContext({});function te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Rt(t){return typeof t=="string"||Array.isArray(t)}const rn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],on=["initial",...rn];function ee(t){return te(t.animate)||on.some(e=>Rt(t[e]))}function Ai(t){return!!(ee(t)||t.variants)}function pa(t,e){if(ee(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Rt(n)?n:void 0,animate:Rt(s)?s:void 0}}return t.inherit!==!1?e:{}}function ga(t){const{initial:e,animate:n}=pa(t,g.useContext(Qt));return g.useMemo(()=>({initial:e,animate:n}),[Nn(e),Nn(n)])}function Nn(t){return Array.isArray(t)?t.join(" "):t}const ya=Symbol.for("motionComponentSymbol");function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function va(t,e,n){return g.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}const an=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ta="framerAppearId",wi="data-"+an(Ta),Vi=g.createContext({});function xa(t,e,n,s,i){var y,T;const{visualElement:o}=g.useContext(Qt),r=g.useContext(Pi),a=g.useContext(Jt),l=g.useContext(Ft).reducedMotion,u=g.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=g.useContext(Vi);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Sa(u.current,n,i,h);const f=g.useRef(!1);g.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const d=n[wi],m=g.useRef(!!d&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,d))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,d)));return Zt(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nn.render(c.render),m.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,d)}),m.current=!1))}),c}function Sa(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ci(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&lt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function Ci(t){if(t)return t.options.allowProjection!==!1?t.projection:Ci(t.parent)}function Pa({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&ua(t);function o(a,l){let u;const c={...g.useContext(Ft),...a,layoutId:ba(a)},{isStatic:h}=c,f=ga(a),d=s(a,h);if(!h&&Ie){Aa();const m=wa(c);u=m.MeasureLayout,f.visualElement=xa(i,d,c,e,m.ProjectionNode)}return z.jsxs(Qt.Provider,{value:f,children:[u&&f.visualElement?z.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,va(d,f.visualElement,l),d,h,f.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const r=g.forwardRef(o);return r[ya]=i,r}function ba({layoutId:t}){const e=g.useContext(Be).id;return e&&t!==void 0?e+"-"+t:t}function Aa(t,e){g.useContext(Pi).strict}function wa(t){const{drag:e,layout:n}=mt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Et={};function Va(t){for(const e in t)Et[e]=t[e],_e(e)&&(Et[e].isCSSVariable=!0)}function Mi(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Et[t]||t==="opacity")}const E=t=>!!(t&&t.getVelocity),Ca={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ma=gt.length;function Da(t,e,n){let s="",i=!0;for(let o=0;o<Ma;o++){const r=gt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Si(a,en[r]);if(!l){i=!1;const c=Ca[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function ln(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(yt.has(l)){r=!0;continue}else if(_e(l)){i[l]=u;continue}else{const c=Si(u,en[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Da(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const cn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Di(t,e,n){for(const s in e)!E(e[s])&&!Mi(s,n)&&(t[s]=e[s])}function Ra({transformTemplate:t},e){return g.useMemo(()=>{const n=cn();return ln(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Ea(t,e){const n=t.style||{},s={};return Di(s,n,t),Object.assign(s,Ra(t,e)),s}function La(t,e){const n={},s=Ea(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ka=["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 un(t){return typeof t!="string"||t.includes("-")?!1:!!(ka.indexOf(t)>-1||/[A-Z]/u.test(t))}const Fa={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ba={offset:"strokeDashoffset",array:"strokeDasharray"};function Ia(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Fa:Ba;t[o.offset]=S.transform(-s);const r=S.transform(e),a=S.transform(n);t[o.array]=`${r} ${a}`}function Ri(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u){if(ln(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:c,style:h}=t;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox="fill-box",delete c.transformBox),e!==void 0&&(c.x=e),n!==void 0&&(c.y=n),s!==void 0&&(c.scale=s),i!==void 0&&Ia(c,i,o,r,!1)}const Ei=()=>({...cn(),attrs:{}}),Li=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Oa(t,e,n,s){const i=g.useMemo(()=>{const o=Ei();return Ri(o,e,Li(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Di(o,t.style,t),i.style={...o,...i.style}}return i}function ja(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(un(n)?Oa:La)(s,o,r,n),u=da(s,typeof n=="string",t),c=n!==g.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=g.useMemo(()=>E(h)?h.get():h,[h]);return g.createElement(n,{...c,children:f})}}function Un(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function hn(t,e,n,s){if(typeof e=="function"){const[i,o]=Un(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Un(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function _t(t){return E(t)?t.get():t}function Na({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Ua(n,s,i,t),renderState:e()}}const ki=t=>(e,n)=>{const s=g.useContext(Qt),i=g.useContext(Jt),o=()=>Na(t,e,s,i);return n?o():rt(o)};function Ua(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=_t(o[f]);let{initial:r,animate:a}=t;const l=ee(t),u=Ai(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!te(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=hn(t,f[d]);if(m){const{transitionEnd:y,transition:T,...p}=m;for(const P in p){let v=p[P];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[P]=v)}for(const P in y)i[P]=y[P]}}}return i}function fn(t,e,n){var o;const{style:s}=t,i={};for(const r in s)(E(s[r])||e.style&&E(e.style[r])||Mi(r,t)||((o=n==null?void 0:n.getValue(r))==null?void 0:o.liveStyle)!==void 0)&&(i[r]=s[r]);return i}const Ka={useVisualState:ki({scrapeMotionValuesFromProps:fn,createRenderState:cn})};function Fi(t,e,n){const s=fn(t,e,n);for(const i in t)if(E(t[i])||E(e[i])){const o=gt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const Wa={useVisualState:ki({scrapeMotionValuesFromProps:Fi,createRenderState:Ei})};function $a(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...un(s)?Wa:Ka,preloadedFeatures:t,useRender:ja(i),createVisualElement:e,Component:s};return Pa(r)}}function Lt(t,e,n){const s=t.getProps();return hn(s,e,n!==void 0?n:s.custom,t)}const Ce=t=>Array.isArray(t);function _a(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,dt(n))}function Ga(t){return Ce(t)?t[t.length-1]||0:t}function Ha(t,e){const n=Lt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ga(o[r]);_a(t,r,a)}}function za(t){return!!(E(t)&&t.add)}function Me(t,e){const n=t.getValue("willChange");if(za(n))return n.add(e);if(!n&&Y.WillChange){const s=new Y.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Bi(t){return t.props[wi]}const Xa=t=>t!==null;function Ya(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Xa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const qa={type:"spring",stiffness:500,damping:25,restSpeed:10},Za=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ja={type:"keyframes",duration:.8},Qa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(t,{keyframes:e})=>e.length>2?Ja:yt.has(t)?t.startsWith("scale")?Za(e[1]):qa:Qa;function el({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const dn=(t,e,n,s={},i,o)=>r=>{const a=tn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};el(a)||Object.assign(c,tl(t,c)),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),(Y.instantAnimations||Y.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Ya(c.keyframes,a);if(f!==void 0){C.update(()=>{c.onUpdate(f),c.onComplete()});return}}return new No(c)};function nl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ii(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&nl(u,c))continue;const d={delay:n,...tn(o||{},c)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const p=Bi(t);if(p){const P=window.MotionHandoffAnimation(p,c,C);P!==null&&(d.startTime=P,y=!0)}}Me(t,c),h.start(dn(c,h,f,t.shouldReduceMotion&&di.has(c)?{type:!1}:d,t,y));const T=h.animation;T&&l.push(T)}return r&&Promise.all(l).then(()=>{C.update(()=>{r&&Ha(t,r)})}),l}function De(t,e,n={}){var l;const s=Lt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Ii(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=i;return sl(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function sl(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(il).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(De(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function il(t,e){return t.sortNodePosition(e)}function rl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>De(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=De(t,e,n);else{const i=typeof e=="function"?Lt(t,e,n.custom):e;s=Promise.all(Ii(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Oi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const ol=on.length;function ji(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ji(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ol;n++){const s=on[n],i=t.props[s];(Rt(i)||i===!1)&&(e[s]=i)}return e}const al=[...rn].reverse(),ll=rn.length;function cl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>rl(t,n,s)))}function ul(t){let e=cl(t),n=Kn(),s=!0;const i=l=>(u,c)=>{var f;const h=Lt(t,c,l==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:d,transitionEnd:m,...y}=h;u={...u,...y,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=ji(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let T=0;T<ll;T++){const p=al[T],P=n[p],v=u[p]!==void 0?u[p]:c[p],w=Rt(v),x=p===l?P.isActive:null;x===!1&&(m=T);let b=v===c[p]&&v!==u[p]&&w;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),P.protectedKeys={...d},!P.isActive&&x===null||!v&&!P.prevProp||te(v)||typeof v=="boolean")continue;const V=hl(P.prevProp,v);let A=V||p===l&&P.isActive&&!b&&w||T>m&&w,L=!1;const O=Array.isArray(v)?v:[v];let ot=O.reduce(i(p),{});x===!1&&(ot={});const{prevResolvedValues:mn={}}=P,cr={...mn,...ot},pn=B=>{A=!0,f.has(B)&&(L=!0,f.delete(B)),P.needsAnimating[B]=!0;const H=t.getValue(B);H&&(H.liveStyle=!1)};for(const B in cr){const H=ot[B],ne=mn[B];if(d.hasOwnProperty(B))continue;let se=!1;Ce(H)&&Ce(ne)?se=!Oi(H,ne):se=H!==ne,se?H!=null?pn(B):f.add(B):H!==void 0&&f.has(B)?pn(B):P.protectedKeys[B]=!0}P.prevProp=v,P.prevResolvedValues=ot,P.isActive&&(d={...d,...ot}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(b&&V)||L)&&h.push(...O.map(B=>({animation:B,options:{type:p}})))}if(f.size){const T={};if(typeof u.initial!="boolean"){const p=Lt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(T.transition=p.transition)}f.forEach(p=>{const P=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),T[p]=P??null}),h.push({animation:T})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(l,u)}),n[l].isActive=u;const c=r(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Kn(),s=!0}}}function hl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Oi(e,t):!1}function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kn(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class Q{constructor(e){this.isMounted=!1,this.node=e}update(){}}class fl extends Q{constructor(e){super(e),e.animationState||(e.animationState=ul(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();te(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let dl=0;class ml extends Q{constructor(){super(...arguments),this.id=dl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const pl={animation:{Feature:fl},exit:{Feature:ml}};function kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function jt(t){return{point:{x:t.pageX,y:t.pageY}}}const gl=t=>e=>sn(e)&&t(e,jt(e));function At(t,e,n,s){return kt(t,e,gl(n),s)}function Ni({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function yl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function vl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const Ui=1e-4,Tl=1-Ui,xl=1+Ui,Ki=.01,Sl=0-Ki,Pl=0+Ki;function I(t){return t.max-t.min}function bl(t,e,n){return Math.abs(t-e)<=n}function Wn(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Tl&&t.scale<=xl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Sl&&t.translate<=Pl||isNaN(t.translate))&&(t.translate=0)}function wt(t,e,n,s){Wn(t.x,e.x,n.x,s?s.originX:void 0),Wn(t.y,e.y,n.y,s?s.originY:void 0)}function $n(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function Al(t,e,n){$n(t.x,e.x,n.x),$n(t.y,e.y,n.y)}function _n(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Vt(t,e,n){_n(t.x,e.x,n.x),_n(t.y,e.y,n.y)}const Gn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Gn(),y:Gn()}),Hn=()=>({min:0,max:0}),R=()=>({x:Hn(),y:Hn()});function K(t){return[t("x"),t("y")]}function ce(t){return t===void 0||t===1}function Re({scale:t,scaleX:e,scaleY:n}){return!ce(t)||!ce(e)||!ce(n)}function et(t){return Re(t)||Wi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Wi(t){return zn(t.x)||zn(t.y)}function zn(t){return t&&t!=="0%"}function qt(t,e,n){const s=t-n,i=e*s;return n+i}function Xn(t,e,n,s,i){return i!==void 0&&(t=qt(t,i,s)),qt(t,n,s)+e}function Ee(t,e=0,n=1,s,i){t.min=Xn(t.min,e,n,s,i),t.max=Xn(t.max,e,n,s,i)}function $i(t,{x:e,y:n}){Ee(t.x,e.translate,e.scale,e.originPoint),Ee(t.y,n.translate,n.scale,n.originPoint)}const Yn=.999999999999,qn=1.0000000000001;function wl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ht(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,$i(t,r)),s&&et(o.latestValues)&&ht(t,o.latestValues))}e.x<qn&&e.x>Yn&&(e.x=1),e.y<qn&&e.y>Yn&&(e.y=1)}function ut(t,e){t.min=t.min+e,t.max=t.max+e}function Zn(t,e,n,s,i=.5){const o=M(t.min,t.max,i);Ee(t,e,n,o,s)}function ht(t,e){Zn(t.x,e.x,e.scaleX,e.scale,e.originX),Zn(t.y,e.y,e.scaleY,e.scale,e.originY)}function _i(t,e){return Ni(vl(t.getBoundingClientRect(),e))}function Vl(t,e,n){const s=_i(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}const Gi=({current:t})=>t?t.ownerDocument.defaultView:null,Jn=(t,e)=>Math.abs(t-e);function Cl(t,e){const n=Jn(t.x,e.x),s=Jn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Hi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=he(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Cl(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:y}=k;this.history.push({...m,timestamp:y});const{onStart:T,onMove:p}=this.handlers;f||(T&&T(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ue(f,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=he(h.type==="pointercancel"?this.lastMoveEventInfo:ue(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,T),m&&m(h,T)},!sn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=jt(e),a=ue(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=k;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,he(a,this.history)),this.removeListeners=Bt(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function ue(t,e){return e?{point:e(t.point)}:t}function Qn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function he({point:t},e){return{point:t,delta:Qn(t,zi(e)),offset:Qn(t,Ml(e)),velocity:Dl(e,.1)}}function Ml(t){return t[0]}function zi(t){return t[t.length-1]}function Dl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=zi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const o=_(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Rl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function ts(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function El(t,{top:e,left:n,bottom:s,right:i}){return{x:ts(t.x,n,i),y:ts(t.y,e,s)}}function es(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Ll(t,e){return{x:es(t.x,e.x),y:es(t.y,e.y)}}function kl(t,e){let n=.5;const s=I(t),i=I(e);return i>s?n=Ct(e.min,e.max-s,t.min):s>i&&(n=Ct(t.min,t.max-i,e.min)),X(0,1,n)}function Fl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Le=.35;function Bl(t=Le){return t===!1?t=0:t===!0&&(t=Le),{x:ns(t,"left","right"),y:ns(t,"top","bottom")}}function ns(t,e,n){return{min:ss(t,e),max:ss(t,n)}}function ss(t,e){return typeof t=="number"?t:t[e]||0}const Il=new WeakMap;class Ol{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=R(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jt(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Qo(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(T=>{let p=this.getAxisMotionValue(T).get()||0;if(G.test(p)){const{projection:P}=this.visualElement;if(P&&P.layout){const v=P.layout.layoutBox[T];v&&(p=I(v)*(parseFloat(p)/100))}}this.originPoint[T]=p}),m&&C.postRender(()=>m(c,h)),Me(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:T}=h;if(d&&this.currentDirection===null){this.currentDirection=jl(T),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),y&&y(c,h)},a=(c,h)=>this.stop(c,h),l=()=>K(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Gi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&C.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Wt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Rl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&lt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=El(s.layoutBox,e):this.constraints=!1,this.elastic=Bl(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&K(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Fl(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!lt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Vl(s,i.root,this.visualElement.getTransformPagePoint());let r=Ll(i.layout.layoutBox,o);if(n){const a=n(yl(r));this.hasMutatedConstraints=!!a,a&&(r=Ni(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=K(c=>{if(!Wt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Me(this.visualElement,e),s.start(dn(e,s,0,n,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){K(n=>{const{drag:s}=this.getProps();if(!Wt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-M(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};K(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=kl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),K(r=>{if(!Wt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(M(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Il.set(this.visualElement,this);const e=this.visualElement.current,n=At(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.read(s);const r=kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(K(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Le,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Wt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function jl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Nl extends Q{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Ol(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}const is=t=>(e,n)=>{t&&C.postRender(()=>t(e,n))};class Ul extends Q{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new Hi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:is(e),onStart:is(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=At(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=rs(t,e.target.x),s=rs(t,e.target.y);return`${n}% ${s}%`}},Kl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const o=J.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=M(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Wl extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Va($l),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Gt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Xi(t){const[e,n]=ks(),s=g.useContext(Be);return z.jsx(Wl,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(Vi),isPresent:e,safeToRemove:n})}const $l={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:Kl};function _l(t,e,n){const s=E(t)?t:dt(t);return s.start(dn("",s,e,n)),s.animation}function Gl(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Hl=(t,e)=>t.depth-e.depth;class zl{constructor(){this.children=[],this.isDirty=!1}add(e){Oe(this.children,e),this.isDirty=!0}remove(e){je(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hl),this.isDirty=!1,this.children.forEach(e)}}function Xl(t,e){const n=j.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(q(s),t(o-e))};return C.setup(s,!0),()=>q(s)}const Yi=["TopLeft","TopRight","BottomLeft","BottomRight"],Yl=Yi.length,os=t=>typeof t=="string"?parseFloat(t):t,as=t=>typeof t=="number"||S.test(t);function ql(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,Zl(s)),t.opacityExit=M(e.opacity??1,0,Jl(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<Yl;r++){const a=`border${Yi[r]}Radius`;let l=ls(e,a),u=ls(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||as(l)===as(u)?(t[a]=Math.max(M(os(l),os(u),s),0),(G.test(u)||G.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Zl=qi(0,.5,$s),Jl=qi(.5,.95,N);function qi(t,e,n){return s=>s<t?0:s>e?1:n(Ct(t,e,s))}function cs(t,e){t.min=e.min,t.max=e.max}function U(t,e){cs(t.x,e.x),cs(t.y,e.y)}function us(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hs(t,e,n,s,i){return t-=e,t=qt(t,1/n,s),i!==void 0&&(t=qt(t,1/i,s)),t}function Ql(t,e=0,n=1,s=.5,i,o=t,r=t){if(G.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=hs(t.min,e,n,a,i),t.max=hs(t.max,e,n,a,i)}function fs(t,e,[n,s,i],o,r){Ql(t,e[n],e[s],e[i],e.scale,o,r)}const tc=["x","scaleX","originX"],ec=["y","scaleY","originY"];function ds(t,e,n,s){fs(t.x,e,tc,n?n.x:void 0,s?s.x:void 0),fs(t.y,e,ec,n?n.y:void 0,s?s.y:void 0)}function ms(t){return t.translate===0&&t.scale===1}function Zi(t){return ms(t.x)&&ms(t.y)}function ps(t,e){return t.min===e.min&&t.max===e.max}function nc(t,e){return ps(t.x,e.x)&&ps(t.y,e.y)}function gs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ji(t,e){return gs(t.x,e.x)&&gs(t.y,e.y)}function ys(t){return I(t.x)/I(t.y)}function vs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sc{constructor(){this.members=[]}add(e){Oe(this.members,e),e.scheduleRender()}remove(e){if(je(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ic(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const fe=["","X","Y","Z"],rc={visibility:"hidden"},Ts=1e3;let oc=0;function de(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Qi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Qi(s)}function tr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=oc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 1,387 bytes, line 9
9{this.projectionUpdateScheduled=!1,this.nodes.forEach(cc),this.nodes.forEach(mc),this.nodes.forEach(pc),this.nodes.forEach(uc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ke),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Gl(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Xl(f,250),Gt.hasAnimatedSinceResize&&(Gt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ss))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:m})=>
vendor: 31,626 bytes, line 9
9{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||xc,{onLayoutAnimationStart:T,onLayoutAnimationComplete:p}=c.getProps(),P=!this.targetLayout||!Ji(this.targetLayout,m),v=!f&&d;if(this.options.layoutRoot||this.resumeFrom||v||f&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,v);const w={...tn(y,"layout"),onPlay:T,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Ss(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(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(gc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xs);return}this.isUpdating||this.nodes.forEach(fc),this.isUpdating=!1,this.nodes.forEach(dc),this.nodes.forEach(ac),this.nodes.forEach(lc),this.clearAllSnapshots();const a=j.now();k.delta=X(0,1e3/60,a-k.timestamp),k.timestamp=a,k.isProcessing=!0,ie.update.process(k),ie.preRender.process(k),ie.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hc),this.sharedNodes.forEach(yc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!I(this.snapshot.measuredBox.x)&&!I(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||et(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Sc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:r}=this.options;if(!r)return R();const a=r.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Pc))){const{scroll:c}=this.root;c&&(ut(a.x,c.offset.x),ut(a.y,c.offset.y))}return a}removeElementScroll(r){var l;const a=R();if(U(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&U(a,r),ut(a.x,h.offset.x),ut(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const l=R();U(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ht(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),et(c.latestValues)&&ht(l,c.latestValues)}return et(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(r){const a=R();U(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!et(u.latestValues))continue;Re(u.latestValues)&&u.updateSnapshot();const c=R(),h=u.measurePageBox();U(c,h),ds(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return et(this.latestValues)&&ds(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),Vt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Al(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),$i(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),Vt(this.relativeTargetOrigin,this.target,d.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Re(this.parent.latestValues)||Wi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===k.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;U(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;wl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=R());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(us(this.prevProjectionDelta.x,this.projectionDelta.x),us(this.prevProjectionDelta.y,this.projectionDelta.y)),wt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!vs(this.projectionDelta.x,this.prevProjectionDelta.x)||!vs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,T=this.getStack(),p=!T||T.members.length<=1,P=!!(y&&!p&&this.options.crossfade===!0&&!this.path.some(Tc));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const x=w/1e3;Ps(h.x,r.x,x),Ps(h.y,r.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vc(this.relativeTarget,this.relativeTargetOrigin,f,x),v&&nc(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=R()),U(v,this.relativeTarget)),y&&(this.animationValues=c,ql(c,u,this.latestValues,x,P,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Gt.hasAnimatedSinceResize=!0,this.currentAnimation=_l(0,Ts,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ts),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&er(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||R();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}U(a,l),ht(a,c),wt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new sc),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&de("z",r,u,this.animationValues);for(let c=0;c<fe.length;c++)de(`rotate${fe[c]}`,r,u,this.animationValues),de(`skew${fe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){if(!this.instance||this.isSVG)return;if(!this.isVisible)return rc;const a={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=_t(r==null?void 0:r.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none",a;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const d={};return this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=_t(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!et(this.latestValues)&&(d.transform=l?l({},""):"none",this.hasProjected=!1),d}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),a.transform=ic(this.projectionDeltaWithTransform,this.treeScale,c),l&&(a.transform=l(c,a.transform));const{x:h,y:f}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,u.animationValues?a.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:a.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const d in Et){if(c[d]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:T}=Et[d],p=a.transform==="none"?c[d]:m(c[d],u);if(y){const P=y.length;for(let v=0;v<P;v++)a[y[v]]=p}else T?this.options.visualElement.renderState.vars[d]=p:a[d]=p}return this.options.layoutId&&(a.pointerEvents=u===this?_t(r==null?void 0:r.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(xs),this.root.sharedNodes.clear()}}}function ac(t){t.updateLayout()}function lc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?K(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):er(o,e.layoutBox,s)&&K(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ct();wt(a,s,e.layoutBox);const l=ct();r?wt(l,t.applyTransform(i,!0),e.measuredBox):wt(l,s,e.layoutBox);const u=!Zi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=R();Vt(m,e.layoutBox,f.layoutBox);const y=R();Vt(y,s,d.layoutBox),Ji(m,y)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function cc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function uc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hc(t){t.clearSnapshot()}function xs(t){t.clearMeasurements()}function fc(t){t.isLayoutDirty=!1}function dc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ss(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mc(t){t.resolveTargetDelta()}function pc(t){t.calcProjection()}function gc(t){t.resetSkewAndRotation()}function yc(t){t.removeLeadSnapshot()}function Ps(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function bs(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function vc(t,e,n,s){bs(t.x,e.x,n.x,s),bs(t.y,e.y,n.y,s)}function Tc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const xc={duration:.45,ease:[.4,0,.1,1]},As=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ws=As("applewebkit/")&&!As("chrome/")?Math.round:N;function Vs(t){t.min=ws(t.min),t.max=ws(t.max)}function Sc(t){Vs(t.x),Vs(t.y)}function er(t,e,n){return t==="position"||t==="preserve-aspect"&&!bl(ys(e),ys(n),.2)}function Pc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const bc=tr({attachResizeListener:(t,e)=>kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),me={current:void 0},nr=tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!me.current){const t=new bc({});t.mount(window),t.setOptions({layoutScroll:!0}),me.current=t}return me.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ac={pan:{Feature:Ul},drag:{Feature:Nl,ProjectionNode:nr,MeasureLayout:Xi}};function Cs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&C.postRender(()=>o(e,jt(e)))}class wc extends Q{mount(){const{current:e}=this.node;e&&(this.unmount=ta(e,(n,s)=>(Cs(this.node,s,"Start"),i=>Cs(this.node,i,"End"))))}unmount(){}}class Vc extends Q{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=Bt(kt(this.node.current,"focus",()=>this.onFocus()),kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ms(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&C.postRender(()=>o(e,jt(e)))}class Cc extends Q{mount(){const{current:e}=this.node;e&&(this.unmount=ia(e,(n,s)=>(Ms(this.node,s,"Start"),(i,{success:o})=>Ms(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ke=new WeakMap,pe=new WeakMap,Mc=t=>{const e=ke.get(t.target);e&&e(t)},Dc=t=>{t.forEach(Mc)};function Rc({root:t,...e}){const n=t||document;pe.has(n)||pe.set(n,{});const s=pe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Dc,{root:t,...e})),s[i]}function Ec(t,e,n){const s=Rc(e);return ke.set(t,n),s.observe(t),()=>{ke.delete(t),s.unobserve(t)}}const Lc={some:0,all:1};class kc extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Lc[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Ec(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Fc(e,n))&&this.startObserver()}unmount(){}}function Fc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Bc={inView:{Feature:kc},tap:{Feature:Cc},focus:{Feature:Vc},hover:{Feature:wc}},Ic={layout:{ProjectionNode:nr,MeasureLayout:Xi}},Fe={current:null},sr={current:!1};function Oc(){if(sr.current=!0,!!Ie)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Fe.current=t.matches;t.addListener(e),e()}else Fe.current=!1}const jc=new WeakMap;function Nc(t,e,n){for(const s in e){const i=e[s],o=n[s];if(E(i))t.addValue(s,i);else if(E(o))t.addValue(s,dt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,dt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uc{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=j.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,C.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ee(n),this.isVariantNode=Ai(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&E(d)&&d.set(l[f],!1)}}mount(e){this.current=e,jc.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.forEach((n,s)=>this.bindToMotionValue(s,n)),sr.current||Oc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}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 mt){const n=mt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ds.length;s++){const i=Ds[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Nc(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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=dt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Fs(s)||Bs(s))?s=parseFloat(s):!ca(s)&&J.test(n)&&(s=yi(e,n)),this.setBaseTarget(e,E(s)?s.get():s)),E(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=hn(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!E(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ke),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ir extends Uc{constructor(){super(...arguments),this.KeyframeResolver=Zo}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function rr(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}function Kc(t){return window.getComputedStyle(t)}class Wc extends ir{constructor(){super(...arguments),this.type="html",this.renderInstance=rr}readValueFromInstance(e,n){if(yt.has(n))return go(e,n);{const s=Kc(e),i=(_e(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return _i(e,n)}build(e,n,s){ln(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return fn(e,n,s)}}const or=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $c(t,e,n,s){rr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(or.has(i)?i:an(i),e.attrs[i])}class _c extends ir{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=gi(n);return s&&s.default||0}return n=or.has(n)?n:an(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Fi(e,n,s)}build(e,n,s){Ri(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){$c(e,n,s,i)}mount(e){this.isSVGTag=Li(e.tagName),super.mount(e)}}const Gc=(t,e)=>un(t)?new _c(e):new Wc(e,{allowProjection:t!==g.Fragment}),Hc=$a({...pl,...Bc,...Ac,...Ic},Gc),Qc=ma(Hc);function ar(t){const e=rt(()=>dt(t)),{isStatic:n}=g.useContext(Ft);if(n){const[,s]=g.useState(t);g.useEffect(()=>e.on("change",s),[])}return e}function lr(t,e){const n=ar(e()),s=()=>n.set(e());return s(),Zt(()=>{const i=()=>C.preRender(s,!1,!0),o=t.map(r=>
9r.on("change",i));return()=>{o.forEach(r=>r()),q(s)}}),n}function tu(t,e={}){const{isStatic:n}=g.useContext(Ft),s=g.useRef(null),i=rt(()=>E(t)?t.get():t),o=rt(()=>typeof i=="string"?i.replace(/[\d.-]/g,""):void 0),r=ar(i),a=g.useRef(i),l=g.useRef(N),u=()=>{c(),s.current=new Je({keyframes:[Es(r.get()),Es(a.current)],velocity:r.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:l.current})},c=()=>{s.current&&s.current.stop()};return g.useInsertionEffect(()=>r.attach((h,f)=>n?f(h):(a.current=h,l.current=d=>f(Rs(d,o)),C.postRender(u),r.get()),c),[JSON.stringify(e)]),Zt(()=>{if(E(t))return t.on("change",h=>r.set(Rs(h,o)))},[r,o]),r}function Rs(t,e){return e?t+e:t}function Es(t){return typeof t=="number"?t:parseFloat(t)}function zc(t){bt.current=[],t();const e=lr(bt.current,t);return bt.current=void 0,e}function eu(t,e,n,s){if(typeof t=="function")return zc(t);const i=typeof e=="function"?e:ra(e,n,s);return Array.isArray(t)?Ls(t,i):Ls([t],([o])=>i(o))}function Ls(t,e){const n=rt(()=>[]);return lr(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}export{Zc as A,tu as a,eu as b,Qc as m,ar as u};

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.