framer-motion
Version:
A simple and powerful JavaScript animation library
2 lines • 147 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={})}(this,function(t){"use strict";function e(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const i=(t,e,n)=>n>e?e:n<t?t:n;function s(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}t.warning=()=>{},t.invariant=()=>{},"undefined"!=typeof process&&"production"!==process.env?.NODE_ENV&&(t.warning=(t,e,n)=>{t||"undefined"==typeof console||console.warn(s(e,n))},t.invariant=(t,e,n)=>{if(!t)throw new Error(s(e,n))});const o={},r=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),a=t=>"object"==typeof t&&null!==t,l=t=>/^0[^.\s]+$/u.test(t);function c(t){let e;return()=>(void 0===e&&(e=t()),e)}const u=t=>t,h=(...t)=>t.reduce((t,e)=>n=>e(t(n))),d=(t,e,n)=>{const i=e-t;return i?(n-t)/i:1};class p{constructor(){this.subscriptions=[]}add(t){return e(this.subscriptions,t),()=>this.remove(t)}remove(t){n(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const f=t=>1e3*t,m=t=>t/1e3,y=(t,e)=>e?t*(1e3/e):0,g=new Set;function v(t,e,n){t||g.has(e)||(console.warn(s(e,n)),g.add(e))}const x=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t},w=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function T(t,e,n,i){if(t===e&&n===i)return u;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=w(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:w(s(t),e,i)}const b=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,S=t=>e=>1-t(1-e),A=T(.33,1.53,.69,.99),V=S(A),P=b(V),E=t=>t>=1?1:(t*=2)<1?.5*V(t):.5*(2-Math.pow(2,-10*(t-1))),k=t=>1-Math.sin(Math.acos(t)),M=S(k),D=b(k),C=T(.42,0,1,1),R=T(0,0,.58,1),B=T(.42,0,.58,1);const L=t=>Array.isArray(t)&&"number"!=typeof t[0];function j(t,e){return L(t)?t[x(0,t.length,e)]:t}const O=t=>Array.isArray(t)&&"number"==typeof t[0],F={linear:u,easeIn:C,easeInOut:B,easeOut:R,circIn:k,circInOut:D,circOut:M,backIn:V,backInOut:P,backOut:A,anticipate:E},I=e=>{if(O(e)){t.invariant(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[n,i,s,o]=e;return T(n,i,s,o)}return"string"==typeof e?(t.invariant(void 0!==F[e],`Invalid easing type '${e}'`,"invalid-easing-type"),F[e]):e},N=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,a=N.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new Set;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(n.add(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(r=t,i)return void(s=!0);i=!0;const o=e;e=n,n=o,e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:h,update:d,preRender:p,render:f,postRender:m}=a,y=()=>{const r=o.useManualTiming,a=r?s.timestamp:performance.now();n=!1,r||(s.delta=i?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),h.process(s),d.process(s),p.process(s),f.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(y))};return{schedule:N.reduce((e,o)=>{const r=a[o];return e[o]=(e,o=!1,a=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(y)),r.schedule(e,o,a)),e},{}),cancel:t=>{for(let e=0;e<N.length;e++)a[N[e]].cancel(t)},state:s,steps:a}}const{schedule:W,cancel:U,state:z,steps:K}=$("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0);let Y;function G(){Y=void 0}const X={now:()=>(void 0===Y&&X.set(z.isProcessing||o.useManualTiming?z.timestamp:performance.now()),Y),set:t=>{Y=t,queueMicrotask(G)}},H=t=>Math.round(1e5*t)/1e5,q=t=>e=>"string"==typeof e&&e.startsWith(t),_=q("--"),Z=q("var(--"),J=t=>!!Z(t)&&Q.test(t.split("/*")[0].trim()),Q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tt(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}const et={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},nt={...et,transform:t=>i(0,1,t)},it={...et,default:1},st=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const ot=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rt=(t,e)=>n=>Boolean("string"==typeof n&&ot.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),at=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(st);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},lt={...et,transform:t=>Math.round((t=>i(0,255,t))(t))},ct={test:rt("rgb","red"),parse:at("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+lt.transform(t)+", "+lt.transform(e)+", "+lt.transform(n)+", "+H(nt.transform(i))+")"};const ut={test:rt("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:ct.transform},ht=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),dt=ht("deg"),pt=ht("%"),ft=ht("px"),mt=ht("vh"),yt=ht("vw"),gt=(()=>({...pt,parse:t=>pt.parse(t)/100,transform:t=>pt.transform(100*t)}))(),vt={test:rt("hsl","hue"),parse:at("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+pt.transform(H(e))+", "+pt.transform(H(n))+", "+H(nt.transform(i))+")"},xt={test:t=>ct.test(t)||ut.test(t)||vt.test(t),parse:t=>ct.test(t)?ct.parse(t):vt.test(t)?vt.parse(t):ut.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?ct.transform(t):vt.transform(t),getAnimatableNone:t=>{const e=xt.parse(t);return e.alpha=0,xt.transform(e)}},wt=new RegExp(st.source),Tt=new RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i");const bt="number",St="color",At=/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 Vt(t){const e=t.toString();return wt.test(e)||Tt.test(e)}function Pt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(At,t=>(xt.test(t)?(i.color.push(o),s.push(St),n.push(xt.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(bt),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:r,indexes:i,types:s}}function Et({split:t,types:e}){const n=t.length;return i=>{let s="";for(let o=0;o<n;o++)if(s+=t[o],void 0!==i[o]){const t=e[o];s+=t===bt?H(i[o]):t===St?xt.transform(i[o]):i[o]}return s}}const kt=(t,e)=>{return"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof(n=t)?0:xt.test(n)?xt.getAnimatableNone(n):n;var n};const Mt={test:function(t){return isNaN(t)&&"string"==typeof t&&(wt.test(t)||Tt.test(t))},parse:function(t){return Pt(t).values},createTransformer:function(t){return Et(Pt(t))},getAnimatableNone:function(t){const e=Pt(t);return Et(e)(e.values.map((t,n)=>kt(t,e.split[n])))}};function Dt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ct({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Dt(a,i,t+1/3),o=Dt(a,i,t),r=Dt(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}function Rt(t,e){return n=>n>0?e:t}const Bt=(t,e,n)=>t+(e-t)*n,Lt=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},jt=[ut,ct,vt];function Ot(e){const n=(i=e,jt.find(t=>t.test(i)));var i;if(!n)return t.warning(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let s=n.parse(e);return n===vt&&(s=Ct(s)),s}const Ft=(t,e)=>{const n=Ot(t),i=Ot(e);if(!n||!i)return Rt(t,e);const s={...n};return t=>(s.red=Lt(n.red,i.red,t),s.green=Lt(n.green,i.green,t),s.blue=Lt(n.blue,i.blue,t),s.alpha=Bt(n.alpha,i.alpha,t),ct.transform(s))},It=new Set(["none","hidden"]);function Nt(t,e){return It.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function $t(t,e){return n=>Bt(t,e,n)}function Wt(t){return"number"==typeof t?$t:"string"==typeof t?J(t)?Rt:xt.test(t)?Ft:Kt:Array.isArray(t)?Ut:"object"==typeof t?xt.test(t)?Ft:zt:Rt}function Ut(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>Wt(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function zt(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Wt(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Kt=(e,n)=>{const i=Mt.createTransformer(n),s=Pt(e),o=Pt(n);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?It.has(e)&&!o.values.length||It.has(n)&&!s.values.length?Nt(e,n):h(Ut(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(s,o),o.values),i):(t.warning(!0,`Complex values '${e}' and '${n}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Rt(e,n))},Yt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Gt(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Bt(t,e,n);if("string"==typeof t&&"string"==typeof e){const n=function(t,e){const n=Yt.exec(t);if(!n)return;const i=Yt.exec(e);if(!i||n[2]!==i[2])return;const s=n[2],o=parseFloat(n[1]),r=parseFloat(i[1]);return t=>H(Bt(o,r,t))+s}(t,e);if(n)return n}return Wt(t)(t,e)}const Xt=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>W.update(e,t),stop:()=>U(e),now:()=>z.isProcessing?z.timestamp:X.now()}},Ht=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},qt=2e4;function _t(t,e=50,n=2e4,i){let s=0,o=t.next(s);for(i?.push(o.value);!o.done&&s<n;)s+=e,o=t.next(s),i?.push(o.value);return s>=n?1/0:s}function Zt(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(_t(i),qt);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:m(s)}}const Jt=100,Qt=10,te=1,ee=0,ne=800,ie=.3,se=.3,oe={granular:.01,default:2},re={granular:.005,default:.5},ae=.01,le=10,ce=.05,ue=1;function he(t,e){return t*Math.sqrt(1-e*e)}const de=.001;const pe=["duration","bounce"],fe=["stiffness","damping","mass"];function me(t,e){return e.some(e=>void 0!==t[e])}function ye(e){let n={velocity:ee,stiffness:Jt,damping:Qt,mass:te,isResolvedFromDuration:!1,...e};if(!me(e,fe)&&me(e,pe))if(n.velocity=0,e.visualDuration){const t=e.visualDuration,s=2*Math.PI/(1.2*t),o=s*s,r=2*i(.05,1,1-(e.bounce||0))*Math.sqrt(o);n={...n,mass:te,stiffness:o,damping:r}}else{const s=function({duration:e=ne,bounce:n=ie,velocity:s=ee,mass:o=te}){let r,a;t.warning(e<=f(le),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-n;l=i(ce,ue,l),e=i(ae,le,m(e)),l<1?(r=t=>{const n=t*l,i=n*e,o=n-s,r=he(t,l),a=Math.exp(-i);return de-o/r*a},a=t=>{const n=t*l*e,i=n*s+s,o=l*l*t*t*e,a=Math.exp(-n),c=he(t*t,l);return(-r(t)+de>0?-1:1)*((i-o)*a)/c}):(r=t=>Math.exp(-t*e)*((t-s)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(s-t)));const c=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,a,5/e);if(e=f(e),isNaN(c))return{stiffness:Jt,damping:Qt,duration:e};{const t=c*c*o;return{stiffness:t,damping:2*l*Math.sqrt(o*t),duration:e}}}({...e,velocity:0});n={...n,...s,mass:te},n.isResolvedFromDuration=!0}return n}function ge(t=se,e=ie){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:i},{stiffness:r,damping:a,mass:l,duration:c,velocity:u,isResolvedFromDuration:h}=ye({...n,velocity:-m(n.velocity||0)}),d=a/(2*Math.sqrt(r*l)),p=m(Math.sqrt(r/l)),y=d*p,g={target:s,delta:s-i,velocity:u||0,restSpeed:0,restDelta:0},v=()=>{const t=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(t?oe.granular:oe.default),g.restDelta=n.restDelta||(t?re.granular:re.default)};let x,w,T;if(v(),d<1){const t=he(p,d),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};T=()=>{e.A=(g.velocity+y*g.delta)/t,e.sinC=y*e.A+g.delta*t,e.cosC=y*g.delta-e.A*t};const n=n=>{n!==e.t&&(e.t=n,e.env=Math.exp(-y*n),e.sin=Math.sin(t*n),e.cos=Math.cos(t*n))};x=t=>(n(t),g.target-e.env*(e.A*e.sin+g.delta*e.cos)),w=t=>(n(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===d){x=t=>g.target-Math.exp(-p*t)*(g.delta+(g.velocity+p*g.delta)*t);const t={C:0};T=()=>{t.C=g.velocity+p*g.delta},w=e=>Math.exp(-p*e)*(p*t.C*e-g.velocity)}else{const t=p*Math.sqrt(d*d-1);x=e=>{const n=Math.exp(-y*e),i=Math.min(t*e,300);return g.target-n*((g.velocity+y*g.delta)*Math.sinh(i)+t*g.delta*Math.cosh(i))/t};const e={P:0,sinh:0,cosh:0};T=()=>{e.P=(g.velocity+y*g.delta)/t,e.sinh=y*e.P-g.delta*t,e.cosh=y*g.delta-e.P*t},w=n=>{const i=Math.exp(-y*n),s=Math.min(t*n,300);return i*(e.sinh*Math.sinh(s)+e.cosh*Math.cosh(s))}}T();const b=!me(n,fe)&&me(n,pe),S=h&&c||null,A={calculatedDuration:S,retarget:(t,e)=>{g.target=t[t.length-1],g.delta=g.target-t[0],g.velocity=b?0:-m(e),n.restSpeed&&n.restDelta||v(),A.calculatedDuration=S,o.done=!1,T()},velocity:t=>f(w(t)),next:t=>{const e=x(t);if(h)o.done=t>=c;else{const n=f(w(t));o.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-e)<=g.restDelta}return o.value=o.done?g.target:e,o},toString:()=>{const t=Math.min(_t(A),qt),e=Ht(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function ve({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=n*e;const m=h+f,y=void 0===r?m:r(m);y!==m&&(f=y-h);const g=t=>-f*Math.exp(-t/i),v=t=>{const e=g(t);d.done=Math.abs(e)<=c,d.value=d.done?y:y+e};let x,w;const T=t=>{var e;((e=d.value)<a||e>l)&&(x=t,w=ge({keyframes:[d.value,p(d.value)],velocity:-g(t)/i*1e3,damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,v(t),T(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&v(t),d)}}}function xe(e,n,{clamp:s=!0,ease:r,mixer:a}={}){const l=e.length;if(t.invariant(l===n.length,"Both input and output ranges must be the same length","range-length"),1===l)return()=>n[0];if(2===l&&n[0]===n[1])return()=>n[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),n=[...n].reverse());const p=function(t,e,n){const i=[],s=n||o.mix||Gt,r=t.length-1;for(let n=0;n<r;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||u:e;o=h(t,o)}i.push(o)}return i}(n,r,a),f=p.length,m=t=>{if(c&&t<e[0])return n[0];let i=0;if(f>1)for(;i<e.length-2&&!(t<e[i+1]);i++);const s=d(e[i],e[i+1],t);return p[i](s)};return s?t=>m(i(e[0],e[l-1],t)):m}function we(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=d(0,e,i);t.push(Bt(n,1,s))}}function Te(t){const e=[0];return we(e,t.length-1),e}function be(t,e){return t.map(t=>t*e)}function Se(t,e){return t.map(()=>e||B).splice(0,t.length-1)}function Ae({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=L(s)?s.map(I):I(s),a={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(r)&&(!n||2!==n.length||0===n[0]&&1===n[1])){const[n,s]=e,l=n===s?void 0:(o.mix||Gt)(n,s);return{calculatedDuration:t,next:e=>(a.value=l?l(r(t>0?i(0,1,e/t):1)):s,a.done=e>=t,a)}}const l=xe(be(n&&n.length===e.length?n:Te(e),t),e,{ease:Array.isArray(r)?r:Se(e,r)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}ge.applyToOptions=t=>{const e=Zt(t,100,ge);return t.ease=e.ease,t.duration=f(e.duration),t.type="keyframes",t};function Ve(t,e,n=0){return e<=0?n:t.velocity?t.velocity(e):function(t,e,n){const i=Math.max(e-5,0);return y(n-t(i),e-i)}(e=>t.next(e).value,e,t.next(e).value)}const Pe=t=>null!==t;function Ee(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Pe),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}const ke={decay:ve,inertia:ve,tween:Ae,keyframes:Ae,spring:ge};function Me(t){"string"==typeof t.type&&(t.type=ke[t.type])}function De(t,e){return{kind:t,animation:e,timestamp:X.now(),frameTimestamp:z.timestamp,frameIsProcessing:z.isProcessing}}function Ce(t,e,n){const i=globalThis.__MOTION_INSPECT__;if(i)try{i({...De("animation-start",t),options:n?{...e,...n}:e})}catch{}}class Re{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}const Be=t=>t/100;class Le extends Re{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==X.now()&&this.tick(X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),Ce(this,this.options)}initAnimation(){const{options:t}=this;Me(t);const{type:e=Ae,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||Ae;a!==Ae&&"number"!=typeof r[0]&&(this.mixKeyframes=h(Be,Gt(r[0],r[1])),r=[0,100]);const l=a(r===t.keyframes?t:{...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=_t(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x,w=this.currentTime,T=n;if(h){const t=Math.min(this.currentTime,s)/a;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===d?(n=1-n,p&&(n-=p/a)):"mirror"===d&&(T=r)),w=i(0,1,n)*a}v?(this.delayState.value=u[0],x=this.delayState):x=T.next(w),o&&!v&&(x.value=o(x.value));let{done:b}=x;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==ve&&(x.value=Ee(u,this.options,y,this.speed)),m&&m(x.value),S&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return m(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+m(t)}get time(){return m(this.currentTime)}set time(t){t=f(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return Ve(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(X.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=m(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Xt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const je=new Set(["brightness","contrast","saturate","opacity"]);function Oe(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(st)||[];if(!i)return t;const s=n.replace(i,"");let o=je.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Fe=/\b([a-z-]*)\(.*?\)/gu,Ie={...Mt,getAnimatableNone:t=>{const e=t.match(Fe);return e?e.map(Oe).join(" "):t}},Ne={...Mt,getAnimatableNone:t=>{const e=Mt.parse(t);return Mt.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},$e={...et,transform:Math.round},We={rotate:dt,pathRotation:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:it,scaleX:it,scaleY:it,scaleZ:it,skew:dt,skewX:dt,skewY:dt,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:nt,originX:gt,originY:gt,originZ:ft},Ue={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,inset:ft,insetBlock:ft,insetBlockStart:ft,insetBlockEnd:ft,insetInline:ft,insetInlineStart:ft,insetInlineEnd:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,paddingBlock:ft,paddingBlockStart:ft,paddingBlockEnd:ft,paddingInline:ft,paddingInlineStart:ft,paddingInlineEnd:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,marginBlock:ft,marginBlockStart:ft,marginBlockEnd:ft,marginInline:ft,marginInlineStart:ft,marginInlineEnd:ft,fontSize:ft,backgroundPositionX:ft,backgroundPositionY:ft,...We,zIndex:$e,fillOpacity:nt,strokeOpacity:nt,numOctaves:$e},ze={...Ue,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:Ie,WebkitFilter:Ie,mask:Ne,WebkitMask:Ne},Ke=t=>ze[t],Ye=new Set([Ie,Ne]);function Ge(t,e){let n=Ke(t);return Ye.has(n)||(n=Mt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}function Xe(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const He=t=>180*t/Math.PI,qe=t=>{const e=He(Math.atan2(t[1],t[0]));return Ze(e)},_e={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:qe,rotateZ:qe,skewX:t=>He(Math.atan(t[1])),skewY:t=>He(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ze=t=>((t%=360)<0&&(t+=360),t),Je=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Qe=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Je,scaleY:Qe,scale:t=>(Je(t)+Qe(t))/2,rotateX:t=>Ze(He(Math.atan2(t[6],t[5]))),rotateY:t=>Ze(He(Math.atan2(-t[2],t[0]))),rotateZ:qe,rotate:qe,skewX:t=>He(Math.atan(t[4])),skewY:t=>He(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function en(t){return t.includes("scale")?1:0}function nn(t,e){if(!t||"none"===t)return en(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=tn,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=_e,s=e}if(!s)return en(e);const o=i[e],r=s[1].split(",").map(on);return"function"==typeof o?o(r):r[o]}const sn=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return nn(n,e)};function on(t){return parseFloat(t.trim())}const rn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],an=(()=>new Set([...rn,"pathRotation"]))(),ln=t=>t===et||t===ft,cn=new Set(["x","y","z"]),un=rn.filter(t=>!cn.has(t));const hn=new Set(["bottom","right"]);function dn(t,e,n,i,s,o){const r=parseFloat(t);if(!isNaN(r))return r;const{min:a,max:l}=e()[n],c=l-a;return"border-box"===o?c:c-parseFloat(i)-parseFloat(s)}const pn={width:({width:t,paddingLeft:e="0",paddingRight:n="0",boxSizing:i},s)=>dn(t,s,"x",e,n,i),height:({height:t,paddingTop:e="0",paddingBottom:n="0",boxSizing:i},s)=>dn(t,s,"y",e,n,i),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{const{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{const{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:({transform:t})=>nn(t,"x"),y:({transform:t})=>nn(t,"y")};pn.translateX=pn.x,pn.translateY=pn.y;const fn=new Set;let mn=!1,yn=!1,gn=!1;function vn(){if(yn){const t=[],e=new Set,n=new Set;fn.forEach(i=>{i.needsMeasurement&&(t.push(i),e.add(i.element),hn.has(i.name)&&n.add(i.element))});const i=new Map;n.forEach(t=>{const e=function(t){const e=[];return un.forEach(n=>{const i=t.getValue(n);if(void 0!==i){const t=i.get(),s=n.startsWith("scale")?1:0;if(t===s)return;e.push([n,t]),i.set(s)}}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=i.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}yn=!1,mn=!1,fn.forEach(t=>t.complete(gn)),fn.clear()}function xn(){fn.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(yn=!0)})}function wn(){gn=!0,xn(),vn(),gn=!1}class Tn{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(fn.add(this),mn||(mn=!0,W.read(xn),W.resolveKeyframes(vn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=i?.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=function(t,e,n){if("string"==typeof t){if(r(t)||l(t))return parseFloat(t);if(!Mt.test(t)&&Mt.test(n))return Ge(e,n)}return t??void 0}(n.readValue(e,o),e,o);void 0!==i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}Xe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fn.delete(this)}cancel(){"scheduled"===this.state&&(fn.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const bn=t=>t.startsWith("--");function Sn(t,e,n){bn(e)?t.style.setProperty(e,n):t.style[e]=n}const An={};function Vn(t,e){const n=c(t);return()=>An[e]??n()}const Pn=Vn(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),En=Vn(()=>void 0!==window.ViewTimeline,"viewTimeline"),kn=Vn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),Mn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Dn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mn([0,.65,.55,1]),circOut:Mn([.55,0,1,.45]),backIn:Mn([.31,.01,.66,-.59]),backOut:Mn([.33,1.53,.69,.99])};function Cn(t,e){return t?"function"==typeof t?kn()?Ht(t,e):"ease-out":O(t)?Mn(t):Array.isArray(t)?t.map(t=>Cn(t,e)||Dn.easeOut):Dn[t]:void 0}function Rn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Cn(a,s);Array.isArray(h)&&(u.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function Bn(t){return"function"==typeof t&&"applyToOptions"in t}function Ln({type:t,...e}){return Bn(t)&&kn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class jn extends Re{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=r,this.options=e,t.invariant("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const c=Ln(e);this.animation=Rn(n,i,s,c,o),!1===c.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const t=Ee(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),Sn(n,i,t),this.animation.cancel()}l?.(),this.notifyFinished()},Ce(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return m(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+m(t)}get time(){return m(Number(this.animation.currentTime)||0)}set time(t){const e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=f(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Pn()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),n&&(this.animation.rangeEnd=n),u):i(this)}}const On={anticipate:E,backInOut:P,circInOut:D};function Fn(t){"string"==typeof t.ease&&t.ease in On&&(t.ease=On[t.ease])}class In extends jn{constructor(t){Fn(t),Me(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:s,element:o,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const a=new Le({...r,autoplay:!1}),l=Math.max(10,X.now()-this.startTime),c=i(0,10,l-10),u=a.sample(l).value,{name:h}=this.options;o&&h&&Sn(o,h,u),e.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const Nn=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Mt.test(t)&&"0"!==t||t.startsWith("url(")));function $n(t){t.duration=0,t.type="keyframes"}const Wn=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Un=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;const zn=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Kn=c(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yn(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r,keyframes:a}=t;if(!n||!Wn.has(n)&&!zn.has(n))return!1;const l=e?.owner?.current;if(!(l instanceof HTMLElement||l instanceof SVGElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Kn()&&(Wn.has(n)||zn.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&Un.test(t[e]))return!0;return!1}(a))&&("transform"!==n||!u)&&!c&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}class Gn extends Re{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=X.now();const{keyframes:e,name:n,motionValue:i,element:s}=t,o=t;o.autoplay??(o.autoplay=!0),o.delay??(o.delay=0),o.type??(o.type="keyframes"),o.repeat??(o.repeat=0),o.repeatDelay??(o.repeatDelay=0),o.repeatType??(o.repeatType="loop");const r=s?.KeyframeResolver||Tn;this.keyframeResolver=new r(e,(t,e,n)=>this.onKeyframesResolved(t,e,o,!n),n,i,s),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:r,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:h}=i;this.resolvedAt=X.now();let d=!0;(function(e,n,i,s){const o=e[0];if(null===o)return!1;if("display"===n||"visibility"===n)return!0;const r=e[e.length-1],a=Nn(o,n),l=Nn(r,n);return a&&l?function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(e)||("spring"===i||Bn(i))&&s:(a!==l&&t.warning(!1,`You are trying to animate ${n} from "${o}" to "${r}". "${a?r:o}" is not an animatable value.`,"value-not-animatable"),!1)})(e,r,a,l)||(d=!1,!o.instantAnimations&&c||h?.(Ee(e,i,n)),e[0]=e[e.length-1],$n(i),i.repeat=0);const p=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=i;i.startTime??(i.startTime=p),i.finalKeyframe=n,i.keyframes=e,i.onComplete=()=>{f?.(),this.notifyFinished()};let m;if(d&&!u&&Yn(i)){i.element=i.motionValue?.owner?.current;try{m=new In(i)}catch{m=new Le(i)}}else m=new Le(i);this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class Xn{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Hn(this.animations,"duration")}get iterationDuration(){return Hn(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Hn(t,e){let n=0;for(let i=0;i<t.length;i++){const s=t[i][e];null!==s&&s>n&&(n=s)}return n}class qn extends Xn{then(t,e){return this.finished.finally(t).then(()=>{})}}class _n extends jn{constructor(t){super(),this.animation=t,t.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},Ce(this,{})}}const Zn=new WeakMap,Jn=(t,e="")=>`${t}:${e}`;function Qn(t){let e=Zn.get(t);return e||(e=new Map,Zn.set(t,e)),e}function ti(t,e,n,i=0,s=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(o,r):1===s?o*i:a-o*i}const ei={current:void 0};class ni{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){var n;return"change"===t?this.onChangeSubscribe(e):((n=this.events)[t]||(n[t]=new p)).add(e)}onChangeSubscribe(t){const{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new p,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){W.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){const{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ei.current&&ei.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return y(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0;let n,i=!1;n=t(()=>{i=!0,this.events.animationComplete?.notify(),this.animation===n&&this.clearAnimation(),e()}),i||(this.animation=n),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ii(t,e){return new ni(t,e)}function si(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function oi(t,e){const n=t?.[e]??t?.default??t;return n!==t?si(n,t):n}const ri={type:"spring",stiffness:500,damping:25,restSpeed:10},ai={type:"keyframes",duration:.8},li={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ci=(t,{keyframes:e})=>e.length>2?ai:an.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ri:li,ui=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hi(t){for(const e in t)if(!ui.has(e))return!0;return!1}const di=(t,e,n,i={},s,r)=>a=>{const l=oi(i,t)||{},c=l.delay||i.delay||0;let{elapsed:u=0}=i;u-=f(c);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};hi(l)||Object.assign(h,ci(t,h)),h.duration&&(h.duration=f(h.duration)),h.repeatDelay&&(h.repeatDelay=f(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&($n(h),0===h.delay&&(d=!0)),(o.instantAnimations||o.skipAnimations||s?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,$n(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!r&&void 0!==e.get()){const t=Ee(h.keyframes,l);if(void 0!==t)return void W.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new Le(h):new Gn(h)};function pi(t,e,n,i){const s=1-t;return s*s*e+2*s*t*n+t*t*i}function fi(t,e,n,i,s,o,r){const a=2*(1-t)*(n-e)+2*t*(i-n),l=2*(1-t)*(o-s)+2*t*(r-o);return Math.atan2(l,a)*(180/Math.PI)}function mi(t,e,n,i,s,o){const r=n-t,a=i-e,l=Math.sqrt(r*r+a*a);if(l>0){const n=s*l;return{x:t+r*o+-a/l*n,y:e+a*o+r/l*n}}return{x:t,y:e}}const yi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gi(t){const e=yi.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function vi(e,n,i=1){t.invariant(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,o]=gi(e);if(!s)return;const a=window.getComputedStyle(n).getPropertyValue(s);if(a){const t=a.trim();return r(t)?parseFloat(t):t}return J(o)?vi(o,n,i+1):o}function xi(t){const e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function wi(t,e,n,i){if("function"==typeof e){const[s,o]=xi(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=xi(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function Ti(t,e,n){const i=t.getProps();return wi(i,e,void 0!==n?n:i.custom,t)}const bi=new Set(["width","height","top","left","right","bottom",...rn]),Si=t=>Array.isArray(t);function Ai(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ii(n))}function Vi(t){return Si(t)?t[t.length-1]||0:t}function Pi(t,e){const n=Ti(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const e in o){Ai(t,e,Vi(o[e]))}}const Ei=t=>Boolean(t&&t.getVelocity);function ki(t){return Boolean(Ei(t)&&t.add)}function Mi(t,e){const n=t.getValue("willChange");if(ki(n))return n.add(e);if(!n&&o.WillChange){const n=new o.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function Di(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ci="framerAppearId",Ri="data-"+Di(Ci);function Bi(t){return t.props[Ri]}const Li="undefined"!=typeof window;function ji({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Oi(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?si(o,l):l;const c=o?.reduceMotion,u=o?.skipAnimations;i&&(o=i);const h=[],d=s&&t.animationState&&t.animationState.getState()[s],p=o?.path;p&&p.animateVisualElement(t,a,o,n,h);for(const e in a){const i=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||d&&ji(d,e))continue;const r={delay:n,...oi(o||{},e)};u&&(r.skipAnimations=!0);const l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(s)&&s===l&&!r.velocity){W.update(()=>i.set(s));continue}let p=!1;if(Li&&window.MotionHandoffAnimation){const n=Bi(t);if(n){const t=window.MotionHandoffAnimation(n,e,W);null!==t&&(r.startTime=t,p=!0)}}Mi(t,e);const f=c??t.shouldReduceMotion;i.start(di(e,i,s,f&&bi.has(e)?{type:!1}:r,t,p));const m=i.animation;m&&h.push(m)}if(r){const e=()=>W.update(()=>{r&&Pi(t,r)});h.length?Promise.all(h).then(e):e()}return h}function Fi(t,e,n={}){const i=Ti(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Oi(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Fi(l,e,{...r,delay:n+("function"==typeof i?0:i)+ti(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,r,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}return Promise.all([o(),r(n.delay)])}function Ii(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>Fi(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=Fi(t,e,n);else{const s="function"==typeof e?Ti(t,e,n.custom):e;i=Promise.all(Oi(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const Ni=t=>e=>e.test(t),$i=[et,ft,pt,dt,yt,mt,{test:t=>"auto"===t,parse:t=>t}],Wi=t=>$i.find(Ni(t));function Ui(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||l(t))}const zi=new Set(["auto","none","0"]);class Ki extends Tn{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),J(i))){const s=vi(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!bi.has(n)||2!==t.length)return;const[i,s]=t;if("number"==typeof i&&"number"==typeof s)return;const o=Wi(i),r=Wi(s);if(tt(i)!==tt(s)&&pn[n])this.needsMeasurement=!0;else if(o!==r)if(ln(o)&&ln(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else pn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||Ui(t[e]))&&n.push(e);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!zi.has(e)&&Vt(e)&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]!==i&&(t[s]=Ge(n,i))}(t,n,e)}measure(){const{element:t,name:e}=this;return pn[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&this.motionValue?.jump(i,!1)}measureEndState(){const{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);const n=e.length-1,i=e[n];e[n]=this.measure(),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const Yi=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Gi=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius",...Yi,"width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function Xi(t,e){for(let n=0;n<t.length;n++)"number"==typeof t[n]&&Gi.has(e)&&(t[n]=t[n]+"px")}const Hi=c(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),qi=[];function _i(e){t.invariant("function"==typeof e.test&&"function"==typeof e.read,"Effects passed to animate.addEffect() need test() and read().","effect-missing-test"),Zi(e),qi.unshift(e)}function Zi(t){n(qi,t)}function Ji(t){return qi.find(e=>e.test(t))}function Qi(t,e,n={},i){const s=[],{velocity:o}=n,r=n.reduceMotion??i?.shouldReduceMotion;for(const a in e){if("transition"===a||"transitionEnd"===a)continue;const l=e[a];if(void 0===l)continue;const c=t(a),u=c.get();void 0===u||c.isAnimating()||Array.isArray(l)||l!==u||o?(c.start(di(a,c,l,r&&bi.has(a)?{type:!1}:n,i)),c.animation&&s.push(c.animation)):W.update(()=>c.set(l))}const{transitionEnd:a}=e;if(a){const e=()=>W.update(()=>{for(const e in a)t(e).set(a[e])});s.length?Promise.all(s).then(e):e()}return s}function ts(e,n,i,s,o){return Qi(s=>{let r=e.get(n,s);if(!r){let a;if(!o){const o=i[s];a=function(t){const e=Array.isArray(t)?t[0]:void 0;return null===e?void 0:e}(o)??e.read(n,s,o),t.invariant(void 0!==a,`"${s}" can't be read from the animated subject. Provide [from, to] keyframes.`,"effect-unreadable-value")}r=ii(a,{owner:o}),e(n,{[s]:r})}return r},i,s,o)}function es(t){return a(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function ns(t){return a(t)&&"ownerSVGElement"in t}const is=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function ss(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}function os(t){const{test:e,read:n,get:i,flush:s,state:o}=t;return Object.assign((e,n)=>{const i=ss(e),s=[];for(const e of i){const i=t(e,n);s.push(i)}return()=>{for(const t of s)t()}},{test:e,read:n,get:i,flush:s,state:o})}class rs{constructor(t=W.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{const{pending:t,numPending:e}=this;this.numPending=0;for(let n=0;n<e;n++)t[n]()}}set(t,e,n,i){if(this.values.get(t)?.onRemove(),i)for(const t of this.values.values())t.value===i&&(n=t.render);const s=()=>n&&this.schedule(n);void 0!==e.get()&&s();const o=e.on("change",s),r=()=>{o(),n&&!i&&this.cancel(n),this.values.delete(t)};return this.values.set(t,{value:e,render:i?void 0:n,onRemove:r}),r}get(t){return this.values.get(t)?.value}release(){const t=new Map;return this.values.forEach((e,n)=>{t.set(n,e.value),e.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){const{pending:e,numPending:n}=this;for(let i=0;i<n;i++)if(e[i]===t)return;n||this.step(this.flush),e[this.numPending++]=t}cancel(t){const{pending:e}=this;for(let n=0;n<this.numPending;n++)if(e[n]===t)return void(e[n]=e[--this.numPending])}}function as(t,{step:e,...n}={}){const i=new WeakMap;return Object.assign((n,s)=>{const o=i.get(n)??new rs(e);i.set(n,o);const r=[];for(const e in s){const i=s[e],a=t(n,o,e,i);r.push(a)}return()=>{for(const t of r)t()}},n,{get:(t,e)=>i.get(t)?.get(e),flush:t=>i.get(t)?.flush(),state:t=>i.get(t)})}const ls={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cs={};const us=new Set(["originX","originY","originZ"]),hs=(t,e)=>is(t.get(e)?.get(),Ue[e]),ds=(t,e,n,i)=>{let s,o;if(an.has(n)){if("pathRotation"!==n){const t=e.transformKeys??(e.transformKeys=[]);(e.transformValues??(e.transformValues={}))[n]=i,t.includes(n)||(t.push(n),t.sort((t,e)=>rn.indexOf(t)-rn.indexOf(e)))}e.get("transform")||(es(t)||e.get("transformBox")||ds(t,e,"transformBox",new ni("fill-box")),e.set("transform",new ni("none"),()=>{t.style.transform=function(t){let e="";const{transformKeys:n=[],transformValues:i={}}=t;for(let t=0;t<n.length;t++){const s=n[t],o=i[s].get();void 0!==o&&(("number"==typeof o?o:parseFloat(o))!==(s.startsWith("scale")?1:0)&&(e+=(e&&" ")+(cs[s]||(cs[s]=(ls[s]||s)+"("))+is(o,We[s])+")"))}const s=t.get("pathRotation")?.get();return s&&(e+=(e&&" ")+"rotate("+is(s,We.pathRotation)+")"),e||"none"}(e)})),o=e.get("transform")}else us.has(n)?(e.get("transformOrigin")||e.set("transformOrigin",new ni(""),()=>{const n=hs(e,"originX")??"50%",i=hs(e,"originY")??"50%",s=hs(e,"originZ")??0;t.style.transformOrigin=`${n} ${i} ${s}`}),o=e.get("transformOrigin")):s=bn(n)?()=>{t.style.setProperty(n,i.get())}:()=>{t.style[n]=is(i.get(),Ue[n])};return e.set(n,i,s,o)},ps=(t,e)=>{if(an.has(e))return sn(t,e);const n=getComputedStyle(t),i=bn(e)?n.getPropertyValue(e):n[e];return"string"==typeof i&&i.trim()||0},fs=as(ds,{test:t=>es(t)||ns(t),read:ps}),ms=os(fs),ys={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gs=rn.length;function vs(t,e,n){let i="",s=!0;for(let o=0;o<gs;o++){const r=rn[o],a=t[r];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===(r.startsWith("scale")?1:0);else{const t=parseFloat(a);l=r.startsWith("scale")?1===t:0===t}if(!l||n){const t=is(a,Ue[r]);if(!l){s=!1;i+=`${ys[r]||r}(${t}) `}n&&(e[r]=t)}}const o=t.pathRotation;return o&&(s=!1,i+=`rotate(${is(o,Ue.pathRotation)}) `),i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function xs(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(an.has(t))r=!0;else if(_(t))s[t]=n;else{const e=is(n,Ue[t]);t.startsWith("origin")?(a=!0,o[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=vs(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const ws={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ts={offset:"strokeDashoffset",array:"strokeDasharray"};function bs(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ws:Ts;t[o.offset]=""+-i,t[o.array]=`${e} ${n}`}const Ss=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function As(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(xs(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;for(const t of Ss)void 0!==h[t]&&(d[t]=h[t],delete h[t]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==s&&bs(h,s,o,r,!1)}const Vs=(t,e,n,i,s=n)=>{const o=function(t,e){if(!(e in t))return!1;const n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&"function"==typeof n.set}(t,s);o||!s.startsWith("data")&&!s.startsWith("aria")||(s=Di(s));const r=Ue[n]||Ue[s],a=o?()=>{t[s]=is(i.get(),Ue[n])}:()=>{const e=is(i.get(),r);null==e?t.removeAttribute(s):t.setAttribute(s,String(e))};return e.set(n,i,a)},Ps=os(as(Vs));const Es=(t,e,n,i)=>{if(n.startsWith("path"))return function(t,e,n,i){return W.render(()=>t.setAttribute("pathLength","1")),"pathOffset"===n?e.set(n,i,()=>{const e=i.get();t.setAttribute("stroke-dashoffset",""+-e)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new ni("1 1"),()=>{const n=e.get("pathLength")?.get()??1,i=e.get("pathSpacing")?.get();t.setAttribute("stroke-dasharray",`${n} ${i??1-Number(n)}`)}),e.set(n,i,void 0,e.get("stroke-dasharray")))}(t,e,n,i);if(n.startsWith("attr"))return Vs(t,e,n,i,Cs(n));return(n in t.style?ds:Vs)(t,e,n,i)},ks=(t,e)=>an.has(e)?Ue[e]?.default||0:Ss.includes(e)?ps(t,e):(e=Cs(e),t.getAttribute(Di(e))??t.getAttribute(e)??void 0),Ms=as(Es,{test:ns,read:ks}),Ds=os(Ms);function Cs(t){return t.replace(/^attr([A-Z])/,(t,e)=>e.toLowerCase())}function Rs({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Bs(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ls(t){return void 0===t||1===t}function js({scale:t,scaleX:e,scaleY:n}){return!Ls(t)||!Ls(e)||!Ls(n)}function Os(t){return js(t)||Fs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Fs(t){return Is(t.x)||Is(t.y)}function Is(t){return t&&"0%"!==t}function Ns(t,e,n){return n+e*(t-n)}function $s(t,e,n,i,s){return void 0!==s&&(t=Ns(t,s,i)),Ns(t,n,i)+e}function Ws(t,e=0,n=1,i,s){t.min=$s(t.min,e,n,i,s),t.max=$s(t.max,e,n,i,s)}function Us(t,{x:e,y:n}){Ws(t.x,e.translate,e.scale,e.originPoint),Ws(t.y,n.translate,n.scale,n.originPoint)}const zs=.999999999999,Ks=1.0000000000001;function Ys(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Gs(t.x,-o.scroll.offset.x),Gs(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Us(t,r)),i&&Os(o.latestValues)&&qs(t,o.latestValues,o.layout?.layoutBox))}e.x<Ks&&e.x>zs&&(e.x=1),e.y<Ks&&e.y>zs&&(e.y=1)}function Gs(t,e){t.min+=e,t.max+=e}function Xs(t,e,n,i,s=.5){Ws(t,e,n,Bt(t.min,t.max,s),i)}function Hs(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function qs(t,e,n){const i=n??t;Xs(t.x,Hs(e.x,i.x),e.scaleX,e.scale,e.originX),Xs(t.y,Hs(e.y,i.y),e.scaleY,e.scale,e.originY)}function _s(t,e){return Rs(Bs(t.getBoundingClientRect(),e))}const Zs={},Js=t=>ns(t)?Ms:fs;class Qs{constructor(t,e){this.effect=t,this.current=e,this.KeyframeResolver=Ki}getValue(t){return this.effect.get(this.current,t)}readValue(t,e){return this.effect.read(this.current,t,e)}render(){this.effect.flush(this.current)}measureViewportBox(){return _s(this.current)}getProps(){return Zs}}function to(t,e,n,i){if(i)return Qi(t=>i.getValue(t,null),e,n,i);const s=Js(t);return ts(s,t,e,n,new Qs(s,t))}function eo(t,e){const n=Js(t).state(t);if(!n)return;const{transformKeys:i}=n;n.release().forEach((t,n)=>{"transformBox"===n||"transform"===n&&i?.length||e.addValue(n,t)})}const no=as((t,e,n,i)=>e.set(n,i,()=>{t[n]=i.get()}),{test:t=>a(t),read:(t,e)=>{const n=t[e];return"string"==typeof n||"number"==typeof n?n:void 0}}),{schedule:io,cancel:so}=$(queueMicrotask,!1),oo={x:!1,y:!1};function ro(){return oo.x||oo.y}function ao(t,e){const n=ss(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}const lo=(t,e)=>!!e&&(t===e||lo(t,e.parentElement)),co=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,uo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ho(t){return uo.has(t.tagName)||!0===t.isContentEditable}const po=new Set(["INPUT","SELECT","TEXTAREA"]);const fo=new WeakSet;function mo(t){return e=>{"Enter"===e.key&&t(e)}}function yo(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function go(t){return co(t)&&!ro()}const vo=new WeakSet;function xo(t,e){const n=window.getComputedStyle(t);return bn(e)?n.getPropertyValue(e):n[e]}const wo=new WeakMap;let To;const bo=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:ns(i)&&"getBBox"in i?i.getBBox()[e]:i[n],So=bo("inline","width","offsetWidth"),Ao=bo("block","height","offsetHeight");function Vo({target:t,borderBoxSize:e}){wo.get(t)?.forEach(n=>{n(t,{get width(){return So(t,e)},get height(){return Ao(t,e)}})})}function Po(t){t.forEach(Vo)}function Eo(t,e){To||"undefined"!=typeof ResizeObserver&&(To=new ResizeObserver(Po));const n=ss(t);return n.forEach(t=>{let n=wo.get(t);n||(n=new Set,wo.set(t,n)),n.add(e),To?.observe(t)}),()=>{n.forEach(t=>{const n=wo.get(t);n?.delete(e),n?.size||To?.unobserve(t)})}}const ko=new Set;let Mo;function Do(t){return ko.add(t),Mo||(Mo=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ko.forEach(e=>e(t))},window.addEventListener("resize",Mo)),()=>{ko.delete(t),ko.size||"function"!=typeof Mo||(window.removeEventListener("resize",Mo),Mo=void 0)}}function Co(t,e){return"function"==typeof t?Do(t):Eo(t,e)}function Ro(t,e){let n;const i=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return W.preUpdate(i,!0),()=>U(i)}const Bo={value:null,addProjectionMetrics:null};function Lo(t){return ns(t)&&"svg"===t.tagName}function jo(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}function Oo(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=xe(t[1+n],t[2+n],t[3+n]);return e?s(i):s}const Fo=new Set,Io=({timestamp:t})=>{Fo.forEach(e=>e.tick(t))};class No extends Re{constructor(t){super(),this.state="idle",this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,Me(t),this.factory=t.type||Ae,this.generator=this.factory(t);const{driver:e}=t;e&&(this.driver=e(t=>this.tick(t))),this.startTime=this.now(),this.state="running",this.driver?this.driver.start():(Fo.size||W.update(Io,!0),Fo.add(this))}setTarget(t,e){this.nextTarget=t,this.nextVelocity=e,this.hasNextTarget=!0}retarget(t,e){const{options:n,generator:i}=this;n.keyframes=t,n.velocity=e,this.startTime=this.now(),this.currentTime=0,i.retarget?i.retarget(t,e):this.generator=this.factory(n)}tick(t){const{options:e,hasNextTarget:n}=this,{delay:i=0,onUpdate:s,onPlay:o}=e,r=Math.round(t-this.startTime)-i,a=this.currentTime=Math.max(0,r),l=this.generator.next(a),c=r<0?e.keyframes[0]:l.value;if(n){this.hasNextTarget=!1;const{keyframes:t}=e;t[0]=c,t[1]=this.nextTarget,this.retarget(t,this.nextVelocity??this.getGeneratorVelocity())}!n&&this.started||(this.started=!0,o?.()),"running"===this.state&&(s?.(c),l.done&&r>=0&&!n&&!this.hasNextTarget&&"running"===this.state&&(this.notifyFinished(),this.teardown(),this.state="finished",e.onComplete?.()))}getGeneratorVelocity(){return Ve(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():X.now()}teardown(){this.state="idle",this.driver?this.driver.stop():(Fo.delete(this),Fo.size||U(Io))}}function $o(t,e){const n=ii(Ei(t)?t.get():t);return Wo(n,t,e),n}function Wo(t,e,n={}){const i=t.get();let s,o=null;const r="string"==typeof i?i.replace(/[\d.-]/g,""):void 0,a=t=>s(r?t+r:t),l=()=>t.events.animationStart?.notify(),c=()=>{o&&(o.stop(),o=null),t.animation=void 0};if(t.attach((e,i)=>{s=i;const r=zo(e);if("running"===o?.state)return void o.setTarget(r,n.velocity);const u=zo(t.get()),h=o?o.getGeneratorVelocity():t.getVelocity();if(c(),u===r)return;const d={keyframes:[u,r],velocity:h,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:a},p=o=new No({...d,onPlay:l});t.animation=p,p.then(()=>{o===p&&(o=null,t.animation=void 0,t.events.animationComplete?.notify())})},c),Ei(e)){let i=!0===n.skipInitialAnimation;const s=e.on("change",e=>{i?(i=!1,t.jump(Uo(e,r),!1)):t.set(Uo(e,r))}),o=t.on("destroy",s);return()=>{s(),o()}}return c}function Uo(t,e){return e?t+e:t}function zo(t){return"number"==typeof t?t:parseFloat(t)}function Ko(t){const e=[];ei.current=e;const n=t();ei.current=void 0;const i=ii(n);return function(t,e,n){const i=()=>e.set(n()),s=()=>W.preRender(i,!1,!0),o=t.map(t=>t.on("change",s));e.on("destroy",()=>{o.forEach(t=>t()),U(i)})}(e,i,t),i}const Yo=[...$i,xt,Mt];let Go=0;const Xo=()=>"motion-view-"+Go++;function Ho(t,e,n){e&&(t.style?.setProperty("view-transition-class",e),n.push(t))}function qo(t,e,n,i,s){if(n&&(t.style?.setProperty("view-transition-group",n),i.push(t),"none"!==n&&s)){const n=getComputedStyle(t);"visible"===n.overflowX&&"visible"===n.overflowY||s.add(e)}}function _o(t,e,n,i,s,o=[],r,a=[],l){const c=ss(t);if(i)return c.map((t,c)=>{const u=e.get(t);if(u)return u;const h=i[c]??Xo();return t.style?.setProperty("view-transition-name",h),n.push(t),e.set(t,h),Ho(t,s,o),qo(t,h,r,a,l),h});const u=c.map(t=>e.has(t)?void 0:getComputedStyle(t).getPropertyValue("view-transition-name"));return c.map((t,i)=>{const c=e.get(t);if(c)return c;const h=u[i];let d;return h&&"none"!==h&&"auto"!==h&&"match-element"!==h&&!(t=>t.startsWith("motion-view-"))(h)?d=h:(d=Xo(),t.style?.setProperty("view-transition-name",d),n.push(t)),e.set(t,d),Ho(t,s,o),qo(t,d,r,a,l),d})}function Zo(t){return"layout"===t?"group":"enter"===t||"new"===t?"new":"old"}let Jo={},Qo=null;const tr=(t,e)=>{Jo[t]=e},er=()=>{Qo||(Qo=document.createElement("style"),Qo.id="motion-view");let t="";for(const e in Jo){const n=Jo[e];t+=`${e} {\n`;for(const[e,i]of Object.entries(n))t+=` ${e}: ${i};\n`;t+="}\n"}Qo.textContent=t,document.head.appendChild(Qo),Jo={}},nr=()=>{Qo&&Qo.parentElement&&Qo.parentElement.removeChild(Qo)};function ir(t){const e=t.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function sr(){return document.getAnimations().filter(t=>{const{effect:e}=t;return!!e&&e.target===document.documentElement&&e.pseudoElement?.startsWith("::view-transition")})}const or=["layout","enter","exit","new","old"],rr=t=>t.split(" ").every(t=>0===parseFloat(t)),ar={group:["layout"],new:["new","enter"],old:["old","exit"]},lr={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}};function cr(t){const{update:e,targets:n,resolveDefs:i,cropOverride:s,pairs:o,classNames:r,flatGroups:a,options:l}=t;if(!document.startViewTransition)return(async()=>(await e(),new Xn([])))();const c=new Map,u=[],h=[],d=[],p=new Set,m=new Map,y=new Set,g=new Map,x=new Map,w=new Map,T=new Map,b=t=>{n.forEach((e,n)=>{const l=r.get(n),f="root"!==n&&i.has(n)?a.has(n)?"none":"contain":void 0;let y;if("root"!==n&&i.has(n))if(o.has(n))if("old"===t)T.set(n,ss(n)),y=_o(n,c,u,void 0,l,h,f,d,p),w.set(n,y);else{for(const t of T.get(n)??[])t.style?.removeProperty("view-transition-name"),c.delete(t);y=_o(o.get(n),c,u,w.get(n),l,h,f,d,p)}else y=_o(n,c,u,void 0,l,h,f,d,p);else y=[n];const v=s.get(n);y.forEach((n,i)=>{const s=m.get(n);m.set(n,s&&s!==e?{...s,...e}:e),void 0!==v&&g.set(n,v);const o=x.get(n)??{};o[t]=[i,y.length],x.set(n,o)})})},S=(t,e)=>{const n=x.get(t);return("old"===e?n?.old:"new"===e?n?.new:n?.new??n?.old)??[-1,1]},A=(t,e,n,i,s)=>{const o=ur(oi(l,n),oi(function(t,e){for(const n of ar[e]??[]){const e=t?.[n]?.options;if(e)return e}}(t,e)??{},n));return"function"==typeof o.delay&&(o.delay=o.delay(i,s)),o},V=t=>{const[e,n]=S(t,"group"),i=A(m.get(t),"group","layout",-1===e?0:e,n);i.duration&&(i.duration=f(i.duration));const{delay:s=0,duration:o,ease:r}=Ln(i);return{delay:f(s),duration:o,ease:r}},P=new Map,E=t=>c.forEach((e,n)=>{const i=n,s=i.getBoundingClientRect?.();if(s&&s.height){const n=getComputedStyle(i),o={};for(const t of Yi)o[t]=n[t];const r=P.get(e)??{};r[t]={width:s.width,height:s.height,radii:o},P.set(e,r)}}),k=t=>{const e=P.get(t);return!!(e?.old&&e?.new&&e.old.height&&e.new.height)&&Math.abs(e.old.width/e.old.height-e.new.width/e.new.height)>.2},M=()=>{(function(t,e){return e.has(t)&&Object.keys(e.get(t)).length>0})("root",n)||tr(":root",{"view-transition-name":"none"}),tr("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),y.forEach(t=>{tr(`::view-transition-group(${t})`,{overflow:"clip"}),tr(`::view-transition-old(${t}), ::view-transition-new(${t})`,{width:"100%",height:"100%","object-fit":"cover"})}),p.forEach(t=>{tr(`::view-transition-group-children(${t})`,{overflow:"clip"})}),er()},D=()=>{!function(t,e=[],n=[]){for(const e of t)e.style?.removeProperty("view-transition-name");for(const t of e)t.style?.removeProperty("view-transition-class");for(const t of n)t.style?.removeProperty("view-transition-group")}(u,h,d),nr()},C=async()=>{await e(),b("new"),E("new"),(()=>{y.clear();for(const t of x.keys())"root"!==t&&(g.get(t)??k(t))&&y.add(t)})(),M()};let R;try{b("old"),E("old"),M(),R=document.startViewTransition(C)}catch(t){return D(),Promise.reject(t)}return R.finished.finally(D),new Promise((t,e)=>{R.ready.then(()=>{const e=sr(),n=[],i=new Set,s=new Set;m.forEach((t,e)=>{const o=x.get(e),r=!!o?.new&&!o?.old,a=!!o?.old&&!o?.new;for(const o of or){if(!t[o])continue;if("enter"===o&&!r)continue;if("exit"===o&&!a)continue;const c=Zo(o),[u,h]=S(e,c);if(-1===u)continue;const{keyframes:d,options:p}=t[o];for(let[m,y]of Object.entries(d)){if(null==y)continue;if("x"===m||"y"===m){v(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if("new"===o&&r&&null!=t.enter?.keyframes[m])continue;if("old"===o&&a&&null!=t.exit?.keyframes[m])continue;const d=ur(oi(l,m),oi(p,m));if(!Array.isArray(y)){const e="enter"===o?t.exit?.keyframes[m]:void 0,n="opacity"===m||("new"===c?r:a),i=null!=e?Array.isArray(e)?e[e.length-1]:e:n?lr[c]?.[m]:void 0;void 0!==i&&(y=[i,y])}"function"==typeof d.delay&&(d.delay=d.delay(u,h)),d.duration&&(d.duration=f(d.duration)),d.delay&&(d.delay=f(d.delay)),n.push(new jn({...d,element:document.documentElement,name:m,pseudoElement:`::view-transition-${c}(${e})`,keyframes:y})),i.add(`${e}:${c}`),"opacity"===m&&s.add(`${e}:${c}`)}}});for(const t of e){if("finished"===t.playState)continue;const{effect:e}=t;if(!(e&&e instanceof KeyframeEffect))continue;const{pseudoElement:o}=e;if(!o)continue;const r=ir(o);if(!r)continue;const a=m.get(r.layer);if(i.has(`${r.layer}:${r.type}`)){s.has(`${r.layer}:new`)&&s.has(`${r.layer}:old`)&&e.getKeyframes().some(t=>t.mixBlendMode)?n.push(new _n(t)):t.cancel();continue}const l="old"===r.type?"new":"new"===r.type?"old":void 0;if(l&&i.has(`${r.layer}:${l}`)&&!s.has(`${r.layer}:${l}`)){t.cancel();continue}const c=x.get(r.layer),u=!("old"!==r.type&&"new"!==r.type||!c?.old||!c?.new);let h;if(r.type.startsWith("group")){const{delay:t,duration:e,ease:n}=V(r.layer);h={delay:t,duration:e,easing:Cn(n,e)}}else{const t=u?"group":r.type,[e,n]=S(r.layer,t);let i=A(a,t,"group"===t?"layout":"",-1===e?0:e,n);const s=i.visualDuration;i.duration&&(i.duration=f(i.duration)),i=Ln(i),h={delay:f(i.delay??0),duration:u&&void 0!==s?f(s):i.duration,easing:u?"linear":Cn(i.ease,i.duration)}}e.updateTiming(h),n.push(new _n(t))}P.forEach((t,e)=>{if(!y.has(e))return;const{delay:i,duration:s,ease:o}=V(e);for(const r of Yi){const a=t.old?.radii[r]||t.new?.radii[r]||"0px",l=t.new?.radii[r]||t.old?.radii[r]||"0px";rr(a)&&rr(l)||n.push(new jn({element:document.documentElement,name:r,pseudoElement:`::view-transition-group(${e})`,keyframes:[a,l],delay:i,duration:s,ease:o}))}}),t(new Xn(n))}).catch(()=>R.updateCallbackDone.then(()=>t(new Xn([])),e))})}function ur(t,e){const n={...t,...e};return void 0!==e.duration&&(void 0===e.visualDuration&&delete n.visualDuration,void 0===e.type&&delete n.type),n}let hr=[],dr=null;function pr(){dr=null;const[t]=hr;var e;t&&(n(hr,e=t),dr=e,cr(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(pr))}function fr(){for(let t=hr.length-1;t>=0;t--){const e=hr[t],{interrupt:n}=e.options;if("immediate"===n){const n=hr.slice(0,t+1).map(t=>t.update),i=hr.slice(t+1);e.update=()=>{n.forEach(t=>t())},hr=[e,...i];break}}dr&&"immediate"!==hr[0]?.options.interrupt||pr()}class mr{constructor(t,e={}){var n;this.currentSubject="root",this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=u,this.notifyReject=u,this.readyPromise=new Promise((t,e)=>{this.notifyReady=t,this.notifyReject=e}),this.update=t,this.options={interrupt:"wait",...e},this.readyPromise.catch(u),n=this,hr.push(n),io.render(fr)}add(t,e){return this.currentSubject=t,this.resolveDefs.add(t),void 0!==e&&this.pairs.set(t,e),this.targets.has(t)||this.targets.set(t,{}),this}crop(t=!0){return this.cropOverride.set(this.currentSubject,t),this}group(t=!0){return t?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(t){return this.classNames.set(this.currentSubject,t),this}layout(t={}){return this.updateTarget("layout",{},t),this}enter(t,e){return this.updateTarget("enter",t,e),this}exit(t,e){return this.updateTarget("exit",t,e),this}new(t,e){return this.updateTarget("new",t,e),this}old(t,e){return this.updateTarget("old",t,e),this}updateTarget(t,e,n={}){const{currentSubject:i,targets:s}=this;s.has(i)||s.set(i,{});s.get(i)[t]={keyframes:e,options:n}}then(t,e){return this.readyPromise.then(t,e)}}const yr=()=>({translate:0,scale:1,origin:0,originPoint:0}),gr=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),vr=()=>({min:0,max:0}),xr=()=>({x:{min:0,max:0},y:{min:0,max:0}}),wr=new WeakMap;function Tr(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function br(t){return"string"==typeof t||Array.isArray(t)}const Sr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ar=["initial",...Sr];function Vr(t){if(Tr(t.animate))return!0;for(let e=0;e<Ar.length;e++)if(br(t[Ar[e]]))return!0;return!1}function Pr(t){return Boolean(Vr(t)||t.variants)}function Er(t,e,n){for(const i in e){const s=e[i],o=n[i];if(Ei(s))t.addValue(i,s);else if(Ei(o))t.addValue(i,ii(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,ii(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}const kr={current:null},Mr={current:!1},Dr="undefined"!=typeof window;function Cr(){if(Mr.current=!0,Dr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>kr.current=t.matches;t.addEventListener("change",e),e()}else kr.current=!1}const Rr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Br={};class Lr{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:r},a={}){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=Tn,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 t=X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,W.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Vr(e),this.isVariantNode=Pr(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&Ei(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,wr.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Mr.current||Cr(),this.shouldReduceMotion=kr.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(),U(this.notifyUpdate),U(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&Wn.has(t)&&this.current instanceof HTMLElement){const{factory:n,keyframes:i,times:s,ease:o,duration:r}=e.accelerate,a=new jn({element:this.current,name:t,keyframes:i,times:s,ease:o,duration:f(r)}),l=n(a);return void this.valueSubscriptions.set(t,()=>{l(),a.cancel()})}const n=an.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Br){const e=Br[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Rr.length;e++){const n=Rr[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Er(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ii(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(r(n)||l(n))?n=parseFloat(n):"number"!=typeof n&&!Mt.test(n)&&Mt.test(e)&&(n=Ge(t,e)),this.setBaseTarget(t,Ei(n)?n.get():n)),Ei(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=wi(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Ei(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new p),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){io.render(this.render)}}class jr extends Lr{constructor(){super(...arguments),this.KeyframeResolver=Ki}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ei(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Or(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}function Fr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ir={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ft.test(t))return t;t=parseFloat(t)}return`${Fr(t,e.target.x)}% ${Fr(t,e.target.y)}%`}},Nr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Mt.parse(t);if(s.length>5)return i;const o=Mt.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const c=Bt(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=c),"number"==typeof s[3+r]&&(s[3+r]/=c),o(s)}},$r={borderRadius:{...Ir,applyTo:[...Yi]},borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:Ir,borderBottomRightRadius:Ir,boxShadow:Nr};function Wr(t,{layout:e,layoutId:n}){return an.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!$r[t]||"opacity"===t)}function Ur(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const e in i)(Ei(i[e])||s&&Ei(s[e])||Wr(e,t)||void 0!==n?.getValue(e)?.liveStyle)&&(o[e]=i[e]);return o}class zr extends jr{constructor(){super(...arguments),this.type="html",this.renderInstance=Or}mount(e){t.invariant(Boolean(e.style),"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(t,e){if(an.has(e))return this.projection?.isProjecting?en(e):sn(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(_(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return _s(t,e)}build(t,e,n){xs(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ur(t,e,n)}}const Kr=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"]),Yr=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Gr(t,e,n,i){Or(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(Kr.has(n)?n:Di(n),e.attrs[n])}function Xr(t,e,n){const i=Ur(t,e,n);for(const n in t)if(Ei(t[n])||Ei(e[n])){i[-1!==rn.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const Hr=Ar.length;function qr(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&qr(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Hr;n++){const i=Ar[n],s=t.props[i];(br(s)||!1===s)&&(e[i]=s)}return e}function _r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Zr=[...Sr].reverse(),Jr=Sr.length;function Qr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!_r(e,t)}function ta(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ea(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}function na(t,e){t.min=e.min,t.max=e.max}function ia(t,e){na(t.x,e.x),na(t.y,e.y)}function sa(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function oa(t){return t.max-t.min}function ra(t,e,n){return Math.abs(t-e)<=n}function aa(t,e,n,i=.5){t.origin=i,t.originPoint=Bt(e.min,e.max,t.origin),t.scale=oa(n)/oa(e),t.translate=Bt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function la(t,e,n,i){aa(t.x,e.x,n.x,i?i.originX:void 0),aa(t.y,e.y,n.y,i?i.originY:void 0)}function ca(t,e,n,i=0){const s=i?Bt(n.min,n.max,i):n.min;t.min=s+e.min,t.max=t.min+oa(e)}function ua(t,e,n,i){ca(t.x,e.x,n.x,i?.x),ca(t.y,e.y,n.y,i?.y)}function ha(t,e,n,i=0){const s=i?Bt(n.min,n.max,i):n.min;t.min=e.min-s,t.max=t.min+oa(e)}function da(t,e,n,i){ha(t.x,e.x,n.x,i?.x),ha(t.y,e.y,n.y,i?.y)}function pa(t,e,n,i,s){return t=Ns(t-=e,1/n,i),void 0!==s&&(t=Ns(t,1/s,i)),t}function fa(t,e=0,n=1,i=.5,s,o=t,r=t){if(pt.test(e)){e=parseFloat(e);e=Bt(r.min,r.max,e/100)-r.min}if("number"!=typeof e)return;let a=Bt(o.min,o.max,i);t===o&&(a-=e),t.min=pa(t.min,e,n,a,s),t.max=pa(t.max,e,n,a,s)}function ma(t,e,[n,i,s],o,r){fa(t,e[n],e[i],e[s],e.scale,o,r)}const ya=["x","scaleX","originX"],ga=["y","scaleY","originY"];function va(t,e,n,i){ma(t.x,e,ya,n?n.x:void 0,i?i.x:void 0),ma(t.y,e,ga,n?n.y:void 0,i?i.y:void 0)}function xa(t){return 0===t.translate&&1===t.scale}function wa(t){return xa(t.x)&&xa(t.y)}function Ta(t,e){return t.min===e.min&&t.max===e.max}function ba(t,e){return Ta(t.x,e.x)&&Ta(t.y,e.y)}function Sa(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Aa(t,e){return Sa(t.x,e.x)&&Sa(t.y,e.y)}function Va(t){return oa(t.x)/oa(t.y)}function Pa(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Ea(t){return[t("x"),t("y")]}function ka(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,pathRotation:s,rotateX:o,rotateY:r,skewX:a,skewY:l}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotate(${s}deg) `),o&&(i+=`rotateX(${o}deg) `),r&&(i+=`rotateY(${r}deg) `),a&&(i+=`skewX(${a}deg) `),l&&(i+=`skewY(${l}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}const Ma=Yi.length,Da=t=>"string"==typeof t?parseFloat(t):t,Ca=t=>"number"==typeof t||ft.test(t);function Ra(t,e,n,i,s,o){s?(t.opacity=Bt(0,n.opacity??1,La(i)),t.opacityExit=Bt(e.opacity??1,0,ja(i))):o&&(t.opacity=Bt(e.opacity??1,n.opacity??1,i));for(let s=0;s<Ma;s++){const o=Yi[s];let r=Ba(e,o),a=Ba(n,o);if(void 0===r&&void 0===a)continue;r||(r=0),a||(a=0);0===r||0===a||Ca(r)===Ca(a)?(t[o]=Math.max(Bt(Da(r),Da(a),i),0),(pt.test(a)||pt.test(r))&&(t[o]+="%")):t[o]=a}(e.rotate||n.rotate)&&(t.rotate=Bt(e.rotate||0,n.rotate||0,i))}function Ba(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const La=Oa(0,.5,M),ja=Oa(.5,.95,u);function Oa(t,e,n){return i=>i<t?0:i>e?1:n(d(t,e,i))}function Fa(t,e,n){const i=Ei(t)?t:ii(t);return i.start(di("",i,e,n)),i.animation}function Ia(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}const Na=(t,e)=>t.depth-e.depth;class $a{constructor(){this.children=[],this.isDirty=!1}add(t){e(this.children,t),this.isDirty=!0}remove(t){n(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Na),this.isDirty=!1,this.children.forEach(t)}}function Wa(t,e){const n=X.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(U(i),t(o-e))};return W.setup(i,!0),()=>U(i)}function Ua(t,e){return Wa(t,f(e))}function za(t){return Ei(t)?t.get():t}class Ka{constructor(){this.members=[]}add(t){e(this.members,t);for(let e=this.members.length-1;e>=0;e--){const i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;s&&!1!==s.isConnected||i.snapshot||(n(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(n(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent&&!1!==t.instance?.isConnected)return this.promote(t),!0}return!1}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:s}=t.options;void 0!==i&&i===s||(t.resumeFrom=n,e&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ga={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Xa=["","X","Y","Z"];let Ha=0;function qa(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function _a(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",W,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&_a(i)}function Za({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},n=e?.()){this.id=Ha++,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,Bo.value&&(Ga.nodes=Ga.calculatedTargetDeltas=Ga.calculatedProjections=0),this.nodes.forEach(tl),this.nodes.forEach(cl),this.nodes.forEach(ul),this.nodes.forEach(el),Bo.addProjectionMetrics&&Bo.addProjectionMetrics(Ga)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new $a)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new p),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=ns(e)&&!Lo(e),this.instance=e;const{layoutId:n,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;W.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=Wa(s,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(ll)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||yl,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Aa(this.targetLayout,i),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...oi(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c,e.path)}else e||ll(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),U(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(hl),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_a(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,"string"!=typeof e.latestValues.x&&"string"!=typeof e.latestValues.y||(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked()){const t=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(sl),void this.nodes.forEach(il)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ol);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rl),this.nodes.forEach(al),this.nodes.forEach(Ja),this.nodes.forEach(Qa)):this.nodes.forEach(ol),this.clearAllSnapshots();const t=X.now();z.delta=i(0,1e3/60,t-z.timestamp),z.timestamp=t,z.isProcessing=!0,K.update.process(z),K.preRender.process(z),K.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,io.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nl),this.sharedNodes.forEach(dl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||oa(this.snapshot.measuredBox.x)||oa(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!wa(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||Os(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),xl((i=n).x),xl(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tl))){const{scroll:t}=this.root;t&&(Gs(e.x,t.offset.x),Gs(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(ia(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&ia(e,t),Gs(e.x,s.offset.x),Gs(e.y,s.offset.y))}return e}applyTransform(t,e=!1,n){const i=n||{x:{min:0,max:0},y:{min:0,max:0}};ia(i,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Gs(i.x,-n.scroll.offset.x),Gs(i.y,-n.scroll.offset.y)),Os(n.latestValues)&&qs(i,n.latestValues,n.layout?.layoutBox)}return Os(this.latestValues)&&qs(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};ia(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!Os(n.latestValues))continue;let i;n.instance&&(js(n.latestValues)&&n.updateSnapshot(),i=xr(),ia(i,n.measurePageBox())),va(e,n.latestValues,n.snapshot?.layoutBox,i)}return Os(this.latestValues)&&va(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:s}=this.options;if(!this.layout||!i&&!s)return;this.resolvedRelativeTargetAt=z.timestamp;const o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ua(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):ia(this.target,this.layout.layoutBox),Us(this.target,this.targetDelta)):ia(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),Bo.value&&Ga.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!js(this.parent.latestValues)&&!Fs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},da(this.relativeTargetOrigin,e,n,this.options.layoutAnchor||void 0),ia(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===z.timestamp&&(n=!1),n)return;const{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!s)return;ia(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,r=this.treeScale.y;Ys(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(sa(this.prevProjectionDelta.x,this.projectionDelta.x),sa(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),la(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&Pa(this.projectionDelta.x,this.prevProjectionDelta.x)&&Pa(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Bo.value&&Ga.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1,n){const i=this.snapshot,s=i?i.latestValues:{},o={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,h=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(ml));let d;this.animationProgress=0;const p=n?.interpolateProjection(t);this.mixTargetDelta=e=>{const n=e/1e3,i=p?.(n);var c,f,m,y;i?(r.x.translate=i.x,r.x.scale=Bt(t.x.scale,1,n),r.x.origin=t.x.origin,r.x.originPoint=t.x.originPoint,r.y.translate=i.y,r.y.scale=Bt(t.y.scale,1,n),r.y.origin=t.y.origin,r.y.originPoint=t.y.originPoint):(pl(r.x,t.x,n),pl(r.y,t.y,n)),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(da(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),c=this.relativeTarget,f=this.relativeTargetOrigin,m=a,y=n,fl(c.x,f.x,m.x,y),fl(c.y,f.y,m.y,y),d&&ba(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),ia(d,this.relativeTarget)),l&&(this.animationValues=o,Ra(o,s,this.latestValues,n,h,u)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(U(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{Ya.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ii(0)),this.motionValue.jump(0,!1),this.currentAnimation=Fa(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),function(t,e){const n=globalThis.__MOTION_INSPECT__;if(n)try{n({...De("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead(),{targetWithTransforms:e,layout:n,latestValues:i}=t;let{target:s}=t;if(e&&s&&n){if(this!==t&&this.layout&&n&&wl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){s=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=oa(this.layout.layoutBox.x);s.x.min=t.target.x.min,s.x.max=s.x.min+e;const n=oa(this.layout.layoutBox.y);s.y.min=t.target.y.min,s.y.max=s.y.min+n}ia(e,s),qs(e,i),la(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ka);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&qa("z",t,i,this.animationValues);for(let e=0;e<Xa.length;e++)qa(`rotate${Xa[e]}`,t,i,this.animationValues),qa(`skew${Xa[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=za(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=za(e?.pointerEvents)||""),void(this.hasProjected&&!Os(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=ka(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in $r){if(void 0===s[e])continue;const{correct:n,applyTo:r,isCSSVariable:a}=$r[e],l="none"===o?s[e]:n(s[e],i);if(r){const e=r.length;for(let n=0;n<e;n++)t[r[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?za(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(il),this.root.sharedNodes.clear()}}}function Ja(t){t.updateLayout()}function Qa(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if("size"===s)Ea(t=>{const i=o?e.measuredBox[t]:e.layoutBox[t],s=oa(i);i.min=n[t].min,i.max=i.min+s});else if("x"===s||"y"===s){const t="x"===s?"y":"x";na(o?e.measuredBox[t]:e.layoutBox[t],n[t])}else wl(s,e.layoutBox,n)&&Ea(i=>{const s=o?e.measuredBox[i]:e.layoutBox[i],r=oa(n[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};la(r,n,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?la(a,t.applyTransform(i,!0),e.measuredBox):la(a,n,e.layoutBox);const l=!wa(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=t.options.layoutAnchor||void 0,a={x:{min:0,max:0},y:{min:0,max:0}};da(a,e.layoutBox,s.layoutBox,r);const l={x:{min:0,max:0},y:{min:0,max:0}};da(l,n,o.layoutBox,r),Aa(a,l)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tl(t){Bo.value&&Ga.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function el(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nl(t){t.clearSnapshot()}function il(t){t.clearMeasurements()}function sl(t){t.isLayoutDirty=!0,t.updateLayout()}function ol(t){t.isLayoutDirty=!1}function rl(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function al(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ll(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function cl(t){t.resolveTargetDelta()}function ul(t){t.calcProjection()}function hl(t){t.resetSkewAndRotation()}function dl(t){t.removeLeadSnapshot()}function pl(t,e,n){t.translate=Bt(e.translate,0,n),t.scale=Bt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function fl(t,e,n,i){t.min=Bt(e.min,n.min,i),t.max=Bt(e.max,n.max,i)}function ml(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const yl={duration:.45,ease:[.4,0,.1,1]},gl=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vl=gl("applewebkit/")&&!gl("chrome/")?Math.round:u;function xl(t){t.min=vl(t.min),t.max=vl(t.max)}function wl(t,e,n){return"position"===t||"preserve-aspect"===t&&!ra(Va(e),Va(n),.2)}function Tl(t){return t!==t.root&&t.scroll?.wasRoot}const bl=Za({attachResizeListener:(t,e)=>Ia(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Sl=t=>!t.isLayoutDirty&&t.willUpdate(!1);const Al={current:void 0},Vl=Za({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Al.current){const t=new bl({});t.mount(window),t.setOptions({layoutScroll:!0}),Al.current=t}return Al.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Pl="[data-layout],[data-layout-id]",El=new WeakMap;let kl;function Ml(t){const e=[];return t instanceof HTMLElement&&t.matches(Pl)&&e.push(t),t.querySelectorAll(Pl).forEach(t=>{t instanceof HTMLElement&&e.push(t)}),e}function Dl(t,e){const n=t.getAttribute("data-layout");return{layoutId:t.getAttribute("data-layout-id")??void 0,layout:null!==n||void 0,animationType:n&&"true"!==n?n:"both",transition:e}}function Cl(t,e){let n=El.get(t);if(n)n.setOptions(Dl(t,e));else{let i=wr.get(t);i||(i=new zr({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}),eo(t,i)),t.style.transform&&!Os(i.latestValues)&&(t.style.transform=""),n=new Vl(i.latestValues,function(t){let e=t.parentElement;for(;e;){const t=El.get(e);if(t&&t.instance)return t;e=e.parentElement}}(t)),i.projection=n,n.setOptions({...Dl(t,e),visualElement:i}),n.mount(t),El.set(t,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Rl(t,e){e.setOptions({onExitComplete:void 0});e.getStack()&&!e.isLead()||e.currentAnimation?.stop(),e.unmount(),El.delete(t)}function Bl(){const t=kl;kl=void 0,function(){if(z.isProcessing)return;const t=X.now();z.delta=i(0,1e3/60,t-z.timestamp),z.timestamp=t,z.isProcessing=!0,K.update.process(z),K.preRender.process(z),K.render.process(z),z.isProcessing=!1}();const e=new Map;for(const n of t)for(const t of n.collectTargets()){const i=e.get(t);i?i.push(n):e.set(t,[n])}const n=new Map;for(const t of(s=e.keys(),[...s].sort((t,e)=>t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1))){const i=e.get(t),s=Cl(t,i[i.length-1].transitionFor(t));for(const e of i)e.adopt(t,s);n.set(t,s)}var s;n.forEach(t=>{t.isLayoutDirty=!1,t.willUpdate()});const o=[];for(const e of t){const t=e.runUpdate();t&&o.push(t)}const r=()=>{const e=new Set;for(const n of t)n.reconcileAdditions(e);for(const n of t)n.reconcileRemovals(e);let i;n.forEach(t=>i||(i=t.root));for(const e of t)i||(i=e.getRoot());i?.didUpdate(),io.render(()=>{for(const e of t)e.finalize()})};o.length?Promise.all(o).then(r):r()}const Ll=W,jl=N.reduce((t,e)=>(t[e]=t=>U(t),t),{});function Ol(t){return"object"==typeof t&&!Array.isArray(t)}function Fl(t,e,n,i){return null==t?[]:"string"==typeof t&&Ol(e)?ss(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function Il(t,e,n){return t*(e+1)+n*e}function Nl(t,e,n,i){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):i.get(e)??t}function $l(t,e,i,s,o,r){!function(t,e,i){for(let s=0;s<t.length;s++){const o=t[s];o.at>e&&o.at<i&&(n(t,o),s--)}}(t,o,r);for(let n=0;n<e.length;n++)t.push({value:e[n],at:Bt(o,r,s[n]),easing:j(i,n)})}function Wl(t,e,n=0){const i=e+1+e*n;for(let e=0;e<t.length;e++)t[e]=t[e]/i}function Ul(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function zl(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Kl(t,e){return e[t]||(e[t]=[]),e[t]}function Yl(t){return Array.isArray(t)?t:[t]}function Gl(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Xl=t=>"number"==typeof t,Hl=t=>t.every(Xl);function ql(e,n,i,s){const o=[];if(function(t,e){return Ei(t)||"number"==typeof t||"string"==typeof t&&!Ol(e)}(e,n))o.push(Fa(e,Ol(n)&&n.default||n,i&&i.default||i));else{if(null==e)return o;const r=Fl(e,n,s),a=r.length;t.invariant(Boolean(a),"No valid elements provided.","no-valid-elements");for(let t=0;t<a;t++){const e=r[t],s={...i};"delay"in s&&"function"==typeof s.delay&&(s.delay=s.delay(t,a)),e instanceof Element?o.push(...to(e,n,s,wr.get(e))):o.push(...ts(Ji(e)??no,e,n,s))}}return o}function _l(e,n,i){const s=[],o=function(e,{defaultTransition:n={},...i}={},s,o){const r=n.duration||.3,a=new Map,l=new Map,c={},u=new Map;let h=0,p=0,m=0;for(let i=0;i<e.length;i++){const a=e[i];if("string"==typeof a){u.set(a,p);continue}if(!Array.isArray(a)){u.set(a.name,Nl(p,a.at,h,u));continue}let[d,y,g={}]=a;void 0!==g.at&&(p=Nl(p,g.at,h,u));let v=0;const x=(e,i,s,a=0,l=0)=>{const c=Yl(e),{delay:u=0,times:h=Te(c),type:d=n.type||"keyframes",repeat:y,repeatType:g,repeatDelay:x=0,...w}=i;let{ease:T=n.ease||"easeOut",duration:b}=i;const A="function"==typeof u?u(a,l):u,V=c.length,P=Bn(d)?d:o?.[d||"keyframes"];if(V<=2&&P){let t=100;if(2===V&&Hl(c)){const e=c[1]-c[0];t=Math.abs(e)}const e={...n,...w};void 0!==b&&(e.duration=f(b));const i=Zt(e,t,P);T=i.ease,b=i.duration}b??(b=r);const E=p+A;1===h.length&&0===h[0]&&(h[1]=1);const k=h.length-c.length;if(k>0&&we(h,k),1===c.length&&c.unshift(null),y&&t.warning(y<20,`Sequence segments can't repeat ${y} times — ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),y&&y<20){const t=b>0?x/b:0;b=Il(b,y,x);const e=[...c],n=[...h];T=Array.isArray(T)?[...T]:[T];const i=[...T],s="reverse"===g||"mirror"===g;let o=e,r=i;s&&(o=[...e].reverse(),"reverse"===g&&(r=[...i].reverse().map(t=>"function"==typeof t?S(t):t)));for(let a=0;a<y;a++){const l=s&&a%2==0,u=l?o:e,d=l?r:i,p=(a+1)*(1+t);t>0&&(c.push(c[c.length-1]),h.push(p),T.push("linear")),c.push(...u);for(let t=0;t<u.length;t++)h.push(n[t]+p),T.push(0===t?"linear":j(d,t-1))}Wl(h,y,t)}const M=E+b;$l(s,c,T,h,E,M),v=Math.max(A+b,v),m=Math.max(M,m)};if(Ei(d))x(y,g,Kl("default",zl(d,l)));else{const t=Fl(d,y,s,c),e=t.length;for(let n=0;n<e;n++){const i=zl(t[n],l);for(const t in y)x(y[t],Gl(g,t),Kl(t,i),n,e)}}h=p,p+=v}return l.forEach((t,e)=>{for(const s in t){const o=t[s];o.sort(Ul);const r=[],l=[],c=[];for(let t=0;t<o.length;t++){const{at:e,value:n,easing:i}=o[t];r.push(n),l.push(d(0,m,e)),c.push(i||"easeOut")}0!==l[0]&&(l.unshift(0),r.unshift(r[0]),c.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),r.push(null)),a.has(e)||a.set(e,{keyframes:{},transition:{}});const u=a.get(e);u.keyframes[s]=r;const{type:h,...p}=n;u.transition[s]={...p,duration:m,ease:c,times:l,...i}}}),a}(e.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){const e=t[0],n=ii(0);return n.on("change",e),1===t.length?[n,[0,1]]:2===t.length?[n,[0,1],t[1]]:[n,t[1],t[2]]}return t}),n,i,{spring:ge});return o.forEach(({keyframes:t,transition:e},n)=>{s.push(...ql(n,t,e))}),s}function Zl(t={}){const{scope:e,reduceMotion:i,skipAnimations:s}=t;return function(t,o,r){let a,l=[];const c={};if(void 0!==i&&(c.reduceMotion=i),void 0!==s&&(c.skipAnimations=s),u=t,Array.isArray(u)&&u.some(Array.isArray)){const{onComplete:n,...i}=o||{};"function"==typeof n&&(a=n),l=_l(t,{...c,...i},e)}else{const{onComplete:n,...i}=r||{};"function"==typeof n&&(a=n),l=ql(t,o,{...c,...i},e)}var u;const h=new qn(l);return a&&h.finished.then(a),e&&(e.animations.push(h),h.finished.then(()=>{n(e.animations,h)})),h}}const Jl=Object.assign(Zl(),{addEffect:_i,removeEffect:Zi});const Ql=e=>function(n,i,s){return new qn(function(e,n,i,s){if(null==e)return[];const o=ss(e,s),r=o.length;t.invariant(Boolean(r),"No valid elements provided.","no-valid-elements");const a=[];for(let t=0;t<r;t++){const e=o[t],s={...i};"function"==typeof s.delay&&(s.delay=s.delay(t,r));for(const t in n){let i=n[t];Array.isArray(i)||(i=[i]);const o={...oi(s,t)};o.duration&&(o.duration=f(o.duration)),o.delay&&(o.delay=f(o.delay));const r=Qn(e),l=Jn(t,o.pseudoElement||""),c=r.get(l);c&&c.stop(),a.push({map:r,key:l,unresolvedKeyframes:i,options:{...o,element:e,name:t,allowFlatten:!s.type&&!s.ease}})}}for(let t=0;t<a.length;t++){const{unresolvedKeyframes:e,options:n}=a[t],{element:i,name:s,pseudoElement:o}=n;o||null!==e[0]||(e[0]=xo(i,s)),Xe(e),Xi(e,s),!o&&e.length<2&&e.unshift(xo(i,s)),n.keyframes=e}const l=[];for(let t=0;t<a.length;t++){const{map:e,key:n,options:i}=a[t],s=new jn(i);e.set(n,s),s.finished.finally(()=>e.delete(n)),l.push(s)}return l}(n,i,s,e))},tc=Ql();function ec(t){return"undefined"!=typeof window&&(t?En():Pn())}const nc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ic(t,e,n,i){const s=n[e],{length:o,position:r}=nc[e],a=s.current,l=n.time;s.current=Math.abs(t[`scroll${r}`]),s.scrollLength=t[`scroll${o}`]-t[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=d(0,s.scrollLength,s.current);const c=i-l;s.velocity=c>50?0:y(s.current-a,c)}const sc={start:0,center:.5,end:1};function oc(t,e,n=0){let i=0;if(t in sc&&(t=sc[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}const rc=[0,0];function ac(t,e,n,i){let s=Array.isArray(t)?t:rc,o=0,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,sc[t]?t:"0"]),o=oc(s[0],n,i),r=oc(s[1],e),o-r}const lc={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},cc={x:0,y:0};function uc(t,e,n){const{offset:s=lc.All}=n,{target:o=t,axis:r="y"}=n,a="y"===r?"height":"width",l=o!==t?function(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(es(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){const t=i.getBoundingClientRect();i=i.parentElement;const e=i.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(i instanceof SVGGraphicsElement))break;{const{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let s=null,o=i.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=i.parentNode;i=s}}return n}(o,t):cc,c=o===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(o),u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let h=!e[r].interpolate;const d=s.length;for(let t=0;t<d;t++){const n=ac(s[t],u[a],c[a],l[r]);h||n===e[r].interpolatorOffsets[t]||(h=!0),e[r].offset[t]=n}h&&(e[r].interpolate=xe(e[r].offset,Te(s),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=i(0,1,e[r].interpolate(e[r].current))}function hc(t,e,n,i={}){return{measure:e=>{!function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),function(t,e,n){ic(t,"x",e,n),ic(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&uc(t,n,i)},notify:()=>e(n)}}const dc=new WeakMap,pc=new WeakMap,fc=new WeakMap,mc=new WeakMap,yc=new WeakMap,gc=t=>t===document.scrollingElement?window:t;function vc(t,{container:e=document.scrollingElement,trackContentSize:n=!1,...i}={}){if(!e)return u;let s=fc.get(e);s||(s=new Set,fc.set(e,s));const o=hc(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},i);if(s.add(o),!dc.has(e)){const t=()=>{for(const t of s)t.measure(z.timestamp);W.preUpdate(n)},n=()=>{for(const t of s)t.notify()},i=()=>W.read(t);dc.set(e,i);const o=gc(e);window.addEventListener("resize",i),e!==document.documentElement&&pc.set(e,Co(e,i)),o.addEventListener("scroll",i),i()}if(n&&!yc.has(e)){const t=dc.get(e),n={width:e.scrollWidth,height:e.scrollHeight};mc.set(e,n);const i=()=>{const i=e.scrollWidth,s=e.scrollHeight;n.width===i&&n.height===s||(t(),n.width=i,n.height=s)},s=W.read(i,!0);yc.set(e,s)}const r=dc.get(e);return W.read(r,!1,!0),()=>{U(r);const t=fc.get(e);if(!t)return;if(t.delete(o),t.size)return;const n=dc.get(e);dc.delete(e),n&&(gc(e).removeEventListener("scroll",n),pc.get(e)?.(),window.removeEventListener("resize",n));const i=yc.get(e);i&&(U(i),yc.delete(e)),mc.delete(e)}}const xc=[[lc.Enter,"entry"],[lc.Exit,"exit"],[lc.Any,"cover"],[lc.All,"contain"]],wc={start:0,end:1};function Tc(t){const e=t.trim().split(/\s+/);if(2!==e.length)return;const n=wc[e[0]],i=wc[e[1]];return void 0!==n&&void 0!==i?[n,i]:void 0}function bc(t,e){const n=function(t){if(2!==t.length)return;const e=[];for(const n of t)if(Array.isArray(n))e.push(n);else{if("string"!=typeof n)return;{const t=Tc(n);if(!t)return;e.push(t)}}return e}(t);if(!n)return!1;for(let t=0;t<2;t++){const i=n[t],s=e[t];if(i[0]!==s[0]||i[1]!==s[1])return!1}return!0}function Sc(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[e,n]of xc)if(bc(t,e))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const Ac=new Map;function Vc(t){const e={value:0},n=vc(n=>{e.value=100*n[t.axis].progress},t);return{currentTime:e,cancel:n}}function Pc({source:t,container:e,...n}){const{axis:i}=n;t&&(e=t);let s=Ac.get(e);s||(s=new Map,Ac.set(e,s));const o=n.target??"self";let r=s.get(o);r||(r={},s.set(o,r));const a=i+(n.offset??[]).join(",");if(!r[a])if(n.target&&ec(n.target)){const t=Sc(n.offset);r[a]=t?new ViewTimeline({subject:n.target,axis:i}):Vc({container:e,...n})}else ec()?r[a]=new ScrollTimeline({source:e,axis:i}):r[a]=Vc({container:e,...n});return r[a]}const Ec={some:0,all:1};const kc=(t,e)=>Math.abs(t-e);t.AsyncMotionValueAnimation=Gn,t.DOMKeyframesResolver=Ki,t.DOMVisualElement=jr,t.DocumentProjectionNode=bl,t.Feature=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},t.FlatTree=$a,t.GroupAnimation=Xn,t.GroupAnimationWithThen=qn,t.HTMLProjectionNode=Vl,t.HTMLVisualElement=zr,t.JSAnimation=Le,t.KeyframeResolver=Tn,t.LayoutAnimationBuilder=class{constructor(t,e,n){this.scope=t,this.updateDom=e,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((t,e)=>{this.notifyReady=t,this.rejectReady=e}),kl||(kl=[],queueMicrotask(Bl)),kl.push(this)}shared(t,e){return this.sharedTransitions.set(t,e),this}then(t,e){return this.readyPromise.then(t,e)}transitionFor(t){const e=t.getAttribute("data-layout-id");return e&&this.sharedTransitions.get(e)||this.defaultOptions}adopt(t,e){this.tracked.set(t,e),this.restorePoints.set(t,{parent:t.parentElement,next:t.nextSibling})}collectTargets(){return Ml(this.scope)}runUpdate(){try{const t=this.updateDom();if(t&&"function"==typeof t.then)return t.then(void 0,t=>{this.updateError=t})}catch(t){this.updateError=t}}reconcileAdditions(t){for(const e of Ml(this.scope)){if(this.tracked.has(e))continue;const n=Cl(e,this.transitionFor(e));this.adopt(e,n),n.options.layoutId&&t.add(n.options.layoutId)}}reconcileRemovals(t){this.tracked.forEach((e,n)=>{if(n.isConnected)return;const i=this.restorePoints.get(n);this.restorePoints.delete(n);const{layoutId:s}=e.options,o=e.getStack(),r=o&&o.members.some(t=>t!==e&&t.instance?.isConnected);if(s&&e.isLead()&&r&&!t.has(s)&&i&&i.parent.isConnected){if(i.parent.insertBefore(n,i.next&&i.next.parentNode===i.parent?i.next:null),e.isPresent=!1,e.setOptions({onExitComplete:()=>{n.remove(),Rl(n,e)}}),e.relegate())return;n.remove()}Rl(n,e),this.tracked.delete(n)})}getRoot(){let t;return this.tracked.forEach(e=>t||(t=e.root)),t}finalize(){if(this.updateError)return void this.rejectReady(this.updateError);const t=new Set;this.tracked.forEach(e=>{e.instance&&e.currentAnimation&&t.add(e.currentAnimation)}),this.notifyReady(new Xn([...t]))}},t.MotionGlobalConfig=o,t.MotionValue=ni,t.MotionValueState=rs,t.NativeAnimation=jn,t.NativeAnimationExtended=In,t.NativeAnimationWrapper=_n,t.NodeStack=Ka,t.ObjectVisualElement=class extends Lr{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}},t.SVGVisualElement=class extends jr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xr}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(an.has(e)){const t=Ke(e);return t&&t.default||0}if(Ss.includes(e)){const n=getComputedStyle(t)[e];if("string"==typeof n&&n)return n.trim()}return e=Kr.has(e)?e:Di(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Xr(t,e,n)}build(t,e,n){As(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){Gr(t,e,0,i)}mount(t){this.isSVGTag=Yr(t.tagName),super.mount(t)}},t.SubscriptionManager=p,t.ViewTransitionBuilder=mr,t.VisualElement=Lr,t.acceleratedValues=Wn,t.addAttrValue=Vs,t.addDomEvent=Ia,t.addEffect=_i,t.addSVGValue=Es,t.addScaleCorrector=function(t){for(const e in t)$r[e]=t[e],_(e)&&($r[e].isCSSVariable=!0)},t.addStyleValue=ds,t.addUniqueItem=e,t.addValueToWillChange=Mi,t.alpha=nt,t.analyseComplexValue=Pt,t.animate=Jl,t.animateEffectSubject=ts,t.animateElement=to,t.animateMini=tc,t.animateMotionValue=di,t.animateSingleValue=Fa,t.animateTarget=Oi,t.animateValue=function(t){return new Le(t)},t.animateValues=Qi,t.animateVariant=Fi,t.animateView=function(t,e={}){return new mr(t,e)},t.animateVisualElement=Ii,t.animationMapKey=Jn,t.anticipate=E,t.applyAxisDelta=Ws,t.applyBoxDelta=Us,t.applyGeneratorOptions=Ln,t.applyPointDelta=$s,t.applyPxDefaults=Xi,t.applyTreeDeltas=Ys,t.arc=function(t={}){const e=function({strength:t=.5,peak:e=.5,direction:n,rotate:i=!1}={}){const s=!0===i?1:"number"==typeof i?i:0;let o;return(i,r)=>{const a=r.x-i.x,l=r.y-i.y;let c;c="cw"===n?-t:"ccw"===n?t:(Math.abs(a)>=Math.abs(l)?a:l)<0?-t:t;let u=mi(i.x,i.y,r.x,r.y,c,e);if(void 0===n){const t=Math.abs(a)<Math.abs(l),n=i.x+a*e,s=i.y+l*e,h=t?Math.sign(u.x-n):Math.sign(u.y-s);void 0!==o&&0!==h&&h!==o?(c=-c,u=mi(i.x,i.y,r.x,r.y,c,e)):0!==h&&(o=h)}const h=s?fi(0,i.x,u.x,r.x,i.y,u.y,r.y):0,d=s?fi(1,i.x,u.x,r.x,i.y,u.y,r.y):0,p=s?x(-180,180,d-h):0;return t=>{const e={x:pi(t,i.x,u.x,r.x),y:pi(t,i.y,u.y,r.y)};if(s){const n=fi(t,i.x,u.x,r.x,i.y,u.y,r.y),o=h+p*t;e.rotate=x(-180,180,n-o)*s}return e}}}(t),n={interpolateProjection(t){const n=t.x.translate,i=t.y.translate;if(!(Math.sqrt(n*n+i*i)<20))return e({x:n,y:i},{x:0,y:0})},animateVisualElement(t,n,i,s,o){if(!("x"in n)&&!("y"in n))return;const r=t.getValue("x",t.latestValues.x??0),a=t.getValue("y",t.latestValues.y??0),l=n.x,c=n.y,u=(Array.isArray(l)&&null!=l[0]?l[0]:r?.get())??0,h=(Array.isArray(c)&&null!=c[0]?c[0]:a?.get())??0,d=Array.isArray(l)?l[l.length-1]:l??u,p=Array.isArray(c)?c[c.length-1]:c??h,f=e({x:u,y:h},{x:d,y:p}),m=void 0!==f(0).rotate?t.getValue("pathRotation",0):void 0,y={delay:s,...oi(i||{},"x")};delete y.path;const g=ii(0);g.start(di("",g,[0,1e3],{...y,isSync:!0,velocity:0,onUpdate:t=>{const e=f(t/1e3);r?.set(e.x),a?.set(e.y),m&&void 0!==e.rotate&&m.set(e.rotate)},onComplete:()=>{r?.set(d),a?.set(p),m?.set(0)},onStop:()=>m?.set(0),onCancel:()=>m?.set(0)})),g.animation&&o.push(g.animation),delete n.x,delete n.y}};return n},t.aspectRatio=Va,t.attachFollow=Wo,t.attachSpring=function(t,e,n){return Wo(t,e,{type:"spring",...n})},t.attrEffect=Ps,t.axisDeltaEquals=Pa,t.axisEquals=Ta,t.axisEqualsRounded=Sa,t.backIn=V,t.backInOut=P,t.backOut=A,t.boxEquals=ba,t.boxEqualsRounded=Aa,t.buildHTMLStyles=xs,t.buildProjectionTransform=ka,t.buildSVGAttrs=As,t.buildSVGPath=bs,t.buildTransform=vs,t.calcAxisDelta=aa,t.calcBoxDelta=la,t.calcChildStagger=ti,t.calcGeneratorDuration=_t,t.calcLength=oa,t.calcRelativeAxis=ca,t.calcRelativeAxisPosition=ha,t.calcRelativeBox=ua,t.calcRelativePosition=da,t.camelCaseAttributes=Kr,t.camelToDash=Di,t.cancelFrame=U,t.cancelMicrotask=so,t.cancelSync=jl,t.checkVariantsDidChange=Qr,t.circIn=k,t.circInOut=D,t.circOut=M,t.clamp=i,t.cleanDirtyNodes=el,t.collectMotionValues=ei,t.color=xt,t.compareByDepth=Na,t.complex=Mt,t.containsCSSVariable=tt,t.convertBoundingBoxToBox=Rs,t.convertBoxToBoundingBox=function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},t.convertOffsetToTimes=be,t.copyAxisDeltaInto=sa,t.copyAxisInto=na,t.copyBoxInto=ia,t.correctBorderRadius=Ir,t.correctBoxShadow=Nr,t.createAnimationState=function(t){let e=function(t){return e=>Promise.all(e.map(({animation:e,options:n})=>Ii(t,e,n)))}(t),n=ea(),i=!0,s=!1;const o=e=>(n,i)=>{const s=Ti(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(s){const{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function r(r){const{props:a}=t,l=qr(t.parent)||{},c=[],u=new Set;let h={},d=1/0;for(let e=0;e<Jr;e++){const p=Zr[e],f=n[p],m=void 0!==a[p]?a[p]:l[p],y=br(m),g=p===r?f.isActive:null;!1===g&&(d=e);let v=m===l[p]&&m!==a[p]&&y;if(v&&(i||s)&&t.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...h},!f.isActive&&null===g||!m&&!f.prevProp||Tr(m)||"boolean"==typeof m)continue;if("exit"===p&&f.isActive&&!0!==g){f.prevResolvedValues&&(h={...h,...f.prevResolvedValues});continue}const x=Qr(f.prevProp,m);let w=x||p===r&&f.isActive&&!v&&y||e>d&&y,T=!1;const b=Array.isArray(m)?m:[m];let S=b.reduce(o(p),{});!1===g&&(S={});const{prevResolvedValues:A={}}=f,V={...A,...S},P=e=>{w=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in V){const e=S[t],n=A[t];if(h.hasOwnProperty(t))continue;let i=!1;i=Si(e)&&Si(n)?!_r(e,n)||x:e!==n,i?null!=e?P(t):u.add(t):void 0!==e&&u.has(t)?P(t):f.protectedKeys[t]=!0}f.prevProp=m,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),(i||s)&&t.blockInitialAnimation&&(w=!1);const E=v&&x;w&&(!E||T)&&c.push(...b.map(e=>{const n={type:p};if("string"==typeof e&&(i||s)&&!E&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=Ti(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=ti(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){const e={};if("boolean"!=typeof a.initial){const n=Ti(t,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),c.push({animation:e})}let p=Boolean(c.length);return!i||!1!==a.initial&&a.initial!==a.animate||t.manuallyAnimateOnMount||(p=!1),i=!1,s=!1,p?e(c):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const s=r(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=ea(),s=!0}}},t.createAxis=vr,t.createAxisDelta=yr,t.createBox=xr,t.createDelta=gr,t.createEffect=as,t.createGeneratorEasing=Zt,t.createProjectionNode=Za,t.createRenderBatcher=$,t.createScopedAnimate=Zl,t.cubicBezier=T,t.cubicBezierAsString=Mn,t.defaultEasing=Se,t.defaultOffset=Te,t.defaultTransformValue=en,t.defaultValueTypes=ze,t.degrees=dt,t.delay=Ua,t.delayInSeconds=Ua,t.dimensionValueTypes=$i,t.distance=kc,t.distance2D=function(t,e){const n=kc(t.x,e.x),i=kc(t.y,e.y);return Math.sqrt(n**2+i**2)},t.eachAxis=Ea,t.easeIn=C,t.easeInOut=B,t.easeOut=R,t.easingDefinitionToFunction=I,t.fillOffset=we,t.fillWildcards=Xe,t.findDimensionValueType=Wi,t.findEffect=Ji,t.findValueType=t=>Yo.find(Ni(t)),t.flushKeyframeResolvers=wn,t.followValue=$o,t.frame=W,t.frameData=z,t.frameSteps=K,t.generateLinearEasing=Ht,t.getAnimatableNone=Ge,t.getAnimationMap=Qn,t.getComputedStyle=xo,t.getDefaultTransition=ci,t.getDefaultValueType=Ke,t.getEasingForSegment=j,t.getFeatureDefinitions=function(){return Br},t.getFinalKeyframe=Ee,t.getMixer=Wt,t.getOptimisedAppearId=Bi,t.getOriginIndex=jo,t.getValueAsType=is,t.getValueTransition=oi,t.getVariableValue=vi,t.getVariantContext=qr,t.getViewAnimationLayerInfo=ir,t.getViewAnimations=sr,t.globalProjectionState=Ya,t.handOffElementState=eo,t.has2DTranslate=Fs,t.hasComplexValues=Vt,t.hasReducedMotionListener=Mr,t.hasScale=js,t.hasTransform=Os,t.hasWarned=function(t){return g.has(t)},t.hex=ut,t.hover=function(t,e,n={}){const[i,s,o]=ao(t,n);return i.forEach(t=>{let n,i=!1,o=!1;const r=e=>{n&&(n(e),n=void 0),t.removeEventListener("pointerleave",l)},a=t=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{"touch"!==t.pointerType&&(i?o=!0:r(t))};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||ro())return;o=!1;const r=e(t,i);"function"==typeof r&&(n=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o},t.hsla=vt,t.hslaToRgba=Ct,t.inView=function(t,e,{root:n,margin:i,amount:s="some"}={}){const o=ss(t),r=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{const n=r.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t.target,t);"function"==typeof n?r.set(t.target,n):a.unobserve(t.target)}else"function"==typeof n&&(n(t),r.delete(t.target))})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:Ec[s]});return o.forEach(t=>a.observe(t)),()=>a.disconnect()},t.inertia=ve,t.initPrefersReducedMotion=Cr,t.interpolate=xe,t.invisibleValues=It,t.isAnimationControls=Tr,t.isBezierDefinition=O,t.isCSSVariableName=_,t.isCSSVariableToken=J,t.isControllingVariants=Vr,t.isDeltaZero=wa,t.isDragActive=ro,t.isDragging=oo,t.isEasingArray=L,t.isElementKeyboardAccessible=ho,t.isElementTextInput=function(t){return po.has(t.tagName)||!0===t.isContentEditable},t.isForcedMotionValue=Wr,t.isGenerator=Bn,t.isHTMLElement=es,t.isKeyframesTarget=Si,t.isMotionValue=Ei,t.isNear=ra,t.isNodeOrChild=lo,t.isNumericalString=r,t.isObject=a,t.isPrimaryPointer=co,t.isSVGElement=ns,t.isSVGSVGElement=Lo,t.isSVGTag=Yr,t.isTransitionDefined=hi,t.isVariantLabel=br,t.isVariantNode=Pr,t.isWaapiSupportedEasing=function t(e){return Boolean("function"==typeof e&&kn()||!e||"string"==typeof e&&(e in Dn||kn())||O(e)||Array.isArray(e)&&e.every(t))},t.isWillChangeMotionValue=ki,t.isZeroValueString=l,t.keyframes=Ae,t.makeAnimationInstant=$n,t.mapEasingToNativeEasing=Cn,t.mapValue=function(t,e,n,i){const s=Oo(e,n,i);return Ko(()=>s(t.get()))},t.maxGeneratorDuration=qt,t.measurePageBox=function(t,e,n){const i=_s(t,n),{scroll:s}=e;return s&&(Gs(i.x,s.offset.x),Gs(i.y,s.offset.y)),i},t.measureViewportBox=_s,t.memo=c,t.microtask=io,t.millisecondsToSeconds=m,t.mirrorEasing=b,t.mix=Gt,t.mixArray=Ut,t.mixColor=Ft,t.mixComplex=Kt,t.mixImmediate=Rt,t.mixLinearColor=Lt,t.mixNumber=Bt,t.mixObject=zt,t.mixValues=Ra,t.mixVisibility=Nt,t.motionValue=ii,t.moveItem=function([...t],e,n){const i=e<0?t.length+e:e;if(i>=0&&i<t.length){const i=n<0?t.length+n:n,[s]=t.splice(e,1);t.splice(i,0,s)}return t},t.nodeGroup=function(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Sl);return{add:i=>{t.add(i),e.set(i,i.addEventListener("willUpdate",n))},remove:i=>{t.delete(i);const s=e.get(i);s&&(s(),e.delete(i)),n()},dirty:n}},t.noop=u,t.number=et,t.numberValueTypes=Ue,t.observeTimeline=Ro,t.optimizedAppearDataAttribute=Ri,t.optimizedAppearDataId=Ci,t.parseAnimateLayoutArgs=function(t,e,n){return"function"==typeof t?{scope:document,updateDom:t,defaultOptions:e}:{scope:t instanceof Document?t:ss(t)[0]??document,updateDom:e,defaultOptions:n}},t.parseCSSVariable=gi,t.parseValueFromTransform=nn,t.percent=pt,t.pipe=h,t.pixelsToPercent=Fr,t.positionalKeys=bi,t.prefersReducedMotion=kr,t.press=function(t,e,n={}){const[i,s,o]=ao(t,n),r=t=>{const i=t.currentTarget;if(!go(t))return;if(vo.has(t))return;fo.add(i),n.stopPropagation&&vo.add(t);const o=e(i,t),r={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,r),window.removeEventListener("pointercancel",c,r),fo.has(i)&&fo.delete(i),go(t)&&"function"==typeof o&&o(t,{success:e})},l=t=>{a(t,i===window||i===document||n.useGlobalTarget||lo(i,t.target))},c=t=>{a(t,!1)};window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",c,r)};return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),es(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=mo(()=>{if(fo.has(n))return;yo(n,"down");const t=mo(()=>{yo(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>yo(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),ho(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o},t.progress=d,t.progressPercentage=gt,t.propEffect=no,t.propagateDirtyNodes=tl,t.px=ft,t.readSVGValue=ks,t.readStyleValue=ps,t.readTransformValue=sn,t.recordStats=function(){if(Bo.value)throw Bo.value=null,Bo.addProjectionMetrics=null,new Error("Stats are already being measured");const t=Bo;t.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},t.addProjectionMetrics=e=>{const{layoutProjection:n}=t.value;n.nodes.push(e.nodes),n.calculatedTargetDeltas.push(e.calculatedTargetDeltas),n.calculatedProjections.push(e.calculatedProjections)}},t.removeAxisDelta=fa,t.removeAxisTransforms=ma,t.removeBoxTransforms=va,t.removeEffect=Zi,t.removeItem=n,t.removePointDelta=pa,t.renderHTML=Or,t.renderSVG=Gr,t.resize=Co,t.resolveElements=ss,t.resolveMotionValue=za,t.resolveTransition=si,t.resolveVariant=Ti,t.resolveVariantFromProps=wi,t.reverseEasing=S,t.rgbUnit=lt,t.rgba=ct,t.rootProjectionNode=Al,t.scale=it,t.scaleCorrectors=$r,t.scalePoint=Ns,t.scrapeHTMLMotionValuesFromProps=Ur,t.scrapeSVGMotionValuesFromProps=Xr,t.scroll=function(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return u;const s={axis:e,container:n,...i};return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)||function(t){return t&&(t.target||t.offset)}(e)?vc(n=>{t(n[e.axis].progress,n)},e):Ro(t,Pc(e))}(t,s):function(t,e){const n=Pc(e),i=e.target?Sc(e.offset):void 0,s=e.target?ec(e.target)&&!!i:ec();return t.attachTimeline({timeline:s?n:void 0,...i&&s&&{rangeStart:i.rangeStart,rangeEnd:i.rangeEnd},observe:t=>(t.pause(),Ro(e=>{t.time=t.iterationDuration*e},n))})}(t,s)},t.scrollInfo=vc,t.secondsToMilliseconds=f,t.setDragLock=function(t){return"x"===t||"y"===t?oo[t]?null:(oo[t]=!0,()=>{oo[t]=!1}):oo.x||oo.y?null:(oo.x=oo.y=!0,()=>{oo.x=oo.y=!1})},t.setFeatureDefinitions=function(t){Br=t},t.setStyle=Sn,t.setTarget=Pi,t.spring=ge,t.springValue=function(t,e){return $o(t,{type:"spring",...e})},t.stagger=function(t=.1,{startDelay:e=0,from:n=0,ease:i}={}){return(s,o)=>{const r="number"==typeof n?n:jo(n,o),a=Math.abs(r-s);let l=t*a;if(i){const e=o*t;l=I(i)(l/e)*e}return e+l}},t.startWaapiAnimation=Rn,t.statsBuffer=Bo,t.steps=function(t,e="end"){return n=>{const s=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,o="end"===e?Math.floor(s):Math.ceil(s);return i(0,1,o/t)}},t.styleEffect=ms,t.styleSubjectEffect=fs,t.supportedWaapiEasing=Dn,t.supportsBrowserAnimation=Yn,t.supportsFlags=An,t.supportsLinearEasing=kn,t.supportsPartialKeyframes=Hi,t.supportsScrollTimeline=Pn,t.supportsViewTimeline=En,t.svgEffect=Ds,t.svgSubjectEffect=Ms,t.sync=Ll,t.testValueType=Ni,t.time=X,t.transform=Oo,t.transformAxis=Xs,t.transformBox=qs,t.transformBoxPoints=Bs,t.transformPropOrder=rn,t.transformProps=an,t.transformValue=Ko,t.transformValueTypes=We,t.translateAxis=Gs,t.updateMotionValuesFromProps=Er,t.variantPriorityOrder=Sr,t.variantProps=Ar,t.velocityPerSecond=y,t.vh=mt,t.visualElementStore=wr,t.vw=yt,t.warnOnce=v,t.wrap=x});