PageSourceSearch

https://joinluminouslabs.com/assets/vendor-motion-n6GCyjdO.js

js joinluminouslabs.com collected 2026-10-04 06:55:09 UTC 124,400 bytes, 9 lines download raw bytes

vendor: 23,666 bytes, line 1
1import{r as y}from"./vendor-router-NVfhAEKf.js";var ae={exports:{}},wt={};var kn;function $r(){if(kn)return wt;kn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,o){var r=null;if(o!==void 0&&(r=""+o),i.key!==void 0&&(r=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:s,key:r,ref:i!==void 0?i:null,props:o}}return wt.Fragment=e,wt.jsx=n,wt.jsxs=n,wt}var In;function Kr(){return In||(In=1,ae.exports=$r()),ae.exports}var _=Kr();const Ze=y.createContext({});function Je(t){const e=y.useRef(null);return e.current===null&&(e.current=t()),e.current}const Hr=typeof window<"u",Js=Hr?y.useLayoutEffect:y.useEffect,se=y.createContext(null);function Qe(t,e){t.indexOf(e)===-1&&t.push(e)}function Yt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Y=(t,e,n)=>n>e?e:n<t?t:n;let tn=()=>{};const q={},Qs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ti(t){return typeof t=="object"&&t!==null}const ei=t=>/^0[^.\s]+$/u.test(t);function ni(t){let e;return()=>(e===void 0&&(e=t()),e)}const W=t=>t,zr=(t,e)=>n=>e(t(n)),kt=(...t)=>t.reduce(zr),Mt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class en{constructor(){this.subscriptions=[]}add(e){return Qe(this.subscriptions,e),()=>Yt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const H=t=>t*1e3,U=t=>t/1e3;function si(t,e){return e?t*(1e3/e):0}const ii=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Gr=1e-7,_r=12;function Xr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ii(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Gr&&++a<_r);return r}function It(t,e,n,s){if(t===e&&n===s)return W;const i=o=>Xr(o,0,1,t,n);return o=>o===0||o===1?o:ii(i(o),e,s)}const ri=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,oi=t=>e=>1-t(1-e),ai=It(.33,1.53,.69,.99),nn=oi(ai),li=ri(nn),ui=t=>(t*=2)<1?.5*nn(t):.5*(2-Math.pow(2,-10*(t-1))),sn=t=>1-Math.sin(Math.acos(t)),ci=oi(sn),hi=ri(sn),Yr=It(.42,0,1,1),qr=It(0,0,.58,1),fi=It(.42,0,.58,1),Zr=t=>Array.isArray(t)&&typeof t[0]!="number",di=t=>Array.isArray(t)&&typeof t[0]=="number",Jr={linear:W,easeIn:Yr,easeInOut:fi,easeOut:qr,circIn:sn,circInOut:hi,circOut:ci,backIn:nn,backInOut:li,backOut:ai,anticipate:ui},Qr=t=>typeof t=="string",Fn=t=>{if(di(t)){tn(t.length===4);const[e,n,s,i]=t;return It(e,n,s,i)}else if(Qr(t))return Jr[t];return t},Ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function to(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(l){r.has(l)&&(c.schedule(l),t()),l(a)}const c={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(l),p.has(l)||p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,o&&(o=!1,c.process(l))}};return c}const eo=40;function pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ot.reduce((g,P)=>(g[P]=to(o),g),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,m=()=>{const g=q.useManualTiming?i.timestamp:performance.now();n=!1,q.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,eo),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},v=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:Ot.reduce((g,P)=>{const S=r[P];return g[P]=(V,M=!1,b=!1)=>(n||v(),S.schedule(V,M,b)),g},{}),cancel:g=>{for(let P=0;P<Ot.length;P++)r[Ot[P]].cancel(g)},state:i,steps:r}}const{schedule:C,cancel:tt,state:F,steps:le}=pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:W,!0);let $t;function no(){$t=void 0}const j={now:()=>($t===void 0&&j.set(F.isProcessing||q.useManualTiming?F.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(no)}},mi=t=>e=>typeof e=="string"&&e.startsWith(t),gi=mi("--"),so=mi("var(--"),rn=t=>so(t)?io.test(t.split("/*")[0].trim()):!1,io=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const vt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Dt={...vt,transform:t=>Y(0,1,t)},Nt={...vt,default:1},bt=t=>Math.round(t*1e5)/1e5,on=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ro(t){return t==null}const oo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,an=(t,e)=>n=>!!(typeof n=="string"&&oo.test(n)&&n.startsWith(t)||e&&!ro(n)&&Object.prototype.hasOwnProperty.call(n,e)),yi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(on);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},ao=t=>Y(0,255,t),ue={...vt,transform:t=>Math.round(ao(t))},ot={test:an("rgb","red"),parse:yi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ue.transform(t)+", "+ue.transform(e)+", "+ue.transform(n)+", "+bt(Dt.transform(s))+")"};function lo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ve={test:an("#"),parse:lo,transform:ot.transform},Ft=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),J=Ft("deg"),X=Ft("%"),w=Ft("px"),uo=Ft("vh"),co=Ft("vw"),jn={...X,parse:t=>X.parse(t)/100,transform:t=>X.transform(t*100)},ht={test:an("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+X.transform(bt(e))+", "+X.transform(bt(n))+", "+bt(Dt.transform(s))+")"},R={test:t=>ot.test(t)||Ve.test(t)||ht.test(t),parse:t=>ot.test(t)?ot.parse(t):ht.test(t)?ht.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ot.transform(t):ht.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},ho=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fo(t){return isNaN(t)&&typeof t=="string"&&(t.match(on)?.length||0)+(t.match(ho)?.length||0)>0}const vi="number",Ti="color",po="var",mo="var(",On="${}",go=/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 Et(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(go,u=>(R.test(u)?(s.color.push(o),i.push(Ti),n.push(R.parse(u))):u.startsWith(mo)?(s.var.push(o),i.push(po),n.push(u)):(s.number.push(o),i.push(vi),n.push(parseFloat(u))),++o,On)).split(On);return{values:n,split:a,indexes:s,types:i}}function xi(t){return Et(t).values}function wi(t){const{split:e,types:n}=Et(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===vi?o+=bt(i[r]):a===Ti?o+=R.transform(i[r]):o+=i[r]}return o}}const yo=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function vo(t){const e=xi(t);return wi(t)(e.map(yo))}const z={test:fo,parse:xi,createTransformer:wi,getAnimatableNone:vo};function ce(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function To({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=ce(u,a,t+1/3),o=ce(u,a,t),r=ce(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function qt(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,he=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},xo=[Ve,ot,ht],wo=t=>xo.find(e=>e.test(t));function Nn(t){const e=wo(t);if(!e)return!1;let n=e.parse(t);return e===ht&&(n=To(n)),n}const Un=(t,e)=>{const n=Nn(t),s=Nn(e);if(!n||!s)return qt(t,e);const i={...n};return o=>(i.red=he(n.red,s.red,o),i.green=he(n.green,s.green,o),i.blue=he(n.blue,s.blue,o),i.alpha=D(n.alpha,s.alpha,o),ot.transform(i))},Ce=new Set(["none","hidden"]);function Po(t,e){return Ce.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function So(t,e){return n=>D(t,e,n)}function ln(t){return typeof t=="number"?So:typeof t=="string"?rn(t)?qt:R.test(t)?Un:Vo:Array.isArray(t)?Pi:typeof t=="object"?R.test(t)?Un:bo:qt}function Pi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>ln(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function bo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ln(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Ao(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Vo=(t,e)=>{const n=z.createTransformer(e),s=Et(t),i=Et(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ce.has(t)&&!i.values.length||Ce.has(e)&&!s.values.length?Po(t,e):kt(Pi(Ao(s,i),i.values),n):qt(t,e)};function Si(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):ln(t)(t,e)}const Co=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>tt(e),now:()=>F.isProcessing?F.timestamp:j.now()}},bi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Zt=2e4;function un(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Zt;)e+=n,s=t.next(e);return e>=Zt?1/0:e}function Mo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(un(s),Zt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:U(i)}}const Do=5;function Ai(t,e,n){const s=Math.max(e-Do,0);return si(n-t(s),e-s)}const E={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},fe=.001;function Eo({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:s=E.mass}){let i,o,r=1-e;r=Y(E.minDamping,E.maxDamping,r),t=Y(E.minDuration,E.maxDuration,U(t)),r<1?(i=c=>{const l=c*r,h=l*t,f=l-n,d=Me(c,r),p=Math.exp(-h);return fe-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=Me(Math.pow(c,2),r);return(-i(c)+fe>0?-1:1)*((f-d)*p)/m}):(i=c=>{const l=Math.exp(-c*t),h=(c-n)*t+1;return-fe+l*h},o=c=>{const l=Math.exp(-c*t),h=(n-c)*(t*t);return l*h});const a=5/t,u=Lo(i,o,a);if(t=H(t),isNaN(u))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Ro=12;function Lo(t,e,n){let s=n;for(let i=1;i<Ro;i++)s=s-t(s)/e(s);return s}function Me(t,e){return t*Math.sqrt(1-e*e)}const ko=["duration","bounce"],Io=["stiffness","damping","mass"];function Wn(t,e){return e.some(n=>t[n]!==void 0)}function Fo(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!Wn(t,Io)&&Wn(t,ko))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:E.mass,stiffness:i,damping:o}}else{const n=Eo({...t,velocity:0});e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function Jt(t=E.visualDuration,e=E.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:u,damping:c,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Fo({...n,velocity:-U(n.velocity||0)}),p=f||0,m=c/(2*Math.sqrt(u*l)),v=r-o,T=U(Math.sqrt(u/l)),x=Math.abs(v)<5;s||(s=x?E.restSpeed.granular:E.restSpeed.default),i||(i=x?E.restDelta.granular:E.restDelta.default);let g;if(m<1){const S=Me(T,m);g=V=>{const M=Math.exp(-m*T*V);return r-M*((p+m*T*v)/S*Math.sin(S*V)+v*Math.cos(S*V))}}else if(m===1)g=S=>r-Math.exp(-T*S)*(v+(p+T*v)*S);else{const S=T*Math.sqrt(m*m-1);g=V=>{const M=Math.exp(-m*T*V),b=Math.min(S*V,300);return r-M*((p+m*T*v)*Math.sinh(b)+S*v*Math.cosh(b))/S}}const P={calculatedDuration:d&&h||null,next:S=>{const V=g(S);if(d)a.done=S>=h;else{let M=S===0?p:0;m<1&&(M=S===0?H(p):Ai(g,S,V));const b=Math.abs(M)<=s,A=Math.abs(r-V)<=i;a.done=b&&A}return a.value=a.done?r:V,a},toString:()=>{const S=Math.min(un(P),Zt),V=bi(M=>P.next(S*M).value,S,30);return S+"ms "+V},toTransition:()=>{}};return P}Jt.applyToOptions=t=>{const e=Mo(t,100,Jt);return t.ease=e.ease,t.duration=H(e.duration),t.type="keyframes",t};function De({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:u,restDelta:c=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||u!==void 0&&b>u,p=b=>a===void 0?u:u===void 0||Math.abs(a-b)<Math.abs(u-b)?a:u;let m=n*e;const v=h+m,T=r===void 0?v:r(v);T!==v&&(m=T-h);const x=b=>-m*Math.exp(-b/s),g=b=>T+x(b),P=b=>{const A=x(b),L=g(b);f.done=Math.abs(A)<=c,f.value=f.done?T:L};let S,V;const M=b=>{d(f.value)&&(S=b,V=Jt({keyframes:[f.value,p(f.value)],velocity:Ai(g,b,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:l}))};return M(0),{calculatedDuration:null,next:b=>{let A=!1;return!V&&S===void 0&&(A=!0,P(b),M(b)),S!==void 0&&b>=S?V.next(b-S):(!A&&P(b),f)}}}function Bo(t,e,n){const s=[],i=n||q.mix||Si,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const u=Array.isArray(e)?e[r]||W:e;a=kt(u,a)}s.push(a)}return s}function jo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(tn(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Bo(e,s,i),u=a.length,c=l=>{if(r&&l<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Mt(t[h],t[h+1],l);return a[h](f)};return n?l=>c(Y(t[0],t[o-1],l)):c}function Oo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Mt(0,e,s);t.push(D(n,1,i))}}function No(t){const e=[0];return Oo(e,t.length-1),e}function Uo(t,e){return t.map(n=>n*e)}function Wo(t,e){return t.map(()=>e||fi).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Zr(s)?s.map(Fn):Fn(s),o={done:!1,value:e[0]},r=Uo(n&&n.length===e.length?n:No(e),t),a=jo(r,e,{ease:Array.isArray(i)?i:Wo(e,i)});return{calculatedDuration:t,next:u=>(o.value=a(u),o.done=u>=t,o)}}const $o=t=>t!==null;function cn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter($o),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Ko={decay:De,inertia:De,tween:At,keyframes:At,spring:Jt};function Vi(t){typeof t.type=="string"&&(t.type=Ko[t.type])}class hn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Ho=t=>t/100;class fn extends hn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Vi(e);const{type:n=At,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const u=n||At;u!==At&&typeof a[0]!="number"&&(this.mixKeyframes=kt(Ho,Si(a[0],a[1])),a=[0,100]);const c=u({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=un(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,P=s;if(h){const b=Math.min(this.currentTime,i)/a;let A=Math.floor(b),L=b%1;!L&&b>=1&&(L=1),L===1&&A--,A=Math.min(A,h+1),A%2&&(f==="reverse"?(L=1-L,d&&(L-=d/a)):f==="mirror"&&(P=r)),g=Y(0,1,L)*a}const S=x?{done:!1,value:l[0]}:P.next(g);o&&!x&&(S.value=o(S.value));let{done:V}=S;!x&&u!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return M&&p!==De&&(S.value=cn(l,this.options,v,this.speed)),m&&m(S.value),M&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(this.currentTime)}set time(e){e=H(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(j.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=U(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Co,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(j.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function zo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const at=t=>t*180/Math.PI,Ee=t=>{const e=at(Math.atan2(t[1],t[0]));return Re(e)},Go={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ee,rotateZ:Ee,skewX:t=>at(Math.atan(t[1])),skewY:t=>at(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Re=t=>(t=t%360,t<0&&(t+=360),t),$n=Ee,Kn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Hn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),_o={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kn,scaleY:Hn,scale:t=>(Kn(t)+Hn(t))/2,rotateX:t=>Re(at(Math.atan2(t[6],t[5]))),rotateY:t=>Re(at(Math.atan2(-t[2],t[0]))),rotateZ:$n,rotate:$n,skewX:t=>at(Math.atan(t[4])),skewY:t=>at(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Le(t){return t.includes("scale")?1:0}function ke(t,e){if(!t||t==="none")return Le(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=_o,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Go,i=a}if(!i)return Le(e);const o=s[e],r=i[1].split(",").map(Yo);return typeof o=="function"?o(r):r[o]}const Xo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ke(n,e)};function Yo(t){return parseFloat(t.trim())}const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(Tt),zn=t=>t===vt||t===w,qo=new Set(["x","y","z"]),Zo=Tt.filter(t=>!qo.has(t));function Jo(t){const e=[];return Zo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Q={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ke(e,"x"),y:(t,{transform:e})=>ke(e,"y")};Q.translateX=Q.x;Q.translateY=Q.y;const lt=new Set;let Ie=!1,Fe=!1,Be=!1;function Ci(){if(Fe){const t=Array.from(lt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Jo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fe=!1,Ie=!1,lt.forEach(t=>t.complete(Be)),lt.clear()}function Mi(){lt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Fe=!0)})}function Qo(){Be=!0,Mi(),Ci(),Be=!1}class dn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Ie||(Ie=!0,C.read(Mi),C.resolveKeyframes(Ci))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}zo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ta=t=>t.startsWith("--");function Di(t,e,n){ta(e)?t.style.setProperty(e,n):t.style[e]=n}const ea={};function Ei(t,e){const n=ni(t);return()=>ea[e]??n()}const na=Ei(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ri=Ei(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 4,830 bytes, line 1
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),St=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Gn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:St([0,.65,.55,1]),circOut:St([.55,0,1,.45]),backIn:St([.31,.01,.66,-.59]),backOut:St([.33,1.53,.69,.99])};function Li(t,e){if(t)return typeof t=="function"?Ri()?bi(t,e):"ease-out":di(t)?St(t):Array.isArray(t)?t.map(n=>Li(n,e)||Gn.easeOut):Gn[t]}function sa(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:u}={},c=void 0){const l={[e]:n};u&&(l.offset=u);const h=Li(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(l,f)}function ki(t){return typeof t=="function"&&"applyToOptions"in t}function ia({type:t,...e}){return ki(t)&&Ri()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ii extends hn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,tn(typeof e.type!="string");const c=ia(e);this.animation=sa(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=cn(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Di(n,s,l),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return U(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&na()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),W):i(this)}}const Fi={anticipate:ui,backInOut:li,circInOut:hi};function ra(t){return t in Fi}function oa(t){typeof t.ease=="string"&&ra(t.ease)&&(t.ease=Fi[t.ease])}const de=10;class aa extends Ii{constructor(e){oa(e),Vi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new fn({...r,autoplay:!1}),u=Math.max(de,j.now()-this.startTime),c=Y(0,de,u-de),l=a.sample(u).value,{name:h}=this.options;o&&h&&Di(o,h,l),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,l,c),a.stop()}}const _n=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(z.test(t)||t==="0")&&!t.startsWith("url("));function la(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ua(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=_n(i,e),a=_n(o,e);return!r||!a?!1:la(t)||(n==="spring"||ki(n))&&s}function je(t){t.duration=0,t.type="keyframes"}const ca=new Set(["opacity","clipPath","filter","transform"]),ha=ni(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return ha()&&n&&ca.has(n)&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const da=40;class pa extends hn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:u,motionValue:c,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:u,motionValue:c,element:l,...h},d=l?.KeyframeResolver||dn;this.keyframeResolver=new d(a,(p,m,v)=>this.onKeyframesResolved(p,m,f,!v),u,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=j.now(),ua(e,o,r,a)||((q.instantAnimations||!u)&&l?.(cn(e,s,n)),e[0]=e[e.length-1],je(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>da?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&fa(f),p=f.motionValue?.owner?.current,m=d?new aa({...f,element:p}):new fn(f);m.finished.then(()=>{this.notifyFinished()}).catch(W),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Bi(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,l)=>c.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ga(t){const e=ma.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ji(t,e,n=1){const[s,i]=ga(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Qs(r)?parseFloat(r):r}return rn(i)?ji(i,e,n+1):i}const ya={type:"spring",stiffness:500,damping:25,restSpeed:10},va=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ta={type:"keyframes",duration:.8},xa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wa=(t,{keyframes:e})=>e.length>2?Ta:xt.has(t)?t.startsWith("scale")?va(e[1]):ya:xa,Pa=t=>t!==null;function Sa(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Pa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Oi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function pn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Oi(n,t):n}function ba({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}const mn=(t,e,n,s={},i,o)=>r=>{const a=pn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-H(u);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};ba(a)||Object.assign(l,wa(t,l)),l.duration&&(l.duration=H(l.duration)),l.repeatDelay&&(l.repeatDelay=H(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(je(l),l.delay===0&&(h=!0)),(q.instantAnimations||q.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,je(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Sa(l.keyframes,a);if(f!==void 0){C.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new fn(l):new pa(l)};function Xn(t){const e=[{},{}];
vendor: 31,523 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gn(t,e,n,s){if(typeof e=="function"){const[i,o]=Xn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Xn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function gt(t,e,n){const s=t.getProps();return gn(s,e,n!==void 0?n:s.custom,t)}const Ni=new Set(["width","height","top","left","right","bottom",...Tt]),Yn=30,Aa=t=>!isNaN(parseFloat(t));class Va{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=j.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Aa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new en);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Yn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yn);return si(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(t,e){return new Va(t,e)}const Oe=t=>Array.isArray(t);function Ca(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,yt(n))}function Ma(t){return Oe(t)?t[t.length-1]||0:t}function Da(t,e){const n=gt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ma(o[r]);Ca(t,r,a)}}const B=t=>!!(t&&t.getVelocity);function Ea(t){return!!(B(t)&&t.add)}function Ne(t,e){const n=t.getValue("willChange");if(Ea(n))return n.add(e);if(!n&&q.WillChange){const s=new q.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function yn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ra="framerAppearId",Ui="data-"+yn(Ra);function Wi(t){return t.props[Ui]}function La({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function $i(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const u=t.getDefaultTransition();o=o?Oi(o,u):u;const c=o?.reduceMotion;s&&(o=s);const l=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),p=a[f];if(p===void 0||h&&La(h,f))continue;const m={delay:n,...pn(o||{},f)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===v&&!m.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const P=Wi(t);if(P){const S=window.MotionHandoffAnimation(P,f,C);S!==null&&(m.startTime=S,T=!0)}}Ne(t,f);const x=c??t.shouldReduceMotion;d.start(mn(f,d,p,x&&Ni.has(f)?{type:!1}:m,t,T));const g=d.animation;g&&l.push(g)}if(r){const f=()=>C.update(()=>{r&&Da(t,r)});l.length?Promise.all(l).then(f):f()}return l}function Ue(t,e,n={}){const s=gt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all($i(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:l,staggerDirection:h}=i;return ka(t,e,u,c,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function ka(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Ue(u,e,{...r,delay:n+(typeof s=="function"?0:s)+Bi(t.variantChildren,u,s,i,o)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function Ia(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ue(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ue(t,e,n);else{const i=typeof e=="function"?gt(t,e,n.custom):e;s=Promise.all($i(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Fa={test:t=>t==="auto",parse:t=>t},Ki=t=>e=>e.test(t),Hi=[vt,w,X,J,co,uo,Fa],qn=t=>Hi.find(Ki(t));function Ba(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ei(t):!0}const ja=new Set(["brightness","contrast","saturate","opacity"]);function Oa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(on)||[];if(!s)return t;const i=n.replace(s,"");let o=ja.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Na=/\b([a-z-]*)\(.*?\)/gu,We={...z,getAnimatableNone:t=>{const e=t.match(Na);return e?e.map(Oa).join(" "):t}},$e={...z,getAnimatableNone:t=>{const e=z.parse(t);return z.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Zn={...vt,transform:Math.round},Ua={rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Nt,scaleX:Nt,scaleY:Nt,scaleZ:Nt,skew:J,skewX:J,skewY:J,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Dt,originX:jn,originY:jn,originZ:w},vn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...Ua,zIndex:Zn,fillOpacity:Dt,strokeOpacity:Dt,numOctaves:Zn},Wa={...vn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:We,WebkitFilter:We,mask:$e,WebkitMask:$e},zi=t=>Wa[t],$a=new Set([We,$e]);function Gi(t,e){let n=zi(t);return $a.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ka=new Set(["auto","none","0"]);function Ha(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ka.has(o)&&Et(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Gi(n,i)}class za extends dn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),rn(h))){const f=ji(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ni.has(s)||e.length!==2)return;const[i,o]=e,r=qn(i),a=qn(o),u=Bn(i),c=Bn(o);if(u!==c&&Q[s]){this.needsMeasurement=!0;return}if(r!==a)if(zn(r)&&zn(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else Q[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ba(e[i]))&&s.push(i);s.length&&Ha(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Q[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=Q[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const Ga=new Set(["opacity","clipPath","filter","transform"]);function Tn(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const _i=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ke(t){return ti(t)&&"offsetHeight"in t}const{schedule:xn}=pi(queueMicrotask,!1),K={x:!1,y:!1};function Xi(){return K.x||K.y}function _a(t){return t==="x"||t==="y"?K[t]?null:(K[t]=!0,()=>{K[t]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function Yi(t,e){const n=Tn(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Xa(t){return!(t.pointerType==="touch"||Xi())}function Ya(t,e,n={}){const[s,i,o]=Yi(t,n);return s.forEach(r=>{let a=!1,u=!1,c;const l=()=>{r.removeEventListener("pointerleave",p)},h=v=>{c&&(c(v),c=void 0),l()},f=v=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),u&&(u=!1,h(v))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=v=>{if(v.pointerType!=="touch"){if(a){u=!0;return}h(v)}},m=v=>{if(!Xa(v))return;u=!1;const T=e(r,v);typeof T=="function"&&(c=T,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",m,i),r.addEventListener("pointerdown",d,i)}),o}const qi=(t,e)=>e?t===e?!0:qi(t,e.parentElement):!1,wn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,qa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Za(t){return qa.has(t.tagName)||t.isContentEditable===!0}const Ja=new Set(["INPUT","SELECT","TEXTAREA"]);function Qa(t){return Ja.has(t.tagName)||t.isContentEditable===!0}const Kt=new WeakSet;function Jn(t){return e=>{e.key==="Enter"&&t(e)}}function pe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const tl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Jn(()=>{if(Kt.has(n))return;pe(n,"down");const i=Jn(()=>{pe(n,"up")}),o=()=>pe(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Qn(t){return wn(t)&&!Xi()}const ts=new WeakSet;function el(t,e,n={}){const[s,i,o]=Yi(t,n),r=a=>{const u=a.currentTarget;if(!Qn(a)||ts.has(a))return;Kt.add(u),n.stopPropagation&&ts.add(a);const c=e(u,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Kt.has(u)&&Kt.delete(u),Qn(d)&&typeof c=="function"&&c(d,{success:p})},h=d=>{l(d,u===window||u===document||n.useGlobalTarget||qi(u,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Ke(a)&&(a.addEventListener("focus",c=>tl(c,i)),!Za(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Pn(t){return ti(t)&&"ownerSVGElement"in t}const Ht=new WeakMap;let zt;const Zi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Pn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],nl=Zi("inline","width","offsetWidth"),sl=Zi("block","height","offsetHeight");function il({target:t,borderBoxSize:e}){Ht.get(t)?.forEach(n=>{n(t,{get width(){return nl(t,e)},get height(){return sl(t,e)}})})}function rl(t){t.forEach(il)}function ol(){typeof ResizeObserver>"u"||(zt=new ResizeObserver(rl))}function al(t,e){zt||ol();const n=Tn(t);return n.forEach(s=>{let i=Ht.get(s);i||(i=new Set,Ht.set(s,i)),i.add(e),zt?.observe(s)}),()=>{n.forEach(s=>{const i=Ht.get(s);i?.delete(e),i?.size||zt?.unobserve(s)})}}const Gt=new Set;let ft;function ll(){ft=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gt.forEach(e=>e(t))},window.addEventListener("resize",ft)}function ul(t){return Gt.add(t),ft||ll(),()=>{Gt.delete(t),!Gt.size&&typeof ft=="function"&&(window.removeEventListener("resize",ft),ft=void 0)}}function es(t,e){return typeof t=="function"?ul(t):al(t,e)}function cl(t){return Pn(t)&&t.tagName==="svg"}const hl=[...Hi,R,z],fl=t=>hl.find(Ki(t)),ns=()=>({translate:0,scale:1,origin:0,originPoint:0}),dt=()=>({x:ns(),y:ns()}),ss=()=>({min:0,max:0}),k=()=>({x:ss(),y:ss()}),dl=new WeakMap;function ie(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Rt(t){return typeof t=="string"||Array.isArray(t)}const Sn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bn=["initial",...Sn];function re(t){return ie(t.animate)||bn.some(e=>Rt(t[e]))}function Ji(t){return!!(re(t)||t.variants)}function pl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(B(i))t.addValue(s,i);else if(B(o))t.addValue(s,yt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,yt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const He={current:null},Qi={current:!1},ml=typeof window<"u";function gl(){if(Qi.current=!0,!!ml)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>He.current=t.matches;t.addEventListener("change",e),e()}else He.current=!1}const is=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Qt={};function tr(t){Qt=t}function yl(){return Qt}class vl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},u={}){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=dn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=j.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,C.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=u,this.blockInitialAnimation=!!r,this.isControllingVariants=re(n),this.isVariantNode=Ji(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&B(p)&&p.set(c[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,dl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Qi.current||gl(),this.shouldReduceMotion=He.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(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ga.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:u,ease:c,duration:l}=n.accelerate,h=new Ii({element:this.current,name:e,keyframes:a,times:u,ease:c,duration:H(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=xt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Qt){const n=Qt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<is.length;s++){const i=is[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=pl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=yt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Qs(s)||ei(s))?s=parseFloat(s):!fl(s)&&z.test(n)&&(s=Gi(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new en),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){xn.render(this.render)}}class er extends vl{constructor(){super(...arguments),this.KeyframeResolver=za}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class et{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Tl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function me(t){return t===void 0||t===1}function ze({scale:t,scaleX:e,scaleY:n}){return!me(t)||!me(e)||!me(n)}function rt(t){return ze(t)||sr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function sr(t){return rs(t.x)||rs(t.y)}function rs(t){return t&&t!=="0%"}function te(t,e,n){const s=t-n,i=e*s;return n+i}function os(t,e,n,s,i){return i!==void 0&&(t=te(t,i,s)),te(t,n,s)+e}function Ge(t,e=0,n=1,s,i){t.min=os(t.min,e,n,s,i),t.max=os(t.max,e,n,s,i)}function ir(t,{x:e,y:n}){Ge(t.x,e.translate,e.scale,e.originPoint),Ge(t.y,n.translate,n.scale,n.originPoint)}const as=.999999999999,ls=1.0000000000001;function wl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ir(t,r)),s&&rt(o.latestValues)&&mt(t,o.latestValues))}e.x<ls&&e.x>as&&(e.x=1),e.y<ls&&e.y>as&&(e.y=1)}function pt(t,e){t.min=t.min+e,t.max=t.max+e}function us(t,e,n,s,i=.5){const o=D(t.min,t.max,i);Ge(t,e,n,o,s)}function cs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function mt(t,e){us(t.x,cs(e.x,t.x),e.scaleX,e.scale,e.originX),us(t.y,cs(e.y,t.y),e.scaleY,e.scale,e.originY)}function rr(t,e){return nr(xl(t.getBoundingClientRect(),e))}function Pl(t,e,n){const s=rr(t,n),{scroll:i}=e;return i&&(pt(s.x,i.offset.x),pt(s.y,i.offset.y)),s}const Sl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bl=Tt.length;function Al(t,e,n){let s="",i=!0;for(let o=0;o<bl;o++){const r=Tt[o],a=t[r];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);u=r.startsWith("scale")?c===1:c===0}if(!u||n){const c=_i(a,vn[r]);if(!u){i=!1;const l=Sl[r]||r;s+=`${l}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function An(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const u in e){const c=e[u];if(xt.has(u)){r=!0;continue}else if(gi(u)){i[u]=c;continue}else{const l=_i(c,vn[u]);u.startsWith("origin")?(a=!0,o[u]=l):s[u]=l}}if(e.transform||(r||n?s.transform=Al(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:l=0}=o;s.transformOrigin=`${u} ${c} ${l}`}}function or(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function hs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=hs(t,e.target.x),s=hs(t,e.target.y);return`${n}% ${s}%`}},Vl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=z.parse(t);if(i.length>5)return s;const o=z.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=u;const c=D(a,u,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},_e={borderRadius:{...Pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Vl};function ar(t,{layout:e,layoutId:n}){return xt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!_e[t]||t==="opacity")}function Vn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(B(s[r])||i&&B(i[r])||ar(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Cl(t){return window.getComputedStyle(t)}class Ml extends er{constructor(){super(...arguments),this.type="html",this.renderInstance=or}readValueFromInstance(e,n){if(xt.has(n))return this.projection?.isProjecting?Le(n):Xo(e,n);{const s=Cl(e),i=(gi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return rr(e,n)}build(e,n,s){An(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Vn(e,n,s)}}const Dl={offset:"stroke-dashoffset",array:"stroke-dasharray"},El={offset:"strokeDashoffset",array:"strokeDasharray"};function Rl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Dl:El;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Ll=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},u,c,l){if(An(t,a,c),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of Ll)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Rl(h,i,o,r,!1)}const ur=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"]),cr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kl(t,e,n,s){or(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ur.has(i)?i:yn(i),e.attrs[i])}function hr(t,e,n){const s=Vn(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const o=Tt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Il extends er{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(xt.has(n)){const s=zi(n);return s&&s.default||0}return n=ur.has(n)?n:yn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return hr(e,n,s)}build(e,n,s){lr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){kl(e,n,s,i)}mount(e){this.isSVGTag=cr(e.tagName),super.mount(e)}}const Fl=bn.length;function fr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?fr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Fl;n++){const s=bn[n],i=t.props[s];(Rt(i)||i===!1)&&(e[s]=i)}return e}function dr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Bl=[...Sn].reverse(),jl=Sn.length;function Ol(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ia(t,n,s)))}function Nl(t){let e=Ol(t),n=fs(),s=!0,i=!1;const o=c=>(l,h)=>{const f=gt(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;l={...l,...m,...p}}return l};function r(c){e=c(t)}function a(c){const{props:l}=t,h=fr(t.parent)||{},f=[],d=new Set;let p={},m=1/0;for(let T=0;T<jl;T++){const x=Bl[T],g=n[x],P=l[x]!==void 0?l[x]:h[x],S=Rt(P),V=x===c?g.isActive:null;V===!1&&(m=T);let M=P===h[x]&&P!==l[x]&&S;if(M&&(s||i)&&t.manuallyAnimateOnMount&&(M=!1),g.protectedKeys={...p},!g.isActive&&V===null||!P&&!g.prevProp||ie(P)||typeof P=="boolean")continue;if(x==="exit"&&g.isActive&&V!==!0){g.prevResolvedValues&&(p={...p,...g.prevResolvedValues});continue}const b=Ul(g.prevProp,P);let A=b||x===c&&g.isActive&&!M&&S||T>m&&S,L=!1;const nt=Array.isArray(P)?P:[P];let Z=nt.reduce(o(x),{});V===!1&&(Z={});const{prevResolvedValues:jt={}}=g,Ur={...jt,...Z},Rn=I=>{A=!0,d.has(I)&&(L=!0,d.delete(I)),g.needsAnimating[I]=!0;const N=t.getValue(I);N&&(N.liveStyle=!1)};for(const I in Ur){const N=Z[I],st=jt[I];if(p.hasOwnProperty(I))continue;let ut=!1;Oe(N)&&Oe(st)?ut=!dr(N,st):ut=N!==st,ut?N!=null?Rn(I):d.add(I):N!==void 0&&d.has(I)?Rn(I):g.protectedKeys[I]=!0}g.prevProp=P,g.prevResolvedValues=Z,g.isActive&&(p={...p,...Z}),(s||i)&&t.blockInitialAnimation&&(A=!1);const Ln=M&&b;A&&(!Ln||L)&&f.push(...nt.map(I=>{const N={type:x};if(typeof I=="string"&&(s||i)&&!Ln&&t.manuallyAnimateOnMount&&t.parent){const{parent:st}=t,ut=gt(st,I);if(st.enteringChildren&&ut){const{delayChildren:Wr}=ut.transition||{};N.delay=Bi(st.enteringChildren,t,Wr)}}return{animation:I,options:N}}))}if(d.size){const T={};if(typeof l.initial!="boolean"){const x=gt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(T.transition=x.transition)}d.forEach(x=>{const g=t.getBaseTarget(x),P=t.getValue(x);P&&(P.liveStyle=!0),T[x]=g??null}),f.push({animation:T})}let v=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,i=!1,v?e(f):Prom
vendor: 4,243 bytes, line 1
1ise.resolve()}function u(c,l){if(n[c].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(c,l)),n[c].isActive=l;const h=a(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:r,getState:()=>n,reset:()=>{n=fs(),i=!0}}}function Ul(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!dr(e,t):!1}function it(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fs(){return{animate:it(!0),whileInView:it(),whileHover:it(),whileTap:it(),whileDrag:it(),whileFocus:it(),exit:it()}}function ds(t,e){t.min=e.min,t.max=e.max}function $(t,e){ds(t.x,e.x),ds(t.y,e.y)}function ps(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const pr=1e-4,Wl=1-pr,$l=1+pr,mr=.01,Kl=0-mr,Hl=0+mr;function O(t){return t.max-t.min}function zl(t,e,n){return Math.abs(t-e)<=n}function ms(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Wl&&t.scale<=$l||isNaN(t.scale))&&(t.scale=1),(t.translate>=Kl&&t.translate<=Hl||isNaN(t.translate))&&(t.translate=0)}function Vt(t,e,n,s){ms(t.x,e.x,n.x,s?s.originX:void 0),ms(t.y,e.y,n.y,s?s.originY:void 0)}function gs(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function Gl(t,e,n){gs(t.x,e.x,n.x),gs(t.y,e.y,n.y)}function ys(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function ee(t,e,n){ys(t.x,e.x,n.x),ys(t.y,e.y,n.y)}function vs(t,e,n,s,i){return t-=e,t=te(t,1/n,s),i!==void 0&&(t=te(t,1/i,s)),t}function _l(t,e=0,n=1,s=.5,i,o=t,r=t){if(X.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=D(o.min,o.max,s);t===o&&(a-=e),t.min=vs(t.min,e,n,a,i),t.max=vs(t.max,e,n,a,i)}function Ts(t,e,[n,s,i],o,r){_l(t,e[n],e[s],e[i],e.scale,o,r)}const Xl=["x","scaleX","originX"],Yl=["y","scaleY","originY"];function xs(t,e,n,s){Ts(t.x,e,Xl,n?n.x:void 0,s?s.x:void 0),Ts(t.y,e,Yl,n?n.y:void 0,s?s.y:void 0)}function ws(t){return t.translate===0&&t.scale===1}function gr(t){return ws(t.x)&&ws(t.y)}function Ps(t,e){return t.min===e.min&&t.max===e.max}function ql(t,e){return Ps(t.x,e.x)&&Ps(t.y,e.y)}function Ss(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function yr(t,e){return Ss(t.x,e.x)&&Ss(t.y,e.y)}function bs(t){return O(t.x)/O(t.y)}function As(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function G(t){return[t("x"),t("y")]}function Zl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(s+=`scale(${a}, ${u})`),s||"none"}const vr=["TopLeft","TopRight","BottomLeft","BottomRight"],Jl=vr.length,Vs=t=>typeof t=="string"?parseFloat(t):t,Cs=t=>typeof t=="number"||w.test(t);function Ql(t,e,n,s,i,o){i?(t.opacity=D(0,n.opacity??1,tu(s)),t.opacityExit=D(e.opacity??1,0,eu(s))):o&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let r=0;r<Jl;r++){const a=`border${vr[r]}Radius`;let u=Ms(e,a),c=Ms(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Cs(u)===Cs(c)?(t[a]=Math.max(D(Vs(u),Vs(c),s),0),(X.test(c)||X.test(u))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Ms(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const tu=Tr(0,.5,ci),eu=Tr(.5,.95,W);function Tr(t,e,n){return s=>s<t?0:s>e?1:n(Mt(t,e,s))}function nu(t,e,n){const s=B(t)?t:yt(t);return s.start(mn("",s,e,n)),s.animation}function Lt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const su=(t,e)=>t.depth-e.depth;class iu{constructor(){this.children=[],this.isDirty=!1}add(e){Qe(this.children,e),this.isDirty=!0}remove(e){Yt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(su),this.isDirty=!1,this.children.forEac
vendor: 4,180 bytes, line 1
1h(e)}}function ru(t,e){const n=j.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(tt(s),t(o-e))};return C.setup(s,!0),()=>tt(s)}function _t(t){return B(t)?t.get():t}class ou{constructor(){this.members=[]}add(e){Qe(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(Yt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Yt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Xt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ge=["","X","Y","Z"],au=1e3;let lu=0;function ye(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function xr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Wi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&xr(s)}function wr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=lu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hu),this.nodes.forEach(mu),this.nodes.forEach(gu),this.nodes.forEach(fu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new iu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new en),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const u=this.eventHandlers.get(r);u&&u.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Pn(r)&&!cl(r),this.instance=r;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ru(f,250),Xt.hasAnimatedSinceResize&&(Xt.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 28,345 bytes, lines 1-9
1h(Rs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||wu,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=c.getProps(),T=!this.targetLayout||!yr(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...pn(p,"layout"),onPlay:m,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(l,x)}else h||Rs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ds);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Es);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pu),this.nodes.forEach(uu),this.nodes.forEach(cu)):this.nodes.forEach(Es),this.clearAllSnapshots();const a=j.now();F.delta=Y(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,le.update.process(F),le.preRender.process(F),le.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(du),this.sharedNodes.forEach(vu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!O(this.snapshot.measuredBox.x)&&!O(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!gr(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||rt(this.latestValues)||l)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return r&&(u=this.removeTransform(u)),Pu(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Su))){const{scroll:c}=this.root;c&&(pt(a.x,c.offset.x),pt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=k();if($(a,r),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:l,options:h}=c;c!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&$(a,r),pt(a.x,l.offset.x),pt(a.y,l.offset.y))}return a}applyTransform(r,a=!1){const u=k();$(u,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&mt(u,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),rt(l.latestValues)&&mt(u,l.latestValues)}return rt(this.latestValues)&&mt(u,this.latestValues),u}removeTransform(r){const a=k();$(a,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!rt(c.latestValues))continue;ze(c.latestValues)&&c.updateSnapshot();const l=k(),h=c.measurePageBox();$(l,h),xs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,l)}return rt(this.latestValues)&&xs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$(this.target,this.layout.layoutBox),ir(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ze(this.parent.latestValues)||sr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,u){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ee(this.relativeTargetOrigin,a,u),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===F.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||l))return;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;wl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ps(this.prevProjectionDelta.x,this.projectionDelta.x),ps(this.prevProjectionDelta.y,this.projectionDelta.y)),Vt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!As(this.projectionDelta.x,this.prevProjectionDelta.x)||!As(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=dt(),this.projectionDelta=dt(),this.projectionDeltaWithTransform=dt()}setAnimationOrigin(r,a=!1){const u=this.snapshot,c=u?u.latestValues:{},l={...this.latestValues},h=dt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=u?u.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,v=this.getStack(),T=!v||v.members.length<=1,x=!!(m&&!T&&this.options.crossfade===!0&&!this.path.some(xu));this.animationProgress=0;let g;this.mixTargetDelta=P=>{const S=P/1e3;Ls(h.x,r.x,S),Ls(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ee(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tu(this.relativeTarget,this.relativeTargetOrigin,f,S),g&&ql(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=k()),$(g,this.relativeTarget)),m&&(this.animationValues=l,Ql(l,c,this.latestValues,S,x,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Xt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.motionValue.jump(0,!1),this.currentAnimation=nu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(au),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:l}=r;if(!(!a||!u||!c)){if(this!==r&&this.layout&&c&&Pr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||k();const h=O(this.layout.layoutBox.x);u.x.min=r.target.x.min,u.x.max=u.x.min+h;const f=O(this.layout.layoutBox.y);u.y.min=r.target.y.min,u.y.max=u.y.min+f}$(a,u),mt(a,l),Vt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ou),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:u}=r;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&ye("z",r,c,this.animationValues);for(let l=0;l<ge.length;l++)ye(`rotate${ge[l]}`,r,c,this.animationValues),ye(`skew${ge[l]}`,r,c,this.animationValues);r.render();for(const l in c)r.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=_t(a?.pointerEvents)||"",r.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=_t(a?.pointerEvents)||""),this.hasProjected&&!rt(this.latestValues)&&(r.transform=u?u({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Zl(this.projectionDeltaWithTransform,this.treeScale,l);u&&(h=u(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in _e){if(l[p]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:T}=_e[p],x=h==="none"?l[p]:m(l[p],c);if(v){const g=v.length;for(let P=0;P<g;P++)r[v[P]]=x}else T?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=c===this?_t(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ds),this.root.sharedNodes.clear()}}}function uu(t){t.updateLayout()}function cu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?G(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=O(h);h.min=n[l].min,h.max=h.min+f}):Pr(i,e.layoutBox,n)&&G(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=O(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=dt();Vt(r,n,e.layoutBox);const a=dt();o?Vt(a,t.applyTransform(s,!0),e.measuredBox):Vt(a,n,e.layoutBox);const u=!gr(r);let c=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=k();ee(d,e.layoutBox,h.layoutBox);const p=k();ee(p,n,f.layoutBox),yr(d,p)||(c=!0),l.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=d,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function hu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function fu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function du(t){t.clearSnapshot()}function Ds(t){t.clearMeasurements()}function Es(t){t.isLayoutDirty=!1}function pu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Rs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mu(t){t.resolveTargetDelta()}function gu(t){t.calcProjection()}function yu(t){t.resetSkewAndRotation()}function vu(t){t.removeLeadSnapshot()}function Ls(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ks(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Tu(t,e,n,s){ks(t.x,e.x,n.x,s),ks(t.y,e.y,n.y,s)}function xu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const wu={duration:.45,ease:[.4,0,.1,1]},Is=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Fs=Is("applewebkit/")&&!Is("chrome/")?Math.round:W;function Bs(t){t.min=Fs(t.min),t.max=Fs(t.max)}function Pu(t){Bs(t.x),Bs(t.y)}function Pr(t,e,n){return t==="position"||t==="preserve-aspect"&&!zl(bs(e),bs(n),.2)}function Su(t){return t!==t.root&&t.scroll?.wasRoot}const bu=wr({attachResizeListener:(t,e)=>Lt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ve={current:void 0},Sr=wr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ve.current){const t=new bu({});t.mount(window),t.setOptions({layoutScroll:!0}),ve.current=t}return ve.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Cn=y.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function js(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Au(...t){return e=>{let n=!1;const s=t.map(i=>{const o=js(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():js(t[i],null)}}}}function Vu(...t){return y.useCallback(Au(...t),t)}class Cu extends y.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Ke(s)&&s.offsetWidth||0,o=Ke(s)&&s.offsetHeight||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,r.bottom=o-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Mu({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:o}){const r=y.useId(),a=y.useRef(null),u=y.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=y.useContext(Cn),l=t.props?.ref??t?.ref,h=Vu(a,l);return y.useInsertionEffect(()=>{const{width:f,height:d,top:p,left:m,right:v,bottom:T}=u.current;if(e||o===!1||!a.current||!f||!d)return;const x=n==="left"?`left: ${m}`:`right: ${v}`,g=s==="bottom"?`bottom: ${T}`:`top: ${p}`;a.current.dataset.motionPopId=r;const P=document.createElement("style");c&&(P.nonce=c);const S=i??document.head;return S.appendChild(P),P.sheet&&P.sheet.insertRule(`
2          [data-motion-pop-id="${r}"] {
3            position: absolute !important;
4            width: ${f}px !important;
5            height: ${d}px !important;
6            ${x}px !important;
7            ${g}px !important;
8          }
9        `),()=>{S.contains(P)&&S.removeChild(P)}},[e]),_.jsx(Cu,{isPresent:e,childRef:a,sizeRef:u,pop:o,children:o===!1?t:y.cloneElement(t,{ref:h})})}const Du=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:u,root:c})=>{const l=Je(Eu),h=y.useId();let f=!0,d=y.useMemo(()=>(f=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const m of l.values())if(!m)return;s&&s()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,s]);return o&&f&&(d={...d}),y.useMemo(()=>{l.forEach((p,m)=>l.set(m,!1))},[n]),y.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),t=_.jsx(Mu,{pop:r==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:t}),_.jsx(se.Provider,{value:d,children:t})};function Eu(){return new Map}function br(t=!0){const e=y.useContext(se);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=y.useId();y.useEffect(()=>{if(t)return i(o)},[t]);const r=y.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ut=t=>t.key||"";function Os(t){const e=[];return y.Children.forEach(t,n=>{y.isValidElement(n)&&e.push(n)}),e}const Oc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[l,h]=br(r),f=y.useMemo(()=>Os(t),[t]),d=r&&!l?[]:f.map(Ut),p=y.useRef(!0),m=y.useRef(f),v=Je(()=>new Map),T=y.useRef(new Set),[x,g]=y.useState(f),[P,S]=y.useState(f);Js(()=>{p.current=!1,m.current=f;for(let b=0;b<P.length;b++){const A=Ut(P[b]);d.includes(A)?(v.delete(A),T.current.delete(A)):v.get(A)!==!0&&v.set(A,!1)}},[P,d.length,d.join("-")]);const V=[];if(f!==x){let b=[...f];for(let A=0;A<P.length;A++){const L=P[A],nt=Ut(L);d.includes(nt)||(b.splice(A,0,L),V.push(L))}return o==="wait"&&V.length&&(b=V),S(Os(b)),g(f),null}const{forceRender:M}=y.useContext(Ze);return _.jsx(_.Fragment,{children:P.map(b=>{const A=Ut(b),L=r&&!l?!1:f===P||d.includes(A),nt=()=>{if(T.current.has(A))return;if(T.current.add(A),v.has(A))v.set(A,!0);else return;let Z=!0;v.forEach(jt=>{jt||(Z=!1)}),Z&&(M?.(),S(m.current),r&&h?.(),s&&s())};return _.jsx(Du,{isPresent:L,initial:!p.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:L?void 0:nt,anchorX:a,anchorY:u,children:b},A)})})},Mn=y.createContext({strict:!1}),Ns={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 Us=!1;function Ru(){if(Us)return;const t={};for(const e in Ns)t[e]={isEnabled:n=>Ns[e].some(s=>!!n[s])};tr(t),Us=!0}function Ar(){return Ru(),yl()}function Xe(t){const e=Ar();for(const n in t)e[n]={...e[n],...t[n]};tr(e)}function Nc({children:t,features:e,strict:n=!1}){const[,s]=y.useState(!Te(e)),i=y.useRef(void 0);if(!Te(e)){const{renderer:o,...r}=e;i.current=o,Xe(r)}return y.useEffect(()=>{Te(e)&&e().then(({renderer:o,...r})=>{Xe(r),i.current=o,s(!0)})},[]),_.jsx(Mn.Provider,{value:{renderer:i.current,strict:n},children:t})}function Te(t){return typeof t=="function"}const Lu=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 ne(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Lu.has(t)}let Vr=t=>!ne(t);function ku(t){typeof t=="function"&&(Vr=e=>e.startsWith("on")?!ne(e):t(e))}try{ku(require("@emotion/is-prop-valid").default)}catch{}function Iu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Vr(i)||n===!0&&ne(i)||!e&&!ne(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const oe=y.createContext({});function Fu(t,e){if(re(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Rt(n)?n:void 0,animate:Rt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Bu(t){const{initial:e,animate:n}=Fu(t,y.useContext(oe));return y.useMemo(()=>({initial:e,animate:n}),[Ws(e),Ws(n)])}function Ws(t){return Array.isArray(t)?t.join(" "):t}const Dn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Cr(t,e,n){for(const s in e)!B(e[s])&&!ar(s,n)&&(t[s]=e[s])}function ju({transformTemplate:t},e){return y.useMemo(()=>{const n=Dn();return An(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Ou(t,e){const n=t.style||{},s={};return Cr(s,n,t),Object.assign(s,ju(t,e)),s}function Nu(t,e){const n={},s=Ou(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Mr=()=>({...Dn(),attrs:{}});function Uu(t,e,n,s){const i=y.useMemo(()=>{const o=Mr();return lr(o,e,cr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Cr(o,t.style,t),i.style={...o,...i.style}}return i}const Wu=["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 En(t){return typeof t!="string"||t.includes("-")?!1:!!(Wu.indexOf(t)>-1||/[A-Z]/u.test(t))}function $u(t,e,n,{latestValues:s},i,o=!1,r){const u=(r??En(t)?Uu:Nu)(e,s,i,t),c=Iu(e,typeof t=="string",o),l=t!==y.Fragment?{...c,...u,ref:n}:{},{children:h}=e,f=y.useMemo(()=>B(h)?h.get():h,[h]);return y.createElement(t,{...l,children:f})}function Ku({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Hu(n,s,i,t),renderState:e()}}function Hu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=_t(o[f]);let{initial:r,animate:a}=t;const u=re(t),c=Ji(t);e&&c&&!u&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!ie(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=gn(t,f[d]);if(p){const{transitionEnd:m,transition:v,...T}=p;for(const x in T){let g=T[x];if(Array.isArray(g)){const P=l?g.length-1:0;g=g[P]}g!==null&&(i[x]=g)}for(const x in m)i[x]=m[x]}}}return i}const Dr=t=>
vendor: 20,873 bytes, line 9
9(e,n)=>{const s=y.useContext(oe),i=y.useContext(se),o=()=>Ku(t,e,s,i);return n?o():Je(o)},zu=Dr({scrapeMotionValuesFromProps:Vn,createRenderState:Dn}),Gu=Dr({scrapeMotionValuesFromProps:hr,createRenderState:Mr}),_u=Symbol.for("motionComponentSymbol");function Xu(t,e,n){const s=y.useRef(n);y.useInsertionEffect(()=>{s.current=n});const i=y.useRef(null);return y.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const Er=y.createContext({});function ct(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Yu(t,e,n,s,i,o){const{visualElement:r}=y.useContext(oe),a=y.useContext(Mn),u=y.useContext(se),c=y.useContext(Cn),l=c.reducedMotion,h=c.skipAnimations,f=y.useRef(null),d=y.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:o}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,m=y.useContext(Er);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&qu(f.current,n,i,m);const v=y.useRef(!1);y.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const T=n[Ui],x=y.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return Js(()=>{d.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),y.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),x.current=!1),p.enteringChildren=void 0)}),p}function qu(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Rr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&ct(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:u,layoutRoot:c})}function Rr(t){if(t)return t.options.allowProjection!==!1?t.projection:Rr(t.parent)}function xe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Xe(s);const o=n?n==="svg":En(t),r=o?Gu:zu;function a(c,l){let h;const f={...y.useContext(Cn),...c,layoutId:Zu(c)},{isStatic:d}=f,p=Bu(c),m=r(c,d);if(!d&&typeof window<"u"){Ju();const v=Qu(f);h=v.MeasureLayout,p.visualElement=Yu(t,m,f,i,v.ProjectionNode,o)}return _.jsxs(oe.Provider,{value:p,children:[h&&p.visualElement?_.jsx(h,{visualElement:p.visualElement,...f}):null,$u(t,c,Xu(m,p.visualElement,l),m,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=y.forwardRef(a);return u[_u]=t,u}function Zu({layoutId:t}){const e=y.useContext(Ze).id;return e&&t!==void 0?e+"-"+t:t}function Ju(t,e){y.useContext(Mn).strict}function Qu(t){const e=Ar(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Lr(t,e){if(typeof Proxy>"u")return xe;const n=new Map,s=(o,r)=>xe(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,xe(r,void 0,t,e)),n.get(r))})}const Uc=Lr(),kr=(t,e)=>e.isSVG??En(t)?new Il(e):new Ml(e,{allowProjection:t!==y.Fragment});class tc extends et{constructor(e){super(e),e.animationState||(e.animationState=Nl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ie(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ec=0;class nc extends et{constructor(){super(...arguments),this.id=ec++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Ir={animation:{Feature:tc},exit:{Feature:nc}};function Bt(t){return{point:{x:t.pageX,y:t.pageY}}}const sc=t=>e=>wn(e)&&t(e,Bt(e));function Ct(t,e,n,s){return Lt(t,e,sc(n),s)}const Fr=({current:t})=>t?t.ownerDocument.defaultView:null,$s=(t,e)=>Math.abs(t-e);function ic(t,e){const n=$s(t.x,e.x),s=$s(t.y,e.y);return Math.sqrt(n**2+s**2)}const Ks=new Set(["auto","scroll"]);class Br{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Pe(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=ic(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:v}=d,{timestamp:T}=F;this.history.push({...v,timestamp:T});const{onStart:x,onMove:g}=this.handlers;p||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=we(p,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Pe(d.type==="pointercancel"?this.lastMoveEventInfo:we(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),v&&v(d,x)},!wn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const u=Bt(e),c=we(u,this.transformPagePoint),{point:l}=c,{timestamp:h}=F;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Pe(c,this.history)),this.removeListeners=kt(Ct(this.contextWindow,"pointermove",this.handlePointerMove),Ct(this.contextWindow,"pointerup",this.handlePointerUp),Ct(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Ks.has(s.overflowX)||Ks.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),C.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tt(this.updatePoint)}}function we(t,e){return e?{point:e(t.point)}:t}function Hs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Pe({point:t},e){return{point:t,delta:Hs(t,jr(e)),offset:Hs(t,rc(e)),velocity:oc(e,.1)}}function rc(t){return t[0]}function jr(t){return t[t.length-1]}function oc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=jr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>H(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>H(e)*2&&(s=t[1]);const o=U(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ac(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function zs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function lc(t,{top:e,left:n,bottom:s,right:i}){return{x:zs(t.x,n,i),y:zs(t.y,e,s)}}function Gs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function uc(t,e){return{x:Gs(t.x,e.x),y:Gs(t.y,e.y)}}function cc(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=Mt(e.min,e.max-s,t.min):s>i&&(n=Mt(t.min,t.max-i,e.min)),Y(0,1,n)}function hc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ye=.35;function fc(t=Ye){return t===!1?t=0:t===!0&&(t=Ye),{x:_s(t,"left","right"),y:_s(t,"top","bottom")}}function _s(t,e,n){return{min:Xs(t,e),max:Xs(t,n)}}function Xs(t,e){return typeof t=="number"?t:t[e]||0}const dc=new WeakMap;class pc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(Bt(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_a(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),G(T=>{let x=this.getAxisMotionValue(T).get()||0;if(X.test(x)){const{projection:g}=this.visualElement;if(g&&g.layout){const P=g.layout.layoutBox[T];P&&(x=O(P)*(parseFloat(x)/100))}}this.originPoint[T]=x}),m&&C.update(()=>m(h,f),!1,!0),Ne(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(p&&this.currentDirection===null){this.currentDirection=gc(T),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),v&&C.update(()=>v(h,f),!1,!0)},u=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Br(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Fr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Wt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=ac(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&ct(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=lc(s.layoutBox,e):this.constraints=!1,this.elastic=fc(n),i!==this.constraints&&!ct(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&G(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ct(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Pl(s,i.root,this.visualElement.getTransformPagePoint());let r=uc(i.layout.layoutBox,o);if(n){const a=n(Tl(r));this.hasMutatedConstraints=!!a,a&&(r=nr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=G(l=>{if(!Wt(l,n,this.currentDirection))return;let h=u&&u[l]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ne(this.visualElement,e),s.start(mn(e,s,0,n,this.visualElement,!1))}stopAnimation(){G(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){G(n=>{const{drag:s}=this.getProps();if(!Wt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],u=o.get()||0;o.set(e[n]-D(r,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ct(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};G(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const u=a.get();i[r]=cc({min:u,max:u},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),G(r=>{if(!Wt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:u,max:c}=this.constraints[r];a.set(D(u,c,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;dc.set(this.visualElement,this);const e=this.visualElement.current,n=Ct(e,"pointerdown",c=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=c.target,d=f!==e&&Qa(f);l&&h&&!d&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();ct(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=mc(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),C.read(i);const a=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(G(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),u&&u(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ye,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Ys(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function mc(t,e,n){const s=es(t,Ys(n)),i=es(e,Ys(n));return()=>{s(),i()}}function Wt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function gc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class yc extends et{constructor(e){super(e),this.removeGroupControls=W,this.removeListeners=W,this.controls=new pc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||W}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Se=t=>(e,n)=>{t&&C.update(()=>t(e,n),!1,!0)};class vc extends et{constructor(){super(...arguments),this.removePointerDownListener=W}onPointerDown(e){this.session=new Br(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Se(e),onStart:Se(n),onMove:Se(s),onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Ct(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let be=!1;class Tc extends y.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),be&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),be=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),xn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;be=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Or(t){const[e,n]=br(),s=y.useContext(Ze);return _.jsx(Tc,{...t,layoutGroup:s,switchLayoutGroup:y.useContext(Er),isPresent:e,safeToRemove:n})}const xc={pan:{Feature:vc},drag:{Feature:yc,ProjectionNode:Sr,MeasureLayout:Or}};function qs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&C.postRender(()=>o(e,Bt(e)))}class wc extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Ya(e,(n,s)=>(qs(this.node,s,"Start"),i=>qs(this.node,i,"End"))))}unmount(){}}class Pc extends et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kt(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&C.postRender(()=>o(e,Bt(e)))}class Sc extends et{mount(){const{current:e}=this.node;if(!e)return;
vendor: 2,504 bytes, line 9
9const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=el(e,(i,o)=>(Zs(this.node,o,"Start"),(r,{success:a})=>Zs(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const qe=new WeakMap,Ae=new WeakMap,bc=t=>{const e=qe.get(t.target);e&&e(t)},Ac=t=>{t.forEach(bc)};function Vc({root:t,...e}){const n=t||document;Ae.has(n)||Ae.set(n,{});const s=Ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ac,{root:t,...e})),s[i]}function Cc(t,e,n){const s=Vc(e);return qe.set(t,n),s.observe(t),()=>{qe.delete(t),s.unobserve(t)}}const Mc={some:0,all:1};class Dc extends et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Mc[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=c?l:h;f&&f(u)};return Cc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ec(e,n))&&this.startObserver()}unmount(){}}function Ec({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Nr={inView:{Feature:Dc},tap:{Feature:Sc},focus:{Feature:Pc},hover:{Feature:wc}},Rc={layout:{ProjectionNode:Sr,MeasureLayout:Or}},Lc={...Ir,...Nr,...xc,...Rc},Wc=Lr(Lc,kr),$c={renderer:kr,...Ir,...Nr},kc={some:0,all:1};function Ic(t,e,{root:n,margin:s,amount:i="some"}={}){const o=Tn(t),r=new WeakMap,a=c=>{c.forEach(l=>{const h=r.get(l.target);if(l.isIntersecting!==!!h)if(l.isIntersecting){const f=e(l.target,l);typeof f=="function"?r.set(l.target,f):u.unobserve(l.target)}else typeof h=="function"&&(h(l),r.delete(l.target))})},u=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:kc[i]});return o.forEach(c=>u.observe(c)),()=>u.disconnect()}function Kc(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=y.useState(o);return y.useEffect(()=>{if(!t.current||i&&r)return;const u=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:s};return Ic(t.current,u,c)},[e,t,n,i,s]),r}export{Oc as A,Nc as L,Uc as a,$c as d,_ as j,Wc as m,Kc 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.