vendor: 4,659 bytes, line 1
1import{r as m}from"./react-vendor-DZpSsI2E.js";var tt={exports:{}},ge={};var rn;function Ai(){if(rn)return ge;rn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,i,r){var o=null;if(r!==void 0&&(o=""+r),i.key!==void 0&&(o=""+i.key),"key"in i){r={};for(var a in i)a!=="key"&&(r[a]=i[a])}else r=i;return i=r.ref,{$$typeof:e,type:s,key:o,ref:i!==void 0?i:null,props:r}}return ge.Fragment=t,ge.jsx=n,ge.jsxs=n,ge}var on;function Ci(){return on||(on=1,tt.exports=Ai()),tt.exports}var _=Ci();const Jn=m.createContext({});function fe(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mi=typeof window<"u",Ye=Mi?m.useLayoutEffect:m.useEffect,Xe=m.createContext(null);function Pi(e,t){e.indexOf(t)===-1&&e.push(t)}function Ri(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const U=(e,t,n)=>n>t?t:n<e?e:n,q={},Qn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function es(e){return typeof e=="object"&&e!==null}const ts=e=>/^0[^.\s]+$/u.test(e);function ns(e){let t;return()=>(t===void 0&&(t=e()),t)}const Z=e=>e,Ei=(e,t)=>n=>t(e(n)),qe=(...e)=>e.reduce(Ei),kt=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class ss{constructor(){this.subscriptions=[]}add(t){return Pi(this.subscriptions,t),()=>Ri(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const W=e=>e*1e3,N=e=>e/1e3;function Dt(e,t){return t?e*(1e3/t):0}const is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Fi=1e-7,ki=12;function Di(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=is(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Fi&&++a<ki);return o}function Pe(e,t,n,s){if(e===t&&n===s)return Z;const i=r=>Di(r,0,1,e,n);return r=>r===0||r===1?r:is(i(r),t,s)}const rs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,os=e=>t=>1-e(1-t),as=Pe(.33,1.53,.69,.99),It=os(as),cs=rs(It),us=e=>e>=1?1:(e*=2)<1?.5*It(e):.5*(2-Math.pow(2,-10*(e-1))),Ot=e=>1-Math.sin(Math.acos(e)),Ii=os(Ot),ls=rs(Ot),Oi=Pe(.42,0,1,1),Li=Pe(0,0,.58,1),fs=Pe(.42,0,.58,1),Bi=e=>Array.isArray(e)&&typeof e[0]!="number",ds=e=>Array.isArray(e)&&typeof e[0]=="number",Ni={linear:Z,easeIn:Oi,easeInOut:fs,easeOut:Li,circIn:Ot,circInOut:ls,circOut:Ii,backIn:It,backInOut:cs,backOut:as,anticipate:us},Wi=e=>typeof e=="string",an=e=>{if(ds(e)){const[t,n,s,i]=e;return Pe(t,n,s,i)}else if(Wi(e))return Ni[e];return e},ke=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ki(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&i?n:s;return d&&o.add(c),p.add(c),c},cancel:c=>{s.delete(c),o.delete(c)},process:c=>{if(a=c,i){r=!0;return}i=!0;const d=n;n=s,s=d,n.forEach(l),n.clear(),i=!1,r&&(r=!1,u.process(c))}};return u}const ji=40;function hs(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ke.reduce((T,w)=>(T[w]=Ki(r),T),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:p}=o,y=()=>{const T=q.useManualTiming,w=T?i.timestamp:performance.now();n=!1,T||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,ji),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},g=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:ke.reduce((T,w)=>{const A=o[w];return T[w]=(P,k=!1,V=!1)=>(n||g(),A.schedule(P,k,V)),T},{}),cancel:T=>{for(let w=0;w<ke.length;w++)o[ke[w]].cancel(T)},state:i,steps:o}}const{schedule:F,cancel:ie,state:Ve}=hs(typeof requestAnimationFrame<"u"?requestAnimationFrame:Z,!0);let Le;function Hi(){Le=void 0}const L={now:()=>(Le===void 0&&L.set(Ve.isProcessing||q.useManualTiming?Ve.timestamp:performance.now()),Le),set:e=>{Le=e,queueMicrotask(Hi)}},ps=e=>t=>typeof t=="string"&&t.startsWith(e),ms=ps("--"),$i=ps("var(--"),Lt=e=>$i(e)?zi.test(e.split("/*")[0].trim()):!1,zi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const de={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ae={...de,transform:e=>U(0,1,e)},De={...de,default:1},we=e=>Math.round(e*1e5)/1e5,Bt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gi(e){return e==null}const _i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nt=(e,t)=>
vendor: 37,197 bytes, line 1
1n=>!!(typeof n=="string"&&_i.test(n)&&n.startsWith(e)||t&&!Gi(n)&&Object.prototype.hasOwnProperty.call(n,t)),gs=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Bt);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ui=e=>U(0,255,e),nt={...de,transform:e=>Math.round(Ui(e))},ee={test:Nt("rgb","red"),parse:gs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+nt.transform(e)+", "+nt.transform(t)+", "+nt.transform(n)+", "+we(Ae.transform(s))+")"};function Yi(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ht={test:Nt("#"),parse:Yi,transform:ee.transform},Re=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Y=Re("deg"),ue=Re("%"),v=Re("px"),Xi=Re("vh"),qi=Re("vw"),un={...ue,parse:e=>ue.parse(e)/100,transform:e=>ue.transform(e*100)},ae={test:Nt("hsl","hue"),parse:gs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ue.transform(we(t))+", "+ue.transform(we(n))+", "+we(Ae.transform(s))+")"},E={test:e=>ee.test(e)||ht.test(e)||ae.test(e),parse:e=>ee.test(e)?ee.parse(e):ae.test(e)?ae.parse(e):ht.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ee.transform(e):ae.transform(e),getAnimatableNone:e=>{const t=E.parse(e);return t.alpha=0,E.transform(t)}},Zi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ji(e){return isNaN(e)&&typeof e=="string"&&(e.match(Bt)?.length||0)+(e.match(Zi)?.length||0)>0}const ys="number",vs="color",Qi="var",er="var(",ln="${}",tr=/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 le(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(tr,l=>(E.test(l)?(s.color.push(r),i.push(vs),n.push(E.parse(l))):l.startsWith(er)?(s.var.push(r),i.push(Qi),n.push(l)):(s.number.push(r),i.push(ys),n.push(parseFloat(l))),++r,ln)).split(ln);return{values:n,split:a,indexes:s,types:i}}function nr(e){return le(e).values}function bs({split:e,types:t}){const n=e.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=e[r],s[r]!==void 0){const o=t[r];o===ys?i+=we(s[r]):o===vs?i+=E.transform(s[r]):i+=s[r]}return i}}function sr(e){return bs(le(e))}const ir=e=>typeof e=="number"?0:E.test(e)?E.getAnimatableNone(e):e,rr=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ir(e);function or(e){const t=le(e);return bs(t)(t.values.map((s,i)=>rr(s,t.split[i])))}const K={test:Ji,parse:nr,createTransformer:sr,getAnimatableNone:or};function st(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ar({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=st(l,a,e+1/3),r=st(l,a,e),o=st(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function je(e,t){return n=>n>0?t:e}const Ee=(e,t,n)=>e+(t-e)*n,it=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},cr=[ht,ee,ae],ur=e=>cr.find(t=>t.test(e));function fn(e){const t=ur(e);if(!t)return!1;let n=t.parse(e);return t===ae&&(n=ar(n)),n}const dn=(e,t)=>{const n=fn(e),s=fn(t);if(!n||!s)return je(e,t);const i={...n};return r=>(i.red=it(n.red,s.red,r),i.green=it(n.green,s.green,r),i.blue=it(n.blue,s.blue,r),i.alpha=Ee(n.alpha,s.alpha,r),ee.transform(i))},pt=new Set(["none","hidden"]);function lr(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fr(e,t){return n=>Ee(e,t,n)}function Wt(e){return typeof e=="number"?fr:typeof e=="string"?Lt(e)?je:E.test(e)?dn:pr:Array.isArray(e)?ws:typeof e=="object"?E.test(e)?dn:dr:je}function ws(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Wt(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function dr(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Wt(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function hr(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const pr=(e,t)=>{const n=K.createTransformer(t),s=le(e),i=le(t);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?pt.has(e)&&!i.values.length||pt.has(t)&&!s.values.length?lr(e,t):qe(ws(hr(s,i),i.values),n):je(e,t)};function Ts(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Wt(e)(e,t)}const mr=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>F.update(t,n),stop:()=>ie(t),now:()=>Ve.isProcessing?Ve.timestamp:L.now()}},xs=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},He=2e4;function Kt(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<He;)t+=n,s=e.next(t);return t>=He?1/0:t}function gr(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Kt(s),He);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:N(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 mt(e,t){return e*Math.sqrt(1-t*t)}const yr=12;function vr(e,t,n){let s=n;for(let i=1;i<yr;i++)s=s-e(s)/t(s);return s}const rt=.001;function br({duration:e=R.duration,bounce:t=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,r,o=1-t;o=U(R.minDamping,R.maxDamping,o),e=U(R.minDuration,R.maxDuration,N(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,h=mt(u,o),p=Math.exp(-d);return rt-f/h*p},r=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,p=Math.exp(-d),y=mt(Math.pow(u,2),o);return(-i(u)+rt>0?-1:1)*((f-h)*p)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-rt+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=vr(i,r,a);if(e=W(e),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const wr=["duration","bounce"],Tr=["stiffness","damping","mass"];function hn(e,t){return t.some(n=>e[n]!==void 0)}function xr(e){let t={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...e};if(!hn(e,Tr)&&hn(e,wr))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*U(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:R.mass,stiffness:i,damping:r}}else{const n=br({...e,velocity:0});t={...t,...n,mass:R.mass},t.isResolvedFromDuration=!0}return t}function $e(e=R.visualDuration,t=R.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;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:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=xr({...n,velocity:-N(n.velocity||0)}),p=f||0,y=u/(2*Math.sqrt(l*c)),g=o-r,b=N(Math.sqrt(l/c)),S=Math.abs(g)<5;s||(s=S?R.restSpeed.granular:R.restSpeed.default),i||(i=S?R.restDelta.granular:R.restDelta.default);let T,w,A,P,k,V;if(y<1)A=mt(b,y),P=(p+y*b*g)/A,T=x=>{const M=Math.exp(-y*b*x);return o-M*(P*Math.sin(A*x)+g*Math.cos(A*x))},k=y*b*P+g*A,V=y*b*g-P*A,w=x=>Math.exp(-y*b*x)*(k*Math.sin(A*x)+V*Math.cos(A*x));else if(y===1){T=M=>o-Math.exp(-b*M)*(g+(p+b*g)*M);const x=p+b*g;w=M=>Math.exp(-b*M)*(b*x*M-p)}else{const x=b*Math.sqrt(y*y-1);T=j=>{const z=Math.exp(-y*b*j),H=Math.min(x*j,300);return o-z*((p+y*b*g)*Math.sinh(H)+x*g*Math.cosh(H))/x};const M=(p+y*b*g)/x,I=y*b*M-g*x,$=y*b*g-M*x;w=j=>{const z=Math.exp(-y*b*j),H=Math.min(x*j,300);return z*(I*Math.sinh(H)+$*Math.cosh(H))}}const C={calculatedDuration:h&&d||null,velocity:x=>W(w(x)),next:x=>{if(!h&&y<1){const I=Math.exp(-y*b*x),$=Math.sin(A*x),j=Math.cos(A*x),z=o-I*(P*$+g*j),H=W(I*(k*$+V*j));return a.done=Math.abs(H)<=s&&Math.abs(o-z)<=i,a.value=a.done?o:z,a}const M=T(x);if(h)a.done=x>=d;else{const I=W(w(x));a.done=Math.abs(I)<=s&&Math.abs(o-M)<=i}return a.value=a.done?o:M,a},toString:()=>{const x=Math.min(Kt(C),He),M=xs(I=>C.next(x*I).value,x,30);return x+"ms "+M},toTransition:()=>{}};return C}$e.applyToOptions=e=>{const t=gr(e,100,$e);return e.ease=t.ease,e.duration=W(t.duration),e.type="keyframes",e};const Sr=5;function Ss(e,t,n){const s=Math.max(t-Sr,0);return Dt(n-e(s),t-s)}function gt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=V=>a!==void 0&&V<a||l!==void 0&&V>l,p=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let y=n*t;const g=d+y,b=o===void 0?g:o(g);b!==g&&(y=b-d);const S=V=>-y*Math.exp(-V/s),T=V=>b+S(V),w=V=>{const C=S(V),x=T(V);f.done=Math.abs(C)<=u,f.value=f.done?b:x};let A,P;const k=V=>{h(f.value)&&(A=V,P=$e({keyframes:[f.value,p(f.value)],velocity:Ss(T,V,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:V=>{let C=!1;return!P&&A===void 0&&(C=!0,w(V),k(V)),A!==void 0&&V>=A?P.next(V-A):(!C&&w(V),f)}}}function Vr(e,t,n){const s=[],i=n||q.mix||Ts,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Z:t;a=qe(l,a)}s.push(a)}return s}function jt(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Vr(t,s,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=kt(e[d],e[d+1],c);return a[d](f)};return n?c=>u(U(e[0],e[r-1],c)):u}function Ar(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=kt(0,t,s);e.push(Ee(n,1,i))}}function Vs(e){const t=[0];return Ar(t,e.length-1),t}function Cr(e,t){return e.map(n=>n*t)}function Mr(e,t){return e.map(()=>t||fs).splice(0,e.length-1)}function Te({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Bi(s)?s.map(an):an(s),r={done:!1,value:t[0]},o=Cr(n&&n.length===t.length?n:Vs(t),e),a=jt(o,t,{ease:Array.isArray(i)?i:Mr(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const Pr=e=>e!==null;function Ze(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(Pr),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Rr={decay:gt,inertia:gt,tween:Te,keyframes:Te,spring:$e};function As(e){typeof e.type=="string"&&(e.type=Rr[e.type])}class Ht{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Er=e=>e/100;class Ce extends Ht{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;As(t);const{type:n=Te,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Te;l!==Te&&typeof a[0]!="number"&&(this.mixKeyframes=qe(Er,Ts(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Kt(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,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:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:p,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,w=s;if(d){const V=Math.min(this.currentTime,i)/a;let C=Math.floor(V),x=V%1;!x&&V>=1&&(x=1),x===1&&C--,C=Math.min(C,d+1),C%2&&(f==="reverse"?(x=1-x,h&&(x-=h/a)):f==="mirror"&&(w=o)),T=U(0,1,x)*a}let A;S?(this.delayState.value=c[0],A=this.delayState):A=w.next(T),r&&!S&&(A.value=r(A.value));let{done:P}=A;!S&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return k&&p!==gt&&(A.value=Ze(c,this.options,g,this.speed)),y&&y(A.value),k&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return N(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+N(t)}get time(){return N(this.currentTime)}set time(t){t=W(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Ss(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=mr,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Fr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const te=e=>e*180/Math.PI,yt=e=>{const t=te(Math.atan2(e[1],e[0]));return vt(t)},kr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yt,rotateZ:yt,skewX:e=>te(Math.atan(e[1])),skewY:e=>te(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vt=e=>(e=e%360,e<0&&(e+=360),e),pn=yt,mn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Dr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mn,scaleY:gn,scale:e=>(mn(e)+gn(e))/2,rotateX:e=>vt(te(Math.atan2(e[6],e[5]))),rotateY:e=>vt(te(Math.atan2(-e[2],e[0]))),rotateZ:pn,rotate:pn,skewX:e=>te(Math.atan(e[4])),skewY:e=>te(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bt(e){return e.includes("scale")?1:0}function wt(e,t){if(!e||e==="none")return bt(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Dr,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=kr,i=a}if(!i)return bt(t);const r=s[t],o=i[1].split(",").map(Or);return typeof r=="function"?r(o):o[r]}const Ir=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wt(n,t)};function Or(e){return parseFloat(e.trim())}const he=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pe=new Set(he),yn=e=>e===de||e===v,Lr=new Set(["x","y","z"]),Br=he.filter(e=>!Lr.has(e));function Nr(e){const t=[];return Br.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const X={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wt(t,"x"),y:(e,{transform:t})=>wt(t,"y")};X.translateX=X.x;X.translateY=X.y;const ne=new Set;let Tt=!1,xt=!1,St=!1;function Cs(){if(xt){const e=Array.from(ne).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=Nr(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}xt=!1,Tt=!1,ne.forEach(e=>e.complete(St)),ne.clear()}function Ms(){ne.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xt=!0)})}function Wr(){St=!0,Ms(),Cs(),St=!1}class $t{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ne.add(this),Tt||(Tt=!0,F.read(Ms),F.resolveKeyframes(Cs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i?.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}Fr(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ne.delete(this)}cancel(){this.state==="scheduled"&&(ne.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Kr=e=>e.startsWith("--");function Ps(e,t,n){Kr(t)?e.style.setProperty(t,n):e.style[t]=n}const jr={};function zt(e,t){const n=ns(e);return()=>jr[t]??n()}const Gt=zt(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Rs=zt(()=>window.ViewTimeline!==void 0,"viewTimeline"),Es=zt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ve=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ve([0,.65,.55,1]),circOut:ve([.55,0,1,.45]),backIn:ve([.31,.01,.66,-.59]),backOut:ve([.33,1.53,.69,.99])};function Fs(e,t){if(e)return typeof e=="function"?Es()?xs(e,t):"ease-out":ds(e)?ve(e):Array.isArray(e)?e.map(n=>Fs(n,t)||vn.easeOut):vn[e]}function Hr(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Fs(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function ks(e){return typeof e=="function"&&"applyToOptions"in e}function $r({type:e,...t}){return ks(e)&&Es()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ds extends Ht{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t;const u=$r(t);this.animation=Hr(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=Ze(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Ps(n,s,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return N(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+N(t)}get time(){return N(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=W(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Gt()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),Z):i(this)}}const Is={anticipate:us,backInOut:cs,circInOut:ls};function zr(e){return e in Is}function Gr(e){typeof e.ease=="string"&&zr(e.ease)&&(e.ease=Is[e.ease])}const ot=10;class _r extends Ds{constructor(t){Gr(t),As(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ce({...o,autoplay:!1}),l=Math.max(ot,L.now()-this.startTime),u=U(0,ot,l-ot),c=a.sample(l).value,{name:d}=this.options;r&&d&&Ps(r,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const bn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(K.test(e)||e==="0")&&!e.startsWith("url("));function Ur(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Yr(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=bn(i,t),a=bn(r,t);return!o||!a?!1:Ur(e)||(n==="spring"||ks(n))&&s}function Vt(e){e.duration=0,e.type="keyframes"}const Os=new Set(["opacity","clipPath","filter","transform"]),Xr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qr(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Xr.test(e[t]))return!0;return!1}const Zr=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Jr=ns(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qr(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return Jr()&&n&&(Os.has(n)||Zr.has(n)&&qr(a))&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const eo=40;class to extends Ht{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();const f={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...d},h=c?.KeyframeResolver||$t;this.keyframeResolver=new h(a,(p,y,g)=>this.onKeyframesResolved(p,y,f,!g),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=L.now();let d=!0;Yr(t,r,o,a)||(d=!1,(q.instantAnimations||!l)&&c?.(Ze(t,s,n)),t[0]=t[t.length-1],Vt(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>eo?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},p=d&&!u&&Qr(h),y=h.motionValue?.owner?.current;let g;if(p)try{g=new _r({...h,element:y})}catch{g=new Ce(h)}else g=new Ce(h);g.finished.then(()=>{this.notifyFinished()}).catch(Z),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Wr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ls(e,t,n,s=0,i=1){const r=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const no=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function so(e){const t=no.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Bs(e,t,n=1){const[s,i]=so(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Qn(o)?parseFloat(o):o}return Lt(i)?Bs(i,t,n+1):i}const io={type:"spring",stiffness:500,damping:25,restSpeed:10},ro=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),oo={type:"keyframes",duration:.8},ao={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},co=(e,{keyframes:t})=>t.length>2?oo:pe.has(e)?e.startsWith("scale")?ro(t[1]):io:ao;function Ns(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Ws(e,t){const n=e?.[t]??e?.default??e;return n!==e?Ns(n,e):n}const uo=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function lo(e){for(const t in e)if(!uo.has(t))return!0;return!1}const fo=(e,t,n,s={},i,r)=>o=>{const a=Ws(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-W(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};lo(a)||Object.assign(c,co(e,c)),c.duration&&(c.duration=W(c.duration)),c.repeatDelay&&(c.repeatDelay=W(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Vt(c),c.delay===0&&(d=!0)),(q.instantAnimations||q.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Vt(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!r&&t.get()!==void 0){const f=Ze(c.keyframes,a);if(f!==void 0){F.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new Ce(c):new to(c)};function wn(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function _t(e,t,n,s){if(typeof t=="function"){const[i,r]=wn(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=wn(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function se(e,t,n){const s=e.getProps();return _t(s,t,n!==void 0?n:s.custom,e)}const Ks=new Set(["width","height","top","left","right","bottom",...he]),Tn=30,ho=e=>!isNaN(parseFloat(e)),xe={current:void 0};class po{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=L.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=L.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ho(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ss);const s=this.events[t].add(n);return t==="change"?()=>{s(),F.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return xe.current&&xe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Tn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Tn);return Dt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function G(e,t){return new po(e,t)}const At=e=>Array.isArray(e);function mo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,G(n))}function go(e){return At(e)?e[e.length-1]||0:e}function yo(e,t){const n=se(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=go(r[o]);mo(e,o,a)}}const D=e=>!!(e&&e.getVelocity);function vo(e){return!!(D(e)&&e.add)}function bo(e,t){const n=e.getValue("willChange");if(vo(n))return n.add(t);if(!n&&q.WillChange){const s=new q.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Ut(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const wo="framerAppearId",js="data-"+Ut(wo);function To(e){return e.props[js]}function xo({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Hs(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();r=r?Ns(r,l):l;const u=r?.reduceMotion;s&&(r=s);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),p=a[f];if(p===void 0||d&&xo(d,f))continue;const y={delay:n,...Ws(r||{},f)},g=h.get();if(g!==void 0&&!h.isAnimating()&&!Array.isArray(p)&&p===g&&!y.velocity){F.update(()=>h.set(p));continue}let b=!1;if(window.MotionHandoffAnimation){const w=To(e);if(w){const A=window.MotionHandoffAnimation(w,f,F);A!==null&&(y.startTime=A,b=!0)}}bo(e,f);const S=u??e.shouldReduceMotion;h.start(fo(f,h,p,S&&Ks.has(f)?{type:!1}:y,e,b));const T=h.animation;T&&c.push(T)}if(o){const f=()=>F.update(()=>{o&&yo(e,o)});c.length?Promise.all(c).then(f):f()}return c}function Ct(e,t,n={}){const s=se(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Hs(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return So(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function So(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ct(l,t,{...o,delay:n+(typeof s=="function"?0:s)+Ls(e.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Vo(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>Ct(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=Ct(e,t,n);else{const i=typeof t=="function"?se(e,t,n.custom):t;s=Promise.all(Hs(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Ao={test:e=>e==="auto",parse:e=>e},$s=e=>t=>t.test(e),zs=[de,v,ue,Y,qi,Xi,Ao],xn=e=>zs.find($s(e));function Co(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ts(e):!0}const Mo=new Set(["brightness","contrast","saturate","opacity"]);function Po(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Bt)||[];if(!s)return e;const i=n.replace(s,"");let r=Mo.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Ro=/\b([a-z-]*)\(.*?\)/gu,Mt={...K,getAnimatableNone:e=>{const t=e.match(Ro);return t?t.map(Po).join(" "):e}},Pt={...K,getAnimatableNone:e=>{const t=K.parse(e);return K.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Sn={...de,transform:Math.round},Eo={rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:De,scaleX:De,scaleY:De,scaleZ:De,skew:Y,skewX:Y,skewY:Y,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:Ae,originX:un,originY:un,originZ:v},Yt={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,inset:v,insetBlock:v,insetBlockStart:v,insetBlockEnd:v,insetInline:v,insetInlineStart:v,insetInlineEnd:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,paddingBlock:v,paddingBlockStart:v,paddingBlockEnd:v,paddingInline:v,paddingInlineStart:v,paddingInlineEnd:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,marginBlock:v,marginBlockStart:v,marginBlockEnd:v,marginInline:v,marginInlineStart:v,marginInlineEnd:v,fontSize:v,backgroundPositionX:v,backgroundPositionY:v,...Eo,zIndex:Sn,fillOpacity:Ae,strokeOpacity:Ae,numOctaves:Sn},Fo={...Yt,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Mt,WebkitFilter:Mt,mask:Pt,WebkitMask:Pt},Gs=e=>Fo[e],ko=new Set([Mt,Pt]);function _s(e,t){let n=Gs(e);return ko.has(n)||(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,695 bytes, line 1
1const Do=new Set(["auto","none","0"]);function Io(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Do.has(r)&&le(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=_s(n,i)}class Oo extends $t{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Lt(d))){const f=Bs(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ks.has(s)||t.length!==2)return;const[i,r]=t,o=xn(i),a=xn(r),l=cn(i),u=cn(r);if(l!==u&&X[s]){this.needsMeasurement=!0;return}if(o!==a)if(yn(o)&&yn(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else X[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Co(t[i]))&&s.push(i);s.length&&Io(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=X[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,222 bytes, line 1
1h(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Us(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Ys=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Se(e){return es(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Lo}=hs(queueMicrotask,!1),Bo={y:!1};function No(){return Bo.y}function Xs(e,t){const n=Us(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Wo(e){return!(e.pointerType==="touch"||No())}function Ko(e,t,n={}){const[s,i,r]=Xs(e,n);return s.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",p)},d=g=>{u&&(u(g),u=void 0),c()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(g))},h=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}d(g)}},y=g=>{if(!Wo(g))return;l=!1;const b=t(o,g);typeof b=="function"&&(u=b,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",h,i)}),r}const qs=(e,t)=>t?e===t?!0:qs(e,t.parentElement):!1,jo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ho=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $o(e){return Ho.has(e.tagName)||e.isContentEditable===!0}const Be=new WeakSet;function Vn(e){return t=>{t.key==="Enter"&&e(t)}}function at(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zo=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Vn(()=>{if(Be.has(n))return;at(n,"down");const i=Vn(()=>{at(n,"up")}),r=()=>at(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function An(e){return jo(e)&&!0}const Cn=new WeakSet;function Go(e,t,n={}){const[s,i,r]=Xs(e,n),o=a=>{const l=a.currentTarget;if(!An(a)||Cn.has(a))return;Be.add(l),n.stopPropagation&&Cn.add(a);const u=t(l,a),c=(h,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Be.has(l)&&Be.delete(l),An(h)&&typeof u=="function"&&u(h,{success:p})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||qs(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Se(a)&&(a.addEventListener("focus",u=>zo(u,i)),!$o(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function _o(e){return es(e)&&"ownerSVGElement"in e}const Ne=new WeakMap;let We;const Zs=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:_o(s)&&"getBBox"in s?s.getBBox()[t]:s[n],Uo=Zs("inline","width","offsetWidth"),Yo=Zs("block","height","offsetHeight");function Xo({target:e,borderBoxSize:t}){Ne.get(e)?.forEach(n=>{n(e,{get width(){return Uo(e,t)},get height(){return Yo(e,t)}})})}function qo(e){e.forEach(Xo)}function Zo(){typeof ResizeObserver>"u"||(We=new ResizeObserver(qo))}function Jo(e,t){We||Zo();const n=Us(e);return n.forEach(s=>{let i=Ne.get(s);i||(i=new Set,Ne.set(s,i)),i.add(t),We?.observe(s)}),()=>{n.forEach(s=>{const i=Ne.get(s);i?.delete(t),i?.size||We?.unobserve(s)})}}const Ke=new Set;let ce;function Qo(){ce=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ke.forEach(t=>t(e))},window.addEventListener("resize",ce)}function ea(e){return Ke.add(e),ce||Qo(),()=>{Ke.delete(e),!Ke.size&&typeof ce=="function"&&(window.removeEventListener("resize",ce),ce=void 0)}}function ta(e,t){return typeof e=="function"?ea(e):Jo(e,t)}function Js(e,t){let n;const s=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return F.preUpdate(s,!0),()=>ie(s)}function na(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],i=e[1+n],r=e[2+n],o=e[3+n],a=jt(i,r,o);return t?a(s):a}function sa(e,t,n={}){const s=e.get();let i=null,r=s,o;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,l=()=>
1{i&&(i.stop(),i=null),e.animation=void 0},u=()=>{const d=Mn(e.get()),f=Mn(r);if(d===f){l();return}const h=i?i.getGeneratorVelocity():e.getVelocity();l(),i=new Ce({keyframes:[d,f],velocity:h,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},c=()=>{u(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((d,f)=>{r=d,o=h=>f(ct(h,a)),F.postRender(c)},l),D(t)){let d=n.skipInitialAnimation===!0;const f=t.on("change",p=>{d?(d=!1,e.jump(ct(p,a),!1)):e.set(ct(p,a))}),h=e.on("destroy",f);return()=>{f(),h()}}return l}function ct(e,t){return t?e+t:e}function Mn(e){return typeof e=="number"?e:parseFloat(e)}const ia=[...zs,E,K],ra=e=>ia.find($s(e)),Pn=()=>({min:0,max:0}),Qs=()=>({x:Pn(),y:Pn()}),oa=new WeakMap;function Je(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Me(e){return typeof e=="string"||Array.isArray(e)}const Xt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qt=["initial",...Xt];function Qe(e){return Je(e.animate)||qt.some(t=>Me(e[t]))}function ei(e){return!!(Qe(e)||e.variants)}function aa(e,t,n){for(const s in t){const i=t[s],r=n[s];if(D(i))e.addValue(s,i);else if(D(r))e.addValue(s,G(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,G(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const ze={current:null},Zt={current:!1},ca=typeof window<"u";function ti(){if(Zt.current=!0,!!ca)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ze.current=e.matches;e.addEventListener("change",t),t()}else ze.current=!1}const Rn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ge={};function ni(e){Ge=e}function ua(){return Ge}class la{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,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=$t,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 h=L.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,F.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Qe(n),this.isVariantNode=ei(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];u[h]!==void 0&&D(p)&&p.set(u[h])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,oa.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Zt.current||ti(),this.shouldReduceMotion=ze.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ie(this.notifyUpdate),ie(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];
vendor: 11,914 bytes, line 1
1n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Os.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new Ds({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:W(c)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const s=pe.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&F.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ge){const n=Ge[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];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):Qs()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Rn.length;s++){const i=Rn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=aa(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=G(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Qn(s)||ts(s))?s=parseFloat(s):!ra(s)&&K.test(n)&&(s=_s(t,n)),this.setBaseTarget(t,D(s)?s.get():s)),D(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=_t(this.props,n,this.presenceContext?.custom);r&&(s=r[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!D(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ss),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Lo.render(this.render)}}class si extends la{constructor(){super(...arguments),this.KeyframeResolver=Oo}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class me{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fa({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function da(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ha(e,t){return fa(da(e.getBoundingClientRect(),t))}const pa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ma=he.length;function ga(e,t,n){let s="",i=!0;for(let r=0;r<ma;r++){const o=he[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=Ys(a,Yt[o]);if(!l){i=!1;const c=pa[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Jt(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(pe.has(l)){o=!0;continue}else if(ms(l)){i[l]=u;continue}else{const c=Ys(u,Yt[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=ga(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function ii(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function En(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ye={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(v.test(e))e=parseFloat(e);else return e;const n=En(e,t.target.x),s=En(e,t.target.y);return`${n}% ${s}%`}},ya={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=K.parse(e);if(i.length>5)return s;const r=K.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ee(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},va={borderRadius:{...ye,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomLeftRadius:ye,borderBottomRightRadius:ye,boxShadow:ya};function ri(e,{layout:t,layoutId:n}){return pe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!va[e]||e==="opacity")}function Qt(e,t,n){const s=e.style,i=t?.style,r={};if(!s)return r;for(const o in s)(D(s[o])||i&&D(i[o])||ri(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function ba(e){return window.getComputedStyle(e)}class wa extends si{constructor(){super(...arguments),this.type="html",this.renderInstance=ii}readValueFromInstance(t,n){if(pe.has(n))return this.projection?.isProjecting?bt(n):Ir(t,n);{const s=ba(t),i=(ms(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ha(t,n)}build(t,n,s){Jt(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Qt(t,n,s)}}const Ta={offset:"stroke-dashoffset",array:"stroke-dasharray"},xa={offset:"strokeDashoffset",array:"strokeDasharray"};function Sa(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?Ta:xa;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const Va=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function oi(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(Jt(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox);for(const h of Va)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Sa(d,i,r,o,!1)}const ai=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"]),ci=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Aa(e,t,n,s){ii(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(ai.has(i)?i:Ut(i),t.attrs[i])}function ui(e,t,n){const s=Qt(e,t,n);for(const i in e)if(D(e[i])||D(t[i])){const r=he.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class Ca extends si{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qs}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(pe.has(n)){const s=Gs(n);return s&&s.default||0}return n=ai.has(n)?n:Ut(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return ui(t,n,s)}build(t,n,s){oi(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Aa(t,n,s,i)}mount(t){this.isSVGTag=ci(t.tagName),super.mount(t)}}const Ma=qt.length;function li(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?li(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ma;n++){const s=qt[n],i=e.props[s];(Me(i)||i===!1)&&(t[s]=i)}return t}function fi(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Pa=[...Xt].reverse(),Ra=Xt.length;function Ea(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Vo(e,n,s)))}function Fa(e){let t=Ea(e),n=Fn(),s=!0,i=!1;const r=u=>(c,d)=>{const f=se(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:p,...y}=f;c={...c,...y,...p}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,d=li(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let b=0;b<Ra;b++){const S=Pa[b],T=n[S],w=c[S]!==void 0?c[S]:d[S],A=Me(w),P=S===u?T.isActive:null;P===!1&&(y=b);let k=w===d[S]&&w!==c[S]&&A;if(k&&(s||i)&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...p},!T.isActive&&P===null||!w&&!T.prevProp||Je(w)||typeof w=="boolean")continue;if(S==="exit"&&T.isActive&&P!==!0){T.prevResolvedValues&&(p={...p,...T.prevResolvedValues});continue}const V=ka(T.prevProp,w);let C=V||S===u&&T.isActive&&!k&&A||b>y&&A,x=!1;const M=Array.isArray(w)?w:[w];let I=M.reduce(r(S),{});P===!1&&(I={});const{prevResolvedValues:$={}}=T,j={...$,...I},z=O=>{C=!0,h.has(O)&&(x=!0,h.delete(O)),T.needsAnimating[O]=!0;const B=e.getValue(O);B&&(B.liveStyle=!1)};for(const O in j){const B=I[O],J=$[O];if(p.hasOwnProperty(O))continue;let re=!1;At(B)&&At(J)?re=!fi(B,J):re=B!==J,re?B!=null?z(O):h.add(O):B!==void 0&&h.has(O)?z(O):T.protectedKeys[O]=!0}T.prevProp=w,T.prevResolvedValues=I,T.isActive&&(p={...p,...I}),(s||i)&&e.blockInitialAnimation&&(C=!1);const H=k&&V;C&&(!H||x)&&f.push(...M.map(O=>{const B={type:S};if(typeof O=="string"&&(s||i)&&!H&&e.manuallyAnimateOnMount&&e.parent){const{parent:J}=e,re=se(J,O);if(J.enteringChildren&&re){const{delayChildren:Vi}=re.transition||{};B.delay=Ls(J.enteringChildren,e,Vi)}}
vendor: 4,966 bytes, lines 1-9
1return{animation:O,options:B}}))}if(h.size){const b={};if(typeof c.initial!="boolean"){const S=se(e,Array.isArray(c.initial)?c.initial[0]:c.initial);S&&S.transition&&(b.transition=S.transition)}h.forEach(S=>{const T=e.getBaseTarget(S),w=e.getValue(S);w&&(w.liveStyle=!0),b[S]=T??null}),f.push({animation:b})}let g=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?t(f):Promise.resolve()}function l(u,c){if(n[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),n[u].isActive=c;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fn(),i=!0}}}function ka(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fi(t,e):!1}function Q(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fn(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}function kn(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Da(e){return D(e)?e.get():e}const Fe=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ia(...e){return t=>{let n=!1;const s=e.map(i=>{const r=Dn(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Dn(e[i],null)}}}}function Oa(...e){return m.useCallback(Ia(...e),e)}class La extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Se(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Se(s)&&s.offsetWidth||0,r=Se(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Ba({children:e,isPresent:t,anchorX:n,anchorY:s,root:i,pop:r}){const o=m.useId(),a=m.useRef(null),l=m.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=m.useContext(Fe),c=e.props?.ref??e?.ref,d=Oa(a,c);return m.useInsertionEffect(()=>{const{width:f,height:h,top:p,left:y,right:g,bottom:b}=l.current;if(t||r===!1||!a.current||!f||!h)return;const S=n==="left"?`left: ${y}`:`right: ${g}`,T=s==="bottom"?`bottom: ${b}`:`top: ${p}`;a.current.dataset.motionPopId=o;const w=document.createElement("style");u&&(w.nonce=u);const A=i??document.head;return A.appendChild(w),w.sheet&&w.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${f}px !important; 5 height: ${h}px !important; 6 ${S}px !important; 7 ${T}px !important; 8 } 9 `),()=>{a.current?.removeAttribute("data-motion-pop-id"),A.contains(w)&&A.removeChild(w)}},[t]),_.jsx(La,{isPresent:t,childRef:a,sizeRef:l,pop:r,children:r===!1?e:m.cloneElement(e,{ref:d})})}const Na=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=fe(Wa),d=m.useId();let f=!0,h=m.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:p=>{c.set(p,!0);for(const y of c.values())if(!y)return;s&&s()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[n,c,s]);return r&&f&&(h={...h}),m.useMemo(()=>{c.forEach((p,y)=>c.set(y,!1))},[n]),m.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),e=_.jsx(Ba,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),_.jsx(Xe.Provider,{value:h,children:e})};function Wa(){return new Map}function Ka(e=!0){const t=m.useContext(Xe);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,r=m.useId();m.useEffect(()=>{if(e)return i(r)},[e]);const o=m.useCallback(()=>e&&s&&s(r),[r,s,e]);return!n&&s?[!1,o]:[!0]}const Ie=e=>e.key||"";function In(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const tu=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=Ka(o),f=m.useMemo(()=>In(e),[e]),h=o&&!c?[]:f.map(Ie),p=m.useRef(!0),y=m.useRef(f),g=fe(()=>new Map),b=m.useRef(new Set),[S,T]=m.useState(f),[w,A]=m.useState(f);Ye(()=>{p.current=!1,y.current=f;for(let V=0;V<w.length;V++){const C=Ie(w[V]);h.includes(C)?(g.delete(C),b.current.delete(C)):g.get(C)!==!0&&g.set(C,!1)}},[w,h.length,h.join("-")]);const P=[];if(f!==S){let V=[...f];for(let C=0;C<w.length;C++){const x=w[C],M=Ie(x);h.includes(M)||(V.splice(C,0,x),P.push(x))}return r==="wait"&&P.length&&(V=P),A(In(V)),T(f),null}const{forceRender:k}=m.useContext(Jn);return _.jsx(_.Fragment,{children:w.map(V=>{const C=Ie(V),x=o&&!c?!1:f===w||h.includes(C),M=()=>
9{if(b.current.has(C))return;if(g.has(C))b.current.add(C),g.set(C,!0);else return;let I=!0;g.forEach($=>{$||(I=!1)}),I&&(k?.(),A(y.current),o&&d?.(),s&&s())};return _.jsx(Na,{isPresent:x,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,root:u,onExitComplete:x?void 0:M,anchorX:a,anchorY:l,children:V},C)})})},en=m.createContext({strict:!1}),On={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 Ln=!1;function ja(){if(Ln)return;const e={};for(const t in On)e[t]={isEnabled:n=>On[t].some(s=>!!n[s])};ni(e),Ln=!0}function di(){return ja(),ua()}function Rt(e){const t=di();for(const n in e)t[n]={...t[n],...e[n]};ni(t)}function nu({children:e,features:t,strict:n=!1}){const[,s]=m.useState(!ut(t)),i=m.useRef(void 0);if(!ut(t)){const{renderer:r,...o}=t;i.current=r,Rt(o)}return m.useEffect(()=>{ut(t)&&t().then(({renderer:r,...o})=>{Rt(o),i.current=r,s(!0)})},[]),_.jsx(en.Provider,{value:{renderer:i.current,strict:n},children:e})}function ut(e){return typeof e=="function"}const Ha=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function _e(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ha.has(e)}let hi=e=>!_e(e);function $a(e){typeof e=="function"&&(hi=t=>t.startsWith("on")?!_e(t):e(t))}try{$a(require("@emotion/is-prop-valid").default)}catch{}function za(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||D(e[i])||(hi(i)||n===!0&&_e(i)||!t&&!_e(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const et=m.createContext({});function Ga(e,t){if(Qe(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Me(n)?n:void 0,animate:Me(s)?s:void 0}}return e.inherit!==!1?t:{}}function _a(e){const{initial:t,animate:n}=Ga(e,m.useContext(et));return m.useMemo(()=>({initial:t,animate:n}),[Bn(t),Bn(n)])}function Bn(e){return Array.isArray(e)?e.join(" "):e}const tn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pi(e,t,n){for(const s in t)!D(t[s])&&!ri(s,n)&&(e[s]=t[s])}function Ua({transformTemplate:e},t){return m.useMemo(()=>{const n=tn();return Jt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ya(e,t){const n=e.style||{},s={};return pi(s,n,e),Object.assign(s,Ua(e,t)),s}function Xa(e,t){const n={},s=Ya(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const mi=()=>({...tn(),attrs:{}});function qa(e,t,n,s){const i=m.useMemo(()=>{const r=mi();return oi(r,t,ci(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};pi(r,e.style,e),i.style={...r,...i.style}}return i}const Za=["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 nn(e){return typeof e!="string"||e.includes("-")?!1:!!(Za.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ja(e,t,n,{latestValues:s},i,r=!1,o){const l=(o??nn(e)?qa:Xa)(t,s,i,e),u=za(t,typeof e=="string",r),c=e!==m.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=m.useMemo(()=>D(d)?d.get():d,[d]);return m.createElement(e,{...c,children:f})}function Qa({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:ec(n,s,i,e),renderState:t()}}function ec(e,t,n,s){const i={},r=s(e,{});for(const f in r)i[f]=Da(r[f]);let{initial:o,animate:a}=e;const l=Qe(e),u=ei(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!Je(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=_t(e,f[h]);if(p){const{transitionEnd:y,transition:g,...b}=p;for(const S in b){let T=b[S];if(Array.isArray(T)){const w=c?T.length-1:0;T=T[w]}T!==null&&(i[S]=T)}for(const S in y)i[S]=y[S]}}}return i}const gi=e=>(t,n)=>{const s=m.useContext(et),i=m.useContext(Xe),r=()=>Qa(e,t,s,i);return n?r():fe(r)},tc=gi({scrapeMotionValuesFromProps:Qt,createRenderState:tn}),nc=gi({scrapeMotionValuesFromProps:ui,createRenderState:mi}),sc=Symbol.for("motionComponentSymbol");function ic(e,t,n){const s=m.useRef(n);m.useInsertionEffect(()=>{s.current=n});const i=m.useRef(null);return m.useCallback(r=>{r&&e.onMount?.(r);const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r);t&&(r?t.mount(r):t.unmount())},[t])}const rc=m.createContext({});function oc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ac(e,t,n,s,i,r){const{visualElement:o}=m.useContext(et),a=m.useContext(en),l=m.useContext(Xe),u=m.useContext(Fe),c=u.reducedMotion,d=u.skipAnimations,f=m.useRef(null),h=m.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:r}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,y=m.useContext(rc);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&cc(f.current,n,i,y);const g=m.useRef(!1);m.useInsertionEffect(()=>{p&&g.current&&p.update(n,l)});const b=n[js],S=m.useRef(!!b&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Ye(()=>{h.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),S.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!S.current&&p.animationState&&p.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}
vendor: 4,439 bytes, line 9
9),S.current=!1),p.enteringChildren=void 0)}),p}function cc(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yi(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&oc(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function yi(e){if(e)return e.options.allowProjection!==!1?e.projection:yi(e.parent)}function lt(e,{forwardMotionProps:t=!1,type:n}={},s,i){s&&Rt(s);const r=n?n==="svg":nn(e),o=r?nc:tc;function a(u,c){let d;const f={...m.useContext(Fe),...u,layoutId:uc(u)},{isStatic:h}=f,p=_a(u),y=o(u,h);if(!h&&typeof window<"u"){lc();const g=fc(f);d=g.MeasureLayout,p.visualElement=ac(e,y,f,i,g.ProjectionNode,r)}return _.jsxs(et.Provider,{value:p,children:[d&&p.visualElement?_.jsx(d,{visualElement:p.visualElement,...f}):null,Ja(e,u,ic(y,p.visualElement,c),y,h,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=m.forwardRef(a);return l[sc]=e,l}function uc({layoutId:e}){const t=m.useContext(Jn).id;return t&&e!==void 0?t+"-"+e:e}function lc(e,t){m.useContext(en).strict}function fc(e){const t=di(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(e)||s?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function dc(e,t){if(typeof Proxy>"u")return lt;const n=new Map,s=(r,o)=>lt(r,o,e,t),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,lt(o,void 0,e,t)),n.get(o))})}const su=dc(),hc=(e,t)=>t.isSVG??nn(e)?new Ca(t):new wa(t,{allowProjection:e!==m.Fragment});class pc extends me{constructor(t){super(t),t.animationState||(t.animationState=Fa(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Je(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let mc=0;class gc extends me{constructor(){super(...arguments),this.id=mc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"){const a=se(this.node,r,o);if(a){const{transition:l,transitionEnd:u,...c}=a;for(const d in c)this.node.getValue(d)?.jump(c[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",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const yc={animation:{Feature:pc},exit:{Feature:gc}};function vi(e){return{point:{x:e.pageX,y:e.pageY}}}function Nn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&F.postRender(()=>r(t,vi(t)))}class vc extends me{mount(){const{current:t}=this.node;t&&(this.unmount=Ko(t,(n,s)=>(Nn(this.node,s,"Start"),i=>Nn(this.node,i,"End"))))}unmount(){}}class bc extends me{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=qe(kn(this.node.current,"focus",()=>this.onFocus()),kn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&F.postRender(()=>r(t,vi(t)))}class wc extends me{mount(){const{current:t}=this.node;if(!t)return;
9const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Go(t,(i,r)=>(Wn(this.node,r,"Start"),(o,{success:a})=>Wn(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Et=new WeakMap,ft=new WeakMap,Tc=e=>{const t=Et.get(e.target);t&&t(e)},xc=e=>{e.forEach(Tc)};function Sc({root:e,...t}){const n=e||document;ft.has(n)||ft.set(n,{});const s=ft.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(xc,{root:e,...t})),s[i]}function Vc(e,t,n){const s=Sc(t);return Et.set(e,n),s.observe(e),()=>{Et.delete(e),s.unobserve(e)}}const Ac={some:0,all:1};class Cc extends me{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ac[i]},a=l=>{const{isIntersecting:u}=l;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:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=Vc(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Mc(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Mc({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pc={inView:{Feature:Cc},tap:{Feature:wc},focus:{Feature:bc},hover:{Feature:vc}},iu={renderer:hc,...yc,...Pc};function Ue(e){return typeof window>"u"?!1:e?Rs():Gt()}const Rc=50,Kn=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Ec=()=>({time:0,x:Kn(),y:Kn()}),Fc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function jn(e,t,n,s){const i=n[t],{length:r,position:o}=Fc[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${r}`]-e[`client${r}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=kt(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>Rc?0:Dt(i.current-a,u)}function kc(e,t,n){jn(e,"x",t,n),jn(e,"y",t,n),t.time=n}function Dc(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(Se(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const r=s.getBoundingClientRect();n.x+=i.left-r.left,n.y+=i.top-r.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:r}=s.getBBox();n.x+=i,n.y+=r;let o=null,a=s.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=s.parentNode;s=o}else break;return n}const Ft={start:0,center:.5,end:1};function Hn(e,t,n=0){let s=0;if(e in Ft&&(e=Ft[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?s=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?s=i/100*document.documentElement.clientWidth:e.endsWith("vh")?s=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(s=t*e),n+s}const Ic=[0,0];function Oc(e,t,n,s){let i=Array.isArray(e)?e:Ic,r=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Ft[e]?e:"0"]),r=Hn(i[0],n,s),o=Hn(i[1],t),r-o}const be={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Lc={x:0,y:0};function Bc(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Nc(e,t,n){const{offset:s=be.All}=n,{target:i=e,axis:r="y"}=n,o=r==="y"?"height":"width",a=i!==e?Dc(i,e):Lc,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Bc(i),u={width:e.clientWidth,height:e.clientHeight};t[r].offset.length=0;let c=!t[r].interpolate;const d=s.length;for(let f=0;f<d;f++){const h=Oc(s[f],u[o],l[o],a[r]);!c&&h!==t[r].interpolatorOffsets[f]&&(c=!0),t[r].offset[f]=h}c&&(t[r].interpolate=jt(t[r].offset,Vs(s),{clamp:!1}),t[r].interpolatorOffsets=[...t[r].offset]),t[r].progress=U(0,1,t[r].interpolate(t[r].current))}function Wc(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.c
9ontainerLength=e.clientHeight}function Kc(e,t,n,s={}){return{measure:i=>{Wc(e,s.target,n),kc(e,n,i),(s.offset||s.target)&&Nc(e,n,s)},notify:()=>t(n)}}const oe=new WeakMap,$n=new WeakMap,dt=new WeakMap,zn=new WeakMap,Oe=new WeakMap,Gn=e=>e===document.scrollingElement?window:e;function bi(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...s}={}){if(!t)return Z;let i=dt.get(t);i||(i=new Set,dt.set(t,i));const r=Ec(),o=Kc(t,e,r,s);if(i.add(o),!oe.has(t)){const l=()=>{for(const f of i)f.measure(Ve.timestamp);F.preUpdate(u)},u=()=>{for(const f of i)f.notify()},c=()=>F.read(l);oe.set(t,c);const d=Gn(t);window.addEventListener("resize",c),t!==document.documentElement&&$n.set(t,ta(t,c)),d.addEventListener("scroll",c),c()}if(n&&!Oe.has(t)){const l=oe.get(t),u={width:t.scrollWidth,height:t.scrollHeight};zn.set(t,u);const c=()=>{const f=t.scrollWidth,h=t.scrollHeight;(u.width!==f||u.height!==h)&&(l(),u.width=f,u.height=h)},d=F.read(c,!0);Oe.set(t,d)}const a=oe.get(t);return F.read(a,!1,!0),()=>{ie(a);const l=dt.get(t);if(!l||(l.delete(o),l.size))return;const u=oe.get(t);oe.delete(t),u&&(Gn(t).removeEventListener("scroll",u),$n.get(t)?.(),window.removeEventListener("resize",u));const c=Oe.get(t);c&&(ie(c),Oe.delete(t)),zn.delete(t)}}const jc=[[be.Enter,"entry"],[be.Exit,"exit"],[be.Any,"cover"],[be.All,"contain"]],_n={start:0,end:1};function Hc(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=_n[t[0]],s=_n[t[1]];if(!(n===void 0||s===void 0))return[n,s]}function $c(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const s=Hc(n);if(!s)return;t.push(s)}else return;return t}function zc(e,t){const n=$c(e);if(!n)return!1;for(let s=0;s<2;s++){const i=n[s],r=t[s];if(i[0]!==r[0]||i[1]!==r[1])return!1}return!0}function sn(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of jc)if(zc(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const Un=new Map;function Yn(e){const t={value:0},n=bi(s=>{t.value=s[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function wi({source:e,container:t,...n}){const{axis:s}=n;e&&(t=e);let i=Un.get(t);i||(i=new Map,Un.set(t,i));const r=n.target??"self";let o=i.get(r);o||(o={},i.set(r,o));const a=s+(n.offset??[]).join(",");return o[a]||(n.target&&Ue(n.target)?sn(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:s}):o[a]=Yn({container:t,...n}):Ue()?o[a]=new ScrollTimeline({source:t,axis:s}):o[a]=Yn({container:t,...n})),o[a]}function Gc(e,t){const n=wi(t),s=t.target?sn(t.offset):void 0,i=t.target?Ue(t.target)&&!!s:Ue();return e.attachTimeline({timeline:i?n:void 0,...s&&i&&{rangeStart:s.rangeStart,rangeEnd:s.rangeEnd},observe:r=>(r.pause(),Js(o=>{r.time=r.iterationDuration*o},n))})}function _c(e){return e.length===2}function Uc(e,t){return _c(e)?bi(n=>{e(n[t.axis].progress,n)},t):Js(e,wi(t))}function Ti(e,{axis:t="y",container:n=document.scrollingElement,...s}={}){if(!n)return Z;const i={axis:t,container:n,...s};return typeof e=="function"?Uc(e,i):Gc(e,i)}const Yc=()=>({scrollX:G(0),scrollY:G(0),scrollXProgress:G(0),scrollYProgress:G(0)}),Xn=e=>e?!e.current:!1;function qn(e,t,n,s){return{factory:i=>Ti(i,{...t,axis:e,container:n?.current||void 0,target:s?.current||void 0}),times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function Xc(e,t){return typeof window>"u"?!1:e?Rs()&&!!sn(t):Gt()}function ru({container:e,target:t,...n}={}){const s=fe(Yc);Xc(t,n.offset)&&(s.scrollXProgress.accelerate=qn("x",n,e,t),s.scrollYProgress.accelerate=qn("y",n,e,t));const i=m.useRef(null),r=m.useRef(!1),o=m.useCallback(()=>(i.current=Ti((a,{x:l,y:u})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(u.current),s.scrollYProgress.set(u.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Ye(()=>{if(r.current=!1,Xn(e)||Xn(t)){r.current=!0;return}else return o()},[o]),m.useEffect(()=>{if(r.current)return o()},[o]),s}function xi(e){const t=fe(()=>G(e)),{isStatic:n}=m.useContext(Fe);if(n){const[,s]=m.useState(e);m.useEffect(()=>t.on("change",s),[])}return t}function Si(e,t){const n=xi(t()),s=()=>n.set(t());return s(),Ye(()=>{const i=()=>F.preRender(s,!1,!0),r=e.map(o=>
9o.on("change",i));return()=>{r.forEach(o=>o()),ie(s)}}),n}function qc(e){xe.current=[],e();const t=Si(xe.current,e);return xe.current=void 0,t}function Zc(e,t,n,s){if(typeof e=="function")return qc(e);const r=na(t,n,s),o=Array.isArray(e)?Zn(e,r):Zn([e],([l])=>r(l)),a=Array.isArray(e)?void 0:e.accelerate;return a&&!a.isTransformed&&typeof t!="function"&&Array.isArray(n)&&s?.clamp!==!1&&(o.accelerate={...a,times:t,keyframes:n,isTransformed:!0}),o}function Zn(e,t){const n=fe(()=>[]);return Si(e,()=>{n.length=0;const s=e.length;for(let i=0;i<s;i++)n[i]=e[i].get();return t(n)})}function Jc(e,t={}){const{isStatic:n}=m.useContext(Fe),s=()=>D(e)?e.get():e;if(n)return Zc(s);const i=xi(s());return m.useInsertionEffect(()=>sa(i,e,t),[i,JSON.stringify(t)]),i}function ou(e,t={}){return Jc(e,{type:"spring",...t})}function au(){!Zt.current&&ti();const[e]=m.useState(ze.current);return e}export{tu as A,nu as L,ou as a,au as b,iu as d,_ as j,su as m,ru as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.