vendor: 84,438 bytes, line 1
1import{r as P,j as f,L as Vt}from"./index-OdLAE8f_.js";const Xi=P.createContext({});function Ir(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Br=typeof window<"u",Fr=Br?P.useLayoutEffect:P.useEffect,sn=P.createContext(null);function rn(t,e){t.indexOf(e)===-1&&t.push(e)}function te(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const et=(t,e,n)=>n>e?e:n<t?t:n;let on=()=>{};const rt={},Yi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),qi=t=>typeof t=="object"&&t!==null,Zi=t=>/^0[^.\s]+$/u.test(t);function Ji(t){let e;return()=>(e===void 0&&(e=t()),e)}const _=t=>t,Ft=(...t)=>t.reduce((e,n)=>i=>n(e(i))),Nt=(t,e,n)=>{const i=e-t;return i?(n-t)/i:1};class an{constructor(){this.subscriptions=[]}add(e){return rn(this.subscriptions,e),()=>te(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const z=t=>t*1e3,$=t=>t/1e3,Qi=(t,e)=>e?t*(1e3/e):0,ts=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Or=1e-7,Ur=12;function Wr(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=ts(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>Or&&++a<Ur);return r}function Ot(t,e,n,i){if(t===e&&n===i)return _;const s=o=>Wr(o,0,1,t,n);return o=>o===0||o===1?o:ts(s(o),e,i)}const es=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ns=t=>e=>1-t(1-e),is=Ot(.33,1.53,.69,.99),ln=ns(is),ss=es(ln),rs=t=>t>=1?1:(t*=2)<1?.5*ln(t):.5*(2-Math.pow(2,-10*(t-1))),cn=t=>1-Math.sin(Math.acos(t)),os=ns(cn),as=es(cn),Gr=Ot(.42,0,1,1),zr=Ot(0,0,.58,1),ls=Ot(.42,0,.58,1),Kr=t=>Array.isArray(t)&&typeof t[0]!="number",cs=t=>Array.isArray(t)&&typeof t[0]=="number",$r={linear:_,easeIn:Gr,easeInOut:ls,easeOut:zr,circIn:cn,circInOut:as,circOut:os,backIn:ln,backInOut:ss,backOut:is,anticipate:rs},_r=t=>typeof t=="string",En=t=>{if(cs(t)){on(t.length===4);const[e,n,i,s]=t;return Ot(e,n,i,s)}else if(_r(t))return $r[t];return t},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Hr(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,d=!1)=>{const p=d&&s?n:i;return h&&r.add(l),p.add(l),l},cancel:l=>{i.delete(l),r.delete(l)},process:l=>{if(a=l,s){o=!0;return}s=!0;const h=n;n=i,i=h,n.forEach(c),n.clear(),s=!1,o&&(o=!1,u.process(l))}};return u}const Xr=40;function us(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Gt.reduce((w,T)=>(w[T]=Hr(o),w),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:d,render:m,postRender:p}=r,g=()=>{const w=rt.useManualTiming,T=w?s.timestamp:performance.now();n=!1,w||(s.delta=i?1e3/60:Math.max(Math.min(T-s.timestamp,Xr),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),c.process(s),u.process(s),l.process(s),h.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(g))},y=()=>{n=!0,i=!0,s.isProcessing||t(g)};return{schedule:Gt.reduce((w,T)=>{const C=r[T];return w[T]=(E,V=!1,A=!1)=>(n||y(),C.schedule(E,V,A)),w},{}),cancel:w=>{for(let T=0;T<Gt.length;T++)r[Gt[T]].cancel(w)},state:s,steps:r}}const{schedule:j,cancel:ot,state:F,steps:me}=us(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let _t;function Yr(){_t=void 0}const U={now:()=>(_t===void 0&&U.set(F.isProcessing||rt.useManualTiming?F.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(Yr)}},hs=t=>e=>typeof e=="string"&&e.startsWith(t),ds=hs("--"),qr=hs("var(--"),un=t=>qr(t)?Zr.test(t.split("/*")[0].trim()):!1,Zr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Lt={...St,transform:t=>et(0,1,t)},zt={...St,default:1},Et=t=>Math.round(t*1e5)/1e5,hn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jr(t){return t==null}const Qr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dn=(t,e)=>n=>!!(typeof n=="string"&&Qr.test(n)&&n.startsWith(t)||e&&!Jr(n)&&Object.prototype.hasOwnProperty.call(n,e)),fs=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match(hn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},to=t=>et(0,255,t),pe={...St,transform:t=>Math.round(to(t))},dt={test:dn("rgb","red"),parse:fs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+pe.transform(t)+", "+pe.transform(e)+", "+pe.transform(n)+", "+Et(Lt.transform(i))+")"};function eo(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const ke={test:dn("#"),parse:eo,transform:dt.transform},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=Ut("deg"),tt=Ut("%"),b=Ut("px"),no=Ut("vh"),io=Ut("vw"),kn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},vt={test:dn("hsl","hue"),parse:fs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+tt.transform(Et(e))+", "+tt.transform(Et(n))+", "+Et(Lt.transform(i))+")"},R={test:t=>dt.test(t)||ke.test(t)||vt.test(t),parse:t=>dt.test(t)?dt.parse(t):vt.test(t)?vt.parse(t):ke.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?dt.transform(t):vt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},so=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ro(t){return isNaN(t)&&typeof t=="string"&&(t.match(hn)?.length||0)+(t.match(so)?.length||0)>0}const ms="number",ps="color",oo="var",ao="var(",Rn="${}",lo=/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 Tt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(lo,c=>(R.test(c)?(i.color.push(o),s.push(ps),n.push(R.parse(c))):c.startsWith(ao)?(i.var.push(o),s.push(oo),n.push(c)):(i.number.push(o),s.push(ms),n.push(parseFloat(c))),++o,Rn)).split(Rn);return{values:n,split:a,indexes:i,types:s}}function co(t){return Tt(t).values}function gs({split:t,types:e}){const n=t.length;return i=>{let s="";for(let o=0;o<n;o++)if(s+=t[o],i[o]!==void 0){const r=e[o];r===ms?s+=Et(i[o]):r===ps?s+=R.transform(i[o]):s+=i[o]}return s}}function uo(t){return gs(Tt(t))}const ho=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t,fo=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:ho(t);function mo(t){const e=Tt(t);return gs(e)(e.values.map((i,s)=>fo(i,e.split[s])))}const Y={test:ro,parse:co,createTransformer:uo,getAnimatableNone:mo};function ge(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 po({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=ge(c,a,t+1/3),o=ge(c,a,t),r=ge(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function ee(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,ye=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},go=[ke,dt,vt],yo=t=>go.find(e=>e.test(t));function Nn(t){const e=yo(t);if(!e)return!1;let n=e.parse(t);return e===vt&&(n=po(n)),n}const Ln=(t,e)=>{const n=Nn(t),i=Nn(e);if(!n||!i)return ee(t,e);const s={...n};return o=>(s.red=ye(n.red,i.red,o),s.green=ye(n.green,i.green,o),s.blue=ye(n.blue,i.blue,o),s.alpha=M(n.alpha,i.alpha,o),dt.transform(s))},Re=new Set(["none","hidden"]);function xo(t,e){return Re.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function vo(t,e){return n=>M(t,e,n)}function fn(t){return typeof t=="number"?vo:typeof t=="string"?un(t)?ee:R.test(t)?Ln:To:Array.isArray(t)?ys:typeof t=="object"?R.test(t)?Ln:wo:ee}function ys(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>fn(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function wo(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=fn(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function bo(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}const To=(t,e)=>{const n=Y.createTransformer(e),i=Tt(t),s=Tt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Re.has(t)&&!s.values.length||Re.has(e)&&!i.values.length?xo(t,e):Ft(ys(bo(i,s),s.values),n):ee(t,e)};function xs(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):fn(t)(t,e)}const Po=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>j.update(e,n),stop:()=>ot(e),now:()=>F.isProcessing?F.timestamp:U.now()}},vs=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(t(o/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},ne=2e4;function mn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<ne;)e+=n,i=t.next(e);return e>=ne?1/0:e}function So(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(mn(i),ne);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:$(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};function Ne(t,e){return t*Math.sqrt(1-e*e)}const Ao=12;function Co(t,e,n){let i=n;for(let s=1;s<Ao;s++)i=i-t(i)/e(i);return i}const xe=.001;function Vo({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:i=D.mass}){let s,o,r=1-e;r=et(D.minDamping,D.maxDamping,r),t=et(D.minDuration,D.maxDuration,$(t)),r<1?(s=u=>{const l=u*r,h=l*t,d=l-n,m=Ne(u,r),p=Math.exp(-h);return xe-d/m*p},o=u=>{const h=u*r*t,d=h*n+n,m=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=Ne(Math.pow(u,2),r);return(-s(u)+xe>0?-1:1)*((d-m)*p)/g}):(s=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-xe+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Co(s,o,a);if(t=z(t),isNaN(c))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(c,2)*i;return{stiffness:u,damping:r*2*Math.sqrt(i*u),duration:t}}}const Mo=["duration","bounce"],jo=["stiffness","damping","mass"];function In(t,e){return e.some(n=>t[n]!==void 0)}function Eo(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!In(t,jo)&&In(t,Mo))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:D.mass,stiffness:s,damping:o}}else{const n=Vo({...t,velocity:0});e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function ie(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:d,isResolvedFromDuration:m}=Eo({...n,velocity:-$(n.velocity||0)}),p=d||0,g=u/(2*Math.sqrt(c*l)),y=r-o,x=$(Math.sqrt(c/l)),v=Math.abs(y)<5;i||(i=v?D.restSpeed.granular:D.restSpeed.default),s||(s=v?D.restDelta.granular:D.restDelta.default);let w,T,C,E,V,A;if(g<1)C=Ne(x,g),E=(p+g*x*y)/C,w=S=>{const k=Math.exp(-g*x*S);return r-k*(E*Math.sin(C*S)+y*Math.cos(C*S))},V=g*x*E+y*C,A=g*x*y-E*C,T=S=>Math.exp(-g*x*S)*(V*Math.sin(C*S)+A*Math.cos(C*S));else if(g===1){w=k=>r-Math.exp(-x*k)*(y+(p+x*y)*k);const S=p+x*y;T=k=>Math.exp(-x*k)*(x*S*k-p)}else{const S=x*Math.sqrt(g*g-1);w=q=>{const nt=Math.exp(-g*x*q),Z=Math.min(S*q,300);return r-nt*((p+g*x*y)*Math.sinh(Z)+S*y*Math.cosh(Z))/S};const k=(p+g*x*y)/S,G=g*x*k-y*S,lt=g*x*y-k*S;T=q=>{const nt=Math.exp(-g*x*q),Z=Math.min(S*q,300);return nt*(G*Math.sinh(Z)+lt*Math.cosh(Z))}}const L={calculatedDuration:m&&h||null,velocity:S=>z(T(S)),next:S=>{if(!m&&g<1){const G=Math.exp(-g*x*S),lt=Math.sin(C*S),q=Math.cos(C*S),nt=r-G*(E*lt+y*q),Z=z(G*(V*lt+A*q));return a.done=Math.abs(Z)<=i&&Math.abs(r-nt)<=s,a.value=a.done?r:nt,a}const k=w(S);if(m)a.done=S>=h;else{const G=z(T(S));a.done=Math.abs(G)<=i&&Math.abs(r-k)<=s}return a.value=a.done?r:k,a},toString:()=>{const S=Math.min(mn(L),ne),k=vs(G=>L.next(S*G).value,S,30);return S+"ms "+k},toTransition:()=>{}};return L}ie.applyToOptions=t=>{const e=So(t,100,ie);return t.ease=e.ease,t.duration=z(e.duration),t.type="keyframes",t};const Do=5;function ws(t,e,n){const i=Math.max(e-Do,0);return Qi(n-t(i),e-i)}function Le({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],d={done:!1,value:h},m=A=>a!==void 0&&A<a||c!==void 0&&A>c,p=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let g=n*e;const y=h+g,x=r===void 0?y:r(y);x!==y&&(g=x-h);const v=A=>-g*Math.exp(-A/i),w=A=>x+v(A),T=A=>{const L=v(A),S=w(A);d.done=Math.abs(L)<=u,d.value=d.done?x:S};let C,E;const V=A=>{m(d.value)&&(C=A,E=ie({keyframes:[d.value,p(d.value)],velocity:ws(w,A,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:l}))};return V(0),{calculatedDuration:null,next:A=>{let L=!1;return!E&&C===void 0&&(L=!0,T(A),V(A)),C!==void 0&&A>=C?E.next(A-C):(!L&&T(A),d)}}}function ko(t,e,n){const i=[],s=n||rt.mix||xs,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||_:e;a=Ft(c,a)}i.push(a)}return i}function Ro(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(on(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=ko(e,i,s),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const d=Nt(t[h],t[h+1],l);return a[h](d)};return n?l=>u(et(t[0],t[o-1],l)):u}function No(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Nt(0,e,i);t.push(M(n,1,s))}}function Lo(t){const e=[0];return No(e,t.length-1),e}function Io(t,e){return t.map(n=>n*e)}function Bo(t,e){return t.map(()=>e||ls).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=Kr(i)?i.map(En):En(i),o={done:!1,value:e[0]},r=Io(n&&n.length===e.length?n:Lo(e),t),a=Ro(r,e,{ease:Array.isArray(s)?s:Bo(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Fo=t=>t!==null;function ue(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Fo),a=s<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const Oo={decay:Le,inertia:Le,tween:Dt,keyframes:Dt,spring:ie};function bs(t){typeof t.type=="string"&&(t.type=Oo[t.type])}class pn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Uo=t=>t/100;class se extends pn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==U.now()&&this.tick(U.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;bs(e);const{type:n=Dt,repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||Dt;c!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=Ft(Uo,xs(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=mn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+s,this.totalDuration=this.resolvedDuration*(i+1)-s,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:i,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:d,repeatDelay:m,type:p,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>s;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,T=i;if(h){const A=Math.min(this.currentTime,s)/a;let L=Math.floor(A),S=A%1;!S&&A>=1&&(S=1),S===1&&L--,L=Math.min(L,h+1),L%2&&(d==="reverse"?(S=1-S,m&&(S-=m/a)):d==="mirror"&&(T=r)),w=et(0,1,S)*a}let C;v?(this.delayState.value=l[0],C=this.delayState):C=T.next(w),o&&!v&&(C.value=o(C.value));let{done:E}=C;!v&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return V&&p!==Le&&(C.value=ue(l,this.options,y,this.speed)),g&&g(C.value),V&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=z(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return ws(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(U.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Po,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();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=n??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(U.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),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()),this.driver?.stop(),e.observe(this)}}function Wo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Ie=t=>{const e=ft(Math.atan2(t[1],t[0]));return Be(e)},Go={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ie,rotateZ:Ie,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Be=t=>(t=t%360,t<0&&(t+=360),t),Bn=Ie,Fn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),On=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),zo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fn,scaleY:On,scale:t=>(Fn(t)+On(t))/2,rotateX:t=>Be(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Be(ft(Math.atan2(-t[2],t[0]))),rotateZ:Bn,rotate:Bn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Oe(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=zo,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Go,s=a}if(!s)return Fe(e);const o=i[e],r=s[1].split(",").map($o);return typeof o=="function"?o(r):r[o]}const Ko=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Oe(n,e)};function $o(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ct=new Set([...At,"pathRotation"]),Un=t=>t===St||t===b,_o=new Set(["x","y","z"]),Ho=At.filter(t=>!_o.has(t));function Xo(t){const e=[];return Ho.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const st={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-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})=>Oe(e,"x"),y:(t,{transform:e})=>Oe(e,"y")};st.translateX=st.x;st.translateY=st.y;const mt=new Set;let Ue=!1,We=!1,Ge=!1;function Ts(){if(We){const t=Array.from(mt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Xo(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}We=!1,Ue=!1,mt.forEach(t=>t.complete(Ge)),mt.clear()}function Ps(){mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(We=!0)})}function Yo(){Ge=!0,Ps(),Ts(),Ge=!1}class gn{constructor(e,n,i,s,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),Ue||(Ue=!0,j.read(Ps),j.resolveKeyframes(Ts))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const o=s?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const a=i.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),s&&o===void 0&&s.set(e[0])}Wo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),mt.delete(this)}cancel(){this.state==="scheduled"&&(mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qo=t=>t.startsWith("--");function Ss(t,e,n){qo(e)?t.style.setProperty(e,n):t.style[e]=n}const Zo={};function As(t,e){const n=Ji(t);return()=>Zo[e]??n()}const Jo=As(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Cs=As(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Wn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jt([0,.65,.55,1]),circOut:jt([.55,0,1,.45]),backIn:jt([.31,.01,.66,-.59]),backOut:jt([.33,1.53,.69,.99])};function Vs(t,e){if(t)return typeof t=="function"?Cs()?vs(t,e):"ease-out":cs(t)?jt(t):Array.isArray(t)?t.map(n=>Vs(n,e)||Wn.easeOut):Wn[t]}function Qo(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=Vs(a,s);Array.isArray(h)&&(l.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(l,d)}function Ms(t){return typeof t=="function"&&"applyToOptions"in t}function ta({type:t,...e}){return Ms(t)&&Cs()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class js extends pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,on(typeof e.type!="string");const u=ta(e);this.animation=Qo(n,i,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=ue(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Ss(n,i,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=z(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Jo()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),_):s(this)}}const Es={anticipate:rs,backInOut:ss,circInOut:as};function ea(t){return t in Es}function na(t){typeof t.ease=="string"&&ea(t.ease)&&(t.ease=Es[t.ease])}const ve=10;class ia extends js{constructor(e){na(e),bs(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new se({...r,autoplay:!1}),c=Math.max(ve,U.now()-this.startTime),u=et(0,ve,c-ve),l=a.sample(c).value,{name:h}=this.options;o&&h&&Ss(o,h,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const Gn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function sa(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 ra(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Gn(s,e),a=Gn(o,e);return!r||!a?!1:sa(t)||(n==="spring"||Ms(n))&&i}function ze(t){t.duration=0,t.type="keyframes"}const Ds=new Set(["opacity","clipPath","filter","transform"]),oa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function aa(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&oa.test(t[e]))return!0;return!1}const la=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ca=Ji(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ua(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return ca()&&n&&(Ds.has(n)||la.has(n)&&aa(a))&&(n!=="transform"||!l)&&!u&&!i&&s!=="mirror"&&o!==0&&r!=="inertia"}const ha=40;class da extends pn{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.now();const d={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},m=l?.KeyframeResolver||gn;this.keyframeResolver=new m(a,(p,g,y)=>this.onKeyframesResolved(p,g,d,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=i;this.resolvedAt=U.now();let h=!0;ra(e,o,r,a)||(h=!1,(rt.instantAnimations||!c)&&l?.(ue(e,i,n)),e[0]=e[e.length-1],ze(i),i.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>ha?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},p=h&&!u&&ua(m),g=m.motionValue?.owner?.current;let y;if(p)try{y=new ia({...m,element:g})}catch{y=new se(m)}else y=new se(m);y.finished.then(()=>{this.notifyFinished()}).catch(_),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Yo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ks(t,e,n,i=0,s=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*i;return typeof n=="function"?n(o,r):s===1?o*i:a-o*i}const zn=30,fa=t=>!isNaN(parseFloat(t));class ma{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=U.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fa(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 an);const i=this.events[e].add(n);return e==="change"?()=>{i(),j.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return Qi(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pt(t,e){return new ma(t,e)}function Rs(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function yn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Rs(n,t):n}const pa={type:"spring",stiffness:500,damping:25,restSpeed:10},ga=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ya={type:"keyframes",duration:.8},xa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},va=(t,{keyframes:e})=>e.length>2?ya:Ct.has(t)?t.startsWith("scale")?ga(e[1]):pa:xa,wa=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ba(t){for(const e in t)if(!wa.has(e))return!0;return!1}const xn=(t,e,n,i={},s,o)=>r=>{const a=yn(i,t)||{},c=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-z(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};ba(a)||Object.assign(l,va(t,l)),l.duration&&(l.duration=z(l.duration)),l.repeatDelay&&(l.repeatDelay=z(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(ze(l),l.delay===0&&(h=!0)),(rt.instantAnimations||rt.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,ze(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const d=ue(l.keyframes,a);if(d!==void 0){j.update(()=>{l.onUpdate(d),l.onComplete()});return}}return a.isSync?new se(l):new da(l)},Ta=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pa(t){const e=Ta.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function Ns(t,e,n=1){const[i,s]=Pa(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return Yi(r)?parseFloat(r):r}return un(s)?Ns(s,e,n+1):s}function Kn(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function vn(t,e,n,i){if(typeof e=="function"){const[s,o]=Kn(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=Kn(i);e=e(n!==void 0?n:t.custom,s,o)}return e}function pt(t,e,n){const i=t.getProps();return vn(i,e,n!==void 0?n:i.custom,t)}const Ls=new Set(["width","height","top","left","right","bottom",...At]),Ke=t=>Array.isArray(t);function Sa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function Aa(t){return Ke(t)?t[t.length-1]||0:t}function Ca(t,e){const n=pt(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=Aa(o[r]);Sa(t,r,a)}}const O=t=>!!(t&&t.getVelocity);function Va(t){return!!(O(t)&&t.add)}function $e(t,e){const n=t.getValue("willChange");if(Va(n))return n.add(e);if(!n&&rt.WillChange){const i=new rt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function wn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ma="framerAppearId",Is="data-"+wn(Ma);function Bs(t){return t.props[Is]}function ja({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Fs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Rs(o,c):c;const u=o?.reduceMotion,l=o?.skipAnimations;i&&(o=i);const h=[],d=s&&t.animationState&&t.animationState.getState()[s],m=o?.path;m&&m.animateVisualElement(t,a,o,n,h);for(const p in a){const g=t.getValue(p,t.latestValues[p]??null),y=a[p];if(y===void 0||d&&ja(d,p))continue;const x={delay:n,...yn(o||{},p)};l&&(x.skipAnimations=!0);const v=g.get();if(v!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===v&&!x.velocity){j.update(()=>g.set(y));continue}let w=!1;if(window.MotionHandoffAnimation){const E=Bs(t);if(E){const V=window.MotionHandoffAnimation(E,p,j);V!==null&&(x.startTime=V,w=!0)}}$e(t,p);const T=u??t.shouldReduceMotion;g.start(xn(p,g,y,T&&Ls.has(p)?{type:!1}:x,t,w));const C=g.animation;C&&h.push(C)}if(r){const p=()=>j.update(()=>{r&&Ca(t,r)});h.length?Promise.all(h).then(p):p()}return h}function _e(t,e,n={}){const i=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Fs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=s;return Ea(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Ea(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(_e(c,e,{...r,delay:n+(typeof i=="function"?0:i)+ks(t.variantChildren,c,i,s,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Da(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>_e(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=_e(t,e,n);else{const s=typeof e=="function"?pt(t,e,n.custom):e;i=Promise.all(Fs(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const ka={test:t=>t==="auto",parse:t=>t},Os=t=>e=>e.test(t),Us=[St,b,tt,it,io,no,ka],$n=t=>Us.find(Os(t));function Ra(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Zi(t):!0}const Na=new Set(["brightness","contrast","saturate","opacity"]);function La(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(hn)||[];if(!i)return t;const s=n.replace(i,"");let o=Na.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Ia=/\b([a-z-]*)\(.*?\)/gu,He={...Y,getAnimatableNone:t=>{const e=t.match(Ia);return e?e.map(La).join(" "):t}},Xe={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},_n={...St,transform:Math.round},Ba={rotate:it,pathRotation:it,rotateX:it,rotateY:it,rotateZ:it,scale:zt,scaleX:zt,scaleY:zt,scaleZ:zt,skew:it,skewX:it,skewY:it,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Lt,originX:kn,originY:kn,originZ:b},re={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...Ba,zIndex:_n,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:_n},Fa={...re,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:He,WebkitFilter:He,mask:Xe,WebkitMask:Xe},Ws=t=>Fa[t],Oa=new Set([He,Xe]);function Gs(t,e){let n=Ws(t);return Oa.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ua=new Set(["auto","none","0"]);function Wa(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Ua.has(o)&&Tt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=Gs(n,s)}class Ga extends gn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),un(h))){const d=Ns(h,n.current);d!==void 0&&(e[l]=d),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ls.has(i)||e.length!==2)return;const[s,o]=e,r=$n(s),a=$n(o),c=Dn(s),u=Dn(o);if(c!==u&&st[i]){this.needsMeasurement=!0;return}if(r!==a)if(Un(r)&&Un(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else st[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||Ra(e[s]))&&i.push(s);i.length&&Wa(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=st[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=st[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function zs(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const Ye=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function za(t){return qi(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:bn}=us(queueMicrotask,!1),X={x:!1,y:!1};function Ks(){return X.x||X.y}function Ka(t){return t==="x"||t==="y"?X[t]?null:(X[t]=!0,()=>{X[t]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function $s(t,e){const n=zs(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function $a(t){return!(t.pointerType==="touch"||Ks())}function _a(t,e,n={}){const[i,s,o]=$s(t,n);return i.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},h=y=>{u&&(u(y),u=void 0),l()},d=y=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),c&&(c=!1,h(y))},m=()=>{a=!0,window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",d,s)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},g=y=>{if(!$a(y))return;c=!1;const x=e(r,y);typeof x=="function"&&(u=x,r.addEventListener("pointerleave",p,s))};r.addEventListener("pointerenter",g,s),r.addEventListener("pointerdown",m,s)}),o}const _s=(t,e)=>e?t===e?!0:_s(t,e.parentElement):!1,Tn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ha=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xa(t){return Ha.has(t.tagName)||t.isContentEditable===!0}const Ya=new Set(["INPUT","SELECT","TEXTAREA"]);function qa(t){return Ya.has(t.tagName)||t.isContentEditable===!0}const Ht=new WeakSet;function Hn(t){return e=>{e.key==="Enter"&&t(e)}}function we(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Za=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Hn(()=>{if(Ht.has(n))return;we(n,"down");const s=Hn(()=>{we(n,"up")}),o=()=>we(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Xn(t){return Tn(t)&&!Ks()}const Yn=new WeakSet;function Ja(t,e,n={}){const[i,s,o]=$s(t,n),r=a=>{const c=a.currentTarget;if(!Xn(a)||Yn.has(a))return;Ht.add(c),n.stopPropagation&&Yn.add(a);const u=e(c,a),l=(m,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Ht.has(c)&&Ht.delete(c),Xn(m)&&typeof u=="function"&&u(m,{success:p})},h=m=>{l(m,c===window||c===document||n.useGlobalTarget||_s(c,m.target))},d=m=>{l(m,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",d,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),za(a)&&(a.addEventListener("focus",u=>Za(u,s)),!Xa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Pn(t){return qi(t)&&"ownerSVGElement"in t}const Xt=new WeakMap;let Yt;const Hs=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:Pn(i)&&"getBBox"in i?i.getBBox()[e]:i[n],Qa=Hs("inline","width","offsetWidth"),tl=Hs("block","height","offsetHeight");function el({target:t,borderBoxSize:e}){Xt.get(t)?.forEach(n=>{n(t,{get width(){return Qa(t,e)},get height(){return tl(t,e)}})})}function nl(t){t.forEach(el)}function il(){typeof ResizeObserver>"u"||(Yt=new ResizeObserver(nl))}function sl(t,e){Yt||il();const n=zs(t);return n.forEach(i=>{let s=Xt.get(i);s||(s=new Set,Xt.set(i,s)),s.add(e),Yt?.observe(i)}),()=>{n.forEach(i=>{const s=Xt.get(i);s?.delete(e),s?.size||Yt?.unobserve(i)})}}const qt=new Set;let wt;function rl(){wt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};qt.forEach(e=>e(t))},window.addEventListener("resize",wt)}function ol(t){return qt.add(t),wt||rl(),()=>{qt.delete(t),!qt.size&&typeof wt=="function"&&(window.removeEventListener("resize",wt),wt=void 0)}}function qn(t,e){return typeof t=="function"?ol(t):sl(t,e)}function al(t){return Pn(t)&&t.tagName==="svg"}const ll=[...Us,R,Y],cl=t=>ll.find(Os(t)),Zn=()=>({translate:0,scale:1,origin:0,originPoint:0}),bt=()=>({x:Zn(),y:Zn()}),Jn=()=>({min:0,max:0}),N=()=>({x:Jn(),y:Jn()}),ul=new WeakMap;function he(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Sn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],An=["initial",...Sn];function de(t){return he(t.animate)||An.some(e=>It(t[e]))}function Xs(t){return!!(de(t)||t.variants)}function hl(t,e,n){for(const i in e){const s=e[i],o=n[i];if(O(s))t.addValue(i,s);else if(O(o))t.addValue(i,Pt(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,Pt(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const qe={current:null},Ys={current:!1},dl=typeof window<"u";function fl(){if(Ys.current=!0,!!dl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qe.current=t.matches;t.addEventListener("change",e),e()}else qe.current=!1}const Qn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oe={};function qs(t){oe=t}function ml(){return oe}class pl{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=gn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=U.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,j.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=de(n),this.isVariantNode=Xs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in d){const p=d[m];u[m]!==void 0&&O(p)&&p.set(u[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,ul.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,i)=>this.bindToMotionValue(i,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ys.current||fl(),this.shouldReduceMotion=qe.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ot(this.notifyUpdate),ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ds.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,h=new js({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:z(l)}),d=r(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const i=Ct.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&j.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o&&o()})}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 oe){const n=oe[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(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):N()}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 i=0;i<Qn.length;i++){const s=Qn[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=hl(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 i=this.values.get(e);n!==i&&(i&&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 i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Yi(i)||Zi(i))?i=parseFloat(i):!cl(i)&&Y.test(n)&&(i=Gs(e,n)),this.setBaseTarget(e,O(i)?i.get():i)),O(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=vn(this.props,n,this.presenceContext?.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!O(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new an),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){bn.render(this.render)}}class Zs extends pl{constructor(){super(...arguments),this.KeyframeResolver=Ga}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;O(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Js({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function gl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function yl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function be(t){return t===void 0||t===1}function Ze({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function ht(t){return Ze(t)||Qs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qs(t){return ti(t.x)||ti(t.y)}function ti(t){return t&&t!=="0%"}function ae(t,e,n){const i=t-n,s=e*i;return n+s}function ei(t,e,n,i,s){return s!==void 0&&(t=ae(t,s,i)),ae(t,n,i)+e}function Je(t,e=0,n=1,i,s){t.min=ei(t.min,e,n,i,s),t.max=ei(t.max,e,n,i,s)}function tr(t,{x:e,y:n}){Je(t.x,e.translate,e.scale,e.originPoint),Je(t.y,n.translate,n.scale,n.originPoint)}const ni=.999999999999,ii=1.0000000000001;function xl(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Q(t.x,-o.scroll.offset.x),Q(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,tr(t,r)),i&&ht(o.latestValues)&&Zt(t,o.latestValues,o.layout?.layoutBox))}e.x<ii&&e.x>ni&&(e.x=1),e.y<ii&&e.y>ni&&(e.y=1)}function Q(t,e){t.min+=e,t.max+=e}function si(t,e,n,i,s=.5){const o=M(t.min,t.max,s);Je(t,e,n,o,i)}function ri(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Zt(t,e,n){const i=n??t;si(t.x,ri(e.x,i.x),e.scaleX,e.scale,e.originX),si(t.y,ri(e.y,i.y),e.scaleY,e.scale,e.originY)}function er(t,e){return Js(yl(t.getBoundingClientRect(),e))}function vl(t,e,n){const i=er(t,n),{scroll:s}=e;return s&&(Q(i.x,s.offset.x),Q(i.y,s.offset.y)),i}const wl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bl=At.length;function Tl(t,e,n){let i="",s=!0;for(let r=0;r<bl;r++){const a=At[r],c=t[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||n){const l=Ye(c,re[a]);if(!u){s=!1;const h=wl[a]||a;i+=`${h}(${l}) `}n&&(e[a]=l)}}const o=t.pathRotation;return o&&(s=!1,i+=`rotate(${Ye(o,re.pathRotation)}) `),i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Cn(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ct.has(c)){r=!0;continue}else if(ds(c)){s[c]=u;continue}else{const l=Ye(u,re[c]);c.startsWith("origin")?(a=!0,o[c]=l):i[c]=l}}if(e.transform||(r||n?i.transform=Tl(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;i.transformOrigin=`${c} ${u} ${l}`}}function nr(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];s?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function oi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=oi(t,e.target.x),i=oi(t,e.target.y);return`${n}% ${i}%`}},Pl={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Y.parse(t);if(s.length>5)return i;const o=Y.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=c;const u=M(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=u),typeof s[3+r]=="number"&&(s[3+r]/=u),o(s)}},Qe={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:Pl};function ir(t,{layout:e,layoutId:n}){return Ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Qe[t]||t==="opacity")}function Vn(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const r in i)(O(i[r])||s&&O(s[r])||ir(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}function Sl(t){return window.getComputedStyle(t)}class Al extends Zs{constructor(){super(...arguments),this.type="html",this.renderInstance=nr}readValueFromInstance(e,n){if(Ct.has(n))return this.projection?.isProjecting?Fe(n):Ko(e,n);{const i=Sl(e),s=(ds(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return er(e,n)}build(e,n,i){Cn(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Vn(e,n,i)}}const Cl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vl={offset:"strokeDashoffset",array:"strokeDasharray"};function Ml(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Cl:Vl;t[o.offset]=`${-i}`,t[o.array]=`${e} ${n}`}const jl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function sr(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(Cn(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const m of jl)h[m]!==void 0&&(d[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&Ml(h,s,o,r,!1)}const rr=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"]),or=t=>typeof t=="string"&&t.toLowerCase()==="svg";function El(t,e,n,i){nr(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(rr.has(s)?s:wn(s),e.attrs[s])}function ar(t,e,n){const i=Vn(t,e,n);for(const s in t)if(O(t[s])||O(e[s])){const o=At.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}class Dl extends Zs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ct.has(n)){const i=Ws(n);return i&&i.default||0}return n=rr.has(n)?n:wn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return ar(e,n,i)}build(e,n,i){sr(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){El(e,n,i,s)}mount(e){this.isSVGTag=or(e.tagName),super.mount(e)}}const kl=An.length;function lr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?lr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<kl;n++){const i=An[n],s=t.props[i];(It(s)||s===!1)&&(e[i]=s)}return e}function cr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Rl=[...Sn].reverse(),Nl=Sn.length;function Ll(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Da(t,n,i)))}function Il(t){let e=Ll(t),n=ai(),i=!0,s=!1;const o=u=>(l,h)=>{const d=pt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...g}=d;l={...l,...g,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,h=lr(t.parent)||{},d=[],m=new Set;let p={},g=1/0;for(let x=0;x<Nl;x++){const v=Rl[x],w=n[v],T=l[v]!==void 0?l[v]:h[v],C=It(T),E=v===u?w.isActive:null;E===!1&&(g=x);let V=T===h[v]&&T!==l[v]&&C;if(V&&(i||s)&&t.manuallyAnimateOnMount&&(V=!1),w.protectedKeys={...p},!w.isActive&&E===null||!T&&!w.prevProp||he(T)||typeof T=="boolean")continue;if(v==="exit"&&w.isActive&&E!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const A=Bl(w.prevProp,T);let L=A||v===u&&w.isActive&&!V&&C||x>g&&C,S=!1;const k=Array.isArray(T)?T:[T];let G=k.reduce(o(v),{});E===!1&&(G={});const{prevResolvedValues:lt={}}=w,q={...lt,...G},nt=I=>{L=!0,m.has(I)&&(S=!0,m.delete(I)),w.needsAnimating[I]=!0;const K=t.getValue(I);K&&(K.liveStyle=!1)};for(const I in q){const K=G[I],ct=lt[I];if(p.hasOwnProperty(I))continue;let yt=!1;Ke(K)&&Ke(ct)?yt=!cr(K,ct)||A:yt=K!==ct,yt?K!=null?nt(I):m.add(I):K!==void 0&&m.has(I)?nt(I):w.protectedKeys[I]=!0}w.prevProp=T,w.prevResolvedValues=G,w.isActive&&(p={...p,...G}),(i||s)&&t.blockInitialAnimation&&(L=!1);const Z=V&&A;L&&(!Z||S)&&d.push(...k.map(I=>{const K={type:v};if(typeof I=="string"&&(i||s)&&!Z&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,yt=pt(ct,I);if(ct.enteringChildren&&yt){const{delayChildren:Lr}=yt.transition||{};K.delay=ks(ct.enteringChildren,t,Lr)}}return{animation:I,options:K}}))}if(m.size){const x={};if(typeof l.initial!="boolean"){const v=pt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(x.transition=v.transition)}m.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),x[v]=w??null}),d.push({animation:x})}let y=!!d.length;return i&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,s=!1,y?e(d):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const h=a(u);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=ai(),s=!0}}}function Bl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!cr(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ai(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function tn(t,e){t.min=e.min,t.max=e.max}function H(t,e){tn(t.x,e.x),tn(t.y,e.y)}function li(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const ur=1e-4,Fl=1-ur,Ol=1+ur,hr=.01,Ul=0-hr,Wl=0+hr;function W(t){return t.max-t.min}function Gl(t,e,n){return Math.abs(t-e)<=n}function ci(t,e,n,i=.5){t.origin=i,t.originPoint=M(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Fl&&t.scale<=Ol||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ul&&t.translate<=Wl||isNaN(t.translate))&&(t.translate=0)}function kt(t,e,n,i){ci(t.x,e.x,n.x,i?i.originX:void 0),ci(t.y,e.y,n.y,i?i.originY:void 0)}function ui(t,e,n,i=0){const s=i?M(n.min,n.max,i):n.min;t.min=s+e.min,t.max=t.min+W(e)}function zl(t,e,n,i){ui(t.x,e.x,n.x,i?.x),ui(t.y,e.y,n.y,i?.y)}function hi(t,e,n,i=0){const s=i?M(n.min,n.max,i):n.min;t.min=e.min-s,t.max=t.min+W(e)}function le(t,e,n,i){hi(t.x,e.x,n.x,i?.x),hi(t.y,e.y,n.y,i?.y)}function di(t,e,n,i,s){return t-=e,t=ae(t,1/n,i),s!==void 0&&(t=ae(t,1/s,i)),t}function Kl(t,e=0,n=1,i=.5,s,o=t,r=t){if(tt.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,i);t===o&&(a-=e),t.min=di(t.min,e,n,a,s),t.max=di(t.max,e,n,a,s)}function fi(t,e,[n,i,s],o,r){Kl(t,e[n],e[i],e[s],e.scale,o,r)}const $l=["x","scaleX","originX"],_l=["y","scaleY","originY"];function mi(t,e,n,i){fi(t.x,e,$l,n?n.x:void 0,i?i.x:void 0),fi(t.y,e,_l,n?n.y:void 0,i?i.y:void 0)}function pi(t){return t.translate===0&&t.scale===1}function dr(t){return pi(t.x)&&pi(t.y)}function gi(t,e){return t.min===e.min&&t.max===e.max}function Hl(t,e){return gi(t.x,e.x)&&gi(t.y,e.y)}function yi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function fr(t,e){return yi(t.x,e.x)&&yi(t.y,e.y)}function xi(t){return W(t.x)/W(t.y)}function vi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function J(t){return[t("x"),t("y")]}function Xl(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,pathRotation:h,rotateX:d,rotateY:m,skewX:p,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),l&&(i+=`rotate(${l}deg) `),h&&(i+=`rotate(${h}deg) `),d&&(i+=`rotateX(${d}deg) `),m&&(i+=`rotateY(${m}deg) `),p&&(i+=`skewX(${p}deg) `),g&&(i+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(i+=`scale(${a}, ${c})`),i||"none"}const mr=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Yl=mr.length,wi=t=>typeof t=="string"?parseFloat(t):t,bi=t=>typeof t=="number"||b.test(t);function ql(t,e,n,i,s,o){s?(t.opacity=M(0,n.opacity??1,Zl(i)),t.opacityExit=M(e.opacity??1,0,Jl(i))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,i));for(let r=0;r<Yl;r++){const a=mr[r];let c=Ti(e,a),u=Ti(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||bi(c)===bi(u)?(t[a]=Math.max(M(wi(c),wi(u),i),0),(tt.test(u)||tt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,i))}function Ti(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Zl=pr(0,.5,os),Jl=pr(.5,.95,_);function pr(t,e,n){return i=>i<t?0:i>e?1:n(Nt(t,e,i))}function Ql(t,e,n){const i=O(t)?t:Pt(t);return i.start(xn("",i,e,n)),i.animation}function Bt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const tc=(t,e)=>t.depth-e.depth;class ec{constructor(){this.children=[],this.isDirty=!1}add(e){rn(this.children,e),this.isDirty=!0}remove(e){te(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tc),this.isDirty=!1,this.children.forEach(e)}}function nc(t,e){const n=U.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(ot(i),t(o-e))};return j.setup(i,!0),()=>ot(i)}function Jt(t){return O(t)?t.get():t}class ic{constructor(){this.members=[]}add(e){rn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(te(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(te(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){for(let n=this.members.indexOf(e)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:o}=e.options;(s===void 0||s!==o)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Te=["","X","Y","Z"],sc=1e3;let rc=0;function Pe(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function gr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bs(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&gr(i)}function yr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e?.()){this.id=rc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(lc),this.nodes.forEach(mc),this.nodes.forEach(pc),this.nodes.forEach(cc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ec)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new an),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Pn(r)&&!al(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const d=()=>this.root.updateBlockedByResize=!1;j.read(()=>{h=window.innerWidth}),t(r,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,l&&l(),l=nc(d,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ai)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||wc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!fr(this.targetLayout,m),v=!h&&d;if(this.options.layoutRoot||this.resumeFrom||v||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...yn(p,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(l,v,w.path)}else h||Ai(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,this.eventHandlers.clear(),ot(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&&gr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)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()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(hc),this.nodes.forEach(Pi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Si);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dc),this.nodes.forEach(fc),this.nodes.forEach(oc),this.nodes.forEach(ac)):this.nodes.forEach(Si),this.clearAllSnapshots();const a=U.now();F.delta=et(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,me.update.process(F),me.preRender.process(F),me.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uc),this.sharedNodes.forEach(yc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=N()),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&&this.instance){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!dr(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||ht(this.latestValues)||l)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),bc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return N();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tc))){const{scroll:u}=this.root;u&&(Q(a.x,u.offset.x),Q(a.y,u.offset.y))}return a}removeElementScroll(r){const a=N();if(H(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&H(a,r),Q(a.x,l.offset.x),Q(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||N();H(u,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Q(u.x,-h.scroll.offset.x),Q(u.y,-h.scroll.offset.y)),ht(h.latestValues)&&Zt(u,h.latestValues,h.layout?.layoutBox)}return ht(this.latestValues)&&Zt(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=N();H(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ht(u.latestValues))continue;let l;u.instance&&(Ze(u.latestValues)&&u.updateSnapshot(),l=N(),H(l,u.measurePageBox())),mi(a,u.latestValues,u.snapshot?.layoutBox,l)}return ht(this.latestValues)&&mi(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!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):H(this.target,this.layout.layoutBox),tr(this.target,this.targetDelta)):H(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ze(this.parent.latestValues)||Qs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),le(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=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||l))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;xl(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=N());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(li(this.prevProjectionDelta.x,this.projectionDelta.x),li(this.prevProjectionDelta.y,this.projectionDelta.y)),kt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||
1!vi(this.projectionDelta.x,this.prevProjectionDelta.x)||!vi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bt(),this.projectionDelta=bt(),this.projectionDeltaWithTransform=bt()}setAnimationOrigin(r,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},h={...this.latestValues},d=bt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=N(),p=u?u.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,x=this.getStack(),v=!x||x.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(vc));this.animationProgress=0;let T;const C=c?.interpolateProjection(r);this.mixTargetDelta=E=>{const V=E/1e3,A=C?.(V);A?(d.x.translate=A.x,d.x.scale=M(r.x.scale,1,V),d.x.origin=r.x.origin,d.x.originPoint=r.x.originPoint,d.y.translate=A.y,d.y.scale=M(r.y.scale,1,V),d.y.origin=r.y.origin,d.y.originPoint=r.y.originPoint):(Ci(d.x,r.x,V),Ci(d.y,r.y,V)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),xc(this.relativeTarget,this.relativeTargetOrigin,m,V),T&&Hl(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=N()),H(T,this.relativeTarget)),y&&(this.animationValues=h,ql(h,l,this.latestValues,V,w,v)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Ql(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,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(sc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&xr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||N();const h=W(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const d=W(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+d}H(a,c),Zt(a,l),kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ic),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(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;
vendor: 28,782 bytes, line 1
1return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),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:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Pe("z",r,u,this.animationValues);for(let l=0;l<Te.length;l++)Pe(`rotate${Te[l]}`,r,u,this.animationValues),Pe(`skew${Te[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Jt(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Jt(a?.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Xl(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:d,y:m}=this.projectionDelta;r.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in Qe){if(l[p]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=Qe[p],v=h==="none"?l[p]:g(l[p],u);if(y){const w=y.length;for(let T=0;T<w;T++)r[y[T]]=v}else x?this.options.visualElement.renderState.vars[p]=v:r[p]=v}this.options.layoutId&&(r.pointerEvents=u===this?Jt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Pi),this.root.sharedNodes.clear()}}}function oc(t){t.updateLayout()}function ac(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if(s==="size")J(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],d=W(h);h.min=n[l].min,h.max=h.min+d});else if(s==="x"||s==="y"){const l=s==="x"?"y":"x";tn(o?e.measuredBox[l]:e.layoutBox[l],n[l])}else xr(s,e.layoutBox,n)&&J(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],d=W(n[l]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+d)});const r=bt();kt(r,n,e.layoutBox);const a=bt();o?kt(a,t.applyTransform(i,!0),e.measuredBox):kt(a,n,e.layoutBox);const c=!dr(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:d}=l;if(h&&d){const m=t.options.layoutAnchor||void 0,p=N();le(p,e.layoutBox,h.layoutBox,m);const g=N();le(g,n,d.layoutBox,m),fr(p,g)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function lc(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 cc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function uc(t){t.clearSnapshot()}function Pi(t){t.clearMeasurements()}function hc(t){t.isLayoutDirty=!0,t.updateLayout()}function Si(t){t.isLayoutDirty=!1}function dc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function fc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ai(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 Ci(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 Vi(t,e,n,i){t.min=M(e.min,n.min,i),t.max=M(e.max,n.max,i)}function xc(t,e,n,i){Vi(t.x,e.x,n.x,i),Vi(t.y,e.y,n.y,i)}function vc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const wc={duration:.45,ease:[.4,0,.1,1]},Mi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ji=Mi("applewebkit/")&&!Mi("chrome/")?Math.round:_;function Ei(t){t.min=ji(t.min),t.max=ji(t.max)}function bc(t){Ei(t.x),Ei(t.y)}function xr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Gl(xi(e),xi(n),.2)}function Tc(t){return t!==t.root&&t.scroll?.wasRoot}const Pc=yr({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Se={current:void 0},vr=yr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Se.current){const t=new Pc({});t.mount(window),t.setOptions({layoutScroll:!0}),Se.current=t}return Se.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wr=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Sc(t=!0){const e=P.useContext(sn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=P.useId();P.useEffect(()=>{if(t)return s(o)},[t]);const r=P.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const br=P.createContext({strict:!1}),Di={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"]};let ki=!1;function Ac(){if(ki)return;const t={};for(const e in Di)t[e]={isEnabled:n=>Di[e].some(i=>!!n[i])};qs(t),ki=!0}function Tr(){return Ac(),ml()}function Cc(t){const e=Tr();for(const n in t)e[n]={...e[n],...t[n]};qs(e)}const Vc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ce(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Vc.has(t)}let Pr=t=>!ce(t);function Mc(t){typeof t=="function"&&(Pr=e=>e.startsWith("on")?!ce(e):t(e))}try{Mc(require("@emotion/is-prop-valid").default)}catch{}function jc(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||O(t[s])||(Pr(s)||n===!0&&ce(s)||!e&&!ce(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const fe=P.createContext({});function Ec(t,e){if(de(t)){const{initial:n,animate:i}=t;return{initial:n===!1||It(n)?n:void 0,animate:It(i)?i:void 0}}return t.inherit!==!1?e:{}}function Dc(t){const{initial:e,animate:n}=Ec(t,P.useContext(fe));return P.useMemo(()=>({initial:e,animate:n}),[Ri(e),Ri(n)])}function Ri(t){return Array.isArray(t)?t.join(" "):t}const Mn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sr(t,e,n){for(const i in e)!O(e[i])&&!ir(i,n)&&(t[i]=e[i])}function kc({transformTemplate:t},e){return P.useMemo(()=>{const n=Mn();return Cn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Rc(t,e){const n=t.style||{},i={};return Sr(i,n,t),Object.assign(i,kc(t,e)),i}function Nc(t,e){const n={},i=Rc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const Ar=()=>({...Mn(),attrs:{}});function Lc(t,e,n,i){const s=P.useMemo(()=>{const o=Ar();return sr(o,e,or(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Sr(o,t.style,t),s.style={...o,...s.style}}return s}const Ic=["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 jn(t){return typeof t!="string"||t.includes("-")?!1:!!(Ic.indexOf(t)>-1||/[A-Z]/u.test(t))}function Bc(t,e,n,{latestValues:i},s,o=!1,r){const c=(r??jn(t)?Lc:Nc)(e,i,s,t),u=jc(e,typeof t=="string",o),l=t!==P.Fragment?{...u,...c,ref:n}:{},{children:h}=e,d=P.useMemo(()=>O(h)?h.get():h,[h]);return P.createElement(t,{...l,children:d})}function Fc({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Oc(n,i,s,t),renderState:e()}}function Oc(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=Jt(o[d]);let{initial:r,animate:a}=t;const c=de(t),u=Xs(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!he(h)){const d=Array.isArray(h)?h:[h];for(let m=0;m<d.length;m++){const p=vn(t,d[m]);if(p){const{transitionEnd:g,transition:y,...x}=p;for(const v in x){let w=x[v];if(Array.isArray(w)){const T=l?w.length-1:0;w=w[T]}w!==null&&(s[v]=w)}for(const v in g)s[v]=g[v]}}}return s}const Cr=t=>(e,n)=>{const i=P.useContext(fe),s=P.useContext(sn),o=()=>Fc(t,e,i,s);return n?o():Ir(o)},Uc=Cr({scrapeMotionValuesFromProps:Vn,createRenderState:Mn}),Wc=Cr({scrapeMotionValuesFromProps:ar,createRenderState:Ar}),Gc=Symbol.for("motionComponentSymbol");function zc(t,e,n){const i=P.useRef(n);P.useInsertionEffect(()=>{i.current=n});const s=P.useRef(null);return P.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=i.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(s.current=a)}else s.current?(s.current(),s.current=null):r(o);else r&&(r.current=o)},[e])}const Vr=P.createContext({});function xt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Kc(t,e,n,i,s,o){const{visualElement:r}=P.useContext(fe),a=P.useContext(br),c=P.useContext(sn),u=P.useContext(wr),l=u.reducedMotion,h=u.skipAnimations,d=P.useRef(null),m=P.useRef(!1);i=i||a.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:o}),m.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,g=P.useContext(Vr);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&$c(d.current,n,s,g);const y=P.useRef(!1);P.useInsertionEffect(()=>{p&&y.current&&p.update(n,c)});const x=n[Is],v=P.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Fr(()=>{m.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),P.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),v.current=!1),p.enteringChildren=void 0)}),p}function $c(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Mr(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&xt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function Mr(t){if(t)return t.options.allowProjection!==!1?t.projection:Mr(t.parent)}function Ae(t,{forwardMotionProps:e=!1,type:n}={},i,s){i&&Cc(i);const o=n?n==="svg":jn(t),r=o?Wc:Uc;function a(u,l){let h;const d={...P.useContext(wr),...u,layoutId:_c(u)},{isStatic:m}=d,p=Dc(u),g=r(u,m);if(!m&&typeof window<"u"){Hc();const y=Xc(d);h=y.MeasureLayout,p.visualElement=Kc(t,g,d,s,y.ProjectionNode,o)}return f.jsxs(fe.Provider,{value:p,children:[h&&p.visualElement?f.jsx(h,{visualElement:p.visualElement,...d}):null,Bc(t,u,zc(g,p.visualElement,l),g,m,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=P.forwardRef(a);return c[Gc]=t,c}function _c({layoutId:t}){const e=P.useContext(Xi).id;return e&&t!==void 0?e+"-"+t:t}function Hc(t,e){P.useContext(br).strict}function Xc(t){const e=Tr(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Yc(t,e){if(typeof Proxy>"u")return Ae;const n=new Map,i=(o,r)=>Ae(o,r,t,e),s=(o,r)=>i(o,r);return new Proxy(s,{get:(o,r)=>r==="create"?i:(n.has(r)||n.set(r,Ae(r,void 0,t,e)),n.get(r))})}const qc=(t,e)=>e.isSVG??jn(t)?new Dl(e):new Al(e,{allowProjection:t!==P.Fragment});class Zc extends at{constructor(e){super(e),e.animationState||(e.animationState=Il(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();he(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Jc=0;class Qc extends at{constructor(){super(...arguments),this.id=Jc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const a=pt(this.node,o,r);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const h in l)this.node.getValue(h)?.jump(l[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const tu={animation:{Feature:Zc},exit:{Feature:Qc}};function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}const eu=t=>e=>Tn(e)&&t(e,Wt(e));function Rt(t,e,n,i){return Bt(t,e,eu(n),i)}const jr=({current:t})=>t?t.ownerDocument.defaultView:null,Ni=(t,e)=>Math.abs(t-e);function nu(t,e){const n=Ni(t.x,e.x),i=Ni(t.y,e.y);return Math.sqrt(n**2+i**2)}const Li=new Set(["auto","scroll"]);class Er{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Kt(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Ce(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=nu(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:y}=m,{timestamp:x}=F;this.history.push({...y,timestamp:x});const{onStart:v,onMove:w}=this.handlers;p||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=Kt(p,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ce(m.type==="pointercancel"?this.lastMoveEventInfo:Kt(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,v),y&&y(m,v)},!Tn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const c=Wt(e),u=Kt(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=F;this.history=[{...l,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Ce(u,this.history)),this.removeListeners=Ft(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(Li.has(i.overflowX)||Li.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:s.x-n.x,y:s.y-n.y};o.x===0&&o.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,s),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function Kt(t,e){return e?{point:e(t.point)}:t}function Ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ce({point:t},e){return{point:t,delta:Ii(t,Dr(e)),offset:Ii(t,iu(e)),velocity:su(e,.1)}}function iu(t){return t[0]}function Dr(t){return t[t.length-1]}function su(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Dr(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>z(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>z(e)*2&&(i=t[1]);const o=$(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ru(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?M(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?M(n,t,i.max):Math.min(t,n)),t}function Bi(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 ou(t,{top:e,left:n,bottom:i,right:s}){return{x:Bi(t.x,n,s),y:Bi(t.y,e,i)}}function Fi(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function au(t,e){return{x:Fi(t.x,e.x),y:Fi(t.y,e.y)}}function lu(t,e){let n=.5;const i=W(t),s=W(e);return s>i?n=Nt(e.min,e.max-i,t.min):i>s&&(n=Nt(t.min,t.max-s,e.min)),et(0,1,n)}function cu(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 en=.35;function uu(t=en){return t===!1?t=0:t===!0&&(t=en),{x:Oi(t,"left","right"),y:Oi(t,"top","bottom")}}function Oi(t,e,n){return{min:Ui(t,e),max:Ui(t,n)}}function Ui(t,e){return typeof t=="number"?t:t[e]||0}const hu=new WeakMap;class du{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=N(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(Wt(h).point),this.stopAnimation()},r=(h,d)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ka(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(x=>{let v=this.getAxisMotionValue(x).get()||0;if(tt.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[x];T&&(v=W(T)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&j.update(()=>g(h,d),!1,!0),$e(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=mu(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&j.update(()=>y(h,d),!1,!0)},c=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Er(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:i,contextWindow:jr(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&j.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!$t(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=ru(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&xt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=ou(i.layoutBox,e):this.constraints=!1,this.elastic=uu(n),s!==this.constraints&&!xt(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&J(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=cu(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const o=vl(i,s.root,this.visualElement.getTransformPagePoint());let r=au(s.layout.layoutBox,o);if(n){const a=n(gl(r));this.hasMutatedConstraints=!!a,a&&(r=Js(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=J(l=>{if(!$t(l,n,this.currentDirection))return;let h=c&&c[l]||{};(r===!0||r===l)&&(h={min:0,max:0});const d=s?200:1e6,m=s?40:1e7,p={type:"inertia",velocity:i?e[l]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return $e(this.visualElement,e),i.start(xn(e,i,0,n,this.visualElement,!1))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){J(n=>{const{drag:i}=this.getProps();if(!$t(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-M(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!xt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};J(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=lu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),J(r=>{if(!$t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(M(c,u,s[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hu.set(this.visualElement,this);const e=this.visualElement.current,n=Rt(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),d=u.target,m=d!==e&&qa(d);l&&h&&!m&&this.start(u)});let i;const s=()=>{const{dragConstraints:u}=this.getProps();xt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),i||(i=fu(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),j.read(s);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(J(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=u[h].translate,d.set(d.get()+u[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),c&&c(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=en,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Wi(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function fu(t,e,n){const i=qn(t,Wi(n)),s=qn(e,Wi(n));return()=>{i(),s()}}function $t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function mu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pu extends at{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new du(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ve=t=>
1(e,n)=>{t&&j.update(()=>t(e,n),!1,!0)};class gu extends at{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Er(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ve(e),onStart:Ve(n),onMove:Ve(i),onEnd:(o,r)=>{delete this.session,s&&j.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=Rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Me=!1;class yu extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),Me&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Me=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||j.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),bn.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;Me=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kr(t){const[e,n]=Sc(),i=P.useContext(Xi);return f.jsx(yu,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Vr),isPresent:e,safeToRemove:n})}const xu={pan:{Feature:gu},drag:{Feature:pu,ProjectionNode:vr,MeasureLayout:kr}};function Gi(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=i[s];o&&j.postRender(()=>o(e,Wt(e)))}class vu extends at{mount(){const{current:e}=this.node;e&&(this.unmount=_a(e,(n,i)=>(Gi(this.node,i,"Start"),s=>Gi(this.node,s,"End"))))}unmount(){}}class wu extends at{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=Ft(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zi(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=i[s];o&&j.postRender(()=>o(e,Wt(e)))}class bu extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=Ja(e,(s,o)=>(zi(this.node,o,"Start"),(r,{success:a})=>zi(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const nn=new WeakMap,je=new WeakMap,Tu=t=>{const e=nn.get(t.target);e&&e(t)},Pu=t=>{t.forEach(Tu)};function Su({root:t,...e}){const n=t||document;je.has(n)||je.set(n,{});const i=je.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Pu,{root:t,...e})),i[s]}function Au(t,e,n){const i=Su(e);return nn.set(t,n),i.observe(t),()=>{nn.delete(t),i.unobserve(t)}}const Cu={some:0,all:1};class Vu extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Cu[s]},a=c=>{const{isIntersecting:u}=c;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:l,onViewportLeave:h}=this.node.getProps(),d=u?l:h;d&&d(c)};this.stopObserver=Au(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(Mu(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Mu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ju={inView:{Feature:Vu},tap:{Feature:bu},focus:{Feature:wu},hover:{Feature:vu}},Eu={layout:{ProjectionNode:vr,MeasureLayout:kr}},Du={...tu,...ju,...xu,...Eu},B=Yc(Du,qc);const Rr=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();const ku=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ru=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,i)=>i?i.toUpperCase():n.toLowerCase());const Ki=t=>{const e=Ru(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Nu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Lu=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const Iu=P.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:r,...a},c)=>P.createElement("svg",{ref:c,...Nu,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:Rr("lucide",s),...!o&&!Lu(a)&&{"aria-hidden":"true"},...a},[...r.map(([u,l])=>P.createElement(u,l)),...Array.isArray(o)?o:[o]]));const gt=(t,e)=>{const n=P.forwardRef(({className:i,...s},o)=>P.createElement(Iu,{ref:o,iconNode:e,className:Rr(`lucide-${ku(Ki(t))}`,`lucide-${t}`,i),...s}));return n.displayName=Ki(t),n};const Bu=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],$i=gt("arrow-up-right",Bu);const Fu=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Nr=gt("chevron-right",Fu);const Ou=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Uu=gt("mail",Ou);const Wu=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Gu=gt("menu",Wu);const zu=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Ku=gt("quote",zu);const $u=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_u=gt("search",$u);const Hu=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594
11.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Xu=gt("sparkles",Hu),_i={backgroundImage:"linear-gradient(to right, #091020 0%, #0B2551 12.5%, #A4F4FD 32.5%, #00d2ff 50%, #0B2551 67.5%, #091020 87.5%, #091020 100%)",backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent",WebkitTextFillColor:"transparent",filter:"url(#aic-noise)"};function Hi({className:t="w-8 h-8"}){return f.jsx("svg",{viewBox:"0 0 256 256",className:t,fill:"currentColor","aria-hidden":!0,children:f.jsx("path",{d:"M 0 128 C 70.692 128 128 185.308 128 256 L 64 256 C 64 220.654 35.346 192 0 192 Z M 256 192 C 220.654 192 192 220.654 192 256 L 128 256 C 128 185.308 185.308 128 256 128 Z M 128 0 C 128 70.692 70.692 128 0 128 L 0 64 C 35.346 64 64 35.346 64 0 Z M 192 0 C 192 35.346 220.654 64 256 64 L 256 128 C 185.308 128 128 70.692 128 0 Z"})})}function Ee({label:t="Contact Us",href:e="mailto:[email protected]",full:n=!1}){return f.jsxs("a",{href:e,className:`group inline-flex items-center justify-center gap-2 rounded-full bg-white text-black font-medium text-sm px-5 py-3 transition-all hover:bg-white/90 active:scale-[0.98] ${n?"w-full":""}`,children:[f.jsx(Uu,{className:"w-4 h-4"}),t,f.jsx(Nr,{className:"w-4 h-4 transition-transform group-hover:translate-x-[1px]"})]})}function De({label:t,tag:e}){return f.jsxs("div",{className:"flex items-center gap-3 text-xs uppercase tracking-[0.22em] text-white/50",children:[f.jsx("span",{className:"inline-block w-6 h-px bg-white/30"}),f.jsx("span",{children:t}),e&&f.jsx("span",{className:"px-2 py-0.5 rounded-full border border-white/10 text-white/50",children:e})]})}function Ju(){return f.jsxs("div",{className:"aic-root relative min-h-screen overflow-x-hidden bg-[#0c0c0c] text-white",children:[f.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"fixed inset-0 w-full h-full object-cover z-0 opacity-40",children:f.jsx("source",{src:"https://d8j0ntlcm91z4.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/hf_20260508_064122_c4750c0e-7476-4b44-94a2-a85a65c63bf2.mp4",type:"video/mp4"})}),f.jsx("div",{className:"fixed inset-0 z-0 bg-gradient-to-b from-[#0c0c0c]/60 via-[#0c0c0c]/40 to-[#0c0c0c] pointer-events-none"}),f.jsx("div",{className:"hidden md:block fixed top-0 bottom-0 left-1/2 -translate-x-[18rem] w-px bg-white/[0.04] z-10 pointer-events-none"}),f.jsx("div",{className:"hidden md:block fixed top-0 bottom-0 left-1/2 translate-x-[18rem] w-px bg-white/[0.04] z-10 pointer-events-none"}),f.jsx("svg",{className:"fixed -z-10 w-0 h-0","aria-hidden":!0,children:f.jsxs("filter",{id:"aic-noise",children:[f.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.9",numOctaves:"2",stitchTiles:"stitch"}),f.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),f.jsx("feComposite",{in2:"SourceGraphic",operator:"in"})]})}),f.jsxs("div",{className:"relative z-20",children:[f.jsxs(B.nav,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"max-w-6xl mx-auto px-6 pt-6 flex items-center justify-between",children:[f.jsx(Vt,{to:"/",className:"text-white",children:f.jsx(Hi,{className:"w-7 h-7"})}),f.jsx("div",{className:"hidden md:flex gap-8",children:["Definition","Citation Share","GEO","Ronn Torossian"].map((t,e)=>f.jsx(B.a,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{delay:.1+e*.05,duration:.4},href:t==="Definition"?"#definition":t==="Citation Share"?"#citation-share":t==="GEO"?"#geo":"#ronn",className:"text-white/70 text-sm font-medium hover:text-white transition-colors",children:t},t))}),f.jsx("div",{className:"hidden md:block",children:f.jsx(Ee,{})}),f.jsx("button",{"aria-label":"Menu",className:"md:hidden w-10 h-10 rounded-full border border-white/10 bg-white/5 flex items-center justify-center",children:f.jsx(Gu,{className:"w-4 h-4"})})]}),f.jsxs("section",{className:"max-w-6xl mx-auto px-6 pt-16 md:pt-28 pb-20 text-center flex flex-col items-center",children:[f.jsxs(B.div,{initial:{opacity:0,y:-6}
1,animate:{opacity:1,y:0},transition:{delay:.2},className:"mb-8 inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-white/10 bg-white/[0.03] text-[0.7rem] uppercase tracking-[0.22em] text-white/60",children:[f.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#00d2ff]"}),"Entry No. 001 · By Ronn Torossian"]}),f.jsxs(B.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.8,ease:[.22,1,.36,1]},className:"text-4xl md:text-7xl font-semibold tracking-tight leading-[0.9]",children:[f.jsx("span",{className:"block text-white",children:"AI Communications."}),f.jsx("span",{className:"block animate-shiny",style:_i,children:"Become the answer."})]}),f.jsx(B.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5,duration:.6},className:"mt-8 text-white/65 max-w-xl text-base md:text-lg leading-[1.6]",children:"The discipline of building authority across AI answer engines â ChatGPT, Claude, Perplexity, Gemini, and Google AI Overviews â alongside earned media, digital, and influencer channels."}),f.jsxs(B.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.7,duration:.6},className:"mt-10 flex flex-col items-center gap-3",children:[f.jsx(Ee,{label:"Contact Us"}),f.jsx("span",{className:"text-xs text-white/40",children:"[email protected] · 5W AI Communications"})]})]}),f.jsx(B.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.9,duration:.6},className:"w-full h-10 bg-black/40 backdrop-blur-md border-t border-b border-white/10",children:f.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 h-full flex items-center justify-between gap-3 text-[11px] sm:text-xs overflow-hidden",children:[f.jsxs("div",{className:"flex items-center gap-3 sm:gap-5 text-white/80 min-w-0 flex-1 overflow-hidden",children:[f.jsx(Xu,{className:"w-3.5 h-3.5 text-[#A4F4FD] shrink-0"}),f.jsx("span",{className:"font-semibold text-white whitespace-nowrap",children:"AI Communications"}),["ChatGPT","Claude","Perplexity","Gemini","AI Overviews"].map((t,e)=>f.jsx("span",{className:`text-white/60 whitespace-nowrap ${e>1?"hidden sm:inline":""} ${e>3?"hidden md:inline":""}`,children:t},t))]}),f.jsxs("div",{className:"hidden md:flex items-center gap-2 text-white/60 shrink-0",children:[f.jsx(_u,{className:"w-3.5 h-3.5"}),f.jsx("span",{className:"whitespace-nowrap",children:"Live across the answer engines"})]})]})}),f.jsx("section",{id:"definition",className:"max-w-6xl mx-auto px-6 py-20 md:py-28",children:f.jsxs("div",{className:"grid md:grid-cols-2 gap-10 md:gap-16 items-start",children:[f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[f.jsx(De,{label:"Definition",tag:"The discipline"}),f.jsx("h2",{className:"mt-5 text-3xl md:text-5xl font-semibold tracking-tight leading-[1.02]",children:"Ronn Torossian"}),f.jsxs("p",{className:"mt-4 text-xl md:text-2xl font-medium text-white/80 leading-[1.3]",children:["A mix of journalism,",f.jsx("span",{className:"serif-italic text-white/90",children:" psychology,"})," and engineering."]}),f.jsx("p",{className:"mt-6 text-white/65 text-base leading-[1.7] max-w-md",children:"Search has changed. Buyers ask ChatGPT, Claude, Perplexity, Gemini, and Google AI Overviews before they click anything. The competition is no longer for rankings â it's for citation inside the answer itself."}),f.jsx("div",{className:"mt-8 flex flex-wrap gap-2",children:["Public relations","Generative Engine Optimization","AI-visibility research","Earned media","Influencer"].map(t=>f.jsx("span",{className:"text-xs text-white/75 px-3 py-1.5 rounded-full border border-white/10 bg-white/[0.03]",children:t},t))})]}),f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.15},className:"liquid-glass rounded-2xl p-6 md:p-8",children:[f.jsx("div",{className:"text-[0.65rem] uppercase tracking-[0.22em] text-white/40 mb-5",children:"Pronunciation"}),f.jsx("div",{className:"serif-italic text-white/80 text-lg mb-1",children:"/ Ëeɪ.aɪ kÉËmjuË.nɪËkeɪ.ÊÉnz /"}),f.jsx("div",{className:"text-xs uppercase tracking-[0.22em] text-white/40 mb-6",children:"noun"}),f.jsx("p",{className:"serif-italic text-2xl md:text-3xl leading-[1.3] text-white",children:"The discipline of becoming the answer inside the chatbox."}),f.jsx("div",{className:"mt-8 pt-6 border-t border-white/10 text-sm text-white/65 leading-[1.65]",children:"It combines public relations, Generative Engine Optimization (GEO), and AI-visibility research to influence the answers anyone asking now begins with."})]})]})}),f.jsx("section",{id:"citation-share",className:"max-w-6xl mx-auto px-6 py-20 md:py-28 border-t border-white/10",children:f.jsxs("div",{className:"grid md:grid-cols-2 gap-10 md:gap-16 items-start",children:[f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[f.jsx(De,{label:"Entry No. 002",tag:"The Metric"}),f.jsxs("h2",{className:"mt-5 text-3xl md:text-5xl font-semibold tracking-tight leading-[1.02]",children:["Citation ",f.jsx("span",{className:"serif-italic",children:"Share."})]}),f.jsx("p",{className:"mt-4 serif-italic text-xl text-white/80",children:"Market share for the answer-engine era."}),f.jsx("p",{className:"mt-6 text-white/65 text-base leading-[1.7] max-w-md",children:"A brand's share of the answers AI engines provide when buyers ask category questions. The core metric of AI Communications."}),f.jsxs("p",{className:"mt-4 text-white/55 text-sm leading-[1.65] max-w-md",children:["Share of Voice measured what people heard."," ",f.jsx("span",{className:"serif-italic text-white",children:"Citation Share measures what the engines say."})," ","One is legacy media reach. The other is who gets named when the buyer asks the question."]}),f.jsx("div",{className:"mt-8",children:f.jsxs(Vt,{to:"/citation-share",className:"group inline-flex items-center gap-2 text-sm text-white/80 hover:text-white",children:[f.jsx("span",{className:"border-b border-white/30 pb-0.5 group-hover:border-white",children:"Read the full definition"}),f.jsx($i,{className:"w-4 h-4"})]})})]}),f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.15},className:"liquid-glass rounded-2xl p-5",children:[f.jsx("div",{className:"text-[0.65rem] uppercase tracking-[0.22em] text-white/40 mb-5 px-2",children:"Measured across · Today"}),f.jsx("div",{className:"space-y-2",children:[{engine:"ChatGPT",share:38,color:"#00d2ff"},{engine:"Perplexity",share:27,color:"#A4F4FD"},{engine:"Claude",share:21,color:"#f59e0b"},{engine:"Gemini",share:18,color:"#10b981"},{engine:"Google AI Overviews",share:14,color:"#a78bfa"}].map(t=>f.jsx("div",{className:"liquid-glass rounded-lg p-3 flex items-center gap-4",children:f.jsxs("div",{className:"flex-1",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm text-white/85 font-medium",children:t.engine}),f.jsxs("span",{className:"text-sm text-white tabular-nums",children:[t.share,"%"]})]}),f.jsx("div",{className:"h-1.5 rounded-full bg-white/10 overflow-hidden",children:f.jsx(B.div,{initial:{width:0},whileInView:{width:`${t.share*2}%`},viewport:{once:!0},transition:{duration:1.2,ease:[.22,1,.36,1]},className:"h-full rounded-full",style:{background:t.color}})})]})},t.engine))}),f.jsx("div",{className:"mt-5 px-2 text-[0.7rem] text-white/45 leading-[1.5]",children:"Sample Citation Share read for a Fortune-500 consumer brand across five major answer engines, captured continuously."})]})]})}),f.jsxs("section",{id:"geo",className:"max-w-6xl mx-auto px-6 py-20 md:py-28 border-t border-white/10",children:[f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto",children:[f.jsx(De,{label:"Entry No. 003",tag:"The Tactic"}),f.jsx("div",{className:"mt-6 flex items-center justify-center",children:f.jsxs("h2",{className:"text-5xl md:text-8xl font-semibold tracking-tight leading-[0.9]",children:["G",f.jsx("span",{className:"serif-italic",children:"E"}),"O"]})}),f.jsx("p",{className:"mt-4 serif-italic text-xl text-white/80",children:"Generative Engine Optimization."}),f.jsx("p",{className:"mt-6 text-white/65 text-base leading-[1.7]",children:"The practice of optimizing content, entities, and authority signals so brands are retrieved and cited by AI engines. A core tactic of AI Communications â the engine of Citation Share."}),f.jsxs("p",{className:"mt-4 text-white/55 text-sm leading-[1.65]",children:["SEO ranked you in the list of ten blue links."," ",f.jsx("span",{className:"serif-italic text-white",children:"GEO writes you into the answer itself."})]})]}),f.jsx("div",{className:"mt-14 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-px bg-white/10 rounded-2xl overflow-hidden border border-white/10",children:[{n:"01",t:"Entities",d:"The named things engines recognize and connect."},{n:"02",t:"Authority",d:"The sources engines trust enough to cite."},{n:"03",t:"Retrieval",d:"The structures engines can read, parse, and surface."},{n:"04",t:"Reinforcement",d:"The cross-platform signals that compound over time."}].map((t,e)=>f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:e*.08},className:"bg-[#0c0c0c] p-6 md:p-7 min-h-[180px] flex flex-col",children:[f.jsx("span",{className:"text-[0.65rem] uppercase tracking-[0.22em] text-white/40",children:t.n}),f.jsx("h3",{className:"mt-3 serif-italic text-2xl text-white",children:t.t}),f.jsx("p",{className:"mt-3 text-sm text-white/60 leading-[1.55]",children:t.d})]},t.n))}),f.jsx("div",{className:"mt-10 text-center",children:f.jsxs(Vt,{to:"/geo",className:"group inline-flex items-center gap-2 text-sm text-white/80 hover:text-white",children:[f.jsx("span",{className:"border-b border-white/30 pb-0.5 group-hover:border-white",children:"Read the full GEO definition"}),f.jsx($i,{className:"w-4 h-4"})]})})]}),f.jsxs("section",{className:"max-w-6xl mx-auto px-6 py-16 md:py-20 border-t border-white/10",children:[f.jsx("div",{className:"text-xs uppercase tracking-[0.22em] text-white/40 text-center",children:"Live across the answer engines"}),f.jsx("div",{className:"mt-10 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 ga
1p-6",children:["ChatGPT","Claude","Perplexity","Gemini","AI Overviews"].map((t,e)=>f.jsx(B.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:e*.05,duration:.5},className:"text-center text-sm font-semibold tracking-tight text-white/50 hover:text-white transition-colors",children:t},t))})]}),f.jsx("section",{className:"aic-watermark-section border-t border-white/10",children:f.jsxs("div",{className:"aic-watermark-container",children:[f.jsxs("div",{className:"aic-watermark-main",children:[f.jsx("span",{className:"aic-watermark-line-1",children:"Become"}),f.jsx("span",{className:"aic-watermark-line-2",children:"the answer."})]}),f.jsx("p",{className:"mt-10 max-w-xl mx-auto text-white/60 text-base leading-[1.65]",children:"The brand named in the answer wins the buyer. Everyone else is a footnote."})]})}),f.jsx("section",{id:"ronn",className:"max-w-6xl mx-auto px-6 py-20 md:py-28 border-t border-white/10",children:f.jsxs(B.figure,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"liquid-glass rounded-2xl p-8 md:p-14 max-w-4xl mx-auto",children:[f.jsx(Ku,{className:"w-7 h-7 text-white/30"}),f.jsx("blockquote",{className:"mt-6 serif-italic text-2xl md:text-4xl leading-[1.25] text-white",children:'"AI Communications is a mix of journalism, psychology, and engineering â and the audience is now the machine."'}),f.jsxs("figcaption",{className:"mt-8 pt-6 border-t border-white/10 flex flex-wrap items-end justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-base font-semibold text-white",children:"Ronn Torossian"}),f.jsxs("div",{className:"mt-1 text-sm text-white/60",children:["Founder & Chairman,"," ",f.jsx("a",{href:"https://5wpr.com",className:"text-white border-b border-white/30 hover:border-white",children:"5W AI Communications"})," ","· Publisher of"," ",f.jsx("a",{href:"https://everything-pr.com",className:"text-white border-b border-white/30 hover:border-white",children:"Everything-PR"})]}),f.jsxs("div",{className:"mt-1 text-xs text-white/45",children:["Author of two best-selling editions of"," ",f.jsx("span",{className:"serif-italic text-white/70",children:"For Immediate Release"})]})]}),f.jsx("a",{href:"mailto:[email protected]",className:"serif-italic text-white/85 border-b border-white/30 hover:border-white pb-0.5",children:"[email protected]"})]})]})}),f.jsx("section",{className:"max-w-6xl mx-auto px-6 py-20 md:py-32",children:f.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"liquid-glass relative overflow-hidden rounded-3xl px-8 py-16 md:py-24 text-center",children:[f.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(600px circle at 50% 0%, rgba(164,244,253,0.18), transparent 70%)",opacity:.6}}),f.jsxs("div",{className:"relative",children:[f.jsxs("h2",{className:"text-4xl md:text-6xl font-semibold tracking-tight leading-[1.02]",children:[f.jsx("span",{className:"block",children:"Be named in the answer."}),f.jsx("span",{className:"block animate-shiny",style:_i,children:"Not the footnote."})]}),f.jsx("p",{className:"mt-6 text-white/65 max-w-md mx-auto text-sm md:text-base leading-[1.6]",children:"AI Communications, GEO, and Citation Share strategy â built by the firm defining the discipline."}),f.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-3",children:[f.jsx(Ee,{label:"Talk to Ronn"}),f.jsxs("a",{href:"https://5wpr.com",className:"group inline-flex items-center justify-center gap-2 rounded-full border border-white/15 text-white text-sm font-medium px-5 py-3 hover:bg-white/5 transition-colors",children:["Visit 5W AI Communications",f.jsx(Nr,{className:"w-4 h-4 transition-transform group-hover:translate-x-[1px]"})]})]})]})]})}),f.jsx("footer",{className:"border-t border-white/10",children:f.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-10 flex flex-wrap justify-between items-end gap-6 text-xs uppercase tracking-[0.22em] text-white/40",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Hi,{className:"w-5 h-5 text-white/60"}),f.jsx("span",{children:"AI Communications · MMXXVI"})]}),f.jsxs("div",{className:"flex flex-wrap gap-5",children:[f.jsx(Vt,{to:"/citation-share",className:"hover:text-white",children:"Citation Share"}),f.jsx(Vt,{to:"/geo",className:"hover:text-white",children:"GEO"}),f.jsx("a",{href:"https://5wpr.com",className:"hover:text-white",children:"5w
1pr.com"}),f.jsx("a",{href:"https://everything-pr.com",className:"hover:text-white",children:"Everything-PR"}),f.jsx("a",{href:"mailto:[email protected]",className:"hover:text-white",children:"[email protected]"})]})]})})]})]})}export{Ju as component};
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.