lizaui 8.3.9 → 8.4.9
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/dist/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.es.js +1 -1
- package/dist/chunks/{button-DaAJ3J_i.js → button-DFrxQHAW.js} +2 -2
- package/dist/chunks/{button-DaAJ3J_i.js.map → button-DFrxQHAW.js.map} +1 -1
- package/dist/chunks/{button-DJYse8Dw.js → button-uo4_Xad_.js} +2 -2
- package/dist/chunks/{button-DJYse8Dw.js.map → button-uo4_Xad_.js.map} +1 -1
- package/dist/chunks/features-animation-BRAvwYFN.js +3437 -0
- package/dist/chunks/features-animation-BRAvwYFN.js.map +1 -0
- package/dist/chunks/features-animation-BoXKk5t2.js +2 -0
- package/dist/chunks/features-animation-BoXKk5t2.js.map +1 -0
- package/dist/chunks/index-BbDfYVLO.js +174 -0
- package/dist/chunks/index-BbDfYVLO.js.map +1 -0
- package/dist/chunks/index-CL73JQgs.js +2 -0
- package/dist/chunks/index-CL73JQgs.js.map +1 -0
- package/dist/chunks/index-DC9BfnBH.js +208 -0
- package/dist/chunks/index-DC9BfnBH.js.map +1 -0
- package/dist/chunks/index-lrI_r1ww.js +10 -0
- package/dist/chunks/index-lrI_r1ww.js.map +1 -0
- package/dist/chunks/proxy-BwQyOw8U.js +2 -0
- package/dist/chunks/proxy-BwQyOw8U.js.map +1 -0
- package/dist/chunks/proxy-kv_Ue2k_.js +1346 -0
- package/dist/chunks/proxy-kv_Ue2k_.js.map +1 -0
- package/dist/chunks/ripple-CzU7YM2G.js +69 -0
- package/dist/chunks/{ripple-DMI95LHg.js.map → ripple-CzU7YM2G.js.map} +1 -1
- package/dist/chunks/ripple-SBteSEo3.js +2 -0
- package/dist/chunks/{ripple-DieNd7XQ.js.map → ripple-SBteSEo3.js.map} +1 -1
- package/dist/chunks/{scroll-area-BwqigcJy.js → scroll-area-B0mWCpSW.js} +2 -2
- package/dist/chunks/{scroll-area-BwqigcJy.js.map → scroll-area-B0mWCpSW.js.map} +1 -1
- package/dist/chunks/{scroll-area-1okMO4N6.js → scroll-area-CE7quLQL.js} +2 -2
- package/dist/chunks/{scroll-area-1okMO4N6.js.map → scroll-area-CE7quLQL.js.map} +1 -1
- package/dist/chunks/{select-B6a8A7js.js → select-BwMqXSzv.js} +2 -2
- package/dist/chunks/{select-B6a8A7js.js.map → select-BwMqXSzv.js.map} +1 -1
- package/dist/chunks/{select-CFefk2Xz.js → select-DGSPwoy8.js} +2 -2
- package/dist/chunks/{select-CFefk2Xz.js.map → select-DGSPwoy8.js.map} +1 -1
- package/dist/chunks/{textarea-BPsle-xc.js → textarea-BYbersWf.js} +32 -31
- package/dist/chunks/{textarea-BPsle-xc.js.map → textarea-BYbersWf.js.map} +1 -1
- package/dist/chunks/{textarea-C2i9A3jn.js → textarea-D9X4fUkV.js} +12 -12
- package/dist/chunks/{textarea-C2i9A3jn.js.map → textarea-D9X4fUkV.js.map} +1 -1
- package/dist/modal/index.cjs.js +1 -1
- package/dist/modal/index.cjs.js.map +1 -1
- package/dist/modal/index.es.js +15 -14
- package/dist/modal/index.es.js.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +3 -3
- package/dist/phone-input/index.cjs.js +1 -1
- package/dist/phone-input/index.cjs.js.map +1 -1
- package/dist/phone-input/index.es.js +62 -61
- package/dist/phone-input/index.es.js.map +1 -1
- package/dist/ripple/index.cjs.js +1 -1
- package/dist/ripple/index.es.js +1 -1
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.cjs.js.map +1 -1
- package/dist/table/index.es.js +11 -11
- package/dist/table/index.es.js.map +1 -1
- package/dist/time-input/index.cjs.js +1 -1
- package/dist/time-input/index.es.js +2 -2
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +7 -7
- package/package.json +1 -1
- package/dist/chunks/ripple-DMI95LHg.js +0 -68
- package/dist/chunks/ripple-DieNd7XQ.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const xn=require("./jsx-runtime-BjzqJBtL.js"),w=require("react"),F=require("./index-lrI_r1ww.js");function Zn(e,t){e.indexOf(t)===-1&&e.push(t)}function Jn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $=(e,t,n)=>n>t?t:n<e?e:n;function ki(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}exports.warning=()=>{};exports.invariant=()=>{};process.env.NODE_ENV!=="production"&&(exports.warning=(e,t,n)=>{},exports.invariant=(e,t,n)=>{if(!e)throw new Error(ki(t,n))});const K={},St=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),At=e=>/^0[^.\s]+$/u.test(e);function Ne(e){let t;return()=>(t===void 0&&(t=e()),t)}const Z=e=>e,Ni=(e,t)=>n=>t(e(n)),ve=(...e)=>e.reduce(Ni),Mt=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Ct{constructor(){this.subscriptions=[]}add(t){return Zn(this.subscriptions,t),()=>Jn(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const B=e=>e*1e3,L=e=>e/1e3;function Pt(e,t){return t?e*(1e3/t):0}const Vn=new Set;function Be(e,t,n){e||Vn.has(t)||Vn.add(t)}const Qn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Bi=1e-7,Li=12;function Ki(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=Qn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Bi&&++a<Li);return o}function le(e,t,n,s){if(e===t&&n===s)return Z;const i=r=>Ki(r,0,1,e,n);return r=>r===0||r===1?r:Qn(i(r),t,s)}const Dt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ft=e=>t=>1-e(1-t),Et=le(.33,1.53,.69,.99),Le=Ft(Et),Ot=Dt(Le),It=e=>(e*=2)<1?.5*Le(e):.5*(2-Math.pow(2,-10*(e-1))),Ke=e=>1-Math.sin(Math.acos(e)),es=Ft(Ke),Rt=Dt(Ke),ts=le(.42,0,1,1),ns=le(0,0,.58,1),kt=le(.42,0,.58,1),ss=e=>Array.isArray(e)&&typeof e[0]!="number",Nt=e=>Array.isArray(e)&&typeof e[0]=="number",wn={linear:Z,easeIn:ts,easeInOut:kt,easeOut:ns,circIn:Ke,circInOut:Rt,circOut:es,backIn:Le,backInOut:Ot,backOut:Et,anticipate:It},ji=e=>typeof e=="string",nt=e=>{if(Nt(e)){exports.invariant(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,s,i]=e;return le(t,n,s,i)}else if(ji(e))return exports.invariant(wn[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),wn[e];return e},we=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Wi(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const y=d&&i?n:s;return f&&o.add(u),y.has(u)||y.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const $i=40;function Bt(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=we.reduce((p,A)=>(p[A]=Wi(r),p),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:y}=o,v=()=>{const p=K.useManualTiming?i.timestamp:performance.now();n=!1,K.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(p-i.timestamp,$i),1)),i.timestamp=p,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),h.process(i),y.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(v))},V=()=>{n=!0,s=!0,i.isProcessing||e(v)};return{schedule:we.reduce((p,A)=>{const b=o[A];return p[A]=(S,P=!1,T=!1)=>(n||V(),b.schedule(S,P,T)),p},{}),cancel:p=>{for(let A=0;A<we.length;A++)o[we[A]].cancel(p)},state:i,steps:o}}const{schedule:N,cancel:Pe,state:he,steps:_i}=Bt(typeof requestAnimationFrame<"u"?requestAnimationFrame:Z,!0);let Se;function Gi(){Se=void 0}const I={now:()=>(Se===void 0&&I.set(he.isProcessing||K.useManualTiming?he.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Gi)}},is=e=>t=>typeof t=="string"&&t.startsWith(e),je=is("--"),Ui=is("var(--"),We=e=>Ui(e)?zi.test(e.split("/*")[0].trim()):!1,zi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,J={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ae={...J,transform:e=>$(0,1,e)},fe={...J,default:1},de=e=>Math.round(e*1e5)/1e5,Lt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yi(e){return e==null}const Hi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kt=(e,t)=>n=>!!(typeof n=="string"&&Hi.test(n)&&n.startsWith(e)||t&&!Yi(n)&&Object.prototype.hasOwnProperty.call(n,t)),rs=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Lt);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Xi=e=>$(0,255,e),Ae={...J,transform:e=>Math.round(Xi(e))},W={test:Kt("rgb","red"),parse:rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ae.transform(e)+", "+Ae.transform(t)+", "+Ae.transform(n)+", "+de(ae.transform(s))+")"};function qi(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const De={test:Kt("#"),parse:qi,transform:W.transform},xe=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j=xe("deg"),H=xe("%"),m=xe("px"),os=xe("vh"),as=xe("vw"),st={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(e*100)},U={test:Kt("hsl","hue"),parse:rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+H.transform(de(t))+", "+H.transform(de(n))+", "+de(ae.transform(s))+")"},C={test:e=>W.test(e)||De.test(e)||U.test(e),parse:e=>W.test(e)?W.parse(e):U.test(e)?U.parse(e):De.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?W.transform(e):U.transform(e),getAnimatableNone:e=>{const t=C.parse(e);return t.alpha=0,C.transform(t)}},Zi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ji(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lt)?.length||0)+(e.match(Zi)?.length||0)>0}const us="number",ls="color",Qi="var",er="var(",Sn="${}",tr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ue(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(tr,l=>(C.test(l)?(s.color.push(r),i.push(ls),n.push(C.parse(l))):l.startsWith(er)?(s.var.push(r),i.push(Qi),n.push(l)):(s.number.push(r),i.push(us),n.push(parseFloat(l))),++r,Sn)).split(Sn);return{values:n,split:a,indexes:s,types:i}}function cs(e){return ue(e).values}function fs(e){const{split:t,types:n}=ue(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===us?r+=de(i[o]):a===ls?r+=C.transform(i[o]):r+=i[o]}return r}}const nr=e=>typeof e=="number"?0:C.test(e)?C.getAnimatableNone(e):e;function sr(e){const t=cs(e);return fs(e)(t.map(nr))}const Q={test:Ji,parse:cs,createTransformer:fs,getAnimatableNone:sr};function qe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ds({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=qe(l,a,e+1/3),r=qe(l,a,e),o=qe(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function me(e,t){return n=>n>0?t:e}const ce=(e,t,n)=>e+(t-e)*n,Me=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},ir=[De,W,U],rr=e=>ir.find(t=>t.test(e));function An(e){const t=rr(e);if(exports.warning(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===U&&(n=ds(n)),n}const it=(e,t)=>{const n=An(e),s=An(t);if(!n||!s)return me(e,t);const i={...n};return r=>(i.red=Me(n.red,s.red,r),i.green=Me(n.green,s.green,r),i.blue=Me(n.blue,s.blue,r),i.alpha=ce(n.alpha,s.alpha,r),W.transform(i))},Fe=new Set(["none","hidden"]);function hs(e,t){return Fe.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function or(e,t){return n=>ce(e,t,n)}function $e(e){return typeof e=="number"?or:typeof e=="string"?We(e)?me:C.test(e)?it:ps:Array.isArray(e)?jt:typeof e=="object"?C.test(e)?it:ms:me}function jt(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>$e(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function ms(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=$e(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function ar(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const ps=(e,t)=>{const n=Q.createTransformer(t),s=ue(e),i=ue(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Fe.has(e)&&!i.values.length||Fe.has(t)&&!s.values.length?hs(e,t):ve(jt(ar(s,i),i.values),n):(exports.warning(!0,`Complex values '${e}' and '${t}' 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"),me(e,t))};function Wt(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ce(e,t,n):$e(e)(e,t)}const ur=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>N.update(t,n),stop:()=>Pe(t),now:()=>he.isProcessing?he.timestamp:I.now()}},$t=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},pe=2e4;function _e(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<pe;)t+=n,s=e.next(t);return t>=pe?1/0:t}function gs(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(_e(s),pe);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:L(i)}}const lr=5;function ys(e,t,n){const s=Math.max(t-lr,0);return Pt(n-e(s),t-s)}const M={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},Ze=.001;function cr({duration:e=M.duration,bounce:t=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,r;exports.warning(e<=B(M.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=$(M.minDamping,M.maxDamping,o),e=$(M.minDuration,M.maxDuration,L(e)),o<1?(i=c=>{const u=c*o,f=u*e,d=u-n,h=rt(c,o),y=Math.exp(-f);return Ze-d/h*y},r=c=>{const f=c*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-f),v=rt(Math.pow(c,2),o);return(-i(c)+Ze>0?-1:1)*((d-h)*y)/v}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-Ze+u*f},r=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=dr(i,r,a);if(e=B(e),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:e};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const fr=12;function dr(e,t,n){let s=n;for(let i=1;i<fr;i++)s=s-e(s)/t(s);return s}function rt(e,t){return e*Math.sqrt(1-t*t)}const hr=["duration","bounce"],mr=["stiffness","damping","mass"];function Mn(e,t){return t.some(n=>e[n]!==void 0)}function pr(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!Mn(e,mr)&&Mn(e,hr))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*$(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:M.mass,stiffness:i,damping:r}}else{const n=cr(e);t={...t,...n,mass:M.mass},t.isResolvedFromDuration=!0}return t}function ge(e=M.visualDuration,t=M.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=pr({...n,velocity:-L(n.velocity||0)}),y=d||0,v=c/(2*Math.sqrt(l*u)),V=o-r,g=L(Math.sqrt(l/u)),x=Math.abs(V)<5;s||(s=x?M.restSpeed.granular:M.restSpeed.default),i||(i=x?M.restDelta.granular:M.restDelta.default);let p;if(v<1){const b=rt(g,v);p=S=>{const P=Math.exp(-v*g*S);return o-P*((y+v*g*V)/b*Math.sin(b*S)+V*Math.cos(b*S))}}else if(v===1)p=b=>o-Math.exp(-g*b)*(V+(y+g*V)*b);else{const b=g*Math.sqrt(v*v-1);p=S=>{const P=Math.exp(-v*g*S),T=Math.min(b*S,300);return o-P*((y+v*g*V)*Math.sinh(T)+b*V*Math.cosh(T))/b}}const A={calculatedDuration:h&&f||null,next:b=>{const S=p(b);if(h)a.done=b>=f;else{let P=b===0?y:0;v<1&&(P=b===0?B(y):ys(p,b,S));const T=Math.abs(P)<=s,O=Math.abs(o-S)<=i;a.done=T&&O}return a.value=a.done?o:S,a},toString:()=>{const b=Math.min(_e(A),pe),S=$t(P=>A.next(b*P).value,b,30);return b+"ms "+S},toTransition:()=>{}};return A}ge.applyToOptions=e=>{const t=gs(e,100,ge);return e.ease=t.ease,e.duration=B(t.duration),e.type="keyframes",e};function Ee({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=T=>a!==void 0&&T<a||l!==void 0&&T>l,y=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const V=f+v,g=o===void 0?V:o(V);g!==V&&(v=g-f);const x=T=>-v*Math.exp(-T/s),p=T=>g+x(T),A=T=>{const O=x(T),R=p(T);d.done=Math.abs(O)<=c,d.value=d.done?g:R};let b,S;const P=T=>{h(d.value)&&(b=T,S=ge({keyframes:[d.value,y(d.value)],velocity:ys(p,T,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:T=>{let O=!1;return!S&&b===void 0&&(O=!0,A(T),P(T)),b!==void 0&&T>=b?S.next(T-b):(!O&&A(T),d)}}}function gr(e,t,n){const s=[],i=n||K.mix||Wt,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Z:t;a=ve(l,a)}s.push(a)}return s}function bs(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(exports.invariant(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=gr(t,s,i),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=Mt(e[f],e[f+1],u);return a[f](d)};return n?u=>c($(e[0],e[r-1],u)):c}function Ts(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Mt(0,t,s);e.push(ce(n,1,i))}}function vs(e){const t=[0];return Ts(t,e.length-1),t}function xs(e,t){return e.map(n=>n*t)}function Vs(e,t){return e.map(()=>t||kt).splice(0,e.length-1)}function z({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=ss(s)?s.map(nt):nt(s),r={done:!1,value:t[0]},o=xs(n&&n.length===t.length?n:vs(t),e),a=bs(o,t,{ease:Array.isArray(i)?i:Vs(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const yr=e=>e!==null;function _t(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(yr),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const br={decay:Ee,inertia:Ee,tween:z,keyframes:z,spring:ge};function ws(e){typeof e.type=="string"&&(e.type=br[e.type])}class Gt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Tr=e=>e/100;class Ge extends Gt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ws(t);const{type:n=z,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const l=n||z;process.env.NODE_ENV!=="production"&&l!==z&&exports.invariant(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ve(Tr,Wt(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=_e(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:y,onUpdate:v,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let p=this.currentTime,A=s;if(f){const T=Math.min(this.currentTime,i)/a;let O=Math.floor(T),R=T%1;!R&&T>=1&&(R=1),R===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(d==="reverse"?(R=1-R,h&&(R-=h/a)):d==="mirror"&&(A=o)),p=$(0,1,R)*a}const b=x?{done:!1,value:u[0]}:A.next(p);r&&(b.value=r(b.value));let{done:S}=b;!x&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&y!==Ee&&(b.value=_t(u,this.options,V,this.speed)),v&&v(b.value),P&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return L(this.calculatedDuration)}get time(){return L(this.currentTime)}set time(t){t=B(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(I.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=L(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ur,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Ss(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Y=e=>e*180/Math.PI,ot=e=>{const t=Y(Math.atan2(e[1],e[0]));return at(t)},vr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ot,rotateZ:ot,skewX:e=>Y(Math.atan(e[1])),skewY:e=>Y(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},at=e=>(e=e%360,e<0&&(e+=360),e),Cn=ot,Pn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pn,scaleY:Dn,scale:e=>(Pn(e)+Dn(e))/2,rotateX:e=>at(Y(Math.atan2(e[6],e[5]))),rotateY:e=>at(Y(Math.atan2(-e[2],e[0]))),rotateZ:Cn,rotate:Cn,skewX:e=>Y(Math.atan(e[4])),skewY:e=>Y(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Oe(e){return e.includes("scale")?1:0}function Ie(e,t){if(!e||e==="none")return Oe(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=xr,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=vr,i=a}if(!i)return Oe(t);const r=s[t],o=i[1].split(",").map(Vr);return typeof r=="function"?r(o):o[r]}const As=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ie(n,t)};function Vr(e){return parseFloat(e.trim())}const ee=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],te=new Set(ee),Fn=e=>e===J||e===m,wr=new Set(["x","y","z"]),Sr=ee.filter(e=>!wr.has(e));function Ar(e){const t=[];return Sr.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const X={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ie(t,"x"),y:(e,{transform:t})=>Ie(t,"y")};X.translateX=X.x;X.translateY=X.y;const q=new Set;let ut=!1,lt=!1,ct=!1;function Ms(){if(lt){const e=Array.from(q).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=Ar(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}lt=!1,ut=!1,q.forEach(e=>e.complete(ct)),q.clear()}function Cs(){q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(lt=!0)})}function Ps(){ct=!0,Cs(),Ms(),ct=!1}class Ue{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(q.add(this),ut||(ut=!0,N.read(Cs),N.resolveKeyframes(Ms))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i?.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}Ss(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),q.delete(this)}cancel(){this.state==="scheduled"&&(q.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Mr=e=>e.startsWith("--");function Ds(e,t,n){Mr(t)?e.style.setProperty(t,n):e.style[t]=n}const Fs=Ne(()=>window.ScrollTimeline!==void 0),Es={};function Cr(e,t){const n=Ne(e);return()=>Es[t]??n()}const Ut=Cr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),re=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,ft={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:re([0,.65,.55,1]),circOut:re([.55,0,1,.45]),backIn:re([.31,.01,.66,-.59]),backOut:re([.33,1.53,.69,.99])};function zt(e,t){if(e)return typeof e=="function"?Ut()?$t(e,t):"ease-out":Nt(e)?re(e):Array.isArray(e)?e.map(n=>zt(n,t)||ft.easeOut):ft[e]}function Os(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const f=zt(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}function Yt(e){return typeof e=="function"&&"applyToOptions"in e}function Is({type:e,...t}){return Yt(e)&&Ut()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Rs extends Gt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,exports.invariant(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Is(t);this.animation=Os(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=_t(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ds(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return L(Number(t))}get time(){return L(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=B(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Fs()?(this.animation.timeline=t,Z):n(this)}}const ks={anticipate:It,backInOut:Ot,circInOut:Rt};function Pr(e){return e in ks}function Dr(e){typeof e.ease=="string"&&Pr(e.ease)&&(e.ease=ks[e.ease])}const En=10;class Ns extends Rs{constructor(t){Dr(t),ws(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ge({...o,autoplay:!1}),l=B(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-En).value,a.sample(l).value,En),a.stop()}}const On=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Q.test(e)||e==="0")&&!e.startsWith("url("));function Fr(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Er(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=On(i,t),a=On(r,t);return exports.warning(o===a,`You are trying to animate ${t} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Fr(e)||(n==="spring"||Yt(n))&&s}function Re(e){e.duration=0,e.type}const Or=new Set(["opacity","clipPath","filter","transform"]),Ir=Ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Bs(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Ir()&&n&&Or.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Rr=40;class Ls extends Gt{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...f},h=u?.KeyframeResolver||Ue;this.keyframeResolver=new h(a,(y,v,V)=>this.onKeyframesResolved(y,v,d,!V),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=I.now(),Er(t,r,o,a)||((K.instantAnimations||!l)&&u?.(_t(t,s,n)),t[0]=t[t.length-1],Re(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Rr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!c&&Bs(d)?new Ns({...d,element:d.motionValue.owner.current}):new Ge(d);h.finished.then(()=>this.notifyFinished()).catch(Z),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ps()),this._animation}get duration(){return this.animation.duration}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()}}const kr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ks(e){const t=kr.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const Nr=4;function Ht(e,t,n=1){exports.invariant(n<=Nr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=Ks(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return St(o)?parseFloat(o):o}return We(i)?Ht(i,t,n+1):i}function Xt(e,t){return e?.[t]??e?.default??e}const qt=new Set(["width","height","top","left","right","bottom",...ee]),Br={test:e=>e==="auto",parse:e=>e},Zt=e=>t=>t.test(e),Jt=[J,m,H,j,as,os,Br],dt=e=>Jt.find(Zt(e));function Lr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||At(e):!0}const Kr=new Set(["brightness","contrast","saturate","opacity"]);function jr(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Lt)||[];if(!s)return e;const i=n.replace(s,"");let r=Kr.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Wr=/\b([a-z-]*)\(.*?\)/gu,ht={...Q,getAnimatableNone:e=>{const t=e.match(Wr);return t?t.map(jr).join(" "):e}},In={...J,transform:Math.round},js={rotate:j,rotateX:j,rotateY:j,rotateZ:j,scale:fe,scaleX:fe,scaleY:fe,scaleZ:fe,skew:j,skewX:j,skewY:j,distance:m,translateX:m,translateY:m,translateZ:m,x:m,y:m,z:m,perspective:m,transformPerspective:m,opacity:ae,originX:st,originY:st,originZ:m},ze={borderWidth:m,borderTopWidth:m,borderRightWidth:m,borderBottomWidth:m,borderLeftWidth:m,borderRadius:m,radius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomRightRadius:m,borderBottomLeftRadius:m,width:m,maxWidth:m,height:m,maxHeight:m,top:m,right:m,bottom:m,left:m,padding:m,paddingTop:m,paddingRight:m,paddingBottom:m,paddingLeft:m,margin:m,marginTop:m,marginRight:m,marginBottom:m,marginLeft:m,backgroundPositionX:m,backgroundPositionY:m,...js,zIndex:In,fillOpacity:ae,strokeOpacity:ae,numOctaves:In},Ws={...ze,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:ht,WebkitFilter:ht},Qt=e=>Ws[e];function en(e,t){let n=Qt(e);return n!==ht&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $r=new Set(["auto","none","0"]);function _r(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!$r.has(r)&&ue(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=en(n,i)}class $s extends Ue{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),We(c))){const u=Ht(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!qt.has(s)||t.length!==2)return;const[i,r]=t,o=dt(i),a=dt(r);if(o!==a)if(Fn(o)&&Fn(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else X[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Lr(t[i]))&&s.push(i);s.length&&_r(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=X[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function _s(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const tn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Rn=30,Gr=e=>!isNaN(parseFloat(e));class Gs{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=I.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=I.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Be(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ct);const s=this.events[t].add(n);return t==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rn);return Pt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ye(e,t){return new Gs(e,t)}const{schedule:Us}=Bt(queueMicrotask,!1),mt={x:!1,y:!1};function nn(){return mt.x||mt.y}function zs(e,t){const n=_s(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function kn(e){return!(e.pointerType==="touch"||nn())}function Ys(e,t,n={}){const[s,i,r]=zs(e,n),o=a=>{if(!kn(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=f=>{kn(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const sn=(e,t)=>t?e===t?!0:sn(e,t.parentElement):!1,rn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ur=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function zr(e){return Ur.has(e.tagName)||e.tabIndex!==-1}const Ce=new WeakSet;function Nn(e){return t=>{t.key==="Enter"&&e(t)}}function Je(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Yr=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Nn(()=>{if(Ce.has(n))return;Je(n,"down");const i=Nn(()=>{Je(n,"up")}),r=()=>Je(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Bn(e){return rn(e)&&!nn()}function Hs(e,t,n={}){const[s,i,r]=zs(e,n),o=a=>{const l=a.currentTarget;if(!Bn(a))return;Ce.add(l);const c=t(l,a),u=(h,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Ce.has(l)&&Ce.delete(l),Bn(h)&&typeof c=="function"&&c(h,{success:y})},f=h=>{u(h,l===window||l===document||n.useGlobalTarget||sn(l,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),F.isHTMLElement(a)&&(a.addEventListener("focus",c=>Yr(c,i)),!zr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const E=e=>!!(e&&e.getVelocity),Hr=[...Jt,C,Q],Xs=e=>Hr.find(Zt(e)),Xr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function be(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Xr.has(e)}let qs=e=>!be(e);function qr(e){typeof e=="function"&&(qs=t=>t.startsWith("on")?!be(t):e(t))}try{qr(require("@emotion/is-prop-valid").default)}catch{}function Zs(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(qs(i)||n===!0&&be(i)||!t&&!be(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Ve=w.createContext({});function Ye(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Te(e){return typeof e=="string"||Array.isArray(e)}const on=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],an=["initial",...on];function He(e){return Ye(e.animate)||an.some(t=>Te(e[t]))}function Js(e){return!!(He(e)||e.variants)}function Zr(e,t){if(He(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Te(n)?n:void 0,animate:Te(s)?s:void 0}}return e.inherit!==!1?t:{}}function Jr(e){const{initial:t,animate:n}=Zr(e,w.useContext(Ve));return w.useMemo(()=>({initial:t,animate:n}),[Ln(t),Ln(n)])}function Ln(e){return Array.isArray(e)?e.join(" "):e}const ke={};function Qr(e){for(const t in e)ke[t]=e[t],je(t)&&(ke[t].isCSSVariable=!0)}function Qs(e,{layout:t,layoutId:n}){return te.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ke[e]||e==="opacity")}const eo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},to=ee.length;function ei(e,t,n){let s="",i=!0;for(let r=0;r<to;r++){const o=ee[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=tn(a,ze[o]);if(!l){i=!1;const u=eo[o]||o;s+=`${u}(${c}) `}n&&(t[o]=c)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function un(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(te.has(l)){o=!0;continue}else if(je(l)){i[l]=c;continue}else{const u=tn(c,ze[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(t.transform||(o||n?s.transform=ei(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}const ln=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ti(e,t,n){for(const s in t)!E(t[s])&&!Qs(s,n)&&(e[s]=t[s])}function no({transformTemplate:e},t){return w.useMemo(()=>{const n=ln();return un(n,t,e),Object.assign({},n.vars,n.style)},[t])}function so(e,t){const n=e.style||{},s={};return ti(s,n,e),Object.assign(s,no(e,t)),s}function io(e,t){const n={},s=so(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const ro={offset:"stroke-dashoffset",array:"stroke-dasharray"},oo={offset:"strokeDashoffset",array:"strokeDasharray"};function ao(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?ro:oo;e[r.offset]=m.transform(-s);const o=m.transform(t),a=m.transform(n);e[r.array]=`${o} ${a}`}function ni(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(un(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&ao(f,i,r,o,!1)}const si=()=>({...ln(),attrs:{}}),ii=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uo(e,t,n,s){const i=w.useMemo(()=>{const r=si();return ni(r,t,ii(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ti(r,e.style,e),i.style={...r,...i.style}}return i}const lo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cn(e){return typeof e!="string"||e.includes("-")?!1:!!(lo.indexOf(e)>-1||/[A-Z]/u.test(e))}function co(e,t,n,{latestValues:s},i,r=!1){const a=(cn(e)?uo:io)(t,s,i,e),l=Zs(t,typeof e=="string",r),c=e!==w.Fragment?{...l,...a,ref:n}:{},{children:u}=t,f=w.useMemo(()=>E(u)?u.get():u,[u]);return w.createElement(e,{...c,children:f})}function Kn(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function fn(e,t,n,s){if(typeof t=="function"){const[i,r]=Kn(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Kn(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function ri(e){return E(e)?e.get():e}function fo({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:ho(n,s,i,e),renderState:t()}}function ho(e,t,n,s){const i={},r=s(e,{});for(const d in r)i[d]=ri(r[d]);let{initial:o,animate:a}=e;const l=He(e),c=Js(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?a:o;if(f&&typeof f!="boolean"&&!Ye(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const y=fn(e,d[h]);if(y){const{transitionEnd:v,transition:V,...g}=y;for(const x in g){let p=g[x];if(Array.isArray(p)){const A=u?p.length-1:0;p=p[A]}p!==null&&(i[x]=p)}for(const x in v)i[x]=v[x]}}}return i}const dn=e=>(t,n)=>{const s=w.useContext(Ve),i=w.useContext(F.PresenceContext),r=()=>fo(e,t,s,i);return n?r():F.useConstant(r)};function hn(e,t,n){const{style:s}=e,i={};for(const r in s)(E(s[r])||t.style&&E(t.style[r])||Qs(r,e)||n?.getValue(r)?.liveStyle!==void 0)&&(i[r]=s[r]);return i}const mo=dn({scrapeMotionValuesFromProps:hn,createRenderState:ln});function oi(e,t,n){const s=hn(e,t,n);for(const i in e)if(E(e[i])||E(t[i])){const r=ee.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}const po=dn({scrapeMotionValuesFromProps:oi,createRenderState:si}),go=Symbol.for("motionComponentSymbol");function mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yo(e,t,n){return w.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):mn(n)&&(n.current=s))},[t])}const pn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bo="framerAppearId",gn="data-"+pn(bo),ai=w.createContext({});function To(e,t,n,s,i){const{visualElement:r}=w.useContext(Ve),o=w.useContext(F.LazyContext),a=w.useContext(F.PresenceContext),l=w.useContext(F.MotionConfigContext).reducedMotion,c=w.useRef(null);s=s||o.renderer,!c.current&&s&&(c.current=s(e,{visualState:t,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,f=w.useContext(ai);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&vo(c.current,n,i,f);const d=w.useRef(!1);w.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[gn],y=w.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return F.useIsomorphicLayoutEffect(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),y.current=!1),u.enteringChildren=void 0)}),u}function vo(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ui(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&mn(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function ui(e){if(e)return e.options.allowProjection!==!1?e.projection:ui(e.parent)}function Qe(e,{forwardMotionProps:t=!1}={},n,s){n&&F.loadFeatures(n);const i=cn(e)?po:mo;function r(a,l){let c;const u={...w.useContext(F.MotionConfigContext),...a,layoutId:xo(a)},{isStatic:f}=u,d=Jr(a),h=i(a,f);if(!f&&F.isBrowser){Vo(u,n);const y=wo(u);c=y.MeasureLayout,d.visualElement=To(e,h,u,s,y.ProjectionNode)}return xn.jsxRuntimeExports.jsxs(Ve.Provider,{value:d,children:[c&&d.visualElement?xn.jsxRuntimeExports.jsx(c,{visualElement:d.visualElement,...u}):null,co(e,a,yo(h,d.visualElement,l),h,f,t)]})}r.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=w.forwardRef(r);return o[go]=e,o}function xo({layoutId:e}){const t=w.useContext(F.LayoutGroupContext).id;return t&&e!==void 0?t+"-"+e:e}function Vo(e,t){const n=w.useContext(F.LazyContext).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?exports.warning(!1,s,"lazy-strict-mode"):exports.invariant(!1,s,"lazy-strict-mode")}}function wo(e){const{drag:t,layout:n}=F.featureDefinitions;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function li(e,t){if(typeof Proxy>"u")return Qe;const n=new Map,s=(r,o)=>Qe(r,o,e,t),i=(r,o)=>(process.env.NODE_ENV!=="production"&&Be(!1,"motion() is deprecated. Use motion.create() instead."),s(r,o));return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Qe(o,void 0,e,t)),n.get(o))})}const So=li();function ci({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ao({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mo(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function et(e){return e===void 0||e===1}function fi({scale:e,scaleX:t,scaleY:n}){return!et(e)||!et(t)||!et(n)}function di(e){return fi(e)||hi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hi(e){return jn(e.x)||jn(e.y)}function jn(e){return e&&e!=="0%"}function pt(e,t,n){const s=e-n,i=t*s;return n+i}function Wn(e,t,n,s,i){return i!==void 0&&(e=pt(e,i,s)),pt(e,n,s)+t}function gt(e,t=0,n=1,s,i){e.min=Wn(e.min,t,n,s,i),e.max=Wn(e.max,t,n,s,i)}function mi(e,{x:t,y:n}){gt(e.x,t.translate,t.scale,t.originPoint),gt(e.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,_n=1.0000000000001;function Co(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&bt(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mi(e,o)),s&&di(r.latestValues)&&bt(e,r.latestValues))}t.x<_n&&t.x>$n&&(t.x=1),t.y<_n&&t.y>$n&&(t.y=1)}function yt(e,t){e.min=e.min+t,e.max=e.max+t}function Gn(e,t,n,s,i=.5){const r=ce(e.min,e.max,i);gt(e,t,n,r,s)}function bt(e,t){Gn(e.x,t.x,t.scaleX,t.scale,t.originX),Gn(e.y,t.y,t.scaleY,t.scale,t.originY)}function pi(e,t){return ci(Mo(e.getBoundingClientRect(),t))}function Po(e,t,n){const s=pi(e,n),{scroll:i}=t;return i&&(yt(s.x,i.offset.x),yt(s.y,i.offset.y)),s}const Un=()=>({translate:0,scale:1,origin:0,originPoint:0}),Do=()=>({x:Un(),y:Un()}),zn=()=>({min:0,max:0}),yn=()=>({x:zn(),y:zn()}),Tt={current:null},gi={current:!1};function Fo(){if(gi.current=!0,!!F.isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Tt.current=e.matches;e.addEventListener("change",t),t()}else Tt.current=!1}const yi=new WeakMap;function Eo(e,t,n){for(const s in t){const i=t[s],r=n[s];if(E(i))e.addValue(s,i);else if(E(r))e.addValue(s,ye(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,ye(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Yn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bi{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ue,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=I.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,N.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=He(n),this.isVariantNode=Js(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&E(h)&&h.set(l[d])}}mount(t){this.current=t,yi.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),gi.current||Fo(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tt.current,process.env.NODE_ENV!=="production"&&Be(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Pe(this.notifyUpdate),Pe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=te.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in F.featureDefinitions){const n=F.featureDefinitions[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Yn.length;s++){const i=Yn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Eo(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=ye(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(St(s)||At(s))?s=parseFloat(s):!Xs(s)&&Q.test(n)&&(s=en(t,n)),this.setBaseTarget(t,E(s)?s.get():s)),E(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=fn(this.props,n,this.presenceContext?.custom);r&&(s=r[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!E(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ct),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Us.render(this.render)}}class Ti extends bi{constructor(){super(...arguments),this.KeyframeResolver=$s}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;E(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vi(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Oo(e){return window.getComputedStyle(e)}class Io extends Ti{constructor(){super(...arguments),this.type="html",this.renderInstance=vi}readValueFromInstance(t,n){if(te.has(n))return this.projection?.isProjecting?Oe(n):As(t,n);{const s=Oo(t),i=(je(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pi(t,n)}build(t,n,s){un(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return hn(t,n,s)}}const xi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ro(e,t,n,s){vi(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(xi.has(i)?i:pn(i),t.attrs[i])}class ko extends Ti{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(te.has(n)){const s=Qt(n);return s&&s.default||0}return n=xi.has(n)?n:pn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return oi(t,n,s)}build(t,n,s){ni(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Ro(t,n,s,i)}mount(t){this.isSVGTag=ii(t.tagName),super.mount(t)}}const Vi=(e,t)=>cn(e)?new ko(t):new Io(t,{allowProjection:e!==w.Fragment});function oe(e,t,n){const s=e.getProps();return fn(s,t,n!==void 0?n:s.custom,e)}const vt=e=>Array.isArray(e);function No(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ye(n))}function Bo(e){return vt(e)?e[e.length-1]||0:e}function Lo(e,t){const n=oe(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Bo(r[o]);No(e,o,a)}}function Ko(e){return!!(E(e)&&e.add)}function wi(e,t){const n=e.getValue("willChange");if(Ko(n))return n.add(t);if(!n&&K.WillChange){const s=new K.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Si(e){return e.props[gn]}const jo=e=>e!==null;function Wo(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(jo),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}const $o={type:"spring",stiffness:500,damping:25,restSpeed:10},_o=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Go={type:"keyframes",duration:.8},Uo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zo=(e,{keyframes:t})=>t.length>2?Go:te.has(e)?e.startsWith("scale")?_o(t[1]):$o:Uo;function Yo({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ai=(e,t,n,s={},i,r)=>o=>{const a=Xt(s,e)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-B(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Yo(a)||Object.assign(u,zo(e,u)),u.duration&&(u.duration=B(u.duration)),u.repeatDelay&&(u.repeatDelay=B(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Re(u),u.delay===0&&(f=!0)),(K.instantAnimations||K.skipAnimations)&&(f=!0,Re(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const d=Wo(u.keyframes,a);if(d!==void 0){N.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ge(u):new Ls(u)};function Ho({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Mi(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:o,...a}=t;s&&(r=s);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),d=a[u];if(d===void 0||c&&Ho(c,u))continue;const h={delay:n,...Xt(r||{},u)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===y&&!h.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const g=Si(e);if(g){const x=window.MotionHandoffAnimation(g,u,N);x!==null&&(h.startTime=x,v=!0)}}wi(e,u),f.start(Ai(u,f,d,e.shouldReduceMotion&&qt.has(u)?{type:!1}:h,e,v));const V=f.animation;V&&l.push(V)}return o&&Promise.all(l).then(()=>{N.update(()=>{o&&Lo(e,o)})}),l}function Ci(e,t,n,s=0,i=1){const r=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function xt(e,t,n={}){const s=oe(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Mi(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return Xo(e,t,l,c,u,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Xo(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(xt(l,t,{...o,delay:n+(typeof s=="function"?0:s)+Ci(e.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Pi(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>xt(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=xt(e,t,n);else{const i=typeof t=="function"?oe(e,t,n.custom):t;s=Promise.all(Mi(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Di(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const qo=an.length;function Fi(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Fi(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<qo;n++){const s=an[n],i=e.props[s];(Te(i)||i===!1)&&(t[s]=i)}return t}const Zo=[...on].reverse(),Jo=on.length;function Qo(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Pi(e,n,s)))}function ea(e){let t=Qo(e),n=Hn(),s=!0;const i=l=>(c,u)=>{const f=oe(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:h,...y}=f;c={...c,...y,...h}}return c};function r(l){t=l(e)}function o(l){const{props:c}=e,u=Fi(e.parent)||{},f=[],d=new Set;let h={},y=1/0;for(let V=0;V<Jo;V++){const g=Zo[V],x=n[g],p=c[g]!==void 0?c[g]:u[g],A=Te(p),b=g===l?x.isActive:null;b===!1&&(y=V);let S=p===u[g]&&p!==c[g]&&A;if(S&&s&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...h},!x.isActive&&b===null||!p&&!x.prevProp||Ye(p)||typeof p=="boolean")continue;const P=ta(x.prevProp,p);let T=P||g===l&&x.isActive&&!S&&A||V>y&&A,O=!1;const R=Array.isArray(p)?p:[p];let se=R.reduce(i(g),{});b===!1&&(se={});const{prevResolvedValues:bn={}}=x,Ii={...bn,...se},Tn=D=>{T=!0,d.has(D)&&(O=!0,d.delete(D)),x.needsAnimating[D]=!0;const k=e.getValue(D);k&&(k.liveStyle=!1)};for(const D in Ii){const k=se[D],_=bn[D];if(h.hasOwnProperty(D))continue;let ie=!1;vt(k)&&vt(_)?ie=!Di(k,_):ie=k!==_,ie?k!=null?Tn(D):d.add(D):k!==void 0&&d.has(D)?Tn(D):x.protectedKeys[D]=!0}x.prevProp=p,x.prevResolvedValues=se,x.isActive&&(h={...h,...se}),s&&e.blockInitialAnimation&&(T=!1);const vn=S&&P;T&&(!vn||O)&&f.push(...R.map(D=>{const k={type:g};if(typeof D=="string"&&s&&!vn&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,ie=oe(_,D);if(_.enteringChildren&&ie){const{delayChildren:Ri}=ie.transition||{};k.delay=Ci(_.enteringChildren,e,Ri)}}return{animation:D,options:k}}))}if(d.size){const V={};if(typeof c.initial!="boolean"){const g=oe(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(V.transition=g.transition)}d.forEach(g=>{const x=e.getBaseTarget(g),p=e.getValue(g);p&&(p.liveStyle=!0),V[g]=x??null}),f.push({animation:V})}let v=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),s=!1,v?t(f):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,c)),n[l].isActive=c;const u=o(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Hn(),s=!0}}}function ta(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Di(t,e):!1}function G(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hn(){return{animate:G(!0),whileInView:G(),whileHover:G(),whileTap:G(),whileDrag:G(),whileFocus:G(),exit:G()}}class ne{constructor(t){this.isMounted=!1,this.node=t}update(){}}class na extends ne{constructor(t){super(t),t.animationState||(t.animationState=ea(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ye(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sa=0;class ia extends ne{constructor(){super(...arguments),this.id=sa++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ei={animation:{Feature:na},exit:{Feature:ia}};function Vt(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Xe(e){return{point:{x:e.pageX,y:e.pageY}}}const ra=e=>t=>rn(t)&&e(t,Xe(t));function Xn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&N.postRender(()=>r(t,Xe(t)))}class oa extends ne{mount(){const{current:t}=this.node;t&&(this.unmount=Ys(t,(n,s)=>(Xn(this.node,s,"Start"),i=>Xn(this.node,i,"End"))))}unmount(){}}class aa extends ne{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ve(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&N.postRender(()=>r(t,Xe(t)))}class ua extends ne{mount(){const{current:t}=this.node;t&&(this.unmount=Hs(t,(n,s)=>(qn(this.node,s,"Start"),(i,{success:r})=>qn(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wt=new WeakMap,tt=new WeakMap,la=e=>{const t=wt.get(e.target);t&&t(e)},ca=e=>{e.forEach(la)};function fa({root:e,...t}){const n=e||document;tt.has(n)||tt.set(n,{});const s=tt.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(ca,{root:e,...t})),s[i]}function da(e,t,n){const s=fa(t);return wt.set(e,n),s.observe(e),()=>{wt.delete(e),s.unobserve(e)}}const ha={some:0,all:1};class ma extends ne{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:ha[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return da(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(pa(t,n))&&this.startObserver()}unmount(){}}function pa({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oi={inView:{Feature:ma},tap:{Feature:ua},focus:{Feature:aa},hover:{Feature:oa}},ga={renderer:Vi,...Ei,...Oi};exports.AsyncMotionValueAnimation=Ls;exports.DOMKeyframesResolver=$s;exports.Feature=ne;exports.JSAnimation=Ge;exports.KeyframeResolver=Ue;exports.MotionContext=Ve;exports.MotionGlobalConfig=K;exports.MotionValue=Gs;exports.NativeAnimation=Rs;exports.NativeAnimationExtended=Ns;exports.SubscriptionManager=Ct;exports.SwitchLayoutGroupContext=ai;exports.VisualElement=bi;exports.addDomEvent=Vt;exports.addPointerInfo=ra;exports.addScaleCorrector=Qr;exports.addUniqueItem=Zn;exports.addValueToWillChange=wi;exports.alpha=ae;exports.analyseComplexValue=ue;exports.animateMotionValue=Ai;exports.animateVisualElement=Pi;exports.animations=Ei;exports.anticipate=It;exports.applyBoxDelta=mi;exports.applyGeneratorOptions=Is;exports.applyTreeDeltas=Co;exports.backIn=Le;exports.backInOut=Ot;exports.backOut=Et;exports.buildTransform=ei;exports.calcGeneratorDuration=_e;exports.cancelFrame=Pe;exports.circIn=Ke;exports.circInOut=Rt;exports.circOut=es;exports.clamp=$;exports.color=C;exports.complex=Q;exports.convertBoundingBoxToBox=ci;exports.convertBoxToBoundingBox=Ao;exports.convertOffsetToTimes=xs;exports.createBox=yn;exports.createDelta=Do;exports.createDomVisualElement=Vi;exports.createGeneratorEasing=gs;exports.createMotionProxy=li;exports.createRenderBatcher=Bt;exports.cubicBezier=le;exports.cubicBezierAsString=re;exports.defaultEasing=Vs;exports.defaultOffset=vs;exports.defaultTransformValue=Oe;exports.defaultValueTypes=Ws;exports.degrees=j;exports.dimensionValueTypes=Jt;exports.domAnimation=ga;exports.easeIn=ts;exports.easeInOut=kt;exports.easeOut=ns;exports.easingDefinitionToFunction=nt;exports.extractEventInfo=Xe;exports.fillOffset=Ts;exports.fillWildcards=Ss;exports.filterProps=Zs;exports.findDimensionValueType=dt;exports.findValueType=Xs;exports.flushKeyframeResolvers=Ps;exports.frame=N;exports.frameData=he;exports.frameSteps=_i;exports.generateLinearEasing=$t;exports.gestureAnimations=Oi;exports.getAnimatableNone=en;exports.getDefaultValueType=Qt;exports.getMixer=$e;exports.getOptimisedAppearId=Si;exports.getValueAsType=tn;exports.getValueTransition=Xt;exports.getVariableValue=Ht;exports.has2DTranslate=hi;exports.hasScale=fi;exports.hasTransform=di;exports.hex=De;exports.hover=Ys;exports.hsla=U;exports.hslaToRgba=ds;exports.inertia=Ee;exports.interpolate=bs;exports.invisibleValues=Fe;exports.isBezierDefinition=Nt;exports.isCSSVariableName=je;exports.isCSSVariableToken=We;exports.isDragActive=nn;exports.isDragging=mt;exports.isEasingArray=ss;exports.isGenerator=Yt;exports.isMotionValue=E;exports.isNodeOrChild=sn;exports.isNumericalString=St;exports.isPrimaryPointer=rn;exports.isRefObject=mn;exports.isValidMotionProp=be;exports.isZeroValueString=At;exports.keyframes=z;exports.m=So;exports.makeAnimationInstant=Re;exports.makeUseVisualState=dn;exports.mapEasingToNativeEasing=zt;exports.maxGeneratorDuration=pe;exports.measurePageBox=Po;exports.memo=Ne;exports.microtask=Us;exports.millisecondsToSeconds=L;exports.mirrorEasing=Dt;exports.mix=Wt;exports.mixArray=jt;exports.mixColor=it;exports.mixComplex=ps;exports.mixImmediate=me;exports.mixLinearColor=Me;exports.mixNumber=ce;exports.mixObject=ms;exports.mixVisibility=hs;exports.motionValue=ye;exports.noop=Z;exports.number=J;exports.numberValueTypes=ze;exports.optimizedAppearDataAttribute=gn;exports.parseCSSVariable=Ks;exports.parseValueFromTransform=Ie;exports.percent=H;exports.pipe=ve;exports.positionalKeys=qt;exports.press=Hs;exports.progress=Mt;exports.progressPercentage=st;exports.px=m;exports.readTransformValue=As;exports.removeItem=Jn;exports.resolveElements=_s;exports.resolveMotionValue=ri;exports.reverseEasing=Ft;exports.rgbUnit=Ae;exports.rgba=W;exports.scale=fe;exports.scaleCorrectors=ke;exports.scalePoint=pt;exports.secondsToMilliseconds=B;exports.setStyle=Ds;exports.spring=ge;exports.startWaapiAnimation=Os;exports.supportedWaapiEasing=ft;exports.supportsBrowserAnimation=Bs;exports.supportsFlags=Es;exports.supportsLinearEasing=Ut;exports.supportsScrollTimeline=Fs;exports.testValueType=Zt;exports.time=I;exports.transformBox=bt;exports.transformPropOrder=ee;exports.transformProps=te;exports.transformValueTypes=js;exports.translateAxis=yt;exports.velocityPerSecond=Pt;exports.vh=os;exports.visualElementStore=yi;exports.vw=as;exports.warnOnce=Be;
|
|
2
|
+
//# sourceMappingURL=features-animation-BoXKk5t2.js.map
|