PageSourceSearch

https://fensivo.co/assets/motion-BEau8QNT.js

js fensivo.co collected 2026-10-08 07:24:57 UTC 82,265 bytes, 9 lines download raw bytes

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