framer-motion 7.6.7 → 7.6.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/cjs/index.js +115 -56
- package/dist/es/projection/geometry/delta-apply.mjs +4 -1
- package/dist/es/projection/node/create-projection-node.mjs +90 -43
- package/dist/es/projection/shared/stack.mjs +0 -1
- package/dist/es/projection/styles/transform.mjs +12 -6
- package/dist/es/projection/utils/measure.mjs +2 -2
- package/dist/es/render/VisualElement.mjs +5 -0
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +115 -56
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +16 -4
- package/dist/projection.dev.js +111 -52
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/three-entry.d.ts +16 -4
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},3880:(t,e,n)=>{n.d(e,{b8:()=>Vt});function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;Object.create;var o=n(9340),s=n(1698);const i=.001;function a({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let a,c;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let l=1-e;l=(0,s.u)(.05,1,l),t=(0,s.u)(.01,10,t/1e3),l<1?(a=e=>{const r=e*l,o=r*t,s=r-n,a=u(e,l),c=Math.exp(-o);return i-s/a*c},c=e=>{const r=e*l*t,o=r*n+n,s=Math.pow(l,2)*Math.pow(e,2)*t,c=Math.exp(-r),p=u(Math.pow(e,2),l);return(-a(e)+i>0?-1:1)*((o-s)*c)/p}):(a=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,c=e=>Math.exp(-e*t)*(t*t*(n-e)));const p=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(a,c,5/t);if(t*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(p,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}function u(t,e){return t*Math.sqrt(1-e*e)}const c=["duration","bounce"],l=["stiffness","damping","mass"];function p(t,e){return e.some((e=>void 0!==t[e]))}function d(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:s}=t,i=r(t,["from","to","restSpeed","restDelta"]);const d={done:!1,value:e};let{stiffness:f,damping:m,mass:v,velocity:g,duration:y,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!p(t,l)&&p(t,c)){const n=a(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(i),w=h,x=h;function V(){const t=g?-g/1e3:0,r=n-e,o=m/(2*Math.sqrt(f*v)),i=Math.sqrt(f/v)/1e3;if(void 0===s&&(s=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=u(i,o);w=s=>{const a=Math.exp(-o*i*s);return n-a*((t+o*i*r)/e*Math.sin(e*s)+r*Math.cos(e*s))},x=n=>{const s=Math.exp(-o*i*n);return o*i*s*(Math.sin(e*n)*(t+o*i*r)/e+r*Math.cos(e*n))-s*(Math.cos(e*n)*(t+o*i*r)-e*r*Math.sin(e*n))}}else if(1===o)w=e=>n-Math.exp(-i*e)*(r+(t+i*r)*e);else{const e=i*Math.sqrt(o*o-1);w=s=>{const a=Math.exp(-o*i*s),u=Math.min(e*s,300);return n-a*((t+o*i*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return V(),{next:t=>{const e=w(t);if(b)d.done=t>=y;else{const r=1e3*x(t),i=Math.abs(r)<=o,a=Math.abs(n-e)<=s;d.done=i&&a}return d.value=d.done?n:e,d},flipTarget:()=>{g=-g,[e,n]=[n,e],V()}}}d.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const h=t=>0;var f=n(1790),m=n(8481),v=n(9012),g=n(3203),y=n(7493);function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function w({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,s=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;o=b(a,r,t+1/3),s=b(a,r,t),i=b(a,r,t-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}const x=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},V=[v.$,g.m,y.J],A=t=>V.find((e=>e.test(t))),S=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,C=(t,e)=>{let n=A(t),r=A(e);(0,o.k)(!!n,S(t)),(0,o.k)(!!r,S(e));let s=n.parse(t),i=r.parse(e);n===y.J&&(s=w(s),n=g.m),r===y.J&&(i=w(i),r=g.m);const a=Object.assign({},s);return t=>{for(const e in a)"alpha"!==e&&(a[e]=x(s[e],i[e],t));return a.alpha=(0,m.C)(s.alpha,i.alpha,t),n.transform(a)}};var O=n(7576),P=n(6002),M=n(5091),E=n(934);function T(t,e){return(0,M.e)(t)?n=>(0,m.C)(t,e,n):O.$.test(t)?C(t,e):j(t,e)}const k=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>T(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},F=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=T(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function R(t){const e=P.P.parse(t),n=e.length;let r=0,o=0,s=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:s}}const j=(t,e)=>{const n=P.P.createTransformer(e),r=R(t),s=R(e);return r.numHSL===s.numHSL&&r.numRGB===s.numRGB&&r.numNumbers>=s.numNumbers?(0,E.z)(k(r.parsed,s.parsed),n):((0,o.K)(!0,`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.`),n=>`${n>0?e:t}`)},I=(t,e)=>n=>(0,m.C)(t,e,n);function $(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?I:"string"==typeof s?O.$.test(s)?C:j:Array.isArray(s)?k:"object"==typeof s?F:void 0);var s;const i=t.length-1;for(let n=0;n<i;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,E.z)(t,s)}r.push(s)}return r}function B(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=$(e,r,i),c=2===a?function([t,e],[n]){return r=>n((0,f.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let s=0,i=!1;if(o<=t[0]?i=!0:o>=t[r]&&(s=r-1,i=!0),!i){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);s=e-1}const a=(0,f.Y)(t[s],t[s+1],o);return e[s](a)}}(t,u);return n?e=>c((0,s.u)(t[0],t[a-1],e)):c}var D=n(6924);function N(t,e){return t.map((()=>e||D.mZ)).splice(0,t.length-1)}function L({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const s={done:!1,value:t},i=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(r&&r.length===i.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(i),o);function u(){return B(a,i,{ease:Array.isArray(n)?n:N(i,n)})}let c=u();return{next:t=>(s.value=c(t),s.done=t>=o,s),flipTarget:()=>{i.reverse(),c=u()}}}const Y={keyframes:L,spring:d,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const i={done:!1,value:e};let a=n*t;const u=e+a,c=void 0===s?u:s(u);return c!==u&&(a=c-e),{next:t=>{const e=-a*Math.exp(-t/r);return i.done=!(e>o||e<-o),i.value=i.done?c:c+e,i},flipTarget:()=>{}}}};var U=n(6162);function q(t,e,n=0){return t-e-n}const z=t=>{const e=({delta:e})=>t(e);return{start:()=>U.ZP.update(e,!0),stop:()=>U.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:s=!0,driver:i=z,elapsed:a=0,repeat:u=0,repeatType:c="loop",repeatDelay:l=0,onPlay:p,onStop:h,onComplete:f,onRepeat:m,onUpdate:v}=t,g=r(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,w,{to:x}=g,V=0,A=g.duration,S=!1,C=!0;const O=function(t){if(Array.isArray(t.to))return L;if(Y[t.type])return Y[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?L:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?d:L}(g);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,x))&&(w=B([0,100],[o,x],{clamp:!1}),o=0,x=100);const P=O(Object.assign(Object.assign({},g),{from:o,to:x}));function M(){V++,"reverse"===c?(C=V%2==0,a=function(t,e,n=0,r=!0){return r?q(e+-t,e,n):e-(t-e)+n}(a,A,l,C)):(a=q(a,A,l),"mirror"===c&&P.flipTarget()),S=!1,m&&m()}function E(t){if(C||(t=-t),a+=t,!S){const t=P.next(Math.max(0,a));b=t.value,w&&(b=w(b)),S=C?t.done:a<=0}null==v||v(b),S&&(0===V&&(null!=A||(A=a)),V<u?function(t,e,n,r){return r?t>=e+n:t<=-n}(a,A,l,C)&&M():(y.stop(),f&&f()))}return s&&(null==p||p(),y=i(E),y.start()),{stop:()=>{null==h||h(),y.stop()}}}var W=n(4060);var Z=n(1818);const X=(t,e)=>1-3*e+3*t,K=(t,e)=>3*e-6*t,J=t=>3*t,G=(t,e,n)=>((X(e,n)*t+K(e,n))*t+J(e))*t,_=(t,e,n)=>3*X(e,n)*t*t+2*K(e,n)*t+J(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return D.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=G(e*Q,t,n);function s(e){let r=0,s=1;for(;10!==s&&o[s]<=e;++s)r+=Q;--s;const i=r+(e-o[s])/(o[s+1]-o[s])*Q,a=_(i,t,n);return a>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=_(e,n,r);if(0===o)return e;e-=(G(e,n,r)-t)/o}return e}(e,i,t,n):0===a?i:function(t,e,n,r,o){let s,i,a=0;do{i=e+(n-e)/2,s=G(i,r,o)-t,s>0?n=i:e=i}while(Math.abs(s)>1e-7&&++a<10);return i}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:G(s(t),e,r)}const et={linear:D.GE,easeIn:D.YQ,easeInOut:D.mZ,easeOut:D.Vv,circIn:D.Z7,circInOut:D.X7,circOut:D.Bn,backIn:D.G2,backInOut:D.XL,backOut:D.CG,anticipate:D.LU,bounceIn:D.h9,bounceInOut:D.yD,bounceOut:D.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,s]=t;return tt(e,n,r,s)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},rt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var ot=n(2819);const st=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),it=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),at=()=>({type:"keyframes",ease:"linear",duration:.3}),ut=t=>({type:"keyframes",duration:.8,values:t}),ct={x:st,y:st,z:st,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scaleX:it,scaleY:it,scale:it,opacity:at,backgroundColor:at,color:at,default:it},lt=(t,e)=>{let n;return n=(0,ot.C)(e)?ut:ct[t]||ct.default,{to:e,...n(e)}};var pt=n(6914);const dt=!1;var ht=n(7048),ft=n(2866);let mt=!1;function vt({ease:t,times:e,yoyo:n,flip:r,loop:s,...i}){const a={...i};return e&&(a.offset=e),i.duration&&(a.duration=(0,Z.w)(i.duration)),i.repeatDelay&&(a.repeatDelay=(0,Z.w)(i.repeatDelay)),t&&(a.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(nt):nt(t)),"tween"===i.type&&(a.type="keyframes"),(n||s||r)&&((0,o.K)(!mt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),mt=!0,n?a.repeatType="reverse":s?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=s||n||r||i.repeat),"spring"!==i.type&&(a.type="keyframes"),a}function gt(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:u,...c}){return!!Object.keys(c).length}(t)||(t={...t,...lt(n,e.to)}),{...e,...vt(t)}}function yt(t,e,n,r,s){const i=xt(r,t)||{};let a=void 0!==i.from?i.from:e.get();const u=rt(t,n);"none"===a&&u&&"string"==typeof n?a=(0,pt.T)(t,n):bt(a)&&"string"==typeof n?a=wt(n):!Array.isArray(n)&&bt(n)&&"string"==typeof a&&(n=wt(a));const c=rt(t,a);return(0,o.K)(c===u,`You are trying to animate ${t} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),c&&u&&!1!==i.type?function(){const r={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===i.type||"decay"===i.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:p,onComplete:d,onStop:h}){let f;function m(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function g(t){null==f||f.stop(),f=H(Object.assign(Object.assign({},t),{driver:l,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:h}))}function y(t){g(Object.assign({type:"spring",stiffness:i,damping:a,restDelta:u},t))}if(m(t))y({from:t,velocity:e,to:v(t)});else{let r=o*e+t;void 0!==c&&(r=c(r));const i=v(r),a=i===n?-1:1;let l,p;const d=t=>{l=p,p=t,e=(0,W.R)(t-l,(0,U.$B)().delta),(1===a&&t>i||-1===a&&t<i)&&y({from:t,to:i,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:u,modifyTarget:c,onUpdate:m(r)?d:void 0})}return{stop:()=>null==f?void 0:f.stop()}}({...r,...i}):H({...gt(i,r,t),onUpdate:t=>{r.onUpdate(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{r.onComplete(),i.onComplete&&i.onComplete()}})}:function(){const t=(0,ht.Y)(n);return e.set(t),s(),i.onUpdate&&i.onUpdate(t),i.onComplete&&i.onComplete(),{stop:()=>{}}}}function bt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function wt(t){return"number"==typeof t?0:(0,pt.T)("",t)}function xt(t,e){return t[e]||t.default||t}function Vt(t,e,n,r={}){return dt&&(r={type:!1}),e.start((o=>{let s;const i=yt(t,e,n,r,o),a=function(t,e){var n,r;return null!==(r=null!==(n=(xt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),u=()=>s=i();let c;return a?c=(0,ft.g)(u,(0,Z.w)(a)):u(),()=>{c&&c(),s&&s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var r=n(8370),o=n(7866);function s(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,r.useId)();(0,r.useEffect)((()=>s(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},409:(t,e,n)=>{n.d(e,{qT:()=>u});var r=n(3541);const o={pageX:0,pageY:0};function s(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function i(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,r.z)(t)?s(t,e):i(t,e)}}const u=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(r=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&r(t)}):n;var r}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>c,m:()=>l});var r=n(1876),o=n(409),s=n(3093);const i={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},a={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function u(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?i[t]:t}function c(t,e,n,s){return(0,r.E)(t,u(e),(0,o.qT)(n,"pointerdown"===e),s)}function l(t,e,n,s){return(0,r.p)(t,u(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const o=r("dragHorizontal"),s=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function r(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>r,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,u]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!a)return;const c=window.getComputedStyle(e).getPropertyValue(a);return c?c.trim():o(u)?i(u,e,n+1):u}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=i(s,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(9500),o=n(6002),s=n(7557);function i(t,e){var n;let i=(0,s.A)(t);return i!==r.h&&(i=o.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7576),o=n(9500);const s={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(155),o=n(1513),s=n(6933);const i={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(1513).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},2866:(t,e,n)=>{n.d(e,{g:()=>o});var r=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const i=s-n;i>=e&&(r.qY.read(o),t(i-e))};return r.ZP.read(o,!0),()=>r.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>r});const r="undefined"!=typeof document},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>a});var r=n(6162),o=n(4060),s=n(1065);class i{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,r.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,r.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>r.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new i(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>h,ZP:()=>y,$B:()=>g});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let i=!0,a=!1,u=!1;const c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],p=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const u=a&&o,c=u?e:n;return s&&i.add(t),-1===c.indexOf(t)&&(c.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:u=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(u),i.has(r)&&(a.schedule(r),t())}o=!1,s&&(s=!1,a.process(u))}}};return a}((()=>a=!0)),t)),{}),d=l.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(a||v(),n.schedule(t,e,r)),t}),{}),h=l.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),f=(l.reduce(((t,e)=>(t[e]=()=>p[e].process(c),t)),{}),t=>p[t].process(c)),m=t=>{a=!1,c.delta=i?r:Math.max(Math.min(t-c.timestamp,40),1),c.timestamp=t,u=!0,l.forEach(f),u=!1,a&&(i=!1,s(m))},v=()=>{a=!0,i=!0,u||s(m)},g=()=>c,y=d},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>f,XL:()=>v,CG:()=>m,h9:()=>b,yD:()=>w,gJ:()=>y,Z7:()=>p,X7:()=>h,Bn:()=>d,YQ:()=>a,mZ:()=>l,Vv:()=>c,GE:()=>i});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s=t=>e=>e*e*((t+1)*e-t),i=t=>t,a=(u=2,t=>Math.pow(t,u));var u;const c=r(a),l=o(a),p=t=>1-Math.sin(Math.acos(t)),d=r(p),h=o(d),f=s(1.525),m=r(f),v=o(f),g=(t=>{const e=s(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),w=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},1790:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},4060:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(1513),o=n(155),s=n(5757),i=n(1552);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(5757),o=n(9012),s=n(7493),i=n(3203);const a={test:t=>i.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>u});var r=n(1513),o=n(5757),s=n(1552);const i=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(i(t))}),u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(r.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var r=n(5757);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[s,i,a,u]=o.match(r.KP);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==u?parseFloat(u):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>u});var r=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function i(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=s.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var r=n(7576),o=n(1513),s=n(5757);const i="${c}",a="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,i),e.push(...u.map(r.$.parse)));const c=t.match(s.KP);return c&&(t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function c(t){return u(t).values}function l(t){const{values:e,numColors:n,tokenised:o}=u(t),c=e.length;return t=>{let e=o;for(let o=0;o<c;o++)e=e.replace(o<n?i:a,o<n?r.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,r,o;return isNaN(t)&&(0,s.HD)(t)&&(null!==(n=null===(e=t.match(s.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(s.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:c,createTransformer:l,getAnimatableNone:function(t){const e=c(t);return l(t)(e.map(p))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>i});var r=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),i=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>s,aQ:()=>i,px:()=>a,vh:()=>u,vw:()=>c});var r=n(5757);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),i=o("%"),a=o("px"),u=o("vh"),c=o("vw"),l=Object.assign(Object.assign({},i),{parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>u,KP:()=>s,Nw:()=>o,dA:()=>i,mj:()=>a,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,i=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function u(t){return"string"==typeof t}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var a=n(3880),u=n(6002);const c=t=>/^0[^.\s]+$/.test(t);var l=n(7048),p=n(1421),d=n(6914),h=n(7576),f=n(1513),m=n(155);const v=t=>e=>e.test(t),g=[f.Rx,m.px,m.aQ,m.RW,m.vw,m.vh,{test:t=>"auto"===t,parse:t=>t}],y=t=>g.find(v(t)),b=[...g,h.$,u.P],w=t=>b.find(v(t));function x(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}function V(t,e,n){const r=t.getProps();return x(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function A(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function S(t,e){const n=V(t,e);let{transitionEnd:r={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const e in s){A(t,e,(0,l.Y)(s[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const O=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(O);var M=n(7846);function E(t){return Boolean((0,M.i)(t)&&t.add)}function T(t,e,n={}){var r;const o=V(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>k(t,o,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,o=1,s){const i=[],a=(t.variantChildren.size-1)*r,u=1===o?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(F).forEach(((t,r)=>{i.push(T(t,e,{...s,delay:n+u(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:u}=s;if(u){const[t,e]="beforeChildren"===u?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:u,...c}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const p=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in c){const r=t.getValue(e),o=c[e];if(!r||void 0===o||d&&R(d,e))continue;let s={delay:n,...i};t.shouldReduceMotion&&P.has(e)&&(s={...s,type:!1,delay:0});let u=(0,a.b8)(e,r,o,s);E(l)&&(l.add(e),u=u.then((()=>l.remove(e)))),p.push(u)}return Promise.all(p).then((()=>{u&&S(t,u)}))}function F(t,e){return t.sortNodePosition(e)}function R({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function j(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const $=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],B=[...$].reverse(),D=$.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>T(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=T(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;r=k(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function L(t){let n=N(t);const r={[I.r.Animate]:U(!0),[I.r.InView]:U(),[I.r.Hover]:U(),[I.r.Tap]:U(),[I.r.Drag]:U(),[I.r.Focus]:U(),[I.r.Exit]:U()};let o=!0;const a=(e,n)=>{const r=V(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function u(u,c){var l;const p=t.getProps(),d=t.getVariantContext(!0)||{},h=[],f=new Set;let m={},v=1/0;for(let n=0;n<D;n++){const g=B[n],y=r[g],b=null!==(l=p[g])&&void 0!==l?l:d[g],w=j(b),x=g===c?y.isActive:null;!1===x&&(v=n);let V=b===d[g]&&b!==p[g]&&w;if(V&&o&&t.manuallyAnimateOnMount&&(V=!1),y.protectedKeys={...m},!y.isActive&&null===x||!b&&!y.prevProp||e(b)||"boolean"==typeof b)continue;const A=Y(y.prevProp,b);let S=A||g===c&&y.isActive&&!V&&w||n>v&&w;const C=Array.isArray(b)?b:[b];let O=C.reduce(a,{});!1===x&&(O={});const{prevResolvedValues:P={}}=y,M={...P,...O},E=t=>{S=!0,f.delete(t),y.needsAnimating[t]=!0};for(const t in M){const e=O[t],n=P[t];m.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||A?E(t):y.protectedKeys[t]=!0:void 0!==e?E(t):f.add(t):void 0!==e&&f.has(t)?E(t):y.protectedKeys[t]=!0)}y.prevProp=b,y.prevResolvedValues=O,y.isActive&&(m={...m,...O}),o&&t.blockInitialAnimation&&(S=!1),S&&!V&&h.push(...C.map((t=>({animation:t,options:{type:g,...u}}))))}if(f.size){const e={};f.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),h.push({animation:e})}let g=Boolean(h.length);return o&&!1===p.initial&&!t.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(h):Promise.resolve()}return{animateChanges:u,setActive:function(e,n,o){var s;if(r[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const i=u(o,e);for(const t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function Y(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!i(e,t)}function U(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var q=n(6295);const z={animation:(0,q.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=L(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,q.x)((e=>{const{custom:n,visualElement:s}=e,[i,a]=(0,r.oO)(),u=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{s.isPresent=i;const t=s.animationState&&s.animationState.setActive(I.r.Exit,!i,{custom:u&&u.custom||n});t&&!i&&t.then(a)}),[i])}))};var H=n(1876);var W=n(3541),Z=n(1395),X=n(5856);function K(t,e,n){return(r,o)=>{(0,W.N)(r)&&!(0,X.gD)()&&(t.animationState&&t.animationState.setActive(I.r.Hover,e),n&&n(r,o))}}const J=(t,e)=>!!e&&(t===e||J(t,e.parentElement));var G=n(9531),_=n(934);const Q=("undefined"==typeof process||process.env,"production"),tt=new Set;const et=new WeakMap,nt=new WeakMap,rt=t=>{const e=et.get(t.target);e&&e(t)},ot=t=>{t.forEach(rt)};function st(t,e,n){const r=function({root:t,...e}){const n=t||document;nt.has(n)||nt.set(n,{});const r=nt.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(ot,{root:t,...e})),r[o]}(e);return et.set(t,n),r.observe(t),()=>{et.delete(t),r.unobserve(t)}}const it={some:0,all:1};function at(e,n,r,{root:o,margin:s,amount:i="some",once:a}){(0,t.useEffect)((()=>{if(!e||!r.current)return;const t={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof i?i:it[i]};return st(r.current,t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,a&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(I.r.InView,e);const o=r.getProps(),s=e?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[e,o,s,i])}function ut(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{var t,s;e&&o&&("production"!==Q&&(t="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||tt.has(t)||(console.warn(t),s&&console.warn(s),tt.add(t))),requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(I.r.InView,!0)})))}),[e])}const ct={inView:(0,q.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:s={}}){const i=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(n||r||o);s.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ut:at)(a,i.current,e,s)})),tap:(0,q.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:s}){const i=e||n||r||o,a=(0,t.useRef)(!1),u=(0,t.useRef)(null),c={passive:!(n||e||r||f)};function l(){u.current&&u.current(),u.current=null}function p(){return l(),a.current=!1,s.animationState&&s.animationState.setActive(I.r.Tap,!1),!(0,X.gD)()}function d(t,n){p()&&(J(s.current,t.target)?e&&e(t,n):r&&r(t,n))}function h(t,e){p()&&r&&r(t,e)}function f(t,e){l(),a.current||(a.current=!0,u.current=(0,_.z)((0,Z.a)(window,"pointerup",d,c),(0,Z.a)(window,"pointercancel",h,c)),s.animationState&&s.animationState.setActive(I.r.Tap,!0),n&&n(t,e))}(0,Z.m)(s,"pointerdown",i?f:void 0,c),(0,G.z)(l)})),focus:(0,q.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,H.p)(e,"focus",t?()=>{n&&n.setActive(I.r.Focus,!0)}:void 0),(0,H.p)(e,"blur",t?()=>{n&&n.setActive(I.r.Focus,!1)}:void 0)})),hover:(0,q.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){(0,Z.m)(r,"pointerenter",t||n?K(r,!0,t):void 0,{passive:!t}),(0,Z.m)(r,"pointerleave",e||n?K(r,!1,e):void 0,{passive:!e})}))},lt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>O.indexOf(t)-O.indexOf(e);function dt(t){return t.startsWith("--")}const ht=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var ft=n(4923);function mt(t,e,n,r){const{style:o,vars:s,transform:i,transformKeys:a,transformOrigin:u}=t;a.length=0;let c=!1,l=!1,p=!0;for(const t in e){const n=e[t];if(dt(t)){s[t]=n;continue}const r=ft.j[t],c=ht(n,r);if(P.has(t)){if(!0,i[t]=c,a.push(t),!p)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,u[t]=c):o[t]=c}if(e.transform||(c||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,s){let i="";e.sort(pt);for(const n of e)`${lt[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),s?s(t,o?"":i):r&&o&&"none",i}(t,n,p,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=u;o.transformOrigin=`${t} ${e} ${n}`}}var vt=n(798);function gt(t,{layout:e,layoutId:n}){return P.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!vt.P[t]||"opacity"===t)}function yt(t){const{style:e}=t,n={};for(const r in e)((0,M.i)(e[r])||gt(r,t))&&(n[r]=e[r]);return n}function bt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var wt=n(7557),xt=n(8834),Vt=n(6978),At=n(9340),St=n(3093);const Ct=new Set(["width","height","top","left","right","bottom","x","y"]),Ot=t=>Ct.has(t),Pt=(t,e)=>{t.set(e,!1),t.set(e)},Mt=t=>t===f.Rx||t===m.px;var Et;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Et||(Et={}));const Tt=(t,e)=>parseFloat(t.split(", ")[e]),kt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Tt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Tt(e[1],t):0}},Ft=new Set(["x","y","z"]),Rt=O.filter((t=>!Ft.has(t)));const jt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:kt(4,13),y:kt(5,14)},It=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Ot);let i=[],a=!1;const u=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let l=n[o],p=y(l);const d=e[o];let h;if((0,s.C)(d)){const t=d.length,e=null===d[0]?1:0;l=d[e],p=y(l);for(let n=e;n<t;n++)h?(0,At.k)(y(d[n])===h,"All keyframes must be of the same type"):(h=y(d[n]),(0,At.k)(h===p||Mt(p)&&Mt(h),"Keyframes must be of the same dimension as the current value"))}else h=y(d);if(p!==h)if(Mt(p)&&Mt(h)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&h===m.px&&(e[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==h?void 0:h.transform)&&(0===l||0===d)?0===l?c.set(h.transform(l)):e[o]=p.transform(d):(a||(i=function(t){const e=[];return Rt.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),u.push(o),r[o]=void 0!==r[o]?r[o]:e[o],Pt(c,d))})),u.length){const n=u.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:i}=s,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=jt[t](r,s)})),e.render();const u=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);Pt(r,a[n]),t[n]=jt[n](u,s)})),t})(e,t,u);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),St.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function $t(t,e,n,r){return(t=>Object.keys(t).some(Ot))(e)?It(t,e,n,r):{target:e,transitionEnd:r}}var Bt=n(6162);const Dt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:Dt(["layout","layoutId","drag"]),animation:Dt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Dt(["exit"]),drag:Dt(["drag","dragControls"]),focus:Dt(["whileFocus"]),hover:Dt(["whileHover","onHoverStart","onHoverEnd"]),tap:Dt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Dt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Dt(["whileInView","onViewportEnter","onViewportLeave"])};var Lt=n(1397),Yt=n(3491);const Ut={current:null},qt={current:!1};var zt=n(1065);const Ht=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Wt(t){return e(t.animate)||Ht.some((e=>j(t[e])))}const Zt=Object.keys(Nt),Xt=Zt.length,Kt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Jt=["initial",...$],Gt=Jt.length;class _t extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>Bt.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:i}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=i,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Wt(e),this.isVariantNode=function(t){return Boolean(Wt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...u}=this.scrapeMotionValuesFromProps(e);for(const t in u){const e=u[t];void 0!==s[t]&&(0,M.i)(e)&&(e.set(s[t],!1),E(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===this.parent||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),qt.current||function(){if(qt.current=!0,St.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ut.current=t.matches;t.addListener(e),e()}else Ut.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ut.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===this.projection||void 0===t||t.unmount(),Bt.qY.update(this.notifyUpdate),Bt.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===this.removeFromVariantTree||void 0===e||e.call(this),null===this.parent||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Bt.ZP.update(this.notifyUpdate,!1,!0)})),r=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{n(),r()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(e,n,r,o,s,i){const a=[];"production"!==Q&&r&&n&&(0,At.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let n=0;n<Xt;n++){const r=Zt[n],{isEnabled:o,Component:s}=Nt[r];o(e)&&s&&a.push((0,t.createElement)(s,{key:r,...e,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,Yt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:u})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Lt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<Kt.length;e++){const n=Kt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const s=e[o],i=n[o];if((0,M.i)(s))t.addValue(o,s),E(r)&&r.add(o);else if((0,M.i)(i))t.addValue(o,(0,p.B)(s)),E(r)&&r.remove(o);else if(i!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,p.B)(void 0!==e?e:s))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===this.props.variants||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===this.parent||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===this.parent||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===this.parent||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<Gt;t++){const e=Jt[t],n=this.props[e];(j(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===n.variantChildren||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===this.valueSubscriptions.get(t)||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&((0,p.B)(e),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===x(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,M.i)(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new zt.L),this.events[t].add(e)}notify(t,...e){var n;null===this.events[t]||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===t.style||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let s=function(t,e,n){var r;const o={};for(const s in t){const t=C(s,e);o[s]=void 0!==t?t:null===n.getValue(s)||void 0===r?void 0:r.get()}return o}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),s&&r(s)),o){!function(t,e,n){var r,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),i=s.length;if(i)for(let a=0;a<i;a++){const i=s[a],l=e[i];let h=null;Array.isArray(l)&&l[0],null===h&&(null!==(null!==n[i]&&void 0!==r?r:t.readValue(i))&&void 0!==o?o:e[i]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||c(h))?parseFloat(h):!w(h)&&u.P.test(l)&&(0,d.T)(i,l),t.addValue(i,(0,p.B)(h)),void 0===n[i]&&(n[i]=h),null!==h&&t.setBaseTarget(i,h))}}(this,n,s);const t=((t,e,n,r)=>{const o=(0,Vt.mH)(t,e,r);return $t(t,o.target,n,o.transitionEnd)})(this,n,s,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class Qt extends _t{readValueFromInstance(t,e){if(P.has(e)){const t=(0,wt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),o=(dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,xt.J)(t,e)}build(t,e,n,r){mt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t){return yt(t)}renderInstance(t,e,n,r){bt(t,e,n,r)}}function te(t,e,n){return"string"==typeof t?t:m.px.transform(e+n*t)}const ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},ne={offset:"strokeDashoffset",array:"strokeDasharray"};function re(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...u},c,l){mt(t,u,c,l),t.attrs=t.style,t.style={};const{attrs:p,style:d,dimensions:h}=t;p.transform&&(h&&(d.transform=p.transform),delete p.transform),h&&(void 0!==r||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${te(e,t.x,t.width)} ${te(n,t.y,t.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==s&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const s=o?ee:ne;t[s.offset]=m.px.transform(-r);const i=m.px.transform(e),a=m.px.transform(n);t[s.array]=`${i} ${a}`}(p,s,i,a,!1)}const oe=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);class ie extends _t{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return P.has(e)?(null===(0,wt.A)(e)||void 0===n?void 0:n.default)||0:(se.has(e)?e:oe(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Lt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=yt(t);for(const n in t)(0,M.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,r){re(t,e,n,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){bt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(se.has(n)?n:oe(n),e.attrs[n])}(t,e,0,r)}}const ae=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"]})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},3880:(t,e,n)=>{n.d(e,{b8:()=>Vt});function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;Object.create;var o=n(9340),s=n(1698);const i=.001;function a({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let a,c;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let l=1-e;l=(0,s.u)(.05,1,l),t=(0,s.u)(.01,10,t/1e3),l<1?(a=e=>{const r=e*l,o=r*t,s=r-n,a=u(e,l),c=Math.exp(-o);return i-s/a*c},c=e=>{const r=e*l*t,o=r*n+n,s=Math.pow(l,2)*Math.pow(e,2)*t,c=Math.exp(-r),p=u(Math.pow(e,2),l);return(-a(e)+i>0?-1:1)*((o-s)*c)/p}):(a=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,c=e=>Math.exp(-e*t)*(t*t*(n-e)));const p=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(a,c,5/t);if(t*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(p,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}function u(t,e){return t*Math.sqrt(1-e*e)}const c=["duration","bounce"],l=["stiffness","damping","mass"];function p(t,e){return e.some((e=>void 0!==t[e]))}function d(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:s}=t,i=r(t,["from","to","restSpeed","restDelta"]);const d={done:!1,value:e};let{stiffness:f,damping:m,mass:v,velocity:g,duration:y,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!p(t,l)&&p(t,c)){const n=a(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(i),w=h,x=h;function V(){const t=g?-g/1e3:0,r=n-e,o=m/(2*Math.sqrt(f*v)),i=Math.sqrt(f/v)/1e3;if(void 0===s&&(s=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=u(i,o);w=s=>{const a=Math.exp(-o*i*s);return n-a*((t+o*i*r)/e*Math.sin(e*s)+r*Math.cos(e*s))},x=n=>{const s=Math.exp(-o*i*n);return o*i*s*(Math.sin(e*n)*(t+o*i*r)/e+r*Math.cos(e*n))-s*(Math.cos(e*n)*(t+o*i*r)-e*r*Math.sin(e*n))}}else if(1===o)w=e=>n-Math.exp(-i*e)*(r+(t+i*r)*e);else{const e=i*Math.sqrt(o*o-1);w=s=>{const a=Math.exp(-o*i*s),u=Math.min(e*s,300);return n-a*((t+o*i*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return V(),{next:t=>{const e=w(t);if(b)d.done=t>=y;else{const r=1e3*x(t),i=Math.abs(r)<=o,a=Math.abs(n-e)<=s;d.done=i&&a}return d.value=d.done?n:e,d},flipTarget:()=>{g=-g,[e,n]=[n,e],V()}}}d.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const h=t=>0;var f=n(1790),m=n(8481),v=n(9012),g=n(3203),y=n(7493);function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function w({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,s=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;o=b(a,r,t+1/3),s=b(a,r,t),i=b(a,r,t-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}const x=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},V=[v.$,g.m,y.J],A=t=>V.find((e=>e.test(t))),S=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,C=(t,e)=>{let n=A(t),r=A(e);(0,o.k)(!!n,S(t)),(0,o.k)(!!r,S(e));let s=n.parse(t),i=r.parse(e);n===y.J&&(s=w(s),n=g.m),r===y.J&&(i=w(i),r=g.m);const a=Object.assign({},s);return t=>{for(const e in a)"alpha"!==e&&(a[e]=x(s[e],i[e],t));return a.alpha=(0,m.C)(s.alpha,i.alpha,t),n.transform(a)}};var O=n(7576),P=n(6002),M=n(5091),E=n(934);function T(t,e){return(0,M.e)(t)?n=>(0,m.C)(t,e,n):O.$.test(t)?C(t,e):R(t,e)}const k=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>T(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},F=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=T(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function j(t){const e=P.P.parse(t),n=e.length;let r=0,o=0,s=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:s}}const R=(t,e)=>{const n=P.P.createTransformer(e),r=j(t),s=j(e);return r.numHSL===s.numHSL&&r.numRGB===s.numRGB&&r.numNumbers>=s.numNumbers?(0,E.z)(k(r.parsed,s.parsed),n):((0,o.K)(!0,`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.`),n=>`${n>0?e:t}`)},I=(t,e)=>n=>(0,m.C)(t,e,n);function $(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?I:"string"==typeof s?O.$.test(s)?C:R:Array.isArray(s)?k:"object"==typeof s?F:void 0);var s;const i=t.length-1;for(let n=0;n<i;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,E.z)(t,s)}r.push(s)}return r}function D(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=$(e,r,i),c=2===a?function([t,e],[n]){return r=>n((0,f.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let s=0,i=!1;if(o<=t[0]?i=!0:o>=t[r]&&(s=r-1,i=!0),!i){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);s=e-1}const a=(0,f.Y)(t[s],t[s+1],o);return e[s](a)}}(t,u);return n?e=>c((0,s.u)(t[0],t[a-1],e)):c}var B=n(6924);function N(t,e){return t.map((()=>e||B.mZ)).splice(0,t.length-1)}function L({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const s={done:!1,value:t},i=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(r&&r.length===i.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(i),o);function u(){return D(a,i,{ease:Array.isArray(n)?n:N(i,n)})}let c=u();return{next:t=>(s.value=c(t),s.done=t>=o,s),flipTarget:()=>{i.reverse(),c=u()}}}const Y={keyframes:L,spring:d,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const i={done:!1,value:e};let a=n*t;const u=e+a,c=void 0===s?u:s(u);return c!==u&&(a=c-e),{next:t=>{const e=-a*Math.exp(-t/r);return i.done=!(e>o||e<-o),i.value=i.done?c:c+e,i},flipTarget:()=>{}}}};var U=n(6162);function q(t,e,n=0){return t-e-n}const z=t=>{const e=({delta:e})=>t(e);return{start:()=>U.ZP.update(e,!0),stop:()=>U.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:s=!0,driver:i=z,elapsed:a=0,repeat:u=0,repeatType:c="loop",repeatDelay:l=0,onPlay:p,onStop:h,onComplete:f,onRepeat:m,onUpdate:v}=t,g=r(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,w,{to:x}=g,V=0,A=g.duration,S=!1,C=!0;const O=function(t){if(Array.isArray(t.to))return L;if(Y[t.type])return Y[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?L:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?d:L}(g);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,x))&&(w=D([0,100],[o,x],{clamp:!1}),o=0,x=100);const P=O(Object.assign(Object.assign({},g),{from:o,to:x}));function M(){V++,"reverse"===c?(C=V%2==0,a=function(t,e,n=0,r=!0){return r?q(e+-t,e,n):e-(t-e)+n}(a,A,l,C)):(a=q(a,A,l),"mirror"===c&&P.flipTarget()),S=!1,m&&m()}function E(t){if(C||(t=-t),a+=t,!S){const t=P.next(Math.max(0,a));b=t.value,w&&(b=w(b)),S=C?t.done:a<=0}null==v||v(b),S&&(0===V&&(null!=A||(A=a)),V<u?function(t,e,n,r){return r?t>=e+n:t<=-n}(a,A,l,C)&&M():(y.stop(),f&&f()))}return s&&(null==p||p(),y=i(E),y.start()),{stop:()=>{null==h||h(),y.stop()}}}var W=n(4060);var Z=n(1818);const X=(t,e)=>1-3*e+3*t,K=(t,e)=>3*e-6*t,J=t=>3*t,G=(t,e,n)=>((X(e,n)*t+K(e,n))*t+J(e))*t,_=(t,e,n)=>3*X(e,n)*t*t+2*K(e,n)*t+J(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return B.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=G(e*Q,t,n);function s(e){let r=0,s=1;for(;10!==s&&o[s]<=e;++s)r+=Q;--s;const i=r+(e-o[s])/(o[s+1]-o[s])*Q,a=_(i,t,n);return a>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=_(e,n,r);if(0===o)return e;e-=(G(e,n,r)-t)/o}return e}(e,i,t,n):0===a?i:function(t,e,n,r,o){let s,i,a=0;do{i=e+(n-e)/2,s=G(i,r,o)-t,s>0?n=i:e=i}while(Math.abs(s)>1e-7&&++a<10);return i}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:G(s(t),e,r)}const et={linear:B.GE,easeIn:B.YQ,easeInOut:B.mZ,easeOut:B.Vv,circIn:B.Z7,circInOut:B.X7,circOut:B.Bn,backIn:B.G2,backInOut:B.XL,backOut:B.CG,anticipate:B.LU,bounceIn:B.h9,bounceInOut:B.yD,bounceOut:B.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,s]=t;return tt(e,n,r,s)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},rt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var ot=n(2819);const st=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),it=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),at=()=>({type:"keyframes",ease:"linear",duration:.3}),ut=t=>({type:"keyframes",duration:.8,values:t}),ct={x:st,y:st,z:st,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scaleX:it,scaleY:it,scale:it,opacity:at,backgroundColor:at,color:at,default:it},lt=(t,e)=>{let n;return n=(0,ot.C)(e)?ut:ct[t]||ct.default,{to:e,...n(e)}};var pt=n(6914);const dt=!1;var ht=n(7048),ft=n(2866);let mt=!1;function vt({ease:t,times:e,yoyo:n,flip:r,loop:s,...i}){const a={...i};return e&&(a.offset=e),i.duration&&(a.duration=(0,Z.w)(i.duration)),i.repeatDelay&&(a.repeatDelay=(0,Z.w)(i.repeatDelay)),t&&(a.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(nt):nt(t)),"tween"===i.type&&(a.type="keyframes"),(n||s||r)&&((0,o.K)(!mt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),mt=!0,n?a.repeatType="reverse":s?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=s||n||r||i.repeat),"spring"!==i.type&&(a.type="keyframes"),a}function gt(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:u,...c}){return!!Object.keys(c).length}(t)||(t={...t,...lt(n,e.to)}),{...e,...vt(t)}}function yt(t,e,n,r,s){const i=xt(r,t)||{};let a=void 0!==i.from?i.from:e.get();const u=rt(t,n);"none"===a&&u&&"string"==typeof n?a=(0,pt.T)(t,n):bt(a)&&"string"==typeof n?a=wt(n):!Array.isArray(n)&&bt(n)&&"string"==typeof a&&(n=wt(a));const c=rt(t,a);return(0,o.K)(c===u,`You are trying to animate ${t} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),c&&u&&!1!==i.type?function(){const r={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===i.type||"decay"===i.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:p,onComplete:d,onStop:h}){let f;function m(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function g(t){null==f||f.stop(),f=H(Object.assign(Object.assign({},t),{driver:l,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:h}))}function y(t){g(Object.assign({type:"spring",stiffness:i,damping:a,restDelta:u},t))}if(m(t))y({from:t,velocity:e,to:v(t)});else{let r=o*e+t;void 0!==c&&(r=c(r));const i=v(r),a=i===n?-1:1;let l,p;const d=t=>{l=p,p=t,e=(0,W.R)(t-l,(0,U.$B)().delta),(1===a&&t>i||-1===a&&t<i)&&y({from:t,to:i,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:u,modifyTarget:c,onUpdate:m(r)?d:void 0})}return{stop:()=>null==f?void 0:f.stop()}}({...r,...i}):H({...gt(i,r,t),onUpdate:t=>{r.onUpdate(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{r.onComplete(),i.onComplete&&i.onComplete()}})}:function(){const t=(0,ht.Y)(n);return e.set(t),s(),i.onUpdate&&i.onUpdate(t),i.onComplete&&i.onComplete(),{stop:()=>{}}}}function bt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function wt(t){return"number"==typeof t?0:(0,pt.T)("",t)}function xt(t,e){return t[e]||t.default||t}function Vt(t,e,n,r={}){return dt&&(r={type:!1}),e.start((o=>{let s;const i=yt(t,e,n,r,o),a=function(t,e){var n,r;return null!==(r=null!==(n=(xt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),u=()=>s=i();let c;return a?c=(0,ft.g)(u,(0,Z.w)(a)):u(),()=>{c&&c(),s&&s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var r=n(8370),o=n(7866);function s(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,r.useId)();(0,r.useEffect)((()=>s(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},409:(t,e,n)=>{n.d(e,{qT:()=>u});var r=n(3541);const o={pageX:0,pageY:0};function s(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function i(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,r.z)(t)?s(t,e):i(t,e)}}const u=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(r=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&r(t)}):n;var r}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>c,m:()=>l});var r=n(1876),o=n(409),s=n(3093);const i={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},a={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function u(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?i[t]:t}function c(t,e,n,s){return(0,r.E)(t,u(e),(0,o.qT)(n,"pointerdown"===e),s)}function l(t,e,n,s){return(0,r.p)(t,u(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const o=r("dragHorizontal"),s=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function r(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>r,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,u]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!a)return;const c=window.getComputedStyle(e).getPropertyValue(a);return c?c.trim():o(u)?i(u,e,n+1):u}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=i(s,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(9500),o=n(6002),s=n(7557);function i(t,e){var n;let i=(0,s.A)(t);return i!==r.h&&(i=o.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7576),o=n(9500);const s={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(155),o=n(1513),s=n(6933);const i={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(1513).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},2866:(t,e,n)=>{n.d(e,{g:()=>o});var r=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const i=s-n;i>=e&&(r.qY.read(o),t(i-e))};return r.ZP.read(o,!0),()=>r.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>r});const r="undefined"!=typeof document},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>a});var r=n(6162),o=n(4060),s=n(1065);class i{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,r.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,r.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>r.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new i(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>h,ZP:()=>y,$B:()=>g});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let i=!0,a=!1,u=!1;const c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],p=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const u=a&&o,c=u?e:n;return s&&i.add(t),-1===c.indexOf(t)&&(c.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:u=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(u),i.has(r)&&(a.schedule(r),t())}o=!1,s&&(s=!1,a.process(u))}}};return a}((()=>a=!0)),t)),{}),d=l.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(a||v(),n.schedule(t,e,r)),t}),{}),h=l.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),f=(l.reduce(((t,e)=>(t[e]=()=>p[e].process(c),t)),{}),t=>p[t].process(c)),m=t=>{a=!1,c.delta=i?r:Math.max(Math.min(t-c.timestamp,40),1),c.timestamp=t,u=!0,l.forEach(f),u=!1,a&&(i=!1,s(m))},v=()=>{a=!0,i=!0,u||s(m)},g=()=>c,y=d},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>f,XL:()=>v,CG:()=>m,h9:()=>b,yD:()=>w,gJ:()=>y,Z7:()=>p,X7:()=>h,Bn:()=>d,YQ:()=>a,mZ:()=>l,Vv:()=>c,GE:()=>i});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s=t=>e=>e*e*((t+1)*e-t),i=t=>t,a=(u=2,t=>Math.pow(t,u));var u;const c=r(a),l=o(a),p=t=>1-Math.sin(Math.acos(t)),d=r(p),h=o(d),f=s(1.525),m=r(f),v=o(f),g=(t=>{const e=s(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),w=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},1790:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},4060:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(1513),o=n(155),s=n(5757),i=n(1552);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(5757),o=n(9012),s=n(7493),i=n(3203);const a={test:t=>i.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>u});var r=n(1513),o=n(5757),s=n(1552);const i=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(i(t))}),u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(r.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var r=n(5757);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[s,i,a,u]=o.match(r.KP);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==u?parseFloat(u):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>u});var r=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function i(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=s.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var r=n(7576),o=n(1513),s=n(5757);const i="${c}",a="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,i),e.push(...u.map(r.$.parse)));const c=t.match(s.KP);return c&&(t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function c(t){return u(t).values}function l(t){const{values:e,numColors:n,tokenised:o}=u(t),c=e.length;return t=>{let e=o;for(let o=0;o<c;o++)e=e.replace(o<n?i:a,o<n?r.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,r,o;return isNaN(t)&&(0,s.HD)(t)&&(null!==(n=null===(e=t.match(s.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(s.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:c,createTransformer:l,getAnimatableNone:function(t){const e=c(t);return l(t)(e.map(p))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>i});var r=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),i=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>s,aQ:()=>i,px:()=>a,vh:()=>u,vw:()=>c});var r=n(5757);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),i=o("%"),a=o("px"),u=o("vh"),c=o("vw"),l=Object.assign(Object.assign({},i),{parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>u,KP:()=>s,Nw:()=>o,dA:()=>i,mj:()=>a,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,i=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function u(t){return"string"==typeof t}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var a=n(3880),u=n(6002);const c=t=>/^0[^.\s]+$/.test(t);var l=n(7048),p=n(1421),d=n(6914),h=n(7576),f=n(1513),m=n(155);const v=t=>e=>e.test(t),g=[f.Rx,m.px,m.aQ,m.RW,m.vw,m.vh,{test:t=>"auto"===t,parse:t=>t}],y=t=>g.find(v(t)),b=[...g,h.$,u.P],w=t=>b.find(v(t));function x(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}function V(t,e,n){const r=t.getProps();return x(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function A(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function S(t,e){const n=V(t,e);let{transitionEnd:r={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const e in s){A(t,e,(0,l.Y)(s[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const O=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(O);var M=n(7846);function E(t){return Boolean((0,M.i)(t)&&t.add)}function T(t,e,n={}){var r;const o=V(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>k(t,o,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,o=1,s){const i=[],a=(t.variantChildren.size-1)*r,u=1===o?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(F).forEach(((t,r)=>{i.push(T(t,e,{...s,delay:n+u(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:u}=s;if(u){const[t,e]="beforeChildren"===u?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:u,...c}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const p=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in c){const r=t.getValue(e),o=c[e];if(!r||void 0===o||d&&j(d,e))continue;let s={delay:n,...i};t.shouldReduceMotion&&P.has(e)&&(s={...s,type:!1,delay:0});let u=(0,a.b8)(e,r,o,s);E(l)&&(l.add(e),u=u.then((()=>l.remove(e)))),p.push(u)}return Promise.all(p).then((()=>{u&&S(t,u)}))}function F(t,e){return t.sortNodePosition(e)}function j({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function R(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const $=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],D=[...$].reverse(),B=$.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>T(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=T(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;r=k(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function L(t){let n=N(t);const r={[I.r.Animate]:U(!0),[I.r.InView]:U(),[I.r.Hover]:U(),[I.r.Tap]:U(),[I.r.Drag]:U(),[I.r.Focus]:U(),[I.r.Exit]:U()};let o=!0;const a=(e,n)=>{const r=V(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function u(u,c){var l;const p=t.getProps(),d=t.getVariantContext(!0)||{},h=[],f=new Set;let m={},v=1/0;for(let n=0;n<B;n++){const g=D[n],y=r[g],b=null!==(l=p[g])&&void 0!==l?l:d[g],w=R(b),x=g===c?y.isActive:null;!1===x&&(v=n);let V=b===d[g]&&b!==p[g]&&w;if(V&&o&&t.manuallyAnimateOnMount&&(V=!1),y.protectedKeys={...m},!y.isActive&&null===x||!b&&!y.prevProp||e(b)||"boolean"==typeof b)continue;const A=Y(y.prevProp,b);let S=A||g===c&&y.isActive&&!V&&w||n>v&&w;const C=Array.isArray(b)?b:[b];let O=C.reduce(a,{});!1===x&&(O={});const{prevResolvedValues:P={}}=y,M={...P,...O},E=t=>{S=!0,f.delete(t),y.needsAnimating[t]=!0};for(const t in M){const e=O[t],n=P[t];m.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||A?E(t):y.protectedKeys[t]=!0:void 0!==e?E(t):f.add(t):void 0!==e&&f.has(t)?E(t):y.protectedKeys[t]=!0)}y.prevProp=b,y.prevResolvedValues=O,y.isActive&&(m={...m,...O}),o&&t.blockInitialAnimation&&(S=!1),S&&!V&&h.push(...C.map((t=>({animation:t,options:{type:g,...u}}))))}if(f.size){const e={};f.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),h.push({animation:e})}let g=Boolean(h.length);return o&&!1===p.initial&&!t.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(h):Promise.resolve()}return{animateChanges:u,setActive:function(e,n,o){var s;if(r[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const i=u(o,e);for(const t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function Y(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!i(e,t)}function U(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var q=n(6295);const z={animation:(0,q.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=L(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,q.x)((e=>{const{custom:n,visualElement:s}=e,[i,a]=(0,r.oO)(),u=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{s.isPresent=i;const t=s.animationState&&s.animationState.setActive(I.r.Exit,!i,{custom:u&&u.custom||n});t&&!i&&t.then(a)}),[i])}))};var H=n(1876);var W=n(3541),Z=n(1395),X=n(5856);function K(t,e,n){return(r,o)=>{(0,W.N)(r)&&!(0,X.gD)()&&(t.animationState&&t.animationState.setActive(I.r.Hover,e),n&&n(r,o))}}const J=(t,e)=>!!e&&(t===e||J(t,e.parentElement));var G=n(9531),_=n(934);const Q=("undefined"==typeof process||process.env,"production"),tt=new Set;const et=new WeakMap,nt=new WeakMap,rt=t=>{const e=et.get(t.target);e&&e(t)},ot=t=>{t.forEach(rt)};function st(t,e,n){const r=function({root:t,...e}){const n=t||document;nt.has(n)||nt.set(n,{});const r=nt.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(ot,{root:t,...e})),r[o]}(e);return et.set(t,n),r.observe(t),()=>{et.delete(t),r.unobserve(t)}}const it={some:0,all:1};function at(e,n,r,{root:o,margin:s,amount:i="some",once:a}){(0,t.useEffect)((()=>{if(!e||!r.current)return;const t={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof i?i:it[i]};return st(r.current,t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,a&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(I.r.InView,e);const o=r.getProps(),s=e?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[e,o,s,i])}function ut(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{var t,s;e&&o&&("production"!==Q&&(t="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||tt.has(t)||(console.warn(t),s&&console.warn(s),tt.add(t))),requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(I.r.InView,!0)})))}),[e])}const ct={inView:(0,q.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:s={}}){const i=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(n||r||o);s.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ut:at)(a,i.current,e,s)})),tap:(0,q.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:s}){const i=e||n||r||o,a=(0,t.useRef)(!1),u=(0,t.useRef)(null),c={passive:!(n||e||r||f)};function l(){u.current&&u.current(),u.current=null}function p(){return l(),a.current=!1,s.animationState&&s.animationState.setActive(I.r.Tap,!1),!(0,X.gD)()}function d(t,n){p()&&(J(s.current,t.target)?e&&e(t,n):r&&r(t,n))}function h(t,e){p()&&r&&r(t,e)}function f(t,e){l(),a.current||(a.current=!0,u.current=(0,_.z)((0,Z.a)(window,"pointerup",d,c),(0,Z.a)(window,"pointercancel",h,c)),s.animationState&&s.animationState.setActive(I.r.Tap,!0),n&&n(t,e))}(0,Z.m)(s,"pointerdown",i?f:void 0,c),(0,G.z)(l)})),focus:(0,q.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,H.p)(e,"focus",t?()=>{n&&n.setActive(I.r.Focus,!0)}:void 0),(0,H.p)(e,"blur",t?()=>{n&&n.setActive(I.r.Focus,!1)}:void 0)})),hover:(0,q.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){(0,Z.m)(r,"pointerenter",t||n?K(r,!0,t):void 0,{passive:!t}),(0,Z.m)(r,"pointerleave",e||n?K(r,!1,e):void 0,{passive:!e})}))},lt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>O.indexOf(t)-O.indexOf(e);function dt(t){return t.startsWith("--")}const ht=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var ft=n(4923);function mt(t,e,n,r){const{style:o,vars:s,transform:i,transformKeys:a,transformOrigin:u}=t;a.length=0;let c=!1,l=!1,p=!0;for(const t in e){const n=e[t];if(dt(t)){s[t]=n;continue}const r=ft.j[t],c=ht(n,r);if(P.has(t)){if(!0,i[t]=c,a.push(t),!p)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,u[t]=c):o[t]=c}if(e.transform||(c||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,s){let i="";e.sort(pt);for(const n of e)`${lt[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),s?s(t,o?"":i):r&&o&&"none",i}(t,n,p,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=u;o.transformOrigin=`${t} ${e} ${n}`}}var vt=n(798);function gt(t,{layout:e,layoutId:n}){return P.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!vt.P[t]||"opacity"===t)}function yt(t){const{style:e}=t,n={};for(const r in e)((0,M.i)(e[r])||gt(r,t))&&(n[r]=e[r]);return n}function bt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var wt=n(7557),xt=n(8834),Vt=n(6978),At=n(9340),St=n(3093);const Ct=new Set(["width","height","top","left","right","bottom","x","y"]),Ot=t=>Ct.has(t),Pt=(t,e)=>{t.set(e,!1),t.set(e)},Mt=t=>t===f.Rx||t===m.px;var Et;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Et||(Et={}));const Tt=(t,e)=>parseFloat(t.split(", ")[e]),kt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Tt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Tt(e[1],t):0}},Ft=new Set(["x","y","z"]),jt=O.filter((t=>!Ft.has(t)));const Rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:kt(4,13),y:kt(5,14)},It=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Ot);let i=[],a=!1;const u=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let l=n[o],p=y(l);const d=e[o];let h;if((0,s.C)(d)){const t=d.length,e=null===d[0]?1:0;l=d[e],p=y(l);for(let n=e;n<t;n++)h?(0,At.k)(y(d[n])===h,"All keyframes must be of the same type"):(h=y(d[n]),(0,At.k)(h===p||Mt(p)&&Mt(h),"Keyframes must be of the same dimension as the current value"))}else h=y(d);if(p!==h)if(Mt(p)&&Mt(h)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&h===m.px&&(e[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==h?void 0:h.transform)&&(0===l||0===d)?0===l?c.set(h.transform(l)):e[o]=p.transform(d):(a||(i=function(t){const e=[];return jt.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),u.push(o),r[o]=void 0!==r[o]?r[o]:e[o],Pt(c,d))})),u.length){const n=u.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:i}=s,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Rt[t](r,s)})),e.render();const u=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);Pt(r,a[n]),t[n]=Rt[n](u,s)})),t})(e,t,u);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),St.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function $t(t,e,n,r){return(t=>Object.keys(t).some(Ot))(e)?It(t,e,n,r):{target:e,transitionEnd:r}}var Dt=n(6162);const Bt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:Bt(["layout","layoutId","drag"]),animation:Bt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Bt(["exit"]),drag:Bt(["drag","dragControls"]),focus:Bt(["whileFocus"]),hover:Bt(["whileHover","onHoverStart","onHoverEnd"]),tap:Bt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Bt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Bt(["whileInView","onViewportEnter","onViewportLeave"])};var Lt=n(1397),Yt=n(3491);const Ut={current:null},qt={current:!1};var zt=n(1065);const Ht=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Wt(t){return e(t.animate)||Ht.some((e=>R(t[e])))}const Zt=Object.keys(Nt),Xt=Zt.length,Kt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Jt=["initial",...$],Gt=Jt.length;class _t extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>Dt.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:i}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=i,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Wt(e),this.isVariantNode=function(t){return Boolean(Wt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...u}=this.scrapeMotionValuesFromProps(e);for(const t in u){const e=u[t];void 0!==s[t]&&(0,M.i)(e)&&(e.set(s[t],!1),E(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===this.parent||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),qt.current||function(){if(qt.current=!0,St.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ut.current=t.matches;t.addListener(e),e()}else Ut.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ut.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===this.projection||void 0===t||t.unmount(),Dt.qY.update(this.notifyUpdate),Dt.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===this.removeFromVariantTree||void 0===e||e.call(this),null===this.parent||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=P.has(t),r=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Dt.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isProjectionDirty=!0)})),o=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(e,n,r,o,s,i){const a=[];"production"!==Q&&r&&n&&(0,At.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let n=0;n<Xt;n++){const r=Zt[n],{isEnabled:o,Component:s}=Nt[r];o(e)&&s&&a.push((0,t.createElement)(s,{key:r,...e,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,Yt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:u})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Lt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<Kt.length;e++){const n=Kt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const s=e[o],i=n[o];if((0,M.i)(s))t.addValue(o,s),E(r)&&r.add(o);else if((0,M.i)(i))t.addValue(o,(0,p.B)(s)),E(r)&&r.remove(o);else if(i!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,p.B)(void 0!==e?e:s))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===this.props.variants||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===this.parent||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===this.parent||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===this.parent||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<Gt;t++){const e=Jt[t],n=this.props[e];(R(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===n.variantChildren||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===this.valueSubscriptions.get(t)||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&((0,p.B)(e),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===x(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,M.i)(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new zt.L),this.events[t].add(e)}notify(t,...e){var n;null===this.events[t]||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===t.style||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let s=function(t,e,n){var r;const o={};for(const s in t){const t=C(s,e);o[s]=void 0!==t?t:null===n.getValue(s)||void 0===r?void 0:r.get()}return o}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),s&&r(s)),o){!function(t,e,n){var r,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),i=s.length;if(i)for(let a=0;a<i;a++){const i=s[a],l=e[i];let h=null;Array.isArray(l)&&l[0],null===h&&(null!==(null!==n[i]&&void 0!==r?r:t.readValue(i))&&void 0!==o?o:e[i]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||c(h))?parseFloat(h):!w(h)&&u.P.test(l)&&(0,d.T)(i,l),t.addValue(i,(0,p.B)(h)),void 0===n[i]&&(n[i]=h),null!==h&&t.setBaseTarget(i,h))}}(this,n,s);const t=((t,e,n,r)=>{const o=(0,Vt.mH)(t,e,r);return $t(t,o.target,n,o.transitionEnd)})(this,n,s,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class Qt extends _t{readValueFromInstance(t,e){if(P.has(e)){const t=(0,wt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),o=(dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,xt.J)(t,e)}build(t,e,n,r){mt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t){return yt(t)}renderInstance(t,e,n,r){bt(t,e,n,r)}}function te(t,e,n){return"string"==typeof t?t:m.px.transform(e+n*t)}const ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},ne={offset:"strokeDashoffset",array:"strokeDasharray"};function re(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...u},c,l){mt(t,u,c,l),t.attrs=t.style,t.style={};const{attrs:p,style:d,dimensions:h}=t;p.transform&&(h&&(d.transform=p.transform),delete p.transform),h&&(void 0!==r||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${te(e,t.x,t.width)} ${te(n,t.y,t.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==s&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const s=o?ee:ne;t[s.offset]=m.px.transform(-r);const i=m.px.transform(e),a=m.px.transform(n);t[s.array]=`${i} ${a}`}(p,s,i,a,!1)}const oe=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);class ie extends _t{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return P.has(e)?(null===(0,wt.A)(e)||void 0===n?void 0:n.default)||0:(se.has(e)?e:oe(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Lt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=yt(t);for(const n in t)(0,M.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,r){re(t,e,n,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){bt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(se.has(n)?n:oe(n),e.attrs[n])}(t,e,0,r)}}const ae=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"]})()})();
|