PageSourceSearch

https://globalmsc.org.br/assets/Home-DFYBAaO6.js

js globalmsc.org.br collected 2026-10-06 04:44:56 UTC 140,158 bytes, 1 lines download raw bytes

vendor: 18,358 bytes, line 1
1import{j as p}from"./index-CqLBPYzo.js";import{r as S}from"./react-vendor-DWvC8KHc.js";import{S as ko}from"./SEO-rPq5aK4c.js";import{b as Bo,D as No}from"./DirectorSection-Dan-_v0l.js";import{n as Io,f as Fo}from"./noticias-DKe6_qs_.js";import{f as me,a as Dn,b as Oo,c as Wo,d as Uo,e as En,g as Ko,h as Rn,i as Go,j as zo,k as Ho}from"./index-B1QyqMzV.js";import{F as yt}from"./ui-vendor-C78Oqhe0.js";import"./icons-vendor-CJxQT8rr.js";const Xs=S.createContext({});function $o(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const _o=typeof window<"u",Xo=_o?S.useLayoutEffect:S.useEffect,en=S.createContext(null);function nn(t,e){t.indexOf(e)===-1&&t.push(e)}function Jt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let ce=()=>{};const ot={},Ys=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),qs=t=>typeof t=="object"&&t!==null,Zs=t=>/^0[^.\s]+$/u.test(t);function Js(t){let e;return()=>(e===void 0&&(e=t()),e)}const H=t=>t,It=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Lt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class sn{constructor(){this.subscriptions=[]}add(e){return nn(this.subscriptions,e),()=>Jt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,z=t=>t/1e3,Qs=(t,e)=>e?t*(1e3/e):0,ti=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Yo=1e-7,qo=12;function Zo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ti(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Yo&&++a<qo);return o}function Ft(t,e,n,s){if(t===e&&n===s)return H;const i=r=>Zo(r,0,1,t,n);return r=>r===0||r===1?r:ti(i(r),e,s)}const ei=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ni=t=>e=>1-t(1-e),si=Ft(.33,1.53,.69,.99),on=ni(si),ii=ei(on),oi=t=>t>=1?1:(t*=2)<1?.5*on(t):.5*(2-Math.pow(2,-10*(t-1))),rn=t=>1-Math.sin(Math.acos(t)),ri=ni(rn),ai=ei(rn),Jo=Ft(.42,0,1,1),Qo=Ft(0,0,.58,1),li=Ft(.42,0,.58,1),tr=t=>Array.isArray(t)&&typeof t[0]!="number",ci=t=>Array.isArray(t)&&typeof t[0]=="number",er={linear:H,easeIn:Jo,easeInOut:li,easeOut:Qo,circIn:rn,circInOut:ai,circOut:ri,backIn:on,backInOut:ii,backOut:si,anticipate:oi},nr=t=>typeof t=="string",jn=t=>{if(ci(t)){ce(t.length===4);const[e,n,s,i]=t;return Ft(e,n,s,i)}else if(nr(t))return er[t];return t},Ut=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function sr(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const m=h&&s?e:n;return u&&r.add(c),m.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(c))}};return l}const ir=40;function ui(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ut.reduce((v,w)=>(v[w]=sr(r),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:m,postRender:f}=o,g=()=>{const v=ot.useManualTiming,w=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,ir),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),m.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Ut.reduce((v,w)=>{const A=o[w];return v[w]=(M,C=!1,P=!1)=>(n||y(),A.schedule(M,C,P)),v},{}),cancel:v=>{for(let w=0;w<Ut.length;w++)o[Ut[w]].cancel(v)},state:i,steps:o}}const{schedule:E,cancel:rt,state:I,steps:pe}=ui(typeof requestAnimationFrame<"u"?requestAnimationFrame:H,!0);let Ht;function or(){Ht=void 0}const O={now:()=>(Ht===void 0&&O.set(I.isProcessing||ot.useManualTiming?I.timestamp:performance.now()),Ht),set:t=>{Ht=t,queueMicrotask(or)}},hi=t=>e=>typeof e=="string"&&e.startsWith(t),di=hi("--"),rr=hi("var(--"),an=t=>rr(t)?ar.test(t.split("/*")[0].trim()):!1,ar=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ln(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const At={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kt={...At,transform:t=>tt(0,1,t)},Kt={...At,default:1},Dt=t=>Math.round(t*1e5)/1e5,ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lr(t){return t==null}const cr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cn=(t,e)=>n=>!!(typeof n=="string"&&cr.test(n)&&n.startsWith(t)||e&&!lr(n)&&Object.prototype.hasOwnProperty.call(n,e)),fi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(ln);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ur=t=>tt(0,255,t),ge={...At,transform:t=>Math.round(ur(t))},dt={test:cn("rgb","red"),parse:fi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ge.transform(t)+", "+ge.transform(e)+", "+ge.transform(n)+", "+Dt(kt.transform(s))+")"};function hr(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 Re={test:cn("#"),parse:hr,transform:dt.transform},Ot=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Ot("deg"),Q=Ot("%"),T=Ot("px"),dr=Ot("vh"),fr=Ot("vw"),kn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},vt={test:cn("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Dt(e))+", "+Q.transform(Dt(n))+", "+Dt(kt.transform(s))+")"},L={test:t=>dt.test(t)||Re.test(t)||vt.test(t),parse:t=>dt.test(t)?dt.parse(t):vt.test(t)?vt.parse(t):Re.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?dt.transform(t):vt.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},mr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ln))==null?void 0:e.length)||0)+(((n=t.match(mr))==null?void 0:n.length)||0)>0}const mi="number",pi="color",gr="var",yr="var(",Bn="${}",xr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(xr,l=>(L.test(l)?(s.color.push(r),i.push(pi),n.push(L.parse(l))):l.startsWith(yr)?(s.var.push(r),i.push(gr),n.push(l)):(s.number.push(r),i.push(mi),n.push(parseFloat(l))),++r,Bn)).split(Bn);return{values:n,split:a,indexes:s,types:i}}function vr(t){return Tt(t).values}function gi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===mi?i+=Dt(s[r]):o===pi?i+=L.transform(s[r]):i+=s[r]}return i}}function br(t){return gi(Tt(t))}const wr=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t,Tr=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:wr(t);function Sr(t){const e=Tt(t);return gi(e)(e.values.map((s,i)=>Tr(s,e.split[i])))}const X={test:pr,parse:vr,createTransformer:br,getAnimatableNone:Sr};function ye(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 Ar({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ye(l,a,t+1/3),r=ye(l,a,t),o=ye(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Qt(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,xe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Pr=[Re,dt,vt],Vr=t=>Pr.find(e=>e.test(t));function Nn(t){const e=Vr(t);if(!e)return!1;let n=e.parse(t);return e===vt&&(n=Ar(n)),n}const In=(t,e)=>{const n=Nn(t),s=Nn(e);if(!n||!s)return Qt(t,e);const i={...n};return r=>(i.red=xe(n.red,s.red,r),i.green=xe(n.green,s.green,r),i.blue=xe(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),dt.transform(i))},je=new Set(["none","hidden"]);function Cr(t,e){return je.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Mr(t,e){return n=>D(t,e,n)}function un(t){return typeof t=="number"?Mr:typeof t=="string"?an(t)?Qt:L.test(t)?In:Rr:Array.isArray(t)?yi:typeof t=="object"?L.test(t)?In:Dr:Qt}function yi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>un(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Dr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=un(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Er(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Rr=(t,e)=>{const n=X.createTransformer(e),s=Tt(t),i=Tt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?je.has(t)&&!i.values.length||je.has(e)&&!s.values.length?Cr(t,e):It(yi(Er(s,i),i.values),n):Qt(t,e)};function xi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):un(t)(t,e)}const jr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>rt(e),now:()=>I.isProcessing?I.timestamp:O.now()}},vi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},te=2e4;function hn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<te;)e+=n,s=t.next(e);return e>=te?1/0:e}function Lr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(hn(s),te);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:z(i)}}const R={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 Le(t,e){return t*Math.sqrt(1-e*e)}const kr=12;function Br(t,e,n){let s=n;for(let i=1;i<kr;i++)s=s-t(s)/e(s);return s}const ve=.001;function Nr({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,r,o=1-e;o=tt(R.minDamping,R.maxDamping,o),t=tt(R.minDuration,R.maxDuration,z(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,m=Le(c,o),f=Math.exp(-h);return ve-d/m*f},r=c=>{const h=c*o*t,d=h*n+n,m=Math.pow(o,2)*Math.pow(c,2)*t,f=Math.exp(-h),g=Le(Math.pow(c,2),o);return(-i(c)+ve>0?-1:1)*((d-m)*f)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-ve+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Br(i,r,a);if(t=K(t),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Ir=["duration","bounce"],Fr=["stiffness","damping","mass"];function Fn(t,e){return e.some(n=>t[n]!==void 0)}function Or(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!Fn(t,Fr)&&Fn(t,Ir))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:R.mass,stiffness:i,damping:r}}else{const n=Nr({...t,velocity:0});e={...e,...n,mass:R.mass},e.isResolvedFromDuration=!0}return e}function ee(t=R.visualDuration,e=R.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:m}=Or({...n,velocity:-z(n.velocity||0)}),f=d||0,g=c/(2*Math.sqrt(l*u)),y=o-r,x=z(Math.sqrt(l/u)),b=Math.abs(y)<5;s||(s=b?R.restSpeed.granular:R.restSpeed.default),i||(i=b?R.restDelta.granular:R.restDelta.default);let v,w,A,M,C,P;if(g<1)A=Le(x,g),M=(f+g*x*y)/A,v=V=>{const j=Math.exp(-g*x*V);return o-j*(M*Math.sin(A*V)+y*Math.cos(A*V))},C=g*x*M+y*A,P=g*x*y-M*A,w=V=>Math.exp(-g*x*V)*(C*Math.sin(A*V)+P*Math.cos(A*V));else if(g===1){v=j=>o-Math.exp(-x*j)*(y+(f+x*y)*j);const V=f+x*y;w=j=>Math.exp(-x*j)*(x*V*j-f)}else{const V=x*Math.sqrt(g*g-1);v=Y=>{const et=Math.exp(-g*x*Y),q=Math.min(V*Y,300);return o-et*((f+g*x*y)*Math.sinh(q)+V*y*Math.cosh(q))/V};const j=(f+g*x*y)/V,U=g*x*j-y*V,lt=g*x*y-j*V;w=Y=>{const et=Math.exp(-g*x*Y),q=Math.min(V*Y,300);return et*(U*Math.sinh(q)+lt*Math.cosh(q))}}const B={calculatedDuration:m&&h||null,velocity:V=>K(w(V)),next:V=>{if(!m&&g<1){const U=Math.exp(-g*x*V),lt=Math.sin(A*V),Y=Math.cos(A*V),et=o-U*(M*lt+y*Y),q=K(U*(C*lt+P*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-et)<=i,a.value=a.done?o:et,a}const j=v(V);if(m)a.done=V>=h;else{const U=K(w(V));a.done=Math.abs(U)<=s&&Math.abs(o-j)<=i}return a.value=a.done?o:j,a},toString:()=>{const V=Math.min(hn(B),te),j=vi(U=>B.next(V*U).value,V,30);return V+"ms "+j},toTransition:()=>{}};return B}ee.applyToOptions=t=>{const e=Lr(t,100,ee);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const Wr=5;function bi(t,e,n){const s=Math.max(e-Wr,0);return Qs(n-t(s),e-s)}function ke({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},m=P=>a!==void 0&&P<a||l!==void 0&&P>l,f=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*e;const y=h+g,x=o===void 0?y:o(y);x!==y&&(g=x-h);const b=P=>-g*Math.exp(-P/s),v=P=>x+b(P),w=P=>{const B=b(P),V=v(P);d.done=Math.abs(B)<=c,d.value=d.done?x:V};let A,M;const C=P=>{m(d.value)&&(A=P,M=ee({keyframes:[d.value,f(d.value)],velocity:bi(v,P,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:P=>{let B=!1;return!M&&A===void 0&&(B=!0,w(P),C(P)),A!==void 0&&P>=A?M.next(P-A):(!B&&w(P),d)}}}function Ur(t,e,n){const s=[],i=n||ot.mix||xi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||H:e;a=It(l,a)}s.push(a)}return s}function Kr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(ce(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ur(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=Lt(t[h],t[h+1],u);return a[h](d)};return n?u=>c(tt(t[0],t[r-1],u)):c}function Gr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(D(n,1,i))}}function zr(t){const e=[0];return Gr(e,t.length-1),e}function Hr(t,e){return t.map(n=>n*e)}function $r(t,e){return t.map(()=>e||li).splice(0,t.length-1)}function Et({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=tr(s)?s.map(jn):jn(s),r={done:!1,value:e[0]},o=Hr(n&&n.length===e.length?n:zr(e),t),a=Kr(o,e,{ease:Array.isArray(i)?i:$r(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const _r=t=>t!==null;function ue(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(_r),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Xr={decay:ke,inertia:ke,tween:Et,keyframes:Et,spring:ee};function wi(t){typeof t.type=="string"&&(t.type=Xr[t.type])}class dn{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 Yr=t=>t/100;class ne extends dn{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=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;wi(e);const{type:n=Et,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Et;l!==Et&&typeof a[0]!="number"&&(this.mixKeyframes=It(Yr,xi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=hn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:m,type:f,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-c*(this.playbackSpeed>=0?1:-1),b=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,w=s;if(h){const P=Math.min(this.currentTime,i)/a;let B=Math.floor(P),V=P%1;!V&&P>=1&&(V=1),V===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(d==="reverse"?(V=1-V,m&&(V-=m/a)):d==="mirror"&&(w=o)),v=tt(0,1,V)*a}let A;b?(this.delayState.value=u[0],A=this.delayState):A=w.next(v),r&&!b&&(A.value=r(A.value));let{done:M}=A;!b&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return C&&f!==ke&&(A.value=ue(u,this.options,y,this.speed)),g&&g(A.value),C&&this.finish(),A}
1then(e,n){return this.finished.then(e,n)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=K(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 bi(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(O.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=z(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:e=jr,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);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(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function qr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Be=t=>{const e=ft(Math.atan2(t[1],t[0]));return Ne(e)},Zr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Be,rotateZ:Be,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},Ne=t=>(t=t%360,t<0&&(t+=360),t),On=Be,Wn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Un=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Jr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wn,scaleY:Un,scale:t=>(Wn(t)+Un(t))/2,rotateX:t=>Ne(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Ne(ft(Math.atan2(-t[2],t[0]))),rotateZ:On,rotate:On,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 Ie(t){return t.includes("scale")?1:0}function Fe(t,e){if(!t||t==="none")return Ie(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Jr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Zr,i=a}if(!i)return Ie(e);const r=s[e],o=i[1].split(",").map(ta);return typeof r=="function"?r(o):o[r]}const Qr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Fe(n,e)};function ta(t){return parseFloat(t.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set([...Pt,"pathRotation"]),Kn=t=>t===At||t===T,ea=new Set(["x","y","z"]),na=Pt.filter(t=>!ea.has(t));function sa(t){const e=[];return na.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Fe(e,"x"),y:(t,{transform:e})=>Fe(e,"y")};it.translateX=it.x;it.translateY=it.y;const mt=new Set;let Oe=!1,We=!1,Ue=!1;function Ti(){if(We){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=sa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);
1i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}We=!1,Oe=!1,mt.forEach(t=>t.complete(Ue)),mt.clear()}function Si(){mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(We=!0)})}function ia(){Ue=!0,Si(),Ti(),Ue=!1}class fn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),Oe||(Oe=!0,E.read(Si),E.resolveKeyframes(Ti))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}qr(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 oa=t=>t.startsWith("--");function Ai(t,e,n){oa(e)?t.style.setProperty(e,n):t.style[e]=n}const ra={};function Pi(t,e){const n=Js(t);return()=>ra[e]??n()}const aa=Pi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Vi=Pi(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Gn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function Ci(t,e){if(t)return typeof t=="function"?Vi()?vi(t,e):"ease-out":ci(t)?Mt(t):Array.isArray(t)?t.map(n=>Ci(n,e)||Gn.easeOut):Gn[t]}function la(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Ci(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function Mi(t){return typeof t=="function"&&"applyToOptions"in t}function ca({type:t,...e}){return Mi(t)&&Vi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Di extends dn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ce(typeof e.type!="string");const c=ca(e);this.animation=la(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ue(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Ai(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(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}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&aa()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),H):i(this)}}const Ei={anticipate:oi,backInOut:ii,circInOut:ai};function ua(t){return t in Ei}function ha(t){typeof t.ease=="string"&&ua(t.ease)&&(t.ease=Ei[t.ease])}const be=10;class da extends Di{constructor(e){ha(e),wi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ne({...o,autoplay:!1}),l=Math.max(be,O.now()-this.startTime),c=tt(0,be,l-be),u=a.sample(l).value,{name:h}=this.options;r&&h&&Ai(r,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function fa(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 ma(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=zn(i,e),a=zn(r,e);return!o||!a?!1:fa(t)||(n==="spring"||Mi(n))&&s}function Ke(t){t.duration=0,t.type="keyframes"}const Ri=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),pa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ga(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&pa.test(t[e]))return!0;return!1}const ya=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),xa=Js(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function va(t){var h;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t,l=(h=e==null?void 0:e.owner)==null?void 0:h.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return xa()&&n&&(Ri.has(n)||ya.has(n)&&ga(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ba=40;class wa extends dn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var f;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=O.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},m=(u==null?void 0:u.KeyframeResolver)||fn;this.keyframeResolver=new m(a,(g,y,x)=>this.onKeyframesResolved(g,y,d,!x),l,c,u),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(e,n,s,i){var x,b;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=O.now();let h=!0;ma(e,r,o,a)||(h=!1,(ot.instantAnimations||!l)&&(u==null||u(ue(e,s,n))),e[0]=e[e.length-1],Ke(s),s.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ba?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},f=h&&!c&&va(m),g=(b=(x=m.motionValue)==null?void 0:x.owner)==null?void 0:b.current;let y;if(f)try{y=new da({...m,element:g})}catch{y=new ne(m)}else y=new ne(m);y.finished.then(()=>{this.notifyFinished()}).catch(H),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(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),ia()),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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function ji(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const Hn=30,Ta=t=>!isNaN(parseFloat(t));class Sa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.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=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ta(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 sn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.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(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hn);return Qs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function St(t,e){return new Sa(t,e)}function Li(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function mn(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?Li(n,t):n}const Aa={type:"spring",stiffness:500,damping:25,restSpeed:10},Pa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Va={type:"keyframes",duration:.8},Ca={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ma=(t,{keyframes:e})=>e.length>2?Va:Vt.has(t)?t.startsWith("scale")?Pa(e[1]):Aa:Ca,Da=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ea(t){for(const e in t)if(!Da.has(e))return!0;return!1}const pn=(t,e,n,s={},i,r)=>
1o=>{const a=mn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-K(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ea(a)||Object.assign(u,Ma(t,u)),u.duration&&(u.duration=K(u.duration)),u.repeatDelay&&(u.repeatDelay=K(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ke(u),u.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Ke(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=ue(u.keyframes,a);if(d!==void 0){E.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new ne(u):new wa(u)},Ra=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ja(t){const e=Ra.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ki(t,e,n=1){const[s,i]=ja(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ys(o)?parseFloat(o):o}return an(i)?ki(i,e,n+1):i}function $n(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gn(t,e,n,s){if(typeof e=="function"){const[i,r]=$n(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=$n(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function pt(t,e,n){const s=t.getProps();return gn(s,e,n!==void 0?n:s.custom,t)}const Bi=new Set(["width","height","top","left","right","bottom",...Pt]),Ge=t=>Array.isArray(t);function La(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,St(n))}function ka(t){return Ge(t)?t[t.length-1]||0:t}function Ba(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ka(r[o]);La(t,o,a)}}const F=t=>!!(t&&t.getVelocity);function Na(t){return!!(F(t)&&t.add)}function ze(t,e){const n=t.getValue("willChange");if(Na(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function yn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ia="framerAppearId",Ni="data-"+yn(Ia);function Ii(t){return t.props[Ni]}const Fa=typeof window<"u";function Oa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Fi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Li(r,l):l;const c=r==null?void 0:r.reduceMotion,u=r==null?void 0:r.skipAnimations;s&&(r=s);const h=[],d=i&&t.animationState&&t.animationState.getState()[i],m=r==null?void 0:r.path;m&&m.animateVisualElement(t,a,r,n,h);for(const f in a){const g=t.getValue(f,t.latestValues[f]??null),y=a[f];if(y===void 0||d&&Oa(d,f))continue;const x={delay:n,...mn(r||{},f)};u&&(x.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===b&&!x.velocity){E.update(()=>g.set(y));continue}let v=!1;if(Fa&&window.MotionHandoffAnimation){const M=Ii(t);if(M){const C=window.MotionHandoffAnimation(M,f,E);C!==null&&(x.startTime=C,v=!0)}}ze(t,f);const w=c??t.shouldReduceMotion;g.start(pn(f,g,y,w&&Bi.has(f)?{type:!1}:x,t,v));const A=g.animation;A&&h.push(A)}if(o){const f=()=>E.update(()=>{o&&Ba(t,o)});h.length?Promise.all(h).then(f):f()}return h}function He(t,e,n={}){var l;const s=pt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Fi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=i;return Wa(t,e,c,u,h,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function Wa(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(He(l,e,{...o,delay:n+(typeof s=="function"?0:s)+ji(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Ua(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>He(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=He(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(Fi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ka={test:t=>t==="auto",parse:t=>t},Oi=t=>e=>e.test(t),Wi=[At,T,Q,nt,fr,dr,Ka],_n=t=>Wi.find(Oi(t));function Ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Zs(t):!0}const za=new Set(["brightness","contrast","saturate","opacity"]);function Ha(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ln)||[];if(!s)return t;const i=n.replace(s,"");let r=za.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const $a=/\b([a-z-]*)\(.*?\)/gu,$e={...X,getAnimatableNone:t=>{const e=t.match($a);return e?e.map(Ha).join(" "):t}},_e={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Xn={...At,transform:Math.round},_a={rotate:nt,pathRotation:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:Kt,scaleX:Kt,
vendor: 16,893 bytes, line 1
1scaleY:Kt,scaleZ:Kt,skew:nt,skewX:nt,skewY:nt,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:kt,originX:kn,originY:kn,originZ:T},se={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,..._a,zIndex:Xn,fillOpacity:kt,strokeOpacity:kt,numOctaves:Xn},Xa={...se,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:$e,WebkitFilter:$e,mask:_e,WebkitMask:_e},Ui=t=>Xa[t],Ya=new Set([$e,_e]);function Ki(t,e){let n=Ui(t);return Ya.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qa=new Set(["auto","none","0"]);function Za(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!qa.has(r)&&Tt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Ki(n,i)}class Ja extends fn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),an(h))){const d=ki(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Bi.has(s)||e.length!==2)return;const[i,r]=e,o=_n(i),a=_n(r),l=Ln(i),c=Ln(r);if(l!==c&&it[s]){this.needsMeasurement=!0;return}if(o!==a)if(Kn(o)&&Kn(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ga(e[i]))&&s.push(i);s.length&&Za(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const xn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Gi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Xe=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Qa(t){return qs(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:vn}=ui(queueMicrotask,!1),_={x:!1,y:!1};function zi(){return _.x||_.y}function tl(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Hi(t,e){const n=Gi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function el(t){return!(t.pointerType==="touch"||zi())}function nl(t,e,n={}){const[s,i,r]=Hi(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",f)},h=y=>{c&&(c(y),c=void 0),u()},d=y=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,h(y))},m=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},f=y=>{if(y.pointerType!=="touch"){if(a){l=!0;return}h(y)}},g=y=>{if(!el(y))return;l=!1;const x=e(o,y);typeof x=="function"&&(c=x,o.addEventListener("pointerleave",f,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",m,i)}),r}const $i=(t,e)=>e?t===e?!0:$i(t,e.parentElement):!1,bn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,sl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function il(t){return sl.has(t.tagName)||t.isContentEditable===!0}const ol=new Set(["INPUT","SELECT","TEXTAREA"]);function rl(t){return ol.has(t.tagName)||t.isContentEditable===!0}const $t=new WeakSet;function Yn(t){return e=>{e.key==="Enter"&&t(e)}}function we(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const al=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Yn(()=>{if($t.has(n))return;we(n,"down");const i=Yn(()=>{we(n,"up")}),r=()=>we(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function qn(t){return bn(t)&&!zi()}const Zn=new WeakSet;function ll(t,e,n={}){const[s,i,r]=Hi(t,n),o=a=>{const l=a.currentTarget;if(!qn(a)||Zn.has(a))return;$t.add(l),n.stopPropagation&&Zn.add(a);const c=e(l,a),u={...i,capture:!0},h=(f,g)=>{window.removeEventListener("pointerup",d,u),window.removeEventListener("pointercancel",m,u),$t.has(l)&&$t.delete(l),qn(f)&&typeof c=="function"&&c(f,{success:g})},d=f=>{h(f,l===window||l===document||n.useGlobalTarget||$i(l,f.target))},m=f=>{h(f,!1)};window.addEventListener("pointerup",d,u),window.addEventListener("pointercancel",m,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Qa(a)&&(a.addEventListener("focus",c=>al(c,i)),!il(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function wn(t){return qs(t)&&"ownerSVGElement"in t}const _t=new WeakMap;let st;const _i=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:wn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],cl=_i("inline","width","offsetWidth"),ul=_i("block","height","offsetHeight");function hl({target:t,borderBoxSize:e}){var n;(n=_t.get(t))==null||n.forEach(s=>{s(t,{get width(){return cl(t,e)},get height(){return ul(t,e)}})})}function dl(t){t.forEach(hl)}function fl(){typeof ResizeObserver>"u"||(st=new ResizeObserver(dl))}function ml(t,e){st||fl();const n=Gi(t);return n.forEach(s=>{let i=_t.get(s);i||(i=new Set,_t.set(s,i)),i.add(e),st==null||st.observe(s)}),()=>{n.forEach(s=>{const i=_t.get(s);i==null||i.delete(e),i!=null&&i.size||st==null||st.unobserve(s)})}}const Xt=new Set;let bt;function pl(){bt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Xt.forEach(e=>e(t))},window.addEventListener("resize",bt)}function gl(t){return Xt.add(t),bt||pl(),()=>{Xt.delete(t),!Xt.size&&typeof bt=="function"&&(window.removeEventListener("resize",bt),bt=void 0)}}function Jn(t,e){return typeof t=="function"?gl(t):ml(t,e)}function yl(t){return wn(t)&&t.tagName==="svg"}const xl=[...Wi,L,X],vl=t=>xl.find(Oi(t)),Qn=()=>({translate:0,scale:1,origin:0,originPoint:0}),wt=()=>({x:Qn(),y:Qn()}),ts=()=>({min:0,max:0}),k=()=>({x:ts(),y:ts()}),bl=new WeakMap;function he(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Bt(t){return typeof t=="string"||Array.isArray(t)}const Tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sn=["initial",...Tn];function de(t){return he(t.animate)||Sn.some(e=>Bt(t[e]))}function Xi(t){return!!(de(t)||t.variants)}function wl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,St(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,St(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ie={current:null},An={current:!1},Tl=typeof window<"u";function Yi(){if(An.current=!0,!!Tl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ie.current=t.matches;t.addEventListener("change",e),e()}else ie.current=!1}const es=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oe={};function qi(t){oe=t}function Sl(){return oe}class Al{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){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=fn,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=O.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,E.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=de(n),this.isVariantNode=Xi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in d){const f=d[m];c[m]!==void 0&&F(f)&&f.set(c[m])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,bl.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((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(An.current||Yi(),this.shouldReduceMotion=ie.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.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&&Ri.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new Di({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:K(u)}),d=o(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const s=Vt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in oe){const n=oe[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}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<es.length;s++){const i=es[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=wl(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=St(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"&&(Ys(s)||Zs(s))?s=parseFloat(s):!vl(s)&&X.test(n)&&(s=Ki(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(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 sn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){vn.render(this.render)}}class Zi extends Al{constructor(){super(...arguments),this.KeyframeResolver=Ja}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;F(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 Ji({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Pl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Vl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Te(t){return t===void 0||t===1}function Ye({scale:t,scaleX:e,scaleY:n}){return!Te(t)||!Te(e)||!Te(n)}function ht(t){return Ye(t)||Qi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qi(t){return ns(t.x)||ns(t.y)}function ns(t){return t&&t!=="0%"}function re(t,e,n){const s=t-n,i=e*s;return n+i}
1function ss(t,e,n,s,i){return i!==void 0&&(t=re(t,i,s)),re(t,n,s)+e}function qe(t,e=0,n=1,s,i){t.min=ss(t.min,e,n,s,i),t.max=ss(t.max,e,n,s,i)}function to(t,{x:e,y:n}){qe(t.x,e.translate,e.scale,e.originPoint),qe(t.y,n.translate,n.scale,n.originPoint)}const is=.999999999999,os=1.0000000000001;function Cl(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=n[l],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,to(t,o)),s&&ht(r.latestValues)&&Yt(t,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}e.x<os&&e.x>is&&(e.x=1),e.y<os&&e.y>is&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function rs(t,e,n,s,i=.5){const r=D(t.min,t.max,i);qe(t,e,n,r,s)}function as(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Yt(t,e,n){const s=n??t;rs(t.x,as(e.x,s.x),e.scaleX,e.scale,e.originX),rs(t.y,as(e.y,s.y),e.scaleY,e.scale,e.originY)}function eo(t,e){return Ji(Vl(t.getBoundingClientRect(),e))}function Ml(t,e,n){const s=eo(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Dl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},El=Pt.length;function Rl(t,e,n){let s="",i=!0;for(let o=0;o<El;o++){const a=Pt[o],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=Xe(l,se[a]);if(!c){i=!1;const h=Dl[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${Xe(r,se.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Pn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Vt.has(l)){o=!0;continue}else if(di(l)){i[l]=c;continue}else{const u=Xe(c,se[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=Rl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function no(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ls(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=ls(t,e.target.x),s=ls(t,e.target.y);return`${n}% ${s}%`}},jl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const r=X.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=D(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},Ze={borderRadius:{...Ct,applyTo:[...xn]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:jl};function so(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ze[t]||t==="opacity")}function Vn(t,e,n){var o;const s=t.style,i=e==null?void 0:e.style,r={};if(!s)return r;for(const a in s)(F(s[a])||i&&F(i[a])||so(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function Ll(t){return window.getComputedStyle(t)}class kl extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=no}mount(e){ce(!!e.style),super.mount(e)}readValueFromInstance(e,n){var s;if(Vt.has(n))return(s=this.projection)!=null&&s.isProjecting?Ie(n):Qr(e,n);{const i=Ll(e),r=(di(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return eo(e,n)}build(e,n,s){Pn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Vn(e,n,s)}}const Bl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nl={offset:"strokeDashoffset",array:"strokeDasharray"};function Il(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Bl:Nl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const io=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function oo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a}
1,l,c,u){if(Pn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;for(const m of io)h[m]!==void 0&&(d[m]=h[m],delete h[m]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Il(h,i,r,o,!1)}const ro=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"]),ao=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Fl(t,e,n,s){no(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ro.has(i)?i:yn(i),e.attrs[i])}function lo(t,e,n){const s=Vn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Ol extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const s=Ui(n);return s&&s.default||0}if(io.includes(n)){const i=getComputedStyle(e)[n];if(typeof i=="string"&&i)return i.trim()}return n=ro.has(n)?n:yn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return lo(e,n,s)}build(e,n,s){oo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Fl(e,n,s,i)}mount(e){this.isSVGTag=ao(e.tagName),super.mount(e)}}const Wl=Sn.length;function co(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?co(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Wl;n++){const s=Sn[n],i=t.props[s];(Bt(i)||i===!1)&&(e[s]=i)}return e}function uo(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 Ul=[...Tn].reverse(),Kl=Tn.length;function Gl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ua(t,n,s)))}function zl(t){let e=Gl(t),n=cs(),s=!0,i=!1;const r=c=>(u,h)=>{var m;const d=pt(t,h,c==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);if(d){const{transition:f,transitionEnd:g,...y}=d;u={...u,...y,...g}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,h=co(t.parent)||{},d=[],m=new Set;let f={},g=1/0;for(let x=0;x<Kl;x++){const b=Ul[x],v=n[b],w=u[b]!==void 0?u[b]:h[b],A=Bt(w),M=b===c?v.isActive:null;M===!1&&(g=x);let C=w===h[b]&&w!==u[b]&&A;if(C&&(s||i)&&t.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...f},!v.isActive&&M===null||!w&&!v.prevProp||he(w)||typeof w=="boolean")continue;if(b==="exit"&&v.isActive&&M!==!0){v.prevResolvedValues&&(f={...f,...v.prevResolvedValues});continue}const P=Hl(v.prevProp,w);let B=P||b===c&&v.isActive&&!C&&A||x>g&&A,V=!1;const j=Array.isArray(w)?w:[w];let U=j.reduce(r(b),{});M===!1&&(U={});const{prevResolvedValues:lt={}}=v,Y={...lt,...U},et=N=>{B=!0,m.has(N)&&(V=!0,m.delete(N)),v.needsAnimating[N]=!0;const G=t.getValue(N);G&&(G.liveStyle=!1)};for(const N in Y){const G=U[N],ct=lt[N];if(f.hasOwnProperty(N))continue;let gt=!1;Ge(G)&&Ge(ct)?gt=!uo(G,ct)||P:gt=G!==ct,gt?G!=null?et(N):m.add(N):G!==void 0&&m.has(N)?et(N):v.protectedKeys[N]=!0}v.prevProp=w,v.prevResolvedValues=U,v.isActive&&(f={...f,...U}),(s||i)&&t.blockInitialAnimation&&(B=!1);const q=C&&P;B&&(!q||V)&&d.push(...j.map(N=>{const G={type:b};if(typeof N=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,gt=pt(ct,N);if(ct.enteringChildren&&gt){const{delayChildren:Lo}=gt.transition||{};G.delay=ji(ct.enteringChildren,t,Lo)}}return{animation:N,options:G}}))}if(m.size){const x={};if(typeof u.initial!="boolean"){const b=pt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(x.transition=b.transition)}m.forEach(b=>{const v=t.getBaseTarget(b),w=t.getValue(b);w&&(w.liveStyle=!0),x[b]=v??null}),d.push({animation:x})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(d):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(m=>{var f;return(f=m.animationState)==null?void 0:f.setActive(c,u)}),n[c].isActive=u;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}
vendor: 4,162 bytes, line 1
1return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=cs(),i=!0}}}function Hl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!uo(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cs(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function Je(t,e){t.min=e.min,t.max=e.max}function $(t,e){Je(t.x,e.x),Je(t.y,e.y)}function us(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const ho=1e-4,$l=1-ho,_l=1+ho,fo=.01,Xl=0-fo,Yl=0+fo;function W(t){return t.max-t.min}function ql(t,e,n){return Math.abs(t-e)<=n}function hs(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=$l&&t.scale<=_l||isNaN(t.scale))&&(t.scale=1),(t.translate>=Xl&&t.translate<=Yl||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){hs(t.x,e.x,n.x,s?s.originX:void 0),hs(t.y,e.y,n.y,s?s.originY:void 0)}function ds(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function Zl(t,e,n,s){ds(t.x,e.x,n.x,s==null?void 0:s.x),ds(t.y,e.y,n.y,s==null?void 0:s.y)}function fs(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ae(t,e,n,s){fs(t.x,e.x,n.x,s==null?void 0:s.x),fs(t.y,e.y,n.y,s==null?void 0:s.y)}function ms(t,e,n,s,i){return t-=e,t=re(t,1/n,s),i!==void 0&&(t=re(t,1/i,s)),t}function Jl(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=ms(t.min,e,n,a,i),t.max=ms(t.max,e,n,a,i)}function ps(t,e,[n,s,i],r,o){Jl(t,e[n],e[s],e[i],e.scale,r,o)}const Ql=["x","scaleX","originX"],tc=["y","scaleY","originY"];function gs(t,e,n,s){ps(t.x,e,Ql,n?n.x:void 0,s?s.x:void 0),ps(t.y,e,tc,n?n.y:void 0,s?s.y:void 0)}function ys(t){return t.translate===0&&t.scale===1}function mo(t){return ys(t.x)&&ys(t.y)}function xs(t,e){return t.min===e.min&&t.max===e.max}function ec(t,e){return xs(t.x,e.x)&&xs(t.y,e.y)}function vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function po(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function bs(t){return W(t.x)/W(t.y)}function ws(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function nc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:h,rotateX:d,rotateY:m,skewX:f,skewY:g}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),d&&(s+=`rotateX(${d}deg) `),m&&(s+=`rotateY(${m}deg) `),f&&(s+=`skewX(${f}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const sc=xn.length,Ts=t=>typeof t=="string"?parseFloat(t):t,Ss=t=>typeof t=="number"||T.test(t);function ic(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,oc(s)),t.opacityExit=D(e.opacity??1,0,rc(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<sc;o++){const a=xn[o];let l=As(e,a),c=As(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ss(l)===Ss(c)?(t[a]=Math.max(D(Ts(l),Ts(c),s),0),(Q.test(c)||Q.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function As(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const oc=go(0,.5,ri),rc=go(.5,.95,H);function go(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function ac(t,e,n){const s=F(t)?t:St(t);return s.start(pn("",s,e,n)),s.animation}function Nt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const lc=(t,e)=>t.depth-e.depth;class cc{constructor(){this.children=[],this.isDirty=!1}add(e){nn(this.children,e),this.isDirty=!0}remove(e){Jt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEac
1h(e)}}function uc(t,e){const n=O.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(rt(s),t(r-e))};return E.setup(s,!0),()=>rt(s)}function qt(t){return F(t)?t.get():t}class hc{constructor(){this.members=[]}add(e){nn(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&&(Jt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Jt(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){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,r,o;(s=(n=e.options).onExitComplete)==null||s.call(n),(o=(i=e.resumingFrom)==null?void 0:(r=i.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const Zt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Se=["","X","Y","Z"],dc=1e3;let fc=0;function Ae(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function yo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ii(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&yo(s)}function xo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=fc++,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(gc),this.nodes.forEach(Tc),this.nodes.forEach(Sc),this.nodes.forEach(yc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new sn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=wn(o)&&!yl(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=uc(d,250),Zt.hasAnimatedSinceResize&&(Zt.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 4,530 bytes, line 1
1h(Cs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||c.getDefaultTransition()||Mc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=c.getProps(),x=!this.targetLayout||!po(this.targetLayout,m),b=!h&&d;if(this.options.layoutRoot||this.resumeFrom||b||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...mn(f,"layout"),onPlay:g,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,b,v.path)}else h||Cs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(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(Ac),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];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:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(vc),this.nodes.forEach(Ps);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bc),this.nodes.forEach(wc),this.nodes.forEach(mc),this.nodes.forEach(pc)):this.nodes.forEach(Vs),this.clearAllSnapshots();const a=O.now();I.delta=tt(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,pe.update.process(I),pe.preRender.process(I),pe.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xc),this.sharedNodes.forEach(Pc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=k()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);
1this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!mo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ht(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Dc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return k();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Ec))){const{scroll:u}=this.root;u&&(J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=k();if($(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&$(a,o),J(a.x,h.offset.x),J(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var u,h;const c=l||k();$(c,o);for(let d=0;d<this.path.length;d++){const m=this.path[d];!a&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(J(c.x,-m.scroll.offset.x),J(c.y,-m.scroll.offset.y)),ht(m.latestValues)&&Yt(c,m.latestValues,(u=m.layout)==null?void 0:u.layoutBox)}return ht(this.latestValues)&&Yt(c,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),c}removeTransform(o){var l;const a=k();$(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ht(u.latestValues))continue;let h;u.instance&&(Ye(u.latestValues)&&u.updateSnapshot(),h=k(),$(h,u.measurePageBox())),gs(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,h)}return ht(this.latestValues)&&gs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=I.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):$(this.target,this.layout.layoutBox),to(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ye(this.parent.latestValues)||Qi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ae(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var f;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty)&&
1(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===I.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Cl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=k());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(us(this.prevProjectionDelta.x,this.projectionDelta.x),us(this.prevProjectionDelta.y,this.projectionDelta.y)),Rt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!ws(this.projectionDelta.x,this.prevProjectionDelta.x)||!ws(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wt(),this.projectionDelta=wt(),this.projectionDeltaWithTransform=wt()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},d=wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=k(),f=c?c.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,x=this.getStack(),b=!x||x.members.length<=1,v=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(Cc));this.animationProgress=0;let w;const A=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=M=>{const C=M/1e3,P=A==null?void 0:A(C);P?(d.x.translate=P.x,d.x.scale=D(o.x.scale,1,C),d.x.origin=o.x.origin,d.x.originPoint=o.x.originPoint,d.y.translate=P.y,d.y.scale=D(o.y.scale,1,C),d.y.origin=o.y.origin,d.y.originPoint=o.y.originPoint):(Ms(d.x,o.x,C),Ms(d.y,o.y,C)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ae(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Vc(this.relativeTarget,this.relativeTargetOrigin,m,C),w&&ec(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=k()),$(w,this.relativeTarget)),y&&(this.animationValues=h,ic(h,u,this.latestValues,C,v,b)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{Zt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=St(0)),this.motionValue.jump(0,!1),this.currentAnimation=ac(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&vo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||k();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}$(a,l),Yt(a,u),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new hc),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 10,593 bytes, line 1
1resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ae("z",o,c,this.animationValues);for(let u=0;u<Se.length;u++)Ae(`rotate${Se[u]}`,o,c,this.animationValues),Ae(`skew${Se[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=qt(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=qt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=nc(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:d,y:m}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const f in Ze){if(u[f]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=Ze[f],b=h==="none"?u[f]:g(u[f],c);if(y){const v=y.length;for(let w=0;w<v;w++)o[y[w]]=b}else x?this.options.visualElement.renderState.vars[f]=b:o[f]=b}this.options.layoutId&&(o.pointerEvents=c===this?qt(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ps),this.root.sharedNodes.clear()}}}function mc(t){t.updateLayout()}function pc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")Z(h=>{const d=o?e.measuredBox[h]:e.layoutBox[h],m=W(d);d.min=s[h].min,d.max=d.min+m});else if(r==="x"||r==="y"){const h=r==="x"?"y":"x";Je(o?e.measuredBox[h]:e.layoutBox[h],s[h])}else vo(r,e.layoutBox,s)&&Z(h=>{const d=o?e.measuredBox[h]:e.layoutBox[h],m=W(s[h]);d.max=d.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+m)});const a=wt();Rt(a,s,e.layoutBox);const l=wt();o?Rt(l,t.applyTransform(i,!0),e.measuredBox):Rt(l,s,e.layoutBox);const c=!mo(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:m}=h;if(d&&m){const f=t.options.layoutAnchor||void 0,g=k();ae(g,e.layoutBox,d.layoutBox,f);const y=k();ae(y,s,m.layoutBox,f),po(g,y)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function gc(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 yc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function xc(t){t.clearSnapshot()}function Ps(t){t.clearMeasurements()}function vc(t){t.isLayoutDirty=!0,t.updateLayout()}function Vs(t){t.isLayoutDirty=!1}function bc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Cs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Tc(t){t.resolveTargetDelta()}function Sc(t){t.calcProjection()}function Ac(t){t.resetSkewAndRotation()}function Pc(t){t.removeLeadSnapshot()}function Ms(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ds(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Vc(t,e,n,s){Ds(t.x,e.x,n.x,s),Ds(t.y,e.y,n.y,s)}function Cc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mc={duration:.45,ease:[.4,0,.1,1]},Es=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Rs=Es("applewebkit/")&&!Es("chrome/")?Math.round:H;function js(t){t.min=Rs(t.min),t.max=Rs(t.max)}function Dc(t){js(t.x),js(t.y)}function vo(t,e,n){return t==="position"||t==="preserve-aspect"&&!ql(bs(e),bs(n),.2)}function Ec(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Rc=xo({attachResizeListener:(t,e)=>Nt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Pe={current:void 0},bo=xo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pe.current){const t=new Rc({});t.mount(window),t.setOptions({layoutScroll:!0}),Pe.current=t}return Pe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wo=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function jc(t=!0){const e=S.useContext(en);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=S.useId();S.useEffect(()=>{if(t)return i(r)},[t]);const o=S.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const To=S.createContext({strict:!1}),Ls={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 ks=!1;function Lc(){if(ks)return;const t={};for(const e in Ls)t[e]={isEnabled:n=>Ls[e].some(s=>!!n[s])};qi(t),ks=!0}function So(){return Lc(),Sl()}function kc(t){const e=So();for(const n in t)e[n]={...e[n],...t[n]};qi(e)}const fe=S.createContext({});function Bc(t,e){if(de(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Bt(n)?n:void 0,animate:Bt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Nc(t){const{initial:e,animate:n}=Bc(t,S.useContext(fe));return S.useMemo(()=>({initial:e,animate:n}),[Bs(e),Bs(n)])}function Bs(t){return Array.isArray(t)?t.join(" "):t}const Cn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ao(t,e,n){for(const s in e)!F(e[s])&&!so(s,n)&&(t[s]=e[s])}function Ic({transformTemplate:t},e){return S.useMemo(()=>{const n=Cn();return Pn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Fc(t,e){const n=t.style||{},s={};return Ao(s,n,t),Object.assign(s,Ic(t,e)),s}function Oc(t,e){const n={},s=Fc(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 Po=()=>({...Cn(),attrs:{}});function Wc(t,e,n,s){const i=S.useMemo(()=>{const r=Po();return oo(r,e,ao(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ao(r,t.style,t),i.style={...r,...i.style}}return i}const Uc=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 le(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Uc.has(t)}function Kc(t,e){return t.startsWith("on")?!le(t):(e==null?void 0:e(t))??!le(t)}function Gc(t,e,n,s){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||F(t[r])||(Kc(r,s)||n===!0&&le(r)||!e&&!le(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const zc=["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 Mn(t){return typeof t!="string"||t.includes("-")?!1:!!(zc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Hc(t,e,n,{latestValues:s},i,r=!1,o,a){const c=(o??Mn(t)?Wc:Oc)(e,s,i,t),u=Gc(e,typeof t=="string",r,a),h=t!==S.Fragment?{...u,...c,ref:n}:{},{children:d}=e,m=S.useMemo(()=>F(d)?d.get():d,[d]);return S.createElement(t,{...h,children:m})}function $c({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:_c(n,s,i,t),renderState:e()}}function _c(t,e,n,s){const i={},r=s(t,{});for(const d in r)i[d]=qt(r[d]);let{initial:o,animate:a}=t;const l=de(t),c=Xi(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!he(h)){const d=Array.isArray(h)?h:[h];for(let m=0;m<d.length;m++){const f=gn(t,d[m]);if(f){const{transitionEnd:g,transition:y,...x}=f;for(const b in x){let v=x[b];if(Array.isArray(v)){const w=u?v.length-1:0;v=v[w]}v!==null&&(i[b]=v)}for(const b in g)i[b]=g[b]}}}return i}const Vo=t=>(e,n)=>{const s=S.useContext(fe),i=S.useContext(en),r=()=>$c(t,e,s,i);return n?r():$o(r)},Xc=Vo({scrapeMotionValuesFromProps:Vn,createRenderState:Cn}),Yc=Vo({scrapeMotionValuesFromProps:lo,createRenderState:Po}
1),qc=Symbol.for("motionComponentSymbol");function Zc(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(r=>{var a;r&&((a=t.onMount)==null||a.call(t,r)),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const Co=S.createContext({});function xt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Jc(t,e,n,s,i,r){var v,w;const{visualElement:o}=S.useContext(fe),a=S.useContext(To),l=S.useContext(en),c=S.useContext(wo),u=c.reducedMotion,h=c.skipAnimations,d=S.useRef(null),m=S.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:r}),m.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const f=d.current,g=S.useContext(Co);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Qc(d.current,n,i,g);const y=S.useRef(!1);S.useInsertionEffect(()=>{f&&y.current&&f.update(n,l)});const x=n[Ni],b=S.useRef(!!x&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,x))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,x)));return Xo(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)==null||A.call(window,x)}),b.current=!1),f.enteringChildren=void 0)}),f}function Qc(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Mo(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&xt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Mo(t){if(t)return t.options.allowProjection!==!1?t.projection:Mo(t.parent)}function Ve(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&kc(s);const r=n?n==="svg":Mn(t),o=r?Yc:Xc;function a(c,u){let h;const d={...S.useContext(wo),...c,layoutId:tu(c)},{isStatic:m,isValidProp:f}=d,g=Nc(c),y=o(c,m);if(!m&&typeof window<"u"){eu();const x=nu(d);h=x.MeasureLayout,g.visualElement=Jc(t,y,d,i,x.ProjectionNode,r)}return p.jsxs(fe.Provider,{value:g,children:[h&&g.visualElement?p.jsx(h,{visualElement:g.visualElement,...d}):null,Hc(t,c,Zc(y,g.visualElement,u),y,m,e,r,f)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=S.forwardRef(a);return l[qc]=t,l}function tu({layoutId:t}){const e=S.useContext(Xs).id;return e&&t!==void 0?e+"-"+t:t}function eu(t,e){S.useContext(To).strict}function nu(t){const e=So(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function su(t,e){if(typeof Proxy>"u")return Ve;const n=new Map,s=(r,o)=>Ve(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Ve(o,void 0,t,e)),n.get(o))})}const iu=(t,e)=>e.isSVG??Mn(t)?new Ol(e):new kl(e,{allowProjection:t!==S.Fragment});class ou extends at{constructor(e){super(e),e.animationState||(e.animationState=zl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();he(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let ru=0;class au extends at{constructor(){super(...arguments),this.id=ru++,this.isExitComplete=!1}update(){var r;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:a}=this.node.getProps();
vendor: 13,760 bytes, line 1
1if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=pt(this.node,o,a);if(l){const{transition:c,transitionEnd:u,...h}=l;for(const d in h)(r=this.node.getValue(d))==null||r.jump(h[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const lu={animation:{Feature:ou},exit:{Feature:au}};function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}const cu=t=>e=>bn(e)&&t(e,Wt(e));function jt(t,e,n,s){return Nt(t,e,cu(n),s)}const Do=({current:t})=>t?t.ownerDocument.defaultView:null,Ns=(t,e)=>Math.abs(t-e);function uu(t,e){const n=Ns(t.x,e.x),s=Ns(t.y,e.y);return Math.sqrt(n**2+s**2)}const Is=new Set(["auto","scroll"]);class Eo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Gt(this.lastRawMoveEventInfo,this.transformPagePoint));const f=Ce(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=uu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=f,{timestamp:b}=I;this.history.push({...x,timestamp:b});const{onStart:v,onMove:w}=this.handlers;g||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Gt(g,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ce(f.type==="pointercancel"?this.lastMoveEventInfo:Gt(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,v),x&&x(f,v)},!bn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=Wt(e),c=Gt(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=I;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Ce(c,this.history));const m={passive:!0,capture:!0};this.removeListeners=It(jt(this.contextWindow,"pointermove",this.handlePointerMove,m),jt(this.contextWindow,"pointerup",this.handlePointerUp,m),jt(this.contextWindow,"pointercancel",this.handlePointerUp,m)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Is.has(s.overflowX)||Is.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),E.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rt(this.updatePoint)}}function Gt(t,e){return e?{point:e(t.point)}:t}function Fs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ce({point:t},e){return{point:t,delta:Fs(t,Ro(e)),offset:Fs(t,hu(e)),velocity:du(e,.1)}}function hu(t){return t[0]}function Ro(t){return t[t.length-1]}function du(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ro(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>K(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>K(e)*2&&(s=t[1]);const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function fu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Os(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 mu(t,{top:e,left:n,bottom:s,right:i}){return{x:Os(t.x,n,i),y:Os(t.y,e,s)}}function Ws(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 pu(t,e){return{x:Ws(t.x,e.x),y:Ws(t.y,e.y)}}function gu(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),tt(0,1,n)}function yu(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 Qe=.35;function xu(t=Qe){return t===!1?t=0:t===!0&&(t=Qe),{x:Us(t,"left","right"),y:Us(t,"top","bottom")}}function Us(t,e,n){return{min:Ks(t,e),max:Ks(t,n)}}function Ks(t,e){return typeof t=="number"?t:t[e]||0}const vu=new WeakMap;class bu{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=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Wt(h).point),this.stopAnimation()},o=(h,d)=>{const{drag:m,dragPropagation:f,onDragStart:g}=this.getProps();if(m&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tl(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Q.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[x];w&&(b=W(w)*(parseFloat(b)/100))}}this.originPoint[x]=b}),g&&E.update(()=>g(h,d),!1,!0),ze(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=d;if(f&&this.currentDirection===null){this.currentDirection=Tu(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&E.update(()=>y(h,d),!1,!0)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Eo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Do(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&E.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||!zt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=fu(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,i=this.constraints;e&&xt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=mu(s.layoutBox,e):this.constraints=!1,this.elastic=xu(n),i!==this.constraints&&!xt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=Ml(s,i.root,this.visualElement.getTransformPagePoint());let o=pu(i.layout.layoutBox,r);if(n){const a=n(Pl(o));this.hasMutatedConstraints=!!a,a&&(o=Ji(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Z(u=>{if(!zt(u,n,this.currentDirection))return;let h=l&&l[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,f={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,f)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ze(this.visualElement,e),s.start(pn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Z(n=>{const{drag:s}=this.getProps();if(!zt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-D(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Z(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=gu({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(o=>{if(!zt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(D(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;vu.set(this.visualElement,this);const e=this.visualElement.current,n=jt(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=c.target,m=d!==e&&rl(d);u&&h&&!m&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();xt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=wu(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),E.read(i);const a=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=c[h].translate,d.set(d.get()+c[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Qe,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Gs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function wu(t,e,n){const s=Jn(t,Gs(n)),i=Jn(e,Gs(n));return()=>{s(),i()}}function zt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Tu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Su extends at{constructor(e){super(e),this.removeGroupControls=H,this.removeListeners=H,this.controls=new bu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Me=t=>
1(e,n)=>{t&&E.update(()=>t(e,n),!1,!0)};class Au extends at{constructor(){super(...arguments),this.removePointerDownListener=H}onPointerDown(e){this.session=new Eo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Do(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Me(e),onStart:Me(n),onMove:Me(s),onEnd:(r,o)=>{delete this.session,i&&E.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=jt(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 De=!1;class Pu extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),De&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Zt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),De=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||E.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),vn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;De=!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 jo(t){const[e,n]=jc(),s=S.useContext(Xs);return p.jsx(Pu,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Co),isPresent:e,safeToRemove:n})}const Vu={pan:{Feature:Au},drag:{Feature:Su,ProjectionNode:bo,MeasureLayout:jo}};function zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&E.postRender(()=>r(e,Wt(e)))}class Cu extends at{mount(){const{current:e}=this.node;e&&(this.unmount=nl(e,(n,s)=>(zs(this.node,s,"Start"),i=>zs(this.node,i,"End"))))}unmount(){}}class Mu 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=It(Nt(this.node.current,"focus",()=>this.onFocus()),Nt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&E.postRender(()=>r(e,Wt(e)))}class Du extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=ll(e,(i,r)=>(Hs(this.node,r,"Start"),(o,{success:a})=>Hs(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const tn=new WeakMap,Ee=new WeakMap,Eu=t=>{const e=tn.get(t.target);e&&e(t)},Ru=t=>{t.forEach(Eu)};function ju({root:t,...e}){const n=t||document;Ee.has(n)||Ee.set(n,{});const s=Ee.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ru,{root:t,...e})),s[i]}function Lu(t,e,n){const s=ju(e);return tn.set(t,n),s.observe(t),()=>{tn.delete(t),s.unobserve(t)}}const ku={some:0,all:1};class Bu extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:ku[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:h,onViewportLeave:d}=this.node.getProps(),m=u?h:d;m&&m(c)};this.stopObserver=Lu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nu(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Nu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Iu={inView:{Feature:Bu},tap:{Feature:Du},focus:{Feature:Mu},hover:{Feature:Cu}},Fu={layout:{ProjectionNode:bo,MeasureLayout:jo}},Ou={...lu,...Iu,...Vu,...Fu},$s=su(Ou,iu);function Wu(){!An.current&&Yi();const[t]=S.useState(ie.current);return t}const Uu="/assets/atendimento-consorciado-home-DaXf-MWI.png",Ku="/assets/home-hero-atendimento-mulher-DaEvq_-h.png",_s=[240,7],Qu=()=>{const t=Wu(),e=S.useRef(null),[n,s]=S.useState([0,0,0,0]);S.useEffect(()=>{const f=e.current;if(!f)return;let g;const y=new IntersectionObserver(([x])=>{if(!x.isIntersecting)return;if(y.disconnect(),t){s(_s);return}const b=performance.now(),v=1400,w=A=>{const M=Math.min((A-b)/v,1),C=1-(1-M)**3;s(_s.map(P=>Math.floor(P*C))),M<1&&(g=requestAnimationFrame(w))};g=requestAnimationFrame(w)},{threshold:.3});return y.observe(f),()=>{y.disconnect(),g&&cancelAnimationFrame(g)}},[t]);const[i,r]=S.useState({nome:"",email:"",telefone:"",credito_value:"",porcentagem:"",data_encerramento:""}),[o,a]=S.useState(1),[l,c]=S.useState(!1),[u,h]=S.useState(""),[d,m]=S.useState({submitting:!1,submitted:!1,error:!1});return p.jsxs("div",{className:"min-h-screen",children:[p.jsx(ko,{title:"Home",description:"Associação dos consorciados - Conectando empresas e consorciados em uma comunidade de valor e crescimento mútuo.",keywords:"consórcio, mercado secundário, GLOBAL, associação, consórcio cancelado, carta de crédito",url:"/"}),p.jsxs("section",{className:"relative isolate overflow-hidden bg-white",children:[p.jsx("div",{className:"absolute inset-0 bg-center bg-no-repeat","aria-hidden":"true",style:{backgroundImage:`url(${Ku})`,backgroundSize:"cover",backgroundPosition:"center center"}}),p.jsx("div",{className:"pointer-events-none absolute inset-0","aria-hidden":"true",style:{background:"linear-gradient(90deg, #051E45 0%, rgba(5,30,69,0.9
16) 15%, rgba(5,30,69,0.72) 30%, rgba(5,30,69,0.2) 48%, rgba(255,255,255,0) 62%, rgba(255,255,255,0.84) 80%, #ffffff 100%)"}}),p.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-1/2 z-0 hidden w-[650px] -translate-x-1/2 items-center justify-center lg:flex","aria-hidden":"true",children:p.jsx("img",{src:Bo,alt:"",className:"w-full opacity-[0.07]",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(44%) saturate(2325%) hue-rotate(190deg) brightness(87%) contrast(104%)"}})}),p.jsxs("div",{className:"relative mx-auto grid min-h-[690px] max-w-7xl grid-cols-1 gap-10 px-4 py-12 sm:px-6 lg:grid-cols-12 lg:items-center lg:gap-6 lg:px-8 lg:py-14",children:[p.jsxs($s.div,{className:"relative z-20 lg:col-span-5 lg:py-12",initial:t?!1:{opacity:0,x:-32},animate:{opacity:1,x:0},transition:{duration:.75,ease:[.22,1,.36,1]},children:[p.jsx("h1",{className:"max-w-xl text-3xl font-extrabold leading-[1.05] tracking-tight text-white sm:text-5xl lg:text-[3.0rem]",children:"Associação dos Consorciados"}),p.jsx("p",{className:"mt-6 max-w-lg text-2xl font-medium leading-relaxed text-blue-100",children:p.jsx("span",{className:"relative inline-block pb-2 after:absolute after:bottom-0 after:left-0 after:h-[3px] after:w-full after:rounded-full after:bg-emerald-400 after:shadow-[0_0_10px_rgba(52,211,153,0.45)]",children:"Problemas com seu consórcio?"})}),p.jsx("p",{className:"mt-4 max-w-lg text-lg font-medium leading-relaxed text-blue-100",children:"Consorciado ativo, desistente ou excluído: a GLOBAL orienta e atua coletivamente na defesa dos seus direitos perante as administradoras, da adesão à devolução de valores."}),p.jsxs("a",{href:"https://control.globalmsc.org.br/minha-area/login",target:"_blank",rel:"noopener noreferrer","aria-label":"Associe-se à GLOBAL MSC",className:"group mt-9 flex min-h-48 w-full max-w-52 flex-col justify-between rounded-lg bg-[#038C3E] p-6 text-white shadow-xl transition-all duration-300 hover:-translate-y-1 hover:shadow-2xl",children:[p.jsx("svg",{className:"ml-auto h-6 w-6 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 17 17 7M7 7h10v10"})}),p.jsxs("span",{className:"text-lg font-bold leading-tight",children:["Faça parte.",p.jsx("br",{}),"Associe-se agora"]})]})]}),p.jsxs($s.nav,{className:"relative z-20 lg:col-span-5 lg:col-start-8","aria-label":"Acessos em destaque",initial:t?!1:{opacity:0,x:32},animate:{opacity:1,x:0},transition:{duration:.75,delay:.12,ease:[.22,1,.36,1]},children:[p.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[["Mercado secundário","/mercado-secundario"],["Central de atendimento","/central-de-atendimento"],["Notícias","/noticias"],["Empresas associadas","/associados-empresas"],["Estatuto social","/estatuto"],["Entre em contato","/contato"]].map(([f,g])=>p.jsxs("a",{href:g,className:"group flex min-h-32 flex-col justify-between rounded-lg border border-white/70 bg-white/70 p-5 text-[#051E45] shadow-glass backdrop-blur-md transition-all duration-300 hover:-translate-y-1 hover:bg-white/90 hover:shadow-glass-lg",children:[p.jsx("svg",{className:"ml-auto h-5 w-5 text-[#038C3E] transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 17 17 7M7 7h10v10"})}),p.jsx("span",{className:"max-w-[12rem] text-lg font-bold leading-tight",children:f})]},g))}),p.jsxs("a",{href:"/evento-inicial",className:"group mt-4 flex min-h-28 items-center gap-5 rounded-lg bg-[#051E45] px-6 py-5 text-white shadow-xl transition-all duration-300 hover:-translate-y-1 hover:shadow-2xl",children:[p.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[#038C3E] ring-8 ring-[#038C3E]/20",children:p.jsx("svg",{className:"h-5 w-5 translate-x-0.5",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:p.jsx("path",{d:"M6.5 5.2a1 1 0 0 1 1.52-.85l6.3 4.8a1 1 0 0 1 0 1.7l-6.3 4.8A1 1 0 0 1 6.5 14.8V5.2Z"})})}),p.jsx("span",{className:"text-lg font-bold",children:"Conheça a história da GLOBAL MSC"}),p.jsx("svg",{className:"ml-auto h-5 w-5 transition-transform duration-300 group-hover:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m9 18 6-6-6-6"})})]})]})]})]}),p.jsx("section",{className:"bg-[#edf5f8] py-10",children:p.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[p.jsxs("header",{className:"mb-7 text-center",children:[p.jsx("h2",{className:"text-3xl font-extrabold text-[#17395c]",children:"Em qual situação você precisa de ajuda?"}),p.jsx("p",{className:"text-gray-600",children:"Escolha o tema e acesse conteúdos e orientações específicas."})]}),p.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6",children:[[me,"Problemas com contemplação"],[Dn,"Dificuldade no reembolso"],[Oo,"Cancelamento de crédito"],[me,"Dúvidas sobre contrato"],[Wo,"Cobranças indevidas"],[Uo,"Outros assuntos"]].map(([f,g])=>p.jsxs("a",{href:"/central-de-atendimento",className:"flex min-h-36 flex-col items-center rounded-lg border border-[#d8e5eb] bg-white p-4 text-center text-[#17395c] shadow-sm",children:[p.jsx(yt,{icon:f,className:"mb-4 text-2xl text-[#17395c]"}),p.jsx("span",{className:"flex min-h-10 items-center justify-center text-sm font-bold leading-snug",children:g})]},g))})]})}),p.jsx("section",{className:"relative isolate bg-[#edf5f8] py-10 sm:py-12",children:p.jsxs("div",{className:"relative mx-auto grid max-w-7xl overflow-hidden rounded-xl border border-[#d8e5eb] bg-white md:grid-cols-2 lg:grid-cols-[1fr_1.05fr_1fr]",children:[p.jsxs("div",{className:"relative isolate min-h-[350px] overflow-hidden rounded-l-xl bg-[#e6f1f5] md:row-span-2 lg:row-span-1",children:[p.jsx("div",{className:"absolute inset-0 scale-x-[-1] bg-cover bg-[position:100%_center]",role:"img","aria-label":"Atendente em um ambiente acolhedor usando o celular",style:{backgroundImage:`url(${Uu})`}}),p.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-transparent via-white/5 to-white","aria-hidden":"true"}),p.jsxs("div",{className:"absolute bottom-4 left-4 z-20 rounded bg-white/95 p-3 text-sm font-semibold leading-7 text-[#17395c] shadow-md",children:["✓ Atendimento próximo",p.jsx("br",{}),"✓ Orientação segura",p.jsx("br",{}),"✓ Acompanhamento do seu caso"]})]}),p.jsxs("div",{className:"flex flex-col justify-center p-7",children:[p.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-[#038C3E]",children:"Atendimento ao consorciado"}),p.jsx("h2",{className:"mt-2 text-3xl font-extrabold leading-tight text-[#17395c]",children:"É simples, rápido e seguro."}),p.jsx("p",{className:"mt-3 leading-relaxed text-gray-600",children:"Você fala, a gente escuta. Nossa equipe analisa seu caso e orienta os próximos passos com base nas melhores práticas do setor."}),p.jsx("a",{href:"/central-de-atendimento",className:"mt-5 rounded bg-[#038C3E] p-3 text-center font-bold text-white",children:"Solicitar atendimento agora →"}),p.jsx("a",{href:"/central-de-atendimento",className:"mt-3 font-bold text-[#17395c]",children:"Já tem um protocolo? Acompanhe →"})]}),p.jsxs("div",{className:"m-4 flex flex-col justify-center rounded-lg bg-[#eff6f8] p-6",children:[p.jsx(yt,{icon:En,className:"text-3xl text-[#17395c]"}),p.jsx("h3",{className:"mt-3 text-xl font-extrabold text-[#17395c]",children:"Também atua no mercado secundário?"}),p.jsx("p",{className:"mt-2 text-sm leading-relaxed text-gray-600",children:"Conheça as iniciativas da GLOBAL para fortalecer esse mercado."}),p.jsx("a",{href:"/mercado-secundario",className:"mt-4 rounded border border-[#17395c] p-3 text-center font-bold text-[#17395c]",children:"Conhecer o mercado →"}
1),p.jsx("a",{href:"/associados-empresas",className:"mt-3 font-bold text-[#17395c]",children:"Acesso a empresas →"})]})]})}),p.jsx("section",{className:"bg-[#f2f8fa] py-12",children:p.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[p.jsxs("header",{className:"mb-7 text-center",children:[p.jsx("h2",{className:"text-3xl font-extrabold text-[#17395c]",children:"O que a GLOBAL faz por você?"}),p.jsx("p",{className:"mt-1 text-gray-600",children:"Atuação em defesa dos direitos e por um setor mais justo e transparente."})]}),p.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-5",children:[[Ko,"Orientação e atendimento","Esclarecimento e análise das demandas com boas práticas."],[Rn,"Representação coletiva","Articulação com empresas e órgãos do setor."],[Go,"Intermediação e diálogo","Apoio na construção de soluções e mediação de conflitos."],[zo,"Informação e educação","Conteúdo acessível sobre direitos e consórcios."],[Dn,"Acompanhamento legislativo","Monitoramento de normas relevantes para o setor."]].map(([f,g,y])=>p.jsxs("article",{className:"rounded-lg border border-[#d8e5eb] bg-white p-5 text-center shadow-sm",children:[p.jsx(yt,{icon:f,className:"text-3xl text-[#17395c]"}),p.jsx("h3",{className:"mt-3 font-bold text-[#17395c]",children:g}),p.jsx("p",{className:"mt-2 text-sm leading-relaxed text-gray-600",children:y})]},g))})]})}),p.jsx("section",{ref:e,className:"bg-[#062d59] py-8 text-white",children:p.jsxs("div",{className:"mx-auto grid max-w-7xl gap-5 px-4 sm:grid-cols-2 sm:px-6 lg:grid-cols-3 lg:px-8",children:[p.jsxs("div",{children:[p.jsxs("h2",{className:"text-2xl font-extrabold tracking-wide text-[#5A7CA3]",children:["GLOBAL",p.jsx("br",{}),"EM NÚMEROS"]}),p.jsx("p",{className:"mt-2 text-sm text-blue-100",children:"Mais transparência para você e para todo o setor."})]}),[["Associados",Rn],["Ações judiciais",En]].map(([f,g],y)=>p.jsxs("div",{className:"flex items-center gap-4 border-white/20 sm:border-l sm:pl-5",children:[p.jsx(yt,{icon:g,className:"text-2xl text-[#5A7CA3]"}),p.jsxs("div",{children:[p.jsxs("strong",{className:"text-4xl",children:["+ ",n[y].toLocaleString("pt-BR")]}),p.jsx("p",{className:"text-sm text-blue-100",children:f})]})]},f))]})}),p.jsx("section",{className:"bg-white py-12",children:p.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[p.jsxs("header",{className:"mb-6 flex items-end justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-3xl font-extrabold text-[#17395c]",children:"Conteúdo para você decidir melhor."}),p.jsx("p",{className:"mt-1 text-gray-600",children:"Notícias, análises e orientações sobre o universo dos consórcios."})]}),p.jsx("a",{href:"/noticias",className:"shrink-0 font-bold text-[#062d59]",children:"Ver todos os conteúdos →"})]}),p.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:[...Io].sort((f,g)=>g.date.localeCompare(f.date)).slice(0,3).map(f=>p.jsxs("a",{href:"/noticias",className:"overflow-hidden rounded-lg border border-[#d8e5eb] bg-white shadow-sm transition hover:-translate-y-1 hover:shadow-md",children:[f.cover&&p.jsx("img",{src:f.cover,alt:"",loading:"lazy",className:"h-36 w-full object-cover"}),p.jsxs("div",{className:"p-5",children:[p.jsxs("div",{className:"flex justify-between gap-2 text-xs text-gray-500",children:[p.jsx("span",{className:"font-bold text-[#062d59]",children:f.category}),p.jsx("time",{dateTime:f.date,children:Fo(f.date)})]}),p.jsx("h3",{className:"mt-3 font-extrabold leading-snug text-[#17395c]",children:f.title}),p.jsx("p",{className:"mt-2 text-sm leading-relaxed text-gray-600",children:f.excerpt}),p.jsxs("span",{className:"mt-3 inline-flex items-center gap-2 text-sm font-bold text-[#062d59]",children:["Leia mais ",p.jsx(yt,{icon:Ho})]})]})]},f.id))})]})}),p.jsx(No,{}),p.jsx("section",{className:"bg-[#eaf3f7] py-9",children:p.jsxs("div",{className:"mx-auto grid max-w-7xl gap-6 px-4 sm:px-6 lg:grid-cols-[1.6fr_.9fr]",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-extrabold text-[#17395c]",children:"Transparência gera confiança."}),p.jsx("p",{className:"text-sm text-gray-600",children:"Acesse documentos e informações institucionais da G
1LOBAL."}),p.jsx("div",{className:"mt-5 grid grid-cols-3 gap-2 sm:grid-cols-6",children:[["Estatuto","/estatuto"],["Políticas e normas","/politicas-privacidade"],["Governança","/quem-somos"]].map(([f,g])=>p.jsxs("a",{href:g,className:"flex min-h-20 flex-col items-center justify-center gap-2 rounded border bg-white p-2 text-center text-xs font-bold text-[#17395c]",children:[p.jsx(yt,{icon:me,className:"text-lg text-[#17395c]"}),f]},f))})]}),p.jsxs("div",{className:"rounded-lg bg-[#062d59] p-6 text-white",children:[p.jsx("h3",{className:"text-xl font-bold",children:"Juntos por um mercado de consórcios mais justo."}),p.jsx("p",{className:"mt-2 text-sm text-blue-100",children:"Mais segurança, informação e voz para você."}),p.jsx("a",{href:"/quem-somos",className:"mt-4 block rounded bg-white p-3 text-center font-bold text-[#17395c]",children:"Conheça nossa atuação →"})]})]})})]})};export{Qu as default};

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