@animateicons/react 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animateicons/react",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "Animated SVG icons for React with hover and imperative animation triggers. Built on motion/react.",
5
5
  "license": "MIT",
6
6
  "author": "Avijit Dey",
@@ -1,2 +0,0 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import {createContext,forwardRef,useContext,useMemo,useRef,useInsertionEffect,useEffect,Fragment,createElement,useCallback,useLayoutEffect,useState}from'react';var go=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Na=(...t)=>t.filter(Boolean).join(" ");var Bt=createContext({strict:false});function yo(t,e){t.indexOf(e)===-1&&t.push(e);}function Vo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1);}var G=(t,e,r)=>r>e?e:r<t?t:r;function Qt(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var H=()=>{},O=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(H=(t,e,r)=>{!t&&typeof console<"u"&&console.warn(Qt(e,r));},O=(t,e,r)=>{if(!t)throw new Error(Qt(e,r))});var K={};var te=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var ee=t=>/^0[^.\s]+$/u.test(t);function re(t){let e;return ()=>(e===void 0&&(e=t()),e)}var j=t=>t;var Tt=(...t)=>t.reduce((e,r)=>o=>r(e(o)));var oe=(t,e,r)=>{let o=e-t;return o?(r-t)/o:1};var St=class{constructor(){this.subscriptions=[];}add(e){return yo(this.subscriptions,e),()=>Vo(this.subscriptions,e)}notify(e,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,r,o);else for(let i=0;i<n;i++){let s=this.subscriptions[i];s&&s(e,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};var k=t=>t*1e3,L=t=>t/1e3;var ne=(t,e)=>e?t*(1e3/e):0;var bo=new Set;function rt(t,e,r){t||bo.has(e)||(console.warn(Qt(e,r)),bo.add(e));}var To=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Vi=1e-7,bi=12;function Ti(t,e,r,o,n){let i,s,a=0;do s=e+(r-e)/2,i=To(s,o,n)-t,i>0?r=s:e=s;while(Math.abs(i)>Vi&&++a<bi);return s}function at(t,e,r,o){if(t===e&&r===o)return j;let n=i=>Ti(i,0,1,t,r);return i=>i===0||i===1?i:To(n(i),e,o)}var Ne=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Ge=t=>e=>1-t(1-e);var Ke=at(.33,1.53,.69,.99),Et=Ge(Ke),ie=Ne(Et);var se=t=>t>=1?1:(t*=2)<1?.5*Et(t):.5*(2-Math.pow(2,-10*(t-1)));var ae=t=>1-Math.sin(Math.acos(t)),Or=Ge(ae),me=Ne(ae);var kr=at(.42,0,1,1),Br=at(0,0,.58,1),le=at(.42,0,.58,1);var Er=t=>Array.isArray(t)&&typeof t[0]!="number";var fe=t=>Array.isArray(t)&&typeof t[0]=="number";var So={linear:j,easeIn:kr,easeInOut:le,easeOut:Br,circIn:ae,circInOut:me,circOut:Or,backIn:Et,backInOut:ie,backOut:Ke,anticipate:se},Si=t=>typeof t=="string",We=t=>{if(fe(t)){O(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,o,n]=t;return at(e,r,o,n)}else if(Si(t))return O(So[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),So[t];return t};var ue=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function vo(t,e){let r=new Set,o=new Set,n=false,i=false,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:false};function u(l){s.has(l)&&(m.schedule(l),t()),l(a);}let m={schedule:(l,c=false,h=false)=>{let x=h&&n?r:o;return c&&s.add(l),x.add(l),l},cancel:l=>{o.delete(l),s.delete(l);},process:l=>{if(a=l,n){i=true;return}n=true;let c=r;r=o,o=c,r.forEach(u),r.clear(),n=false,i&&(i=false,m.process(l));}};return m}var vi=40;function je(t,e){let r=false,o=true,n={delta:0,timestamp:0,isProcessing:false},i=()=>r=true,s=ue.reduce((y,T)=>(y[T]=vo(i),y),{}),{setup:a,read:f,resolveKeyframes:u,preUpdate:m,update:l,preRender:c,render:h,postRender:p}=s,x=()=>{let y=K.useManualTiming,T=y?n.timestamp:performance.now();r=false,y||(n.delta=o?1e3/60:Math.max(Math.min(T-n.timestamp,vi),1)),n.timestamp=T,n.isProcessing=true,a.process(n),f.process(n),u.process(n),m.process(n),l.process(n),c.process(n),h.process(n),p.process(n),n.isProcessing=false,r&&e&&(o=false,t(x));},V=()=>{r=true,o=true,n.isProcessing||t(x);};return {schedule:ue.reduce((y,T)=>{let M=s[T];return y[T]=(P,R=false,v=false)=>(r||V(),M.schedule(P,R,v)),y},{}),cancel:y=>{for(let T=0;T<ue.length;T++)s[ue[T]].cancel(y);},state:n,steps:s}}var{schedule:N,cancel:ce,state:Nt}=je(typeof requestAnimationFrame<"u"?requestAnimationFrame:j,true);var ze;function Mi(){ze=void 0;}var F={now:()=>(ze===void 0&&F.set(Nt.isProcessing||K.useManualTiming?Nt.timestamp:performance.now()),ze),set:t=>{ze=t,queueMicrotask(Mi);}};var Mo=t=>e=>typeof e=="string"&&e.startsWith(t),$e=Mo("--"),Ci=Mo("var(--"),Kt=t=>Ci(t)?Ai.test(t.split("/*")[0].trim()):false,Ai=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Lr(t){return typeof t!="string"?false:t.split("/*")[0].includes("var(--")}var X={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ot={...X,transform:t=>G(0,1,t)},pe={...X,default:1};var mt=t=>Math.round(t*1e5)/1e5;var Wt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Co(t){return t==null}var Ao=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var jt=(t,e)=>r=>!!(typeof r=="string"&&Ao.test(r)&&r.startsWith(t)||e&&!Co(r)&&Object.prototype.hasOwnProperty.call(r,e)),He=(t,e,r)=>o=>{if(typeof o!="string")return o;let[n,i,s,a]=o.match(Wt);return {[t]:parseFloat(n),[e]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var wi=t=>G(0,255,t),Nr={...X,transform:t=>Math.round(wi(t))},Z={test:jt("rgb","red"),parse:He("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+Nr.transform(t)+", "+Nr.transform(e)+", "+Nr.transform(r)+", "+mt(ot.transform(o))+")"};function Pi(t){let e="",r="",o="",n="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),o=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),o=t.substring(3,4),n=t.substring(4,5),e+=e,r+=r,o+=o,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var de={test:jt("#"),parse:Pi,transform:Z.transform};var he=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_=he("deg"),lt=he("%"),d=he("px"),wo=he("vh"),Po=he("vw"),Gr={...lt,parse:t=>lt.parse(t)/100,transform:t=>lt.transform(t*100)};var ft={test:jt("hsl","hue"),parse:He("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+lt.transform(mt(e))+", "+lt.transform(mt(r))+", "+mt(ot.transform(o))+")"};var A={test:t=>Z.test(t)||de.test(t)||ft.test(t),parse:t=>Z.test(t)?Z.parse(t):ft.test(t)?ft.parse(t):de.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Z.transform(t):ft.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}};var Do=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Di(t){return isNaN(t)&&typeof t=="string"&&(t.match(Wt)?.length||0)+(t.match(Do)?.length||0)>0}var Fo="number",Io="color",Ri="var",Fi="var(",Ro="${}",Ii=/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 ut(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,a=e.replace(Ii,f=>(A.test(f)?(o.color.push(i),n.push(Io),r.push(A.parse(f))):f.startsWith(Fi)?(o.var.push(i),n.push(Ri),r.push(f)):(o.number.push(i),n.push(Fo),r.push(parseFloat(f))),++i,Ro)).split(Ro);return {values:r,split:a,indexes:o,types:n}}function Oi(t){return ut(t).values}function Oo({split:t,types:e}){let r=t.length;return o=>{let n="";for(let i=0;i<r;i++)if(n+=t[i],o[i]!==void 0){let s=e[i];s===Fo?n+=mt(o[i]):s===Io?n+=A.transform(o[i]):n+=o[i];}return n}}function ki(t){return Oo(ut(t))}var Bi=t=>typeof t=="number"?0:A.test(t)?A.getAnimatableNone(t):t,Ei=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Bi(t);function Li(t){let e=ut(t);return Oo(e)(e.values.map((o,n)=>Ei(o,e.split[n])))}var I={test:Di,parse:Oi,createTransformer:ki,getAnimatableNone:Li};function Kr(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ko({hue:t,saturation:e,lightness:r,alpha:o}){t/=360,e/=100,r/=100;let n=0,i=0,s=0;if(!e)n=i=s=r;else {let a=r<.5?r*(1+e):r+e-r*e,f=2*r-a;n=Kr(f,a,t+1/3),i=Kr(f,a,t),s=Kr(f,a,t-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function zt(t,e){return r=>r>0?e:t}var J=(t,e,r)=>t+(e-t)*r;var Wr=(t,e,r)=>{let o=t*t,n=r*(e*e-o)+o;return n<0?0:Math.sqrt(n)},Ni=[de,Z,ft],Gi=t=>Ni.find(e=>e.test(t));function Bo(t){let e=Gi(t);if(H(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return false;let r=e.parse(t);return e===ft&&(r=ko(r)),r}var jr=(t,e)=>{let r=Bo(t),o=Bo(e);if(!r||!o)return zt(t,e);let n={...r};return i=>(n.red=Wr(r.red,o.red,i),n.green=Wr(r.green,o.green,i),n.blue=Wr(r.blue,o.blue,i),n.alpha=J(r.alpha,o.alpha,i),Z.transform(n))};var Ue=new Set(["none","hidden"]);function Eo(t,e){return Ue.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Ki(t,e){return r=>J(t,e,r)}function _e(t){return typeof t=="number"?Ki:typeof t=="string"?Kt(t)?zt:A.test(t)?jr:zi:Array.isArray(t)?Lo:typeof t=="object"?A.test(t)?jr:Wi:zt}function Lo(t,e){let r=[...t],o=r.length,n=t.map((i,s)=>_e(i)(i,e[s]));return i=>{for(let s=0;s<o;s++)r[s]=n[s](i);return r}}function Wi(t,e){let r={...t,...e},o={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(o[n]=_e(t[n])(t[n],e[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function ji(t,e){let r=[],o={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let i=e.types[n],s=t.indexes[i][o[i]],a=t.values[s]??0;r[n]=a,o[i]++;}return r}var zi=(t,e)=>{let r=I.createTransformer(e),o=ut(t),n=ut(e);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?Ue.has(t)&&!n.values.length||Ue.has(e)&&!o.values.length?Eo(t,e):Tt(Lo(ji(o,n),n.values),r):(H(true,`Complex values '${t}' and '${e}' 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"),zt(t,e))};function Ye(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?J(t,e,r):_e(t)(t,e)}var No=t=>{let e=({timestamp:r})=>t(r);return {start:(r=true)=>N.update(e,r),stop:()=>ce(e),now:()=>Nt.isProcessing?Nt.timestamp:F.now()}};var qe=(t,e,r=10)=>{let o="",n=Math.max(Math.round(e/r),2);for(let i=0;i<n;i++)o+=Math.round(t(i/(n-1))*1e4)/1e4+", ";return `linear(${o.substring(0,o.length-2)})`};function $t(t){let e=0,r=50,o=t.next(e);for(;!o.done&&e<2e4;)e+=r,o=t.next(e);return e>=2e4?1/0:e}function Go(t,e=100,r){let o=r({...t,keyframes:[0,e]}),n=Math.min($t(o),2e4);return {type:"keyframes",ease:i=>o.next(n*i).value/e,duration:L(n)}}var w={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Hr(t,e){return t*Math.sqrt(1-e*e)}var $i=12;function Hi(t,e,r){let o=r;for(let n=1;n<$i;n++)o=o-t(o)/e(o);return o}var $r=.001;function Ui({duration:t=w.duration,bounce:e=w.bounce,velocity:r=w.velocity,mass:o=w.mass}){let n,i;H(t<=k(w.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=G(w.minDamping,w.maxDamping,s),t=G(w.minDuration,w.maxDuration,L(t)),s<1?(n=u=>{let m=u*s,l=m*t,c=m-r,h=Hr(u,s),p=Math.exp(-l);return $r-c/h*p},i=u=>{let l=u*s*t,c=l*r+r,h=Math.pow(s,2)*Math.pow(u,2)*t,p=Math.exp(-l),x=Hr(Math.pow(u,2),s);return (-n(u)+$r>0?-1:1)*((c-h)*p)/x}):(n=u=>{let m=Math.exp(-u*t),l=(u-r)*t+1;return -$r+m*l},i=u=>{let m=Math.exp(-u*t),l=(r-u)*(t*t);return m*l});let a=5/t,f=Hi(n,i,a);if(t=k(t),isNaN(f))return {stiffness:w.stiffness,damping:w.damping,duration:t};{let u=Math.pow(f,2)*o;return {stiffness:u,damping:s*2*Math.sqrt(o*u),duration:t}}}var _i=["duration","bounce"],Yi=["stiffness","damping","mass"];function Ko(t,e){return e.some(r=>t[r]!==void 0)}function qi(t){let e={velocity:w.velocity,stiffness:w.stiffness,damping:w.damping,mass:w.mass,isResolvedFromDuration:false,...t};if(!Ko(t,Yi)&&Ko(t,_i))if(e.velocity=0,t.visualDuration){let r=t.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:w.mass,stiffness:n,damping:i};}else {let r=Ui({...t,velocity:0});e={...e,...r,mass:w.mass},e.isResolvedFromDuration=true;}return e}function Ht(t=w.visualDuration,e=w.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:false,value:i},{stiffness:f,damping:u,mass:m,duration:l,velocity:c,isResolvedFromDuration:h}=qi({...r,velocity:-L(r.velocity||0)}),p=c||0,x=u/(2*Math.sqrt(f*m)),V=s-i,g=L(Math.sqrt(f/m)),b=Math.abs(V)<5;o||(o=b?w.restSpeed.granular:w.restSpeed.default),n||(n=b?w.restDelta.granular:w.restDelta.default);let y,T,M,P,R,v;if(x<1)M=Hr(g,x),P=(p+x*g*V)/M,y=S=>{let D=Math.exp(-x*g*S);return s-D*(P*Math.sin(M*S)+V*Math.cos(M*S))},R=x*g*P+V*M,v=x*g*V-P*M,T=S=>Math.exp(-x*g*S)*(R*Math.sin(M*S)+v*Math.cos(M*S));else if(x===1){y=D=>s-Math.exp(-g*D)*(V+(p+g*V)*D);let S=p+g*V;T=D=>Math.exp(-g*D)*(g*S*D-p);}else {let S=g*Math.sqrt(x*x-1);y=Y=>{let et=Math.exp(-x*g*Y),q=Math.min(S*Y,300);return s-et*((p+x*g*V)*Math.sinh(q)+S*V*Math.cosh(q))/S};let D=(p+x*g*V)/S,W=x*g*D-V*S,Vt=x*g*V-D*S;T=Y=>{let et=Math.exp(-x*g*Y),q=Math.min(S*Y,300);return et*(W*Math.sinh(q)+Vt*Math.cosh(q))};}let B={calculatedDuration:h&&l||null,velocity:S=>k(T(S)),next:S=>{if(!h&&x<1){let W=Math.exp(-x*g*S),Vt=Math.sin(M*S),Y=Math.cos(M*S),et=s-W*(P*Vt+V*Y),q=k(W*(R*Vt+v*Y));return a.done=Math.abs(q)<=o&&Math.abs(s-et)<=n,a.value=a.done?s:et,a}let D=y(S);if(h)a.done=S>=l;else {let W=k(T(S));a.done=Math.abs(W)<=o&&Math.abs(s-D)<=n;}return a.value=a.done?s:D,a},toString:()=>{let S=Math.min($t(B),2e4),D=qe(W=>B.next(S*W).value,S,30);return S+"ms "+D},toTransition:()=>{}};return B}Ht.applyToOptions=t=>{let e=Go(t,100,Ht);return t.ease=e.ease,t.duration=k(e.duration),t.type="keyframes",t};var Xi=5;function Xe(t,e,r){let o=Math.max(e-Xi,0);return ne(r-t(o),e-o)}function xe({keyframes:t,velocity:e=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:f,restDelta:u=.5,restSpeed:m}){let l=t[0],c={done:false,value:l},h=v=>a!==void 0&&v<a||f!==void 0&&v>f,p=v=>a===void 0?f:f===void 0||Math.abs(a-v)<Math.abs(f-v)?a:f,x=r*e,V=l+x,g=s===void 0?V:s(V);g!==V&&(x=g-l);let b=v=>-x*Math.exp(-v/o),y=v=>g+b(v),T=v=>{let B=b(v),S=y(v);c.done=Math.abs(B)<=u,c.value=c.done?g:S;},M,P,R=v=>{h(c.value)&&(M=v,P=Ht({keyframes:[c.value,p(c.value)],velocity:Xe(y,v,c.value),damping:n,stiffness:i,restDelta:u,restSpeed:m}));};return R(0),{calculatedDuration:null,next:v=>{let B=false;return !P&&M===void 0&&(B=true,T(v),R(v)),M!==void 0&&v>=M?P.next(v-M):(!B&&T(v),c)}}}function Zi(t,e,r){let o=[],n=r||K.mix||Ye,i=t.length-1;for(let s=0;s<i;s++){let a=n(t[s],t[s+1]);if(e){let f=Array.isArray(e)?e[s]||j:e;a=Tt(f,a);}o.push(a);}return o}function Wo(t,e,{clamp:r=true,ease:o,mixer:n}={}){let i=t.length;if(O(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return ()=>e[0];if(i===2&&e[0]===e[1])return ()=>e[1];let s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=Zi(e,o,n),f=a.length,u=m=>{if(s&&m<t[0])return e[0];let l=0;if(f>1)for(;l<t.length-2&&!(m<t[l+1]);l++);let c=oe(t[l],t[l+1],m);return a[l](c)};return r?m=>u(G(t[0],t[i-1],m)):u}function jo(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let n=oe(0,e,o);t.push(J(r,1,n));}}function zo(t){let e=[0];return jo(e,t.length-1),e}function $o(t,e){return t.map(r=>r*e)}function Ji(t,e){return t.map(()=>e||le).splice(0,t.length-1)}function ct({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let n=Er(o)?o.map(We):We(o),i={done:false,value:e[0]},s=$o(r&&r.length===e.length?r:zo(e),t),a=Wo(s,e,{ease:Array.isArray(n)?n:Ji(e,n)});return {calculatedDuration:t,next:f=>(i.value=a(f),i.done=f>=t,i)}}var Qi=t=>t!==null;function pt(t,{repeat:e,repeatType:r="loop"},o,n=1){let i=t.filter(Qi),a=n<0||e&&r!=="loop"&&e%2===1?0:i.length-1;return !a||o===void 0?i[a]:o}var ts={decay:xe,inertia:xe,tween:ct,keyframes:ct,spring:Ht};function Ze(t){typeof t.type=="string"&&(t.type=ts[t.type]);}var dt=class{constructor(){this.updateFinished();}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e;});}notifyFinished(){this.resolve();}then(e,r){return this.finished.then(e,r)}};var es=t=>t/100,nt=class extends dt{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:false,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==F.now()&&this.tick(F.now()),this.isStopped=true,this.state!=="idle"&&(this.teardown(),this.options.onStop?.());},this.options=e,this.initAnimation(),this.play(),e.autoplay===false&&this.pause();}initAnimation(){let{options:e}=this;Ze(e);let{type:r=ct,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:s=0}=e,{keyframes:a}=e,f=r||ct;process.env.NODE_ENV!=="production"&&f!==ct&&O(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),f!==ct&&typeof a[0]!="number"&&(this.mixKeyframes=Tt(es,Ye(a[0],a[1])),a=[0,100]);let u=f({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=$t(u));let{calculatedDuration:m}=u;this.calculatedDuration=m,this.resolvedDuration=m+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=u;}updateTime(e){let r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r;}tick(e,r=false){let{generator:o,totalDuration:n,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:f}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:m,repeat:l,repeatType:c,repeatDelay:h,type:p,onUpdate:x,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let y=this.currentTime,T=o;if(l){let v=Math.min(this.currentTime,n)/a,B=Math.floor(v),S=v%1;!S&&v>=1&&(S=1),S===1&&B--,B=Math.min(B,l+1),B%2&&(c==="reverse"?(S=1-S,h&&(S-=h/a)):c==="mirror"&&(T=s)),y=G(0,1,S)*a;}let M;b?(this.delayState.value=m[0],M=this.delayState):M=T.next(y),i&&!b&&(M.value=i(M.value));let{done:P}=M;!b&&f!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return R&&p!==xe&&(M.value=pt(m,this.options,V,this.speed)),x&&x(M.value),R&&this.finish(),M}then(e,r){return this.finished.then(e,r)}get duration(){return L(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(false):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e));}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let r=this.generator.next(e).value;return Xe(o=>this.generator.next(o).value,e,r)}get speed(){return this.playbackSpeed}set speed(e){let r=this.playbackSpeed!==e;r&&this.driver&&this.updateTime(F.now()),this.playbackSpeed=e,r&&this.driver&&(this.time=L(this.currentTime));}play(){if(this.isStopped)return;let{driver:e=No,startTime:r}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start();}pause(){this.state="paused",this.updateTime(F.now()),this.holdTime=this.currentTime;}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null;}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.();}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.();}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null;}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0);}sample(e){return this.startTime=0,this.tick(e,true)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Ho(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1]);}var vt=t=>t*180/Math.PI,Ur=t=>{let e=vt(Math.atan2(t[1],t[0]));return _r(e)},rs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ur,rotateZ:Ur,skewX:t=>vt(Math.atan(t[1])),skewY:t=>vt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},_r=t=>(t=t%360,t<0&&(t+=360),t),Uo=Ur,_o=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Yo=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),os={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_o,scaleY:Yo,scale:t=>(_o(t)+Yo(t))/2,rotateX:t=>_r(vt(Math.atan2(t[6],t[5]))),rotateY:t=>_r(vt(Math.atan2(-t[2],t[0]))),rotateZ:Uo,rotate:Uo,skewX:t=>vt(Math.atan(t[4])),skewY:t=>vt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Je(t){return t.includes("scale")?1:0}function Qe(t,e){if(!t||t==="none")return Je(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=os,n=r;else {let a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=rs,n=a;}if(!n)return Je(e);let i=o[e],s=n[1].split(",").map(ns);return typeof i=="function"?i(s):s[i]}var qo=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return Qe(r,e)};function ns(t){return parseFloat(t.trim())}var Q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set([...Q,"pathRotation"]);var Yr=t=>t===X||t===d,is=new Set(["x","y","z"]),ss=Q.filter(t=>!is.has(t));function Xo(t){let e=[];return ss.forEach(r=>{let o=t.getValue(r);o!==void 0&&(e.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),e}var it={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:o})=>{let n=t.max-t.min;return o==="border-box"?n:n-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:o})=>{let n=t.max-t.min;return o==="border-box"?n:n-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Qe(e,"x"),y:(t,{transform:e})=>Qe(e,"y")};it.translateX=it.x;it.translateY=it.y;var Mt=new Set,qr=false,Xr=false,Zr=false;function Zo(){if(Xr){let t=Array.from(Mt).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),r=new Map;e.forEach(o=>{let n=Xo(o);n.length&&(r.set(o,n),o.render());}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([i,s])=>{o.getValue(i)?.set(s);});}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY);});}Xr=false,qr=false,Mt.forEach(t=>t.complete(Zr)),Mt.clear();}function Jo(){Mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Xr=true);});}function Qo(){Zr=true,Jo(),Zo(),Zr=false;}var ht=class{constructor(e,r,o,n,i,s=false){this.state="pending",this.isAsync=false,this.needsMeasurement=false,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=s;}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),qr||(qr=true,N.read(Jo),N.resolveKeyframes(Zo))):(this.readKeyframes(),this.complete());}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:o,motionValue:n}=this;if(e[0]===null){let i=n?.get(),s=e[e.length-1];if(i!==void 0)e[0]=i;else if(o&&r){let a=o.readValue(r,s);a!=null&&(e[0]=a);}e[0]===void 0&&(e[0]=s),n&&i===void 0&&n.set(e[0]);}Ho(e);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mt.delete(this);}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}};var tn=t=>t.startsWith("--");function tr(t,e,r){tn(e)?t.style.setProperty(e,r):t.style[e]=r;}var en={};function er(t,e){let r=re(t);return ()=>en[e]??r()}var rn=er(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var rr=er(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return false}return true},"linearEasing");var Ct=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;var Jr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-0.59]),backOut:Ct([.33,1.53,.69,.99])};function Qr(t,e){if(t)return typeof t=="function"?rr()?qe(t,e):"ease-out":fe(t)?Ct(t):Array.isArray(t)?t.map(r=>Qr(r,e)||Jr.easeOut):Jr[t]}function on(t,e,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:f}={},u=void 0){let m={[e]:r};f&&(m.offset=f);let l=Qr(a,n);Array.isArray(l)&&(m.easing=l);let c={delay:o,duration:n,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};u&&(c.pseudoElement=u);let h=t.animate(m,c);return h}function or(t){return typeof t=="function"&&"applyToOptions"in t}function nn({type:t,...e}){return or(t)&&rr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Ut=class extends dt{constructor(e){if(super(),this.finishedTime=null,this.isStopped=false,this.manualStartTime=null,!e)return;let{element:r,name:o,keyframes:n,pseudoElement:i,allowFlatten:s=false,finalKeyframe:a,onComplete:f}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,O(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=nn(e);this.animation=on(r,o,n,u,i),u.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let m=pt(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(m),tr(r,o,m),this.animation.cancel();}f?.(),this.notifyFinished();};}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished());}pause(){this.animation.pause();}complete(){this.animation.finish?.();}cancel(){try{this.animation.cancel();}catch{}}stop(){if(this.isStopped)return;this.isStopped=true;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel());}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.();}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return L(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(Number(this.animation.currentTime)||0)}set time(e){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),r&&this.animation.pause();}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e;}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e;}attachTimeline({timeline:e,rangeStart:r,rangeEnd:o,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rn()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),j):n(this)}};var sn={anticipate:se,backInOut:ie,circInOut:me};function as(t){return t in sn}function an(t){typeof t.ease=="string"&&as(t.ease)&&(t.ease=sn[t.ease]);}var to=10,nr=class extends Ut{constructor(e){an(e),Ze(e),super(e),e.startTime!==void 0&&e.autoplay!==false&&(this.startTime=e.startTime),this.options=e;}updateMotionValue(e){let{motionValue:r,onUpdate:o,onComplete:n,element:i,...s}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}let a=new nt({...s,autoplay:false}),f=Math.max(to,F.now()-this.startTime),u=G(0,to,f-to),m=a.sample(f).value,{name:l}=this.options;i&&l&&tr(i,l,m),r.setWithVelocity(a.sample(Math.max(0,f-u)).value,m,u),a.stop();}};var eo=(t,e)=>e==="zIndex"?false:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(I.test(t)||t==="0")&&!t.startsWith("url("));function ms(t){let e=t[0];if(t.length===1)return true;for(let r=0;r<t.length;r++)if(t[r]!==e)return true}function mn(t,e,r,o){let n=t[0];if(n===null)return false;if(e==="display"||e==="visibility")return true;let i=t[t.length-1],s=eo(n,e),a=eo(i,e);return H(s===a,`You are trying to animate ${e} from "${n}" to "${i}". "${s?i:n}" is not an animatable value.`,"value-not-animatable"),!s||!a?false:ms(t)||(r==="spring"||or(r))&&o}function ge(t){t.duration=0,t.type="keyframes";}var ir=new Set(["opacity","clipPath","filter","transform"]);var ls=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ln(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&ls.test(t[e]))return true;return false}var fs=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),us=re(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fn(t){let{motionValue:e,name:r,repeatDelay:o,repeatType:n,damping:i,type:s,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return false;let{onUpdate:u,transformTemplate:m}=e.owner.getProps();return us()&&r&&(ir.has(r)||fs.has(r)&&ln(a))&&(r!=="transform"||!m)&&!u&&!o&&n!=="mirror"&&i!==0&&s!=="inertia"}var cs=40,sr=class extends dt{constructor({autoplay:e=true,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:f,motionValue:u,element:m,...l}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel();},this.createdAt=F.now();let c={autoplay:e,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:s,name:f,motionValue:u,element:m,...l},h=m?.KeyframeResolver||ht;this.keyframeResolver=new h(a,(p,x,V)=>this.onKeyframesResolved(p,x,c,!V),f,u,m),this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(e,r,o,n){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:f,isHandoff:u,onUpdate:m}=o;this.resolvedAt=F.now();let l=true;mn(e,i,s,a)||(l=false,(K.instantAnimations||!f)&&m?.(pt(e,o,r)),e[0]=e[e.length-1],ge(o),o.repeat=0);let h={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>cs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:e},p=l&&!u&&fn(h),x=h.motionValue?.owner?.current,V;if(p)try{V=new nr({...h,element:x});}catch{V=new nt(h);}else V=new nt(h);V.finished.then(()=>{this.notifyFinished();}).catch(j),this.pendingTimeline&&(this.stopTimeline=V.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=V;}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e;}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e;}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play();}pause(){this.animation.pause();}complete(){this.animation.complete();}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel();}};function ar(t,e,r,o=0,n=1){let i=Array.from(t).sort((u,m)=>u.sortNodePosition(m)).indexOf(e),s=t.size,a=(s-1)*o;return typeof r=="function"?r(i,s):n===1?i*o:a-i*o}var un=30,ps=t=>!isNaN(parseFloat(t)),ro=class{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=F.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty();},this.hasAnimated=false,this.setCurrent(e),this.owner=r.owner;}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ps(this.current));}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt;}onChange(e){return process.env.NODE_ENV!=="production"&&rt(false,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new St);let o=this.events[e].add(r);return e==="change"?()=>{o(),N.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let e in this.events)this.events[e].clear();}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r;}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e);}setWithVelocity(e,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o;}jump(e,r=true){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}dirty(){this.events.change?.notify(this.current);}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e);}removeDependent(e){this.dependents&&this.dependents.delete(e);}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>un)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,un);return ne(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=true,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}};function At(t,e){return new ro(t,e)}function mr(t,e){if(t?.inherit&&e){let{inherit:r,...o}=t;return {...e,...o}}return t}function lr(t,e){let r=t?.[e]??t?.default??t;return r!==t?mr(r,t):r}var ds={type:"spring",stiffness:500,damping:25,restSpeed:10},hs=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xs={type:"keyframes",duration:.8},gs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pn=(t,{keyframes:e})=>e.length>2?xs:U.has(t)?t.startsWith("scale")?hs(e[1]):ds:gs;var ys=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function dn(t){for(let e in t)if(!ys.has(e))return true;return false}var hn=(t,e,r,o={},n,i)=>s=>{let a=lr(o,t)||{},f=a.delay||o.delay||0,{elapsed:u=0}=o;u=u-k(f);let m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:c=>{e.set(c),a.onUpdate&&a.onUpdate(c);},onComplete:()=>{s(),a.onComplete&&a.onComplete();},name:t,motionValue:e,element:i?void 0:n};dn(a)||Object.assign(m,pn(t,m)),m.duration&&(m.duration=k(m.duration)),m.repeatDelay&&(m.repeatDelay=k(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let l=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(ge(m),m.delay===0&&(l=true)),(K.instantAnimations||K.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(l=true,ge(m),m.delay=0),m.allowFlatten=!a.type&&!a.ease,l&&!i&&e.get()!==void 0){let c=pt(m.keyframes,a);if(c!==void 0){N.update(()=>{m.onUpdate(c),m.onComplete();});return}}return a.isSync?new nt(m):new sr(m)};var Vs=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bs(t){let e=Vs.exec(t);if(!e)return [,];let[,r,o,n]=e;return [`--${r??o}`,n]}var Ts=4;function oo(t,e,r=1){O(r<=Ts,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=bs(t);if(!o)return;let i=window.getComputedStyle(e).getPropertyValue(o);if(i){let s=i.trim();return te(s)?parseFloat(s):s}return Kt(n)?oo(n,e,r+1):n}function xn(t){let e=[{},{}];return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity();}),e}function wt(t,e,r,o){if(typeof e=="function"){let[n,i]=xn(o);e=e(r!==void 0?r:t.custom,n,i);}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,i]=xn(o);e=e(r!==void 0?r:t.custom,n,i);}return e}function z(t,e,r){let o=t.getProps();return wt(o,e,r!==void 0?r:o.custom,t)}var fr=new Set(["width","height","top","left","right","bottom",...Q]);var ye=t=>Array.isArray(t);function Ss(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,At(r));}function vs(t){return ye(t)?t[t.length-1]||0:t}function _t(t,e){let r=z(t,e),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let s in i){let a=vs(i[s]);Ss(t,s,a);}}var C=t=>!!(t&&t.getVelocity);function gn(t){return !!(C(t)&&t.add)}function yn(t,e){let r=t.getValue("willChange");if(gn(r))return r.add(e);if(!r&&K.WillChange){let o=new K.WillChange("auto");t.addValue("willChange",o),o.add(e);}}function Yt(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Vn="framerAppearId",Ve="data-"+Yt(Vn);function bn(t){return t.props[Ve]}function Ms({protectedKeys:t,needsAnimating:e},r){let o=t.hasOwnProperty(r)&&e[r]!==true;return e[r]=false,o}function ur(t,e,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:s,...a}=e,f=t.getDefaultTransition();i=i?mr(i,f):f;let u=i?.reduceMotion,m=i?.skipAnimations;o&&(i=o);let l=[],c=n&&t.animationState&&t.animationState.getState()[n],h=i?.path;h&&h.animateVisualElement(t,a,i,r,l);for(let p in a){let x=t.getValue(p,t.latestValues[p]??null),V=a[p];if(V===void 0||c&&Ms(c,p))continue;let g={delay:r,...lr(i||{},p)};m&&(g.skipAnimations=true);let b=x.get();if(b!==void 0&&!x.isAnimating()&&!Array.isArray(V)&&V===b&&!g.velocity){N.update(()=>x.set(V));continue}let y=false;if(window.MotionHandoffAnimation){let P=bn(t);if(P){let R=window.MotionHandoffAnimation(P,p,N);R!==null&&(g.startTime=R,y=true);}}yn(t,p);let T=u??t.shouldReduceMotion;x.start(hn(p,x,V,T&&fr.has(p)?{type:false}:g,t,y));let M=x.animation;M&&l.push(M);}if(s){let p=()=>N.update(()=>{s&&_t(t,s);});l.length?Promise.all(l).then(p):p();}return l}function cr(t,e,r={}){let o=z(t,e,r.type==="exit"?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(ur(t,o,r)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(f=0)=>{let{delayChildren:u=0,staggerChildren:m,staggerDirection:l}=n;return Cs(t,e,f,u,m,l,r)}:()=>Promise.resolve(),{when:a}=n;if(a){let[f,u]=a==="beforeChildren"?[i,s]:[s,i];return f().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function Cs(t,e,r=0,o=0,n=0,i=1,s){let a=[];for(let f of t.variantChildren)f.notify("AnimationStart",e),a.push(cr(f,e,{...s,delay:r+(typeof o=="function"?0:o)+ar(t.variantChildren,f,o,n,i)}).then(()=>f.notify("AnimationComplete",e)));return Promise.all(a)}function be(t,e,r={}){t.notify("AnimationStart",e);let o;if(Array.isArray(e)){let n=e.map(i=>cr(t,i,r));o=Promise.all(n);}else if(typeof e=="string")o=cr(t,e,r);else {let n=typeof e=="function"?z(t,e,r.custom):e;o=Promise.all(ur(t,n,r));}return o.then(()=>{t.notify("AnimationComplete",e);})}var Tn={test:t=>t==="auto",parse:t=>t};var pr=t=>e=>e.test(t);var no=[X,d,lt,_,Po,wo,Tn],io=t=>no.find(pr(t));function Sn(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ee(t):true}var As=new Set(["brightness","contrast","saturate","opacity"]);function ws(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[o]=r.match(Wt)||[];if(!o)return t;let n=r.replace(o,""),i=As.has(e)?1:0;return o!==r&&(i*=100),e+"("+i+n+")"}var Ps=/\b([a-z-]*)\(.*?\)/gu,Te={...I,getAnimatableNone:t=>{let e=t.match(Ps);return e?e.map(ws).join(" "):t}};var Se={...I,getAnimatableNone:t=>{let e=I.parse(t);return I.createTransformer(t)(e.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var so={...X,transform:Math.round};var vn={rotate:_,pathRotation:_,rotateX:_,rotateY:_,rotateZ:_,scale:pe,scaleX:pe,scaleY:pe,scaleZ:pe,skew:_,skewX:_,skewY:_,distance:d,translateX:d,translateY:d,translateZ:d,x:d,y:d,z:d,perspective:d,transformPerspective:d,opacity:ot,originX:Gr,originY:Gr,originZ:d};var Pt={borderWidth:d,borderTopWidth:d,borderRightWidth:d,borderBottomWidth:d,borderLeftWidth:d,borderRadius:d,borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomRightRadius:d,borderBottomLeftRadius:d,width:d,maxWidth:d,height:d,maxHeight:d,top:d,right:d,bottom:d,left:d,inset:d,insetBlock:d,insetBlockStart:d,insetBlockEnd:d,insetInline:d,insetInlineStart:d,insetInlineEnd:d,padding:d,paddingTop:d,paddingRight:d,paddingBottom:d,paddingLeft:d,paddingBlock:d,paddingBlockStart:d,paddingBlockEnd:d,paddingInline:d,paddingInlineStart:d,paddingInlineEnd:d,margin:d,marginTop:d,marginRight:d,marginBottom:d,marginLeft:d,marginBlock:d,marginBlockStart:d,marginBlockEnd:d,marginInline:d,marginInlineStart:d,marginInlineEnd:d,fontSize:d,backgroundPositionX:d,backgroundPositionY:d,...vn,zIndex:so,fillOpacity:ot,strokeOpacity:ot,numOctaves:so};var Ds={...Pt,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:Te,WebkitFilter:Te,mask:Se,WebkitMask:Se},dr=t=>Ds[t];var Rs=new Set([Te,Se]);function hr(t,e){let r=dr(t);return Rs.has(r)||(r=I),r.getAnimatableNone?r.getAnimatableNone(e):void 0}var Fs=new Set(["auto","none","0"]);function Mn(t,e,r){let o=0,n;for(;o<t.length&&!n;){let i=t[o];typeof i=="string"&&!Fs.has(i)&&ut(i).values.length&&(n=t[o]),o++;}if(n&&r)for(let i of e)t[i]=hr(r,n);}var xr=class extends ht{constructor(e,r,o,n,i){super(e,r,o,n,i,true);}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<e.length;m++){let l=e[m];if(typeof l=="string"&&(l=l.trim(),Kt(l))){let c=oo(l,r.current);c!==void 0&&(e[m]=c),m===e.length-1&&(this.finalKeyframe=l);}}if(this.resolveNoneKeyframes(),!fr.has(o)||e.length!==2)return;let[n,i]=e,s=io(n),a=io(i),f=Lr(n),u=Lr(i);if(f!==u&&it[o]){this.needsMeasurement=true;return}if(s!==a)if(Yr(s)&&Yr(a))for(let m=0;m<e.length;m++){let l=e[m];typeof l=="string"&&(e[m]=parseFloat(l));}else it[o]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,o=[];for(let n=0;n<e.length;n++)(e[n]===null||Sn(e[n]))&&o.push(n);o.length&&Mn(e,o,r);}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[o](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&e.getValue(o,n).jump(n,false);}measureEndState(){let{element:e,name:r,unresolvedKeyframes:o}=this;if(!e||!e.current)return;let n=e.getValue(r);n&&n.jump(this.measuredOrigin,false);let i=o.length-1,s=o[i];o[i]=it[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,f])=>{e.getValue(a).set(f);}),this.resolveNoneKeyframes();}};var ve=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var{schedule:Cn}=je(queueMicrotask,false);var Is=[...no,A,I],An=t=>Is.find(pr(t));var wn=()=>({min:0,max:0}),gr=()=>({x:wn(),y:wn()});var Pn=new WeakMap;function st(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function tt(t){return typeof t=="string"||Array.isArray(t)}var yr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Me=["initial",...yr];function xt(t){return st(t.animate)||Me.some(e=>tt(t[e]))}function Ce(t){return !!(xt(t)||t.variants)}function Dn(t,e,r){for(let o in e){let n=e[o],i=r[o];if(C(n))t.addValue(o,n);else if(C(i))t.addValue(o,At(n,{owner:t}));else if(i!==n)if(t.hasValue(o)){let s=t.getValue(o);s.liveStyle===true?s.jump(n):s.hasAnimated||s.set(n);}else {let s=t.getStaticValue(o);t.addValue(o,At(s!==void 0?s:n,{owner:t}));}}for(let o in r)e[o]===void 0&&t.removeValue(o);return e}var gt={current:null},Dt={current:false};var Os=typeof window<"u";function Ae(){if(Dt.current=true,!!Os)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gt.current=t.matches;t.addEventListener("change",e),e();}else gt.current=false;}var Rn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vr={};function Pe(t){Vr=t;}function ao(){return Vr}var we=class{scrapeMotionValuesFromProps(e,r,o){return {}}constructor({parent:e,props:r,presenceContext:o,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:s,visualState:a},f={}){this.current=null,this.children=new Set,this.isVariantNode=false,this.isControllingVariants=false,this.shouldReduceMotion=null,this.shouldSkipAnimations=false,this.values=new Map,this.KeyframeResolver=ht,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=false,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=()=>{let h=F.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,N.render(this.render,false,true));};let{latestValues:u,renderState:m}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=f,this.blockInitialAnimation=!!s,this.isControllingVariants=xt(r),this.isVariantNode=Ce(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{},this);for(let h in c){let p=c[h];u[h]!==void 0&&C(p)&&p.set(u[h]);}}mount(e){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,Pn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=false:this.reducedMotionConfig==="always"?this.shouldReduceMotion=true:(Dt.current||Ae(),this.shouldReduceMotion=gt.current),process.env.NODE_ENV!=="production"&&rt(this.shouldReduceMotion!==true,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??false,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=true;}unmount(){this.projection&&this.projection.unmount(),ce(this.notifyUpdate),ce(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=false);}this.current=null;}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e);}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e);}bindToMotionValue(e,r){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),r.accelerate&&ir.has(e)&&this.current instanceof HTMLElement){let{factory:s,keyframes:a,times:f,ease:u,duration:m}=r.accelerate,l=new Ut({element:this.current,name:e,keyframes:a,times:f,ease:u,duration:k(m)}),c=s(l);this.valueSubscriptions.set(e,()=>{c(),l.cancel();});return}let o=U.has(e);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&N.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=true),this.scheduleRender();}),i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{n(),i&&i();});}sortNodePosition(e){return !this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Vr){let r=Vr[e];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[e]&&n&&o(this.props)&&(this.features[e]=new n(this)),this.features[e]){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=true);}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r;}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Rn.length;o++){let n=Rn[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,s=e[i];s&&(this.propEventSubscriptions[n]=this.on(n,s));}this.prevMotionValues=Dn(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let o=this.values.get(e);r!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get());}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState);}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&r!==void 0&&(o=At(r===null?void 0:r,{owner:this}),this.addValue(e,o)),o}readValue(e,r){let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(te(o)||ee(o))?o=parseFloat(o):!An(o)&&I.test(r)&&(o=hr(e,r)),this.setBaseTarget(e,C(o)?o.get():o)),C(o)?o.get():o}setBaseTarget(e,r){this.baseTarget[e]=r;}getBaseTarget(e){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let i=wt(this.props,r,this.presenceContext?.custom);i&&(o=i[e]);}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!C(n)?n:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new St),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r);}scheduleRenderMicrotask(){Cn.render(this.render);}};var qt=class extends we{constructor(){super(...arguments),this.KeyframeResolver=xr;}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){let o=e.style;return o?o[r]:void 0}removeValueFromRenderState(e,{vars:r,style:o}){delete r[e],delete o[e];}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;C(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}};var Rt=class{constructor(e){this.isMounted=false,this.node=e;}update(){}};function Fn({top:t,left:e,right:r,bottom:o}){return {x:{min:e,max:r},y:{min:t,max:o}}}function In(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}function On(t,e){return Fn(In(t.getBoundingClientRect(),e))}var ks={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bs=Q.length;function kn(t,e,r){let o="",n=true;for(let s=0;s<Bs;s++){let a=Q[s],f=t[a];if(f===void 0)continue;let u=true;if(typeof f=="number")u=f===(a.startsWith("scale")?1:0);else {let m=parseFloat(f);u=a.startsWith("scale")?m===1:m===0;}if(!u||r){let m=ve(f,Pt[a]);if(!u){n=false;let l=ks[a]||a;o+=`${l}(${m}) `;}r&&(e[a]=m);}}let i=t.pathRotation;return i&&(n=false,o+=`rotate(${ve(i,Pt.pathRotation)}) `),o=o.trim(),r?o=r(e,n?"":o):n&&(o="none"),o}function Ft(t,e,r){let{style:o,vars:n,transformOrigin:i}=t,s=false,a=false;for(let f in e){let u=e[f];if(U.has(f)){s=true;continue}else if($e(f)){n[f]=u;continue}else {let m=ve(u,Pt[f]);f.startsWith("origin")?(a=true,i[f]=m):o[f]=m;}}if(e.transform||(s||r?o.transform=kn(e,t.transform,r):o.transform&&(o.transform="none")),a){let{originX:f="50%",originY:u="50%",originZ:m=0}=i;o.transformOrigin=`${f} ${u} ${m}`;}}function br(t,{style:e,vars:r},o,n){let i=t.style,s;for(s in e)i[s]=e[s];n?.applyProjectionStyles(i,o);for(s in r)i.setProperty(s,r[s]);}function Bn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(d.test(t))t=parseFloat(t);else return t;let r=Bn(t,e.target.x),o=Bn(t,e.target.y);return `${r}% ${o}%`}};var En={correct:(t,{treeScale:e,projectionDelta:r})=>{let o=t,n=I.parse(t);if(n.length>5)return o;let i=I.createTransformer(t),s=typeof n[0]!="number"?1:0,a=r.x.scale*e.x,f=r.y.scale*e.y;n[0+s]/=a,n[1+s]/=f;let u=J(a,f,.5);return typeof n[2+s]=="number"&&(n[2+s]/=u),typeof n[3+s]=="number"&&(n[3+s]/=u),i(n)}};var Ln={borderRadius:{...Xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomLeftRadius:Xt,borderBottomRightRadius:Xt,boxShadow:En};function De(t,{layout:e,layoutId:r}){return U.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Ln[t]||t==="opacity")}function It(t,e,r){let o=t.style,n=e?.style,i={};if(!o)return i;for(let s in o)(C(o[s])||n&&C(n[s])||De(s,t)||r?.getValue(s)?.liveStyle!==void 0)&&(i[s]=o[s]);return i}function Es(t){return window.getComputedStyle(t)}var Re=class extends qt{constructor(){super(...arguments),this.type="html",this.renderInstance=br;}readValueFromInstance(e,r){if(U.has(r))return this.projection?.isProjecting?Je(r):qo(e,r);{let o=Es(e),n=($e(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:r}){return On(e,r)}build(e,r,o){Ft(e,r,o.transformTemplate);}scrapeMotionValuesFromProps(e,r,o){return It(e,r,o)}};var Ls={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ns={offset:"strokeDashoffset",array:"strokeDasharray"};function Nn(t,e,r=1,o=0,n=true){t.pathLength=1;let i=n?Ls:Ns;t[i.offset]=`${-o}`,t[i.array]=`${e} ${r}`;}var Gs=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fe(t,{attrX:e,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:s=0,...a},f,u,m){if(Ft(t,a,u),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:l,style:c}=t;l.transform&&(c.transform=l.transform,delete l.transform),(c.transform||l.transformOrigin)&&(c.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),c.transform&&(c.transformBox=m?.transformBox??"fill-box",delete l.transformBox);for(let h of Gs)l[h]!==void 0&&(c[h]=l[h],delete l[h]);e!==void 0&&(l.x=e),r!==void 0&&(l.y=r),o!==void 0&&(l.scale=o),n!==void 0&&Nn(l,n,i,s,false);}var Tr=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"]);var Ie=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gn(t,e,r,o){br(t,e,void 0,o);for(let n in e.attrs)t.setAttribute(Tr.has(n)?n:Yt(n),e.attrs[n]);}function Oe(t,e,r){let o=It(t,e,r);for(let n in t)if(C(t[n])||C(e[n])){let i=Q.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=t[n];}return o}var ke=class extends qt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=gr;}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(U.has(r)){let o=dr(r);return o&&o.default||0}return r=Tr.has(r)?r:Yt(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,o){return Oe(e,r,o)}build(e,r,o){Fe(e,r,this.isSVGTag,o.transformTemplate,o.style);}renderInstance(e,r,o,n){Gn(e,r,o,n);}mount(e){this.isSVGTag=Ie(e.tagName),super.mount(e);}};var Ks=Me.length;function mo(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent?mo(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}let e={};for(let r=0;r<Ks;r++){let o=Me[r],n=t.props[o];(tt(n)||n===false)&&(e[o]=n);}return e}function lo(t,e){if(!Array.isArray(e))return false;let r=e.length;if(r!==t.length)return false;for(let o=0;o<r;o++)if(e[o]!==t[o])return false;return true}var Ws=[...yr].reverse(),js=yr.length;function zs(t){return e=>Promise.all(e.map(({animation:r,options:o})=>be(t,r,o)))}function fo(t){let e=zs(t),r=Kn(),o=true,n=false,i=u=>(m,l)=>{let c=z(t,l,u==="exit"?t.presenceContext?.custom:void 0);if(c){let{transition:h,transitionEnd:p,...x}=c;m={...m,...x,...p};}return m};function s(u){e=u(t);}function a(u){let{props:m}=t,l=mo(t.parent)||{},c=[],h=new Set,p={},x=1/0;for(let g=0;g<js;g++){let b=Ws[g],y=r[b],T=m[b]!==void 0?m[b]:l[b],M=tt(T),P=b===u?y.isActive:null;P===false&&(x=g);let R=T===l[b]&&T!==m[b]&&M;if(R&&(o||n)&&t.manuallyAnimateOnMount&&(R=false),y.protectedKeys={...p},!y.isActive&&P===null||!T&&!y.prevProp||st(T)||typeof T=="boolean")continue;if(b==="exit"&&y.isActive&&P!==true){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}let v=Wn(y.prevProp,T),B=v||b===u&&y.isActive&&!R&&M||g>x&&M,S=false,D=Array.isArray(T)?T:[T],W=D.reduce(i(b),{});P===false&&(W={});let{prevResolvedValues:Vt={}}=y,Y={...Vt,...W},et=E=>{B=true,h.has(E)&&(S=true,h.delete(E)),y.needsAnimating[E]=true;let $=t.getValue(E);$&&($.liveStyle=false);};for(let E in Y){let $=W[E],bt=Vt[E];if(p.hasOwnProperty(E))continue;let kt=false;ye($)&&ye(bt)?kt=!lo($,bt)||v:kt=$!==bt,kt?$!=null?et(E):h.add(E):$!==void 0&&h.has(E)?et(E):y.protectedKeys[E]=true;}y.prevProp=T,y.prevResolvedValues=W,y.isActive&&(p={...p,...W}),(o||n)&&t.blockInitialAnimation&&(B=false);let q=R&&v;B&&(!q||S)&&c.push(...D.map(E=>{let $={type:b};if(typeof E=="string"&&(o||n)&&!q&&t.manuallyAnimateOnMount&&t.parent){let{parent:bt}=t,kt=z(bt,E);if(bt.enteringChildren&&kt){let{delayChildren:gi}=kt.transition||{};$.delay=ar(bt.enteringChildren,t,gi);}}return {animation:E,options:$}}));}if(h.size){let g={};if(typeof m.initial!="boolean"){let b=z(t,Array.isArray(m.initial)?m.initial[0]:m.initial);b&&b.transition&&(g.transition=b.transition);}h.forEach(b=>{let y=t.getBaseTarget(b),T=t.getValue(b);T&&(T.liveStyle=true),g[b]=y??null;}),c.push({animation:g});}let V=!!c.length;return o&&(m.initial===false||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(V=false),o=false,n=false,V?e(c):Promise.resolve()}function f(u,m){if(r[u].isActive===m)return Promise.resolve();t.variantChildren?.forEach(c=>c.animationState?.setActive(u,m)),r[u].isActive=m;let l=a(u);for(let c in r)r[c].protectedKeys={};return l}return {animateChanges:a,setActive:f,setAnimateFunction:s,getState:()=>r,reset:()=>{r=Kn(),n=true;}}}function Wn(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!lo(e,t):false}function Ot(t=false){return {isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kn(){return {animate:Ot(true),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}function uo(t){return C(t)?t.get():t}var jn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zn=false;function $s(){if(zn)return;let t={};for(let e in jn)t[e]={isEnabled:r=>jn[e].some(o=>!!r[o])};Pe(t),zn=true;}function Sr(){return $s(),ao()}function Be(t){let e=Sr();for(let r in t)e[r]={...e[r],...t[r]};Pe(e);}function qs({children:t,features:e,strict:r=false}){let[,o]=useState(!co(e)),n=useRef(void 0);if(!co(e)){let{renderer:i,...s}=e;n.current=i,Be(s);}return useEffect(()=>{co(e)&&e().then(({renderer:i,...s})=>{Be(s),n.current=i,o(true);});},[]),jsx(Bt.Provider,{value:{renderer:n.current,strict:r},children:t})}function co(t){return typeof t=="function"}var $n=createContext({});var vr=createContext({transformPagePoint:t=>t,isStatic:false,reducedMotion:"never"});var yt=createContext({});function Hn(t,e){if(xt(t)){let{initial:r,animate:o}=t;return {initial:r===false||tt(r)?r:void 0,animate:tt(o)?o:void 0}}return t.inherit!==false?e:{}}function _n(t){let{initial:e,animate:r}=Hn(t,useContext(yt));return useMemo(()=>({initial:e,animate:r}),[Un(e),Un(r)])}function Un(t){return Array.isArray(t)?t.join(" "):t}var Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function po(t,e,r){for(let o in e)!C(e[o])&&!De(o,r)&&(t[o]=e[o]);}function ra({transformTemplate:t},e){return useMemo(()=>{let r=Zt();return Ft(r,e,t),Object.assign({},r.vars,r.style)},[e])}function oa(t,e){let r=t.style||{},o={};return po(o,r,t),Object.assign(o,ra(t,e)),o}function Yn(t,e){let r={},o=oa(t,e);return t.drag&&t.dragListener!==false&&(r.draggable=false,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===true?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}var Mr=()=>({...Zt(),attrs:{}});function qn(t,e,r,o){let n=useMemo(()=>{let i=Mr();return Fe(i,e,Ie(o),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let i={};po(i,t.style,t),n.style={...i,...n.style};}return n}var ia=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ia.has(t)}var Xn=t=>!Ee(t);function sa(t){typeof t=="function"&&(Xn=e=>e.startsWith("on")?!Ee(e):t(e));}try{sa(go("@emotion/is-prop-valid").default);}catch{}function Zn(t,e,r){let o={};for(let n in t)n==="values"&&typeof t.values=="object"||C(t[n])||(Xn(n)||r===true&&Ee(n)||!e&&!Ee(n)||t.draggable&&n.startsWith("onDrag"))&&(o[n]=t[n]);return o}var Jn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Jt(t){return typeof t!="string"||t.includes("-")?false:!!(Jn.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qn(t,e,r,{latestValues:o},n,i=false,s){let f=(s??Jt(t)?qn:Yn)(e,o,n,t),u=Zn(e,typeof t=="string",i),m=t!==Fragment?{...u,...f,ref:r}:{},{children:l}=e,c=useMemo(()=>C(l)?l.get():l,[l]);return createElement(t,{...m,children:c})}var Cr=createContext(null);function Ar(t){let e=useRef(null);return e.current===null&&(e.current=t()),e.current}function ca({scrapeMotionValuesFromProps:t,createRenderState:e},r,o,n){return {latestValues:pa(r,o,n,t),renderState:e()}}function pa(t,e,r,o){let n={},i=o(t,{});for(let c in i)n[c]=uo(i[c]);let{initial:s,animate:a}=t,f=xt(t),u=Ce(t);e&&u&&!f&&t.inherit!==false&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let m=r?r.initial===false:false;m=m||s===false;let l=m?a:s;if(l&&typeof l!="boolean"&&!st(l)){let c=Array.isArray(l)?l:[l];for(let h=0;h<c.length;h++){let p=wt(t,c[h]);if(p){let{transitionEnd:x,transition:V,...g}=p;for(let b in g){let y=g[b];if(Array.isArray(y)){let T=m?y.length-1:0;y=y[T];}y!==null&&(n[b]=y);}for(let b in x)n[b]=x[b];}}}return n}var wr=t=>(e,r)=>{let o=useContext(yt),n=useContext(Cr),i=()=>ca(t,e,o,n);return r?i():Ar(i)};var ei=wr({scrapeMotionValuesFromProps:It,createRenderState:Zt});var ri=wr({scrapeMotionValuesFromProps:Oe,createRenderState:Mr});var oi=Symbol.for("motionComponentSymbol");function ii(t,e,r){let o=useRef(r);useInsertionEffect(()=>{o.current=r;});let n=useRef(null);return useCallback(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=o.current;if(typeof s=="function")if(i){let a=s(i);typeof a=="function"&&(n.current=a);}else n.current?(n.current(),n.current=null):s(i);else s&&(s.current=i);},[e])}var si=createContext({});function ai(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var mi=typeof window<"u";var Pr=mi?useLayoutEffect:useEffect;function li(t,e,r,o,n,i){let{visualElement:s}=useContext(yt),a=useContext(Bt),f=useContext(Cr),u=useContext(vr),m=u.reducedMotion,l=u.skipAnimations,c=useRef(null),h=useRef(false);o=o||a.renderer,!c.current&&o&&(c.current=o(t,{visualState:e,parent:s,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===false:false,reducedMotionConfig:m,skipAnimations:l,isSVG:i}),h.current&&c.current&&(c.current.manuallyAnimateOnMount=true));let p=c.current,x=useContext(si);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&Ta(c.current,r,n,x);let V=useRef(false);useInsertionEffect(()=>{p&&V.current&&p.update(r,f);});let g=r[Ve],b=useRef(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Pr(()=>{h.current=true,p&&(V.current=true,window.MotionIsMounted=true,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges());}),useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g);}),b.current=false),p.enteringChildren=void 0);}),p}function Ta(t,e,r,o){let{layoutId:n,layout:i,drag:s,dragConstraints:a,layoutScroll:f,layoutRoot:u,layoutAnchor:m,layoutCrossfade:l}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:fi(t.parent)),t.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!s||a&&ai(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:l,layoutScroll:f,layoutRoot:u,layoutAnchor:m});}function fi(t){if(t)return t.options.allowProjection!==false?t.projection:fi(t.parent)}function Rr(t,{forwardMotionProps:e=false,type:r}={},o,n){o&&Be(o);let i=r?r==="svg":Jt(t),s=i?ri:ei;function a(u,m){let l,c={...useContext(vr),...u,layoutId:Ca(u)},{isStatic:h}=c,p=_n(u),x=s(u,h);if(!h&&typeof window<"u"){Aa(c,o);let V=wa(c);l=V.MeasureLayout,p.visualElement=li(t,x,c,n,V.ProjectionNode,i);}return jsxs(yt.Provider,{value:p,children:[l&&p.visualElement?jsx(l,{visualElement:p.visualElement,...c}):null,Qn(t,u,ii(x,p.visualElement,m),x,h,e,i)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let f=forwardRef(a);return f[oi]=t,f}function Ca({layoutId:t}){let e=useContext($n).id;return e&&t!==void 0?e+"-"+t:t}function Aa(t,e){let r=useContext(Bt).strict;if(process.env.NODE_ENV!=="production"&&e&&r){let o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?H(false,o,"lazy-strict-mode"):O(false,o,"lazy-strict-mode");}}function wa(t){let e=Sr(),{drag:r,layout:o}=e;if(!r&&!o)return {};let n={...r,...o};return {MeasureLayout:r?.isEnabled(t)||o?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function ui(t,e){if(typeof Proxy>"u")return Rr;let r=new Map,o=(i,s)=>Rr(i,s,t,e),n=(i,s)=>(process.env.NODE_ENV!=="production"&&rt(false,"motion() is deprecated. Use motion.create() instead."),o(i,s));return new Proxy(n,{get:(i,s)=>s==="create"?o:(r.has(s)||r.set(s,Rr(s,void 0,t,e)),r.get(s))})}var ci=ui();var Fr=class extends Rt{constructor(e){super(e),e.animationState||(e.animationState=fo(e));}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();st(e)&&(this.unmountControls=e.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription();}unmount(){this.node.animationState.reset(),this.unmountControls?.();}};var Pa=0,Ir=class extends Rt{constructor(){super(...arguments),this.id=Pa++,this.isExitComplete=false;}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;if(e&&o===false){if(this.isExitComplete){let{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){let a=z(this.node,i,s);if(a){let{transition:f,transitionEnd:u,...m}=a;for(let l in m)this.node.getValue(l)?.jump(m[l]);}}this.node.animationState.reset(),this.node.animationState.animateChanges();}else this.node.animationState.setActive("exit",false);this.isExitComplete=false;return}let n=this.node.animationState.setActive("exit",!e);r&&!e&&n.then(()=>{this.isExitComplete=true,r(this.id);});}mount(){let{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id));}unmount(){}};var pi={animation:{Feature:Fr},exit:{Feature:Ir}};var di=(t,e)=>e.isSVG??Jt(t)?new ke(e):new Re(e,{allowProjection:t!==Fragment});var Ra={renderer:di,...pi};function Ia(){!Dt.current&&Ae();let[t]=useState(gt.current);return process.env.NODE_ENV!=="production"&&rt(t!==true,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),t}function Oa(t){t.values.forEach(e=>e.stop());}function xo(t,e){[...e].reverse().forEach(o=>{let n=t.getVariant(o);n&&_t(t,n),t.variantChildren&&t.variantChildren.forEach(i=>{xo(i,e);});});}function ka(t,e){if(Array.isArray(e))return xo(t,e);if(typeof e=="string")return xo(t,[e]);_t(t,e);}function hi(){let t=false,e=new Set,r={subscribe(o){return e.add(o),()=>{e.delete(o);}},start(o,n){O(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return e.forEach(s=>{i.push(be(s,o,{transitionOverride:n}));}),Promise.all(i)},set(o){return O(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(n=>{ka(n,o);})},stop(){e.forEach(o=>{Oa(o);});},mount(){return t=true,()=>{t=false,r.stop();}}};return r}function xi(){let t=Ar(hi);return Pr(t.mount,[]),t}var Ba=xi;
2
- export{Na as a,qs as b,ci as c,Ra as d,Ia as e,Ba as f};