PageSourceSearch

https://cloudmd.ai/assets/index-CIdAuV2p.js

js cloudmd.ai collected 2026-10-05 14:06:01 UTC 150,374 bytes, 1 lines download raw bytes

vendor: 29,450 bytes, line 1
1import{r as S,j as d,L as Oe}from"./index-Dk8jGGpH.js";import{N as Xr,F as Yr}from"./Footer-EBvC1eCh.js";import{S as yt}from"./Section-DfVSpBd5.js";const ii=S.createContext({});function Nt(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const qr=typeof window<"u",ri=qr?S.useLayoutEffect:S.useEffect,dn=S.createContext(null);function hn(t,e){t.indexOf(e)===-1&&t.push(e)}function ie(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const et=(t,e,n)=>n>e?e:n<t?t:n;let fn=()=>{};const ot={},oi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ai(t){return typeof t=="object"&&t!==null}const li=t=>/^0[^.\s]+$/u.test(t);function ci(t){let e;return()=>(e===void 0&&(e=t()),e)}const z=t=>t,Zr=(t,e)=>n=>e(t(n)),Ut=(...t)=>t.reduce(Zr),Lt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class mn{constructor(){this.subscriptions=[]}add(e){return hn(this.subscriptions,e),()=>ie(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const H=t=>t*1e3,$=t=>t/1e3;function ui(t,e){return e?t*(1e3/e):0}const di=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Jr=1e-7,Qr=12;function to(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=di(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Jr&&++a<Qr);return r}function Wt(t,e,n,s){if(t===e&&n===s)return z;const i=o=>to(o,0,1,t,n);return o=>o===0||o===1?o:di(i(o),e,s)}const hi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,fi=t=>e=>1-t(1-e),mi=Wt(.33,1.53,.69,.99),pn=fi(mi),pi=hi(pn),gi=t=>t>=1?1:(t*=2)<1?.5*pn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),yi=fi(gn),xi=hi(gn),eo=Wt(.42,0,1,1),no=Wt(0,0,.58,1),vi=Wt(.42,0,.58,1),so=t=>Array.isArray(t)&&typeof t[0]!="number",bi=t=>Array.isArray(t)&&typeof t[0]=="number",io={linear:z,easeIn:eo,easeInOut:vi,easeOut:no,circIn:gn,circInOut:xi,circOut:yi,backIn:pn,backInOut:pi,backOut:mi,anticipate:gi},ro=t=>typeof t=="string",Fn=t=>{if(bi(t)){fn(t.length===4);const[e,n,s,i]=t;return Wt(e,n,s,i)}else if(ro(t))return io[t];return t},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oo(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(c),n.clear(),i=!1,o&&(o=!1,u.process(l))}};return u}const ao=40;function wi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Gt.reduce((v,T)=>(v[T]=oo(o),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:m,postRender:p}=r,g=()=>{const v=ot.useManualTiming,T=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,ao),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Gt.reduce((v,T)=>{const A=r[T];return v[T]=(R,O=!1,C=!1)=>(n||y(),A.schedule(R,O,C)),v},{}),cancel:v=>{for(let T=0;T<Gt.length;T++)r[Gt[T]].cancel(v)},state:i,steps:r}}const{schedule:V,cancel:st,state:F,steps:ve}=wi(typeof requestAnimationFrame<"u"?requestAnimationFrame:z,!0);let qt;function lo(){qt=void 0}const U={now:()=>(qt===void 0&&U.set(F.isProcessing||ot.useManualTiming?F.timestamp:performance.now()),qt),set:t=>{qt=t,queueMicrotask(lo)}},Ti=t=>e=>typeof e=="string"&&e.startsWith(t),Si=Ti("--"),co=Ti("var(--"),yn=t=>co(t)?uo.test(t.split("/*")[0].trim()):!1,uo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function On(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},It={...Pt,transform:t=>et(0,1,t)},$t={...Pt,default:1},Mt=t=>Math.round(t*1e5)/1e5,xn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ho(t){return t==null}const fo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vn=(t,e)=>n=>!!(typeof n=="string"&&fo.test(n)&&n.startsWith(t)||e&&!ho(n)&&Object.prototype.hasOwnProperty.call(n,e)),Pi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(xn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},mo=t=>et(0,255,t),be={...Pt,transform:t=>Math.round(mo(t))},ht={test:vn("rgb","red"),parse:Pi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+be.transform(t)+", "+be.transform(e)+", "+be.transform(n)+", "+Mt(It.transform(s))+")"};function po(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 Ue={test:vn("#"),parse:po,transform:ht.transform},Kt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=Kt("deg"),tt=Kt("%"),b=Kt("px"),go=Kt("vh"),yo=Kt("vw"),Un={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},bt={test:vn("hsl","hue"),parse:Pi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(Mt(e))+", "+tt.transform(Mt(n))+", "+Mt(It.transform(s))+")"},E={test:t=>ht.test(t)||Ue.test(t)||bt.test(t),parse:t=>ht.test(t)?ht.parse(t):bt.test(t)?bt.parse(t):Ue.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):bt.transform(t),getAnimatableNone:t=>{const e=E.parse(t);return e.alpha=0,E.transform(e)}},xo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vo(t){return isNaN(t)&&typeof t=="string"&&(t.match(xn)?.length||0)+(t.match(xo)?.length||0)>0}const Ai="number",Ci="color",bo="var",wo="var(",Wn="${}",To=/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 St(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(To,c=>(E.test(c)?(s.color.push(o),i.push(Ci),n.push(E.parse(c))):c.startsWith(wo)?(s.var.push(o),i.push(bo),n.push(c)):(s.number.push(o),i.push(Ai),n.push(parseFloat(c))),++o,Wn)).split(Wn);return{values:n,split:a,indexes:s,types:i}}function So(t){return St(t).values}function Vi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===Ai?i+=Mt(s[o]):r===Ci?i+=E.transform(s[o]):i+=s[o]}return i}}function Po(t){return Vi(St(t))}const Ao=t=>typeof t=="number"?0:E.test(t)?E.getAnimatableNone(t):t,Co=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Ao(t);function Vo(t){const e=St(t);return Vi(e)(e.values.map((s,i)=>Co(s,e.split[i])))}const Y={test:vo,parse:So,createTransformer:Po,getAnimatableNone:Vo};function we(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 jo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=we(c,a,t+1/3),o=we(c,a,t),r=we(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const j=(t,e,n)=>t+(e-t)*n,Te=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Mo=[Ue,ht,bt],ko=t=>Mo.find(e=>e.test(t));function Kn(t){const e=ko(t);if(!e)return!1;let n=e.parse(t);return e===bt&&(n=jo(n)),n}const Hn=(t,e)=>{const n=Kn(t),s=Kn(e);if(!n||!s)return re(t,e);const i={...n};return o=>(i.red=Te(n.red,s.red,o),i.green=Te(n.green,s.green,o),i.blue=Te(n.blue,s.blue,o),i.alpha=j(n.alpha,s.alpha,o),ht.transform(i))},We=new Set(["none","hidden"]);function Do(t,e){return We.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Eo(t,e){return n=>j(t,e,n)}function bn(t){return typeof t=="number"?Eo:typeof t=="string"?yn(t)?re:E.test(t)?Hn:Lo:Array.isArray(t)?ji:typeof t=="object"?E.test(t)?Hn:Ro:re}function ji(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>bn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Ro(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=bn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function No(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Lo=(t,e)=>{const n=Y.createTransformer(e),s=St(t),i=St(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?We.has(t)&&!i.values.length||We.has(e)&&!s.values.length?Do(t,e):Ut(ji(No(s,i),i.values),n):re(t,e)};function Mi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?j(t,e,n):bn(t)(t,e)}const Io=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>st(e),now:()=>F.isProcessing?F.timestamp:U.now()}},ki=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},oe=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<oe;)e+=n,s=t.next(e);return e>=oe?1/0:e}function Bo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),oe);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:$(i)}}const k={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 Ke(t,e){return t*Math.sqrt(1-e*e)}const Fo=12;function Oo(t,e,n){let s=n;for(let i=1;i<Fo;i++)s=s-t(s)/e(s);return s}const Se=.001;function Uo({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,o,r=1-e;r=et(k.minDamping,k.maxDamping,r),t=et(k.minDuration,k.maxDuration,$(t)),r<1?(i=u=>{const l=u*r,h=l*t,f=l-n,m=Ke(u,r),p=Math.exp(-h);return Se-f/m*p},o=u=>{const h=u*r*t,f=h*n+n,m=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=Ke(Math.pow(u,2),r);return(-i(u)+Se>0?-1:1)*((f-m)*p)/g}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-Se+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Oo(i,o,a);if(t=H(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Wo=["duration","bounce"],Ko=["stiffness","damping","mass"];function Gn(t,e){return e.some(n=>t[n]!==void 0)}function Ho(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!Gn(t,Ko)&&Gn(t,Wo))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:o}}else{const n=Uo({...t,velocity:0});e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function ae(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:m}=Ho({...n,velocity:-$(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(c*l)),y=r-o,x=$(Math.sqrt(c/l)),w=Math.abs(y)<5;s||(s=w?k.restSpeed.granular:k.restSpeed.default),i||(i=w?k.restDelta.granular:k.restDelta.default);let v,T,A,R,O,C;if(g<1)A=Ke(x,g),R=(p+g*x*y)/A,v=P=>{const D=Math.exp(-g*x*P);return r-D*(R*Math.sin(A*P)+y*Math.cos(A*P))},O=g*x*R+y*A,C=g*x*y-R*A,T=P=>Math.exp(-g*x*P)*(O*Math.sin(A*P)+C*Math.cos(A*P));else if(g===1){v=D=>r-Math.exp(-x*D)*(y+(p+x*y)*D);const P=p+x*y;T=D=>Math.exp(-x*D)*(x*P*D-p)}else{const P=x*Math.sqrt(g*g-1);v=q=>{const nt=Math.exp(-g*x*q),Z=Math.min(P*q,300);return r-nt*((p+g*x*y)*Math.sinh(Z)+P*y*Math.cosh(Z))/P};const D=(p+g*x*y)/P,K=g*x*D-y*P,lt=g*x*y-D*P;T=q=>{const nt=Math.exp(-g*x*q),Z=Math.min(P*q,300);return nt*(K*Math.sinh(Z)+lt*Math.cosh(Z))}}const I={calculatedDuration:m&&h||null,velocity:P=>H(T(P)),next:P=>{if(!m&&g<1){const K=Math.exp(-g*x*P),lt=Math.sin(A*P),q=Math.cos(A*P),nt=r-K*(R*lt+y*q),Z=H(K*(O*lt+C*q));return a.done=Math.abs(Z)<=s&&Math.abs(r-nt)<=i,a.value=a.done?r:nt,a}const D=v(P);if(m)a.done=P>=h;else{const K=H(T(P));a.done=Math.abs(K)<=s&&Math.abs(r-D)<=i}return a.value=a.done?r:D,a},toString:()=>{const P=Math.min(wn(I),oe),D=ki(K=>I.next(P*K).value,P,30);return P+"ms "+D},toTransition:()=>{}};return I}ae.applyToOptions=t=>{const e=Bo(t,100,ae);return t.ease=e.ease,t.duration=H(e.duration),t.type="keyframes",t};const Go=5;function Di(t,e,n){const s=Math.max(e-Go,0);return ui(n-t(s),e-s)}function He({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},m=C=>a!==void 0&&C<a||c!==void 0&&C>c,p=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let g=n*e;const y=h+g,x=r===void 0?y:r(y);x!==y&&(g=x-h);const w=C=>-g*Math.exp(-C/s),v=C=>x+w(C),T=C=>{const I=w(C),P=v(C);f.done=Math.abs(I)<=u,f.value=f.done?x:P};let A,R;const O=C=>{m(f.value)&&(A=C,R=ae({keyframes:[f.value,p(f.value)],velocity:Di(v,C,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return O(0),{calculatedDuration:null,next:C=>{let I=!1;return!R&&A===void 0&&(I=!0,T(C),O(C)),A!==void 0&&C>=A?R.next(C-A):(!I&&T(C),f)}}}function $o(t,e,n){const s=[],i=n||ot.mix||Mi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||z:e;a=Ut(c,a)}s.push(a)}return s}function Ei(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(fn(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=$o(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Lt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(et(t[0],t[o-1],l)):u}function zo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(j(n,1,i))}}function _o(t){const e=[0];return zo(e,t.length-1),e}function Xo(t,e){return t.map(n=>n*e)}function Yo(t,e){return t.map(()=>e||vi).splice(0,t.length-1)}function kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=so(s)?s.map(Fn):Fn(s),o={done:!1,value:e[0]},r=Xo(n&&n.length===e.length?n:_o(e),t),a=Ei(r,e,{ease:Array.isArray(i)?i:Yo(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const qo=t=>t!==null;function me(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(qo),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Zo={decay:He,inertia:He,tween:kt,keyframes:kt,spring:ae};function Ri(t){typeof t.type=="string"&&(t.type=Zo[t.type])}class Tn{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 Jo=t=>t/100;class Bt extends Tn{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;Ri(e);const{type:n=kt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||kt;c!==kt&&typeof a[0]!="number"&&(this.mixKeyframes=Ut(Jo,Mi(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=wn(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:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:m,type:p,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,T=s;if(h){const C=Math.min(this.currentTime,i)/a;let I=Math.floor(C),P=C%1;!P&&C>=1&&(P=1),P===1&&I--,I=Math.min(I,h+1),I%2&&(f==="reverse"?(P=1-P,m&&(P-=m/a)):f==="mirror"&&(T=r)),v=et(0,1,P)*a}let A;w?(this.delayState.value=l[0],A=this.delayState):A=T.next(v),o&&!w&&(A.value=o(A.value));let{done:R}=A;!w&&c!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return O&&p!==He&&(A.value=me(l,this.options,y,this.speed)),g&&g(A.value),O&&this.finish(),A}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=H(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){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 Di(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=Io,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 Qo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Ge=t=>{const e=ft(Math.atan2(t[1],t[0]));return $e(e)},ta={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ge,rotateZ:Ge,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},$e=t=>(t=t%360,t<0&&(t+=360),t),$n=Ge,zn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),_n=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ea={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zn,scaleY:_n,scale:t=>(zn(t)+_n(t))/2,rotateX:t=>$e(ft(Math.atan2(t[6],t[5]))),rotateY:t=>$e(ft(Math.atan2(-t[2],t[0]))),rotateZ:$n,rotate:$n,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ze(t){return t.includes("scale")?1:0}function _e(t,e){if(!t||t==="none")return ze(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ea,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ta,i=a}if(!i)return ze(e);const o=s[e],r=i[1].split(",").map(sa);return typeof o=="function"?o(r):r[o]}const na=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return _e(n,e)};function sa(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),Xn=t=>t===Pt||t===b,ia=new Set(["x","y","z"]),ra=At.filter(t=>!ia.has(t));function oa(t){const e=[];return ra.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const rt={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})=>_e(e,"x"),y:(t,{transform:e})=>_e(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const mt=new Set;let Xe=!1,Ye=!1,qe=!1;function Ni(){if(Ye){const t=Array.from(mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=oa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ye=!1,Xe=!1,mt.forEach(t=>t.complete(qe)),mt.clear()}function Li(){mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ye=!0)})}function aa(){qe=!0,Li(),Ni(),qe=!1}class Sn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),Xe||(Xe=!0,V.read(Li),V.resolveKeyframes(Ni))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Qo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),mt.delete(this)}cancel(){this.state==="scheduled"&&(mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const la=t=>t.startsWith("--");function Ii(t,e,n){la(e)?t.style.setProperty(e,n):t.style[e]=n}const ca={};function Bi(t,e){const n=ci(t);return()=>ca[e]??n()}const ua=Bi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Fi=Bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jt([0,.65,.55,1]),circOut:jt([.55,0,1,.45]),backIn:jt([.31,.01,.66,-.59]),backOut:jt([.33,1.53,.69,.99])};function Oi(t,e){if(t)return typeof t=="function"?Fi()?ki(t,e):"ease-out":bi(t)?jt(t):Array.isArray(t)?t.map(n=>Oi(n,e)||Yn.easeOut):Yn[t]}function da(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=Oi(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Ui(t){return typeof t=="function"&&"applyToOptions"in t}function ha({type:t,...e}){return Ui(t)&&Fi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Wi extends Tn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,fn(typeof e.type!="string");const u=ha(e);this.animation=da(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=me(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Ii(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=H(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&&ua()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),z):i(this)}}const Ki={anticipate:gi,backInOut:pi,circInOut:xi};function fa(t){return t in Ki}function ma(t){typeof t.ease=="string"&&fa(t.ease)&&(t.ease=Ki[t.ease])}const Pe=10;class pa extends Wi{constructor(e){ma(e),Ri(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:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Bt({...r,autoplay:!1}),c=Math.max(Pe,U.now()-this.startTime),u=et(0,Pe,c-Pe),l=a.sample(c).value,{name:h}=this.options;o&&h&&Ii(o,h,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function ga(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 ya(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=qn(i,e),a=qn(o,e);return!r||!a?!1:ga(t)||(n==="spring"||Ui(n))&&s}function Ze(t){t.duration=0,t.type="keyframes"}const Hi=new Set(["opacity","clipPath","filter","transform"]),xa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function va(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&xa.test(t[e]))return!0;return!1}const ba=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),wa=ci(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ta(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return wa()&&n&&(Hi.has(n)||ba.has(n)&&va(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Sa=40;class Pa extends Tn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},m=l?.KeyframeResolver||Sn;this.keyframeResolver=new m(a,(p,g,y)=>this.onKeyframesResolved(p,g,f,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=U.now();let h=!0;ya(e,o,r,a)||(h=!1,(ot.instantAnimations||!c)&&l?.(me(e,s,n)),e[0]=e[e.length-1],Ze(s),s.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Sa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!u&&Ta(m),g=m.motionValue?.owner?.current;let y;if(p)try{y=new pa({...m,element:g})}catch{y=new Bt(m)}else y=new Bt(m);y.finished.then(()=>{this.notifyFinished()}).catch(z),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),aa()),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 Gi(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Aa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ca(t){const e=Aa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function $i(t,e,n=1){const[s,i]=Ca(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return oi(r)?parseFloat(r):r}return yn(i)?$i(i,e,n+1):i}const Va={type:"spring",stiffness:500,damping:25,restSpeed:10},ja=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ma={type:"keyframes",duration:.8},ka={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Da=(t,{keyframes:e})=>e.length>2?Ma:Ct.has(t)?t.startsWith("scale")?ja(e[1]):Va:ka;function zi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Pn(t,e){const n=t?.[e]??t?.default??t;return n!==t?zi(n,t):n}const Ea=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ra(t){for(const e in t)if(!Ea.has(e))return!0;return!1}const An=(t,e,n,s={},i,o)=>r=>{const a=Pn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-H(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:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ra(a)||Object.assign(l,Da(t,l)),l.duration&&(l.duration=H(l.duration)),l.repeatDelay&&(l.repeatDelay=H(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ze(l),l.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,Ze(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=me(l.keyframes,a);if(f!==void 0){V.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Bt(l):new Pa(l)};function Zn(t){const e=[{},{}];
vendor: 4,762 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Cn(t,e,n,s){if(typeof e=="function"){const[i,o]=Zn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Zn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function pt(t,e,n){const s=t.getProps();return Cn(s,e,n!==void 0?n:s.custom,t)}const _i=new Set(["width","height","top","left","right","bottom",...At]),Jn=30,Na=t=>!isNaN(parseFloat(t)),Dt={current:void 0};class La{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 o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Na(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 mn);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.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 Dt.current&&Dt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Jn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jn);return ui(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 gt(t,e){return new La(t,e)}const Je=t=>Array.isArray(t);function Ia(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function Ba(t){return Je(t)?t[t.length-1]||0:t}function Fa(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ba(o[r]);Ia(t,r,a)}}const L=t=>!!(t&&t.getVelocity);function Oa(t){return!!(L(t)&&t.add)}function Qe(t,e){const n=t.getValue("willChange");if(Oa(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Vn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ua="framerAppearId",Xi="data-"+Vn(Ua);function Yi(t){return t.props[Xi]}function Wa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?zi(o,c):c;const u=o?.reduceMotion;s&&(o=s);const l=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const m=t.getValue(f,t.latestValues[f]??null),p=a[f];if(p===void 0||h&&Wa(h,f))continue;const g={delay:n,...Pn(o||{},f)},y=m.get();if(y!==void 0&&!m.isAnimating()&&!Array.isArray(p)&&p===y&&!g.velocity){V.update(()=>m.set(p));continue}let x=!1;if(window.MotionHandoffAnimation){const T=Yi(t);if(T){const A=window.MotionHandoffAnimation(T,f,V);A!==null&&(g.startTime=A,x=!0)}}Qe(t,f);const w=u??t.shouldReduceMotion;m.start(An(f,m,p,w&&_i.has(f)?{type:!1}:g,t,x));const v=m.animation;v&&l.push(v)}if(r){const f=()=>V.update(()=>{r&&Fa(t,r)});l.length?Promise.all(l).then(f):f()}return l}function tn(t,e,n={}){const s=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};
vendor: 1,314 bytes, line 1
1n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(qi(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=i;return Ka(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Ka(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(tn(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Gi(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Ha(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>tn(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=tn(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(qi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ga={test:t=>t==="auto",parse:t=>t},Zi=t=>e=>e.test(t),Ji=[Pt,b,tt,it,yo,go,Ga],Qn=t=>Ji.find(Zi(t));function $a(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||li(t):!0}const za=new Set(["brightness","contrast","saturate","opacity"]);function _a(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(xn)||[];
vendor: 7,899 bytes, line 1
1if(!s)return t;const i=n.replace(s,"");let o=za.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Xa=/\b([a-z-]*)\(.*?\)/gu,en={...Y,getAnimatableNone:t=>{const e=t.match(Xa);return e?e.map(_a).join(" "):t}},nn={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ts={...Pt,transform:Math.round},Ya={rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:$t,scaleX:$t,scaleY:$t,scaleZ:$t,skew:it,skewX:it,skewY:it,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:It,originX:Un,originY:Un,originZ:b},jn={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...Ya,zIndex:ts,fillOpacity:It,strokeOpacity:It,numOctaves:ts},qa={...jn,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:en,WebkitFilter:en,mask:nn,WebkitMask:nn},Qi=t=>qa[t],Za=new Set([en,nn]);function tr(t,e){let n=Qi(t);return Za.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ja=new Set(["auto","none","0"]);function Qa(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ja.has(o)&&St(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=tr(n,i)}class tl extends Sn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),yn(h))){const f=$i(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!_i.has(s)||e.length!==2)return;const[i,o]=e,r=Qn(i),a=Qn(o),c=On(i),u=On(o);if(c!==u&&rt[s]){this.needsMeasurement=!0;return}if(r!==a)if(Xn(r)&&Xn(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else rt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||$a(e[i]))&&s.push(i);s.length&&Qa(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=rt[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 o=s.length-1,r=s[o];s[o]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function er(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 nr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function el(t){return ai(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Mn}=wi(queueMicrotask,!1),X={x:!1,y:!1};function sr(){return X.x||X.y}function nl(t){return t==="x"||t==="y"?X[t]?null:(X[t]=!0,()=>{X[t]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function ir(t,e){const n=er(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function sl(t){return!(t.pointerType==="touch"||sr())}function il(t,e,n={}){const[s,i,o]=ir(t,n);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},h=y=>{u&&(u(y),u=void 0),l()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(y))},m=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},g=y=>{if(!sl(y))return;c=!1;const x=e(r,y);typeof x=="function"&&(u=x,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",m,i)}),o}const rr=(t,e)=>e?t===e?!0:rr(t,e.parentElement):!1,kn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,rl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ol(t){return rl.has(t.tagName)||t.isContentEditable===!0}const al=new Set(["INPUT","SELECT","TEXTAREA"]);function ll(t){return al.has(t.tagName)||t.isContentEditable===!0}const Zt=new WeakSet;function es(t){return e=>{e.key==="Enter"&&t(e)}}function Ae(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=es(()=>{if(Zt.has(n))return;Ae(n,"down");const i=es(()=>{Ae(n,"up")}),o=()=>Ae(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ns(t){return kn(t)&&!sr()}const ss=new WeakSet;function ul(t,e,n={}){const[s,i,o]=ir(t,n),r=a=>{const c=a.currentTarget;if(!ns(a)||ss.has(a))return;Zt.add(c),n.stopPropagation&&ss.add(a);const u=e(c,a),l=(m,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Zt.has(c)&&Zt.delete(c),ns(m)&&typeof u=="function"&&u(m,{success:p})},h=m=>{l(m,c===window||c===document||n.useGlobalTarget||rr(c,m.target))},f=m=>{l(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),el(a)&&(a.addEventListener("focus",u=>cl(u,i)),!ol(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Dn(t){return ai(t)&&"ownerSVGElement"in t}const Jt=new WeakMap;let Qt;const or=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Dn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],dl=or("inline","width","offsetWidth"),hl=or("block","height","offsetHeight");function fl({target:t,borderBoxSize:e}){Jt.get(t)?.forEach(n=>{n(t,{get width(){return dl(t,e)},get height(){return hl(t,e)}})})}function ml(t){t.forEach(fl)}function pl(){typeof ResizeObserver>"u"||(Qt=new ResizeObserver(ml))}function gl(t,e){Qt||pl();const n=er(t);return n.forEach(s=>{let i=Jt.get(s);i||(i=new Set,Jt.set(s,i)),i.add(e),Qt?.observe(s)}),()=>{n.forEach(s=>{const i=Jt.get(s);i?.delete(e),i?.size||Qt?.unobserve(s)})}}const te=new Set;let wt;function yl(){wt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};te.forEach(e=>e(t))},window.addEventListener("resize",wt)}function xl(t){return te.add(t),wt||yl(),()=>{te.delete(t),!te.size&&typeof wt=="function"&&(window.removeEventListener("resize",wt),wt=void 0)}}function is(t,e){return typeof t=="function"?xl(t):gl(t,e)}function vl(t){return Dn(t)&&t.tagName==="svg"}function bl(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=Ei(i,o,r);return e?a(s):a}function wl(t,e,n={}){const s=t.get();let i=null,o=s,r;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,c=()=>
1{i&&(i.stop(),i=null),t.animation=void 0},u=()=>{const h=rs(t.get()),f=rs(o);if(h===f){c();return}const m=i?i.getGeneratorVelocity():t.getVelocity();c(),i=new Bt({keyframes:[h,f],velocity:m,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:r})},l=()=>{u(),t.animation=i??void 0,t.events.animationStart?.notify(),i?.then(()=>{t.animation=void 0,t.events.animationComplete?.notify()})};if(t.attach((h,f)=>{o=h,r=m=>f(Ce(m,a)),V.postRender(l)},c),L(e)){let h=n.skipInitialAnimation===!0;const f=e.on("change",p=>{h?(h=!1,t.jump(Ce(p,a),!1)):t.set(Ce(p,a))}),m=t.on("destroy",f);return()=>{f(),m()}}return c}function Ce(t,e){return e?t+e:t}function rs(t){return typeof t=="number"?t:parseFloat(t)}const Tl=[...Ji,E,Y],Sl=t=>Tl.find(Zi(t)),os=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tt=()=>({x:os(),y:os()}),as=()=>({min:0,max:0}),N=()=>({x:as(),y:as()}),Pl=new WeakMap;function pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ft(t){return typeof t=="string"||Array.isArray(t)}const En=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rn=["initial",...En];function ge(t){return pe(t.animate)||Rn.some(e=>Ft(t[e]))}function ar(t){return!!(ge(t)||t.variants)}function Al(t,e,n){for(const s in e){const i=e[s],o=n[s];if(L(i))t.addValue(s,i);else if(L(o))t.addValue(s,gt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,gt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const sn={current:null},lr={current:!1},Cl=typeof window<"u";
vendor: 74,016 bytes, line 1
1function Vl(){if(lr.current=!0,!!Cl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sn.current=t.matches;t.addEventListener("change",e),e()}else sn.current=!1}const ls=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let le={};function cr(t){le=t}function jl(){return le}class Ml{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Sn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=U.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,V.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=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=ge(n),this.isVariantNode=ar(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const p=f[m];u[m]!==void 0&&L(p)&&p.set(u[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Pl.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:(lr.current||Vl(),this.shouldReduceMotion=sn.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(),st(this.notifyUpdate),st(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&&Hi.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,h=new Wi({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:H(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Ct.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in 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 o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ls.length;s++){const i=ls[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Al(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=gt(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"&&(oi(s)||li(s))?s=parseFloat(s):!Sl(s)&&Y.test(n)&&(s=tr(e,n)),this.setBaseTarget(e,L(s)?s.get():s)),L(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 o=Cn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!L(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 mn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Mn.render(this.render)}}class ur extends Ml{constructor(){super(...arguments),this.KeyframeResolver=tl}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;L(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function kl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Dl(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 Ve(t){return t===void 0||t===1}function rn({scale:t,scaleX:e,scaleY:n}){return!Ve(t)||!Ve(e)||!Ve(n)}function dt(t){return rn(t)||hr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hr(t){return cs(t.x)||cs(t.y)}function cs(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function us(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function on(t,e=0,n=1,s,i){t.min=us(t.min,e,n,s,i),t.max=us(t.max,e,n,s,i)}function fr(t,{x:e,y:n}){on(t.x,e.translate,e.scale,e.originPoint),on(t.y,n.translate,n.scale,n.originPoint)}const ds=.999999999999,hs=1.0000000000001;function El(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Q(t.x,-o.scroll.offset.x),Q(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,fr(t,r)),s&&dt(o.latestValues)&&ee(t,o.latestValues,o.layout?.layoutBox))}e.x<hs&&e.x>ds&&(e.x=1),e.y<hs&&e.y>ds&&(e.y=1)}function Q(t,e){t.min+=e,t.max+=e}function fs(t,e,n,s,i=.5){const o=j(t.min,t.max,i);on(t,e,n,o,s)}function ms(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ee(t,e,n){const s=n??t;fs(t.x,ms(e.x,s.x),e.scaleX,e.scale,e.originX),fs(t.y,ms(e.y,s.y),e.scaleY,e.scale,e.originY)}function mr(t,e){return dr(Dl(t.getBoundingClientRect(),e))}function Rl(t,e,n){const s=mr(t,n),{scroll:i}=e;return i&&(Q(s.x,i.offset.x),Q(s.y,i.offset.y)),s}const Nl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ll=At.length;function Il(t,e,n){let s="",i=!0;for(let o=0;o<Ll;o++){const r=At[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(r.startsWith("scale")?1:0);else{const u=parseFloat(a);c=r.startsWith("scale")?u===1:u===0}if(!c||n){const u=nr(a,jn[r]);if(!c){i=!1;const l=Nl[r]||r;s+=`${l}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Nn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ct.has(c)){r=!0;continue}else if(Si(c)){i[c]=u;continue}else{const l=nr(u,jn[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=Il(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function pr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function ps(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(b.test(t))t=parseFloat(t);else return t;const n=ps(t,e.target.x),s=ps(t,e.target.y);return`${n}% ${s}%`}},Bl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Y.parse(t);if(i.length>5)return s;const o=Y.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const u=j(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},an={borderRadius:{...Vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:Bl};function gr(t,{layout:e,layoutId:n}){return Ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!an[t]||t==="opacity")}function Ln(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(L(s[r])||i&&L(i[r])||gr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Fl(t){return window.getComputedStyle(t)}class Ol extends ur{constructor(){super(...arguments),this.type="html",this.renderInstance=pr}readValueFromInstance(e,n){if(Ct.has(n))return this.projection?.isProjecting?ze(n):na(e,n);{const s=Fl(e),i=(Si(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return mr(e,n)}build(e,n,s){Nn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ln(e,n,s)}}const Ul={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wl={offset:"strokeDashoffset",array:"strokeDasharray"};function Kl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Ul:Wl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Hl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(Nn(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 m of Hl)h[m]!==void 0&&(f[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Kl(h,i,o,r,!1)}const xr=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"]),vr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gl(t,e,n,s){pr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(xr.has(i)?i:Vn(i),e.attrs[i])}function br(t,e,n){const s=Ln(t,e,n);for(const i in t)if(L(t[i])||L(e[i])){const o=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class $l extends ur{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ct.has(n)){const s=Qi(n);return s&&s.default||0}return n=xr.has(n)?n:Vn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return br(e,n,s)}build(e,n,s){yr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Gl(e,n,s,i)}mount(e){this.isSVGTag=vr(e.tagName),super.mount(e)}}const zl=Rn.length;function wr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?wr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<zl;n++){const s=Rn[n],i=t.props[s];(Ft(i)||i===!1)&&(e[s]=i)}return e}function Tr(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 _l=[...En].reverse(),Xl=En.length;function Yl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ha(t,n,s)))}function ql(t){let e=Yl(t),n=gs(),s=!0,i=!1;const o=u=>(l,h)=>{const f=pt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:p,...g}=f;l={...l,...g,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,h=wr(t.parent)||{},f=[],m=new Set;let p={},g=1/0;for(let x=0;x<Xl;x++){const w=_l[x],v=n[w],T=l[w]!==void 0?l[w]:h[w],A=Ft(T),R=w===u?v.isActive:null;R===!1&&(g=x);let O=T===h[w]&&T!==l[w]&&A;if(O&&(s||i)&&t.manuallyAnimateOnMount&&(O=!1),v.protectedKeys={...p},!v.isActive&&R===null||!T&&!v.prevProp||pe(T)||typeof T=="boolean")continue;if(w==="exit"&&v.isActive&&R!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const C=Zl(v.prevProp,T);let I=C||w===u&&v.isActive&&!O&&A||x>g&&A,P=!1;const D=Array.isArray(T)?T:[T];let K=D.reduce(o(w),{});R===!1&&(K={});const{prevResolvedValues:lt={}}=v,q={...lt,...K},nt=B=>{I=!0,m.has(B)&&(P=!0,m.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in q){const G=K[B],ct=lt[B];if(p.hasOwnProperty(B))continue;let xt=!1;Je(G)&&Je(ct)?xt=!Tr(G,ct):xt=G!==ct,xt?G!=null?nt(B):m.add(B):G!==void 0&&m.has(B)?nt(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=K,v.isActive&&(p={...p,...K}),(s||i)&&t.blockInitialAnimation&&(I=!1);const Z=O&&C;I&&(!Z||P)&&f.push(...D.map(B=>{const G={type:w};if(typeof B=="string"&&(s||i)&&!Z&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,xt=pt(ct,B);if(ct.enteringChildren&&xt){const{delayChildren:_r}=xt.transition||{};G.delay=Gi(ct.enteringChildren,t,_r)}}return{animation:B,options:G}}))}if(m.size){const x={};if(typeof l.initial!="boolean"){const w=pt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);w&&w.transition&&(x.transition=w.transition)}m.forEach(w=>{const v=t.getBaseTarget(w),T=t.getValue(w);T&&(T.liveStyle=!0),x[w]=v??null}),f.push({animation:x})}let y=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?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:r,getState:()=>n,reset:()=>{n=gs(),i=!0}}}function Zl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Tr(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gs(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function ln(t,e){t.min=e.min,t.max=e.max}function _(t,e){ln(t.x,e.x),ln(t.y,e.y)}function ys(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Sr=1e-4,Jl=1-Sr,Ql=1+Sr,Pr=.01,tc=0-Pr,ec=0+Pr;function W(t){return t.max-t.min}function nc(t,e,n){return Math.abs(t-e)<=n}function xs(t,e,n,s=.5){t.origin=s,t.originPoint=j(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Jl&&t.scale<=Ql||isNaN(t.scale))&&(t.scale=1),(t.translate>=tc&&t.translate<=ec||isNaN(t.translate))&&(t.translate=0)}function Et(t,e,n,s){xs(t.x,e.x,n.x,s?s.originX:void 0),xs(t.y,e.y,n.y,s?s.originY:void 0)}function vs(t,e,n,s=0){const i=s?j(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function sc(t,e,n,s){vs(t.x,e.x,n.x,s?.x),vs(t.y,e.y,n.y,s?.y)}function bs(t,e,n,s=0){const i=s?j(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ue(t,e,n,s){bs(t.x,e.x,n.x,s?.x),bs(t.y,e.y,n.y,s?.y)}function ws(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 ic(t,e=0,n=1,s=.5,i,o=t,r=t){if(tt.test(e)&&(e=parseFloat(e),e=j(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=j(o.min,o.max,s);t===o&&(a-=e),t.min=ws(t.min,e,n,a,i),t.max=ws(t.max,e,n,a,i)}function Ts(t,e,[n,s,i],o,r){ic(t,e[n],e[s],e[i],e.scale,o,r)}const rc=["x","scaleX","originX"],oc=["y","scaleY","originY"];function Ss(t,e,n,s){Ts(t.x,e,rc,n?n.x:void 0,s?s.x:void 0),Ts(t.y,e,oc,n?n.y:void 0,s?s.y:void 0)}function Ps(t){return t.translate===0&&t.scale===1}function Ar(t){return Ps(t.x)&&Ps(t.y)}function As(t,e){return t.min===e.min&&t.max===e.max}function ac(t,e){return As(t.x,e.x)&&As(t.y,e.y)}function Cs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Cr(t,e){return Cs(t.x,e.x)&&Cs(t.y,e.y)}function Vs(t){return W(t.x)/W(t.y)}function js(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function J(t){return[t("x"),t("y")]}function lc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:m,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),m&&(s+=`skewX(${m}deg) `),p&&(s+=`skewY(${p}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 Vr=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],cc=Vr.length,Ms=t=>typeof t=="string"?parseFloat(t):t,ks=t=>typeof t=="number"||b.test(t);function uc(t,e,n,s,i,o){i?(t.opacity=j(0,n.opacity??1,dc(s)),t.opacityExit=j(e.opacity??1,0,hc(s))):o&&(t.opacity=j(e.opacity??1,n.opacity??1,s));for(let r=0;r<cc;r++){const a=Vr[r];let c=Ds(e,a),u=Ds(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||ks(c)===ks(u)?(t[a]=Math.max(j(Ms(c),Ms(u),s),0),(tt.test(u)||tt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,s))}function Ds(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const dc=jr(0,.5,yi),hc=jr(.5,.95,z);function jr(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function fc(t,e,n){const s=L(t)?t:gt(t);return s.start(An("",s,e,n)),s.animation}function Ot(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const mc=(t,e)=>t.depth-e.depth;class pc{constructor(){this.children=[],this.isDirty=!1}add(e){hn(this.children,e),this.isDirty=!0}remove(e){ie(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mc),this.isDirty=!1,this.children.forEach(e)}}function gc(t,e){const n=U.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(st(s),t(o-e))};return V.setup(s,!0),()=>st(s)}function ne(t){return L(t)?t.get():t}class yc{constructor(){this.members=[]}add(e){hn(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&&(ie(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ie(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:o}=e.options;(i===void 0||i!==o)&&(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 se={hasAnimatedSinceResize:!0,hasEverUpdated:!1},je=["","X","Y","Z"],xc=1e3;let vc=0;function Me(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Mr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Mr(s)}function kr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=vc++,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(Tc),this.nodes.forEach(jc),this.nodes.forEach(Mc),this.nodes.forEach(Sc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new pc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new mn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Dn(r)&&!vl(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(r,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,l&&l(),l=gc(f,250),se.hasAnimatedSinceResize&&(se.hasAnimatedSinceResize=!1,this.nodes.forEach(Ns)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Nc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!Cr(this.targetLayout,m),w=!h&&f;if(this.options.layoutRoot||this.resumeFrom||w||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Pn(p,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,w)}else h||Ns(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),st(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(kc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Ac),this.nodes.forEach(Es);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Rs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cc),this.nodes.forEach(Vc),this.nodes.forEach(bc),this.nodes.forEach(wc)):this.nodes.forEach(Rs),this.clearAllSnapshots();const a=U.now();F.delta=et(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,ve.update.process(F),ve.preRender.process(F),ve.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pc),this.sharedNodes.forEach(Dc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=N()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ar(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||dt(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Lc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return N();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ic))){const{scroll:u}=this.root;u&&(Q(a.x,u.offset.x),Q(a.y,u.offset.y))}return a}removeElementScroll(r){const a=N();if(_(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&_(a,r),Q(a.x,l.offset.x),Q(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||N();_(u,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Q(u.x,-h.scroll.offset.x),Q(u.y,-h.scroll.offset.y)),dt(h.latestValues)&&ee(u,h.latestValues,h.layout?.layoutBox)}return dt(this.latestValues)&&ee(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=N();_(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!dt(u.latestValues))continue;let l;u.instance&&(rn(u.latestValues)&&u.updateSnapshot(),l=N(),_(l,u.measurePageBox())),Ss(a,u.latestValues,u.snapshot?.layoutBox,l)}return dt(this.latestValues)&&Ss(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const 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=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_(this.target,this.layout.layoutBox),fr(this.target,this.targetDelta)):_(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||rn(this.parent.latestValues)||hr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),ue(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),_(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;_(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;El(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=N());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ys(this.prevProjectionDelta.x,this.projectionDelta.x),ys(this.prevProjectionDelta.y,this.projectionDelta.y)),Et(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tt(),this.projectionDelta=Tt(),this.projectionDeltaWithTransform=Tt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=Tt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=N(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=m!==p,y=this.getStack(),x=!y||y.members.length<=1,w=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(Rc));this.animationProgress=0;let v;this.mixTargetDelta=T=>{const A=T/1e3;Ls(h.x,r.x,A),Ls(h.y,r.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ue(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ec(this.relativeTarget,this.relativeTargetOrigin,f,A),v&&ac(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=N()),_(v,this.relativeTarget)),g&&(this.animationValues=l,uc(l,u,this.latestValues,A,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{se.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gt(0)),this.motionValue.jump(0,!1),this.currentAnimation=fc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&Dr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||N();const h=W(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=W(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}_(a,c),ee(a,l),Et(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new yc),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Me("z",r,u,this.animationValues);for(let l=0;l<je.length;l++)Me(`rotate${je[l]}`,r,u,this.animationValues),Me(`skew${je[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=ne(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=ne(a?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=lc(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:m}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in an){if(l[p]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=an[p],w=h==="none"?l[p]:g(l[p],u);if(y){const v=y.length;for(let T=0;T<v;T++)r[y[T]]=w}else x?this.options.visualElement.renderState.vars[p]=w:r[p]=w}this.options.layoutId&&(r.pointerEvents=u===this?ne(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Es),this.root.sharedNodes.clear()}}}function bc(t){t.updateLayout()}function wc(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,o=e.source!==t.layout.source;if(i==="size")J(l=>{const h=o?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";ln(o?e.measuredBox[l]:e.layoutBox[l],n[l])}else Dr(i,e.layoutBox,n)&&J(l=>{const h=o?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 r=Tt();Et(r,n,e.layoutBox);const a=Tt();o?Et(a,t.applyTransform(s,!0),e.measuredBox):Et(a,n,e.layoutBox);const c=!Ar(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const m=t.options.layoutAnchor||void 0,p=N();ue(p,e.layoutBox,h.layoutBox,m);const g=N();ue(g,n,f.layoutBox,m),Cr(p,g)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Tc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Sc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Pc(t){t.clearSnapshot()}function Es(t){t.clearMeasurements()}function Ac(t){t.isLayoutDirty=!0,t.updateLayout()}function Rs(t){t.isLayoutDirty=!1}function Cc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Vc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ns(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jc(t){t.resolveTargetDelta()}function Mc(t){t.calcProjection()}function kc(t){t.resetSkewAndRotation()}function Dc(t){t.removeLeadSnapshot()}function Ls(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Is(t,e,n,s){t.min=j(e.min,n.min,s),t.max=j(e.max,n.max,s)}function Ec(t,e,n,s){Is(t.x,e.x,n.x,s),Is(t.y,e.y,n.y,s)}function Rc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Nc={duration:.45,ease:[.4,0,.1,1]},Bs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Fs=Bs("applewebkit/")&&!Bs("chrome/")?Math.round:z;function Os(t){t.min=Fs(t.min),t.max=Fs(t.max)}function Lc(t){Os(t.x),Os(t.y)}function Dr(t,e,n){return t==="position"||t==="preserve-aspect"&&!nc(Vs(e),Vs(n),.2)}function Ic(t){return t!==t.root&&t.scroll?.wasRoot}const Bc=kr({attachResizeListener:(t,e)=>Ot(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ke={current:void 0},Er=kr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ke.current){const t=new Bc({});t.mount(window),t.setOptions({layoutScroll:!0}),ke.current=t}return ke.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ye=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Fc(t=!0){const e=S.useContext(dn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{if(t)return i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Rr=S.createContext({strict:!1}),Us={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 Ws=!1;function Oc(){if(Ws)return;const t={};for(const e in Us)t[e]={isEnabled:n=>Us[e].some(s=>!!n[s])};cr(t),Ws=!0}function Nr(){return Oc(),jl()}function Uc(t){const e=Nr();for(const n in t)e[n]={...e[n],...t[n]};cr(e)}const Wc=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 de(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Wc.has(t)}let Lr=t=>!de(t);function Kc(t){typeof t=="function"&&(Lr=e=>e.startsWith("on")?!de(e):t(e))}try{Kc(require("@emotion/is-prop-valid").default)}catch{}function Hc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||L(t[i])||(Lr(i)||n===!0&&de(i)||!e&&!de(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const xe=S.createContext({});function Gc(t,e){if(ge(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ft(n)?n:void 0,animate:Ft(s)?s:void 0}}return t.inherit!==!1?e:{}}function $c(t){const{initial:e,animate:n}=Gc(t,S.useContext(xe));return S.useMemo(()=>({initial:e,animate:n}),[Ks(e),Ks(n)])}function Ks(t){return Array.isArray(t)?t.join(" "):t}const In=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ir(t,e,n){for(const s in e)!L(e[s])&&!gr(s,n)&&(t[s]=e[s])}function zc({transformTemplate:t},e){return S.useMemo(()=>{const n=In();return Nn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function _c(t,e){const n=t.style||{},s={};return Ir(s,n,t),Object.assign(s,zc(t,e)),s}function Xc(t,e){const n={},s=_c(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 Br=()=>({...In(),attrs:{}});function Yc(t,e,n,s){const i=S.useMemo(()=>{const o=Br();return yr(o,e,vr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ir(o,t.style,t),i.style={...o,...i.style}}return i}const qc=["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 Bn(t){return typeof t!="string"||t.includes("-")?!1:!!(qc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Zc(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??Bn(t)?Yc:Xc)(e,s,i,t),u=Hc(e,typeof t=="string",o),l=t!==S.Fragment?{...u,...c,ref:n}:{},{children:h}=e,f=S.useMemo(()=>L(h)?h.get():h,[h]);return S.createElement(t,{...l,children:f})}function Jc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Qc(n,s,i,t),renderState:e()}}function Qc(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=ne(o[f]);let{initial:r,animate:a}=t;const c=ge(t),u=ar(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!pe(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const p=Cn(t,f[m]);if(p){const{transitionEnd:g,transition:y,...x}=p;for(const w in x){let v=x[w];if(Array.isArray(v)){const T=l?v.length-1:0;v=v[T]}v!==null&&(i[w]=v)}for(const w in g)i[w]=g[w]}}}return i}const Fr=t=>(e,n)=>{const s=S.useContext(xe),i=S.useContext(dn),o=()=>Jc(t,e,s,i);return n?o():Nt(o)},tu=Fr({scrapeMotionValuesFromProps:Ln,createRenderState:In}),eu=Fr({scrapeMotionValuesFromProps:br,createRenderState:Br}),nu=Symbol.for("motionComponentSymbol");function su(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const Or=S.createContext({});function vt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function iu(t,e,n,s,i,o){const{visualElement:r}=S.useContext(xe),a=S.useContext(Rr),c=S.useContext(dn),u=S.useContext(ye),l=u.reducedMotion,h=u.skipAnimations,f=S.useRef(null),m=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:o}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,g=S.useContext(Or);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&ru(f.current,n,i,g);const y=S.useRef(!1);S.useInsertionEffect(()=>{p&&y.current&&p.update(n,c)});const x=n[Xi],w=S.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return ri(()=>{m.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),p.enteringChildren=void 0)}),p}function ru(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ur(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&vt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function Ur(t){if(t)return t.options.allowProjection!==!1?t.projection:Ur(t.parent)}function De(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Uc(s);const o=n?n==="svg":Bn(t),r=o?eu:tu;function a(u,l){let h;const f={...S.useContext(ye),...u,layoutId:ou(u)},{isStatic:m}=f,p=$c(u),g=r(u,m);if(!m&&typeof window<"u"){au();const y=lu(f);h=y.MeasureLayout,p.visualElement=iu(t,g,f,i,y.ProjectionNode,o)}return d.jsxs(xe.Provider,{value:p,children:[h&&p.visualElement?d.jsx(h,{visualElement:p.visualElement,...f}):null,Zc(t,u,su(g,p.visualElement,l),g,m,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(a);return c[nu]=t,c}function ou({layoutId:t}){const e=S.useContext(ii).id;return e&&t!==void 0?e+"-"+t:t}function au(t,e){S.useContext(Rr).strict}function lu(t){const e=Nr(),{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 cu(t,e){if(typeof Proxy>"u")return De;const n=new Map,s=(o,r)=>De(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,De(r,void 0,t,e)),n.get(r))})}const uu=(t,e)=>e.isSVG??Bn(t)?new $l(e):new Ol(e,{allowProjection:t!==S.Fragment});class du extends at{constructor(e){super(e),e.animationState||(e.animationState=ql(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 hu=0;class fu extends at{constructor(){super(...arguments),this.id=hu++,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:o,custom:r}=this.node.getProps();if(typeof o=="string"){const a=pt(this.node,o,r);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const h in l)this.node.getValue(h)?.jump(l[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const 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 mu={animation:{Feature:du},exit:{Feature:fu}};function Ht(t){return{point:{x:t.pageX,y:t.pageY}}}const pu=t=>e=>kn(e)&&t(e,Ht(e));function Rt(t,e,n,s){return Ot(t,e,pu(n),s)}const Wr=({current:t})=>t?t.ownerDocument.defaultView:null,Hs=(t,e)=>Math.abs(t-e);function gu(t,e){const n=Hs(t.x,e.x),s=Hs(t.y,e.y);return Math.sqrt(n**2+s**2)}const Gs=new Set(["auto","scroll"]);class Kr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=zt(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Ee(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=gu(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:y}=m,{timestamp:x}=F;this.history.push({...y,timestamp:x});const{onStart:w,onMove:v}=this.handlers;p||(w&&w(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=zt(p,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Ee(m.type==="pointercancel"?this.lastMoveEventInfo:zt(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,w),y&&y(m,w)},!kn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=Ht(e),u=zt(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=F;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Ee(u,this.history)),this.removeListeners=Ut(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Gs.has(s.overflowX)||Gs.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},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),st(this.updatePoint)}}function zt(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 Ee({point:t},e){return{point:t,delta:$s(t,Hr(e)),offset:$s(t,yu(e)),velocity:xu(e,.1)}}function yu(t){return t[0]}function Hr(t){return t[t.length-1]}function xu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Hr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>H(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>H(e)*2&&(s=t[1]);const o=$(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function vu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?j(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?j(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 bu(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 wu(t,e){return{x:_s(t.x,e.x),y:_s(t.y,e.y)}}function Tu(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)),et(0,1,n)}function Su(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 cn=.35;function Pu(t=cn){return t===!1?t=0:t===!0&&(t=cn),{x:Xs(t,"left","right"),y:Xs(t,"top","bottom")}}function Xs(t,e,n){return{min:Ys(t,e),max:Ys(t,n)}}function Ys(t,e){return typeof t=="number"?t:t[e]||0}const Au=new WeakMap;class Cu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=N(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(Ht(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nl(m),!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),J(x=>{let w=this.getAxisMotionValue(x).get()||0;if(tt.test(w)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[x];T&&(w=W(T)*(parseFloat(w)/100))}}this.originPoint[x]=w}),g&&V.update(()=>g(h,f),!1,!0),Qe(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=f;if(p&&this.currentDirection===null){this.currentDirection=ju(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&V.update(()=>y(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 Kr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Wr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&V.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||!_t(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=vu(r,this.constraints[e],this.elastic[e])),o.set(r)}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=bu(s.layoutBox,e):this.constraints=!1,this.elastic=Pu(n),i!==this.constraints&&!vt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&J(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Su(s.layoutBox[o],this.constraints[o]))})}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;const o=Rl(s,i.root,this.visualElement.getTransformPagePoint());let r=wu(i.layout.layoutBox,o);if(n){const a=n(kl(r));this.hasMutatedConstraints=!!a,a&&(r=dr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=J(l=>{if(!_t(l,n,this.currentDirection))return;let h=c&&c[l]||{};(r===!0||r===l)&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Qe(this.visualElement,e),s.start(An(e,s,0,n,this.visualElement,!1))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:s}=this.getProps();if(!_t(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-j(r,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};J(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Tu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),J(r=>{if(!_t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(j(c,u,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Au.set(this.visualElement,this);const e=this.visualElement.current,n=Rt(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=u.target,m=f!==e&&ll(f);l&&h&&!m&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();vt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Vu(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),V.read(i);const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(J(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(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=cn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function qs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Vu(t,e,n){const s=is(t,qs(n)),i=is(e,qs(n));return()=>{s(),i()}}function _t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ju(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Mu extends at{constructor(e){super(e),this.removeGroupControls=z,this.removeListeners=z,this.controls=new Cu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||z}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 Re=t=>(e,n)=>{t&&V.update(()=>t(e,n),!1,!0)};class ku extends at{constructor(){super(...arguments),this.removePointerDownListener=z}onPointerDown(e){this.session=new Kr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Re(e),onStart:Re(n),onMove:Re(s),onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ne=!1;class Du extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ne&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),se.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Ne=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.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(),Mn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ne=!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 Gr(t){const[e,n]=Fc(),s=S.useContext(ii);return d.jsx(Du,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Or),isPresent:e,safeToRemove:n})}const Eu={pan:{Feature:ku},drag:{Feature:Mu,ProjectionNode:Er,MeasureLayout:Gr}};function Zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,Ht(e)))}class Ru extends at{mount(){const{current:e}=this.node;e&&(this.unmount=il(e,(n,s)=>(Zs(this.node,s,"Start"),i=>Zs(this.node,i,"End"))))}unmount(){}}class Nu extends at{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ut(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Js(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,Ht(e)))}class Lu extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=ul(e,(i,o)=>(Js(this.node,o,"Start"),(r,{success:a})=>Js(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const un=new WeakMap,Le=new WeakMap,Iu=t=>{const e=un.get(t.target);e&&e(t)},Bu=t=>{t.forEach(Iu)};function Fu({root:t,...e}){const n=t||document;Le.has(n)||Le.set(n,{});const s=Le.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Bu,{root:t,...e})),s[i]}function Ou(t,e,n){const s=Fu(e);return un.set(t,n),s.observe(t),()=>{un.delete(t),s.unobserve(t)}}const Uu={some:0,all:1};class Wu extends at{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:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Uu[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};this.stopObserver=Ou(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ku(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Ku({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Hu={inView:{Feature:Wu},tap:{Feature:Lu},focus:{Feature:Nu},hover:{Feature:Ru}},Gu={layout:{ProjectionNode:Er,MeasureLayout:Gr}},$u={...mu,...Hu,...Eu,...Gu},M=cu($u,uu);function he(t){const e=Nt(()=>gt(t)),{isStatic:n}=S.useContext(ye);if(n){const[,s]=S.useState(t);S.useEffect(()=>e.on("change",s),[])}return e}function $r(t,e){const n=he(e()),s=()=>n.set(e());return s(),ri(()=>{const i=()=>V.preRender(s,!1,!0),o=t.map(r=>
1r.on("change",i));return()=>{o.forEach(r=>r()),st(s)}}),n}function zu(t){Dt.current=[],t();const e=$r(Dt.current,t);return Dt.current=void 0,e}function fe(t,e,n,s){if(typeof t=="function")return zu(t);if(n!==void 0&&!Array.isArray(n)&&typeof e!="function")return _u(t,e,n,s);const r=typeof e=="function"?e:bl(e,n,s),a=Array.isArray(t)?Qs(t,r):Qs([t],([u])=>r(u)),c=Array.isArray(t)?void 0:t.accelerate;return c&&!c.isTransformed&&typeof e!="function"&&Array.isArray(n)&&s?.clamp!==!1&&(a.accelerate={...c,times:e,keyframes:n,isTransformed:!0}),a}function Qs(t,e){const n=Nt(()=>[]);return $r(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function _u(t,e,n,s){const i=Nt(()=>Object.keys(n)),o=Nt(()=>({}));for(const r of i)o[r]=fe(t,e,n[r],s);return o}function Xu(t,e={}){const{isStatic:n}=S.useContext(ye),s=()=>L(t)?t.get():t;if(n)return fe(s);const i=he(s());return S.useInsertionEffect(()=>wl(i,t,e),[i,JSON.stringify(e)]),i}function ti(t,e={}){return Xu(t,{type:"spring",...e})}const Yu="/assets/brain-illustration-Y5mZQZuW.png";function qu(){return d.jsx("section",{className:"relative overflow-hidden border-b hairline",id:"hero",children:d.jsxs("div",{className:"relative mx-auto max-w-7xl px-6 pb-20 pt-12 md:px-10 md:pb-24 md:pt-16",children:[d.jsxs("div",{className:"grid items-center gap-12 lg:grid-cols-12 lg:gap-10",children:[d.jsxs("div",{className:"lg:col-span-6",children:[d.jsxs(M.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.5},className:"flex flex-wrap items-center gap-2",children:[d.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border hairline bg-card/70 px-3 py-1 text-xs backdrop-blur",children:[d.jsx(Qu,{}),d.jsx("span",{className:"font-mono uppercase tracking-wider text-muted-foreground",children:"Canadian tech company"})]}),d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-signal/30 bg-signal/5 px-3 py-1 text-xs",children:[d.jsx(zr,{}),d.jsx("span",{className:"font-mono uppercase tracking-wider text-signal",children:"Patent filed · Pending"})]})]}),d.jsxs(M.h1,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.7,delay:.05},className:"font-display mt-6 text-5xl leading-[0.95] tracking-tight text-ink md:text-6xl lg:text-[4.5rem]",children:["Where ",d.jsx("em",{className:"text-primary",children:"confidentiality"})," meets intelligent clinical decision support."]}),d.jsx(M.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.7,delay:.15},className:"mt-6 max-w-xl text-lg leading-relaxed text-muted-foreground text-pretty",children:"CloudMD is a domain-specific Small Language Model — fine-tuned from MedGemma and verified against the UMLS knowledge graph — that delivers structured, explainable clinical reasoning without a single byte of patient data leaving your environment."}),d.jsxs(M.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.7,delay:.25},className:"mt-8 flex flex-wrap items-center gap-4",children:[d.jsxs(Oe,{to:"/contact",className:"inline-flex items-center gap-2 rounded-full bg-ink px-6 py-3 text-sm font-medium text-background transition-opacity hover:opacity-90",children:["Request a clinical demo",d.jsx("span",{"aria-hidden":!0,children:"→"})]}),d.jsx(Oe,{to:"/",hash:"how",className:"inline-flex items-center gap-2 rounded-full border hairline bg-card/70 px-6 py-3 text-sm font-medium text-ink backdrop-blur transition-colors hover:bg-card",children:"See how it reasons"})]}),d.jsxs(M.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.8,delay:.4},className:"mt-12 grid max-w-lg grid-cols-3 gap-6 border-t hairline pt-6",children:[d.jsx(Ie,{label:"Smaller than GPT-4",value:"1000×"}),d.jsx(Ie,{label:"Privacy-safe",value:"100%"}),d.jsx(Ie,{label:"MedGemma sizes",value:"4B/27B"})]})]}),d.jsx("div",{className:"lg:col-span-6",children:d.jsx(Zu,{})})]}),d.jsx(Ju,{})]})})}function Zu(){const t=S.useRef(null),e=he(0),n=he(0),s=ti(e,{stiffness:70,damping:16,mass:.7}),i=ti(n,{stiffness:70,damping:16,mass:.7}),o=fe(s,[-.5,.5],[-22,22]),r=fe(i,[-.5,.5],[16,-16]);function a(l){const h=t.current?.getBoundingClientRect();h&&(e.set((l.clientX-h.left)/h.width-.5),n.set((l.clientY-h.top)/h.height-.5))}function c(){e.set(0),n.set(0)}const u=[{angle:0,label:"Dx"},{angle:60,label:"Rx"},{angle:120,label:"Hx"},{angle:180,label:"Vx"},{angle:240,label:"Lx"},{angle:300,label:"Sx"}];return d.jsxs(M.div,{ref:t,onMouseMove:a,onMouseLeave:c,initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},transition:{duration:.9,delay:.1},className:"relative mx-auto aspect-square w-full max-w-[560px]",style:{perspective:1400},children:[d.jsx(M.div,{className:"absolute inset-0 -m-6 rounded-full border hairline",animate:{rotate:360},transition:{duration:60,repeat:1/0,ease:"linear"},children:d.jsx("span",{className:"absolute left-1/2 top-0 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary shadow-[0_0_12px_currentColor]"})}),d.jsx(M.div,{className:"absolute inset-0 m-6 rounded-full border border-primary/20",animate:{rotate:-360},transition:{duration:90,repeat:1/0,ease:"linear"},children:d.jsx("span",{className:"absolute right-0 top-1/2 h-1.5 w-1.5 translate-x-1/2 -translate-y-1/2 rounded-full bg-signal"})}),d.jsx(M.div,{className:"absolute inset-0 m-16 rounded-full border border-dashed border-ink/15",animate:{rotate:360},transition:{duration:140,repeat:1/0,ease:"linear"}}),d.jsx(Yt,{className:"absolute left-0 top-0"}),d.jsx(Yt,{className:"absolute right-0 top-0 rotate-90"}),d.jsx(Yt,{className:"absolute bottom-0 left-0 -rotate-90"}),d.jsx(Yt,{className:"absolute bottom-0 right-0 rotate-180"}),d.jsx(M.div,{className:"absolute inset-0",animate:{rotate:360},transition:{duration:40,repeat:1/0,ease:"linear"},children:u.map((l,h)=>{const f=l.angle*Math.PI/180,m=46,p=50+m*Math.cos(f),g=50+m*Math.sin(f);return d.jsxs(M.div,{className:"absolute flex -translate-x-1/2 -translate-y-1/2 items-center gap-1.5",style:{left:`${p}%`,top:`${g}%`},animate:{rotate:-360},transition:{duration:40,repeat:1/0,ease:"linear"},children:[d.jsx(M.span,{className:"h-2 w-2 rounded-full bg-primary",animate:{scale:[1,1.6,1],opacity:[.6,1,.6]},transition:{duration:2.4,repeat:1/0,ease:"easeInOut",delay:h*.3}}),d.jsx("span",{className:"rounded-sm bg-card/80 px-1.5 py-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground backdrop-blur",children:l.label})]},l.label)})}),d.jsx(M.div,{className:"relative h-full w-full",style:{rotateX:r,rotateY:o,transformStyle:"preserve-3d"},children:d.jsxs(M.div,{animate:{y:[0,-16,0],scale:[1,1.025,1]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},className:"relative h-full w-full",style:{transformStyle:"preserve-3d"},children:[d.jsx(M.div,{className:"absolute inset-10 rounded-full bg-primary/25 blur-3xl",style:{transform:"translateZ(-80px)"},animate:{opacity:[.4,.8,.4],scale:[.9,1.1,.9]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),d.jsxs("div",{className:"relative h-full w-full",style:{transform:"translateZ(60px)"},children:[d.jsx("img",{src:Yu,alt:"Anatomical illustration of a human brain annotated with reasoning pathways",className:"relative h-full w-full object-contain drop-shadow-[0_50px_80px_rgba(20,40,60,0.3)]"}),d.jsx(M.div,{className:"pointer-events-none absolute inset-0 overflow-hidden rounded-full",style:{mixBlendMode:"overlay"},children:d.jsx(M.div,{className:"absolute left-0 right-0 h-12 bg-gradient-to-b from-transparent via-primary/60 to-transparent",animate:{y:["-20%","120%"]},transition:{duration:3.5,repeat:1/0,ease:"easeInOut",repeatDelay:1.2}})}),d.jsx(Xt,{top:"32%",left:"38%",delay:0}),d.jsx(Xt,{top:"48%",left:"58%",delay:.7}),d.jsx(Xt,{top:"60%",left:"42%",delay:1.4}),d.jsx(Xt,{top:"38%",left:"62%",delay:2.1})]})]})}),d.jsxs(M.div,{initial:{opacity:0,y:8}
1,animate:{opacity:1,y:[0,-6,0]},transition:{opacity:{duration:.8,delay:.6},y:{duration:4,repeat:1/0,ease:"easeInOut",delay:.6}},className:"absolute -right-2 top-6 z-10 flex items-center gap-2 rounded-full border border-signal/30 bg-card px-3 py-2 shadow-[var(--shadow-soft)] md:right-2",children:[d.jsx(zr,{}),d.jsxs("div",{className:"text-left leading-tight",children:[d.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-signal",children:"Patent"}),d.jsx("p",{className:"font-display text-sm text-ink",children:"Filed · Pending"})]})]}),d.jsxs("div",{className:"absolute -bottom-2 left-2 z-10 flex items-center gap-2 rounded-full bg-ink px-3 py-1.5 text-background",children:[d.jsx(M.span,{className:"h-1.5 w-1.5 rounded-full bg-primary",animate:{opacity:[1,.3,1]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"}}),d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider",children:"Fig. 01 — Clinical reasoning core"})]})]})}function Xt({top:t,left:e,delay:n}){return d.jsx(M.span,{className:"absolute h-1.5 w-1.5 rounded-full bg-signal shadow-[0_0_10px_currentColor]",style:{to
1p:t,left:e},animate:{opacity:[0,1,0],scale:[.5,1.4,.5]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut",delay:n}})}function Yt({className:t=""}){return d.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:t,"aria-hidden":!0,children:d.jsx("path",{d:"M0 10h8M10 0v8",stroke:"currentColor",className:"text-rule",strokeWidth:"1"})})}function Ju(){const t=[{id:"01",t:"Clinician input",b:"Vitals · history"},{id:"02",t:"MedGemma SLM",b:"Step-by-step reasoning"},{id:"03",t:"UMLS verifier",b:"Knowledge-graph checked"},{id:"04",t:"Explainable output",b:"Structured · auditable"}];return d.jsx(M.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.8,delay:.5},className:"mt-16 grid grid-cols-2 overflow-hidden rounded-2xl border hairline bg-card/70 backdrop-blur md:grid-cols-4",children:t.map((e,n)=>d.jsxs("div",{className:`flex items-start gap-3 p-5 ${n!==0?"md:border-l hairline":""} ${n%2!==0?"border-l hairline md:border-l":""} ${n>=2?"border-t hairline md:border-t-0":""}`,children:[d.jsx("span",{className:"font-mono text-xs text-primary",children:e.id}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-ink",children:e.t}),d.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:e.b})]})]},e.id))})}function zr(){return d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[d.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",className:"text-signal",strokeWidth:"1.5"}),d.jsx("circle",{cx:"12",cy:"12",r:"6",stroke:"currentColor",className:"text-signal",strokeWidth:"1",strokeDasharray:"2 2"}),d.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",className:"text-signal",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Qu(){return d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:d.jsx("path",{d:"M12 2l1.5 4.5 4.5-1-2 4 4 2-4 1 1 4-4-1.5L12 19l-1-3-4 1.5 1-4-4-1 4-2-2-4 4.5 1L12 2z",fill:"currentColor",className:"text-signal"})})}function Ie({label:t,value:e}){return d.jsxs("div",{children:[d.jsx("p",{className:"font-display text-3xl text-primary",children:e}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:t})]})}const td=[{tag:"Doctors need AI support",body:"Complex diagnostic decisions require reliable, fast clinical reasoning — not chat-bot guesses."},{tag:"Big models = big costs",body:"GPT-4 and DeepSeek require cloud calls per query. Expensive, latent, and unsustainable at scale."},{tag:"Privacy is non-negotiable",body:"Sending patient data to external APIs violates HIPAA and erodes the trust clinicians depend on."}];function ed(){return d.jsx(yt,{id:"problem",num:"01",label:"The trilemma",title:d.jsxs(d.Fragment,{children:["Today's AI forces healthcare to pick two of three:"," ",d.jsx("em",{className:"text-signal",children:"accuracy"}),","," ",d.jsx("em",{className:"text-signal",children:"cost"}),", or"," ",d.jsx("em",{className:"text-signal",children:"confidentiality"}),"."]}),children:d.jsx("div",{className:"grid gap-px overflow-hidden rounded-2xl border hairline bg-rule md:grid-cols-3",children:td.map((t,e)=>d.jsxs("div",{className:"bg-card p-8",children:[d.jsxs("p",{className:"section-num",children:["0",e+1]}),d.jsx("p",{className:"font-display mt-4 text-2xl leading-tight text-ink",children:t.tag}),d.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:t.body})]},e))})})}function nd(){return d.jsx(yt,{id:"solution",num:"02",label:"The solution",title:d.jsxs(d.Fragment,{children:["Not just answers — ",d.jsx("em",{className:"text-primary",children:"verified clinical thinking"}),"."]}),children:d.jsxs("div",{className:"space-y-6",children:[d.jsx("p",{className:"text-lg leading-relaxed text-muted-foreground text-pretty",children:"CloudMD generates step-by-step clinical reasoning, then verifies every output against established medical knowledge before it reaches the clinician. The model runs entirely on your infrastructure — no cloud round-trip, no third-party API, no PHI ever leaving the building."}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:[["Structured reasoning","Step-by-step decision logic the clinician can audit, not a black-box answer."],["Medical-knowledge verification","Outputs validated against UMLS and clinical guidelines before display."],["Workflow-aligned","Designed to fit existing clinical workflows — assist, never replace."],["Removable patient context","Doctors can clear a patient's data from the model context anytime."]].map(([t,e])=>d.jsx("div",{className:"rounded-xl border hairline bg-card p-5",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(sd,{}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-ink",children:t}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:e})]})]})},t))})]})})}function sd(){return d.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"mt-0.5 shrink-0",children:[d.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",className:"text-primary",strokeWidth:"1.5"}),d.jsx("path",{d:"M6 10.5l2.5 2.5L14 7.5",stroke:"currentColor",className:"text-primary",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const id="/assets/onprem-illustration-DQGjyUs9.png";function rd(){return d.jsx(yt,{id:"how",num:"03",label:"Architecture",title:d.jsxs(d.Fragment,{children:["A reasoning-tuned SLM, a knowledge-graph verifier,"," ",d.jsx("em",{className:"text-primary",children:"your hardware"}),"."]}),variant:"ink",children:d.jsxs("div",{className:"grid gap-8 lg:grid-cols-12 lg:items-center",children:[d.jsxs("div",{className:"order-2 lg:order-1 lg:col-span-7",children:[d.jsxs("div",{className:"grid gap-4 sm:grid-cols-3",children:[d.jsx(Be,{k:"01",title:"Reasoning-tuned SLM",body:"MedGemma 4B & 27B fine-tuned to reason like senior clinicians. Up to 1000× smaller than GPT-4-class models."}),d.jsx(Be,{k:"02",title:"UMLS KG verifier",body:"Every reasoning chain checked against the Unified Medical Language System for clinical correctness."}),d.jsx(Be,{k:"03",title:"On-prem deployment",body:"Runs inside your data center, clinic, or private cloud. Customer-built, area-wise medical separation."})]}
1),d.jsxs("div",{className:"mt-6 grid gap-4 rounded-2xl border border-background/10 bg-background/[0.04] p-6 sm:grid-cols-3",children:[d.jsx(Fe,{label:"Model size",value:"4B / 27B"}),d.jsx(Fe,{label:"Cost vs cloud LLMs",value:"~99% lower"}),d.jsx(Fe,{label:"PHI sent externally",value:"None"})]})]}),d.jsxs("div",{className:"relative order-1 lg:order-2 lg:col-span-5",children:[d.jsxs("div",{className:"relative mx-auto aspect-square max-w-sm",children:[d.jsx("div",{className:"absolute inset-0 rounded-full bg-background/5 blur-2xl"}),d.jsx("img",{src:id,alt:"On-premise server vault illustration",loading:"lazy",width:1024,height:1024,className:"relative h-full w-full object-contain opacity-90 [filter:invert(1)_sepia(0.2)_saturate(0.4)_brightness(1.1)]"})]}),d.jsx("div",{className:"mt-3 text-center",children:d.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-background/50",children:"Fig. 01 — Customer-controlled vault"})})]})]})})}function Be({k:t,title:e,body:n}){return d.jsxs("div",{className:"rounded-xl border border-background/10 bg-background/[0.03] p-5",children:[d.jsxs("p",{className:"font-mono text-xs text-background/50",children:["/ ",t]}),d.jsx("p",{className:"font-display mt-3 text-xl text-background",children:e}),d.jsx("p",{className:"mt-2 text-sm leading-relaxed text-background/70",children:n})]})}function Fe({label:t,value:e}){return d.jsxs("div",{children:[d.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-background/50",children:t}),d.jsx("p",{className:"font-display mt-1 text-2xl text-background",children:e})]})}const ei=[["Runs on-premise",!0,!1],["Patient data privacy",!0,!1],["Reasoning verification",!0,!1,"Low cost","High cost"],["Low operational cost",!0,!1],["Patient data autonomy",!0,!1],["Doctor can remove data anytime",!0,!1]];function od(){return d.jsx(yt,{id:"advantage",num:"04",label:"Competitive advantage",title:d.jsxs(d.Fragment,{children:["Built ",d.jsx("em",{className:"text-primary",children:"for"})," healthcare — not adapted from general AI."]}),children:d.jsxs("div",{className:"overflow-hidden rounded-2xl border hairline bg-card",children:[d.jsxs("div",{className:"grid grid-cols-12 border-b hairline bg-parchment px-6 py-4 text-sm font-medium text-ink",children:[d.jsx("div",{className:"col-span-6",children:"Feature"}),d.jsx("div",{className:"col-span-3 text-center",children:"CloudMD"}),d.jsx("div",{className:"col-span-3 text-center text-muted-foreground",children:"Other AI"})]}),ei.map((t,e)=>{const[n,s,i,o,r]=t;return d.jsxs("div",{className:`grid grid-cols-12 items-center px-6 py-5 ${e!==ei.length-1?"border-b hairline":""}`,children:[d.jsx("div",{className:"col-span-6 text-sm text-ink",children:n}),d.jsxs("div",{className:"col-span-3 flex flex-col items-center gap-1",children:[d.jsx(ni,{on:s}),o&&d.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-primary",children:o})]}),d.jsxs("div",{className:"col-span-3 flex flex-col items-center gap-1",children:[d.jsx(ni,{on:i}),r&&d.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-signal",children:r})]})]},n)})]})})}function ni({on:t}){return t?d.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[d.jsx("circle",{cx:"11",cy:"11",r:"10",fill:"currentColor",className:"text-primary/10"}),d.jsx("path",{d:"M6.5 11.5l3 3 6-6.5",stroke:"currentColor",className:"text-primary",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}):d.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[d.jsx("circle",{cx:"11",cy:"11",r:"10",fill:"currentColor",className:"text-signal/10"}),d.jsx("path",{d:"M7 7l8 8M15 7l-8 8",stroke:"currentColor",className:"text-signal",strokeWidth:"1.8",strokeLinecap:"round"})]})}const ad=[{v:"10+",l:"Personal clinics live"},{v:"24×7",l:"Continuous availability"},{v:"ICU / OPD",l:"Across care settings"}];function ld(){return d.jsx(yt,{id:"deployments",num:"05",label:"In the field",title:d.jsxs(d.Fragment,{children:["Live in clinics today —"," ",d.jsx("em",{className:"text-primary",children:"expanding rapidly"})," across healthcare systems."]}),children:d.jsxs("div",{className:"space-y-10",children:[d.jsx("p",{className:"max-w-2xl text-lg leading-relaxed text-muted-foreground text-pretty",children:"CloudMD's Health SLM is already deployed across personal clinics with Sri Lanka Medical Council registered medical officers — spanning general practice, OPD, and ICU/HDU settings. The rollout is now expanding to hospital networks, rural health programs, and partner healthcare systems across the region."}),d.jsx("div",{className:"grid gap-px overflow-hidden rounded-2xl border hairline bg-rule md:grid-cols-3",children:ad.map(t=>d.jsxs("div",{className:"bg-card p-8",children:[d.jsx("p",{className:"font-display text-5xl text-primary",children:t.v}),d.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:t.l})]},t.l))}),d.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[d.jsx(si,{tag:"Now",title:"Personal clinics & private practice",body:"Active deployments with SLMC-registered medical officers across general practice, OPD and ICU/HDU.",active:!0}),d.jsx(si,{tag:"Next",title:"Hospital networks & rural programs",body:"Onboarding multi-site hospital groups and underserved-region health initiatives across South Asia."})]})]})})}function si({tag:t,title:e,body:n,active:s}){return d.jsxs("div",{className:"rounded-2xl border hairline bg-card p-6",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${s?"bg-primary animate-pulse":"bg-muted-foreground
1/40"}`}),d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground",children:t})]}),d.jsx("p",{className:"font-display mt-3 text-2xl text-ink",children:e}),d.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:n})]})}const cd=[{k:"i",t:"Efficiency & scalability",b:"Lightweight models cut infrastructure costs and deploy across distributed clinical environments."},{k:"ii",t:"Privacy & control",b:"Operates in controlled environments. Zero external data exposure. Patient data autonomy by default."},{k:"iii",t:"Structured reasoning",b:"Step-by-step decision logic with transparent, auditable outputs — never a black box."}];function ud(){return d.jsx(yt,{id:"principles",num:"06",label:"Core design principles",title:d.jsxs(d.Fragment,{children:["Three commitments. ",d.jsx("em",{className:"text-primary",children:"No exceptions."})]}),children:d.jsx("ol",{className:"overflow-hidden rounded-2xl border hairline bg-card divide-y divide-[color:var(--color-rule)]",children:cd.map(t=>d.jsxs("li",{className:"grid grid-cols-12 items-baseline gap-4 bg-card p-8",children:[d.jsxs("span",{className:"font-display col-span-1 text-3xl text-primary",children:[t.k,"."]}),d.jsxs("div",{className:"col-span-11",children:[d.jsx("p",{className:"font-display text-2xl text-ink",children:t.t}),d.jsx("p",{className:"mt-2 max-w-xl text-sm text-muted-foreground",children:t.b})]})]},t.k))})})}const dd=[{date:"March 25, 2026",source:"ACCESS Newswire · Yahoo Finance",tag:"Press Release",title:"Predictiv AI Expands Active Deployment of CloudRep.ai Across Healthcare, Retail, Real Estate, Travel and Global Markets",excerpt:"Predictiv AI Inc. (CSE:PAI)(FWB:7IT) announces continued progress in the deployment and expansion of its AI-powered communications platform, CloudRep.ai, into multiple industries and international markets — including active healthcare deployments with registered medical officers.",href:"https://ca.finance.yahoo.com/news/predictiv-ai-expands-active-deployment-122500803.html"}];function hd(){return d.jsx(yt,{id:"news",num:"08",label:"News & Publications",title:d.jsxs(d.Fragment,{children:["In the ",d.jsx("em",{className:"text-primary",children:"media"}),"."]}),children:d.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[dd.map((t,e)=>d.jsxs(M.a,{href:t.href,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5,delay:e*.08},className:"group relative flex flex-col overflow-hidden rounded-2xl border hairline bg-card/70 p-6 backdrop-blur transition-colors hover:bg-card md:p-8",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"rounded-full border border-signal/30 bg-signal/5 px-2.5 py-1 font-mono text-[10px] uppercase tracking-wider text-signal",children:t.tag}),d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground",children:t.date})]}),d.jsx("h3",{className:"font-display mt-4 text-xl leading-snug text-ink md:text-2xl",children:t.title}),d.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:t.excerpt}),d.jsxs("div",{className:"mt-6 flex items-center justify-between border-t hairline pt-4",children:[d.jsx("span",{className:"font-mono text-[11px] uppercase tracking-wider text-muted-foreground",children:t.source}),d.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-ink transition-transform group-hover:translate-x-0.5",children:["Read article",d.jsx("span",{"aria-hidden":!0,children:"→"})]})]})]},t.title)),d.jsxs(M.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5,delay:.16},className:"relative flex flex-col items-start justify-between overflow-hidden rounded-2xl border border-dashed hairline bg-card/30 p-6 md:p-8",children:[d.jsxs("div",{children:[d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground",children:"Coming soon"}),d.jsx("h3",{className:"font-display mt-4 text-xl leading-snug text-ink md:text-2xl",children:"More publications & clinical case studies in the pipeline."}),d.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:"We're preparing peer-reviewed write-ups and deployment briefs from ongoing pilots with registered medical officers."})]}),d.jsx("span",{className:"mt-6 font-mono text-[11px] uppercase tracking-wider text-muted-foreground",children:"Stay tuned"})]})]})})}function fd(){return d.jsx("section",{className:"border-b hairline bg-parchment",children:d.jsx("div",{className:"mx-auto max-w-7xl px-6 py-20 md:px-10 md:py-24",children:d.jsxs("div",{className:"grid items-end gap-10 lg:grid-cols-12",children:[d.jsxs("div",{className:"lg:col-span-8",children:[d.jsx("p",{className:"section-num",children:"/ 07 — Talk to us"}),d.jsxs("h2",{className:"font-display mt-6 text-5xl leading-[1.02] tracking-tight text-ink md:text-6xl text-balance",children:["See CloudMD reason on a real"," ",d.jsx("em",{className:"text-primary",children:"clinical case"}),"."]}),d.jsx("p",{className:"mt-6 max-w-xl text-lg text-muted-foreground text-pretty",children:"We'll walk through deployment in your environment, the UMLS verifier, and what your team needs to go live in 
1weeks — not quarters."})]}),d.jsxs("div",{className:"flex flex-col gap-3 lg:col-span-4 lg:items-end",children:[d.jsx(Oe,{to:"/contact",className:"inline-flex items-center justify-center gap-2 rounded-full bg-ink px-7 py-4 text-base font-medium text-background transition-opacity hover:opacity-90",children:"Request a clinical demo →"}),d.jsx("p",{className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Patent pending · Predictiv"})]})]})})})}function vd(){return d.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[d.jsx(Xr,{}),d.jsxs("main",{children:[d.jsx(qu,{}),d.jsx(ed,{}),d.jsx(nd,{}),d.jsx(rd,{}),d.jsx(od,{}),d.jsx(ld,{}),d.jsx(ud,{}),d.jsx(hd,{}),d.jsx(fd,{})]}),d.jsx(Yr,{})]})}export{vd as component};

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