1import{c as gt,j as A,B as Wo,R as ot,U as _o,T as zo,a as $o,H as Ho,S as Ko,C as Go,A as Ln}from"./index-ByaUQ4Qy.js";import{b,u as Xo,f as Yo,L as qo}from"./vendor-router-CJ8qbTQf.js";import{k as Zo}from"./babblio-kids-app-BB73s27n.js";import{P as Jo}from"./phone-ChRr-rjA.js";const Qo=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],tr=gt("baby",Qo);const er=[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]],nr=gt("drama",er);const sr=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],ir=gt("flame",sr);const or=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],rr=gt("globe",or);const ar=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],lr=gt("trophy",ar);const cr=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],ur=gt("user-plus",cr);const hr=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],fr=gt("zap",hr),on=b.createContext({});function rn(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const dr=typeof window<"u",ti=dr?b.useLayoutEffect:b.useEffect,fe=b.createContext(null);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function ne(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let ln=()=>{};const rt={},ei=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ni=t=>typeof t=="object"&&t!==null,si=t=>/^0[^.\s]+$/u.test(t);function ii(t){let e;return()=>(e===void 0&&(e=t()),e)}const H=t=>t,jt=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Lt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class cn{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>ne(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _=t=>t*1e3,$=t=>t/1e3,oi=(t,e)=>e?t*(1e3/e):0,ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,pr=1e-7,mr=12;function gr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ri(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>pr&&++a<mr);return o}function Ot(t,e,n,s){if(t===e&&n===s)return H;const i=r=>gr(r,0,1,t,n);return r=>r===0||r===1?r:ri(i(r),e,s)}const ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,li=t=>e=>1-t(1-e),ci=Ot(.33,1.53,.69,.99),un=li(ci),ui=ai(un),hi=t=>t>=1?1:(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),fi=li(hn),di=ai(hn),yr=Ot(.42,0,1,1),vr=Ot(0,0,.58,1),pi=Ot(.42,0,.58,1),xr=t=>Array.isArray(t)&&typeof t[0]!="number",mi=t=>Array.isArray(t)&&typeof t[0]=="number",br={linear:H,easeIn:yr,easeInOut:pi,easeOut:vr,circIn:hn,circInOut:di,circOut:fi,backIn:un,backInOut:ui,backOut:ci,anticipate:hi},wr=t=>typeof t=="string",Fn=t=>{if(mi(t)){ln(t.length===4);const[e,n,s,i]=t;return Ot(e,n,s,i)}else if(wr(t))return br[t];return t},Wt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Tr(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&o.add(l),p.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,i){r=!0;return}i=!0;const h=n;
vendor: 26,893 bytes, line 1
1n=s,s=h,n.forEach(c),n.clear(),i=!1,r&&(r=!1,u.process(l))}};return u}const Pr=40;function gi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Wt.reduce((v,w)=>(v[w]=Tr(r),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=o,m=()=>{const v=rt.useManualTiming,w=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,Pr),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},g=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:Wt.reduce((v,w)=>{const C=o[w];return v[w]=(V,M=!1,P=!1)=>(n||g(),C.schedule(V,M,P)),v},{}),cancel:v=>{for(let w=0;w<Wt.length;w++)o[Wt[w]].cancel(v)},state:i,steps:o}}const{schedule:R,cancel:at,state:O,steps:ye}=gi(typeof requestAnimationFrame<"u"?requestAnimationFrame:H,!0);let Kt;function Sr(){Kt=void 0}const U={now:()=>(Kt===void 0&&U.set(O.isProcessing||rt.useManualTiming?O.timestamp:performance.now()),Kt),set:t=>{Kt=t,queueMicrotask(Sr)}},yi=t=>e=>typeof e=="string"&&e.startsWith(t),vi=yi("--"),Ar=yi("var(--"),fn=t=>Ar(t)?Cr.test(t.split("/*")[0].trim()):!1,Cr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function In(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ft={...St,transform:t=>tt(0,1,t)},_t={...St,default:1},Mt=t=>Math.round(t*1e5)/1e5,dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vr(t){return t==null}const Er=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pn=(t,e)=>n=>!!(typeof n=="string"&&Er.test(n)&&n.startsWith(t)||e&&!Vr(n)&&Object.prototype.hasOwnProperty.call(n,e)),xi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(dn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Mr=t=>tt(0,255,t),ve={...St,transform:t=>Math.round(Mr(t))},ft={test:pn("rgb","red"),parse:xi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ve.transform(t)+", "+ve.transform(e)+", "+ve.transform(n)+", "+Mt(Ft.transform(s))+")"};function Dr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Le={test:pn("#"),parse:Dr,transform:ft.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Nt("deg"),Q=Nt("%"),T=Nt("px"),Rr=Nt("vh"),kr=Nt("vw"),Bn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},xt={test:pn("hsl","hue"),parse:xi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Mt(e))+", "+Q.transform(Mt(n))+", "+Mt(Ft.transform(s))+")"},F={test:t=>ft.test(t)||Le.test(t)||xt.test(t),parse:t=>ft.test(t)?ft.parse(t):xt.test(t)?xt.parse(t):Le.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ft.transform(t):xt.transform(t),getAnimatableNone:t=>{const e=F.parse(t);return e.alpha=0,F.transform(e)}},Lr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fr(t){return isNaN(t)&&typeof t=="string"&&(t.match(dn)?.length||0)+(t.match(Lr)?.length||0)>0}const bi="number",wi="color",Ir="var",Br="var(",jn="${}",jr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(jr,c=>(F.test(c)?(s.color.push(r),i.push(wi),n.push(F.parse(c))):c.startsWith(Br)?(s.var.push(r),i.push(Ir),n.push(c)):(s.number.push(r),i.push(bi),n.push(parseFloat(c))),++r,jn)).split(jn);return{values:n,split:a,indexes:s,types:i}}function Or(t){return Tt(t).values}function Ti({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===bi?i+=Mt(s[r]):o===wi?i+=F.transform(s[r]):i+=s[r]}return i}}function Nr(t){return Ti(Tt(t))}const Ur=t=>typeof t=="number"?0:F.test(t)?F.getAnimatableNone(t):t,Wr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Ur(t);function _r(t){const e=Tt(t);return Ti(e)(e.values.map((s,i)=>Wr(s,e.split[i])))}const X={test:Fr,parse:Or,createTransformer:Nr,getAnimatableNone:_r};function xe(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 zr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=xe(c,a,t+1/3),r=xe(c,a,t),o=xe(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function se(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,be=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},$r=[Le,ft,xt],Hr=t=>$r.find(e=>e.test(t));function On(t){const e=Hr(t);if(!e)return!1;let n=e.parse(t);return e===xt&&(n=zr(n)),n}const Nn=(t,e)=>{const n=On(t),s=On(e);if(!n||!s)return se(t,e);const i={...n};return r=>(i.red=be(n.red,s.red,r),i.green=be(n.green,s.green,r),i.blue=be(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),ft.transform(i))},Fe=new Set(["none","hidden"]);function Kr(t,e){return Fe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Gr(t,e){return n=>D(t,e,n)}function mn(t){return typeof t=="number"?Gr:typeof t=="string"?fn(t)?se:F.test(t)?Nn:qr:Array.isArray(t)?Pi:typeof t=="object"?F.test(t)?Nn:Xr:se}function Pi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>mn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Xr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=mn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Yr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const qr=(t,e)=>{const n=X.createTransformer(e),s=Tt(t),i=Tt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Fe.has(t)&&!i.values.length||Fe.has(e)&&!s.values.length?Kr(t,e):jt(Pi(Yr(s,i),i.values),n):se(t,e)};function Si(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):mn(t)(t,e)}const Zr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>R.update(e,n),stop:()=>at(e),now:()=>O.isProcessing?O.timestamp:U.now()}},Ai=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ie=2e4;function gn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ie;)e+=n,s=t.next(e);return e>=ie?1/0:e}function Jr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(gn(s),ie);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:$(i)}}const L={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 Ie(t,e){return t*Math.sqrt(1-e*e)}const Qr=12;function ta(t,e,n){let s=n;for(let i=1;i<Qr;i++)s=s-t(s)/e(s);return s}const we=.001;function ea({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=tt(L.minDamping,L.maxDamping,o),t=tt(L.minDuration,L.maxDuration,$(t)),o<1?(i=u=>{const l=u*o,h=l*t,f=l-n,d=Ie(u,o),p=Math.exp(-h);return we-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Ie(Math.pow(u,2),o);return(-i(u)+we>0?-1:1)*((f-d)*p)/m}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-we+l*h},r=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=ta(i,r,a);if(t=_(t),isNaN(c))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const na=["duration","bounce"],sa=["stiffness","damping","mass"];function Un(t,e){return e.some(n=>t[n]!==void 0)}function ia(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!Un(t,sa)&&Un(t,na))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=ea({...t,velocity:0});e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function oe(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=ia({...n,velocity:-$(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(c*l)),g=o-r,y=$(Math.sqrt(c/l)),x=Math.abs(g)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),i||(i=x?L.restDelta.granular:L.restDelta.default);let v,w,C,V,M,P;if(m<1)C=Ie(y,m),V=(p+m*y*g)/C,v=S=>{const k=Math.exp(-m*y*S);return o-k*(V*Math.sin(C*S)+g*Math.cos(C*S))},M=m*y*V+g*C,P=m*y*g-V*C,w=S=>Math.exp(-m*y*S)*(M*Math.sin(C*S)+P*Math.cos(C*S));else if(m===1){v=k=>o-Math.exp(-y*k)*(g+(p+y*g)*k);const S=p+y*g;w=k=>Math.exp(-y*k)*(y*S*k-p)}else{const S=y*Math.sqrt(m*m-1);v=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(S*Y,300);return o-nt*((p+m*y*g)*Math.sinh(q)+S*g*Math.cosh(q))/S};const k=(p+m*y*g)/S,B=m*y*k-g*S,et=m*y*g-k*S;w=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(S*Y,300);return nt*(B*Math.sinh(q)+et*Math.cosh(q))}}const E={calculatedDuration:d&&h||null,velocity:S=>_(w(S)),next:S=>{if(!d&&m<1){const B=Math.exp(-m*y*S),et=Math.sin(C*S),Y=Math.cos(C*S),nt=o-B*(V*et+g*Y),q=_(B*(M*et+P*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const k=v(S);if(d)a.done=S>=h;else{const B=_(w(S));a.done=Math.abs(B)<=s&&Math.abs(o-k)<=i}return a.value=a.done?o:k,a},toString:()=>{const S=Math.min(gn(E),ie),k=Ai(B=>E.next(S*B).value,S,30);return S+"ms "+k},toTransition:()=>{}};return E}oe.applyToOptions=t=>{const e=Jr(t,100,oe);return t.ease=e.ease,t.duration=_(e.duration),t.type="keyframes",t};const oa=5;function Ci(t,e,n){const s=Math.max(e-oa,0);return oi(n-t(s),e-s)}function Be({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||c!==void 0&&P>c,p=P=>a===void 0?c:c===void 0||Math.abs(a-P)<Math.abs(c-P)?a:c;let m=n*e;const g=h+m,y=o===void 0?g:o(g);y!==g&&(m=y-h);const x=P=>-m*Math.exp(-P/s),v=P=>y+x(P),w=P=>{const E=x(P),S=v(P);f.done=Math.abs(E)<=u,f.value=f.done?y:S};let C,V;const M=P=>{d(f.value)&&(C=P,V=oe({keyframes:[f.value,p(f.value)],velocity:Ci(v,P,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return M(0),{calculatedDuration:null,next:P=>{let E=!1;return!V&&C===void 0&&(E=!0,w(P),M(P)),C!==void 0&&P>=C?V.next(P-C):(!E&&w(P),f)}}}function ra(t,e,n){const s=[],i=n||rt.mix||Si,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||H:e;a=jt(c,a)}s.push(a)}return s}function aa(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(ln(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ra(e,s,i),c=a.length,u=l=>{if(o&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Lt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(tt(t[0],t[r-1],l)):u}function la(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(D(n,1,i))}}function ca(t){const e=[0];return la(e,t.length-1),e}function ua(t,e){return t.map(n=>n*e)}function ha(t,e){return t.map(()=>e||pi).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=xr(s)?s.map(Fn):Fn(s),r={done:!1,value:e[0]},o=ua(n&&n.length===e.length?n:ca(e),t),a=aa(o,e,{ease:Array.isArray(i)?i:ha(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const fa=t=>t!==null;function de(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(fa),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const da={decay:Be,inertia:Be,tween:Dt,keyframes:Dt,spring:oe};function Vi(t){typeof t.type=="string"&&(t.type=da[t.type])}class yn{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 pa=t=>t/100;class re extends yn{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;Vi(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Dt;c!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=jt(pa,Si(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=gn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,w=s;if(h){const P=Math.min(this.currentTime,i)/a;let E=Math.floor(P),S=P%1;!S&&P>=1&&(S=1),S===1&&E--,E=Math.min(E,h+1),E%2&&(f==="reverse"?(S=1-S,d&&(S-=d/a)):f==="mirror"&&(w=o)),v=tt(0,1,S)*a}let C;x?(this.delayState.value=l[0],C=this.delayState):C=w.next(v),r&&!x&&(C.value=r(C.value));let{done:V}=C;!x&&c!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return M&&p!==Be&&(C.value=de(l,this.options,g,this.speed)),m&&m(C.value),M&&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=_(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 Ci(s=>this.generator.next(s).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=Zr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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 ma(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const dt=t=>t*180/Math.PI,je=t=>{const e=dt(Math.atan2(t[1],t[0]));return Oe(e)},ga={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:je,rotateZ:je,skewX:t=>dt(Math.atan(t[1])),skewY:t=>dt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Oe=t=>(t=t%360,t<0&&(t+=360),t),Wn=je,_n=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),zn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ya={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_n,scaleY:zn,scale:t=>(_n(t)+zn(t))/2,rotateX:t=>Oe(dt(Math.atan2(t[6],t[5]))),rotateY:t=>Oe(dt(Math.atan2(-t[2],t[0]))),rotateZ:Wn,rotate:Wn,skewX:t=>dt(Math.atan(t[4])),skewY:t=>dt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ne(t){return t.includes("scale")?1:0}function Ue(t,e){if(!t||t==="none")return Ne(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ya,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ga,i=a}if(!i)return Ne(e);const r=s[e],o=i[1].split(",").map(xa);return typeof r=="function"?r(o):o[r]}const va=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ue(n,e)};function xa(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"]),$n=t=>t===St||t===T,ba=new Set(["x","y","z"]),wa=At.filter(t=>!ba.has(t));function Ta(t){const e=[];return wa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-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})=>Ue(e,"x"),y:(t,{transform:e})=>Ue(e,"y")};it.translateX=it.x;it.translateY=it.y;const pt=new Set;let We=!1,_e=!1,ze=!1;function Ei(){if(_e){const t=Array.from(pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ta(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}_e=!1,We=!1,pt.forEach(t=>t.complete(ze)),pt.clear()}function Mi(){pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_e=!0)})}function Pa(){ze=!0,Mi(),Ei(),ze=!1}class vn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(pt.add(this),We||(We=!0,R.read(Mi),R.resolveKeyframes(Ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ma(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pt.delete(this)}cancel(){this.state==="scheduled"&&(pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Sa=t=>t.startsWith("--");function Di(t,e,n){Sa(e)?t.style.setProperty(e,n):t.style[e]=n}const Aa={};function Ri(t,e){const n=ii(t);return()=>Aa[e]??n()}const Ca=Ri(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ki=Ri(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Et=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Et([0,.65,.55,1]),circOut:Et([.55,0,1,.45]),backIn:Et([.31,.01,.66,-.59]),backOut:Et([.33,1.53,.69,.99])};function Li(t,e){if(t)return typeof t=="function"?ki()?Ai(t,e):"ease-out":mi(t)?Et(t):Array.isArray(t)?t.map(n=>Li(n,e)||Hn.easeOut):Hn[t]}function Va(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=Li(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Fi(t){return typeof t=="function"&&"applyToOptions"in t}function Ea({type:t,...e}){return Fi(t)&&ki()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ii extends yn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ln(typeof e.type!="string");const u=Ea(e);this.animation=Va(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=de(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Di(n,s,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=_(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:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ca()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),H):i(this)}}const Bi={anticipate:hi,backInOut:ui,circInOut:di};function Ma(t){return t in Bi}function Da(t){typeof t.ease=="string"&&Ma(t.ease)&&(t.ease=Bi[t.ease])}const Te=10;class Ra extends Ii{constructor(e){Da(e),Vi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new re({...o,autoplay:!1}),c=Math.max(Te,U.now()-this.startTime),u=tt(0,Te,c-Te),l=a.sample(c).value,{name:h}=this.options;r&&h&&Di(r,h,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const Kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ka(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 La(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Kn(i,e),a=Kn(r,e);return!o||!a?!1:ka(t)||(n==="spring"||Fi(n))&&s}function $e(t){t.duration=0,t.type="keyframes"}const ji=new Set(["opacity","clipPath","filter","transform"]),Fa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ia(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Fa.test(t[e]))return!0;return!1}const Ba=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ja=ii(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Oa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return ja()&&n&&(ji.has(n)||Ba.has(n)&&Ia(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Na=40;class Ua extends yn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="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 f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||vn;this.keyframeResolver=new d(a,(p,m,g)=>this.onKeyframesResolved(p,m,f,!g),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=U.now();let h=!0;La(e,r,o,a)||(h=!1,(rt.instantAnimations||!c)&&l?.(de(e,s,n)),e[0]=e[e.length-1],$e(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Na?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!u&&Oa(d),m=d.motionValue?.owner?.current;let g;if(p)try{g=new Ra({...d,element:m})}catch{g=new re(d)}else g=new re(d);g.finished.then(()=>{this.notifyFinished()}).catch(H),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}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(),Pa()),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 Oi(t,e,n,s=0,i=1){const r=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const Gn=30,Wa=t=>!isNaN(parseFloat(t));class _a{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=U.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.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=Wa(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 cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),R.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}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>Gn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gn);return oi(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 _a(t,e)}function Ni(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function xn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Ni(n,t):n}const za={type:"spring",stiffness:500,damping:25,restSpeed:10},$a=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ha={type:"keyframes",duration:.8},Ka={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ga=(t,{keyframes:e})=>e.length>2?Ha:Ct.has(t)?t.startsWith("scale")?$a(e[1]):za:Ka,Xa=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ya(t){for(const e in t)if(!Xa.has(e))return!0;return!1}const bn=(t,e,n,s={},i,r)=>
vendor: 57,749 bytes, line 1
1o=>{const a=xn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-_(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ya(a)||Object.assign(l,Ga(t,l)),l.duration&&(l.duration=_(l.duration)),l.repeatDelay&&(l.repeatDelay=_(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&($e(l),l.delay===0&&(h=!0)),(rt.instantAnimations||rt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,$e(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=de(l.keyframes,a);if(f!==void 0){R.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new re(l):new Ua(l)},qa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Za(t){const e=qa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ui(t,e,n=1){const[s,i]=Za(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ei(o)?parseFloat(o):o}return fn(i)?Ui(i,e,n+1):i}function Xn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function wn(t,e,n,s){if(typeof e=="function"){const[i,r]=Xn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Xn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return wn(s,e,n!==void 0?n:s.custom,t)}const Wi=new Set(["width","height","top","left","right","bottom",...At]),He=t=>Array.isArray(t);function Ja(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function Qa(t){return He(t)?t[t.length-1]||0:t}function tl(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Qa(r[o]);Ja(t,o,a)}}const N=t=>!!(t&&t.getVelocity);function el(t){return!!(N(t)&&t.add)}function Ke(t,e){const n=t.getValue("willChange");if(el(n))return n.add(e);if(!n&&rt.WillChange){const s=new rt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Tn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const nl="framerAppearId",_i="data-"+Tn(nl);function zi(t){return t.props[_i]}function sl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function $i(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const c=t.getDefaultTransition();r=r?Ni(r,c):c;const u=r?.reduceMotion,l=r?.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],d=r?.path;d&&d.animateVisualElement(t,a,r,n,h);for(const p in a){const m=t.getValue(p,t.latestValues[p]??null),g=a[p];if(g===void 0||f&&sl(f,p))continue;const y={delay:n,...xn(r||{},p)};l&&(y.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===x&&!y.velocity){R.update(()=>m.set(g));continue}let v=!1;if(window.MotionHandoffAnimation){const V=zi(t);if(V){const M=window.MotionHandoffAnimation(V,p,R);M!==null&&(y.startTime=M,v=!0)}}Ke(t,p);const w=u??t.shouldReduceMotion;m.start(bn(p,m,g,w&&Wi.has(p)?{type:!1}:y,t,v));const C=m.animation;C&&h.push(C)}if(o){const p=()=>R.update(()=>{o&&tl(t,o)});h.length?Promise.all(h).then(p):p()}return h}function Ge(t,e,n={}){const s=mt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all($i(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=i;return il(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function il(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Ge(c,e,{...o,delay:n+(typeof s=="function"?0:s)+Oi(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function ol(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ge(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ge(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all($i(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const rl={test:t=>t==="auto",parse:t=>t},Hi=t=>e=>e.test(t),Ki=[St,T,Q,st,kr,Rr,rl],Yn=t=>Ki.find(Hi(t));function al(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||si(t):!0}const ll=new Set(["brightness","contrast","saturate","opacity"]);function cl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(dn)||[];if(!s)return t;const i=n.replace(s,"");let r=ll.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const ul=/\b([a-z-]*)\(.*?\)/gu,Xe={...X,getAnimatableNone:t=>{const e=t.match(ul);return e?e.map(cl).join(" "):t}},Ye={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},qn={...St,transform:Math.round},hl={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:st,skewX:st,skewY:st,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:Ft,originX:Bn,originY:Bn,originZ:T},ae={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,...hl,zIndex:qn,fillOpacity:Ft,strokeOpacity:Ft,numOctaves:qn},fl={...ae,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Xe,WebkitFilter:Xe,mask:Ye,WebkitMask:Ye},Gi=t=>fl[t],dl=new Set([Xe,Ye]);function Xi(t,e){let n=Gi(t);return dl.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const pl=new Set(["auto","none","0"]);function ml(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!pl.has(r)&&Tt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Xi(n,i)}class gl extends vn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),fn(h))){const f=Ui(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Wi.has(s)||e.length!==2)return;const[i,r]=e,o=Yn(i),a=Yn(r),c=In(i),u=In(r);if(c!==u&&it[s]){this.needsMeasurement=!0;return}if(o!==a)if($n(o)&&$n(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||al(e[i]))&&s.push(i);s.length&&ml(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Yi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const qe=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Gt(t){return ni(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Pn}=gi(queueMicrotask,!1),G={x:!1,y:!1};function qi(){return G.x||G.y}function yl(t){return t==="x"||t==="y"?G[t]?null:(G[t]=!0,()=>{G[t]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function Zi(t,e){const n=Yi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function vl(t){return!(t.pointerType==="touch"||qi())}function xl(t,e,n={}){const[s,i,r]=Zi(t,n);return s.forEach(o=>{let a=!1,c=!1,u;const l=()=>{o.removeEventListener("pointerleave",p)},h=g=>{u&&(u(g),u=void 0),l()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(g))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=g=>{if(g.pointerType!=="touch"){if(a){c=!0;return}h(g)}},m=g=>{if(!vl(g))return;c=!1;const y=e(o,g);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",d,i)}),r}const Ji=(t,e)=>e?t===e?!0:Ji(t,e.parentElement):!1,Sn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,bl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wl(t){return bl.has(t.tagName)||t.isContentEditable===!0}const Tl=new Set(["INPUT","SELECT","TEXTAREA"]);function Pl(t){return Tl.has(t.tagName)||t.isContentEditable===!0}const Xt=new WeakSet;function Zn(t){return e=>{e.key==="Enter"&&t(e)}}function Pe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Zn(()=>{if(Xt.has(n))return;Pe(n,"down");const i=Zn(()=>{Pe(n,"up")}),r=()=>Pe(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Jn(t){return Sn(t)&&!qi()}const Qn=new WeakSet;function Al(t,e,n={}){const[s,i,r]=Zi(t,n),o=a=>{const c=a.currentTarget;if(!Jn(a)||Qn.has(a))return;Xt.add(c),n.stopPropagation&&Qn.add(a);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Xt.has(c)&&Xt.delete(c),Jn(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Ji(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Gt(a)&&(a.addEventListener("focus",u=>Sl(u,i)),!wl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function An(t){return ni(t)&&"ownerSVGElement"in t}const Yt=new WeakMap;let qt;const Qi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:An(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Cl=Qi("inline","width","offsetWidth"),Vl=Qi("block","height","offsetHeight");function El({target:t,borderBoxSize:e}){Yt.get(t)?.forEach(n=>{n(t,{get width(){return Cl(t,e)},get height(){return Vl(t,e)}})})}function Ml(t){t.forEach(El)}function Dl(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(Ml))}function Rl(t,e){qt||Dl();const n=Yi(t);return n.forEach(s=>{let i=Yt.get(s);i||(i=new Set,Yt.set(s,i)),i.add(e),qt?.observe(s)}),()=>{n.forEach(s=>{const i=Yt.get(s);i?.delete(e),i?.size||qt?.unobserve(s)})}}const Zt=new Set;let bt;function kl(){bt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zt.forEach(e=>e(t))},window.addEventListener("resize",bt)}function Ll(t){return Zt.add(t),bt||kl(),()=>{Zt.delete(t),!Zt.size&&typeof bt=="function"&&(window.removeEventListener("resize",bt),bt=void 0)}}function ts(t,e){return typeof t=="function"?Ll(t):Rl(t,e)}function Fl(t){return An(t)&&t.tagName==="svg"}const Il=[...Ki,F,X],Bl=t=>Il.find(Hi(t)),es=()=>({translate:0,scale:1,origin:0,originPoint:0}),wt=()=>({x:es(),y:es()}),ns=()=>({min:0,max:0}),I=()=>({x:ns(),y:ns()}),jl=new WeakMap;function pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Cn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vn=["initial",...Cn];function me(t){return pe(t.animate)||Vn.some(e=>It(t[e]))}function to(t){return!!(me(t)||t.variants)}function Ol(t,e,n){for(const s in e){const i=e[s],r=n[s];if(N(i))t.addValue(s,i);else if(N(r))t.addValue(s,Pt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Pt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ze={current:null},eo={current:!1},Nl=typeof window<"u";function Ul(){if(eo.current=!0,!!Nl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ze.current=t.matches;t.addEventListener("change",e),e()}else Ze.current=!1}const ss=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let le={};function no(t){le=t}function Wl(){return le}class _l{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,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=vn,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 d=U.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,R.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=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=me(n),this.isVariantNode=to(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];u[d]!==void 0&&N(p)&&p.set(u[d])}}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,jl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(eo.current||Ul(),this.shouldReduceMotion=Ze.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(),at(this.notifyUpdate),at(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&&ji.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,h=new Ii({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:_(l)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Ct.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&R.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}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 le){const n=le[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ss.length;s++){const i=ss[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ol(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ei(s)||si(s))?s=parseFloat(s):!Bl(s)&&X.test(n)&&(s=Xi(e,n)),this.setBaseTarget(e,N(s)?s.get():s)),N(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=wn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!N(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Pn.render(this.render)}}class so extends _l{constructor(){super(...arguments),this.KeyframeResolver=gl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;N(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}let lt=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function io({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function zl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function $l(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Se(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!Se(t)||!Se(e)||!Se(n)}function ht(t){return Je(t)||oo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function oo(t){return is(t.x)||is(t.y)}function is(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function os(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function Qe(t,e=0,n=1,s,i){t.min=os(t.min,e,n,s,i),t.max=os(t.max,e,n,s,i)}function ro(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const rs=.999999999999,as=1.0000000000001;function Hl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,ro(t,o)),s&&ht(r.latestValues)&&Jt(t,r.latestValues,r.layout?.layoutBox))}e.x<as&&e.x>rs&&(e.x=1),e.y<as&&e.y>rs&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function ls(t,e,n,s,i=.5){const r=D(t.min,t.max,i);Qe(t,e,n,r,s)}function cs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Jt(t,e,n){const s=n??t;ls(t.x,cs(e.x,s.x),e.scaleX,e.scale,e.originX),ls(t.y,cs(e.y,s.y),e.scaleY,e.scale,e.originY)}function ao(t,e){return io($l(t.getBoundingClientRect(),e))}function Kl(t,e,n){const s=ao(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Gl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xl=At.length;function Yl(t,e,n){let s="",i=!0;for(let o=0;o<Xl;o++){const a=At[o],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=qe(c,ae[a]);if(!u){i=!1;const h=Gl[a]||a;s+=`${h}(${l}) `}n&&(e[a]=l)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${qe(r,ae.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function En(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const u=e[c];if(Ct.has(c)){o=!0;continue}else if(vi(c)){i[c]=u;continue}else{const l=qe(u,ae[c]);c.startsWith("origin")?(a=!0,r[c]=l):s[c]=l}}if(e.transform||(o||n?s.transform=Yl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=r;s.transformOrigin=`${c} ${u} ${l}`}}function lo(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function us(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=us(t,e.target.x),s=us(t,e.target.y);return`${n}% ${s}%`}},ql={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const r=X.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const u=D(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},tn={borderRadius:{...Vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:ql};function co(t,{layout:e,layoutId:n}){return Ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function Mn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(N(s[o])||i&&N(i[o])||co(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Zl(t){return window.getComputedStyle(t)}class Jl extends so{constructor(){super(...arguments),this.type="html",this.renderInstance=lo}readValueFromInstance(e,n){if(Ct.has(n))return this.projection?.isProjecting?Ne(n):va(e,n);{const s=Zl(e),i=(vi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ao(e,n)}build(e,n,s){En(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Mn(e,n,s)}}const Ql={offset:"stroke-dashoffset",array:"stroke-dasharray"},tc={offset:"strokeDashoffset",array:"strokeDasharray"};function ec(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ql:tc;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const nc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,u,l){if(En(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of nc)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&ec(h,i,r,o,!1)}const ho=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"]),fo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function sc(t,e,n,s){lo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ho.has(i)?i:Tn(i),e.attrs[i])}function po(t,e,n){const s=Mn(t,e,n);for(const i in t)if(N(t[i])||N(e[i])){const r=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class ic extends so{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ct.has(n)){const s=Gi(n);return s&&s.default||0}return n=ho.has(n)?n:Tn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return po(e,n,s)}build(e,n,s){uo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){sc(e,n,s,i)}mount(e){this.isSVGTag=fo(e.tagName),super.mount(e)}}const oc=Vn.length;function mo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?mo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<oc;n++){const s=Vn[n],i=t.props[s];(It(i)||i===!1)&&(e[s]=i)}return e}function go(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const rc=[...Cn].reverse(),ac=Cn.length;function lc(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ol(t,n,s)))}function cc(t){let e=lc(t),n=hs(),s=!0,i=!1;const r=u=>(l,h)=>{const f=mt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;l={...l,...m,...p}}return l};function o(u){e=u(t)}function a(u){const{props:l}=t,h=mo(t.parent)||{},f=[],d=new Set;let p={},m=1/0;for(let y=0;y<ac;y++){const x=rc[y],v=n[x],w=l[x]!==void 0?l[x]:h[x],C=It(w),V=x===u?v.isActive:null;V===!1&&(m=y);let M=w===h[x]&&w!==l[x]&&C;if(M&&(s||i)&&t.manuallyAnimateOnMount&&(M=!1),v.protectedKeys={...p},!v.isActive&&V===null||!w&&!v.prevProp||pe(w)||typeof w=="boolean")continue;if(x==="exit"&&v.isActive&&V!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const P=uc(v.prevProp,w);let E=P||x===u&&v.isActive&&!M&&C||y>m&&C,S=!1;const k=Array.isArray(w)?w:[w];let B=k.reduce(r(x),{});V===!1&&(B={});const{prevResolvedValues:et={}}=v,Y={...et,...B},nt=j=>{E=!0,d.has(j)&&(S=!0,d.delete(j)),v.needsAnimating[j]=!0;const z=t.getValue(j);z&&(z.liveStyle=!1)};for(const j in Y){const z=B[j],ct=et[j];if(p.hasOwnProperty(j))continue;let yt=!1;He(z)&&He(ct)?yt=!go(z,ct)||P:yt=z!==ct,yt?z!=null?nt(j):d.add(j):z!==void 0&&d.has(j)?nt(j):v.protectedKeys[j]=!0}v.prevProp=w,v.prevResolvedValues=B,v.isActive&&(p={...p,...B}),(s||i)&&t.blockInitialAnimation&&(E=!1);const q=M&&P;E&&(!q||S)&&f.push(...k.map(j=>{const z={type:x};if(typeof j=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,yt=mt(ct,j);if(ct.enteringChildren&&yt){const{delayChildren:Uo}=yt.transition||{};z.delay=Oi(ct.enteringChildren,t,Uo)}}return{animation:j,options:z}}))}if(d.size){const y={};if(typeof l.initial!="boolean"){const x=mt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(y.transition=x.transition)}d.forEach(x=>{const v=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),y[x]=v??null}),f.push({animation:y})}let g=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=hs(),i=!0}}}function uc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!go(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hs(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function en(t,e){t.min=e.min,t.max=e.max}function K(t,e){en(t.x,e.x),en(t.y,e.y)}function fs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const yo=1e-4,hc=1-yo,fc=1+yo,vo=.01,dc=0-vo,pc=0+vo;function W(t){return t.max-t.min}function mc(t,e,n){return Math.abs(t-e)<=n}function ds(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hc&&t.scale<=fc||isNaN(t.scale))&&(t.scale=1),(t.translate>=dc&&t.translate<=pc||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){ds(t.x,e.x,n.x,s?s.originX:void 0),ds(t.y,e.y,n.y,s?s.originY:void 0)}function ps(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function gc(t,e,n,s){ps(t.x,e.x,n.x,s?.x),ps(t.y,e.y,n.y,s?.y)}function ms(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ue(t,e,n,s){ms(t.x,e.x,n.x,s?.x),ms(t.y,e.y,n.y,s?.y)}function gs(t,e,n,s,i){return t-=e,t=ce(t,1/n,s),i!==void 0&&(t=ce(t,1/i,s)),t}function yc(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=gs(t.min,e,n,a,i),t.max=gs(t.max,e,n,a,i)}function ys(t,e,[n,s,i],r,o){yc(t,e[n],e[s],e[i],e.scale,r,o)}const vc=["x","scaleX","originX"],xc=["y","scaleY","originY"];function vs(t,e,n,s){ys(t.x,e,vc,n?n.x:void 0,s?s.x:void 0),ys(t.y,e,xc,n?n.y:void 0,s?s.y:void 0)}function xs(t){return t.translate===0&&t.scale===1}function xo(t){return xs(t.x)&&xs(t.y)}function bs(t,e){return t.min===e.min&&t.max===e.max}function bc(t,e){return bs(t.x,e.x)&&bs(t.y,e.y)}function ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function bo(t,e){return ws(t.x,e.x)&&ws(t.y,e.y)}function Ts(t){return W(t.x)/W(t.y)}function Ps(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function wc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const wo=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Tc=wo.length,Ss=t=>typeof t=="string"?parseFloat(t):t,As=t=>typeof t=="number"||T.test(t);function Pc(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,Sc(s)),t.opacityExit=D(e.opacity??1,0,Ac(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<Tc;o++){const a=wo[o];let c=Cs(e,a),u=Cs(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||As(c)===As(u)?(t[a]=Math.max(D(Ss(c),Ss(u),s),0),(Q.test(u)||Q.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Cs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sc=To(0,.5,fi),Ac=To(.5,.95,H);function To(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function Cc(t,e,n){const s=N(t)?t:Pt(t);return s.start(bn("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Vc=(t,e)=>t.depth-e.depth;class Ec{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){ne(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vc),this.isDirty=!1,this.children.forEach(e)}}function Mc(t,e){const n=U.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(at(s),t(r-e))};return R.setup(s,!0),()=>at(s)}function Qt(t){return N(t)?t.get():t}class Dc{constructor(){this.members=[]}add(e){an(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ne(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ne(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 s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.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 te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ae=["","X","Y","Z"],Rc=1e3;let kc=0;function Ce(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Po(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=zi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",R,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Po(s)}function So({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=kc++,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(Ic),this.nodes.forEach(Wc),this.nodes.forEach(_c),this.nodes.forEach(Bc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new cn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=An(o)&&!Fl(o),this.instance=o;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),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 f=()=>this.root.updateBlockedByResize=!1;R.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=Mc(f,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(Ms)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Gc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=u.getProps(),y=!this.targetLayout||!bo(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...xn(p,"layout"),onPlay:m,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,x,v.path)}else h||Ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),at(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(zc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Po(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(),o&&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(Oc),this.nodes.forEach(Vs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Es);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nc),this.nodes.forEach(Uc),this.nodes.forEach(Lc),this.nodes.forEach(Fc)):this.nodes.forEach(Es),this.clearAllSnapshots();const a=U.now();O.delta=tt(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,ye.update.process(O),ye.preRender.process(O),ye.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jc),this.sharedNodes.forEach($c)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!xo(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||ht(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Xc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Yc))){const{scroll:u}=this.root;u&&(J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}removeElementScroll(o){const a=I();if(K(a,o),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&&K(a,o),J(a.x,l.offset.x),J(a.y,l.offset.y))}return a}applyTransform(o,a=!1,c){const u=c||I();K(u,o);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(u.x,-h.scroll.offset.x),J(u.y,-h.scroll.offset.y)),ht(h.latestValues)&&Jt(u,h.latestValues,h.layout?.layoutBox)}return ht(this.latestValues)&&Jt(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(o){const a=I();K(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ht(u.latestValues))continue;let l;u.instance&&(Je(u.latestValues)&&u.updateSnapshot(),l=I(),K(l,u.measurePageBox())),vs(a,u.latestValues,u.snapshot?.layoutBox,l)}return ht(this.latestValues)&&vs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):K(this.target,this.layout.layoutBox),ro(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||oo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ue(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),K(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===O.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;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Hl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=I());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fs(this.prevProjectionDelta.x,this.projectionDelta.x),fs(this.prevProjectionDelta.y,this.projectionDelta.y)),Rt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ps(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ps(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wt(),this.projectionDelta=wt(),this.projectionDeltaWithTransform=wt()}setAnimationOrigin(o,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},h={...this.latestValues},f=wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=I(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,y=this.getStack(),x=!y||y.members.length<=1,v=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(Kc));this.animationProgress=0;let w;const C=c?.interpolateProjection(o);this.mixTargetDelta=V=>{const M=V/1e3,P=C?.(M);P?(f.x.translate=P.x,f.x.scale=D(o.x.scale,1,M),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=P.y,f.y.scale=D(o.y.scale,1,M),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Ds(f.x,o.x,M),Ds(f.y,o.y,M)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ue(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Hc(this.relativeTarget,this.relativeTargetOrigin,d,M),w&&bc(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=I()),K(w,this.relativeTarget)),g&&(this.animationValues=h,Pc(h,l,this.latestValues,M,v,x)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(at(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Cc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Rc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=o;if(!(!a||!c||!u)){if(this!==o&&this.layout&&u&&Ao(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||I();const h=W(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=W(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}K(a,c),Jt(a,l),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Dc),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Ce("z",o,u,this.animationValues);for(let l=0;l<Ae.length;l++)Ce(`rotate${Ae[l]}`,o,u,this.animationValues),Ce(`skew${Ae[l]}`,o,u,this.animationValues);o.render();for(const l in u)o.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Qt(a?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Qt(a?.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=wc(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:o.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in tn){if(l[p]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=tn[p],x=h==="none"?l[p]:m(l[p],u);if(g){const v=g.length;for(let w=0;w<v;w++)o[g[w]]=x}else y?this.options.visualElement.renderState.vars[p]=x:o[p]=x}this.options.layoutId&&(o.pointerEvents=u===this?Qt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Vs),this.root.sharedNodes.clear()}}}function Lc(t){t.updateLayout()}function Fc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Z(l=>{const h=r?e.measuredBox[l]:e.layoutBox[l],f=W(h);h.min=n[l].min,h.max=h.min+f});else if(i==="x"||i==="y"){const l=i==="x"?"y":"x";en(r?e.measuredBox[l]:e.layoutBox[l],n[l])}else Ao(i,e.layoutBox,n)&&Z(l=>{const h=r?e.measuredBox[l]:e.layoutBox[l],f=W(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const o=wt();Rt(o,n,e.layoutBox);const a=wt();r?Rt(a,t.applyTransform(s,!0),e.measuredBox):Rt(a,n,e.layoutBox);const c=!xo(o);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,p=I();ue(p,e.layoutBox,h.layoutBox,d);const m=I();ue(m,n,f.layoutBox,d),bo(p,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Ic(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Bc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function jc(t){t.clearSnapshot()}function Vs(t){t.clearMeasurements()}function Oc(t){t.isLayoutDirty=!0,t.updateLayout()}function Es(t){t.isLayoutDirty=!1}function Nc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Uc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wc(t){t.resolveTargetDelta()}function _c(t){t.calcProjection()}function zc(t){t.resetSkewAndRotation()}function $c(t){t.removeLeadSnapshot()}function Ds(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Rs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Hc(t,e,n,s){Rs(t.x,e.x,n.x,s),Rs(t.y,e.y,n.y,s)}function Kc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Gc={duration:.45,ease:[.4,0,.1,1]},ks=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ls=ks("applewebkit/")&&!ks("chrome/")?Math.round:H;function Fs(t){t.min=Ls(t.min),t.max=Ls(t.max)}function Xc(t){Fs(t.x),Fs(t.y)}function Ao(t,e,n){return t==="position"||t==="preserve-aspect"&&!mc(Ts(e),Ts(n),.2)}function Yc(t){return t!==t.root&&t.scroll?.wasRoot}const qc=So({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}),Ve={current:void 0},Co=So({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ve.current){const t=new qc({});t.mount(window),t.setOptions({layoutScroll:!0}),Ve.current=t}return Ve.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Dn=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Is(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Zc(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Is(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Is(t[i],null)}}}}function Jc(...t){return b.useCallback(Zc(...t),t)}class Qc extends b.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(Gt(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Gt(s)&&s.offsetWidth||0,r=Gt(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function tu({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){const o=b.useId(),a=b.useRef(null),c=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=b.useContext(Dn),l=t.props?.ref??t?.ref,h=Jc(a,l);return b.useInsertionEffect(()=>{const{width:f,height:d,top:p,left:m,right:g,bottom:y,direction:x}=c.current;if(e||r===!1||!a.current||!f||!d)return;const v=x==="rtl",w=n==="left"?v?`right: ${g}`:`left: ${m}`:v?`left: ${m}`:`right: ${g}`,C=s==="bottom"?`bottom: ${y}`:`top: ${p}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");u&&(V.nonce=u);const M=i??document.head;return M.appendChild(V),V.sheet&&V.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${f}px !important; 5 height: ${d}px !important; 6 ${w}px !important; 7 ${C}px !important; 8 } 9 `),()=>{a.current?.removeAttribute("data-motion-pop-id"),M.contains(V)&&M.removeChild(V)}},[e]),A.jsx(Qc,{isPresent:e,childRef:a,sizeRef:c,pop:r,children:r===!1?t:b.cloneElement(t,{ref:h})})}const eu=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:c,root:u})=>{const l=rn(nu),h=b.useId();let f=!0,d=b.useMemo(()=>(f=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const m of l.values())if(!m)return;s&&s()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,s]);return r&&f&&(d={...d}),b.useMemo(()=>{l.forEach((p,m)=>l.set(m,!1))},[n]),b.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),t=A.jsx(tu,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:c,root:u,children:t}),A.jsx(fe.Provider,{value:d,children:t})};function nu(){return new Map}function Vo(t=!0){const e=b.useContext(fe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=b.useId();b.useEffect(()=>{if(t)return i(r)},[t]);const o=b.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const zt=t=>t.key||"";function Bs(t){const e=[];
vendor: 6,250 bytes, line 9
9return b.Children.forEach(t,n=>{b.isValidElement(n)&&e.push(n)}),e}const su=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:c="top",root:u})=>{const[l,h]=Vo(o),f=b.useMemo(()=>Bs(t),[t]),d=o&&!l?[]:f.map(zt),p=b.useRef(!0),m=b.useRef(f),g=rn(()=>new Map),y=b.useRef(new Set),[x,v]=b.useState(f),[w,C]=b.useState(f);ti(()=>{p.current=!1,m.current=f;for(let P=0;P<w.length;P++){const E=zt(w[P]);d.includes(E)?(g.delete(E),y.current.delete(E)):g.get(E)!==!0&&g.set(E,!1)}},[w,d.length,d.join("-")]);const V=[];if(f!==x){let P=[...f];for(let E=0;E<w.length;E++){const S=w[E],k=zt(S);d.includes(k)||(P.splice(E,0,S),V.push(S))}return r==="wait"&&V.length&&(P=V),C(Bs(P)),v(f),null}const{forceRender:M}=b.useContext(on);return A.jsx(A.Fragment,{children:w.map(P=>{const E=zt(P),S=o&&!l?!1:f===w||d.includes(E),k=()=>{if(y.current.has(E))return;if(g.has(E))y.current.add(E),g.set(E,!0);else return;let B=!0;g.forEach(et=>{et||(B=!1)}),B&&(M?.(),C(m.current),o&&h?.(),s&&s())};return A.jsx(eu,{isPresent:S,initial:!p.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,root:u,onExitComplete:S?void 0:k,anchorX:a,anchorY:c,children:P},E)})})},Eo=b.createContext({strict:!1}),js={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 Os=!1;function iu(){if(Os)return;const t={};for(const e in js)t[e]={isEnabled:n=>js[e].some(s=>!!n[s])};no(t),Os=!0}function Mo(){return iu(),Wl()}function ou(t){const e=Mo();for(const n in t)e[n]={...e[n],...t[n]};no(e)}const ru=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 he(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ru.has(t)}let Do=t=>!he(t);function au(t){typeof t=="function"&&(Do=e=>e.startsWith("on")?!he(e):t(e))}try{au(require("@emotion/is-prop-valid").default)}catch{}function lu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||N(t[i])||(Do(i)||n===!0&&he(i)||!e&&!he(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const ge=b.createContext({});function cu(t,e){if(me(t)){const{initial:n,animate:s}=t;return{initial:n===!1||It(n)?n:void 0,animate:It(s)?s:void 0}}return t.inherit!==!1?e:{}}function uu(t){const{initial:e,animate:n}=cu(t,b.useContext(ge));return b.useMemo(()=>({initial:e,animate:n}),[Ns(e),Ns(n)])}function Ns(t){return Array.isArray(t)?t.join(" "):t}const Rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ro(t,e,n){for(const s in e)!N(e[s])&&!co(s,n)&&(t[s]=e[s])}function hu({transformTemplate:t},e){return b.useMemo(()=>{const n=Rn();return En(n,e,t),Object.assign({},n.vars,n.style)},[e])}function fu(t,e){const n=t.style||{},s={};return Ro(s,n,t),Object.assign(s,hu(t,e)),s}function du(t,e){const n={},s=fu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ko=()=>({...Rn(),attrs:{}});function pu(t,e,n,s){const i=b.useMemo(()=>{const r=ko();return uo(r,e,fo(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ro(r,t.style,t),i.style={...r,...i.style}}return i}const mu=["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 kn(t){return typeof t!="string"||t.includes("-")?!1:!!(mu.indexOf(t)>-1||/[A-Z]/u.test(t))}function gu(t,e,n,{latestValues:s},i,r=!1,o){const c=(o??kn(t)?pu:du)(e,s,i,t),u=lu(e,typeof t=="string",r),l=t!==b.Fragment?{...u,...c,ref:n}:{},{children:h}=e,f=b.useMemo(()=>N(h)?h.get():h,[h]);return b.createElement(t,{...l,children:f})}function yu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:vu(n,s,i,t),renderState:e()}}function vu(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Qt(r[f]);let{initial:o,animate:a}=t;const c=me(t),u=to(t);e&&u&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||o===!1;const h=l?a:o;if(h&&typeof h!="boolean"&&!pe(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=wn(t,f[d]);if(p){const{transitionEnd:m,transition:g,...y}=p;for(const x in y){let v=y[x];if(Array.isArray(v)){const w=l?v.length-1:0;v=v[w]}v!==null&&(i[x]=v)}for(const x in m)i[x]=m[x]}}}return i}const Lo=t=>(e,n)=>{const s=b.useContext(ge),i=b.useContext(fe),r=()=>yu(t,e,s,i);return n?r():rn(r)},xu=Lo({scrapeMotionValuesFromProps:Mn,createRenderState:Rn}),bu=Lo({scrapeMotionValuesFromProps:po,createRenderState:ko}),wu=Symbol.for("motionComponentSymbol");function Tu(t,e,n){const s=b.useRef(n);b.useInsertionEffect(()=>{s.current=n});const i=b.useRef(null);return b.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const Fo=b.createContext({});function vt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Pu(t,e,n,s,i,r){const{visualElement:o}=b.useContext(ge),a=b.useContext(Eo),c=b.useContext(fe),u=b.useContext(Dn),l=u.reducedMotion,h=u.ski
vendor: 25,346 bytes, line 9
9pAnimations,f=b.useRef(null),d=b.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:r}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,m=b.useContext(Fo);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Su(f.current,n,i,m);const g=b.useRef(!1);b.useInsertionEffect(()=>{p&&g.current&&p.update(n,c)});const y=n[_i],x=b.useRef(!!y&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ti(()=>{d.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),b.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),p.enteringChildren=void 0)}),p}function Su(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Io(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&vt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function Io(t){if(t)return t.options.allowProjection!==!1?t.projection:Io(t.parent)}function Ee(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&ou(s);const r=n?n==="svg":kn(t),o=r?bu:xu;function a(u,l){let h;const f={...b.useContext(Dn),...u,layoutId:Au(u)},{isStatic:d}=f,p=uu(u),m=o(u,d);if(!d&&typeof window<"u"){Cu();const g=Vu(f);h=g.MeasureLayout,p.visualElement=Pu(t,m,f,i,g.ProjectionNode,r)}return A.jsxs(ge.Provider,{value:p,children:[h&&p.visualElement?A.jsx(h,{visualElement:p.visualElement,...f}):null,gu(t,u,Tu(m,p.visualElement,l),m,d,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=b.forwardRef(a);return c[wu]=t,c}function Au({layoutId:t}){const e=b.useContext(on).id;return e&&t!==void 0?e+"-"+t:t}function Cu(t,e){b.useContext(Eo).strict}function Vu(t){const e=Mo(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Eu(t,e){if(typeof Proxy>"u")return Ee;const n=new Map,s=(r,o)=>Ee(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Ee(o,void 0,t,e)),n.get(o))})}const Mu=(t,e)=>e.isSVG??kn(t)?new ic(e):new Jl(e,{allowProjection:t!==b.Fragment});class Du extends lt{constructor(e){super(e),e.animationState||(e.animationState=cc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();pe(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 Ru=0;class ku extends lt{constructor(){super(...arguments),this.id=Ru++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=mt(this.node,r,o);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 i=this.node.animationState.setActive("exit",!e);n&&!e&&i.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 Lu={animation:{Feature:Du},exit:{Feature:ku}};function Ut(t){return{point:{x:t.pageX,y:t.pageY}}}const Fu=t=>e=>Sn(e)&&t(e,Ut(e));function kt(t,e,n,s){return Bt(t,e,Fu(n),s)}const Bo=({current:t})=>t?t.ownerDocument.defaultView:null,Us=(t,e)=>Math.abs(t-e);function Iu(t,e){const n=Us(t.x,e.x),s=Us(t.y,e.y);return Math.sqrt(n**2+s**2)}const Ws=new Set(["auto","scroll"]);class jo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=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=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=$t(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Me(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=Iu(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:g}=d,{timestamp:y}=O;this.history.push({...g,timestamp:y});const{onStart:x,onMove:v}=this.handlers;p||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=$t(p,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Me(d.type==="pointercancel"?this.lastMoveEventInfo:$t(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!Sn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=Ut(e),u=$t(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=O;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Me(u,this.history)),this.removeListeners=jt(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Ws.has(s.overflowX)||Ws.has(s.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 s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),R.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),at(this.updatePoint)}}function $t(t,e){return e?{point:e(t.point)}:t}function _s(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me({point:t},e){return{point:t,delta:_s(t,Oo(e)),offset:_s(t,Bu(e)),velocity:ju(e,.1)}}function Bu(t){return t[0]}function Oo(t){return t[t.length-1]}function ju(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Oo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>_(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>_(e)*2&&(s=t[1]);const r=$(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ou(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function zs(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 Nu(t,{top:e,left:n,bottom:s,right:i}){return{x:zs(t.x,n,i),y:zs(t.y,e,s)}}function $s(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Uu(t,e){return{x:$s(t.x,e.x),y:$s(t.y,e.y)}}function Wu(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),tt(0,1,n)}function _u(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 nn=.35;function zu(t=nn){return t===!1?t=0:t===!0&&(t=nn),{x:Hs(t,"left","right"),y:Hs(t,"top","bottom")}}function Hs(t,e,n){return{min:Ks(t,e),max:Ks(t,n)}}function Ks(t,e){return typeof t=="number"?t:t[e]||0}const $u=new WeakMap;class Hu{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=I(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Ut(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yl(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Q.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[y];w&&(x=W(w)*(parseFloat(x)/100))}}this.originPoint[y]=x}),m&&R.update(()=>m(h,f),!1,!0),Ke(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=f;if(p&&this.currentDirection===null){this.currentDirection=Gu(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&R.update(()=>g(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),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 jo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Bo(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&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,s){const{drag:i}=this.getProps();if(!s||!Ht(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Ou(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&vt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Nu(s.layoutBox,e):this.constraints=!1,this.elastic=zu(n),i!==this.constraints&&!vt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=_u(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!vt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=Kl(s,i.root,this.visualElement.getTransformPagePoint());let o=Uu(i.layout.layoutBox,r);if(n){const a=n(zl(o));this.hasMutatedConstraints=!!a,a&&(o=io(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Z(l=>{if(!Ht(l,n,this.currentDirection))return;let h=c&&c[l]||{};(o===!0||o===l)&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ke(this.visualElement,e),s.start(bn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Z(n=>{const{drag:s}=this.getProps();if(!Ht(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],c=r.get()||0;r.set(e[n]-D(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!vt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Z(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=Wu({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(o=>{if(!Ht(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];a.set(D(c,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$u.set(this.visualElement,this);const e=this.visualElement.current,n=kt(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=u.target,d=f!==e&&Pl(f);l&&h&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();vt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Ku(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),R.read(i);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Z(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=nn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Gs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Ku(t,e,n){const s=ts(t,Gs(n)),i=ts(e,Gs(n));return()=>{s(),i()}}function Ht(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Gu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Xu extends lt{constructor(e){super(e),this.removeGroupControls=H,this.removeListeners=H,this.controls=new Hu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H}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 De=t=>(e,n)=>{t&&R.update(()=>t(e,n),!1,!0)};class Yu extends lt{constructor(){super(...arguments),this.removePointerDownListener=H}onPointerDown(e){this.session=new jo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:De(e),onStart:De(n),onMove:De(s),onEnd:(r,o)=>{delete this.session,i&&R.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=kt(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 Re=!1;class qu extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Re&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),te.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Re=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||R.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Pn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Re=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function No(t){const[e,n]=Vo(),s=b.useContext(on);return A.jsx(qu,{...t,layoutGroup:s,switchLayoutGroup:b.useContext(Fo),isPresent:e,safeToRemove:n})}const Zu={pan:{Feature:Yu},drag:{Feature:Xu,ProjectionNode:Co,MeasureLayout:No}};function Xs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&R.postRender(()=>r(e,Ut(e)))}class Ju extends lt{mount(){const{current:e}=this.node;e&&(this.unmount=xl(e,(n,s)=>(Xs(this.node,s,"Start"),i=>Xs(this.node,i,"End"))))}unmount(){}}class Qu extends lt{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=jt(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ys(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&R.postRender(()=>r(e,Ut(e)))}class th extends lt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Al(e,(i,r)=>(Ys(this.node,r,"Start"),(o,{success:a})=>Ys(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const sn=new WeakMap,ke=new WeakMap,eh=t=>{const e=sn.get(t.target);e&&e(t)},nh=t=>{t.forEach(eh)};function sh({root:t,...e}){const n=t||document;ke.has(n)||ke.set(n,{});const s=ke.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(nh,{root:t,...e})),s[i]}function ih(t,e,n){const s=sh(e);return sn.set(t,n),s.observe(t),()=>{sn.delete(t),s.unobserve(t)}}const oh={some:0,all:1};class rh extends lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:oh[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,r&&!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(),f=u?l:h;f&&f(c)};this.stopObserver=ih(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ah(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function ah({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const lh={inView:{Feature:rh},tap:{Feature:th},focus:{Feature:Qu},hover:{Feature:Ju}},ch={layout:{ProjectionNode:Co,MeasureLayout:No}},uh={...Lu,...lh,...Zu,...ch},qs=Eu(uh,Mu),Zs="/assets/svg/babblio-app-1-pf3yjPCt.svg",hh="/assets/svg/babblio-app-2-G9wTUXIf.svg",fh="/assets/svg/Streak-1-HUZI4vb9.svg",dh="/assets/svg/Streak-2-CYo-iypo.svg",ph="/assets/svg/level-1-ZmcEqorv.svg",mh="/assets/svg/level-2-DrGeDPpg.svg",gh="/assets/svg/role-play-1-DfxUAa7v.svg",yh="/assets/svg/role-play-2-C5ujwCUC.svg",vh="/assets/svg/group-discussion-1-Q1vb4rfI.svg",xh="/assets/svg/group-discussion-2-DiRJsVEw.svg",bh="/assets/svg/one-to-one-discussion-1-ChsUGNoC.svg",wh="/assets/svg/one-to-one-discussion-2-mF6jrogC.svg",Th="/assets/svg/random-live-call-1-CH1H3FIm.svg",Ph="/assets/svg/random-live-call-DfyXk5RS.svg",Sh="/assets/svg/course-1-4oPrTxmR.svg",Ah="/assets/svg/course-2-B6s3cozg.svg",Ch="/assets/svg/invite-friend-2-CtqMIAOz.svg",Vh="/assets/svg/invite-friend-3-CQlopA3p.svg",Eh="/assets/svg/leaderboard-CDRpbXZc.svg",Mh="/assets/svg/leaderboard2-CXw_dyql.svg",Dh="/assets/svg/Ai%20Mentor-Dsb8Jn9n.svg",ee=[{title:"Babblio App",icon:rr,tagline:"Your All-in-One English Learning Platform",description:"Babblio connects you with real tutors and language partners for natural, interactive English practice. Build speaking, listening, and comprehension skills through live conversations.",bullets:["Live tutor sessions","Interactive conversations","Track progress daily"],images:[Zs,hh]},{title:"AI Learning",icon:Wo,tagline:"Your Personal English Coach, Awake 24/7",description:"Meet your AI English tutor â awake 24/7. It listens to your voice, spots grammar and vocabulary slips, and corrects you instantly like a real teacher.",bullets:["Real-time grammar & pronunciation feedback","Fluency score after every session","Practice anytime â no scheduling needed"],images:[Dh]},{title:"Kids Classes",icon:tr,tagline:"Fun English Classes Kids Actually Love",description:"Help your child speak English with confidence â live classes with kid-friendly, verified teachers, AI speech coaching, and fun practice rooms designed just for children.",bullets:["AI speech coach with bilingual feedback","Live audio rooms with up to 8 peers","1-on-1 calls & trial classes with verified teachers"],images:[Zo,Zs],ctaHref:ot.KIDS,ctaLabel:"Explore Babblio Kids"},{title:"Streak",icon:ir,tagline:"Stay Consistent, Stay Fluent",description:"Build momentum with daily streaks. Every time you complete a lesson, quiz, or conversation your streak grows â keeping you motivated and on track.",bullets:["Daily practice reminders","Streak milestones & rewards","Never break the chain"],images:[fh,dh]},{title:"Level Up",icon:fr,tagline:"Earn XP and Unlock New Levels",description:"As you complete lessons and challenges you earn experience points and level up, unlocking new content and showcasing your growth.",bullets:["XP-based progression","Unlock advanced content","Visual achievement badges"],images:[p
9h,mh]},{title:"Role Play",icon:nr,tagline:"Practice Real-World Conversations",description:"Simulate job interviews, shopping trips, travel scenarios and more. Role play builds the confidence to handle real English conversations with ease.",bullets:["20+ real-world scenarios","AI-guided feedback","Build speaking confidence"],images:[gh,yh]},{title:"Group Discussion",icon:_o,tagline:"Learn Together, Grow Faster",description:"Join live group discussions with co-learners from all over the world. Express your opinions, debate topics, and sharpen your communication in a supportive environment.",bullets:["Live group sessions","Co-learners from around the world","Diverse discussion topics"],images:[xh,vh],path:ot.FEATURE_GROUP_DISCUSSION},{title:"1:1 Discussion",icon:zo,tagline:"Personalized One-on-One English Sessions",description:"Have focused 1:1 sessions with a co-learner from anywhere in the world. Get direct feedback on your speaking style, pronunciation, and grammar in a private setting.",bullets:["Private 1:1 sessions","Co-learners from all over the world","Personalized feedback"],images:[bh,wh],path:ot.FEATURE_ONE_TO_ONE_DISCUSSION},{title:"Live Random Call",icon:Jo,tagline:"Speak with Anyone, Anytime",description:"Connect instantly with a random learner and start a real English conversation. The best way to push your comfort zone and build spontaneous speaking skills.",bullets:["Instant connections","Random partner matching","Speak without preparation"],images:[Ph,Th]},{title:"Course",icon:$o,tagline:"Structured Learning for Real Results",description:"Follow curated English courses designed around your goals â from beginner basics to business English and IELTS preparation.",bullets:["Goal-based curriculum","Step-by-step lessons","IELTS & business English"],images:[Sh,Ah]},{title:"Invite Friends",icon:ur,tagline:"Learn Better Together",description:"Invite friends to Babblio and practice English together. Learning with someone you know makes practice more consistent and fun.",bullets:["Refer & earn rewards","Practice with friends","Group challenges"],images:[Ch,Vh]},{title:"Leader Board",icon:lr,tagline:"Compete, Climb, and Celebrate",description:"See how you rank among other learners. Earn points from every session and climb the leaderboard to prove your dedication.",bullets:["Weekly & monthly rankings","Earn points every session","Top learner spotlight"],images:[Mh,Eh]}],Js="linear-gradient(319.48deg,#FDBA00_-23.68%,#FF37DF_13.1%,#9333ea_73.14%)",Rh=ee.reduce((t,e,n)=>(e.path&&(t[e.path]=n),t),{}),Qs={[ot.FEATURE]:{title:"App Features â AI Tutor, Group Discussion, 1:1 Calls | Babblio",description:"Explore Babblio's powerful features â AI tutor, group discussions, 1:1 live calls, IELTS prep, streak system & more. Download free on Android & iOS!"},[ot.FEATURE_GROUP_DISCUSSION]:{title:"Live Group Discussion with Co-Learners Worldwide | Babblio",description:"Join live English group discussions on Babblio with co-learners from all over the world. Debate topics, share opinions, and build speaking confidence in a supportive group setting."},[ot.FEATURE_ONE_TO_ONE_DISCUSSION]:{title:"1:1 English Speaking Practice with Co-Learners Worldwide | Babblio",description:"Practice English 1:1 with a co-learner from anywhere in the world on Babblio. Get personalized feedback on pronunciation, grammar, and fluency in private sessions."}},Nh=()=>{const{pathname:t}=Xo(),e=Yo(),[n,s]=b.useState(()=>Rh[t]??0),i=ee[n],r=i.icon,o=Qs[t]??Qs[ot.FEATURE],a=c=>{const u=ee[c].path??ot.FEATURE;u!==t&&e(u),s(c)};return A.jsxs("section",{className:"relative overflow-hidden flex flex-col justify-center mt-0 items-center w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 md:py-14 gap-8 bg-[linear-gradient(90deg,#faf4f7_0%,#fdf8ef_100%)]",children:[A.jsxs(Ho,{children:[A.jsx("title",{children:o.title}),A.jsx("meta",{name:"description",content:o.description}),A.jsx("link",{rel:"canonical",href:`https://babblio.io${t}`})]}),A.jsx("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 w-[700px] h-[320px] bg-gradient-to-r from-primary/10 via-amber-200/20 to-primary/10 blur-3xl rounded-full -z-10 pointer-events-none"}),A.jsxs("div",{className:"flex flex-col items-center gap-3 text-center max-w-2xl",children:[A.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary-light/70 border border-primary/20 shadow-sm",children:[A.jsx(Ko,{size:15,className:"text-amber-500",fill:"currentColor"}),A.jsx("span",{className:"text-[13px] font-semibold text-on-surface",children:"Everything you need, in one app"})]}),A.jsx("h2",{className:`font-poppins font-light leading-tight 10 text-xl sm:text-2xl md:text-3xl lg:text-[38px] 11 bg-[linear-gradient(319.48deg,#FDBA00_-23.68%,#FF37DF_13.1%,#9333ea_73.14%)] 12 bg-clip-text text-transparent`,children:"A Mobile App Packed with Powerful Features"})]}),A.jsx("div",{className:"w-full overflow-x-auto pb-1 hide-scrollbar",children:A.jsx("div",{className:"flex gap-2 sm:gap-3 w-max mx-auto px-2",children:ee.map((c,u)=>{const l=c.icon,h=n===u;return A.jsxs("button",{onClick:()=>a(u),className:`flex items-center gap-2 pl-2 pr-4 py-1.5 rounded-full text-sm sm:text-base font-poppins font-medium whitespace-nowrap border transition-all duration-200 13 ${h?"bg-white border-primary/20 shadow-lg shadow-primary/10 scale-105":"bg-surface-container-low border-transparent text-on-surface-variant hover:border-primary/20 hover:bg-white"}`,children:[A.jsx("span",{className:`flex items-center justify-center w-7 h-7 rounded-full shrink-0 ${h?"text-white":"bg-primary-light text-primary"}`,style:h?{background:Js}:void 0,children:A.jsx(l,{size:14,strokeWidth:2.25})}),A.jsx("span",{className:h?"bg-[linear-gradient(319.48deg,#FDBA00_-23.68%,#FF37DF_13.1%,#9333ea_73.14%)] bg-clip-text text-transparent font-semibold":"",children:c.title})]},c.title)})})}),A.jsx(su,{mode:"wait",children:A.jsxs(qs.div,{initial:{opacity:0,y:20}
13,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.35},className:`w-full grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-14 items-center 14 bg-surface rounded-[1.75rem] border border-outline-variant 15 shadow-xl shadow-primary/5 p-5 sm:p-8 lg:p-12`,children:[A.jsxs("div",{className:"flex flex-col gap-4 px-2",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("span",{className:"w-14 h-14 shrink-0 rounded-2xl flex items-center justify-center text-white shadow-lg shadow-purple-500/25",style:{background:Js},children:A.jsx(r,{size:26,strokeWidth:2})}),A.jsxs("div",{children:[A.jsx("h3",{className:`font-poppins font-semibold text-xl sm:text-2xl lg:text-3xl 16 bg-[linear-gradient(319.48deg,#FDBA00_-23.68%,#FF37DF_13.1%,#9333ea_73.14%)] 17 bg-clip-text text-transparent`,children:i.title}),A.jsx("p",{className:"text-[#3b0764] font-poppins text-sm sm:text-base font-medium",children:i.tagline})]})]}),A.jsx("p",{className:"text-[#555555] font-poppins text-sm sm:text-base leading-relaxed",children:i.description}),A.jsx("ul",{className:"flex flex-col gap-2.5",children:i.bullets.map(c=>A.jsxs("li",{className:"flex items-center gap-2.5",children:[A.jsx("span",{className:"w-6 h-6 flex-shrink-0 rounded-full bg-primary-light flex items-center justify-center",children:A.jsx(Go,{size:13,className:"text-primary",strokeWidth:3})}),A.jsx("span",{className:"text-[#3b0764] font-poppins text-sm sm:text-base",children:c})]},c))}),i.ctaHref?A.jsxs(qo,{to:i.ctaHref,className:`mt-2 self-start inline-flex items-center gap-2 px-6 py-3 rounded-full text-white font-semibold font-poppins text-sm sm:text-base 18 bg-primary hover:bg-primary-container 19 hover:scale-105 transition-all duration-200 shadow-xl shadow-primary/25 group`,children:[A.jsx("span",{children:i.ctaLabel??`Explore ${i.title}`}),A.jsx(Ln,{size:16,className:"transition-transform group-hover:translate-x-1"})]}):A.jsxs("a",{href:"https://play.google.com/store/apps/details?id=com.babblio.android",target:"_blank",rel:"noopener noreferrer",className:`mt-2 self-start inline-flex items-center gap-2 px-6 py-3 rounded-full text-white font-semibold font-poppins text-sm sm:text-base 20 bg-primary hover:bg-primary-container 21 hover:scale-105 transition-all duration-200 shadow-xl shadow-primary/25 group`,children:[A.jsxs("span",{children:["Try ",i.title," Free"]}),A.jsx(Ln,{size:16,className:"transition-transform group-hover:translate-x-1"})]})]}),A.jsx("div",{className:"flex gap-3 sm:gap-4 items-center justify-center",children:i.images.map((c,u)=>A.jsx(qs.img,{src:c,alt:`${i.title} screenshot ${u+1}`,className:`rounded-2xl shadow-2xl shadow-purple-950/10 border border-outline-variant object-contain max-h-[420px] sm:max-h-[480px] ${u===1?"animate-floaty":""}`,initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},transition:{delay:u*.1,duration:.4}},u))})]},n)}),A.jsx("style",{children:` 22 .hide-scrollbar::-webkit-scrollbar { display: none; } 23 .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } 24 `})]})};export{Nh as default};
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.